@omniviewdev/runtime 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { jsx as N, jsxs as ce, Fragment as _t } from "react/jsx-runtime";
2
- import { c as $ } from "react/compiler-runtime";
3
- import q, { useContext as Ue, createContext as et, useState as Ie, useRef as pe, useSyncExternalStore as $t, useCallback as Ze, useEffect as De, createElement as wn, useId as Cn, useLayoutEffect as ht, Component as In } from "react";
4
- import { Link as Dn, useNavigate as Rn, useLocation as xn, createMemoryRouter as Tn } from "react-router";
5
- import { useQueryClient as be, useMutation as oe, useQuery as re, keepPreviousData as qt, CancelledError as rt, skipToken as Ee, useQueries as An } from "@tanstack/react-query";
6
- import { P as Nn, G as On, V as Pn, C as Fn, S as kn, k as Ln, U as $n, R as qn, l as Mn, m as Mt, n as Un, L as Wn, o as Kn, p as Gn, q as Qn, r as jn, t as zn, u as Bn, v as Hn, w as Jn, x as Vn, y as Yn, z as Zn, Q as Xn, A as es, B as Tt, D as ts, E as Ut, F as ns, H as ss, I as rs, J as Wt, K as Kt, M as os, N as is, O as Gt, T as cs, W as as, X as Qt, Y as ls, Z as us, _ as ds, $ as fs, a0 as ps, a1 as hs, a2 as At, a3 as gs, a4 as ys, a5 as ms, a6 as vs, a7 as _s } from "./servicewrapper-C6SURWw1.js";
1
+ import { jsx as N, jsxs as ce, Fragment as bt } from "react/jsx-runtime";
2
+ import { c as q } from "react/compiler-runtime";
3
+ import L, { useContext as Ue, createContext as tt, useState as Ie, useRef as pe, useSyncExternalStore as Mt, useCallback as Xe, useEffect as De, createElement as In, useId as Dn, useLayoutEffect as gt, Component as Rn } from "react";
4
+ import { Link as xn, useNavigate as An, useLocation as Tn, createMemoryRouter as Nn } from "react-router";
5
+ import { useQueryClient as Se, useMutation as oe, useQuery as re, keepPreviousData as Ut, CancelledError as ot, skipToken as Ee, useQueries as Pn } from "@tanstack/react-query";
6
+ import { P as On, G as Fn, V as kn, C as Ln, S as $n, k as qn, U as Mn, R as Un, l as Wn, m as Wt, n as Kn, L as Gn, o as Qn, p as jn, q as zn, r as Bn, t as Hn, u as Jn, v as Vn, w as Yn, x as Zn, y as Xn, z as es, Q as ts, A as ns, B as Nt, D as ss, E as Kt, F as rs, H as os, I as is, J as Gt, K as Qt, M as cs, N as as, O as jt, T as ls, W as us, X as zt, Y as ds, Z as fs, _ as ps, $ as hs, a0 as gs, a1 as ys, a2 as Pt, a3 as ms, a4 as vs, a5 as _s, a6 as bs, a7 as Ss } from "./servicewrapper-C6SURWw1.js";
7
7
  import "./index-zyAgCXOO.js";
8
- import { useToast as Ss, Card as bs, Toolbar as Nt, Text as Ae, IconButton as He, EmptyState as Es, Button as Fe, Code as ws, Spinner as Cs } from "@omniviewdev/base-ui";
9
- import { O as Z, a as jt } from "./events-uBheGmqm.js";
10
- import { P as Is, W as Ds, S as Rs, C as xs, L as Ts, F as As, a as Ns, G as Os, U as zt, D as Bt, b as Ht, c as Jt, A as Vt } from "./models-CT4kHj47.js";
11
- import { RouterProvider as Ps } from "react-router/dom";
12
- import { w as Fs } from "./legacyEnum-CKqyRmbX.js";
13
- const St = q.createContext(void 0), se = {
8
+ import { useToast as Es, Card as ws, Toolbar as Ot, Text as Te, IconButton as Je, EmptyState as Cs, Button as Fe, Code as Is, Spinner as Ds } from "@omniviewdev/base-ui";
9
+ import { O as Z, a as Bt } from "./events-uBheGmqm.js";
10
+ import { P as Rs, W as xs, S as As, C as Ts, L as Ns, F as Ps, a as Os, G as Fs, U as Ht, D as Jt, b as Vt, c as Yt, A as Zt } from "./models-CT4kHj47.js";
11
+ import { RouterProvider as ks } from "react-router/dom";
12
+ import { w as Ls } from "./legacyEnum-CKqyRmbX.js";
13
+ const St = L.createContext(void 0), se = {
14
14
  // Plugin
15
15
  PLUGIN_NOT_FOUND: "omniview:plugin/not-found",
16
16
  PLUGIN_NOT_LOADED: "omniview:plugin/not-loaded",
@@ -45,7 +45,19 @@ const St = q.createContext(void 0), se = {
45
45
  INTERNAL: "omniview:internal",
46
46
  VALIDATION: "omniview:validation",
47
47
  NOT_IMPLEMENTED: "omniview:not-implemented"
48
- }, Ot = {
48
+ };
49
+ let Be = null;
50
+ function lo(t) {
51
+ return Be = t, () => {
52
+ Be === t && (Be = null);
53
+ };
54
+ }
55
+ function $s(t) {
56
+ if (!Be)
57
+ throw new Error(`cannot navigate to "${t}": this window has no page navigator`);
58
+ Be(t);
59
+ }
60
+ const Ft = {
49
61
  INVALID_REQUEST: [se.VALIDATION, 400, "correctRequest"],
50
62
  UNSUPPORTED: [se.NOT_IMPLEMENTED, 501, "refreshContract"],
51
63
  FORBIDDEN: [se.RESOURCE_FORBIDDEN, 403, "none"],
@@ -65,13 +77,13 @@ const St = q.createContext(void 0), se = {
65
77
  PROVIDER_ERROR: [se.RESOURCE_PROVIDER_ERROR, 502, "none"],
66
78
  INTERNAL: [se.INTERNAL, 500, "none"]
67
79
  };
68
- function ot(t) {
80
+ function it(t) {
69
81
  return typeof t == "object" && t !== null ? t : void 0;
70
82
  }
71
83
  function _e(t, e) {
72
84
  return typeof t == "string" && t.length > 0 && t.length <= e;
73
85
  }
74
- function it() {
86
+ function ct() {
75
87
  return {
76
88
  type: se.CANCELLED,
77
89
  code: "CANCELLED",
@@ -81,21 +93,21 @@ function it() {
81
93
  recovery: "none"
82
94
  };
83
95
  }
84
- function Ye(t, e) {
96
+ function Ze(t, e) {
85
97
  if (e > 4) return;
86
- if (t === "cancelled") return it();
98
+ if (t === "cancelled") return ct();
87
99
  if (typeof t == "string") {
88
100
  const n = t.trim();
89
101
  if (!n.startsWith("{")) return;
90
102
  try {
91
- return Ye(JSON.parse(n), e + 1);
103
+ return Ze(JSON.parse(n), e + 1);
92
104
  } catch {
93
105
  return;
94
106
  }
95
107
  }
96
- const r = ot(t);
108
+ const r = it(t);
97
109
  if (r) {
98
- if (r.name === "AbortError" || r.name === "CancelError") return it();
110
+ if (r.name === "AbortError" || r.name === "CancelError") return ct();
99
111
  if (_e(r.type, 256) && _e(r.title, 256) && typeof r.status == "number" && Number.isInteger(r.status) && r.status >= 100 && r.status <= 599 && typeof r.detail == "string" && r.detail.length <= 4096) {
100
112
  const n = {
101
113
  type: r.type,
@@ -104,10 +116,10 @@ function Ye(t, e) {
104
116
  detail: r.detail
105
117
  };
106
118
  _e(r.code, 64) && (n.code = r.code), _e(r.requestId, 256) && (n.requestId = r.requestId), _e(r.instance, 512) && (n.instance = r.instance), Array.isArray(r.suggestions) && (n.suggestions = r.suggestions.filter((i) => _e(i, 512)).slice(0, 8)), Array.isArray(r.actions) && (n.actions = r.actions.filter((i) => {
107
- const o = ot(i);
119
+ const o = it(i);
108
120
  return !!o && ["navigate", "retry", "open-url", "copy"].includes(String(o.type)) && _e(o.label, 256) && (o.target === void 0 || _e(o.target, 4096));
109
121
  }).slice(0, 8)), ["correctRequest", "refreshContract", "restartQuery", "reconnect", "none"].includes(String(r.recovery)) && (n.recovery = r.recovery);
110
- const s = ot(r.location);
122
+ const s = it(r.location);
111
123
  return s?.unit === "utf8-byte" && typeof s.start == "number" && typeof s.end == "number" && Number.isSafeInteger(s.start) && Number.isSafeInteger(s.end) && s.start >= 0 && s.end >= s.start && (n.location = {
112
124
  start: s.start,
113
125
  end: s.end,
@@ -116,8 +128,8 @@ function Ye(t, e) {
116
128
  }
117
129
  if (typeof r.code == "string" && typeof r.title == "string" && typeof r.message == "string") {
118
130
  let n = r.code;
119
- if (n === "PERMISSION_DENIED" && (n = "FORBIDDEN"), ["INVALID_INPUT", "FILTER_UNKNOWN_FIELD", "FILTER_INVALID_OPERATOR"].includes(n) && (n = "INVALID_REQUEST"), Object.prototype.hasOwnProperty.call(Ot, n) || (n = "INTERNAL"), n === "CANCELLED") return it();
120
- const [s, i, o] = Ot[n], u = n === "FORBIDDEN" || n === "UNAUTHORIZED" || n === "INTERNAL" || n === "PROVIDER_ERROR";
131
+ if (n === "PERMISSION_DENIED" && (n = "FORBIDDEN"), ["INVALID_INPUT", "FILTER_UNKNOWN_FIELD", "FILTER_INVALID_OPERATOR"].includes(n) && (n = "INVALID_REQUEST"), Object.prototype.hasOwnProperty.call(Ft, n) || (n = "INTERNAL"), n === "CANCELLED") return ct();
132
+ const [s, i, o] = Ft[n], u = n === "FORBIDDEN" || n === "UNAUTHORIZED" || n === "INTERNAL" || n === "PROVIDER_ERROR";
121
133
  return {
122
134
  type: s,
123
135
  status: i,
@@ -130,27 +142,28 @@ function Ye(t, e) {
130
142
  } : {}
131
143
  };
132
144
  }
133
- return Ye(r.message, e + 1) ?? Ye(r.cause, e + 1);
145
+ return Ze(r.message, e + 1) ?? Ze(r.cause, e + 1);
134
146
  }
135
147
  }
136
- function Se(t) {
137
- return Ye(t, 0) ?? {
148
+ function be(t) {
149
+ return Ze(t, 0) ?? {
138
150
  type: se.INTERNAL,
139
151
  title: t == null ? "Unknown error" : "Error",
140
152
  status: 500,
141
153
  detail: t == null ? "An unknown error occurred." : "The operation could not be completed."
142
154
  };
143
155
  }
144
- function Xe(t) {
145
- return Se(t).type === se.CANCELLED;
156
+ function et(t) {
157
+ return be(t).type === se.CANCELLED;
146
158
  }
147
- function ks(t) {
159
+ function qs(t) {
148
160
  switch (t.type) {
149
161
  case "navigate":
150
162
  return {
151
163
  label: t.label,
164
+ // Backend targets are hash routes (`#/settings?...`); they open in the active page tab.
152
165
  onClick: () => {
153
- window.location.hash = t.target ?? "";
166
+ $s((t.target ?? "/").replace(/^#/, ""));
154
167
  }
155
168
  };
156
169
  case "open-url":
@@ -181,113 +194,113 @@ function ks(t) {
181
194
  };
182
195
  }
183
196
  }
184
- function Yt(t, e) {
197
+ function Xt(t, e) {
185
198
  const r = [t.detail, ...t.suggestions?.map((s) => `• ${s}`) ?? []].join(`
186
199
  `);
187
200
  return {
188
201
  message: e || (t.title !== "Error" ? t.title : "Operation failed"),
189
202
  status: "error",
190
203
  details: r,
191
- actions: t.actions?.map(ks)
204
+ actions: t.actions?.map(qs)
192
205
  };
193
206
  }
194
207
  function xe(t, e, r) {
195
- if (Xe(e)) return;
196
- const n = Se(e);
197
- t(Yt(n, r));
208
+ if (et(e)) return;
209
+ const n = be(e);
210
+ t(Xt(n, r));
198
211
  }
199
212
  function le(t, e) {
200
213
  return (r) => {
201
- if (Xe(r)) return;
202
- const n = Se(r);
203
- t(Yt(n, n.title !== "Error" ? n.title : e));
214
+ if (et(r)) return;
215
+ const n = be(r);
216
+ t(Xt(n, n.title !== "Error" ? n.title : e));
204
217
  };
205
218
  }
206
- function oo(t) {
207
- const e = $(2);
219
+ function uo(t) {
220
+ const e = q(2);
208
221
  let r;
209
- return e[0] !== t ? (r = /* @__PURE__ */ N(Ls, { ...t }, t.pluginId), e[0] = t, e[1] = r) : r = e[1], r;
222
+ return e[0] !== t ? (r = /* @__PURE__ */ N(Ms, { ...t }, t.pluginId), e[0] = t, e[1] = r) : r = e[1], r;
210
223
  }
211
- function Ls(t) {
212
- const e = $(40), {
224
+ function Ms(t) {
225
+ const e = q(40), {
213
226
  children: r,
214
227
  pluginId: n,
215
228
  headless: s
216
229
  } = t, i = s === void 0 ? !1 : s;
217
230
  let o;
218
231
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {}, e[0] = o) : o = e[0];
219
- const [u, l] = q.useState(o);
232
+ const [u, l] = L.useState(o);
220
233
  let a;
221
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = new Is(), e[1] = a) : a = e[1];
222
- const [c, p] = q.useState(a), [f, g] = q.useState(!1), [h, v] = q.useState(null), d = q.useRef(0), m = q.useRef(0);
234
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = new Rs(), e[1] = a) : a = e[1];
235
+ const [c, p] = L.useState(a), [d, g] = L.useState(!1), [h, y] = L.useState(null), f = L.useRef(0), v = L.useRef(0);
223
236
  console.debug("[PluginContextProvider] render", {
224
237
  pluginId: n,
225
- metaLoaded: f,
238
+ metaLoaded: d,
226
239
  metaError: !!h
227
240
  });
228
- let y;
229
- e[2] !== n ? (y = () => {
241
+ let m;
242
+ e[2] !== n ? (m = () => {
230
243
  if (n === void 0 || n === "")
231
244
  return;
232
- const A = d.current = d.current + 1;
233
- console.debug(`[PluginContextProvider] fetching settings for "${n}"`), Nn(n).then((T) => {
234
- A === d.current && (console.debug(`[PluginContextProvider] settings loaded for "${n}"`, Object.keys(T)), l(T));
235
- }).catch((T) => {
236
- if (A !== d.current)
245
+ const T = f.current = f.current + 1;
246
+ console.debug(`[PluginContextProvider] fetching settings for "${n}"`), On(n).then((A) => {
247
+ T === f.current && (console.debug(`[PluginContextProvider] settings loaded for "${n}"`, Object.keys(A)), l(A));
248
+ }).catch((A) => {
249
+ if (T !== f.current)
237
250
  return;
238
- const k = Se(T);
251
+ const k = be(A);
239
252
  console.error(`[PluginContextProvider] error fetching settings for "${n}":`, k.detail);
240
253
  });
241
- }, e[2] = n, e[3] = y) : y = e[3];
242
- const _ = y;
243
- let S;
244
- e[4] !== n ? (S = () => {
254
+ }, e[2] = n, e[3] = m) : m = e[3];
255
+ const _ = m;
256
+ let b;
257
+ e[4] !== n ? (b = () => {
245
258
  if (n === void 0 || n === "") {
246
259
  console.debug("[PluginContextProvider] skipping meta fetch — empty pluginId");
247
260
  return;
248
261
  }
249
- const A = m.current = m.current + 1;
250
- console.debug(`[PluginContextProvider] fetching meta for "${n}"`), On(n).then((T) => {
251
- A === m.current && (console.debug(`[PluginContextProvider] meta loaded for "${n}"`, {
252
- name: T?.name,
253
- version: T?.version
254
- }), p(T), g(!0));
255
- }).catch((T) => {
256
- if (A !== m.current)
262
+ const T = v.current = v.current + 1;
263
+ console.debug(`[PluginContextProvider] fetching meta for "${n}"`), Fn(n).then((A) => {
264
+ T === v.current && (console.debug(`[PluginContextProvider] meta loaded for "${n}"`, {
265
+ name: A?.name,
266
+ version: A?.version
267
+ }), p(A), g(!0));
268
+ }).catch((A) => {
269
+ if (T !== v.current)
257
270
  return;
258
- const k = Se(T);
259
- console.error(`[PluginContextProvider] error fetching meta for "${n}":`, k.detail), v(k.detail), g(!1);
271
+ const k = be(A);
272
+ console.error(`[PluginContextProvider] error fetching meta for "${n}":`, k.detail), y(k.detail), g(!1);
260
273
  });
261
- }, e[4] = n, e[5] = S) : S = e[5];
262
- const C = S;
274
+ }, e[4] = n, e[5] = b) : b = e[5];
275
+ const C = b;
263
276
  let E, I;
264
- e[6] !== C || e[7] !== _ || e[8] !== f || e[9] !== n ? (E = () => {
265
- if (f)
277
+ e[6] !== C || e[7] !== _ || e[8] !== d || e[9] !== n ? (E = () => {
278
+ if (d)
266
279
  return;
267
- const A = () => {
268
- v(null), _(), C();
269
- }, T = [Z("plugin/init_complete", A), Z("plugin/dev_install_complete", (k) => {
270
- k.data?.id === n && A();
271
- }), Z("plugin/inventory_changed", A)];
280
+ const T = () => {
281
+ y(null), _(), C();
282
+ }, A = [Z("plugin/init_complete", T), Z("plugin/dev_install_complete", (k) => {
283
+ k.data?.id === n && T();
284
+ }), Z("plugin/inventory_changed", T)];
272
285
  return () => {
273
- for (const k of T)
286
+ for (const k of A)
274
287
  k();
275
288
  };
276
- }, I = [n, f, _, C], e[6] = C, e[7] = _, e[8] = f, e[9] = n, e[10] = E, e[11] = I) : (E = e[10], I = e[11]), q.useEffect(E, I);
289
+ }, I = [n, d, _, C], e[6] = C, e[7] = _, e[8] = d, e[9] = n, e[10] = E, e[11] = I) : (E = e[10], I = e[11]), L.useEffect(E, I);
277
290
  let w, D;
278
291
  if (e[12] !== C || e[13] !== _ || e[14] !== n ? (w = () => (console.debug(`[PluginContextProvider] useEffect — pluginId changed to "${n}"`), _(), C(), () => {
279
- d.current = d.current + 1, m.current = m.current + 1;
280
- }), D = [n, _, C], e[12] = C, e[13] = _, e[14] = n, e[15] = w, e[16] = D) : (w = e[15], D = e[16]), q.useEffect(w, D), h) {
292
+ f.current = f.current + 1, v.current = v.current + 1;
293
+ }), D = [n, _, C], e[12] = C, e[13] = _, e[14] = n, e[15] = w, e[16] = D) : (w = e[15], D = e[16]), L.useEffect(w, D), h) {
281
294
  if (i)
282
295
  throw new Error(h);
283
- let A, T, k;
296
+ let T, A, k;
284
297
  e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
285
298
  display: "flex",
286
299
  flex: 1,
287
300
  alignItems: "center",
288
301
  justifyContent: "center",
289
302
  padding: 24
290
- }, A = {
303
+ }, T = {
291
304
  maxWidth: 480,
292
305
  width: "100%",
293
306
  border: "1px solid #7F1D1D",
@@ -295,14 +308,14 @@ function Ls(t) {
295
308
  backgroundColor: "#1C1917",
296
309
  padding: 20,
297
310
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
298
- }, T = {
311
+ }, A = {
299
312
  display: "flex",
300
313
  alignItems: "center",
301
314
  gap: 8,
302
315
  marginBottom: 12
303
- }, e[17] = A, e[18] = T, e[19] = k) : (A = e[17], T = e[18], k = e[19]);
316
+ }, e[17] = T, e[18] = A, e[19] = k) : (T = e[17], A = e[18], k = e[19]);
304
317
  let M, W;
305
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ ce("div", { style: T, children: [
318
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ ce("div", { style: A, children: [
306
319
  /* @__PURE__ */ ce("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#EF4444", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
307
320
  /* @__PURE__ */ N("circle", { cx: "12", cy: "12", r: "10" }),
308
321
  /* @__PURE__ */ N("line", { x1: "12", y1: "8", x2: "12", y2: "12" }),
@@ -322,7 +335,7 @@ function Ls(t) {
322
335
  e[22] !== h ? (j = /* @__PURE__ */ N("p", { style: W, children: h }), e[22] = h, e[23] = j) : j = e[23];
323
336
  let V;
324
337
  e[24] !== C ? (V = () => {
325
- v(null), C();
338
+ y(null), C();
326
339
  }, e[24] = C, e[25] = V) : V = e[25];
327
340
  let Y;
328
341
  e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = {
@@ -338,17 +351,17 @@ function Ls(t) {
338
351
  let G;
339
352
  e[27] !== V ? (G = /* @__PURE__ */ N("button", { onClick: V, style: Y, children: "Retry" }), e[27] = V, e[28] = G) : G = e[28];
340
353
  let J;
341
- return e[29] !== j || e[30] !== G ? (J = /* @__PURE__ */ N("div", { style: k, children: /* @__PURE__ */ ce("div", { style: A, children: [
354
+ return e[29] !== j || e[30] !== G ? (J = /* @__PURE__ */ N("div", { style: k, children: /* @__PURE__ */ ce("div", { style: T, children: [
342
355
  M,
343
356
  j,
344
357
  G
345
358
  ] }) }), e[29] = j, e[30] = G, e[31] = J) : J = e[31], J;
346
359
  }
347
- if (!f) {
360
+ if (!d) {
348
361
  if (i)
349
362
  return null;
350
- let A;
351
- return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ ce("div", { style: {
363
+ let T;
364
+ return e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ ce("div", { style: {
352
365
  display: "flex",
353
366
  flex: 1,
354
367
  alignItems: "center",
@@ -363,7 +376,7 @@ function Ls(t) {
363
376
  animation: "plugin-spin 0.8s linear infinite"
364
377
  } }),
365
378
  /* @__PURE__ */ N("style", { children: "@keyframes plugin-spin { to { transform: rotate(360deg); } }" })
366
- ] }), e[32] = A) : A = e[32], A;
379
+ ] }), e[32] = T) : T = e[32], T;
367
380
  }
368
381
  let x;
369
382
  e[33] !== c || e[34] !== n || e[35] !== u ? (x = {
@@ -371,20 +384,20 @@ function Ls(t) {
371
384
  settings: u,
372
385
  meta: c
373
386
  }, e[33] = c, e[34] = n, e[35] = u, e[36] = x) : x = e[36];
374
- let O;
375
- return e[37] !== r || e[38] !== x ? (O = /* @__PURE__ */ N(St.Provider, { value: x, children: r }), e[37] = r, e[38] = x, e[39] = O) : O = e[39], O;
387
+ let P;
388
+ return e[37] !== r || e[38] !== x ? (P = /* @__PURE__ */ N(St.Provider, { value: x, children: r }), e[37] = r, e[38] = x, e[39] = P) : P = e[39], P;
376
389
  }
377
- function bt() {
390
+ function Et() {
378
391
  const t = Ue(St);
379
392
  if (!t)
380
393
  throw new Error("usePluginContext must be used within a PluginContextProvider");
381
394
  return t;
382
395
  }
383
- function io() {
384
- return bt().settings;
396
+ function fo() {
397
+ return Et().settings;
385
398
  }
386
- const Zt = et(void 0), co = (t) => {
387
- const e = $(10), {
399
+ const en = tt(void 0), po = (t) => {
400
+ const e = q(10), {
388
401
  children: r
389
402
  } = t;
390
403
  let n;
@@ -392,34 +405,34 @@ const Zt = et(void 0), co = (t) => {
392
405
  const [s, i] = Ie(n), o = pe(0);
393
406
  let u;
394
407
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
395
- const v = o.current + 1;
396
- o.current = v, Pn().then((d) => {
397
- v === o.current && i(d);
398
- }).catch((d) => {
399
- v === o.current && console.error("Error fetching settings:", d);
408
+ const y = o.current + 1;
409
+ o.current = y, kn().then((f) => {
410
+ y === o.current && i(f);
411
+ }).catch((f) => {
412
+ y === o.current && console.error("Error fetching settings:", f);
400
413
  });
401
414
  }, e[1] = u) : u = e[1];
402
415
  const l = u;
403
416
  let a, c;
404
417
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => {
405
- const v = Z("settings/changed", () => l());
418
+ const y = Z("settings/changed", () => l());
406
419
  return l(), () => {
407
- o.current = o.current + 1, v();
420
+ o.current = o.current + 1, y();
408
421
  };
409
- }, c = [l], e[2] = a, e[3] = c) : (a = e[2], c = e[3]), q.useEffect(a, c);
422
+ }, c = [l], e[2] = a, e[3] = c) : (a = e[2], c = e[3]), L.useEffect(a, c);
410
423
  let p;
411
424
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
412
425
  l();
413
426
  }, e[4] = p) : p = e[4];
414
- const f = p;
427
+ const d = p;
415
428
  let g;
416
429
  e[5] !== s ? (g = {
417
430
  settings: s,
418
- reload: f
431
+ reload: d
419
432
  }, e[5] = s, e[6] = g) : g = e[6];
420
433
  let h;
421
- return e[7] !== r || e[8] !== g ? (h = /* @__PURE__ */ N(Zt.Provider, { value: g, children: r }), e[7] = r, e[8] = g, e[9] = h) : h = e[9], h;
422
- }, $s = {
434
+ return e[7] !== r || e[8] !== g ? (h = /* @__PURE__ */ N(en.Provider, { value: g, children: r }), e[7] = r, e[8] = g, e[9] = h) : h = e[9], h;
435
+ }, Us = {
423
436
  height: 32,
424
437
  focused: 0,
425
438
  tabs: [],
@@ -443,41 +456,41 @@ const Zt = et(void 0), co = (t) => {
443
456
  },
444
457
  fullscreenDrawer: () => {
445
458
  }
446
- }, qs = q.createContext($s), Ms = et(void 0), Us = q.createContext(void 0), Xt = q.createContext(void 0), Ws = 3e4, ao = (t) => {
447
- const e = $(12), {
459
+ }, Ws = L.createContext(Us), Ks = tt(void 0), Gs = L.createContext(void 0), tn = L.createContext(void 0), Qs = 3e4, ho = (t) => {
460
+ const e = q(12), {
448
461
  children: r
449
462
  } = t;
450
463
  let n;
451
464
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = [], e[0] = n) : n = e[0];
452
- const [s, i] = q.useState(n);
465
+ const [s, i] = L.useState(n);
453
466
  let o;
454
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (m) => {
455
- i((y) => [m, ...y]);
467
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (v) => {
468
+ i((m) => [v, ...m]);
456
469
  }, e[1] = o) : o = e[1];
457
470
  const u = o;
458
471
  let l;
459
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (m, y) => {
460
- i((_) => _.map((S) => S.id === m ? {
461
- ...S,
462
- ...y
463
- } : S));
472
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (v, m) => {
473
+ i((_) => _.map((b) => b.id === v ? {
474
+ ...b,
475
+ ...m
476
+ } : b));
464
477
  }, e[2] = l) : l = e[2];
465
478
  const a = l;
466
479
  let c;
467
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (m) => {
468
- i((y) => y.filter((_) => _.id !== m));
480
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (v) => {
481
+ i((m) => m.filter((_) => _.id !== v));
469
482
  }, e[3] = c) : c = e[3];
470
483
  const p = c;
471
- let f, g;
472
- e[4] !== s ? (f = () => {
473
- const m = [];
474
- for (const y of s)
475
- if (y.status !== "running") {
476
- const _ = Date.now() - (y.completedAt ?? y.startedAt), S = Math.max(0, Ws - _);
477
- m.push(setTimeout(() => p(y.id), S));
484
+ let d, g;
485
+ e[4] !== s ? (d = () => {
486
+ const v = [];
487
+ for (const m of s)
488
+ if (m.status !== "running") {
489
+ const _ = Date.now() - (m.completedAt ?? m.startedAt), b = Math.max(0, Qs - _);
490
+ v.push(setTimeout(() => p(m.id), b));
478
491
  }
479
- return () => m.forEach(clearTimeout);
480
- }, g = [s, p], e[4] = s, e[5] = f, e[6] = g) : (f = e[5], g = e[6]), q.useEffect(f, g);
492
+ return () => v.forEach(clearTimeout);
493
+ }, g = [s, p], e[4] = s, e[5] = d, e[6] = g) : (d = e[5], g = e[6]), L.useEffect(d, g);
481
494
  let h;
482
495
  e[7] !== s ? (h = {
483
496
  operations: s,
@@ -485,65 +498,78 @@ const Zt = et(void 0), co = (t) => {
485
498
  updateOperation: a,
486
499
  removeOperation: p
487
500
  }, e[7] = s, e[8] = h) : h = e[8];
488
- const v = h;
489
- let d;
490
- return e[9] !== r || e[10] !== v ? (d = /* @__PURE__ */ N(Xt.Provider, { value: v, children: r }), e[9] = r, e[10] = v, e[11] = d) : d = e[11], d;
501
+ const y = h;
502
+ let f;
503
+ return e[9] !== r || e[10] !== y ? (f = /* @__PURE__ */ N(tn.Provider, { value: y, children: r }), e[9] = r, e[10] = y, e[11] = f) : f = e[11], f;
504
+ }, wt = L.createContext(null), go = (t) => {
505
+ const e = q(3), {
506
+ actions: r,
507
+ children: n
508
+ } = t;
509
+ let s;
510
+ return e[0] !== r || e[1] !== n ? (s = /* @__PURE__ */ N(wt.Provider, { value: r, children: n }), e[0] = r, e[1] = n, e[2] = s) : s = e[2], s;
491
511
  };
492
- var gt = function(t, e) {
493
- return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
512
+ function yo() {
513
+ const t = L.useContext(wt);
514
+ if (!t)
515
+ throw new Error("useWindowActions must be used inside a workspace window (WindowActionsProvider)");
516
+ return t;
517
+ }
518
+ var yt = function(t, e) {
519
+ return yt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
494
520
  r.__proto__ = n;
495
521
  } || function(r, n) {
496
522
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (r[s] = n[s]);
497
- }, gt(t, e);
523
+ }, yt(t, e);
498
524
  };
499
- function Ks(t, e) {
525
+ function js(t, e) {
500
526
  if (typeof e != "function" && e !== null)
501
527
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
502
- gt(t, e);
528
+ yt(t, e);
503
529
  function r() {
504
530
  this.constructor = t;
505
531
  }
506
532
  t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
507
533
  }
508
- var ct = "Invariant Violation", Pt = Object.setPrototypeOf, Gs = Pt === void 0 ? function(t, e) {
534
+ var at = "Invariant Violation", kt = Object.setPrototypeOf, zs = kt === void 0 ? function(t, e) {
509
535
  return t.__proto__ = e, t;
510
- } : Pt, Qs = (
536
+ } : kt, Bs = (
511
537
  /** @class */
512
538
  (function(t) {
513
- Ks(e, t);
539
+ js(e, t);
514
540
  function e(r) {
515
- r === void 0 && (r = ct);
516
- var n = t.call(this, typeof r == "number" ? ct + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
517
- return n.framesToPop = 1, n.name = ct, Gs(n, e.prototype), n;
541
+ r === void 0 && (r = at);
542
+ var n = t.call(this, typeof r == "number" ? at + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
543
+ return n.framesToPop = 1, n.name = at, zs(n, e.prototype), n;
518
544
  }
519
545
  return e;
520
546
  })(Error)
521
547
  );
522
- function yt(t, e) {
548
+ function mt(t, e) {
523
549
  if (!t)
524
- throw new Qs(e);
550
+ throw new Bs(e);
525
551
  }
526
- var en = ["debug", "log", "warn", "error", "silent"], js = en.indexOf("log");
527
- function Je(t) {
552
+ var nn = ["debug", "log", "warn", "error", "silent"], Hs = nn.indexOf("log");
553
+ function Ve(t) {
528
554
  return function() {
529
- if (en.indexOf(t) >= js) {
555
+ if (nn.indexOf(t) >= Hs) {
530
556
  var e = console[t] || console.log;
531
557
  return e.apply(console, arguments);
532
558
  }
533
559
  };
534
560
  }
535
561
  (function(t) {
536
- t.debug = Je("debug"), t.log = Je("log"), t.warn = Je("warn"), t.error = Je("error");
537
- })(yt || (yt = {}));
538
- const tn = et(void 0), zs = () => Ue(tn);
539
- function nn(t) {
540
- const e = $(6), r = zs(), n = q.useRef(null);
562
+ t.debug = Ve("debug"), t.log = Ve("log"), t.warn = Ve("warn"), t.error = Ve("error");
563
+ })(mt || (mt = {}));
564
+ const sn = tt(void 0), Js = () => Ue(sn);
565
+ function rn(t) {
566
+ const e = q(6), r = Js(), n = L.useRef(null);
541
567
  let s;
542
568
  e[0] !== t || e[1] !== r ? (s = (l) => {
543
569
  let a = r?.getExtensionPoint(t), c = a?.subscribe(l);
544
570
  const p = r?.subscribe(() => {
545
- const f = r.getExtensionPoint(t);
546
- f !== a && (c?.(), a = f, c = a?.subscribe(l)), l();
571
+ const d = r.getExtensionPoint(t);
572
+ d !== a && (c?.(), a = d, c = a?.subscribe(l)), l();
547
573
  });
548
574
  return () => {
549
575
  c?.(), p?.();
@@ -563,28 +589,28 @@ function nn(t) {
563
589
  return n.current = p, p;
564
590
  }, e[3] = t, e[4] = r, e[5] = o) : o = e[5];
565
591
  const u = o;
566
- return $t(i, u, u);
592
+ return Mt(i, u, u);
567
593
  }
568
- function lo(t) {
569
- return nn(t).store;
594
+ function mo(t) {
595
+ return rn(t).store;
570
596
  }
571
- const uo = (t) => {
572
- const e = $(5), {
597
+ const vo = (t) => {
598
+ const e = q(5), {
573
599
  registry: r,
574
600
  children: n
575
601
  } = t;
576
602
  let s;
577
603
  e[0] !== r ? (s = () => r, e[0] = r, e[1] = s) : s = e[1];
578
- const [i] = q.useState(s);
579
- yt(i === r, "You can't change the extension registry after it has been rendered");
604
+ const [i] = L.useState(s);
605
+ mt(i === r, "You can't change the extension registry after it has been rendered");
580
606
  let o;
581
- return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ N(tn.Provider, { value: i, children: n }), e[2] = n, e[3] = i, e[4] = o) : o = e[4], o;
582
- }, at = (t) => {
607
+ return e[2] !== n || e[3] !== i ? (o = /* @__PURE__ */ N(sn.Provider, { value: i, children: n }), e[2] = n, e[3] = i, e[4] = o) : o = e[4], o;
608
+ }, lt = (t) => {
583
609
  if (!t || typeof t != "string")
584
610
  throw new TypeError(`extensionName is required to be a string and can't be: "${t}" (${typeof t})`);
585
611
  return t.trim();
586
612
  };
587
- class Bs {
613
+ class Vs {
588
614
  id;
589
615
  mode;
590
616
  _pluginId;
@@ -702,7 +728,7 @@ class Bs {
702
728
  e();
703
729
  }
704
730
  }
705
- class fo {
731
+ class _o {
706
732
  _stores = /* @__PURE__ */ new Map();
707
733
  _storeUnsubs = /* @__PURE__ */ new Map();
708
734
  _listeners = /* @__PURE__ */ new Set();
@@ -716,12 +742,12 @@ class fo {
716
742
  * Throws if the extension point ID already exists.
717
743
  */
718
744
  addExtensionPoint(e) {
719
- const r = at(e.id);
745
+ const r = lt(e.id);
720
746
  if (this._stores.has(r)) {
721
747
  const s = this._stores.get(r);
722
748
  throw new Error(`Extension point "${r}" already exists (owned by "${s.pluginId ?? "unknown"}")`);
723
749
  }
724
- const n = new Bs({
750
+ const n = new Vs({
725
751
  ...e,
726
752
  id: r
727
753
  });
@@ -731,14 +757,14 @@ class fo {
731
757
  * Get an extension point store by ID.
732
758
  */
733
759
  getExtensionPoint(e) {
734
- const r = at(e);
760
+ const r = lt(e);
735
761
  return this._stores.get(r);
736
762
  }
737
763
  /**
738
764
  * Check if an extension point exists.
739
765
  */
740
766
  hasExtensionPoint(e) {
741
- const r = at(e);
767
+ const r = lt(e);
742
768
  return this._stores.has(r);
743
769
  }
744
770
  /**
@@ -854,133 +880,133 @@ const fe = {
854
880
  padding: "var(--ov-space-3)",
855
881
  borderTop: "1px solid var(--ov-color-border-muted)"
856
882
  }
857
- }, sn = et(void 0), Hs = {
883
+ }, on = tt(void 0), Ys = {
858
884
  default: "info",
859
885
  info: "info",
860
886
  success: "success",
861
887
  warning: "warning",
862
888
  error: "danger"
863
- }, po = ({
889
+ }, bo = ({
864
890
  children: t
865
891
  }) => {
866
892
  const {
867
893
  toast: e
868
- } = Ss(), [r, n] = q.useState([]), [s, i] = q.useState([]), [o, u] = q.useState(!1), [l, a] = q.useState(), [c, p] = q.useState(""), f = q.useRef(0), g = q.useRef(null);
869
- q.useEffect(() => {
894
+ } = Es(), [r, n] = L.useState([]), [s, i] = L.useState([]), [o, u] = L.useState(!1), [l, a] = L.useState(), [c, p] = L.useState(""), d = L.useRef(0), g = L.useRef(null);
895
+ L.useEffect(() => {
870
896
  if (!o)
871
897
  return;
872
- const d = document.activeElement;
898
+ const f = document.activeElement;
873
899
  g.current?.focus();
874
- const m = (y) => {
875
- y.key === "Escape" && (y.stopPropagation(), u(!1));
900
+ const v = (m) => {
901
+ m.key === "Escape" && (m.stopPropagation(), u(!1));
876
902
  };
877
- return document.addEventListener("keydown", m), () => {
878
- document.removeEventListener("keydown", m), d instanceof HTMLElement && d.isConnected && d.focus();
903
+ return document.addEventListener("keydown", v), () => {
904
+ document.removeEventListener("keydown", v), f instanceof HTMLElement && f.isConnected && f.focus();
879
905
  };
880
906
  }, [o]);
881
- const h = (d) => {
882
- n((m) => [...m, d]);
883
- }, v = (d, m, y) => {
884
- const _ = typeof d == "object";
885
- let S = "", C = "info", E, I = 5e3, w;
907
+ const h = (f) => {
908
+ n((v) => [...v, f]);
909
+ }, y = (f, v, m) => {
910
+ const _ = typeof f == "object";
911
+ let b = "", C = "info", E, I = 5e3, w;
886
912
  if (_) {
887
- if (S = d.message, d.showOnce) {
888
- if (r.includes(S))
913
+ if (b = f.message, f.showOnce) {
914
+ if (r.includes(b))
889
915
  return;
890
- h(S);
916
+ h(b);
891
917
  }
892
- C = d.status, E = d.details, I = d.autoHideDuration ?? 5e3, w = d.actions;
918
+ C = f.status, E = f.details, I = f.autoHideDuration ?? 5e3, w = f.actions;
893
919
  } else
894
- S = d, C = m, E = y;
920
+ b = f, C = v, E = m;
895
921
  let D;
896
922
  if (C === "error") {
897
923
  const x = {
898
- id: ++f.current,
899
- message: S,
924
+ id: ++d.current,
925
+ message: b,
900
926
  details: E,
901
927
  created: (/* @__PURE__ */ new Date()).toISOString(),
902
928
  actions: w
903
929
  };
904
- i((O) => [...O, x].slice(-20)), D = {
930
+ i((P) => [...P, x].slice(-20)), D = {
905
931
  label: "Details",
906
932
  onClick: () => {
907
933
  a(x.id), u(!0);
908
934
  }
909
935
  };
910
936
  }
911
- e(C === "error" ? S : E ?? S, {
912
- severity: Hs[C] ?? "info",
913
- title: C !== "error" && E ? S : void 0,
937
+ e(C === "error" ? b : E ?? b, {
938
+ severity: Ys[C] ?? "info",
939
+ title: C !== "error" && E ? b : void 0,
914
940
  duration: I,
915
941
  action: D ?? w?.[0]
916
942
  });
917
943
  };
918
- return /* @__PURE__ */ ce(sn.Provider, { value: {
919
- showSnackbar: v,
944
+ return /* @__PURE__ */ ce(on.Provider, { value: {
945
+ showSnackbar: y,
920
946
  openNotifications: () => {
921
947
  u(!0);
922
948
  },
923
949
  notificationCount: s.length
924
950
  }, children: [
925
951
  t,
926
- o && /* @__PURE__ */ ce(bs, { ref: g, style: fe.Panel, size: "sm", variant: "outline", surface: "overlay", elevation: 3, "aria-label": "Notifications", tabIndex: -1, children: [
927
- /* @__PURE__ */ ce(Nt, { size: "sm", style: fe.Header, children: [
928
- /* @__PURE__ */ N(Ae, { size: "sm", weight: "semibold", children: "Notifications" }),
929
- /* @__PURE__ */ N(Ae, { size: "xs", tone: "muted", children: s.length }),
930
- /* @__PURE__ */ ce(Nt.Group, { style: fe.HeaderActions, children: [
931
- /* @__PURE__ */ N(He, { size: "sm", variant: "ghost", "aria-label": "Clear history", title: "Clear history", disabled: s.length === 0, onClick: () => {
952
+ o && /* @__PURE__ */ ce(ws, { ref: g, style: fe.Panel, size: "sm", variant: "outline", surface: "overlay", elevation: 3, "aria-label": "Notifications", tabIndex: -1, children: [
953
+ /* @__PURE__ */ ce(Ot, { size: "sm", style: fe.Header, children: [
954
+ /* @__PURE__ */ N(Te, { size: "sm", weight: "semibold", children: "Notifications" }),
955
+ /* @__PURE__ */ N(Te, { size: "xs", tone: "muted", children: s.length }),
956
+ /* @__PURE__ */ ce(Ot.Group, { style: fe.HeaderActions, children: [
957
+ /* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": "Clear history", title: "Clear history", disabled: s.length === 0, onClick: () => {
932
958
  i([]), a(void 0), p("");
933
959
  }, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m3 3 6 6m0-6L3 9M13 6h8M3 14h18M3 20h18" }) }) }),
934
- /* @__PURE__ */ N(He, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
960
+ /* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": "Close notifications", title: "Close notifications", onClick: () => {
935
961
  u(!1);
936
962
  }, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m6 9 6 6 6-6" }) }) })
937
963
  ] })
938
964
  ] }),
939
965
  /* @__PURE__ */ ce("div", { style: fe.List, children: [
940
- s.length === 0 && /* @__PURE__ */ N(Es, { size: "sm", title: "No recent errors", description: "Error details will appear here." }),
941
- s.slice().reverse().map((d) => {
942
- const m = l === d.id;
966
+ s.length === 0 && /* @__PURE__ */ N(Cs, { size: "sm", title: "No recent errors", description: "Error details will appear here." }),
967
+ s.slice().reverse().map((f) => {
968
+ const v = l === f.id;
943
969
  return /* @__PURE__ */ ce("div", { style: fe.Notice, children: [
944
970
  /* @__PURE__ */ ce("div", { style: fe.Row, children: [
945
971
  /* @__PURE__ */ ce("svg", { style: fe.ErrorIcon, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-label": "Error", role: "img", children: [
946
972
  /* @__PURE__ */ N("circle", { cx: "12", cy: "12", r: "9" }),
947
973
  /* @__PURE__ */ N("path", { d: "m9 9 6 6m0-6-6 6" })
948
974
  ] }),
949
- /* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", style: fe.Message, "aria-expanded": m, "aria-controls": `notification-${d.id}`, title: d.message, onClick: () => {
950
- a(m ? void 0 : d.id), p("");
951
- }, children: /* @__PURE__ */ N(Ae, { size: "sm", style: fe.MessageText, truncate: !m, children: d.message }) }),
952
- /* @__PURE__ */ N(He, { size: "sm", variant: "ghost", "aria-label": m ? "Collapse details" : "Expand details", title: m ? "Collapse details" : "Expand details", "aria-expanded": m, "aria-controls": `notification-${d.id}`, onClick: () => {
953
- a(m ? void 0 : d.id), p("");
954
- }, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: m ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
955
- /* @__PURE__ */ N(He, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${d.message}`, title: "Dismiss notification", onClick: () => {
956
- i((y) => y.filter((_) => _.id !== d.id)), m && (a(void 0), p(""));
975
+ /* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", style: fe.Message, "aria-expanded": v, "aria-controls": `notification-${f.id}`, title: f.message, onClick: () => {
976
+ a(v ? void 0 : f.id), p("");
977
+ }, children: /* @__PURE__ */ N(Te, { size: "sm", style: fe.MessageText, truncate: !v, children: f.message }) }),
978
+ /* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": v ? "Collapse details" : "Expand details", title: v ? "Collapse details" : "Expand details", "aria-expanded": v, "aria-controls": `notification-${f.id}`, onClick: () => {
979
+ a(v ? void 0 : f.id), p("");
980
+ }, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: v ? "m6 15 6-6 6 6" : "m6 9 6 6 6-6" }) }) }),
981
+ /* @__PURE__ */ N(Je, { size: "sm", variant: "ghost", "aria-label": `Dismiss ${f.message}`, title: "Dismiss notification", onClick: () => {
982
+ i((m) => m.filter((_) => _.id !== f.id)), v && (a(void 0), p(""));
957
983
  }, children: /* @__PURE__ */ N("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": "true", children: /* @__PURE__ */ N("path", { d: "m6 6 12 12m0-12L6 18" }) }) })
958
984
  ] }),
959
- /* @__PURE__ */ N("div", { id: `notification-${d.id}`, hidden: !m, style: fe.Details, children: m && /* @__PURE__ */ ce(_t, { children: [
960
- /* @__PURE__ */ N(Ae, { size: "xs", tone: "muted", children: /* @__PURE__ */ N("time", { dateTime: d.created, children: new Date(d.created).toLocaleString() }) }),
961
- /* @__PURE__ */ N(ws, { size: "sm", style: fe.Code, children: d.details?.length ? d.details : d.message }),
985
+ /* @__PURE__ */ N("div", { id: `notification-${f.id}`, hidden: !v, style: fe.Details, children: v && /* @__PURE__ */ ce(bt, { children: [
986
+ /* @__PURE__ */ N(Te, { size: "xs", tone: "muted", children: /* @__PURE__ */ N("time", { dateTime: f.created, children: new Date(f.created).toLocaleString() }) }),
987
+ /* @__PURE__ */ N(Is, { size: "sm", style: fe.Code, children: f.details?.length ? f.details : f.message }),
962
988
  /* @__PURE__ */ ce("div", { style: fe.Actions, children: [
963
989
  /* @__PURE__ */ N(Fe, { size: "sm", variant: "ghost", onClick: async () => {
964
990
  p("");
965
991
  try {
966
- await navigator.clipboard.writeText(`${d.message}
967
- ${d.created}
968
- ${d.details ?? ""}`);
992
+ await navigator.clipboard.writeText(`${f.message}
993
+ ${f.created}
994
+ ${f.details ?? ""}`);
969
995
  } catch {
970
996
  p("Copy failed. Select the diagnostic text and copy it manually.");
971
997
  }
972
998
  }, children: "Copy details" }),
973
- d.actions?.map((y, _) => /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", onClick: y.onClick, children: y.label }, `${y.label}-${_}`))
999
+ f.actions?.map((m, _) => /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", onClick: m.onClick, children: m.label }, `${m.label}-${_}`))
974
1000
  ] })
975
1001
  ] }) })
976
- ] }, d.id);
1002
+ ] }, f.id);
977
1003
  })
978
1004
  ] }),
979
- c && /* @__PURE__ */ N(Ae, { as: "p", size: "sm", role: "status", style: fe.CopyError, children: c })
1005
+ c && /* @__PURE__ */ N(Te, { as: "p", size: "sm", role: "status", style: fe.CopyError, children: c })
980
1006
  ] })
981
1007
  ] });
982
1008
  }, we = () => {
983
- const t = Ue(sn);
1009
+ const t = Ue(on);
984
1010
  if (t === void 0)
985
1011
  throw new Error("useCustomSnackbar must be used within a CustomSnackbarProvider");
986
1012
  return t;
@@ -992,8 +1018,8 @@ function ee(t) {
992
1018
  return r;
993
1019
  }
994
1020
  const he = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map();
995
- let lt = 0, qe = [], Et = 0;
996
- const rn = {
1021
+ let ut = 0, qe = [], Ct = 0;
1022
+ const cn = {
997
1023
  phase: "checking"
998
1024
  };
999
1025
  function Ne(t, e) {
@@ -1003,22 +1029,22 @@ function Ne(t, e) {
1003
1029
  pluginID: t,
1004
1030
  connectionID: e,
1005
1031
  key: r,
1006
- snapshot: rn,
1032
+ snapshot: cn,
1007
1033
  listeners: /* @__PURE__ */ new Set(),
1008
1034
  users: 0,
1009
1035
  version: 0,
1010
- generation: ++Et,
1036
+ generation: ++Ct,
1011
1037
  starts: /* @__PURE__ */ new Set()
1012
1038
  }, he.set(r, n)), n;
1013
1039
  }
1014
1040
  function ze(t, e) {
1015
- t.snapshot.phase === "connected" && e.phase !== "connected" && (t.generation = ++Et), t.snapshot = e;
1041
+ t.snapshot.phase === "connected" && e.phase !== "connected" && (t.generation = ++Ct), t.snapshot = e;
1016
1042
  for (const r of t.listeners) r();
1017
1043
  }
1018
- function Oe(t, e, r = !1) {
1019
- t.generation = ++Et, t.version++, r || (t.operation = void 0), ze(t, e);
1044
+ function Pe(t, e, r = !1) {
1045
+ t.generation = ++Ct, t.version++, r || (t.operation = void 0), ze(t, e);
1020
1046
  }
1021
- function Js(t) {
1047
+ function Zs(t) {
1022
1048
  switch (t) {
1023
1049
  case "CONNECTED":
1024
1050
  return "connected";
@@ -1036,84 +1062,84 @@ function Js(t) {
1036
1062
  return "error";
1037
1063
  }
1038
1064
  }
1039
- function wt(t) {
1065
+ function It(t) {
1040
1066
  const e = t?.trim();
1041
1067
  if (e)
1042
1068
  return e.startsWith("{") || e.startsWith("[") || e.length > 512 || /[\r\n]|\bgoroutine\b|\bat\s+\S+\s+\(.*:\d+:\d+\)/.test(e) ? "The connection operation could not be completed." : e;
1043
1069
  }
1044
- function on(t, e) {
1045
- const r = Js(t.status);
1070
+ function an(t, e) {
1071
+ const r = Zs(t.status);
1046
1072
  return {
1047
1073
  phase: r,
1048
1074
  connection: e,
1049
- message: wt(t.error || t.details) || (r === "error" ? "The connection is not ready." : void 0)
1075
+ message: It(t.error || t.details) || (r === "error" ? "The connection is not ready." : void 0)
1050
1076
  };
1051
1077
  }
1052
- function cn(t, e) {
1053
- const r = Se(t);
1078
+ function ln(t, e) {
1079
+ const r = be(t);
1054
1080
  return {
1055
1081
  phase: r.status === 401 ? "unauthorized" : r.status === 403 ? "forbidden" : r.status === 404 ? "not-found" : "error",
1056
1082
  connection: e,
1057
- message: wt(r.detail || r.title)
1083
+ message: It(r.detail || r.title)
1058
1084
  };
1059
1085
  }
1060
- function ut(t, e) {
1061
- e = wt(e) || "The plugin is unavailable.", We.set(t, e);
1086
+ function dt(t, e) {
1087
+ e = It(e) || "The plugin is unavailable.", We.set(t, e);
1062
1088
  for (const r of he.values())
1063
- r.pluginID === t && Oe(r, {
1089
+ r.pluginID === t && Pe(r, {
1064
1090
  phase: "error",
1065
1091
  message: e,
1066
1092
  connection: r.snapshot.connection
1067
1093
  });
1068
1094
  }
1069
- function Ft(t) {
1095
+ function Lt(t) {
1070
1096
  const e = We.delete(t);
1071
1097
  for (const r of he.values())
1072
- r.pluginID === t && (!e && r.snapshot.phase === "checking" && r.operation?.kind === "check" || (Oe(r, {
1098
+ r.pluginID === t && (!e && r.snapshot.phase === "checking" && r.operation?.kind === "check" || (Pe(r, {
1073
1099
  phase: "checking",
1074
1100
  connection: r.snapshot.connection
1075
- }), r.users && Te(r, "check").catch(() => {
1101
+ }), r.users && Ae(r, "check").catch(() => {
1076
1102
  })));
1077
1103
  }
1078
1104
  function $e() {
1079
1105
  if (!(typeof document < "u" && document.visibilityState === "hidden"))
1080
1106
  for (const t of he.values())
1081
- t.users && !We.has(t.pluginID) && Te(t, "check", !0).catch(() => {
1107
+ t.users && !We.has(t.pluginID) && Ae(t, "check", !0).catch(() => {
1082
1108
  });
1083
1109
  }
1084
- function Vs() {
1110
+ function Xs() {
1085
1111
  qe.length || (qe = [Z("connection/status", ({
1086
1112
  data: t
1087
1113
  }) => {
1088
1114
  const e = he.get(JSON.stringify([t.pluginID, t.connectionID]));
1089
- !e || We.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" || Oe(e, on({
1115
+ !e || We.has(t.pluginID) || e.stop && t.status !== "DISCONNECTED" || t.status !== "DISCONNECTED" && e.starts.size && e.operation?.kind !== "start" || Pe(e, an({
1090
1116
  status: t.status,
1091
1117
  error: "",
1092
1118
  details: ""
1093
1119
  }, e.snapshot.connection), t.status === "CONNECTED");
1094
1120
  }), Z("plugin/crash", ({
1095
1121
  data: t
1096
- }) => ut(t.pluginID, t.error || "The plugin stopped unexpectedly.")), Z("plugin/crash_recovery_failed", ({
1122
+ }) => dt(t.pluginID, t.error || "The plugin stopped unexpectedly.")), Z("plugin/crash_recovery_failed", ({
1097
1123
  data: t
1098
- }) => ut(t.pluginID, t.error || "Plugin recovery failed.")), Z("plugin/recovered", ({
1124
+ }) => dt(t.pluginID, t.error || "Plugin recovery failed.")), Z("plugin/recovered", ({
1099
1125
  data: t
1100
- }) => Ft(t.pluginID)), Z("plugin/state_change", ({
1126
+ }) => Lt(t.pluginID)), Z("plugin/state_change", ({
1101
1127
  data: t
1102
1128
  }) => {
1103
- t.to === "Running" ? Ft(t.pluginID) : ut(t.pluginID, t.reason || `The plugin is ${t.to}.`);
1129
+ t.to === "Running" ? Lt(t.pluginID) : dt(t.pluginID, t.reason || `The plugin is ${t.to}.`);
1104
1130
  })], typeof window < "u" && (window.addEventListener("focus", $e), window.addEventListener("pageshow", $e), qe.push(() => {
1105
1131
  window.removeEventListener("focus", $e), window.removeEventListener("pageshow", $e);
1106
1132
  })), typeof document < "u" && (document.addEventListener("visibilitychange", $e), qe.push(() => document.removeEventListener("visibilitychange", $e))));
1107
1133
  }
1108
1134
  function ke(t) {
1109
- return he.set(t.key, t), t.users++, lt++, Vs(), () => {
1110
- if (t.users--, lt--, t.users || (Oe(t, rn), he.get(t.key) === t && he.delete(t.key)), !lt) {
1135
+ return he.set(t.key, t), t.users++, ut++, Xs(), () => {
1136
+ if (t.users--, ut--, t.users || (Pe(t, cn), he.get(t.key) === t && he.delete(t.key)), !ut) {
1111
1137
  for (const e of qe) e();
1112
1138
  qe = [], We.clear();
1113
1139
  }
1114
1140
  };
1115
1141
  }
1116
- function Te(t, e, r = !1) {
1142
+ function Ae(t, e, r = !1) {
1117
1143
  if (t.stop) return Promise.reject(new Error("Connection is disconnecting. Wait for it to stop before connecting."));
1118
1144
  const n = We.get(t.pluginID);
1119
1145
  if (n)
@@ -1130,9 +1156,9 @@ function Te(t, e, r = !1) {
1130
1156
  }), e === "start" && t.starts.add(s);
1131
1157
  const i = Promise.resolve().then(() => {
1132
1158
  if (t.version !== s) throw new Error("Connection readiness changed before the operation began.");
1133
- return e === "start" ? kn(t.pluginID, t.connectionID) : Fn(t.pluginID, t.connectionID);
1134
- }).then((o) => (t.version === s && ze(t, on(o, o.connection ?? t.snapshot.connection)), o), (o) => {
1135
- throw t.version === s && ze(t, cn(o, t.snapshot.connection)), o;
1159
+ return e === "start" ? $n(t.pluginID, t.connectionID) : Ln(t.pluginID, t.connectionID);
1160
+ }).then((o) => (t.version === s && ze(t, an(o, o.connection ?? t.snapshot.connection)), o), (o) => {
1161
+ throw t.version === s && ze(t, ln(o, t.snapshot.connection)), o;
1136
1162
  }).finally(() => {
1137
1163
  e === "start" && t.starts.delete(s), t.operation?.version === s && (t.operation = void 0);
1138
1164
  });
@@ -1142,12 +1168,12 @@ function Te(t, e, r = !1) {
1142
1168
  version: s
1143
1169
  }, i;
1144
1170
  }
1145
- function an(t, e) {
1171
+ function un(t, e) {
1146
1172
  return {
1147
1173
  getSnapshot: () => Ne(t, e).snapshot,
1148
1174
  subscribe: (r) => {
1149
1175
  const n = Ne(t, e), s = n.users === 0, i = ke(n);
1150
- return n.listeners.add(r), s && Te(n, "check").catch(() => {
1176
+ return n.listeners.add(r), s && Ae(n, "check").catch(() => {
1151
1177
  }), () => {
1152
1178
  n.listeners.delete(r), i();
1153
1179
  };
@@ -1155,7 +1181,7 @@ function an(t, e) {
1155
1181
  connect: async () => {
1156
1182
  const r = Ne(t, e), n = ke(r);
1157
1183
  try {
1158
- await Te(r, "start");
1184
+ await Ae(r, "start");
1159
1185
  } catch {
1160
1186
  } finally {
1161
1187
  n();
@@ -1164,7 +1190,7 @@ function an(t, e) {
1164
1190
  retry: async () => {
1165
1191
  const r = Ne(t, e), n = ke(r);
1166
1192
  try {
1167
- await Te(r, "check");
1193
+ await Ae(r, "check");
1168
1194
  } catch {
1169
1195
  } finally {
1170
1196
  n();
@@ -1172,11 +1198,11 @@ function an(t, e) {
1172
1198
  }
1173
1199
  };
1174
1200
  }
1175
- async function Pe(t, e) {
1201
+ async function Oe(t, e) {
1176
1202
  const r = Ne(t, e), n = ke(r);
1177
1203
  try {
1178
1204
  try {
1179
- await Te(r, "check", !0);
1205
+ await Ae(r, "check", !0);
1180
1206
  } catch {
1181
1207
  }
1182
1208
  if (r.snapshot.phase !== "connected")
@@ -1185,11 +1211,11 @@ async function Pe(t, e) {
1185
1211
  n();
1186
1212
  }
1187
1213
  }
1188
- async function ho(t, e, r) {
1214
+ async function So(t, e, r) {
1189
1215
  const n = Ne(t, e), s = ke(n);
1190
1216
  try {
1191
1217
  try {
1192
- await Te(n, "check", !0);
1218
+ await Ae(n, "check", !0);
1193
1219
  } catch {
1194
1220
  }
1195
1221
  if (n.snapshot.phase !== "connected")
@@ -1202,58 +1228,58 @@ async function ho(t, e, r) {
1202
1228
  s();
1203
1229
  }
1204
1230
  }
1205
- function Ys(t, e) {
1231
+ function er(t, e) {
1206
1232
  return he.get(JSON.stringify([t, e]))?.generation;
1207
1233
  }
1208
- function Zs(t, e, r) {
1234
+ function tr(t, e, r) {
1209
1235
  const n = he.get(JSON.stringify([t, e]));
1210
1236
  return r !== void 0 && n?.generation === r && n.snapshot.phase === "connected";
1211
1237
  }
1212
- async function Xs(t, e) {
1238
+ async function nr(t, e) {
1213
1239
  const r = Ne(t, e), n = ke(r);
1214
1240
  try {
1215
- return await Te(r, "start");
1241
+ return await Ae(r, "start");
1216
1242
  } finally {
1217
1243
  n();
1218
1244
  }
1219
1245
  }
1220
- function ln(t, e) {
1246
+ function dn(t, e) {
1221
1247
  const r = Ne(t, e);
1222
1248
  if (r.stop) return r.stop;
1223
- const n = ke(r), s = Promise.resolve().then(() => Ln(t, e)).then((i) => (Oe(r, {
1249
+ const n = ke(r), s = Promise.resolve().then(() => qn(t, e)).then((i) => (Pe(r, {
1224
1250
  phase: "disconnected",
1225
1251
  connection: i
1226
1252
  }), i), (i) => {
1227
- throw Oe(r, cn(i, r.snapshot.connection)), i;
1253
+ throw Pe(r, ln(i, r.snapshot.connection)), i;
1228
1254
  }).finally(() => {
1229
1255
  r.stop = void 0, n();
1230
1256
  });
1231
- return r.stop = s, Oe(r, {
1257
+ return r.stop = s, Pe(r, {
1232
1258
  phase: "disconnected",
1233
1259
  message: "Disconnecting. Wait for the connection to stop before reconnecting.",
1234
1260
  connection: r.snapshot.connection
1235
1261
  }), s;
1236
1262
  }
1237
- function kt(t, e, r = !1) {
1263
+ function $t(t, e, r = !1) {
1238
1264
  const n = he.get(JSON.stringify([t, e]));
1239
- n && (Oe(n, {
1265
+ n && (Pe(n, {
1240
1266
  phase: r ? "not-found" : "checking",
1241
1267
  connection: r ? void 0 : n.snapshot.connection
1242
- }), !r && n.users && Te(n, "check").catch(() => {
1268
+ }), !r && n.users && Ae(n, "check").catch(() => {
1243
1269
  }));
1244
1270
  }
1245
- const go = (t) => {
1246
- const e = $(60), {
1271
+ const Eo = (t) => {
1272
+ const e = q(60), {
1247
1273
  pluginID: r,
1248
1274
  connectionID: n
1249
- } = t, s = ee(r), i = be(), {
1275
+ } = t, s = ee(r), i = Se(), {
1250
1276
  showSnackbar: o
1251
1277
  } = we();
1252
1278
  let u;
1253
1279
  e[0] !== n || e[1] !== s ? (u = [s, "connection", "detail", n], e[0] = n, e[1] = s, e[2] = u) : u = e[2];
1254
1280
  const l = u;
1255
1281
  let a;
1256
- e[3] !== n || e[4] !== s ? (a = async () => Xs(s, n), e[3] = n, e[4] = s, e[5] = a) : a = e[5];
1282
+ e[3] !== n || e[4] !== s ? (a = async () => nr(s, n), e[3] = n, e[4] = s, e[5] = a) : a = e[5];
1257
1283
  let c;
1258
1284
  if (e[6] !== n || e[7] !== s || e[8] !== i || e[9] !== l || e[10] !== o || e[11] !== a) {
1259
1285
  let D;
@@ -1271,72 +1297,72 @@ const go = (t) => {
1271
1297
  const {
1272
1298
  mutateAsync: p
1273
1299
  } = oe(c);
1274
- let f;
1275
- e[15] !== n || e[16] !== s ? (f = async () => ln(s, n), e[15] = n, e[16] = s, e[17] = f) : f = e[17];
1300
+ let d;
1301
+ e[15] !== n || e[16] !== s ? (d = async () => dn(s, n), e[15] = n, e[16] = s, e[17] = d) : d = e[17];
1276
1302
  let g;
1277
- if (e[18] !== i || e[19] !== l || e[20] !== o || e[21] !== f) {
1303
+ if (e[18] !== i || e[19] !== l || e[20] !== o || e[21] !== d) {
1278
1304
  let D;
1279
1305
  e[23] !== o ? (D = le(o, "Failed to stop connection"), e[23] = o, e[24] = D) : D = e[24], g = {
1280
- mutationFn: f,
1306
+ mutationFn: d,
1281
1307
  onSuccess(x) {
1282
1308
  i.setQueryData(l, x);
1283
1309
  },
1284
1310
  onError: D
1285
- }, e[18] = i, e[19] = l, e[20] = o, e[21] = f, e[22] = g;
1311
+ }, e[18] = i, e[19] = l, e[20] = o, e[21] = d, e[22] = g;
1286
1312
  } else
1287
1313
  g = e[22];
1288
1314
  const {
1289
1315
  mutateAsync: h
1290
1316
  } = oe(g);
1291
- let v;
1292
- e[25] !== s ? (v = async (D) => $n(s, D), e[25] = s, e[26] = v) : v = e[26];
1293
- let d;
1294
- if (e[27] !== n || e[28] !== s || e[29] !== i || e[30] !== l || e[31] !== o || e[32] !== v) {
1317
+ let y;
1318
+ e[25] !== s ? (y = async (D) => Mn(s, D), e[25] = s, e[26] = y) : y = e[26];
1319
+ let f;
1320
+ if (e[27] !== n || e[28] !== s || e[29] !== i || e[30] !== l || e[31] !== o || e[32] !== y) {
1295
1321
  let D;
1296
- e[34] !== o ? (D = le(o, "Failed to update connection"), e[34] = o, e[35] = D) : D = e[35], d = {
1297
- mutationFn: v,
1298
- onSuccess(x, O) {
1322
+ e[34] !== o ? (D = le(o, "Failed to update connection"), e[34] = o, e[35] = D) : D = e[35], f = {
1323
+ mutationFn: y,
1324
+ onSuccess(x, P) {
1299
1325
  const {
1300
- name: A
1301
- } = O;
1326
+ name: T
1327
+ } = P;
1302
1328
  o({
1303
- message: `Connection ${A} successfully updated`,
1329
+ message: `Connection ${T} successfully updated`,
1304
1330
  status: "success"
1305
- }), kt(s, n), i.setQueryData(l, x), i.setQueriesData({
1331
+ }), $t(s, n), i.setQueryData(l, x), i.setQueriesData({
1306
1332
  queryKey: [s, "connection", "list"]
1307
- }, (T) => T?.map((k) => k.id === n ? x : k));
1333
+ }, (A) => A?.map((k) => k.id === n ? x : k));
1308
1334
  },
1309
1335
  onError: D
1310
- }, e[27] = n, e[28] = s, e[29] = i, e[30] = l, e[31] = o, e[32] = v, e[33] = d;
1336
+ }, e[27] = n, e[28] = s, e[29] = i, e[30] = l, e[31] = o, e[32] = y, e[33] = f;
1311
1337
  } else
1312
- d = e[33];
1338
+ f = e[33];
1313
1339
  const {
1314
- mutateAsync: m
1315
- } = oe(d);
1316
- let y;
1317
- e[36] !== n || e[37] !== s ? (y = async () => qn(s, n), e[36] = n, e[37] = s, e[38] = y) : y = e[38];
1340
+ mutateAsync: v
1341
+ } = oe(f);
1342
+ let m;
1343
+ e[36] !== n || e[37] !== s ? (m = async () => Un(s, n), e[36] = n, e[37] = s, e[38] = m) : m = e[38];
1318
1344
  let _;
1319
- if (e[39] !== n || e[40] !== s || e[41] !== i || e[42] !== l || e[43] !== o || e[44] !== y) {
1345
+ if (e[39] !== n || e[40] !== s || e[41] !== i || e[42] !== l || e[43] !== o || e[44] !== m) {
1320
1346
  let D;
1321
1347
  e[46] !== o ? (D = le(o, "Failed to remove connection"), e[46] = o, e[47] = D) : D = e[47], _ = {
1322
- mutationFn: y,
1348
+ mutationFn: m,
1323
1349
  onSuccess() {
1324
1350
  o({
1325
1351
  message: "Connection successfully removed",
1326
1352
  status: "success"
1327
- }), kt(s, n, !0), i.setQueryData(l, void 0), i.setQueriesData({
1353
+ }), $t(s, n, !0), i.setQueryData(l, void 0), i.setQueriesData({
1328
1354
  queryKey: [s, "connection", "list"]
1329
- }, (x) => x?.filter((O) => O.id !== n));
1355
+ }, (x) => x?.filter((P) => P.id !== n));
1330
1356
  },
1331
1357
  onError: D
1332
- }, e[39] = n, e[40] = s, e[41] = i, e[42] = l, e[43] = o, e[44] = y, e[45] = _;
1358
+ }, e[39] = n, e[40] = s, e[41] = i, e[42] = l, e[43] = o, e[44] = m, e[45] = _;
1333
1359
  } else
1334
1360
  _ = e[45];
1335
1361
  const {
1336
- mutateAsync: S
1362
+ mutateAsync: b
1337
1363
  } = oe(_);
1338
1364
  let C;
1339
- e[48] !== n || e[49] !== s ? (C = async () => Mn(s, n), e[48] = n, e[49] = s, e[50] = C) : C = e[50];
1365
+ e[48] !== n || e[49] !== s ? (C = async () => Wn(s, n), e[48] = n, e[49] = s, e[50] = C) : C = e[50];
1340
1366
  let E;
1341
1367
  e[51] !== l || e[52] !== C ? (E = {
1342
1368
  queryKey: l,
@@ -1344,24 +1370,24 @@ const go = (t) => {
1344
1370
  }, e[51] = l, e[52] = C, e[53] = E) : E = e[53];
1345
1371
  const I = re(E);
1346
1372
  let w;
1347
- return e[54] !== I || e[55] !== S || e[56] !== p || e[57] !== h || e[58] !== m ? (w = {
1373
+ return e[54] !== I || e[55] !== b || e[56] !== p || e[57] !== h || e[58] !== v ? (w = {
1348
1374
  connection: I,
1349
1375
  startConnection: p,
1350
1376
  stopConnection: h,
1351
- updateConnection: m,
1352
- deleteConnection: S
1353
- }, e[54] = I, e[55] = S, e[56] = p, e[57] = h, e[58] = m, e[59] = w) : w = e[59], w;
1354
- }, er = (t) => [t, "connection", "list"], yo = (t) => {
1355
- const e = $(33), {
1377
+ updateConnection: v,
1378
+ deleteConnection: b
1379
+ }, e[54] = I, e[55] = b, e[56] = p, e[57] = h, e[58] = v, e[59] = w) : w = e[59], w;
1380
+ }, sr = (t) => [t, "connection", "list"], wo = (t) => {
1381
+ const e = q(33), {
1356
1382
  plugin: r
1357
- } = t, n = ee(r), s = be(), {
1383
+ } = t, n = ee(r), s = Se(), {
1358
1384
  showSnackbar: i
1359
1385
  } = we();
1360
1386
  let o;
1361
- e[0] !== n ? (o = er(n), e[0] = n, e[1] = o) : o = e[1];
1387
+ e[0] !== n ? (o = sr(n), e[0] = n, e[1] = o) : o = e[1];
1362
1388
  const u = o;
1363
1389
  let l;
1364
- e[2] !== n ? (l = async (w) => Mt(n, w.id), e[2] = n, e[3] = l) : l = e[3];
1390
+ e[2] !== n ? (l = async (w) => Wt(n, w.id), e[2] = n, e[3] = l) : l = e[3];
1365
1391
  let a;
1366
1392
  e[4] !== i ? (a = le(i, "Failed to start connection watch"), e[4] = i, e[5] = a) : a = e[5];
1367
1393
  let c;
@@ -1372,59 +1398,59 @@ const go = (t) => {
1372
1398
  const {
1373
1399
  mutateAsync: p
1374
1400
  } = oe(c);
1375
- let f;
1376
- e[9] !== n ? (f = async (w) => Un(n, w.id), e[9] = n, e[10] = f) : f = e[10];
1401
+ let d;
1402
+ e[9] !== n ? (d = async (w) => Kn(n, w.id), e[9] = n, e[10] = d) : d = e[10];
1377
1403
  let g;
1378
1404
  e[11] !== i ? (g = le(i, "Failed to stop connection watch"), e[11] = i, e[12] = g) : g = e[12];
1379
1405
  let h;
1380
- e[13] !== f || e[14] !== g ? (h = {
1381
- mutationFn: f,
1406
+ e[13] !== d || e[14] !== g ? (h = {
1407
+ mutationFn: d,
1382
1408
  onError: g
1383
- }, e[13] = f, e[14] = g, e[15] = h) : h = e[15];
1409
+ }, e[13] = d, e[14] = g, e[15] = h) : h = e[15];
1384
1410
  const {
1385
- mutateAsync: v
1411
+ mutateAsync: y
1386
1412
  } = oe(h);
1387
- let d;
1388
- e[16] !== s || e[17] !== u ? (d = (w) => {
1413
+ let f;
1414
+ e[16] !== s || e[17] !== u ? (f = (w) => {
1389
1415
  const D = w.data;
1390
1416
  console.log("got update to connections", D), s.setQueryData(u, D);
1391
- }, e[16] = s, e[17] = u, e[18] = d) : d = e[18];
1392
- const m = d;
1393
- let y, _;
1394
- e[19] !== m || e[20] !== n ? (_ = () => {
1395
- const w = Z(`${n}/connection/sync`, m);
1417
+ }, e[16] = s, e[17] = u, e[18] = f) : f = e[18];
1418
+ const v = f;
1419
+ let m, _;
1420
+ e[19] !== v || e[20] !== n ? (_ = () => {
1421
+ const w = Z(`${n}/connection/sync`, v);
1396
1422
  return () => {
1397
1423
  w();
1398
1424
  };
1399
- }, y = [n, m], e[19] = m, e[20] = n, e[21] = y, e[22] = _) : (y = e[21], _ = e[22]), q.useEffect(_, y);
1400
- let S;
1401
- e[23] !== n || e[24] !== i ? (S = async () => {
1425
+ }, m = [n, v], e[19] = v, e[20] = n, e[21] = m, e[22] = _) : (m = e[21], _ = e[22]), L.useEffect(_, m);
1426
+ let b;
1427
+ e[23] !== n || e[24] !== i ? (b = async () => {
1402
1428
  try {
1403
- return await Wn(n);
1429
+ return await Gn(n);
1404
1430
  } catch (w) {
1405
1431
  const D = w;
1406
1432
  console.log(D), le(i, "Failed to load connections")(D);
1407
1433
  }
1408
1434
  return [];
1409
- }, e[23] = n, e[24] = i, e[25] = S) : S = e[25];
1435
+ }, e[23] = n, e[24] = i, e[25] = b) : b = e[25];
1410
1436
  let C;
1411
- e[26] !== u || e[27] !== S ? (C = {
1437
+ e[26] !== u || e[27] !== b ? (C = {
1412
1438
  queryKey: u,
1413
- queryFn: S,
1439
+ queryFn: b,
1414
1440
  staleTime: 3e4,
1415
- placeholderData: qt
1416
- }, e[26] = u, e[27] = S, e[28] = C) : C = e[28];
1441
+ placeholderData: Ut
1442
+ }, e[26] = u, e[27] = b, e[28] = C) : C = e[28];
1417
1443
  const E = re(C);
1418
1444
  let I;
1419
- return e[29] !== E || e[30] !== p || e[31] !== v ? (I = {
1445
+ return e[29] !== E || e[30] !== p || e[31] !== y ? (I = {
1420
1446
  connections: E,
1421
1447
  startWatch: p,
1422
- stopWatch: v
1423
- }, e[29] = E, e[30] = p, e[31] = v, e[32] = I) : I = e[32], I;
1424
- }, tr = {
1448
+ stopWatch: y
1449
+ }, e[29] = E, e[30] = p, e[31] = y, e[32] = I) : I = e[32], I;
1450
+ }, rr = {
1425
1451
  phase: "checking"
1426
- }, nr = {
1427
- getSnapshot: () => tr,
1452
+ }, or = {
1453
+ getSnapshot: () => rr,
1428
1454
  subscribe: () => () => {
1429
1455
  },
1430
1456
  connect: async () => {
@@ -1433,14 +1459,14 @@ const go = (t) => {
1433
1459
  }
1434
1460
  };
1435
1461
  function ge(t) {
1436
- const e = $(8), {
1462
+ const e = q(8), {
1437
1463
  pluginID: r,
1438
1464
  connectionID: n,
1439
1465
  enabled: s
1440
1466
  } = t, i = s === void 0 ? !0 : s, o = ee(r);
1441
1467
  let u;
1442
- e[0] !== n || e[1] !== i || e[2] !== o ? (u = i ? an(o, n) : nr, e[0] = n, e[1] = i, e[2] = o, e[3] = u) : u = e[3];
1443
- const l = u, a = $t(l.subscribe, l.getSnapshot, l.getSnapshot);
1468
+ e[0] !== n || e[1] !== i || e[2] !== o ? (u = i ? un(o, n) : or, e[0] = n, e[1] = i, e[2] = o, e[3] = u) : u = e[3];
1469
+ const l = u, a = Mt(l.subscribe, l.getSnapshot, l.getSnapshot);
1444
1470
  let c;
1445
1471
  return e[4] !== a || e[5] !== l.connect || e[6] !== l.retry ? (c = {
1446
1472
  ...a,
@@ -1449,10 +1475,10 @@ function ge(t) {
1449
1475
  }, e[4] = a, e[5] = l.connect, e[6] = l.retry, e[7] = c) : c = e[7], c;
1450
1476
  }
1451
1477
  function Ce(t, e) {
1452
- const r = be();
1453
- return Ze(async (n, s, i) => {
1454
- const o = Ys(t, e), u = () => o !== void 0 && Zs(t, e, o);
1455
- if (s.aborted || !u()) throw new rt({
1478
+ const r = Se();
1479
+ return Xe(async (n, s, i) => {
1480
+ const o = er(t, e), u = () => o !== void 0 && tr(t, e, o);
1481
+ if (s.aborted || !u()) throw new ot({
1456
1482
  revert: !0
1457
1483
  });
1458
1484
  let l, a = !1, c = !1;
@@ -1460,7 +1486,7 @@ function Ce(t, e) {
1460
1486
  l && "cancel" in l && typeof l.cancel == "function" && Promise.resolve(l.cancel()).catch((h) => {
1461
1487
  console.error("Failed to cancel resource query", h);
1462
1488
  }), g();
1463
- }, f = an(t, e).subscribe(() => {
1489
+ }, d = un(t, e).subscribe(() => {
1464
1490
  u() || (a = !0, r.cancelQueries({
1465
1491
  queryKey: n,
1466
1492
  exact: !0
@@ -1468,18 +1494,18 @@ function Ce(t, e) {
1468
1494
  console.error("Failed to cancel invalidated resource query", h);
1469
1495
  }));
1470
1496
  }), g = () => {
1471
- c || (c = !0, f());
1497
+ c || (c = !0, d());
1472
1498
  };
1473
1499
  s.addEventListener("abort", p, {
1474
1500
  once: !0
1475
1501
  });
1476
1502
  try {
1477
- if (s.aborted || a || !u()) throw new rt({
1503
+ if (s.aborted || a || !u()) throw new ot({
1478
1504
  revert: !0
1479
1505
  });
1480
1506
  l = i();
1481
1507
  const h = await l;
1482
- if (s.aborted || a || !u()) throw new rt({
1508
+ if (s.aborted || a || !u()) throw new ot({
1483
1509
  revert: !0
1484
1510
  });
1485
1511
  return h;
@@ -1488,8 +1514,8 @@ function Ce(t, e) {
1488
1514
  }
1489
1515
  }, [t, e, r]);
1490
1516
  }
1491
- const mo = (t) => {
1492
- const e = $(19), {
1517
+ const Co = (t) => {
1518
+ const e = q(19), {
1493
1519
  pluginID: r,
1494
1520
  connectionID: n,
1495
1521
  enabled: s
@@ -1504,28 +1530,28 @@ const mo = (t) => {
1504
1530
  let c;
1505
1531
  e[4] !== n || e[5] !== o ? (c = [o, "connection", "namespaces", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
1506
1532
  const p = c;
1507
- let f;
1508
- e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (f = i && l.phase === "connected" ? (m) => {
1533
+ let d;
1534
+ e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
1509
1535
  const {
1510
- signal: y,
1536
+ signal: m,
1511
1537
  queryKey: _
1512
- } = m;
1513
- return a(_, y, () => Kn(o, n));
1514
- } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = f) : f = e[12];
1538
+ } = v;
1539
+ return a(_, m, () => Qn(o, n));
1540
+ } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
1515
1541
  const g = i && l.phase === "connected";
1516
1542
  let h;
1517
- e[13] !== p || e[14] !== f || e[15] !== g ? (h = {
1543
+ e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
1518
1544
  queryKey: p,
1519
- queryFn: f,
1545
+ queryFn: d,
1520
1546
  enabled: g
1521
- }, e[13] = p, e[14] = f, e[15] = g, e[16] = h) : h = e[16];
1522
- const v = re(h);
1523
- let d;
1524
- return e[17] !== v ? (d = {
1525
- namespaces: v
1526
- }, e[17] = v, e[18] = d) : d = e[18], d;
1527
- }, Q = Fs(Ds, "WatchState");
1528
- function mt(t) {
1547
+ }, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
1548
+ const y = re(h);
1549
+ let f;
1550
+ return e[17] !== y ? (f = {
1551
+ namespaces: y
1552
+ }, e[17] = y, e[18] = f) : f = e[18], f;
1553
+ }, Q = Ls(xs, "WatchState");
1554
+ function vt(t) {
1529
1555
  const e = Object.values(t.states), r = e.length;
1530
1556
  let n = 0, s = 0, i = 0, o = 0;
1531
1557
  for (const c of e)
@@ -1544,21 +1570,21 @@ function mt(t) {
1544
1570
  progress: a
1545
1571
  };
1546
1572
  }
1547
- function tt(t) {
1573
+ function nt(t) {
1548
1574
  return t.watchedTotal > 0 && t.doneCount >= t.watchedTotal;
1549
1575
  }
1550
- function un(t) {
1551
- return t.some((e) => !tt(e));
1576
+ function fn(t) {
1577
+ return t.some((e) => !nt(e));
1552
1578
  }
1553
- function dn(t) {
1579
+ function pn(t) {
1554
1580
  const e = t.reduce((n, s) => n + s.watchedTotal, 0);
1555
1581
  return e === 0 ? 0 : t.reduce((n, s) => n + s.doneCount, 0) / e;
1556
1582
  }
1557
- function Ct(t) {
1583
+ function Dt(t) {
1558
1584
  return `${t.pluginId}/${t.connection}`;
1559
1585
  }
1560
- function fn(t, e) {
1561
- const r = Ct(e);
1586
+ function hn(t, e) {
1587
+ const r = Dt(e);
1562
1588
  t.has(r) || t.set(r, {
1563
1589
  states: {},
1564
1590
  pluginID: e.pluginId,
@@ -1567,8 +1593,8 @@ function fn(t, e) {
1567
1593
  const n = t.get(r);
1568
1594
  return n.states[e.resourceKey] = e.state, n;
1569
1595
  }
1570
- function vo() {
1571
- const t = $(49);
1596
+ function Io() {
1597
+ const t = q(49);
1572
1598
  let e;
1573
1599
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Set(), t[0] = e) : e = t[0];
1574
1600
  const [r, n] = Ie(e);
@@ -1581,100 +1607,100 @@ function vo() {
1581
1607
  let c;
1582
1608
  t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ new Map(), t[3] = c) : c = t[3];
1583
1609
  const p = pe(c);
1584
- let f;
1585
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ new Map(), t[4] = f) : f = t[4];
1586
- const [g, h] = Ie(f);
1587
- let v, d;
1588
- t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
1610
+ let d;
1611
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ new Map(), t[4] = d) : d = t[4];
1612
+ const [g, h] = Ie(d);
1613
+ let y, f;
1614
+ t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
1589
1615
  const U = Z("plugin/crash_recovery_failed", (K) => {
1590
- const z = K.data, L = z?.pluginID;
1591
- L && h((F) => {
1616
+ const z = K.data, $ = z?.pluginID;
1617
+ $ && h((F) => {
1592
1618
  const H = new Map(F);
1593
- return H.set(L, z.error ?? "Crash recovery failed"), H;
1619
+ return H.set($, z.error ?? "Crash recovery failed"), H;
1594
1620
  });
1595
1621
  }), B = Z("plugin/recovered", (K) => {
1596
- const L = K.data?.pluginID;
1597
- L && h((F) => {
1598
- if (!F.has(L))
1622
+ const $ = K.data?.pluginID;
1623
+ $ && h((F) => {
1624
+ if (!F.has($))
1599
1625
  return F;
1600
1626
  const H = new Map(F);
1601
- return H.delete(L), H;
1627
+ return H.delete($), H;
1602
1628
  });
1603
1629
  });
1604
1630
  return () => {
1605
1631
  U(), B();
1606
1632
  };
1607
- }, d = [], t[5] = v, t[6] = d) : (v = t[5], d = t[6]), De(v, d);
1608
- let m, y;
1609
- t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => {
1610
- Gn().then((U) => {
1633
+ }, f = [], t[5] = y, t[6] = f) : (y = t[5], f = t[6]), De(y, f);
1634
+ let v, m;
1635
+ t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
1636
+ jn().then((U) => {
1611
1637
  if (!U)
1612
1638
  return;
1613
1639
  const B = {}, K = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Map();
1614
- for (const [L, F] of Object.entries(U))
1640
+ for (const [$, F] of Object.entries(U))
1615
1641
  if (F) {
1616
- B[L] = F.map(ur);
1642
+ B[$] = F.map(pr);
1617
1643
  for (const H of F) {
1618
1644
  if (!H.started)
1619
1645
  continue;
1620
- const ue = `${L}/${H.connection.id}`;
1646
+ const ue = `${$}/${H.connection.id}`;
1621
1647
  K.add(ue);
1622
1648
  const de = {
1623
- pluginID: L,
1649
+ pluginID: $,
1624
1650
  connectionID: H.connection.id,
1625
1651
  states: {}
1626
1652
  };
1627
1653
  if (H.resources)
1628
1654
  for (const [Re, me] of Object.entries(H.resources))
1629
1655
  de.states[Re] = me;
1630
- p.current.set(ue, de), z.set(ue, mt(de));
1656
+ p.current.set(ue, de), z.set(ue, vt(de));
1631
1657
  }
1632
1658
  }
1633
1659
  o(B), n(K), a(z);
1634
- }).catch(lr);
1635
- }, y = [], t[7] = m, t[8] = y) : (m = t[7], y = t[8]), De(m, y);
1636
- let _, S;
1637
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = () => Z("connection/status", (B) => {
1660
+ }).catch(fr);
1661
+ }, m = [], t[7] = v, t[8] = m) : (v = t[7], m = t[8]), De(v, m);
1662
+ let _, b;
1663
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => Z("connection/status", (B) => {
1638
1664
  const K = B.data, z = `${K.pluginID}/${K.connectionID}`;
1639
- K.status === "DISCONNECTED" ? (n((L) => {
1640
- const F = new Set(L);
1665
+ K.status === "DISCONNECTED" ? (n(($) => {
1666
+ const F = new Set($);
1641
1667
  return F.delete(z), F;
1642
- }), a((L) => {
1643
- const F = new Map(L);
1668
+ }), a(($) => {
1669
+ const F = new Map($);
1644
1670
  return F.delete(z), F;
1645
- }), p.current.delete(z)) : n((L) => {
1646
- const F = new Set(L);
1671
+ }), p.current.delete(z)) : n(($) => {
1672
+ const F = new Set($);
1647
1673
  return F.add(z), F;
1648
- }), Qn().then((L) => {
1649
- if (!L)
1674
+ }), zn().then(($) => {
1675
+ if (!$)
1650
1676
  return;
1651
1677
  const F = {};
1652
- for (const [H, ue] of Object.entries(L))
1678
+ for (const [H, ue] of Object.entries($))
1653
1679
  ue != null && (F[H] = ue);
1654
1680
  o(F);
1655
- }).catch(ar);
1656
- }), _ = [], t[9] = _, t[10] = S) : (_ = t[9], S = t[10]), De(S, _);
1681
+ }).catch(dr);
1682
+ }), _ = [], t[9] = _, t[10] = b) : (_ = t[9], b = t[10]), De(b, _);
1657
1683
  let C;
1658
1684
  t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (U) => {
1659
- const B = U.data, K = Ct(B);
1685
+ const B = U.data, K = Dt(B);
1660
1686
  n((F) => {
1661
1687
  if (F.has(K))
1662
1688
  return F;
1663
1689
  const H = new Set(F);
1664
1690
  return H.add(K), H;
1665
1691
  });
1666
- const z = fn(p.current, B), L = mt(z);
1692
+ const z = hn(p.current, B), $ = vt(z);
1667
1693
  a((F) => {
1668
1694
  const H = new Map(F);
1669
- return H.set(K, L), H;
1695
+ return H.set(K, $), H;
1670
1696
  });
1671
1697
  }, t[11] = C) : C = t[11];
1672
1698
  const E = C;
1673
1699
  let I, w;
1674
1700
  t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => Z("watch/STATE", E), w = [E], t[12] = I, t[13] = w) : (I = t[12], w = t[13]), De(I, w);
1675
- const D = cr, x = ir;
1676
- let O;
1677
- t[14] !== g ? (O = async (U) => {
1701
+ const D = ur, x = lr;
1702
+ let P;
1703
+ t[14] !== g ? (P = async (U) => {
1678
1704
  const B = g.get(U);
1679
1705
  h((K) => {
1680
1706
  if (!K.has(U))
@@ -1683,26 +1709,26 @@ function vo() {
1683
1709
  return z.delete(U), z;
1684
1710
  });
1685
1711
  try {
1686
- await jn(U);
1712
+ await Bn(U);
1687
1713
  } catch (K) {
1688
1714
  const z = K;
1689
- throw h((L) => {
1690
- const F = new Map(L);
1715
+ throw h(($) => {
1716
+ const F = new Map($);
1691
1717
  return F.set(U, B ?? "Reload failed"), F;
1692
1718
  }), z;
1693
1719
  }
1694
- }, t[14] = g, t[15] = O) : O = t[15];
1695
- const A = O;
1696
- let T, k;
1720
+ }, t[14] = g, t[15] = P) : P = t[15];
1721
+ const T = P;
1722
+ let A, k;
1697
1723
  if (t[16] !== i || t[17] !== g || t[18] !== r || t[19] !== l) {
1698
- T = [];
1724
+ A = [];
1699
1725
  for (const U of r) {
1700
- const [B, K] = U.split("/", 2), L = (i[B] ?? []).find((Re) => Re.id === K), F = l.get(U), H = F != null && !tt(F), ue = F != null && F.errorCount > 0, de = g.get(B);
1701
- T.push({
1726
+ const [B, K] = U.split("/", 2), $ = (i[B] ?? []).find((Re) => Re.id === K), F = l.get(U), H = F != null && !nt(F), ue = F != null && F.errorCount > 0, de = g.get(B);
1727
+ A.push({
1702
1728
  pluginID: B,
1703
1729
  connectionID: K,
1704
- name: L?.name ?? K,
1705
- avatar: L?.avatar ?? "",
1730
+ name: $?.name ?? K,
1731
+ avatar: $?.avatar ?? "",
1706
1732
  isStarted: !0,
1707
1733
  sync: F,
1708
1734
  isSyncing: H,
@@ -1712,30 +1738,30 @@ function vo() {
1712
1738
  });
1713
1739
  }
1714
1740
  k = /* @__PURE__ */ new Map();
1715
- for (const U of T) {
1741
+ for (const U of A) {
1716
1742
  const B = k.get(U.pluginID) ?? [];
1717
1743
  B.push(U), k.set(U.pluginID, B);
1718
1744
  }
1719
- t[16] = i, t[17] = g, t[18] = r, t[19] = l, t[20] = T, t[21] = k;
1745
+ t[16] = i, t[17] = g, t[18] = r, t[19] = l, t[20] = A, t[21] = k;
1720
1746
  } else
1721
- T = t[20], k = t[21];
1747
+ A = t[20], k = t[21];
1722
1748
  let M, W, j, V, Y, G, J, te;
1723
- if (t[22] !== T || t[23] !== k || t[24] !== l) {
1749
+ if (t[22] !== A || t[23] !== k || t[24] !== l) {
1724
1750
  const U = Array.from(l.values());
1725
1751
  let B;
1726
- t[33] !== T ? (B = T.filter(or), t[33] = T, t[34] = B) : B = t[34];
1752
+ t[33] !== A ? (B = A.filter(ar), t[33] = A, t[34] = B) : B = t[34];
1727
1753
  const K = B;
1728
1754
  let z;
1729
- t[35] !== T ? (z = T.filter(rr), t[35] = T, t[36] = z) : z = t[36];
1730
- const L = z;
1755
+ t[35] !== A ? (z = A.filter(cr), t[35] = A, t[36] = z) : z = t[36];
1756
+ const $ = z;
1731
1757
  let F;
1732
- t[37] !== T ? (F = T.filter(sr), t[37] = T, t[38] = F) : F = t[38];
1758
+ t[37] !== A ? (F = A.filter(ir), t[37] = A, t[38] = F) : F = t[38];
1733
1759
  const H = F;
1734
- M = T, W = k, j = T.length, V = K.length, Y = L.length, G = H.length, J = un(U), te = dn(U), t[22] = T, t[23] = k, t[24] = l, t[25] = M, t[26] = W, t[27] = j, t[28] = V, t[29] = Y, t[30] = G, t[31] = J, t[32] = te;
1760
+ M = A, W = k, j = A.length, V = K.length, Y = $.length, G = H.length, J = fn(U), te = pn(U), t[22] = A, t[23] = k, t[24] = l, t[25] = M, t[26] = W, t[27] = j, t[28] = V, t[29] = Y, t[30] = G, t[31] = J, t[32] = te;
1735
1761
  } else
1736
1762
  M = t[25], W = t[26], j = t[27], V = t[28], Y = t[29], G = t[30], J = t[31], te = t[32];
1737
1763
  let ye;
1738
- return t[39] !== A || t[40] !== M || t[41] !== W || t[42] !== j || t[43] !== V || t[44] !== Y || t[45] !== G || t[46] !== J || t[47] !== te ? (ye = {
1764
+ return t[39] !== T || t[40] !== M || t[41] !== W || t[42] !== j || t[43] !== V || t[44] !== Y || t[45] !== G || t[46] !== J || t[47] !== te ? (ye = {
1739
1765
  entries: M,
1740
1766
  grouped: W,
1741
1767
  connectedCount: j,
@@ -1746,32 +1772,32 @@ function vo() {
1746
1772
  aggregateProgress: te,
1747
1773
  disconnect: D,
1748
1774
  retryWatch: x,
1749
- retryPlugin: A
1750
- }, t[39] = A, t[40] = M, t[41] = W, t[42] = j, t[43] = V, t[44] = Y, t[45] = G, t[46] = J, t[47] = te, t[48] = ye) : ye = t[48], ye;
1775
+ retryPlugin: T
1776
+ }, t[39] = T, t[40] = M, t[41] = W, t[42] = j, t[43] = V, t[44] = Y, t[45] = G, t[46] = J, t[47] = te, t[48] = ye) : ye = t[48], ye;
1751
1777
  }
1752
- function sr(t) {
1778
+ function ir(t) {
1753
1779
  return t.pluginFailed;
1754
1780
  }
1755
- function rr(t) {
1781
+ function cr(t) {
1756
1782
  return t.hasErrors;
1757
1783
  }
1758
- function or(t) {
1784
+ function ar(t) {
1759
1785
  return t.isSyncing;
1760
1786
  }
1761
- async function ir(t, e) {
1762
- await Mt(t, e);
1787
+ async function lr(t, e) {
1788
+ await Wt(t, e);
1763
1789
  }
1764
- async function cr(t, e) {
1765
- await ln(t, e);
1790
+ async function ur(t, e) {
1791
+ await dn(t, e);
1766
1792
  }
1767
- function ar() {
1793
+ function dr() {
1768
1794
  }
1769
- function lr() {
1795
+ function fr() {
1770
1796
  }
1771
- function ur(t) {
1797
+ function pr(t) {
1772
1798
  return t.connection;
1773
1799
  }
1774
- const dr = {
1800
+ const hr = {
1775
1801
  display: "flex",
1776
1802
  alignItems: "center",
1777
1803
  justifyContent: "center",
@@ -1780,34 +1806,34 @@ const dr = {
1780
1806
  padding: 24,
1781
1807
  boxSizing: "border-box",
1782
1808
  color: "var(--ov-color-fg-default)"
1783
- }, fr = {
1809
+ }, gr = {
1784
1810
  width: "100%",
1785
1811
  maxWidth: 560,
1786
1812
  minWidth: 0,
1787
1813
  display: "flex",
1788
1814
  flexDirection: "column",
1789
1815
  gap: 16
1790
- }, pr = {
1816
+ }, yr = {
1791
1817
  display: "flex",
1792
1818
  alignItems: "center",
1793
1819
  gap: 12
1794
- }, hr = {
1820
+ }, mr = {
1795
1821
  margin: 0,
1796
1822
  fontSize: "1.125rem",
1797
1823
  fontWeight: 600
1798
- }, gr = {
1824
+ }, vr = {
1799
1825
  display: "flex",
1800
1826
  flexWrap: "wrap",
1801
1827
  gap: 8
1802
- }, dt = {
1828
+ }, ft = {
1803
1829
  margin: 0,
1804
1830
  whiteSpace: "pre-wrap",
1805
1831
  overflowWrap: "anywhere"
1806
- }, yr = {
1832
+ }, _r = {
1807
1833
  width: 20,
1808
1834
  height: 20,
1809
1835
  flexShrink: 0
1810
- }, mr = {
1836
+ }, br = {
1811
1837
  checking: {
1812
1838
  title: "Checking connection",
1813
1839
  description: "Checking whether this connection is ready before loading resources."
@@ -1837,68 +1863,68 @@ const dr = {
1837
1863
  description: "Check the connection settings and network, then connect again or retry the check."
1838
1864
  }
1839
1865
  };
1840
- function vr(t) {
1841
- const e = $(44), {
1866
+ function Sr(t) {
1867
+ const e = q(44), {
1842
1868
  state: r,
1843
1869
  connectionName: n,
1844
1870
  connectionDetails: s,
1845
1871
  onEditConnection: i,
1846
1872
  onBack: o,
1847
1873
  backLabel: u
1848
- } = t, l = u === void 0 ? "Back to connections" : u, a = Cn();
1874
+ } = t, l = u === void 0 ? "Back to connections" : u, a = Dn();
1849
1875
  if (r.phase === "connected")
1850
1876
  return null;
1851
- const c = r.phase === "checking" || r.phase === "connecting", p = mr[r.phase], f = n ?? r.connection?.name;
1877
+ const c = r.phase === "checking" || r.phase === "connecting", p = br[r.phase], d = n ?? r.connection?.name;
1852
1878
  let g;
1853
- e[0] !== s || e[1] !== f ? (g = s ?? (f && /* @__PURE__ */ N(Ae, { size: "sm", tone: "muted", style: dt, children: f })), e[0] = s, e[1] = f, e[2] = g) : g = e[2];
1879
+ e[0] !== s || e[1] !== d ? (g = s ?? (d && /* @__PURE__ */ N(Te, { size: "sm", tone: "muted", style: ft, children: d })), e[0] = s, e[1] = d, e[2] = g) : g = e[2];
1854
1880
  let h;
1855
- e[3] !== c ? (h = c && /* @__PURE__ */ N(Cs, { style: yr, "aria-hidden": "true" }), e[3] = c, e[4] = h) : h = e[4];
1856
- let v;
1857
- e[5] !== a || e[6] !== p.title ? (v = /* @__PURE__ */ N("h2", { id: a, style: hr, children: p.title }), e[5] = a, e[6] = p.title, e[7] = v) : v = e[7];
1858
- let d;
1859
- e[8] !== h || e[9] !== v ? (d = /* @__PURE__ */ ce("div", { style: pr, role: "status", "aria-live": "polite", children: [
1881
+ e[3] !== c ? (h = c && /* @__PURE__ */ N(Ds, { style: _r, "aria-hidden": "true" }), e[3] = c, e[4] = h) : h = e[4];
1882
+ let y;
1883
+ e[5] !== a || e[6] !== p.title ? (y = /* @__PURE__ */ N("h2", { id: a, style: mr, children: p.title }), e[5] = a, e[6] = p.title, e[7] = y) : y = e[7];
1884
+ let f;
1885
+ e[8] !== h || e[9] !== y ? (f = /* @__PURE__ */ ce("div", { style: yr, role: "status", "aria-live": "polite", children: [
1860
1886
  h,
1861
- v
1862
- ] }), e[8] = h, e[9] = v, e[10] = d) : d = e[10];
1887
+ y
1888
+ ] }), e[8] = h, e[9] = y, e[10] = f) : f = e[10];
1889
+ let v;
1890
+ e[11] !== p.description ? (v = /* @__PURE__ */ N(Te, { as: "p", size: "sm", tone: "muted", style: ft, children: p.description }), e[11] = p.description, e[12] = v) : v = e[12];
1863
1891
  let m;
1864
- e[11] !== p.description ? (m = /* @__PURE__ */ N(Ae, { as: "p", size: "sm", tone: "muted", style: dt, children: p.description }), e[11] = p.description, e[12] = m) : m = e[12];
1865
- let y;
1866
- e[13] !== c || e[14] !== r.message ? (y = r.message && /* @__PURE__ */ N(Ae, { as: "p", size: "sm", style: dt, role: c ? "status" : "alert", children: r.message }), e[13] = c, e[14] = r.message, e[15] = y) : y = e[15];
1892
+ e[13] !== c || e[14] !== r.message ? (m = r.message && /* @__PURE__ */ N(Te, { as: "p", size: "sm", style: ft, role: c ? "status" : "alert", children: r.message }), e[13] = c, e[14] = r.message, e[15] = m) : m = e[15];
1867
1893
  let _;
1868
1894
  e[16] !== c || e[17] !== r ? (_ = r.phase !== "not-found" && /* @__PURE__ */ N(Fe, { size: "sm", variant: "solid", color: "brand", disabled: c, onClick: () => {
1869
1895
  r.connect();
1870
1896
  }, children: "Connect and continue" }), e[16] = c, e[17] = r, e[18] = _) : _ = e[18];
1871
- const S = r.phase === "checking";
1897
+ const b = r.phase === "checking";
1872
1898
  let C;
1873
1899
  e[19] !== r ? (C = () => {
1874
1900
  r.retry();
1875
1901
  }, e[19] = r, e[20] = C) : C = e[20];
1876
1902
  let E;
1877
- e[21] !== C || e[22] !== S ? (E = /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", disabled: S, onClick: C, children: "Retry check" }), e[21] = C, e[22] = S, e[23] = E) : E = e[23];
1903
+ e[21] !== C || e[22] !== b ? (E = /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", disabled: b, onClick: C, children: "Retry check" }), e[21] = C, e[22] = b, e[23] = E) : E = e[23];
1878
1904
  let I;
1879
1905
  e[24] !== i ? (I = i && /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", onClick: i, children: "Edit connection" }), e[24] = i, e[25] = I) : I = e[25];
1880
1906
  let w;
1881
1907
  e[26] !== l || e[27] !== o ? (w = o && /* @__PURE__ */ N(Fe, { size: "sm", variant: "outline", color: "neutral", onClick: o, children: l }), e[26] = l, e[27] = o, e[28] = w) : w = e[28];
1882
1908
  let D;
1883
- e[29] !== E || e[30] !== I || e[31] !== w || e[32] !== _ ? (D = /* @__PURE__ */ ce("div", { style: gr, children: [
1909
+ e[29] !== E || e[30] !== I || e[31] !== w || e[32] !== _ ? (D = /* @__PURE__ */ ce("div", { style: vr, children: [
1884
1910
  _,
1885
1911
  E,
1886
1912
  I,
1887
1913
  w
1888
1914
  ] }), e[29] = E, e[30] = I, e[31] = w, e[32] = _, e[33] = D) : D = e[33];
1889
1915
  let x;
1890
- e[34] !== D || e[35] !== g || e[36] !== d || e[37] !== m || e[38] !== y ? (x = /* @__PURE__ */ ce("div", { style: fr, children: [
1916
+ e[34] !== D || e[35] !== g || e[36] !== f || e[37] !== v || e[38] !== m ? (x = /* @__PURE__ */ ce("div", { style: gr, children: [
1891
1917
  g,
1892
- d,
1918
+ f,
1919
+ v,
1893
1920
  m,
1894
- y,
1895
1921
  D
1896
- ] }), e[34] = D, e[35] = g, e[36] = d, e[37] = m, e[38] = y, e[39] = x) : x = e[39];
1897
- let O;
1898
- return e[40] !== c || e[41] !== a || e[42] !== x ? (O = /* @__PURE__ */ N("section", { style: dr, "aria-labelledby": a, "aria-busy": c, children: x }), e[40] = c, e[41] = a, e[42] = x, e[43] = O) : O = e[43], O;
1922
+ ] }), e[34] = D, e[35] = g, e[36] = f, e[37] = v, e[38] = m, e[39] = x) : x = e[39];
1923
+ let P;
1924
+ return e[40] !== c || e[41] !== a || e[42] !== x ? (P = /* @__PURE__ */ N("section", { style: hr, "aria-labelledby": a, "aria-busy": c, children: x }), e[40] = c, e[41] = a, e[42] = x, e[43] = P) : P = e[43], P;
1899
1925
  }
1900
- function _r(t) {
1901
- const e = $(9), {
1926
+ function Er(t) {
1927
+ const e = q(9), {
1902
1928
  pluginID: r,
1903
1929
  connectionID: n,
1904
1930
  children: s,
@@ -1912,30 +1938,30 @@ function _r(t) {
1912
1938
  const u = ge(o);
1913
1939
  if (u.phase !== "connected") {
1914
1940
  let a;
1915
- return e[3] !== n || e[4] !== i || e[5] !== u ? (a = i ? i(u) : /* @__PURE__ */ N(vr, { state: u, connectionName: u.connection?.name || n }), e[3] = n, e[4] = i, e[5] = u, e[6] = a) : a = e[6], a;
1941
+ return e[3] !== n || e[4] !== i || e[5] !== u ? (a = i ? i(u) : /* @__PURE__ */ N(Sr, { state: u, connectionName: u.connection?.name || n }), e[3] = n, e[4] = i, e[5] = u, e[6] = a) : a = e[6], a;
1916
1942
  }
1917
1943
  let l;
1918
- return e[7] !== s ? (l = /* @__PURE__ */ N(_t, { children: s }), e[7] = s, e[8] = l) : l = e[8], l;
1944
+ return e[7] !== s ? (l = /* @__PURE__ */ N(bt, { children: s }), e[7] = s, e[8] = l) : l = e[8], l;
1919
1945
  }
1920
- function _o(t) {
1921
- const e = $(7), r = ee(t.pluginID);
1946
+ function Do(t) {
1947
+ const e = q(7), r = ee(t.pluginID);
1922
1948
  let n;
1923
1949
  e[0] !== r || e[1] !== t.connectionID ? (n = JSON.stringify([r, t.connectionID]), e[0] = r, e[1] = t.connectionID, e[2] = n) : n = e[2];
1924
1950
  let s;
1925
- return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */ wn(_r, { ...t, pluginID: r, key: n }), e[3] = r, e[4] = t, e[5] = n, e[6] = s) : s = e[6], s;
1951
+ return e[3] !== r || e[4] !== t || e[5] !== n ? (s = /* @__PURE__ */ In(Er, { ...t, pluginID: r, key: n }), e[3] = r, e[4] = t, e[5] = n, e[6] = s) : s = e[6], s;
1926
1952
  }
1927
- function Sr(t, e) {
1953
+ function wr(t, e) {
1928
1954
  return e === null ? t === null : Array.isArray(e) ? Array.isArray(t) : typeof e == "object" ? typeof t == "object" && t !== null && !Array.isArray(t) : typeof t == typeof e;
1929
1955
  }
1930
- function So(t, e, r) {
1931
- const n = $(29), s = ee(t), i = be();
1956
+ function Ro(t, e, r) {
1957
+ const n = q(29), s = ee(t), i = Se();
1932
1958
  let o;
1933
1959
  n[0] !== e || n[1] !== s ? (o = [s, "data", e], n[0] = e, n[1] = s, n[2] = o) : o = n[2];
1934
1960
  const u = o;
1935
1961
  let l;
1936
1962
  n[3] !== r || n[4] !== e || n[5] !== s ? (l = async () => {
1937
- const S = await zn(s, e);
1938
- return S == null ? r : Sr(S, r) ? S : (console.warn(`[usePluginData] stored value for "${e}" has unexpected type (expected ${Array.isArray(r) ? "array" : typeof r}, got ${Array.isArray(S) ? "array" : typeof S}). Using default.`), r);
1963
+ const b = await Hn(s, e);
1964
+ return b == null ? r : wr(b, r) ? b : (console.warn(`[usePluginData] stored value for "${e}" has unexpected type (expected ${Array.isArray(r) ? "array" : typeof r}, got ${Array.isArray(b) ? "array" : typeof b}). Using default.`), r);
1939
1965
  }, n[3] = r, n[4] = e, n[5] = s, n[6] = l) : l = n[6];
1940
1966
  let a;
1941
1967
  n[7] !== u || n[8] !== l ? (a = {
@@ -1944,55 +1970,55 @@ function So(t, e, r) {
1944
1970
  }, n[7] = u, n[8] = l, n[9] = a) : a = n[9];
1945
1971
  const c = re(a);
1946
1972
  let p;
1947
- n[10] !== e || n[11] !== s ? (p = async (S) => {
1948
- await Bn(s, e, S);
1973
+ n[10] !== e || n[11] !== s ? (p = async (b) => {
1974
+ await Jn(s, e, b);
1949
1975
  }, n[10] = e, n[11] = s, n[12] = p) : p = n[12];
1950
- let f, g, h;
1951
- n[13] !== i || n[14] !== u ? (f = async (S) => {
1976
+ let d, g, h;
1977
+ n[13] !== i || n[14] !== u ? (d = async (b) => {
1952
1978
  await i.cancelQueries({
1953
1979
  queryKey: u
1954
1980
  });
1955
1981
  const C = i.getQueryData(u);
1956
- return i.setQueryData(u, S), {
1982
+ return i.setQueryData(u, b), {
1957
1983
  previous: C
1958
1984
  };
1959
- }, g = (S, C, E) => {
1985
+ }, g = (b, C, E) => {
1960
1986
  E?.previous !== void 0 && i.setQueryData(u, E.previous);
1961
1987
  }, h = () => {
1962
1988
  i.invalidateQueries({
1963
1989
  queryKey: u
1964
1990
  });
1965
- }, n[13] = i, n[14] = u, n[15] = f, n[16] = g, n[17] = h) : (f = n[15], g = n[16], h = n[17]);
1966
- let v;
1967
- n[18] !== p || n[19] !== f || n[20] !== g || n[21] !== h ? (v = {
1991
+ }, n[13] = i, n[14] = u, n[15] = d, n[16] = g, n[17] = h) : (d = n[15], g = n[16], h = n[17]);
1992
+ let y;
1993
+ n[18] !== p || n[19] !== d || n[20] !== g || n[21] !== h ? (y = {
1968
1994
  mutationFn: p,
1969
- onMutate: f,
1995
+ onMutate: d,
1970
1996
  onError: g,
1971
1997
  onSettled: h
1972
- }, n[18] = p, n[19] = f, n[20] = g, n[21] = h, n[22] = v) : v = n[22];
1973
- const d = oe(v), m = c.data ?? r;
1974
- let y;
1975
- n[23] !== d ? (y = async (S) => {
1976
- await d.mutateAsync(S);
1977
- }, n[23] = d, n[24] = y) : y = n[24];
1998
+ }, n[18] = p, n[19] = d, n[20] = g, n[21] = h, n[22] = y) : y = n[22];
1999
+ const f = oe(y), v = c.data ?? r;
2000
+ let m;
2001
+ n[23] !== f ? (m = async (b) => {
2002
+ await f.mutateAsync(b);
2003
+ }, n[23] = f, n[24] = m) : m = n[24];
1978
2004
  let _;
1979
- return n[25] !== c.isLoading || n[26] !== m || n[27] !== y ? (_ = {
1980
- data: m,
1981
- update: y,
2005
+ return n[25] !== c.isLoading || n[26] !== v || n[27] !== m ? (_ = {
2006
+ data: v,
2007
+ update: m,
1982
2008
  isLoading: c.isLoading
1983
- }, n[25] = c.isLoading, n[26] = m, n[27] = y, n[28] = _) : _ = n[28], _;
2009
+ }, n[25] = c.isLoading, n[26] = v, n[27] = m, n[28] = _) : _ = n[28], _;
1984
2010
  }
1985
- const bo = () => {
1986
- const t = Ue(Ms);
2011
+ const xo = () => {
2012
+ const t = Ue(Ks);
1987
2013
  if (!t)
1988
2014
  throw new Error("useRightDrawer must be used within a RightDrawerProvider");
1989
2015
  return t;
1990
- }, pn = () => {
1991
- const t = Ue(qs);
2016
+ }, gn = () => {
2017
+ const t = Ue(Ws);
1992
2018
  if (t === void 0)
1993
2019
  throw new Error("useBottomDrawer must be used within a BottomDrawerProvider");
1994
2020
  return t;
1995
- }, Eo = ({
2021
+ }, Ao = ({
1996
2022
  pluginID: t
1997
2023
  }) => {
1998
2024
  const e = ee(t), {
@@ -2000,7 +2026,7 @@ const bo = () => {
2000
2026
  } = we(), {
2001
2027
  createTab: n,
2002
2028
  updateTab: s
2003
- } = pn();
2029
+ } = gn();
2004
2030
  return {
2005
2031
  createSession: oe({
2006
2032
  mutationFn: async ({
@@ -2026,13 +2052,13 @@ const bo = () => {
2026
2052
  recovery: c
2027
2053
  }
2028
2054
  });
2029
- const f = Rs.createFrom({
2055
+ const d = As.createFrom({
2030
2056
  command: ["/bin/bash"],
2031
2057
  tty: !0,
2032
2058
  ...a
2033
2059
  });
2034
2060
  try {
2035
- const g = await Hn(e, o, f);
2061
+ const g = await Vn(e, o, d);
2036
2062
  if (!g) throw new Error("Failed to create session: null response");
2037
2063
  return s({
2038
2064
  id: p
@@ -2050,7 +2076,7 @@ const bo = () => {
2050
2076
  }
2051
2077
  }), g;
2052
2078
  } catch (g) {
2053
- const h = Se(g);
2079
+ const h = be(g);
2054
2080
  return s({
2055
2081
  id: p
2056
2082
  }, {
@@ -2074,32 +2100,32 @@ const bo = () => {
2074
2100
  }
2075
2101
  }).mutateAsync
2076
2102
  };
2077
- }, wo = (t) => {
2078
- const e = $(15), {
2103
+ }, To = (t) => {
2104
+ const e = q(15), {
2079
2105
  pluginID: r
2080
2106
  } = t, n = ee(r), {
2081
2107
  showSnackbar: s
2082
2108
  } = we(), {
2083
2109
  createTab: i
2084
- } = pn();
2110
+ } = gn();
2085
2111
  let o;
2086
2112
  e[0] !== i || e[1] !== n ? (o = async (h) => {
2087
2113
  const {
2088
- connectionID: v,
2089
- resourceKey: d,
2090
- resourceID: m,
2091
- resourceData: y,
2114
+ connectionID: y,
2115
+ resourceKey: f,
2116
+ resourceID: v,
2117
+ resourceData: m,
2092
2118
  icon: _,
2093
- label: S,
2119
+ label: b,
2094
2120
  target: C,
2095
2121
  follow: E,
2096
2122
  tailLines: I,
2097
2123
  params: w
2098
- } = h, D = E === void 0 ? !0 : E, x = I === void 0 ? 1e3 : I, O = xs.createFrom({
2099
- resource_key: d,
2100
- resource_id: m,
2101
- resource_data: y,
2102
- options: Ts.createFrom({
2124
+ } = h, D = E === void 0 ? !0 : E, x = I === void 0 ? 1e3 : I, P = Ts.createFrom({
2125
+ resource_key: f,
2126
+ resource_id: v,
2127
+ resource_data: m,
2128
+ options: Ns.createFrom({
2103
2129
  target: C ?? "",
2104
2130
  follow: D,
2105
2131
  include_previous: !1,
@@ -2110,15 +2136,15 @@ const bo = () => {
2110
2136
  include_source_events: !0,
2111
2137
  params: w ?? {}
2112
2138
  })
2113
- }), A = await Jn(n, v, O);
2114
- if (!A)
2139
+ }), T = await Yn(n, y, P);
2140
+ if (!T)
2115
2141
  throw new Error("Failed to create log session: null response");
2116
2142
  return i({
2117
- id: A.id,
2118
- title: S ?? `Logs ${A.id.substring(0, 8)}`,
2143
+ id: T.id,
2144
+ title: b ?? `Logs ${T.id.substring(0, 8)}`,
2119
2145
  variant: "logs",
2120
2146
  icon: _ ?? "LuLogs"
2121
- }), A;
2147
+ }), T;
2122
2148
  }, e[0] = i, e[1] = n, e[2] = o) : o = e[2];
2123
2149
  let u;
2124
2150
  e[3] !== s ? (u = le(s, "Failed to start log session"), e[3] = s, e[4] = u) : u = e[4];
@@ -2132,31 +2158,31 @@ const bo = () => {
2132
2158
  e[8] !== s ? (c = le(s, "Failed to close log session"), e[8] = s, e[9] = c) : c = e[9];
2133
2159
  let p;
2134
2160
  e[10] !== c ? (p = {
2135
- mutationFn: br,
2161
+ mutationFn: Cr,
2136
2162
  onError: c
2137
2163
  }, e[10] = c, e[11] = p) : p = e[11];
2138
- const f = oe(p);
2164
+ const d = oe(p);
2139
2165
  let g;
2140
- return e[12] !== f.mutateAsync || e[13] !== a.mutateAsync ? (g = {
2166
+ return e[12] !== d.mutateAsync || e[13] !== a.mutateAsync ? (g = {
2141
2167
  createLogSession: a.mutateAsync,
2142
- closeLogSession: f.mutateAsync
2143
- }, e[12] = f.mutateAsync, e[13] = a.mutateAsync, e[14] = g) : g = e[14], g;
2168
+ closeLogSession: d.mutateAsync
2169
+ }, e[12] = d.mutateAsync, e[13] = a.mutateAsync, e[14] = g) : g = e[14], g;
2144
2170
  };
2145
- async function br(t) {
2146
- await Vn(t);
2171
+ async function Cr(t) {
2172
+ await Zn(t);
2147
2173
  }
2148
- const Co = () => {
2149
- const t = $(1);
2174
+ const No = () => {
2175
+ const t = q(1);
2150
2176
  let e;
2151
2177
  return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = {
2152
2178
  queryKey: ["metric", "providers"],
2153
- queryFn: Yn,
2179
+ queryFn: Xn,
2154
2180
  staleTime: 3e4
2155
2181
  }, t[0] = e) : e = t[0], re(e);
2156
- }, Er = (t) => {
2157
- const e = $(7);
2182
+ }, Ir = (t) => {
2183
+ const e = q(7);
2158
2184
  let r, n;
2159
- e[0] !== t ? (r = ["metric", "providers", t], n = () => Zn(t), e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
2185
+ e[0] !== t ? (r = ["metric", "providers", t], n = () => es(t), e[0] = t, e[1] = r, e[2] = n) : (r = e[1], n = e[2]);
2160
2186
  const s = !!t;
2161
2187
  let i;
2162
2188
  return e[3] !== r || e[4] !== n || e[5] !== s ? (i = {
@@ -2165,8 +2191,8 @@ const Co = () => {
2165
2191
  enabled: s,
2166
2192
  staleTime: 3e4
2167
2193
  }, e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], re(i);
2168
- }, Io = (t) => {
2169
- const e = $(47), {
2194
+ }, Po = (t) => {
2195
+ const e = q(47), {
2170
2196
  connectionID: r,
2171
2197
  resourceKey: n,
2172
2198
  resourceID: s,
@@ -2177,44 +2203,44 @@ const Co = () => {
2177
2203
  timeRange: a,
2178
2204
  refreshInterval: c,
2179
2205
  enabled: p
2180
- } = t, f = i === void 0 ? "" : i;
2206
+ } = t, d = i === void 0 ? "" : i;
2181
2207
  let g;
2182
2208
  e[0] !== o ? (g = o === void 0 ? {} : o, e[0] = o, e[1] = g) : g = e[1];
2183
2209
  const h = g;
2184
- let v;
2185
- e[2] !== u ? (v = u === void 0 ? [] : u, e[2] = u, e[3] = v) : v = e[3];
2186
- const d = v, m = l === void 0 ? 0 : l, y = c === void 0 ? 0 : c, _ = p === void 0 ? !0 : p, {
2187
- data: S,
2210
+ let y;
2211
+ e[2] !== u ? (y = u === void 0 ? [] : u, e[2] = u, e[3] = y) : y = e[3];
2212
+ const f = y, v = l === void 0 ? 0 : l, m = c === void 0 ? 0 : c, _ = p === void 0 ? !0 : p, {
2213
+ data: b,
2188
2214
  isLoading: C
2189
- } = Er(n);
2215
+ } = Ir(n);
2190
2216
  let E;
2191
- e[4] !== S ? (E = S ?? [], e[4] = S, e[5] = E) : E = e[5];
2217
+ e[4] !== b ? (E = b ?? [], e[4] = b, e[5] = E) : E = e[5];
2192
2218
  const I = E, w = a ? Math.max(Math.floor((a.end.getTime() - a.start.getTime()) / 250), 15e3) * 1e6 : 0;
2193
2219
  let D;
2194
2220
  e[6] !== a?.start ? (D = a?.start?.getTime(), e[6] = a?.start, e[7] = D) : D = e[7];
2195
2221
  let x;
2196
2222
  e[8] !== a?.end ? (x = a?.end?.getTime(), e[8] = a?.end, e[9] = x) : x = e[9];
2197
- let O;
2198
- e[10] !== r || e[11] !== d || e[12] !== s || e[13] !== n || e[14] !== f || e[15] !== m || e[16] !== x || e[17] !== D ? (O = ["metric", "query", r, n, s, f, d, m, D, x], e[10] = r, e[11] = d, e[12] = s, e[13] = n, e[14] = f, e[15] = m, e[16] = x, e[17] = D, e[18] = O) : O = e[18];
2199
- let A;
2200
- e[19] !== r || e[20] !== d || e[21] !== h || e[22] !== s || e[23] !== n || e[24] !== f || e[25] !== m || e[26] !== w || e[27] !== a?.end || e[28] !== a?.start ? (A = async () => {
2201
- const J = await Xn(r, n, s, f, h, d, m, (a?.start ?? /* @__PURE__ */ new Date(0)).toISOString(), (a?.end ?? /* @__PURE__ */ new Date(0)).toISOString(), w), te = {};
2223
+ let P;
2224
+ e[10] !== r || e[11] !== f || e[12] !== s || e[13] !== n || e[14] !== d || e[15] !== v || e[16] !== x || e[17] !== D ? (P = ["metric", "query", r, n, s, d, f, v, D, x], e[10] = r, e[11] = f, e[12] = s, e[13] = n, e[14] = d, e[15] = v, e[16] = x, e[17] = D, e[18] = P) : P = e[18];
2225
+ let T;
2226
+ e[19] !== r || e[20] !== f || e[21] !== h || e[22] !== s || e[23] !== n || e[24] !== d || e[25] !== v || e[26] !== w || e[27] !== a?.end || e[28] !== a?.start ? (T = async () => {
2227
+ const J = await ts(r, n, s, d, h, f, v, (a?.start ?? /* @__PURE__ */ new Date(0)).toISOString(), (a?.end ?? /* @__PURE__ */ new Date(0)).toISOString(), w), te = {};
2202
2228
  for (const [ye, U] of Object.entries(J))
2203
2229
  U != null && (te[ye] = U);
2204
2230
  return te;
2205
- }, e[19] = r, e[20] = d, e[21] = h, e[22] = s, e[23] = n, e[24] = f, e[25] = m, e[26] = w, e[27] = a?.end, e[28] = a?.start, e[29] = A) : A = e[29];
2206
- let T;
2207
- e[30] !== r || e[31] !== _ || e[32] !== I || e[33] !== s || e[34] !== n ? (T = _ && !!r && !!n && (n.startsWith("cluster::") || !!s) && I.length > 0, e[30] = r, e[31] = _, e[32] = I, e[33] = s, e[34] = n, e[35] = T) : T = e[35];
2208
- const k = y > 0 ? y : void 0;
2231
+ }, e[19] = r, e[20] = f, e[21] = h, e[22] = s, e[23] = n, e[24] = d, e[25] = v, e[26] = w, e[27] = a?.end, e[28] = a?.start, e[29] = T) : T = e[29];
2232
+ let A;
2233
+ e[30] !== r || e[31] !== _ || e[32] !== I || e[33] !== s || e[34] !== n ? (A = _ && !!r && !!n && (n.startsWith("cluster::") || !!s) && I.length > 0, e[30] = r, e[31] = _, e[32] = I, e[33] = s, e[34] = n, e[35] = A) : A = e[35];
2234
+ const k = m > 0 ? m : void 0;
2209
2235
  let M;
2210
- e[36] !== O || e[37] !== A || e[38] !== T || e[39] !== k ? (M = {
2211
- queryKey: O,
2212
- queryFn: A,
2213
- enabled: T,
2236
+ e[36] !== P || e[37] !== T || e[38] !== A || e[39] !== k ? (M = {
2237
+ queryKey: P,
2238
+ queryFn: T,
2239
+ enabled: A,
2214
2240
  refetchInterval: k,
2215
2241
  staleTime: 5e3,
2216
- placeholderData: qt
2217
- }, e[36] = O, e[37] = A, e[38] = T, e[39] = k, e[40] = M) : M = e[40];
2242
+ placeholderData: Ut
2243
+ }, e[36] = P, e[37] = T, e[38] = A, e[39] = k, e[40] = M) : M = e[40];
2218
2244
  const W = re(M), j = W.data ?? void 0, V = C || W.isLoading, Y = W.error;
2219
2245
  let G;
2220
2246
  return e[41] !== W.refetch || e[42] !== I || e[43] !== j || e[44] !== V || e[45] !== Y ? (G = {
@@ -2224,21 +2250,21 @@ const Co = () => {
2224
2250
  error: Y,
2225
2251
  refetch: W.refetch
2226
2252
  }, e[41] = W.refetch, e[42] = I, e[43] = j, e[44] = V, e[45] = Y, e[46] = G) : G = e[46], G;
2227
- }, wr = {}, Do = (t) => {
2253
+ }, Dr = {}, Oo = (t) => {
2228
2254
  const {
2229
2255
  pluginID: e,
2230
2256
  connectionID: r,
2231
2257
  resourceKey: n,
2232
2258
  resourceID: s,
2233
2259
  resourceNamespace: i = "",
2234
- resourceData: o = wr,
2260
+ resourceData: o = Dr,
2235
2261
  metricIDs: u = [],
2236
2262
  interval: l = 1e4,
2237
2263
  enabled: a = !0
2238
- } = t, c = ee(e), [p, f] = Ie(null), [g, h] = Ie(null), [v, d] = Ie(!1), [m, y] = Ie(null), _ = pe(null), S = Ze(async () => {
2264
+ } = t, c = ee(e), [p, d] = Ie(null), [g, h] = Ie(null), [y, f] = Ie(!1), [v, m] = Ie(null), _ = pe(null), b = Xe(async () => {
2239
2265
  if (!(!a || !c || !r || !n || !s))
2240
2266
  try {
2241
- const E = await es(c, r, {
2267
+ const E = await ns(c, r, {
2242
2268
  resource_key: n,
2243
2269
  resource_id: s,
2244
2270
  resource_namespace: i,
@@ -2247,58 +2273,58 @@ const Co = () => {
2247
2273
  interval: l * 1e6
2248
2274
  // ms to nanoseconds for Go time.Duration
2249
2275
  });
2250
- h(E), d(!0), y(null);
2276
+ h(E), f(!0), m(null);
2251
2277
  const I = Z(`core/metrics/data/${E}`, (D) => {
2252
2278
  const x = D.data;
2253
2279
  try {
2254
- const O = JSON.parse(x);
2255
- O.results && f(O.results);
2256
- } catch (O) {
2257
- console.error("Failed to parse metric stream data:", O);
2280
+ const P = JSON.parse(x);
2281
+ P.results && d(P.results);
2282
+ } catch (P) {
2283
+ console.error("Failed to parse metric stream data:", P);
2258
2284
  }
2259
2285
  }), w = Z(`core/metrics/error/${E}`, (D) => {
2260
2286
  const x = D.data;
2261
2287
  try {
2262
- const O = JSON.parse(x);
2263
- y(O.error || "Unknown error");
2288
+ const P = JSON.parse(x);
2289
+ m(P.error || "Unknown error");
2264
2290
  } catch {
2265
- y("Failed to parse metric stream error");
2291
+ m("Failed to parse metric stream error");
2266
2292
  }
2267
2293
  });
2268
2294
  _.current = () => {
2269
2295
  I(), w();
2270
2296
  };
2271
2297
  } catch (E) {
2272
- y(E instanceof Error ? E.message : String(E));
2298
+ m(E instanceof Error ? E.message : String(E));
2273
2299
  }
2274
- }, [c, r, n, s, i, o, u, l, a]), C = Ze(async () => {
2300
+ }, [c, r, n, s, i, o, u, l, a]), C = Xe(async () => {
2275
2301
  if (g)
2276
2302
  try {
2277
- await Tt(g);
2303
+ await Nt(g);
2278
2304
  } catch (E) {
2279
2305
  console.error("Failed to unsubscribe:", E);
2280
2306
  }
2281
- _.current && (_.current(), _.current = null), h(null), d(!1);
2307
+ _.current && (_.current(), _.current = null), h(null), f(!1);
2282
2308
  }, [g]);
2283
2309
  return De(() => () => {
2284
- g && Tt(g).catch(console.error), _.current && _.current();
2310
+ g && Nt(g).catch(console.error), _.current && _.current();
2285
2311
  }, [g]), {
2286
2312
  data: p,
2287
2313
  subscriptionID: g,
2288
- isStreaming: v,
2289
- error: m,
2290
- start: S,
2314
+ isStreaming: y,
2315
+ error: v,
2316
+ start: b,
2291
2317
  stop: C
2292
2318
  };
2293
2319
  }, Me = ["networker", "portforward", "all-sessions"];
2294
- function Ro() {
2295
- const t = $(17), {
2320
+ function Fo() {
2321
+ const t = q(17), {
2296
2322
  showSnackbar: e
2297
- } = we(), r = be();
2323
+ } = we(), r = Se();
2298
2324
  let n;
2299
2325
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
2300
2326
  queryKey: [...Me],
2301
- queryFn: Dr,
2327
+ queryFn: Ar,
2302
2328
  retry: !1
2303
2329
  }, t[0] = n) : n = t[0];
2304
2330
  const s = re(n);
@@ -2308,13 +2334,13 @@ function Ro() {
2308
2334
  r.invalidateQueries({
2309
2335
  queryKey: [...Me]
2310
2336
  });
2311
- }), v = Z("core/networker/portforward/closed", () => {
2337
+ }), y = Z("core/networker/portforward/closed", () => {
2312
2338
  r.invalidateQueries({
2313
2339
  queryKey: [...Me]
2314
2340
  });
2315
2341
  });
2316
2342
  return () => {
2317
- h(), v();
2343
+ h(), y();
2318
2344
  };
2319
2345
  }, o = [r], t[1] = r, t[2] = i, t[3] = o) : (i = t[2], o = t[3]), De(i, o);
2320
2346
  let u;
@@ -2330,35 +2356,35 @@ function Ro() {
2330
2356
  }, t[8] = r, t[9] = c) : c = t[9];
2331
2357
  let p;
2332
2358
  t[10] !== a || t[11] !== c ? (p = {
2333
- mutationFn: Ir,
2359
+ mutationFn: xr,
2334
2360
  onError: a,
2335
2361
  onSuccess: c
2336
2362
  }, t[10] = a, t[11] = c, t[12] = p) : p = t[12];
2337
- const f = oe(p);
2363
+ const d = oe(p);
2338
2364
  let g;
2339
- return t[13] !== l || t[14] !== f.mutateAsync || t[15] !== s ? (g = {
2365
+ return t[13] !== l || t[14] !== d.mutateAsync || t[15] !== s ? (g = {
2340
2366
  sessions: s,
2341
2367
  activeSessions: l,
2342
- closeSession: f.mutateAsync,
2343
- openInBrowser: Cr
2344
- }, t[13] = l, t[14] = f.mutateAsync, t[15] = s, t[16] = g) : g = t[16], g;
2368
+ closeSession: d.mutateAsync,
2369
+ openInBrowser: Rr
2370
+ }, t[13] = l, t[14] = d.mutateAsync, t[15] = s, t[16] = g) : g = t[16], g;
2345
2371
  }
2346
- function Cr(t) {
2347
- return jt(`http://localhost:${t}`);
2372
+ function Rr(t) {
2373
+ return Bt(`http://localhost:${t}`);
2348
2374
  }
2349
- async function Ir(t) {
2350
- return Ut(t);
2375
+ async function xr(t) {
2376
+ return Kt(t);
2351
2377
  }
2352
- async function Dr() {
2353
- return ts().catch(Rr);
2378
+ async function Ar() {
2379
+ return ss().catch(Tr);
2354
2380
  }
2355
- function Rr(t) {
2356
- if (Se(t).detail.includes("not found"))
2381
+ function Tr(t) {
2382
+ if (be(t).detail.includes("not found"))
2357
2383
  return [];
2358
2384
  throw t;
2359
2385
  }
2360
- function xo(t) {
2361
- const e = $(36), {
2386
+ function ko(t) {
2387
+ const e = q(36), {
2362
2388
  pluginID: r,
2363
2389
  connectionID: n,
2364
2390
  resourceID: s
@@ -2367,13 +2393,13 @@ function xo(t) {
2367
2393
  e[0] !== n || e[1] !== i || e[2] !== s ? (o = ["networker", "portforward", "sessions", i, n, s], e[0] = n, e[1] = i, e[2] = s, e[3] = o) : o = e[3];
2368
2394
  const u = o, {
2369
2395
  showSnackbar: l
2370
- } = we(), a = be();
2396
+ } = we(), a = Se();
2371
2397
  let c;
2372
- e[4] !== n || e[5] !== i || e[6] !== s || e[7] !== l ? (c = async () => ns(i, n, As.createFrom({
2398
+ e[4] !== n || e[5] !== i || e[6] !== s || e[7] !== l ? (c = async () => rs(i, n, Ps.createFrom({
2373
2399
  resource_id: s,
2374
2400
  connection_id: n
2375
2401
  })).catch((I) => {
2376
- const w = Se(I);
2402
+ const w = be(I);
2377
2403
  return w.detail.includes("not found") ? [] : (l({
2378
2404
  message: "Failed to fetch port forward sessions",
2379
2405
  status: "error",
@@ -2386,12 +2412,12 @@ function xo(t) {
2386
2412
  queryFn: c,
2387
2413
  retry: !1
2388
2414
  }, e[9] = u, e[10] = c, e[11] = p) : p = e[11];
2389
- const f = re(p);
2415
+ const d = re(p);
2390
2416
  let g;
2391
2417
  e[12] !== n || e[13] !== i ? (g = async (I) => {
2392
2418
  const {
2393
2419
  opts: w
2394
- } = I, D = Ns.createFrom({
2420
+ } = I, D = Os.createFrom({
2395
2421
  local_port: w.localPort || 0,
2396
2422
  remote_port: w.remotePort,
2397
2423
  protocol: w.protocol || "TCP",
@@ -2405,30 +2431,30 @@ function xo(t) {
2405
2431
  },
2406
2432
  labels: w.labels ?? {},
2407
2433
  params: w.parameters ?? {}
2408
- }), x = await ss(i, n, D);
2434
+ }), x = await os(i, n, D);
2409
2435
  if (!x)
2410
2436
  throw new Error("Failed to start port forwarding: null response");
2411
- return w.openInBrowser && jt(`http://localhost:${x.local_port}`), x;
2437
+ return w.openInBrowser && Bt(`http://localhost:${x.local_port}`), x;
2412
2438
  }, e[12] = n, e[13] = i, e[14] = g) : g = e[14];
2413
2439
  let h;
2414
2440
  e[15] !== l ? (h = le(l, "Failed to start port forwarding session"), e[15] = l, e[16] = h) : h = e[16];
2415
- let v;
2416
- e[17] !== a || e[18] !== u ? (v = async () => {
2441
+ let y;
2442
+ e[17] !== a || e[18] !== u ? (y = async () => {
2417
2443
  await Promise.all([a.invalidateQueries({
2418
2444
  queryKey: u
2419
2445
  }), a.invalidateQueries({
2420
2446
  queryKey: [...Me]
2421
2447
  })]);
2422
- }, e[17] = a, e[18] = u, e[19] = v) : v = e[19];
2423
- let d;
2424
- e[20] !== g || e[21] !== h || e[22] !== v ? (d = {
2448
+ }, e[17] = a, e[18] = u, e[19] = y) : y = e[19];
2449
+ let f;
2450
+ e[20] !== g || e[21] !== h || e[22] !== y ? (f = {
2425
2451
  mutationFn: g,
2426
2452
  onError: h,
2427
- onSuccess: v
2428
- }, e[20] = g, e[21] = h, e[22] = v, e[23] = d) : d = e[23];
2429
- const m = oe(d);
2430
- let y;
2431
- e[24] !== l ? (y = le(l, "Failed to close port forwarding session"), e[24] = l, e[25] = y) : y = e[25];
2453
+ onSuccess: y
2454
+ }, e[20] = g, e[21] = h, e[22] = y, e[23] = f) : f = e[23];
2455
+ const v = oe(f);
2456
+ let m;
2457
+ e[24] !== l ? (m = le(l, "Failed to close port forwarding session"), e[24] = l, e[25] = m) : m = e[25];
2432
2458
  let _;
2433
2459
  e[26] !== a || e[27] !== u ? (_ = async () => {
2434
2460
  await Promise.all([a.invalidateQueries({
@@ -2437,37 +2463,37 @@ function xo(t) {
2437
2463
  queryKey: [...Me]
2438
2464
  })]);
2439
2465
  }, e[26] = a, e[27] = u, e[28] = _) : _ = e[28];
2440
- let S;
2441
- e[29] !== y || e[30] !== _ ? (S = {
2442
- mutationFn: xr,
2443
- onError: y,
2466
+ let b;
2467
+ e[29] !== m || e[30] !== _ ? (b = {
2468
+ mutationFn: Nr,
2469
+ onError: m,
2444
2470
  onSuccess: _
2445
- }, e[29] = y, e[30] = _, e[31] = S) : S = e[31];
2446
- const C = oe(S);
2471
+ }, e[29] = m, e[30] = _, e[31] = b) : b = e[31];
2472
+ const C = oe(b);
2447
2473
  let E;
2448
- return e[32] !== C.mutateAsync || e[33] !== m.mutateAsync || e[34] !== f ? (E = {
2449
- sessions: f,
2450
- forward: m.mutateAsync,
2474
+ return e[32] !== C.mutateAsync || e[33] !== v.mutateAsync || e[34] !== d ? (E = {
2475
+ sessions: d,
2476
+ forward: v.mutateAsync,
2451
2477
  close: C.mutateAsync
2452
- }, e[32] = C.mutateAsync, e[33] = m.mutateAsync, e[34] = f, e[35] = E) : E = e[35], E;
2478
+ }, e[32] = C.mutateAsync, e[33] = v.mutateAsync, e[34] = d, e[35] = E) : E = e[35], E;
2453
2479
  }
2454
- async function xr(t) {
2480
+ async function Nr(t) {
2455
2481
  const {
2456
2482
  opts: e
2457
2483
  } = t;
2458
- return Ut(e.sessionID);
2484
+ return Kt(e.sessionID);
2459
2485
  }
2460
- const To = () => {
2461
- const t = q.useContext(Us);
2486
+ const Lo = () => {
2487
+ const t = L.useContext(Gs);
2462
2488
  if (!t)
2463
2489
  throw new Error("useConfirmationModal must be used within a ConfirmationModalProvider");
2464
2490
  return t;
2465
- }, vt = {
2491
+ }, _t = {
2466
2492
  scope: (t, e, r) => [t, e, r],
2467
2493
  list: (t, e, r, n = []) => [t, e, r, n, "list"],
2468
2494
  resource: (t, e, r, n, s = "") => [t, e, r, s, n]
2469
- }, Ao = (t) => {
2470
- const e = $(63), {
2495
+ }, $o = (t) => {
2496
+ const e = q(63), {
2471
2497
  pluginID: r,
2472
2498
  connectionID: n,
2473
2499
  resourceKey: s,
@@ -2475,88 +2501,88 @@ const To = () => {
2475
2501
  namespace: o,
2476
2502
  enabled: u
2477
2503
  } = t, l = o === void 0 ? "" : o, a = u === void 0 ? !0 : u, c = ee(r), p = a && !!s && !!i;
2478
- let f;
2479
- e[0] !== n || e[1] !== c || e[2] !== p ? (f = {
2504
+ let d;
2505
+ e[0] !== n || e[1] !== c || e[2] !== p ? (d = {
2480
2506
  pluginID: c,
2481
2507
  connectionID: n,
2482
2508
  enabled: p
2483
- }, e[0] = n, e[1] = c, e[2] = p, e[3] = f) : f = e[3];
2484
- const g = ge(f), h = Ce(c, n), v = be(), {
2485
- showSnackbar: d
2509
+ }, e[0] = n, e[1] = c, e[2] = p, e[3] = d) : d = e[3];
2510
+ const g = ge(d), h = Ce(c, n), y = Se(), {
2511
+ showSnackbar: f
2486
2512
  } = we();
2487
- let m;
2488
- e[4] !== n || e[5] !== l || e[6] !== c || e[7] !== i || e[8] !== s ? (m = vt.resource(c, n, s, i, l), e[4] = n, e[5] = l, e[6] = c, e[7] = i, e[8] = s, e[9] = m) : m = e[9];
2489
- const y = m;
2513
+ let v;
2514
+ e[4] !== n || e[5] !== l || e[6] !== c || e[7] !== i || e[8] !== s ? (v = _t.resource(c, n, s, i, l), e[4] = n, e[5] = l, e[6] = c, e[7] = i, e[8] = s, e[9] = v) : v = e[9];
2515
+ const m = v;
2490
2516
  let _;
2491
- e[10] !== n || e[11] !== l || e[12] !== c || e[13] !== i || e[14] !== s ? (_ = async (G) => (await Pe(c, n), Wt(c, n, s, zt.createFrom({
2517
+ e[10] !== n || e[11] !== l || e[12] !== c || e[13] !== i || e[14] !== s ? (_ = async (G) => (await Oe(c, n), Gt(c, n, s, Ht.createFrom({
2492
2518
  input: G.input,
2493
2519
  id: i,
2494
2520
  namespace: l
2495
2521
  }))), e[10] = n, e[11] = l, e[12] = c, e[13] = i, e[14] = s, e[15] = _) : _ = e[15];
2496
- let S;
2497
- e[16] !== v || e[17] !== y || e[18] !== i || e[19] !== d ? (S = async () => {
2498
- d(`Resource ${i} updated`, "success"), await v.invalidateQueries({
2499
- queryKey: y
2522
+ let b;
2523
+ e[16] !== y || e[17] !== m || e[18] !== i || e[19] !== f ? (b = async () => {
2524
+ f(`Resource ${i} updated`, "success"), await y.invalidateQueries({
2525
+ queryKey: m
2500
2526
  });
2501
- }, e[16] = v, e[17] = y, e[18] = i, e[19] = d, e[20] = S) : S = e[20];
2527
+ }, e[16] = y, e[17] = m, e[18] = i, e[19] = f, e[20] = b) : b = e[20];
2502
2528
  const C = `Failed to update resource ${i}`;
2503
2529
  let E;
2504
- e[21] !== d || e[22] !== C ? (E = le(d, C), e[21] = d, e[22] = C, e[23] = E) : E = e[23];
2530
+ e[21] !== f || e[22] !== C ? (E = le(f, C), e[21] = f, e[22] = C, e[23] = E) : E = e[23];
2505
2531
  let I;
2506
- e[24] !== _ || e[25] !== S || e[26] !== E ? (I = {
2532
+ e[24] !== _ || e[25] !== b || e[26] !== E ? (I = {
2507
2533
  mutationFn: _,
2508
- onSuccess: S,
2534
+ onSuccess: b,
2509
2535
  onError: E
2510
- }, e[24] = _, e[25] = S, e[26] = E, e[27] = I) : I = e[27];
2536
+ }, e[24] = _, e[25] = b, e[26] = E, e[27] = I) : I = e[27];
2511
2537
  const {
2512
2538
  mutateAsync: w
2513
2539
  } = oe(I);
2514
2540
  let D;
2515
2541
  e[28] !== n || e[29] !== l || e[30] !== c || e[31] !== i || e[32] !== s ? (D = async (G) => {
2516
2542
  const J = G === void 0 ? {} : G;
2517
- return await Pe(c, n), Kt(c, n, s, Bt.createFrom({
2543
+ return await Oe(c, n), Qt(c, n, s, Jt.createFrom({
2518
2544
  id: i,
2519
2545
  namespace: l,
2520
2546
  gracePeriodSeconds: J.gracePeriodSeconds
2521
2547
  }));
2522
2548
  }, e[28] = n, e[29] = l, e[30] = c, e[31] = i, e[32] = s, e[33] = D) : D = e[33];
2523
2549
  let x;
2524
- e[34] !== v || e[35] !== y || e[36] !== i || e[37] !== d ? (x = async () => {
2525
- d(`Resource ${i} deleted`, "success"), await v.invalidateQueries({
2526
- queryKey: y
2550
+ e[34] !== y || e[35] !== m || e[36] !== i || e[37] !== f ? (x = async () => {
2551
+ f(`Resource ${i} deleted`, "success"), await y.invalidateQueries({
2552
+ queryKey: m
2527
2553
  });
2528
- }, e[34] = v, e[35] = y, e[36] = i, e[37] = d, e[38] = x) : x = e[38];
2529
- const O = `Failed to delete resource ${i}`;
2530
- let A;
2531
- e[39] !== d || e[40] !== O ? (A = le(d, O), e[39] = d, e[40] = O, e[41] = A) : A = e[41];
2554
+ }, e[34] = y, e[35] = m, e[36] = i, e[37] = f, e[38] = x) : x = e[38];
2555
+ const P = `Failed to delete resource ${i}`;
2532
2556
  let T;
2533
- e[42] !== D || e[43] !== x || e[44] !== A ? (T = {
2557
+ e[39] !== f || e[40] !== P ? (T = le(f, P), e[39] = f, e[40] = P, e[41] = T) : T = e[41];
2558
+ let A;
2559
+ e[42] !== D || e[43] !== x || e[44] !== T ? (A = {
2534
2560
  mutationFn: D,
2535
2561
  onSuccess: x,
2536
- onError: A
2537
- }, e[42] = D, e[43] = x, e[44] = A, e[45] = T) : T = e[45];
2562
+ onError: T
2563
+ }, e[42] = D, e[43] = x, e[44] = T, e[45] = A) : A = e[45];
2538
2564
  const {
2539
2565
  mutateAsync: k
2540
- } = oe(T);
2566
+ } = oe(A);
2541
2567
  let M;
2542
2568
  e[46] !== n || e[47] !== a || e[48] !== h || e[49] !== l || e[50] !== c || e[51] !== g || e[52] !== i || e[53] !== s ? (M = a && s && i && g.phase === "connected" ? (G) => {
2543
2569
  const {
2544
2570
  signal: J,
2545
2571
  queryKey: te
2546
2572
  } = G;
2547
- return h(te, J, () => rs(c, n, s, Os.createFrom({
2573
+ return h(te, J, () => is(c, n, s, Fs.createFrom({
2548
2574
  id: i,
2549
2575
  namespace: l
2550
2576
  })));
2551
2577
  } : Ee, e[46] = n, e[47] = a, e[48] = h, e[49] = l, e[50] = c, e[51] = g, e[52] = i, e[53] = s, e[54] = M) : M = e[54];
2552
2578
  const W = a && !!s && !!i && g.phase === "connected";
2553
2579
  let j;
2554
- e[55] !== y || e[56] !== M || e[57] !== W ? (j = {
2555
- queryKey: y,
2580
+ e[55] !== m || e[56] !== M || e[57] !== W ? (j = {
2581
+ queryKey: m,
2556
2582
  queryFn: M,
2557
2583
  retry: !1,
2558
2584
  enabled: W
2559
- }, e[55] = y, e[56] = M, e[57] = W, e[58] = j) : j = e[58];
2585
+ }, e[55] = m, e[56] = M, e[57] = W, e[58] = j) : j = e[58];
2560
2586
  const V = re(j);
2561
2587
  let Y;
2562
2588
  return e[59] !== k || e[60] !== V || e[61] !== w ? (Y = {
@@ -2564,13 +2590,13 @@ const To = () => {
2564
2590
  update: w,
2565
2591
  remove: k
2566
2592
  }, e[59] = k, e[60] = V, e[61] = w, e[62] = Y) : Y = e[62], Y;
2567
- }, No = (t) => {
2568
- const e = $(11);
2593
+ }, qo = (t) => {
2594
+ const e = q(11);
2569
2595
  let r;
2570
2596
  e[0] !== t.area || e[1] !== t.plugin || e[2] !== t.resource ? (r = ["component", t.plugin, t.resource, t.area], e[0] = t.area, e[1] = t.plugin, e[2] = t.resource, e[3] = r) : r = e[3];
2571
2597
  const n = r;
2572
2598
  let s;
2573
- e[4] !== t ? (s = async () => os(t), e[4] = t, e[5] = s) : s = e[5];
2599
+ e[4] !== t ? (s = async () => cs(t), e[4] = t, e[5] = s) : s = e[5];
2574
2600
  let i;
2575
2601
  e[6] !== n || e[7] !== s ? (i = {
2576
2602
  queryKey: n,
@@ -2581,8 +2607,8 @@ const To = () => {
2581
2607
  return e[9] !== o ? (u = {
2582
2608
  component: o
2583
2609
  }, e[9] = o, e[10] = u) : u = e[10], u;
2584
- }, Oo = (t) => {
2585
- const e = $(19), {
2610
+ }, Mo = (t) => {
2611
+ const e = q(19), {
2586
2612
  pluginID: r,
2587
2613
  connectionID: n,
2588
2614
  enabled: s
@@ -2597,29 +2623,29 @@ const To = () => {
2597
2623
  let c;
2598
2624
  e[4] !== n || e[5] !== o ? (c = [o, "resource_groups", "list", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
2599
2625
  const p = c;
2600
- let f;
2601
- e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (f = i && l.phase === "connected" ? (m) => {
2626
+ let d;
2627
+ e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
2602
2628
  const {
2603
- signal: y,
2629
+ signal: m,
2604
2630
  queryKey: _
2605
- } = m;
2606
- return a(_, y, () => is(o, n));
2607
- } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = f) : f = e[12];
2631
+ } = v;
2632
+ return a(_, m, () => as(o, n));
2633
+ } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
2608
2634
  const g = i && l.phase === "connected";
2609
2635
  let h;
2610
- e[13] !== p || e[14] !== f || e[15] !== g ? (h = {
2636
+ e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
2611
2637
  queryKey: p,
2612
- queryFn: f,
2638
+ queryFn: d,
2613
2639
  enabled: g,
2614
2640
  retry: !1
2615
- }, e[13] = p, e[14] = f, e[15] = g, e[16] = h) : h = e[16];
2616
- const v = re(h);
2617
- let d;
2618
- return e[17] !== v ? (d = {
2619
- groups: v
2620
- }, e[17] = v, e[18] = d) : d = e[18], d;
2621
- }, Po = (t) => {
2622
- const e = $(24), {
2641
+ }, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
2642
+ const y = re(h);
2643
+ let f;
2644
+ return e[17] !== y ? (f = {
2645
+ groups: y
2646
+ }, e[17] = y, e[18] = f) : f = e[18], f;
2647
+ }, Uo = (t) => {
2648
+ const e = q(24), {
2623
2649
  pluginID: r,
2624
2650
  connectionID: n,
2625
2651
  searches: s,
@@ -2632,20 +2658,20 @@ const To = () => {
2632
2658
  enabled: l
2633
2659
  }, e[0] = n, e[1] = u, e[2] = l, e[3] = a) : a = e[3];
2634
2660
  const c = ge(a), p = Ce(u, n);
2635
- let f;
2636
- e[4] !== n || e[5] !== u ? (f = (m) => [u, n, m.key, m.namespaces, "list"], e[4] = n, e[5] = u, e[6] = f) : f = e[6];
2637
- const g = f;
2661
+ let d;
2662
+ e[4] !== n || e[5] !== u ? (d = (v) => [u, n, v.key, v.namespaces, "list"], e[4] = n, e[5] = u, e[6] = d) : d = e[6];
2663
+ const g = d;
2638
2664
  let h;
2639
2665
  if (e[7] !== n || e[8] !== o || e[9] !== g || e[10] !== p || e[11] !== u || e[12] !== c || e[13] !== s) {
2640
- let m;
2641
- e[15] !== n || e[16] !== o || e[17] !== g || e[18] !== p || e[19] !== u || e[20] !== c ? (m = (y) => ({
2642
- queryKey: g(y),
2643
- queryFn: o && y.key && c.phase === "connected" ? (_) => {
2666
+ let v;
2667
+ e[15] !== n || e[16] !== o || e[17] !== g || e[18] !== p || e[19] !== u || e[20] !== c ? (v = (m) => ({
2668
+ queryKey: g(m),
2669
+ queryFn: o && m.key && c.phase === "connected" ? (_) => {
2644
2670
  const {
2645
- signal: S,
2671
+ signal: b,
2646
2672
  queryKey: C
2647
2673
  } = _;
2648
- return p(C, S, () => Gt(u, n, y.key, Ht.createFrom({
2674
+ return p(C, b, () => jt(u, n, m.key, Vt.createFrom({
2649
2675
  order: [{
2650
2676
  field: "name",
2651
2677
  descending: !1
@@ -2654,20 +2680,20 @@ const To = () => {
2654
2680
  page: 1,
2655
2681
  pageSize: 200
2656
2682
  },
2657
- namespaces: y.namespaces
2658
- }))).then((E) => E ? (console.log(E.result), E.result && y.postFilter ? Object.values(E.result).filter(y.postFilter) : Object.values(E.result || {})) : []);
2683
+ namespaces: m.namespaces
2684
+ }))).then((E) => E ? (console.log(E.result), E.result && m.postFilter ? Object.values(E.result).filter(m.postFilter) : Object.values(E.result || {})) : []);
2659
2685
  } : Ee,
2660
2686
  retry: !1,
2661
- enabled: o && !!y.key && c.phase === "connected"
2662
- }), e[15] = n, e[16] = o, e[17] = g, e[18] = p, e[19] = u, e[20] = c, e[21] = m) : m = e[21], h = s.map(m), e[7] = n, e[8] = o, e[9] = g, e[10] = p, e[11] = u, e[12] = c, e[13] = s, e[14] = h;
2687
+ enabled: o && !!m.key && c.phase === "connected"
2688
+ }), e[15] = n, e[16] = o, e[17] = g, e[18] = p, e[19] = u, e[20] = c, e[21] = v) : v = e[21], h = s.map(v), e[7] = n, e[8] = o, e[9] = g, e[10] = p, e[11] = u, e[12] = c, e[13] = s, e[14] = h;
2663
2689
  } else
2664
2690
  h = e[14];
2665
- let v;
2666
- return e[22] !== h ? (v = {
2691
+ let y;
2692
+ return e[22] !== h ? (y = {
2667
2693
  queries: h
2668
- }, e[22] = h, e[23] = v) : v = e[23], An(v);
2669
- }, Fo = (t) => {
2670
- const e = $(11), {
2694
+ }, e[22] = h, e[23] = y) : y = e[23], Pn(y);
2695
+ }, Wo = (t) => {
2696
+ const e = q(11), {
2671
2697
  pluginID: r,
2672
2698
  resourceKey: n
2673
2699
  } = t, s = ee(r);
@@ -2675,7 +2701,7 @@ const To = () => {
2675
2701
  e[0] !== s || e[1] !== n ? (i = [s, "resources", n], e[0] = s, e[1] = n, e[2] = i) : i = e[2];
2676
2702
  const o = i;
2677
2703
  let u;
2678
- e[3] !== s || e[4] !== n ? (u = async () => cs(s, n), e[3] = s, e[4] = n, e[5] = u) : u = e[5];
2704
+ e[3] !== s || e[4] !== n ? (u = async () => ls(s, n), e[3] = s, e[4] = n, e[5] = u) : u = e[5];
2679
2705
  let l;
2680
2706
  e[6] !== o || e[7] !== u ? (l = {
2681
2707
  queryKey: o,
@@ -2687,8 +2713,8 @@ const To = () => {
2687
2713
  return e[9] !== a ? (c = {
2688
2714
  resourceType: a
2689
2715
  }, e[9] = a, e[10] = c) : c = e[10], c;
2690
- }, ko = (t) => {
2691
- const e = $(19), {
2716
+ }, Ko = (t) => {
2717
+ const e = q(19), {
2692
2718
  pluginID: r,
2693
2719
  connectionID: n,
2694
2720
  enabled: s
@@ -2703,260 +2729,260 @@ const To = () => {
2703
2729
  let c;
2704
2730
  e[4] !== n || e[5] !== o ? (c = [o, "resources", "list", n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
2705
2731
  const p = c;
2706
- let f;
2707
- e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (f = i && l.phase === "connected" ? (m) => {
2732
+ let d;
2733
+ e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (d = i && l.phase === "connected" ? (v) => {
2708
2734
  const {
2709
- signal: y,
2735
+ signal: m,
2710
2736
  queryKey: _
2711
- } = m;
2712
- return a(_, y, () => as(o, n));
2713
- } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = f) : f = e[12];
2737
+ } = v;
2738
+ return a(_, m, () => us(o, n));
2739
+ } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = d) : d = e[12];
2714
2740
  const g = i && l.phase === "connected";
2715
2741
  let h;
2716
- e[13] !== p || e[14] !== f || e[15] !== g ? (h = {
2742
+ e[13] !== p || e[14] !== d || e[15] !== g ? (h = {
2717
2743
  queryKey: p,
2718
- queryFn: f,
2744
+ queryFn: d,
2719
2745
  enabled: g,
2720
2746
  retry: !1
2721
- }, e[13] = p, e[14] = f, e[15] = g, e[16] = h) : h = e[16];
2722
- const v = re(h);
2723
- let d;
2724
- return e[17] !== v ? (d = {
2725
- types: v
2726
- }, e[17] = v, e[18] = d) : d = e[18], d;
2747
+ }, e[13] = p, e[14] = d, e[15] = g, e[16] = h) : h = e[16];
2748
+ const y = re(h);
2749
+ let f;
2750
+ return e[17] !== y ? (f = {
2751
+ types: y
2752
+ }, e[17] = y, e[18] = f) : f = e[18], f;
2727
2753
  };
2728
- var Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2729
- function Tr(t) {
2754
+ var Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2755
+ function Pr(t) {
2730
2756
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2731
2757
  }
2732
- var ft, Lt;
2733
- function Ar() {
2734
- if (Lt) return ft;
2735
- Lt = 1;
2736
- var t = "Expected a function", e = "__lodash_hash_undefined__", r = "[object Function]", n = "[object GeneratorFunction]", s = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/, u = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /[\\^$.*+?()[\]{}|]/g, c = /\\(\\)?/g, p = /^\[object .+?Constructor\]$/, f = typeof Ve == "object" && Ve && Ve.Object === Object && Ve, g = typeof self == "object" && self && self.Object === Object && self, h = f || g || Function("return this")();
2737
- function v(b, R) {
2738
- return b?.[R];
2758
+ var pt, qt;
2759
+ function Or() {
2760
+ if (qt) return pt;
2761
+ qt = 1;
2762
+ var t = "Expected a function", e = "__lodash_hash_undefined__", r = "[object Function]", n = "[object GeneratorFunction]", s = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, o = /^\w*$/, u = /^\./, l = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, a = /[\\^$.*+?()[\]{}|]/g, c = /\\(\\)?/g, p = /^\[object .+?Constructor\]$/, d = typeof Ye == "object" && Ye && Ye.Object === Object && Ye, g = typeof self == "object" && self && self.Object === Object && self, h = d || g || Function("return this")();
2763
+ function y(S, R) {
2764
+ return S?.[R];
2739
2765
  }
2740
- function d(b) {
2766
+ function f(S) {
2741
2767
  var R = !1;
2742
- if (b != null && typeof b.toString != "function")
2768
+ if (S != null && typeof S.toString != "function")
2743
2769
  try {
2744
- R = !!(b + "");
2770
+ R = !!(S + "");
2745
2771
  } catch {
2746
2772
  }
2747
2773
  return R;
2748
2774
  }
2749
- var m = Array.prototype, y = Function.prototype, _ = Object.prototype, S = h["__core-js_shared__"], C = (function() {
2750
- var b = /[^.]+$/.exec(S && S.keys && S.keys.IE_PROTO || "");
2751
- return b ? "Symbol(src)_1." + b : "";
2752
- })(), E = y.toString, I = _.hasOwnProperty, w = _.toString, D = RegExp(
2775
+ var v = Array.prototype, m = Function.prototype, _ = Object.prototype, b = h["__core-js_shared__"], C = (function() {
2776
+ var S = /[^.]+$/.exec(b && b.keys && b.keys.IE_PROTO || "");
2777
+ return S ? "Symbol(src)_1." + S : "";
2778
+ })(), E = m.toString, I = _.hasOwnProperty, w = _.toString, D = RegExp(
2753
2779
  "^" + E.call(I).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2754
- ), x = h.Symbol, O = m.splice, A = Ge(h, "Map"), T = Ge(Object, "create"), k = x ? x.prototype : void 0, M = k ? k.toString : void 0;
2755
- function W(b) {
2756
- var R = -1, P = b ? b.length : 0;
2757
- for (this.clear(); ++R < P; ) {
2758
- var X = b[R];
2780
+ ), x = h.Symbol, P = v.splice, T = Ge(h, "Map"), A = Ge(Object, "create"), k = x ? x.prototype : void 0, M = k ? k.toString : void 0;
2781
+ function W(S) {
2782
+ var R = -1, O = S ? S.length : 0;
2783
+ for (this.clear(); ++R < O; ) {
2784
+ var X = S[R];
2759
2785
  this.set(X[0], X[1]);
2760
2786
  }
2761
2787
  }
2762
2788
  function j() {
2763
- this.__data__ = T ? T(null) : {};
2789
+ this.__data__ = A ? A(null) : {};
2764
2790
  }
2765
- function V(b) {
2766
- return this.has(b) && delete this.__data__[b];
2791
+ function V(S) {
2792
+ return this.has(S) && delete this.__data__[S];
2767
2793
  }
2768
- function Y(b) {
2794
+ function Y(S) {
2769
2795
  var R = this.__data__;
2770
- if (T) {
2771
- var P = R[b];
2772
- return P === e ? void 0 : P;
2796
+ if (A) {
2797
+ var O = R[S];
2798
+ return O === e ? void 0 : O;
2773
2799
  }
2774
- return I.call(R, b) ? R[b] : void 0;
2800
+ return I.call(R, S) ? R[S] : void 0;
2775
2801
  }
2776
- function G(b) {
2802
+ function G(S) {
2777
2803
  var R = this.__data__;
2778
- return T ? R[b] !== void 0 : I.call(R, b);
2804
+ return A ? R[S] !== void 0 : I.call(R, S);
2779
2805
  }
2780
- function J(b, R) {
2781
- var P = this.__data__;
2782
- return P[b] = T && R === void 0 ? e : R, this;
2806
+ function J(S, R) {
2807
+ var O = this.__data__;
2808
+ return O[S] = A && R === void 0 ? e : R, this;
2783
2809
  }
2784
2810
  W.prototype.clear = j, W.prototype.delete = V, W.prototype.get = Y, W.prototype.has = G, W.prototype.set = J;
2785
- function te(b) {
2786
- var R = -1, P = b ? b.length : 0;
2787
- for (this.clear(); ++R < P; ) {
2788
- var X = b[R];
2811
+ function te(S) {
2812
+ var R = -1, O = S ? S.length : 0;
2813
+ for (this.clear(); ++R < O; ) {
2814
+ var X = S[R];
2789
2815
  this.set(X[0], X[1]);
2790
2816
  }
2791
2817
  }
2792
2818
  function ye() {
2793
2819
  this.__data__ = [];
2794
2820
  }
2795
- function U(b) {
2796
- var R = this.__data__, P = me(R, b);
2797
- if (P < 0)
2821
+ function U(S) {
2822
+ var R = this.__data__, O = me(R, S);
2823
+ if (O < 0)
2798
2824
  return !1;
2799
2825
  var X = R.length - 1;
2800
- return P == X ? R.pop() : O.call(R, P, 1), !0;
2826
+ return O == X ? R.pop() : P.call(R, O, 1), !0;
2801
2827
  }
2802
- function B(b) {
2803
- var R = this.__data__, P = me(R, b);
2804
- return P < 0 ? void 0 : R[P][1];
2828
+ function B(S) {
2829
+ var R = this.__data__, O = me(R, S);
2830
+ return O < 0 ? void 0 : R[O][1];
2805
2831
  }
2806
- function K(b) {
2807
- return me(this.__data__, b) > -1;
2832
+ function K(S) {
2833
+ return me(this.__data__, S) > -1;
2808
2834
  }
2809
- function z(b, R) {
2810
- var P = this.__data__, X = me(P, b);
2811
- return X < 0 ? P.push([b, R]) : P[X][1] = R, this;
2835
+ function z(S, R) {
2836
+ var O = this.__data__, X = me(O, S);
2837
+ return X < 0 ? O.push([S, R]) : O[X][1] = R, this;
2812
2838
  }
2813
2839
  te.prototype.clear = ye, te.prototype.delete = U, te.prototype.get = B, te.prototype.has = K, te.prototype.set = z;
2814
- function L(b) {
2815
- var R = -1, P = b ? b.length : 0;
2816
- for (this.clear(); ++R < P; ) {
2817
- var X = b[R];
2840
+ function $(S) {
2841
+ var R = -1, O = S ? S.length : 0;
2842
+ for (this.clear(); ++R < O; ) {
2843
+ var X = S[R];
2818
2844
  this.set(X[0], X[1]);
2819
2845
  }
2820
2846
  }
2821
2847
  function F() {
2822
2848
  this.__data__ = {
2823
2849
  hash: new W(),
2824
- map: new (A || te)(),
2850
+ map: new (T || te)(),
2825
2851
  string: new W()
2826
2852
  };
2827
2853
  }
2828
- function H(b) {
2829
- return Le(this, b).delete(b);
2854
+ function H(S) {
2855
+ return Le(this, S).delete(S);
2830
2856
  }
2831
- function ue(b) {
2832
- return Le(this, b).get(b);
2857
+ function ue(S) {
2858
+ return Le(this, S).get(S);
2833
2859
  }
2834
- function de(b) {
2835
- return Le(this, b).has(b);
2860
+ function de(S) {
2861
+ return Le(this, S).has(S);
2836
2862
  }
2837
- function Re(b, R) {
2838
- return Le(this, b).set(b, R), this;
2863
+ function Re(S, R) {
2864
+ return Le(this, S).set(S, R), this;
2839
2865
  }
2840
- L.prototype.clear = F, L.prototype.delete = H, L.prototype.get = ue, L.prototype.has = de, L.prototype.set = Re;
2841
- function me(b, R) {
2842
- for (var P = b.length; P--; )
2843
- if (vn(b[P][0], R))
2844
- return P;
2866
+ $.prototype.clear = F, $.prototype.delete = H, $.prototype.get = ue, $.prototype.has = de, $.prototype.set = Re;
2867
+ function me(S, R) {
2868
+ for (var O = S.length; O--; )
2869
+ if (bn(S[O][0], R))
2870
+ return O;
2845
2871
  return -1;
2846
2872
  }
2847
- function ie(b, R) {
2848
- R = Be(R, b) ? [R] : Ke(R);
2849
- for (var P = 0, X = R.length; b != null && P < X; )
2850
- b = b[yn(R[P++])];
2851
- return P && P == X ? b : void 0;
2873
+ function ie(S, R) {
2874
+ R = He(R, S) ? [R] : Ke(R);
2875
+ for (var O = 0, X = R.length; S != null && O < X; )
2876
+ S = S[vn(R[O++])];
2877
+ return O && O == X ? S : void 0;
2852
2878
  }
2853
- function ne(b) {
2854
- if (!Rt(b) || hn(b))
2879
+ function ne(S) {
2880
+ if (!At(S) || yn(S))
2855
2881
  return !1;
2856
- var R = _n(b) || d(b) ? D : p;
2857
- return R.test(mn(b));
2882
+ var R = Sn(S) || f(S) ? D : p;
2883
+ return R.test(_n(S));
2858
2884
  }
2859
- function ae(b) {
2860
- if (typeof b == "string")
2861
- return b;
2862
- if (st(b))
2863
- return M ? M.call(b) : "";
2864
- var R = b + "";
2865
- return R == "0" && 1 / b == -1 / 0 ? "-0" : R;
2885
+ function ae(S) {
2886
+ if (typeof S == "string")
2887
+ return S;
2888
+ if (rt(S))
2889
+ return M ? M.call(S) : "";
2890
+ var R = S + "";
2891
+ return R == "0" && 1 / S == -1 / 0 ? "-0" : R;
2866
2892
  }
2867
- function Ke(b) {
2868
- return Dt(b) ? b : gn(b);
2893
+ function Ke(S) {
2894
+ return xt(S) ? S : mn(S);
2869
2895
  }
2870
- function Le(b, R) {
2871
- var P = b.__data__;
2872
- return ve(R) ? P[typeof R == "string" ? "string" : "hash"] : P.map;
2896
+ function Le(S, R) {
2897
+ var O = S.__data__;
2898
+ return ve(R) ? O[typeof R == "string" ? "string" : "hash"] : O.map;
2873
2899
  }
2874
- function Ge(b, R) {
2875
- var P = v(b, R);
2876
- return ne(P) ? P : void 0;
2900
+ function Ge(S, R) {
2901
+ var O = y(S, R);
2902
+ return ne(O) ? O : void 0;
2877
2903
  }
2878
- function Be(b, R) {
2879
- if (Dt(b))
2904
+ function He(S, R) {
2905
+ if (xt(S))
2880
2906
  return !1;
2881
- var P = typeof b;
2882
- return P == "number" || P == "symbol" || P == "boolean" || b == null || st(b) ? !0 : o.test(b) || !i.test(b) || R != null && b in Object(R);
2907
+ var O = typeof S;
2908
+ return O == "number" || O == "symbol" || O == "boolean" || S == null || rt(S) ? !0 : o.test(S) || !i.test(S) || R != null && S in Object(R);
2883
2909
  }
2884
- function ve(b) {
2885
- var R = typeof b;
2886
- return R == "string" || R == "number" || R == "symbol" || R == "boolean" ? b !== "__proto__" : b === null;
2910
+ function ve(S) {
2911
+ var R = typeof S;
2912
+ return R == "string" || R == "number" || R == "symbol" || R == "boolean" ? S !== "__proto__" : S === null;
2887
2913
  }
2888
- function hn(b) {
2889
- return !!C && C in b;
2914
+ function yn(S) {
2915
+ return !!C && C in S;
2890
2916
  }
2891
- var gn = nt(function(b) {
2892
- b = bn(b);
2917
+ var mn = st(function(S) {
2918
+ S = wn(S);
2893
2919
  var R = [];
2894
- return u.test(b) && R.push(""), b.replace(l, function(P, X, Qe, je) {
2895
- R.push(Qe ? je.replace(c, "$1") : X || P);
2920
+ return u.test(S) && R.push(""), S.replace(l, function(O, X, Qe, je) {
2921
+ R.push(Qe ? je.replace(c, "$1") : X || O);
2896
2922
  }), R;
2897
2923
  });
2898
- function yn(b) {
2899
- if (typeof b == "string" || st(b))
2900
- return b;
2901
- var R = b + "";
2902
- return R == "0" && 1 / b == -1 / 0 ? "-0" : R;
2924
+ function vn(S) {
2925
+ if (typeof S == "string" || rt(S))
2926
+ return S;
2927
+ var R = S + "";
2928
+ return R == "0" && 1 / S == -1 / 0 ? "-0" : R;
2903
2929
  }
2904
- function mn(b) {
2905
- if (b != null) {
2930
+ function _n(S) {
2931
+ if (S != null) {
2906
2932
  try {
2907
- return E.call(b);
2933
+ return E.call(S);
2908
2934
  } catch {
2909
2935
  }
2910
2936
  try {
2911
- return b + "";
2937
+ return S + "";
2912
2938
  } catch {
2913
2939
  }
2914
2940
  }
2915
2941
  return "";
2916
2942
  }
2917
- function nt(b, R) {
2918
- if (typeof b != "function" || R && typeof R != "function")
2943
+ function st(S, R) {
2944
+ if (typeof S != "function" || R && typeof R != "function")
2919
2945
  throw new TypeError(t);
2920
- var P = function() {
2921
- var X = arguments, Qe = R ? R.apply(this, X) : X[0], je = P.cache;
2946
+ var O = function() {
2947
+ var X = arguments, Qe = R ? R.apply(this, X) : X[0], je = O.cache;
2922
2948
  if (je.has(Qe))
2923
2949
  return je.get(Qe);
2924
- var xt = b.apply(this, X);
2925
- return P.cache = je.set(Qe, xt), xt;
2950
+ var Tt = S.apply(this, X);
2951
+ return O.cache = je.set(Qe, Tt), Tt;
2926
2952
  };
2927
- return P.cache = new (nt.Cache || L)(), P;
2953
+ return O.cache = new (st.Cache || $)(), O;
2928
2954
  }
2929
- nt.Cache = L;
2930
- function vn(b, R) {
2931
- return b === R || b !== b && R !== R;
2955
+ st.Cache = $;
2956
+ function bn(S, R) {
2957
+ return S === R || S !== S && R !== R;
2932
2958
  }
2933
- var Dt = Array.isArray;
2934
- function _n(b) {
2935
- var R = Rt(b) ? w.call(b) : "";
2959
+ var xt = Array.isArray;
2960
+ function Sn(S) {
2961
+ var R = At(S) ? w.call(S) : "";
2936
2962
  return R == r || R == n;
2937
2963
  }
2938
- function Rt(b) {
2939
- var R = typeof b;
2940
- return !!b && (R == "object" || R == "function");
2964
+ function At(S) {
2965
+ var R = typeof S;
2966
+ return !!S && (R == "object" || R == "function");
2941
2967
  }
2942
- function Sn(b) {
2943
- return !!b && typeof b == "object";
2968
+ function En(S) {
2969
+ return !!S && typeof S == "object";
2944
2970
  }
2945
- function st(b) {
2946
- return typeof b == "symbol" || Sn(b) && w.call(b) == s;
2971
+ function rt(S) {
2972
+ return typeof S == "symbol" || En(S) && w.call(S) == s;
2947
2973
  }
2948
- function bn(b) {
2949
- return b == null ? "" : ae(b);
2974
+ function wn(S) {
2975
+ return S == null ? "" : ae(S);
2950
2976
  }
2951
- function En(b, R, P) {
2952
- var X = b == null ? void 0 : ie(b, R);
2953
- return X === void 0 ? P : X;
2977
+ function Cn(S, R, O) {
2978
+ var X = S == null ? void 0 : ie(S, R);
2979
+ return X === void 0 ? O : X;
2954
2980
  }
2955
- return ft = En, ft;
2981
+ return pt = Cn, pt;
2956
2982
  }
2957
- var Nr = Ar();
2958
- const pt = /* @__PURE__ */ Tr(Nr);
2959
- function Or(t, e, r) {
2983
+ var Fr = Or();
2984
+ const ht = /* @__PURE__ */ Pr(Fr);
2985
+ function kr(t, e, r) {
2960
2986
  const n = t ?? {
2961
2987
  result: [],
2962
2988
  success: !0,
@@ -2966,25 +2992,25 @@ function Or(t, e, r) {
2966
2992
  const o = e.length > 1 ? /* @__PURE__ */ new Map() : void 0, u = /* @__PURE__ */ new Map();
2967
2993
  if (o)
2968
2994
  for (let a = s.length - 1; a >= 0; a--) {
2969
- const c = pt(s[a], r);
2995
+ const c = ht(s[a], r);
2970
2996
  if (c !== c) continue;
2971
2997
  const p = o.get(c);
2972
2998
  p !== void 0 && u.set(a, p), o.set(c, a);
2973
2999
  }
2974
3000
  const l = /* @__PURE__ */ new Set();
2975
3001
  for (const a of e) {
2976
- const c = pt(a.payload.data, r), p = i ?? s, f = o ? c === c ? o.get(c) ?? -1 : -1 : p.findIndex((g) => pt(g, r) === c);
3002
+ const c = ht(a.payload.data, r), p = i ?? s, d = o ? c === c ? o.get(c) ?? -1 : -1 : p.findIndex((g) => ht(g, r) === c);
2977
3003
  switch (a.type) {
2978
3004
  case "ADD":
2979
- f === -1 && (i ??= s.slice(), c === c && o?.set(c, i.length), i.push(a.payload.data));
3005
+ d === -1 && (i ??= s.slice(), c === c && o?.set(c, i.length), i.push(a.payload.data));
2980
3006
  break;
2981
3007
  case "UPDATE":
2982
- f !== -1 && p[f] !== a.payload.data && (i ??= s.slice(), i[f] = a.payload.data);
3008
+ d !== -1 && p[d] !== a.payload.data && (i ??= s.slice(), i[d] = a.payload.data);
2983
3009
  break;
2984
3010
  case "DELETE":
2985
- if (f !== -1) {
2986
- i ??= s.slice(), l.add(f);
2987
- const g = u.get(f);
3011
+ if (d !== -1) {
3012
+ i ??= s.slice(), l.add(d);
3013
+ const g = u.get(d);
2988
3014
  g === void 0 ? o?.delete(c) : o?.set(c, g);
2989
3015
  }
2990
3016
  break;
@@ -2995,81 +3021,81 @@ function Or(t, e, r) {
2995
3021
  result: i
2996
3022
  }) : n;
2997
3023
  }
2998
- function Pr(t, e, r, n, s, i) {
2999
- const o = $(17), u = i?.syncWindowMs ?? 500, l = i?.enabled ?? !0;
3024
+ function Lr(t, e, r, n, s, i) {
3025
+ const o = q(17), u = i?.syncWindowMs ?? 500, l = i?.enabled ?? !0;
3000
3026
  let a;
3001
3027
  o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [], o[0] = a) : a = o[0];
3002
- const c = pe(a), p = pe(null), f = pe(null), g = pe(s);
3003
- let h, v;
3028
+ const c = pe(a), p = pe(null), d = pe(null), g = pe(s);
3029
+ let h, y;
3004
3030
  o[1] !== s ? (h = () => {
3005
3031
  g.current = s;
3006
- }, v = [s], o[1] = s, o[2] = h, o[3] = v) : (h = o[2], v = o[3]), ht(h, v);
3007
- let d;
3008
- o[4] !== r || o[5] !== n || o[6] !== t || o[7] !== e ? (d = () => {
3032
+ }, y = [s], o[1] = s, o[2] = h, o[3] = y) : (h = o[2], y = o[3]), gt(h, y);
3033
+ let f;
3034
+ o[4] !== r || o[5] !== n || o[6] !== t || o[7] !== e ? (f = () => {
3009
3035
  const E = c.current;
3010
- if (c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), f.current !== null && (cancelAnimationFrame(f.current), f.current = null), !(E.length === 0 || !n)) {
3011
- t.setQueryData(e, (I) => Or(I, E, n));
3036
+ if (c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), d.current !== null && (cancelAnimationFrame(d.current), d.current = null), !(E.length === 0 || !n)) {
3037
+ t.setQueryData(e, (I) => kr(I, E, n));
3012
3038
  for (const I of E)
3013
3039
  (I.type === "ADD" || I.type === "UPDATE") && t.setQueryData(r(I.payload.id, I.payload.namespace), {
3014
3040
  success: !0,
3015
3041
  result: I.payload.data
3016
3042
  });
3017
3043
  }
3018
- }, o[4] = r, o[5] = n, o[6] = t, o[7] = e, o[8] = d) : d = o[8];
3019
- const m = d;
3020
- let y;
3021
- o[9] !== l || o[10] !== m || o[11] !== u ? (y = (E) => {
3022
- l && (c.current.push(E), !(p.current !== null || f.current !== null) && (p.current = setTimeout(m, u), g.current !== 1 && (f.current = requestAnimationFrame(m))));
3023
- }, o[9] = l, o[10] = m, o[11] = u, o[12] = y) : y = o[12];
3024
- const _ = y;
3025
- let S;
3026
- o[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = () => () => {
3027
- c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), f.current !== null && (cancelAnimationFrame(f.current), f.current = null);
3028
- }, o[13] = S) : S = o[13];
3044
+ }, o[4] = r, o[5] = n, o[6] = t, o[7] = e, o[8] = f) : f = o[8];
3045
+ const v = f;
3046
+ let m;
3047
+ o[9] !== l || o[10] !== v || o[11] !== u ? (m = (E) => {
3048
+ l && (c.current.push(E), !(p.current !== null || d.current !== null) && (p.current = setTimeout(v, u), g.current !== 1 && (d.current = requestAnimationFrame(v))));
3049
+ }, o[9] = l, o[10] = v, o[11] = u, o[12] = m) : m = o[12];
3050
+ const _ = m;
3051
+ let b;
3052
+ o[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => () => {
3053
+ c.current = [], p.current !== null && (clearTimeout(p.current), p.current = null), d.current !== null && (cancelAnimationFrame(d.current), d.current = null);
3054
+ }, o[13] = b) : b = o[13];
3029
3055
  let C;
3030
- return o[14] !== l || o[15] !== m ? (C = [l, m], o[14] = l, o[15] = m, o[16] = C) : C = o[16], ht(S, C), _;
3056
+ return o[14] !== l || o[15] !== v ? (C = [l, v], o[14] = l, o[15] = v, o[16] = C) : C = o[16], gt(b, C), _;
3031
3057
  }
3032
- const Lo = (t) => {
3033
- const e = $(75), {
3058
+ const Go = (t) => {
3059
+ const e = q(75), {
3034
3060
  pluginID: r,
3035
3061
  connectionID: n,
3036
3062
  resourceKey: s,
3037
3063
  idAccessor: i,
3038
3064
  namespaces: o,
3039
3065
  enabled: u
3040
- } = t, l = u === void 0 ? !0 : u, a = ee(r), c = be(), {
3066
+ } = t, l = u === void 0 ? !0 : u, a = ee(r), c = Se(), {
3041
3067
  showSnackbar: p
3042
- } = we(), f = l && !!s;
3068
+ } = we(), d = l && !!s;
3043
3069
  let g;
3044
- e[0] !== n || e[1] !== a || e[2] !== f ? (g = {
3070
+ e[0] !== n || e[1] !== a || e[2] !== d ? (g = {
3045
3071
  pluginID: a,
3046
3072
  connectionID: n,
3047
- enabled: f
3048
- }, e[0] = n, e[1] = a, e[2] = f, e[3] = g) : g = e[3];
3049
- const h = ge(g), v = Ce(a, n), d = l && !!s && h.phase === "connected";
3050
- let m;
3051
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = Promise.resolve(), e[4] = m) : m = e[4];
3052
- const y = q.useRef(m), _ = q.useRef(p);
3053
- let S, C;
3054
- e[5] !== p ? (S = () => {
3073
+ enabled: d
3074
+ }, e[0] = n, e[1] = a, e[2] = d, e[3] = g) : g = e[3];
3075
+ const h = ge(g), y = Ce(a, n), f = l && !!s && h.phase === "connected";
3076
+ let v;
3077
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = Promise.resolve(), e[4] = v) : v = e[4];
3078
+ const m = L.useRef(v), _ = L.useRef(p);
3079
+ let b, C;
3080
+ e[5] !== p ? (b = () => {
3055
3081
  _.current = p;
3056
- }, C = [p], e[5] = p, e[6] = S, e[7] = C) : (S = e[6], C = e[7]), q.useLayoutEffect(S, C);
3082
+ }, C = [p], e[5] = p, e[6] = b, e[7] = C) : (b = e[6], C = e[7]), L.useLayoutEffect(b, C);
3057
3083
  let E;
3058
3084
  e[8] !== o ? (E = o ?? [], e[8] = o, e[9] = E) : E = e[9];
3059
3085
  const I = E;
3060
3086
  let w;
3061
- e[10] !== n || e[11] !== a || e[12] !== s || e[13] !== I ? (w = vt.list(a, n, s, I), e[10] = n, e[11] = a, e[12] = s, e[13] = I, e[14] = w) : w = e[14];
3087
+ e[10] !== n || e[11] !== a || e[12] !== s || e[13] !== I ? (w = _t.list(a, n, s, I), e[10] = n, e[11] = a, e[12] = s, e[13] = I, e[14] = w) : w = e[14];
3062
3088
  const D = w;
3063
3089
  let x;
3064
- e[15] !== n || e[16] !== a || e[17] !== s ? (x = (ie, ne) => vt.resource(a, n, s, ie, ne), e[15] = n, e[16] = a, e[17] = s, e[18] = x) : x = e[18];
3065
- const O = x;
3066
- let A;
3067
- e[19] !== n || e[20] !== a || e[21] !== s || e[22] !== I ? (A = async (ie) => (await Pe(a, n), Qt(a, n, s, Jt.createFrom({
3090
+ e[15] !== n || e[16] !== a || e[17] !== s ? (x = (ie, ne) => _t.resource(a, n, s, ie, ne), e[15] = n, e[16] = a, e[17] = s, e[18] = x) : x = e[18];
3091
+ const P = x;
3092
+ let T;
3093
+ e[19] !== n || e[20] !== a || e[21] !== s || e[22] !== I ? (T = async (ie) => (await Oe(a, n), zt(a, n, s, Yt.createFrom({
3068
3094
  input: ie.input,
3069
3095
  namespace: ie.namespace ?? (I.length === 1 ? I[0] : "")
3070
- }))), e[19] = n, e[20] = a, e[21] = s, e[22] = I, e[23] = A) : A = e[23];
3071
- let T;
3072
- e[24] !== c || e[25] !== D || e[26] !== p ? (T = async (ie) => {
3096
+ }))), e[19] = n, e[20] = a, e[21] = s, e[22] = I, e[23] = T) : T = e[23];
3097
+ let A;
3098
+ e[24] !== c || e[25] !== D || e[26] !== p ? (A = async (ie) => {
3073
3099
  const ne = ie?.result;
3074
3100
  let ae = "";
3075
3101
  ne?.metadata?.name ? ae = ne.metadata.name : ne?.id ? ae = ne.id : ne?.name ? ae = ne.name : ne?.ID ? ae = ne.ID : ne?.Name && (ae = ne.Name);
@@ -3077,25 +3103,25 @@ const Lo = (t) => {
3077
3103
  p(Ke, "success"), await c.invalidateQueries({
3078
3104
  queryKey: D
3079
3105
  });
3080
- }, e[24] = c, e[25] = D, e[26] = p, e[27] = T) : T = e[27];
3106
+ }, e[24] = c, e[25] = D, e[26] = p, e[27] = A) : A = e[27];
3081
3107
  let k;
3082
3108
  e[28] !== p ? (k = le(p, "Failed to create resource"), e[28] = p, e[29] = k) : k = e[29];
3083
3109
  let M;
3084
- e[30] !== A || e[31] !== T || e[32] !== k ? (M = {
3085
- mutationFn: A,
3086
- onSuccess: T,
3110
+ e[30] !== T || e[31] !== A || e[32] !== k ? (M = {
3111
+ mutationFn: T,
3112
+ onSuccess: A,
3087
3113
  onError: k
3088
- }, e[30] = A, e[31] = T, e[32] = k, e[33] = M) : M = e[33];
3114
+ }, e[30] = T, e[31] = A, e[32] = k, e[33] = M) : M = e[33];
3089
3115
  const {
3090
3116
  mutateAsync: W
3091
3117
  } = oe(M);
3092
3118
  let j;
3093
- e[34] !== n || e[35] !== v || e[36] !== a || e[37] !== d || e[38] !== s || e[39] !== I ? (j = d ? (ie) => {
3119
+ e[34] !== n || e[35] !== y || e[36] !== a || e[37] !== f || e[38] !== s || e[39] !== I ? (j = f ? (ie) => {
3094
3120
  const {
3095
3121
  signal: ne,
3096
3122
  queryKey: ae
3097
3123
  } = ie;
3098
- return v(ae, ne, () => Gt(a, n, s, Ht.createFrom({
3124
+ return y(ae, ne, () => jt(a, n, s, Vt.createFrom({
3099
3125
  order: [{
3100
3126
  field: "name",
3101
3127
  descending: !1
@@ -3106,75 +3132,75 @@ const Lo = (t) => {
3106
3132
  },
3107
3133
  namespaces: I
3108
3134
  })));
3109
- } : Ee, e[34] = n, e[35] = v, e[36] = a, e[37] = d, e[38] = s, e[39] = I, e[40] = j) : j = e[40];
3135
+ } : Ee, e[34] = n, e[35] = y, e[36] = a, e[37] = f, e[38] = s, e[39] = I, e[40] = j) : j = e[40];
3110
3136
  let V;
3111
- e[41] !== d || e[42] !== D || e[43] !== j ? (V = {
3137
+ e[41] !== f || e[42] !== D || e[43] !== j ? (V = {
3112
3138
  queryKey: D,
3113
3139
  queryFn: j,
3114
- placeholderData: Fr,
3140
+ placeholderData: $r,
3115
3141
  retry: !1,
3116
- enabled: d
3117
- }, e[41] = d, e[42] = D, e[43] = j, e[44] = V) : V = e[44];
3142
+ enabled: f
3143
+ }, e[41] = f, e[42] = D, e[43] = j, e[44] = V) : V = e[44];
3118
3144
  const Y = re(V);
3119
3145
  let G;
3120
- e[45] !== n || e[46] !== a || e[47] !== d || e[48] !== s ? (G = {
3146
+ e[45] !== n || e[46] !== a || e[47] !== f || e[48] !== s ? (G = {
3121
3147
  pluginID: a,
3122
3148
  connectionID: n,
3123
3149
  resourceKey: s,
3124
- enabled: d
3125
- }, e[45] = n, e[46] = a, e[47] = d, e[48] = s, e[49] = G) : G = e[49];
3126
- const J = G, [te, ye] = q.useState(), U = d && te?.scope === J ? te.state : Q.WatchStateIdle;
3150
+ enabled: f
3151
+ }, e[45] = n, e[46] = a, e[47] = f, e[48] = s, e[49] = G) : G = e[49];
3152
+ const J = G, [te, ye] = L.useState(), U = f && te?.scope === J ? te.state : Q.WatchStateIdle;
3127
3153
  let B, K;
3128
- e[50] !== n || e[51] !== a || e[52] !== d || e[53] !== s || e[54] !== J ? (B = () => d ? Z(`${a}/${n}/watch/STATE`, (ne) => {
3154
+ e[50] !== n || e[51] !== a || e[52] !== f || e[53] !== s || e[54] !== J ? (B = () => f ? Z(`${a}/${n}/watch/STATE`, (ne) => {
3129
3155
  const ae = ne.data;
3130
3156
  ae.resourceKey === s && ye({
3131
3157
  scope: J,
3132
3158
  state: ae.state
3133
3159
  });
3134
- }) : void 0, K = [a, n, s, d, J], e[50] = n, e[51] = a, e[52] = d, e[53] = s, e[54] = J, e[55] = B, e[56] = K) : (B = e[55], K = e[56]), q.useEffect(B, K);
3160
+ }) : void 0, K = [a, n, s, f, J], e[50] = n, e[51] = a, e[52] = f, e[53] = s, e[54] = J, e[55] = B, e[56] = K) : (B = e[55], K = e[56]), L.useEffect(B, K);
3135
3161
  let z;
3136
- e[57] !== d ? (z = {
3137
- enabled: d
3138
- }, e[57] = d, e[58] = z) : z = e[58];
3139
- const L = Pr(c, D, O, i, U, z);
3162
+ e[57] !== f ? (z = {
3163
+ enabled: f
3164
+ }, e[57] = f, e[58] = z) : z = e[58];
3165
+ const $ = Lr(c, D, P, i, U, z);
3140
3166
  let F, H;
3141
- e[59] !== n || e[60] !== L || e[61] !== i || e[62] !== a || e[63] !== d || e[64] !== s || e[65] !== J ? (F = () => {
3142
- if (!d || !i)
3167
+ e[59] !== n || e[60] !== $ || e[61] !== i || e[62] !== a || e[63] !== f || e[64] !== s || e[65] !== J ? (F = () => {
3168
+ if (!f || !i)
3143
3169
  return;
3144
3170
  let ie = !0, ne = !1;
3145
3171
  const ae = Z(`${a}/${n}/${s}/ADD`, (ve) => {
3146
- ie && L({
3172
+ ie && $({
3147
3173
  type: "ADD",
3148
3174
  payload: ve.data
3149
3175
  });
3150
3176
  }), Ke = Z(`${a}/${n}/${s}/UPDATE`, (ve) => {
3151
- ie && L({
3177
+ ie && $({
3152
3178
  type: "UPDATE",
3153
3179
  payload: ve.data
3154
3180
  });
3155
3181
  }), Le = Z(`${a}/${n}/${s}/DELETE`, (ve) => {
3156
- ie && L({
3182
+ ie && $({
3157
3183
  type: "DELETE",
3158
3184
  payload: ve.data
3159
3185
  });
3160
3186
  }), Ge = () => {
3161
3187
  ae(), Ke(), Le();
3162
- }, Be = y.current.then(async () => {
3163
- ie && (await ls(a, n, s), ne = !0);
3188
+ }, He = m.current.then(async () => {
3189
+ ie && (await ds(a, n, s), ne = !0);
3164
3190
  }).catch((ve) => {
3165
3191
  Ge(), ie && ye({
3166
3192
  scope: J,
3167
3193
  state: Q.WatchStateError
3168
3194
  }), xe(_.current, ve, "Failed to subscribe to resource updates");
3169
3195
  });
3170
- return y.current = Be, () => {
3171
- ie = !1, Ge(), y.current = Be.then(async () => {
3172
- ne && await us(a, n, s);
3196
+ return m.current = He, () => {
3197
+ ie = !1, Ge(), m.current = He.then(async () => {
3198
+ ne && await fs(a, n, s);
3173
3199
  }).catch((ve) => {
3174
3200
  xe(_.current, ve, "Failed to unsubscribe from resource updates");
3175
3201
  });
3176
3202
  };
3177
- }, H = [a, n, s, L, i, d, J], e[59] = n, e[60] = L, e[61] = i, e[62] = a, e[63] = d, e[64] = s, e[65] = J, e[66] = F, e[67] = H) : (F = e[66], H = e[67]), q.useEffect(F, H);
3203
+ }, H = [a, n, s, $, i, f, J], e[59] = n, e[60] = $, e[61] = i, e[62] = a, e[63] = f, e[64] = s, e[65] = J, e[66] = F, e[67] = H) : (F = e[66], H = e[67]), L.useEffect(F, H);
3178
3204
  const ue = U === Q.WatchStateSyncing, de = U === Q.WatchStateSynced, Re = U === Q.WatchStateError;
3179
3205
  let me;
3180
3206
  return e[68] !== W || e[69] !== Y || e[70] !== ue || e[71] !== de || e[72] !== Re || e[73] !== U ? (me = {
@@ -3186,115 +3212,115 @@ const Lo = (t) => {
3186
3212
  watchError: Re
3187
3213
  }, e[68] = W, e[69] = Y, e[70] = ue, e[71] = de, e[72] = Re, e[73] = U, e[74] = me) : me = e[74], me;
3188
3214
  };
3189
- function Fr(t, e) {
3215
+ function $r(t, e) {
3190
3216
  return t;
3191
3217
  }
3192
- const $o = (t) => {
3193
- const e = $(28), {
3218
+ const Qo = (t) => {
3219
+ const e = q(28), {
3194
3220
  pluginID: r
3195
3221
  } = t, n = ee(r), {
3196
3222
  showSnackbar: s
3197
3223
  } = we();
3198
3224
  let i;
3199
- e[0] !== n ? (i = async (y) => {
3225
+ e[0] !== n ? (i = async (m) => {
3200
3226
  const {
3201
3227
  opts: _,
3202
- input: S
3203
- } = y;
3204
- return await Pe(n, _.connectionID), Qt(n, _.connectionID, _.resourceKey, Jt.createFrom({
3205
- input: S.input,
3206
- namespace: S.namespace ?? _.namespace ?? ""
3228
+ input: b
3229
+ } = m;
3230
+ return await Oe(n, _.connectionID), zt(n, _.connectionID, _.resourceKey, Yt.createFrom({
3231
+ input: b.input,
3232
+ namespace: b.namespace ?? _.namespace ?? ""
3207
3233
  }));
3208
3234
  }, e[0] = n, e[1] = i) : i = e[1];
3209
3235
  let o;
3210
- e[2] !== s ? (o = (y, _) => {
3236
+ e[2] !== s ? (o = (m, _) => {
3211
3237
  const {
3212
- opts: S
3238
+ opts: b
3213
3239
  } = _;
3214
- s(`Resource ${S.resourceID} created`, "success");
3240
+ s(`Resource ${b.resourceID} created`, "success");
3215
3241
  }, e[2] = s, e[3] = o) : o = e[3];
3216
3242
  let u;
3217
3243
  e[4] !== s || e[5] !== i || e[6] !== o ? (u = {
3218
3244
  mutationFn: i,
3219
3245
  onSuccess: o,
3220
- onError(y, _) {
3246
+ onError(m, _) {
3221
3247
  const {
3222
- opts: S
3248
+ opts: b
3223
3249
  } = _;
3224
- xe(s, y, `Failed to create resource ${S.resourceID}`);
3250
+ xe(s, m, `Failed to create resource ${b.resourceID}`);
3225
3251
  }
3226
3252
  }, e[4] = s, e[5] = i, e[6] = o, e[7] = u) : u = e[7];
3227
3253
  const l = oe(u);
3228
3254
  let a;
3229
- e[8] !== n ? (a = async (y) => {
3255
+ e[8] !== n ? (a = async (m) => {
3230
3256
  const {
3231
3257
  opts: _,
3232
- input: S
3233
- } = y;
3234
- return await Pe(n, _.connectionID), Wt(n, _.connectionID, _.resourceKey, zt.createFrom({
3235
- input: S.input,
3258
+ input: b
3259
+ } = m;
3260
+ return await Oe(n, _.connectionID), Gt(n, _.connectionID, _.resourceKey, Ht.createFrom({
3261
+ input: b.input,
3236
3262
  id: _.resourceID,
3237
3263
  namespace: _.namespace ?? ""
3238
3264
  }));
3239
3265
  }, e[8] = n, e[9] = a) : a = e[9];
3240
3266
  let c;
3241
- e[10] !== s ? (c = (y, _) => {
3267
+ e[10] !== s ? (c = (m, _) => {
3242
3268
  const {
3243
- opts: S
3269
+ opts: b
3244
3270
  } = _;
3245
- s(`Resource ${S.resourceID} updated`, "success");
3271
+ s(`Resource ${b.resourceID} updated`, "success");
3246
3272
  }, e[10] = s, e[11] = c) : c = e[11];
3247
3273
  let p;
3248
3274
  e[12] !== s || e[13] !== a || e[14] !== c ? (p = {
3249
3275
  mutationFn: a,
3250
3276
  onSuccess: c,
3251
- onError(y, _) {
3277
+ onError(m, _) {
3252
3278
  const {
3253
- opts: S
3279
+ opts: b
3254
3280
  } = _;
3255
- xe(s, y, `Failed to update resource ${S.resourceID}`);
3281
+ xe(s, m, `Failed to update resource ${b.resourceID}`);
3256
3282
  }
3257
3283
  }, e[12] = s, e[13] = a, e[14] = c, e[15] = p) : p = e[15];
3258
- const f = oe(p);
3284
+ const d = oe(p);
3259
3285
  let g;
3260
- e[16] !== n ? (g = async (y) => {
3286
+ e[16] !== n ? (g = async (m) => {
3261
3287
  const {
3262
3288
  opts: _,
3263
- input: S
3264
- } = y;
3265
- return await Pe(n, _.connectionID), Kt(n, _.connectionID, _.resourceKey, Bt.createFrom({
3289
+ input: b
3290
+ } = m;
3291
+ return await Oe(n, _.connectionID), Qt(n, _.connectionID, _.resourceKey, Jt.createFrom({
3266
3292
  id: _.resourceID,
3267
3293
  namespace: _.namespace ?? "",
3268
- gracePeriodSeconds: S.gracePeriodSeconds
3294
+ gracePeriodSeconds: b.gracePeriodSeconds
3269
3295
  }));
3270
3296
  }, e[16] = n, e[17] = g) : g = e[17];
3271
3297
  let h;
3272
- e[18] !== s ? (h = (y, _) => {
3298
+ e[18] !== s ? (h = (m, _) => {
3273
3299
  const {
3274
- opts: S
3300
+ opts: b
3275
3301
  } = _;
3276
- s(`Resource ${S.resourceID} deleted`, "success");
3302
+ s(`Resource ${b.resourceID} deleted`, "success");
3277
3303
  }, e[18] = s, e[19] = h) : h = e[19];
3278
- let v;
3279
- e[20] !== s || e[21] !== g || e[22] !== h ? (v = {
3304
+ let y;
3305
+ e[20] !== s || e[21] !== g || e[22] !== h ? (y = {
3280
3306
  mutationFn: g,
3281
3307
  onSuccess: h,
3282
- onError(y, _) {
3308
+ onError(m, _) {
3283
3309
  const {
3284
- opts: S
3310
+ opts: b
3285
3311
  } = _;
3286
- xe(s, y, `Failed to delete resource ${S.resourceID}`);
3312
+ xe(s, m, `Failed to delete resource ${b.resourceID}`);
3287
3313
  }
3288
- }, e[20] = s, e[21] = g, e[22] = h, e[23] = v) : v = e[23];
3289
- const d = oe(v);
3290
- let m;
3291
- return e[24] !== l.mutateAsync || e[25] !== d.mutateAsync || e[26] !== f.mutateAsync ? (m = {
3314
+ }, e[20] = s, e[21] = g, e[22] = h, e[23] = y) : y = e[23];
3315
+ const f = oe(y);
3316
+ let v;
3317
+ return e[24] !== l.mutateAsync || e[25] !== f.mutateAsync || e[26] !== d.mutateAsync ? (v = {
3292
3318
  create: l.mutateAsync,
3293
- update: f.mutateAsync,
3294
- remove: d.mutateAsync
3295
- }, e[24] = l.mutateAsync, e[25] = d.mutateAsync, e[26] = f.mutateAsync, e[27] = m) : m = e[27], m;
3296
- }, qo = (t) => {
3297
- const e = $(25), {
3319
+ update: d.mutateAsync,
3320
+ remove: f.mutateAsync
3321
+ }, e[24] = l.mutateAsync, e[25] = f.mutateAsync, e[26] = d.mutateAsync, e[27] = v) : v = e[27], v;
3322
+ }, jo = (t) => {
3323
+ const e = q(25), {
3298
3324
  pluginID: r,
3299
3325
  connectionID: n,
3300
3326
  resourceKey: s,
@@ -3307,52 +3333,52 @@ const $o = (t) => {
3307
3333
  enabled: l
3308
3334
  }, e[0] = n, e[1] = u, e[2] = l, e[3] = a) : a = e[3];
3309
3335
  const c = ge(a), p = Ce(u, n);
3310
- let f;
3311
- e[4] !== n || e[5] !== u || e[6] !== s ? (f = ["RESOURCE_ACTIONS", u, n, s], e[4] = n, e[5] = u, e[6] = s, e[7] = f) : f = e[7];
3336
+ let d;
3337
+ e[4] !== n || e[5] !== u || e[6] !== s ? (d = ["RESOURCE_ACTIONS", u, n, s], e[4] = n, e[5] = u, e[6] = s, e[7] = d) : d = e[7];
3312
3338
  let g;
3313
3339
  e[8] !== n || e[9] !== o || e[10] !== p || e[11] !== u || e[12] !== c || e[13] !== s ? (g = o && s && c.phase === "connected" ? (_) => {
3314
3340
  const {
3315
- signal: S,
3341
+ signal: b,
3316
3342
  queryKey: C
3317
3343
  } = _;
3318
- return p(C, S, () => ds(u, n, s));
3344
+ return p(C, b, () => ps(u, n, s));
3319
3345
  } : Ee, e[8] = n, e[9] = o, e[10] = p, e[11] = u, e[12] = c, e[13] = s, e[14] = g) : g = e[14];
3320
3346
  const h = o && !!u && !!n && !!s && c.phase === "connected";
3321
- let v;
3322
- e[15] !== f || e[16] !== g || e[17] !== h ? (v = {
3323
- queryKey: f,
3347
+ let y;
3348
+ e[15] !== d || e[16] !== g || e[17] !== h ? (y = {
3349
+ queryKey: d,
3324
3350
  queryFn: g,
3325
3351
  enabled: h,
3326
3352
  staleTime: 3e5
3327
- }, e[15] = f, e[16] = g, e[17] = h, e[18] = v) : v = e[18];
3328
- const d = re(v);
3353
+ }, e[15] = d, e[16] = g, e[17] = h, e[18] = y) : y = e[18];
3354
+ const f = re(y);
3355
+ let v;
3356
+ e[19] !== f.data ? (v = f.data ?? [], e[19] = f.data, e[20] = v) : v = e[20];
3329
3357
  let m;
3330
- e[19] !== d.data ? (m = d.data ?? [], e[19] = d.data, e[20] = m) : m = e[20];
3331
- let y;
3332
- return e[21] !== d.error || e[22] !== d.isLoading || e[23] !== m ? (y = {
3333
- actions: m,
3334
- isLoading: d.isLoading,
3335
- error: d.error
3336
- }, e[21] = d.error, e[22] = d.isLoading, e[23] = m, e[24] = y) : y = e[24], y;
3337
- }, Mo = (t) => {
3338
- const e = $(20), {
3358
+ return e[21] !== f.error || e[22] !== f.isLoading || e[23] !== v ? (m = {
3359
+ actions: v,
3360
+ isLoading: f.isLoading,
3361
+ error: f.error
3362
+ }, e[21] = f.error, e[22] = f.isLoading, e[23] = v, e[24] = m) : m = e[24], m;
3363
+ }, zo = (t) => {
3364
+ const e = q(20), {
3339
3365
  pluginID: r,
3340
3366
  connectionID: n,
3341
3367
  resourceKey: s
3342
- } = t, i = ee(r), o = be(), {
3368
+ } = t, i = ee(r), o = Se(), {
3343
3369
  showSnackbar: u
3344
3370
  } = we();
3345
3371
  let l;
3346
3372
  e[0] !== n || e[1] !== i || e[2] !== s ? (l = async (h) => {
3347
3373
  const {
3348
- actionID: v,
3349
- id: d,
3350
- namespace: m,
3351
- params: y
3352
- } = h, _ = d === void 0 ? "" : d, S = m === void 0 ? "" : m, C = y === void 0 ? {} : y;
3353
- return await Pe(i, n), fs(i, n, s, v, Vt.createFrom({
3374
+ actionID: y,
3375
+ id: f,
3376
+ namespace: v,
3377
+ params: m
3378
+ } = h, _ = f === void 0 ? "" : f, b = v === void 0 ? "" : v, C = m === void 0 ? {} : m;
3379
+ return await Oe(i, n), hs(i, n, s, y, Zt.createFrom({
3354
3380
  id: _,
3355
- namespace: S,
3381
+ namespace: b,
3356
3382
  params: C
3357
3383
  }));
3358
3384
  }, e[0] = n, e[1] = i, e[2] = s, e[3] = l) : l = e[3];
@@ -3363,8 +3389,8 @@ const $o = (t) => {
3363
3389
  });
3364
3390
  }, e[4] = n, e[5] = i, e[6] = o, e[7] = s, e[8] = u, e[9] = a) : a = e[9];
3365
3391
  let c;
3366
- e[10] !== u ? (c = (h, v) => {
3367
- xe(u, h, `Failed to execute action "${v.actionID}"`);
3392
+ e[10] !== u ? (c = (h, y) => {
3393
+ xe(u, h, `Failed to execute action "${y.actionID}"`);
3368
3394
  }, e[10] = u, e[11] = c) : c = e[11];
3369
3395
  let p;
3370
3396
  e[12] !== l || e[13] !== a || e[14] !== c ? (p = {
@@ -3372,15 +3398,15 @@ const $o = (t) => {
3372
3398
  onSuccess: a,
3373
3399
  onError: c
3374
3400
  }, e[12] = l, e[13] = a, e[14] = c, e[15] = p) : p = e[15];
3375
- const f = oe(p);
3401
+ const d = oe(p);
3376
3402
  let g;
3377
- return e[16] !== f.error || e[17] !== f.isPending || e[18] !== f.mutateAsync ? (g = {
3378
- executeAction: f.mutateAsync,
3379
- isExecuting: f.isPending,
3380
- error: f.error
3381
- }, e[16] = f.error, e[17] = f.isPending, e[18] = f.mutateAsync, e[19] = g) : g = e[19], g;
3382
- }, Uo = (t) => {
3383
- const e = $(24), {
3403
+ return e[16] !== d.error || e[17] !== d.isPending || e[18] !== d.mutateAsync ? (g = {
3404
+ executeAction: d.mutateAsync,
3405
+ isExecuting: d.isPending,
3406
+ error: d.error
3407
+ }, e[16] = d.error, e[17] = d.isPending, e[18] = d.mutateAsync, e[19] = g) : g = e[19], g;
3408
+ }, Bo = (t) => {
3409
+ const e = q(24), {
3384
3410
  pluginID: r,
3385
3411
  connectionID: n,
3386
3412
  enabled: s
@@ -3395,119 +3421,119 @@ const $o = (t) => {
3395
3421
  let c;
3396
3422
  e[4] !== n || e[5] !== o ? (c = ["EDITOR_SCHEMAS", o, n], e[4] = n, e[5] = o, e[6] = c) : c = e[6];
3397
3423
  let p;
3398
- e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (p = i && l.phase === "connected" ? (m) => {
3424
+ e[7] !== n || e[8] !== i || e[9] !== a || e[10] !== o || e[11] !== l ? (p = i && l.phase === "connected" ? (v) => {
3399
3425
  const {
3400
- signal: y,
3426
+ signal: m,
3401
3427
  queryKey: _
3402
- } = m;
3403
- return a(_, y, () => ps(o, n));
3428
+ } = v;
3429
+ return a(_, m, () => gs(o, n));
3404
3430
  } : Ee, e[7] = n, e[8] = i, e[9] = a, e[10] = o, e[11] = l, e[12] = p) : p = e[12];
3405
- const f = i && !!o && !!n && l.phase === "connected";
3431
+ const d = i && !!o && !!n && l.phase === "connected";
3406
3432
  let g;
3407
- e[13] !== c || e[14] !== p || e[15] !== f ? (g = {
3433
+ e[13] !== c || e[14] !== p || e[15] !== d ? (g = {
3408
3434
  queryKey: c,
3409
3435
  queryFn: p,
3410
- enabled: f,
3436
+ enabled: d,
3411
3437
  staleTime: 6e5,
3412
3438
  retry: 1
3413
- }, e[13] = c, e[14] = p, e[15] = f, e[16] = g) : g = e[16];
3439
+ }, e[13] = c, e[14] = p, e[15] = d, e[16] = g) : g = e[16];
3414
3440
  const h = re(g);
3415
- let v;
3416
- e[17] !== h.data ? (v = h.data ?? [], e[17] = h.data, e[18] = v) : v = e[18];
3417
- let d;
3418
- return e[19] !== h.error || e[20] !== h.isLoading || e[21] !== h.refetch || e[22] !== v ? (d = {
3419
- schemas: v,
3441
+ let y;
3442
+ e[17] !== h.data ? (y = h.data ?? [], e[17] = h.data, e[18] = y) : y = e[18];
3443
+ let f;
3444
+ return e[19] !== h.error || e[20] !== h.isLoading || e[21] !== h.refetch || e[22] !== y ? (f = {
3445
+ schemas: y,
3420
3446
  isLoading: h.isLoading,
3421
3447
  error: h.error,
3422
3448
  refetch: h.refetch
3423
- }, e[19] = h.error, e[20] = h.isLoading, e[21] = h.refetch, e[22] = v, e[23] = d) : d = e[23], d;
3424
- }, Wo = ({
3449
+ }, e[19] = h.error, e[20] = h.isLoading, e[21] = h.refetch, e[22] = y, e[23] = f) : f = e[23], f;
3450
+ }, Ho = ({
3425
3451
  pluginID: t,
3426
3452
  connectionID: e,
3427
3453
  enabled: r = !0
3428
3454
  }) => {
3429
- const n = ee(t), s = be(), i = [n, e, "watch-state"], o = pe([]), u = pe(!1), l = Ze((f) => {
3455
+ const n = ee(t), s = Se(), i = [n, e, "watch-state"], o = pe([]), u = pe(!1), l = Xe((d) => {
3430
3456
  s.setQueryData(i, (g) => {
3431
3457
  if (!g) return g;
3432
3458
  const h = {
3433
3459
  ...g.resources,
3434
- [f.resourceKey]: f.state
3435
- }, v = {
3460
+ [d.resourceKey]: d.state
3461
+ }, y = {
3436
3462
  ...g.resourceCounts,
3437
- [f.resourceKey]: f.resourceCount
3463
+ [d.resourceKey]: d.resourceCount
3438
3464
  };
3439
- let d = 0, m = 0;
3440
- for (const y of Object.values(h))
3441
- y === Q.WatchStateSynced && d++, (y === Q.WatchStateError || y === Q.WatchStateFailed) && m++;
3465
+ let f = 0, v = 0;
3466
+ for (const m of Object.values(h))
3467
+ m === Q.WatchStateSynced && f++, (m === Q.WatchStateError || m === Q.WatchStateFailed) && v++;
3442
3468
  return {
3443
3469
  ...g,
3444
3470
  resources: h,
3445
- resourceCounts: v,
3471
+ resourceCounts: y,
3446
3472
  totalResources: Object.keys(h).length,
3447
- syncedCount: d,
3448
- errorCount: m
3473
+ syncedCount: f,
3474
+ errorCount: v
3449
3475
  };
3450
3476
  });
3451
3477
  }, [s, n, e]), a = re({
3452
3478
  queryKey: i,
3453
3479
  queryFn: async () => {
3454
- const f = await hs(n, e);
3455
- if (!f) throw new Error("Failed to get watch state: null response");
3480
+ const d = await ys(n, e);
3481
+ if (!d) throw new Error("Failed to get watch state: null response");
3456
3482
  const g = {};
3457
- let h = 0, v = 0;
3458
- for (const [m, y] of Object.entries(f.resources ?? {}))
3459
- y != null && (g[m] = y, y === Q.WatchStateSynced && h++, y === Q.WatchStateError && v++);
3460
- const d = {};
3461
- for (const [m, y] of Object.entries(f.resourceCounts ?? {}))
3462
- y != null && (d[m] = y);
3483
+ let h = 0, y = 0;
3484
+ for (const [v, m] of Object.entries(d.resources ?? {}))
3485
+ m != null && (g[v] = m, m === Q.WatchStateSynced && h++, m === Q.WatchStateError && y++);
3486
+ const f = {};
3487
+ for (const [v, m] of Object.entries(d.resourceCounts ?? {}))
3488
+ m != null && (f[v] = m);
3463
3489
  return {
3464
- connection: f.connectionId,
3490
+ connection: d.connectionId,
3465
3491
  resources: g,
3466
- resourceCounts: d,
3492
+ resourceCounts: f,
3467
3493
  totalResources: Object.keys(g).length,
3468
3494
  syncedCount: h,
3469
- errorCount: v
3495
+ errorCount: y
3470
3496
  };
3471
3497
  },
3472
3498
  enabled: r && !!n && !!e,
3473
- refetchInterval: (f) => {
3474
- const g = f.state.data;
3499
+ refetchInterval: (d) => {
3500
+ const g = d.state.data;
3475
3501
  if (!g || g.totalResources === 0) return 3e3;
3476
3502
  let h = 0;
3477
- for (const v of Object.values(g.resources))
3478
- (v === Q.WatchStateSynced || v === Q.WatchStateError || v === Q.WatchStateStopped || v === Q.WatchStateFailed || v === Q.WatchStateForbidden || v === Q.WatchStateSkipped) && h++;
3503
+ for (const y of Object.values(g.resources))
3504
+ (y === Q.WatchStateSynced || y === Q.WatchStateError || y === Q.WatchStateStopped || y === Q.WatchStateFailed || y === Q.WatchStateForbidden || y === Q.WatchStateSkipped) && h++;
3479
3505
  return h >= g.totalResources ? !1 : 3e3;
3480
3506
  }
3481
3507
  });
3482
3508
  De(() => {
3483
3509
  if (!a.data || u.current) return;
3484
3510
  u.current = !0;
3485
- const f = o.current;
3511
+ const d = o.current;
3486
3512
  o.current = [];
3487
- for (const g of f)
3513
+ for (const g of d)
3488
3514
  l(g);
3489
3515
  }, [a.data, l]), De(() => {
3490
3516
  if (!r || !n || !e)
3491
3517
  return;
3492
3518
  u.current = !1, o.current = [];
3493
- const f = Z(`${n}/${e}/watch/STATE`, (g) => {
3519
+ const d = Z(`${n}/${e}/watch/STATE`, (g) => {
3494
3520
  const h = g.data;
3495
3521
  u.current ? l(h) : o.current.push(h);
3496
3522
  });
3497
3523
  return () => {
3498
- f(), u.current = !1, o.current = [];
3524
+ d(), u.current = !1, o.current = [];
3499
3525
  };
3500
3526
  }, [n, e, r, l]);
3501
3527
  const c = a.data;
3502
3528
  let p = 0;
3503
3529
  if (c?.resources)
3504
- for (const f of Object.values(c.resources))
3505
- (f === Q.WatchStateSynced || f === Q.WatchStateError || f === Q.WatchStateStopped || f === Q.WatchStateFailed || f === Q.WatchStateForbidden || f === Q.WatchStateSkipped) && p++;
3530
+ for (const d of Object.values(c.resources))
3531
+ (d === Q.WatchStateSynced || d === Q.WatchStateError || d === Q.WatchStateStopped || d === Q.WatchStateFailed || d === Q.WatchStateForbidden || d === Q.WatchStateSkipped) && p++;
3506
3532
  return {
3507
3533
  /** Full summary query result */
3508
3534
  summary: a,
3509
3535
  /** Get the state of a specific resource type's watch */
3510
- getResourceState: (f) => c?.resources[f],
3536
+ getResourceState: (d) => c?.resources[d],
3511
3537
  /** Whether all registered watches have reached a terminal state */
3512
3538
  isFullySynced: c ? c.totalResources > 0 && p === c.totalResources : !1,
3513
3539
  /** Sync progress as a 0-1 fraction (terminal states / total) */
@@ -3515,8 +3541,8 @@ const $o = (t) => {
3515
3541
  /** Number of watches that encountered errors */
3516
3542
  errorCount: c?.errorCount ?? 0
3517
3543
  };
3518
- }, Ko = () => {
3519
- const t = $(16);
3544
+ }, Jo = () => {
3545
+ const t = q(16);
3520
3546
  let e;
3521
3547
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Map(), t[0] = e) : e = t[0];
3522
3548
  const [r, n] = Ie(e);
@@ -3527,51 +3553,51 @@ const $o = (t) => {
3527
3553
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ new Map(), t[2] = o) : o = t[2];
3528
3554
  const u = pe(o);
3529
3555
  let l;
3530
- t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (y) => {
3531
- const _ = y.data, S = Ct(_), C = fn(i.current, _), E = mt(C);
3556
+ t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = (m) => {
3557
+ const _ = m.data, b = Dt(_), C = hn(i.current, _), E = vt(C);
3532
3558
  if (n((I) => {
3533
3559
  const w = new Map(I);
3534
- return w.set(S, E), w;
3535
- }), u.current.has(S) && (clearTimeout(u.current.get(S)), u.current.delete(S)), tt(E)) {
3560
+ return w.set(b, E), w;
3561
+ }), u.current.has(b) && (clearTimeout(u.current.get(b)), u.current.delete(b)), nt(E)) {
3536
3562
  const I = setTimeout(() => {
3537
3563
  n((w) => {
3538
3564
  const D = new Map(w);
3539
- return D.delete(S), D;
3540
- }), i.current.delete(S), u.current.delete(S);
3565
+ return D.delete(b), D;
3566
+ }), i.current.delete(b), u.current.delete(b);
3541
3567
  }, 5e3);
3542
- u.current.set(S, I);
3568
+ u.current.set(b, I);
3543
3569
  }
3544
3570
  }, t[3] = l) : l = t[3];
3545
3571
  const a = l;
3546
3572
  let c, p;
3547
3573
  t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = () => {
3548
- const y = Z("watch/STATE", a);
3574
+ const m = Z("watch/STATE", a);
3549
3575
  return () => {
3550
- y();
3576
+ m();
3551
3577
  for (const _ of u.current.values())
3552
3578
  clearTimeout(_);
3553
3579
  };
3554
3580
  }, p = [a], t[4] = c, t[5] = p) : (c = t[4], p = t[5]), De(c, p);
3555
- let f, g, h, v;
3556
- t[6] !== r ? (h = Array.from(r.values()), f = un(h), g = h.find(kr) ?? h[0] ?? null, v = dn(h), t[6] = r, t[7] = f, t[8] = g, t[9] = h, t[10] = v) : (f = t[7], g = t[8], h = t[9], v = t[10]);
3557
- const d = v;
3558
- let m;
3559
- return t[11] !== d || t[12] !== f || t[13] !== g || t[14] !== h ? (m = {
3581
+ let d, g, h, y;
3582
+ t[6] !== r ? (h = Array.from(r.values()), d = fn(h), g = h.find(qr) ?? h[0] ?? null, y = pn(h), t[6] = r, t[7] = d, t[8] = g, t[9] = h, t[10] = y) : (d = t[7], g = t[8], h = t[9], y = t[10]);
3583
+ const f = y;
3584
+ let v;
3585
+ return t[11] !== f || t[12] !== d || t[13] !== g || t[14] !== h ? (v = {
3560
3586
  syncs: h,
3561
- hasSyncing: f,
3587
+ hasSyncing: d,
3562
3588
  primarySync: g,
3563
- aggregateProgress: d
3564
- }, t[11] = d, t[12] = f, t[13] = g, t[14] = h, t[15] = m) : m = t[15], m;
3589
+ aggregateProgress: f
3590
+ }, t[11] = f, t[12] = d, t[13] = g, t[14] = h, t[15] = v) : v = t[15], v;
3565
3591
  };
3566
- function kr(t) {
3567
- return !tt(t);
3592
+ function qr(t) {
3593
+ return !nt(t);
3568
3594
  }
3569
- const Lr = () => {
3570
- const t = q.useContext(Xt);
3595
+ const Mr = () => {
3596
+ const t = L.useContext(tn);
3571
3597
  if (!t)
3572
3598
  throw new Error("useOperations must be used within an OperationsProvider");
3573
3599
  return t;
3574
- }, Go = ({
3600
+ }, Vo = ({
3575
3601
  pluginID: t,
3576
3602
  connectionID: e,
3577
3603
  resourceKey: r
@@ -3581,73 +3607,73 @@ const Lr = () => {
3581
3607
  } = we(), {
3582
3608
  addOperation: i,
3583
3609
  updateOperation: o
3584
- } = Lr(), u = q.useRef(/* @__PURE__ */ new Set()), l = q.useCallback((p, f = !1) => {
3585
- p.disposed || (p.disposed = !0, p.unsubscribe?.(), p.open?.cancel(), p.attach?.cancel(), p.handle && (At(p.handle).catch(() => {
3586
- }), f && o(p.handle, {
3610
+ } = Mr(), u = L.useRef(/* @__PURE__ */ new Set()), l = L.useCallback((p, d = !1) => {
3611
+ p.disposed || (p.disposed = !0, p.unsubscribe?.(), p.open?.cancel(), p.attach?.cancel(), p.handle && (Pt(p.handle).catch(() => {
3612
+ }), d && o(p.handle, {
3587
3613
  status: "cancelled",
3588
3614
  message: "Cancelled",
3589
3615
  completedAt: Date.now()
3590
3616
  })), u.current.delete(p));
3591
3617
  }, [o]);
3592
- q.useEffect(() => () => {
3618
+ L.useEffect(() => () => {
3593
3619
  for (const p of u.current) l(p, !0);
3594
3620
  }, [n, e, r, l]);
3595
- const a = q.useCallback(async ({
3621
+ const a = L.useCallback(async ({
3596
3622
  actionID: p,
3597
- id: f,
3623
+ id: d,
3598
3624
  namespace: g,
3599
3625
  label: h,
3600
- params: v = {}
3626
+ params: y = {}
3601
3627
  }) => {
3602
- const d = {
3628
+ const f = {
3603
3629
  disposed: !1,
3604
3630
  terminal: !1,
3605
3631
  sequence: 0
3606
3632
  };
3607
- u.current.add(d);
3633
+ u.current.add(f);
3608
3634
  try {
3609
- if (await Pe(n, e), d.disposed) throw new Error("Stream action was cancelled before the connection became ready");
3610
- d.open = gs(n, e, r, p, Vt.createFrom({
3611
- id: f,
3635
+ if (await Oe(n, e), f.disposed) throw new Error("Stream action was cancelled before the connection became ready");
3636
+ f.open = ms(n, e, r, p, Zt.createFrom({
3637
+ id: d,
3612
3638
  namespace: g,
3613
- params: v
3639
+ params: y
3614
3640
  }));
3615
- const m = await d.open;
3616
- if (d.open = void 0, d.disposed)
3617
- return At(m).catch(() => {
3618
- }), m;
3619
- d.handle = m, i({
3620
- id: m,
3641
+ const v = await f.open;
3642
+ if (f.open = void 0, f.disposed)
3643
+ return Pt(v).catch(() => {
3644
+ }), v;
3645
+ f.handle = v, i({
3646
+ id: v,
3621
3647
  label: h,
3622
3648
  resourceKey: r,
3623
- resourceName: f,
3649
+ resourceName: d,
3624
3650
  namespace: g,
3625
3651
  connectionID: e,
3626
3652
  status: "running",
3627
3653
  startedAt: Date.now()
3628
3654
  });
3629
- const y = (S) => {
3630
- if (d.disposed || !Number.isSafeInteger(S.sequence) || S.sequence <= d.sequence) return;
3631
- d.sequence = S.sequence;
3632
- const C = S.event, E = C.data ?? {};
3655
+ const m = (b) => {
3656
+ if (f.disposed || !Number.isSafeInteger(b.sequence) || b.sequence <= f.sequence) return;
3657
+ f.sequence = b.sequence;
3658
+ const C = b.event, E = C.data ?? {};
3633
3659
  if (C.type === "error") {
3634
- d.terminal = !0;
3635
- const I = Se(C.error);
3636
- o(m, {
3637
- status: Xe(I) ? "cancelled" : "error",
3660
+ f.terminal = !0;
3661
+ const I = be(C.error);
3662
+ o(v, {
3663
+ status: et(I) ? "cancelled" : "error",
3638
3664
  message: I.title,
3639
3665
  completedAt: Date.now()
3640
- }), xe(s, I, h), l(d);
3666
+ }), xe(s, I, h), l(f);
3641
3667
  } else if (C.type === "complete") {
3642
- d.terminal = !0;
3668
+ f.terminal = !0;
3643
3669
  const I = typeof E.message == "string" ? E.message : `${h} completed`;
3644
- o(m, {
3670
+ o(v, {
3645
3671
  status: "completed",
3646
3672
  message: I,
3647
3673
  completedAt: Date.now()
3648
- }), s(I, "success"), l(d);
3674
+ }), s(I, "success"), l(f);
3649
3675
  } else
3650
- o(m, {
3676
+ o(v, {
3651
3677
  message: typeof E.message == "string" ? E.message : void 0,
3652
3678
  progress: typeof E.ready == "number" && typeof E.desired == "number" ? {
3653
3679
  ready: E.ready,
@@ -3655,20 +3681,20 @@ const Lr = () => {
3655
3681
  } : void 0
3656
3682
  });
3657
3683
  };
3658
- d.unsubscribe = Z(`action/stream/${m}`, (S) => y(S.data)), d.attach = ys(m);
3659
- const _ = await d.attach;
3660
- return d.attach = void 0, y(_), m;
3661
- } catch (m) {
3662
- if (d.terminal && d.handle) return d.handle;
3663
- throw d.disposed || (d.handle && o(d.handle, {
3664
- status: Xe(m) ? "cancelled" : "error",
3665
- message: Se(m).title,
3684
+ f.unsubscribe = Z(`action/stream/${v}`, (b) => m(b.data)), f.attach = vs(v);
3685
+ const _ = await f.attach;
3686
+ return f.attach = void 0, m(_), v;
3687
+ } catch (v) {
3688
+ if (f.terminal && f.handle) return f.handle;
3689
+ throw f.disposed || (f.handle && o(f.handle, {
3690
+ status: et(v) ? "cancelled" : "error",
3691
+ message: be(v).title,
3666
3692
  completedAt: Date.now()
3667
- }), xe(s, m, `Failed to start "${p}"`)), l(d), m;
3693
+ }), xe(s, v, `Failed to start "${p}"`)), l(f), v;
3668
3694
  }
3669
- }, [n, e, r, i, o, s, l]), c = q.useCallback((p) => {
3670
- for (const f of u.current) if (f.handle === p) {
3671
- l(f, !0);
3695
+ }, [n, e, r, i, o, s, l]), c = L.useCallback((p) => {
3696
+ for (const d of u.current) if (d.handle === p) {
3697
+ l(d, !0);
3672
3698
  return;
3673
3699
  }
3674
3700
  }, [l]);
@@ -3677,15 +3703,15 @@ const Lr = () => {
3677
3703
  cancelStreamAction: c
3678
3704
  };
3679
3705
  };
3680
- function $r(t, e) {
3706
+ function Ur(t, e) {
3681
3707
  return `${t}/${e}/graph/CHANGED`;
3682
3708
  }
3683
- function It(t, e, r, n) {
3684
- const s = $(16), i = be(), o = pe(r);
3709
+ function Rt(t, e, r, n) {
3710
+ const s = q(16), i = Se(), o = pe(r);
3685
3711
  let u, l;
3686
3712
  s[0] !== r ? (u = () => {
3687
3713
  o.current = r;
3688
- }, l = [r], s[0] = r, s[1] = u, s[2] = l) : (u = s[1], l = s[2]), ht(u, l);
3714
+ }, l = [r], s[0] = r, s[1] = u, s[2] = l) : (u = s[1], l = s[2]), gt(u, l);
3689
3715
  let a;
3690
3716
  s[3] !== r ? (a = JSON.stringify(r), s[3] = r, s[4] = a) : a = s[4];
3691
3717
  const c = a;
@@ -3693,7 +3719,7 @@ function It(t, e, r, n) {
3693
3719
  s[5] !== e || s[6] !== n || s[7] !== t || s[8] !== i ? (p = () => {
3694
3720
  if (!n || !t || !e)
3695
3721
  return;
3696
- const g = Z($r(t, e), () => {
3722
+ const g = Z(Ur(t, e), () => {
3697
3723
  i.invalidateQueries({
3698
3724
  queryKey: o.current,
3699
3725
  exact: !0
@@ -3703,10 +3729,10 @@ function It(t, e, r, n) {
3703
3729
  g();
3704
3730
  };
3705
3731
  }, s[5] = e, s[6] = n, s[7] = t, s[8] = i, s[9] = p) : p = s[9];
3706
- let f;
3707
- s[10] !== e || s[11] !== n || s[12] !== c || s[13] !== t || s[14] !== i ? (f = [i, t, e, c, n], s[10] = e, s[11] = n, s[12] = c, s[13] = t, s[14] = i, s[15] = f) : f = s[15], De(p, f);
3732
+ let d;
3733
+ s[10] !== e || s[11] !== n || s[12] !== c || s[13] !== t || s[14] !== i ? (d = [i, t, e, c, n], s[10] = e, s[11] = n, s[12] = c, s[13] = t, s[14] = i, s[15] = d) : d = s[15], De(p, d);
3708
3734
  }
3709
- const qr = {
3735
+ const Wr = {
3710
3736
  owns: {
3711
3737
  outgoing: "Owns",
3712
3738
  incoming: "Owned by"
@@ -3736,19 +3762,19 @@ const qr = {
3736
3762
  incoming: "Selected by"
3737
3763
  }
3738
3764
  };
3739
- function Qo(t, e) {
3740
- const r = qr[t];
3765
+ function Yo(t, e) {
3766
+ const r = Wr[t];
3741
3767
  if (r)
3742
3768
  return r[e];
3743
3769
  const n = t.replace(/_/g, " ");
3744
3770
  return e === "outgoing" ? n : `${n} (incoming)`;
3745
3771
  }
3746
- function Mr(t, e) {
3772
+ function Kr(t, e) {
3747
3773
  return t.pluginId === e.pluginId && t.connectionId === e.connectionId && t.resourceKey === e.resourceKey && t.id === e.id && (t.namespace ?? "") === (e.namespace ?? "");
3748
3774
  }
3749
- function Ur(t, e) {
3775
+ function Gr(t, e) {
3750
3776
  return e.map((r) => {
3751
- const n = Mr(r.source, t);
3777
+ const n = Kr(r.source, t);
3752
3778
  return {
3753
3779
  resource: n ? r.target : r.source,
3754
3780
  type: r.type,
@@ -3757,8 +3783,8 @@ function Ur(t, e) {
3757
3783
  };
3758
3784
  });
3759
3785
  }
3760
- const jo = (t) => {
3761
- const e = $(44), {
3786
+ const Zo = (t) => {
3787
+ const e = q(44), {
3762
3788
  pluginID: r,
3763
3789
  connectionID: n,
3764
3790
  resourceKey: s,
@@ -3768,58 +3794,58 @@ const jo = (t) => {
3768
3794
  relationshipType: l,
3769
3795
  enabled: a,
3770
3796
  refetchInterval: c
3771
- } = t, p = o === void 0 ? "" : o, f = u === void 0 ? "both" : u, g = a === void 0 ? !0 : a, h = c === void 0 ? !1 : c, v = ee(r), d = l ?? null;
3772
- let m;
3773
- e[0] !== n || e[1] !== f || e[2] !== p || e[3] !== v || e[4] !== i || e[5] !== s || e[6] !== d ? (m = ["RESOURCE_RELATED", v, n, s, p, i, f, d], e[0] = n, e[1] = f, e[2] = p, e[3] = v, e[4] = i, e[5] = s, e[6] = d, e[7] = m) : m = e[7];
3774
- const y = m, _ = g && !!s && !!i;
3775
- let S;
3776
- e[8] !== n || e[9] !== v || e[10] !== _ ? (S = {
3777
- pluginID: v,
3797
+ } = t, p = o === void 0 ? "" : o, d = u === void 0 ? "both" : u, g = a === void 0 ? !0 : a, h = c === void 0 ? !1 : c, y = ee(r), f = l ?? null;
3798
+ let v;
3799
+ e[0] !== n || e[1] !== d || e[2] !== p || e[3] !== y || e[4] !== i || e[5] !== s || e[6] !== f ? (v = ["RESOURCE_RELATED", y, n, s, p, i, d, f], e[0] = n, e[1] = d, e[2] = p, e[3] = y, e[4] = i, e[5] = s, e[6] = f, e[7] = v) : v = e[7];
3800
+ const m = v, _ = g && !!s && !!i;
3801
+ let b;
3802
+ e[8] !== n || e[9] !== y || e[10] !== _ ? (b = {
3803
+ pluginID: y,
3778
3804
  connectionID: n,
3779
3805
  enabled: _
3780
- }, e[8] = n, e[9] = v, e[10] = _, e[11] = S) : S = e[11];
3781
- const C = ge(S), E = Ce(v, n), I = g && !!v && !!n && !!s && !!i && C.phase === "connected";
3782
- It(v, n, y, I);
3806
+ }, e[8] = n, e[9] = y, e[10] = _, e[11] = b) : b = e[11];
3807
+ const C = ge(b), E = Ce(y, n), I = g && !!y && !!n && !!s && !!i && C.phase === "connected";
3808
+ Rt(y, n, m, I);
3783
3809
  let w;
3784
- e[12] !== n || e[13] !== f || e[14] !== E || e[15] !== p || e[16] !== v || e[17] !== I || e[18] !== l || e[19] !== i || e[20] !== s ? (w = I ? (k) => {
3810
+ e[12] !== n || e[13] !== d || e[14] !== E || e[15] !== p || e[16] !== y || e[17] !== I || e[18] !== l || e[19] !== i || e[20] !== s ? (w = I ? (k) => {
3785
3811
  const {
3786
3812
  signal: M,
3787
3813
  queryKey: W
3788
3814
  } = k;
3789
- return E(W, M, () => ms(v, n, s, p, i, f, l ?? null));
3790
- } : Ee, e[12] = n, e[13] = f, e[14] = E, e[15] = p, e[16] = v, e[17] = I, e[18] = l, e[19] = i, e[20] = s, e[21] = w) : w = e[21];
3815
+ return E(W, M, () => _s(y, n, s, p, i, d, l ?? null));
3816
+ } : Ee, e[12] = n, e[13] = d, e[14] = E, e[15] = p, e[16] = y, e[17] = I, e[18] = l, e[19] = i, e[20] = s, e[21] = w) : w = e[21];
3791
3817
  let D;
3792
- e[22] !== I || e[23] !== y || e[24] !== h || e[25] !== w ? (D = {
3793
- queryKey: y,
3818
+ e[22] !== I || e[23] !== m || e[24] !== h || e[25] !== w ? (D = {
3819
+ queryKey: m,
3794
3820
  queryFn: w,
3795
3821
  enabled: I,
3796
3822
  refetchInterval: h
3797
- }, e[22] = I, e[23] = y, e[24] = h, e[25] = w, e[26] = D) : D = e[26];
3823
+ }, e[22] = I, e[23] = m, e[24] = h, e[25] = w, e[26] = D) : D = e[26];
3798
3824
  const x = re(D);
3799
- let O, A;
3800
- if (e[27] !== n || e[28] !== p || e[29] !== v || e[30] !== x.data || e[31] !== i || e[32] !== s) {
3825
+ let P, T;
3826
+ if (e[27] !== n || e[28] !== p || e[29] !== y || e[30] !== x.data || e[31] !== i || e[32] !== s) {
3801
3827
  const k = {
3802
- pluginId: v,
3828
+ pluginId: y,
3803
3829
  connectionId: n,
3804
3830
  resourceKey: s,
3805
3831
  id: i,
3806
3832
  namespace: p
3807
3833
  };
3808
3834
  let M;
3809
- e[35] !== x.data ? (M = x.data ?? [], e[35] = x.data, e[36] = M) : M = e[36], O = M, A = Ur(k, O), e[27] = n, e[28] = p, e[29] = v, e[30] = x.data, e[31] = i, e[32] = s, e[33] = O, e[34] = A;
3835
+ e[35] !== x.data ? (M = x.data ?? [], e[35] = x.data, e[36] = M) : M = e[36], P = M, T = Gr(k, P), e[27] = n, e[28] = p, e[29] = y, e[30] = x.data, e[31] = i, e[32] = s, e[33] = P, e[34] = T;
3810
3836
  } else
3811
- O = e[33], A = e[34];
3812
- let T;
3813
- return e[37] !== O || e[38] !== x.error || e[39] !== x.isFetching || e[40] !== x.isLoading || e[41] !== x.refetch || e[42] !== A ? (T = {
3814
- related: A,
3815
- edges: O,
3837
+ P = e[33], T = e[34];
3838
+ let A;
3839
+ return e[37] !== P || e[38] !== x.error || e[39] !== x.isFetching || e[40] !== x.isLoading || e[41] !== x.refetch || e[42] !== T ? (A = {
3840
+ related: T,
3841
+ edges: P,
3816
3842
  isLoading: x.isLoading,
3817
3843
  isFetching: x.isFetching,
3818
3844
  error: x.error,
3819
3845
  refetch: x.refetch
3820
- }, e[37] = O, e[38] = x.error, e[39] = x.isFetching, e[40] = x.isLoading, e[41] = x.refetch, e[42] = A, e[43] = T) : T = e[43], T;
3821
- }, zo = (t) => {
3822
- const e = $(31), {
3846
+ }, e[37] = P, e[38] = x.error, e[39] = x.isFetching, e[40] = x.isLoading, e[41] = x.refetch, e[42] = T, e[43] = A) : A = e[43], A;
3847
+ }, Xo = (t) => {
3848
+ const e = q(31), {
3823
3849
  pluginID: r,
3824
3850
  connectionID: n,
3825
3851
  resourceKey: s,
@@ -3828,33 +3854,33 @@ const jo = (t) => {
3828
3854
  maxDepth: u,
3829
3855
  enabled: l,
3830
3856
  refetchInterval: a
3831
- } = t, c = o === void 0 ? "" : o, p = u === void 0 ? 3 : u, f = l === void 0 ? !0 : l, g = a === void 0 ? !1 : a, h = ee(r);
3832
- let v;
3833
- e[0] !== n || e[1] !== p || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s ? (v = ["RESOURCE_DEPENDENCY_TREE", h, n, s, c, i, p], e[0] = n, e[1] = p, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = v) : v = e[6];
3834
- const d = v, m = f && !!s && !!i;
3857
+ } = t, c = o === void 0 ? "" : o, p = u === void 0 ? 3 : u, d = l === void 0 ? !0 : l, g = a === void 0 ? !1 : a, h = ee(r);
3835
3858
  let y;
3836
- e[7] !== n || e[8] !== h || e[9] !== m ? (y = {
3859
+ e[0] !== n || e[1] !== p || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s ? (y = ["RESOURCE_DEPENDENCY_TREE", h, n, s, c, i, p], e[0] = n, e[1] = p, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = y) : y = e[6];
3860
+ const f = y, v = d && !!s && !!i;
3861
+ let m;
3862
+ e[7] !== n || e[8] !== h || e[9] !== v ? (m = {
3837
3863
  pluginID: h,
3838
3864
  connectionID: n,
3839
- enabled: m
3840
- }, e[7] = n, e[8] = h, e[9] = m, e[10] = y) : y = e[10];
3841
- const _ = ge(y), S = Ce(h, n), C = f && !!h && !!n && !!s && !!i && _.phase === "connected";
3842
- It(h, n, d, C);
3865
+ enabled: v
3866
+ }, e[7] = n, e[8] = h, e[9] = v, e[10] = m) : m = e[10];
3867
+ const _ = ge(m), b = Ce(h, n), C = d && !!h && !!n && !!s && !!i && _.phase === "connected";
3868
+ Rt(h, n, f, C);
3843
3869
  let E;
3844
- e[11] !== n || e[12] !== S || e[13] !== p || e[14] !== c || e[15] !== h || e[16] !== C || e[17] !== i || e[18] !== s ? (E = C ? (O) => {
3870
+ e[11] !== n || e[12] !== b || e[13] !== p || e[14] !== c || e[15] !== h || e[16] !== C || e[17] !== i || e[18] !== s ? (E = C ? (P) => {
3845
3871
  const {
3846
- signal: A,
3847
- queryKey: T
3848
- } = O;
3849
- return S(T, A, () => vs(h, n, s, c, i, p));
3850
- } : Ee, e[11] = n, e[12] = S, e[13] = p, e[14] = c, e[15] = h, e[16] = C, e[17] = i, e[18] = s, e[19] = E) : E = e[19];
3872
+ signal: T,
3873
+ queryKey: A
3874
+ } = P;
3875
+ return b(A, T, () => bs(h, n, s, c, i, p));
3876
+ } : Ee, e[11] = n, e[12] = b, e[13] = p, e[14] = c, e[15] = h, e[16] = C, e[17] = i, e[18] = s, e[19] = E) : E = e[19];
3851
3877
  let I;
3852
- e[20] !== C || e[21] !== d || e[22] !== g || e[23] !== E ? (I = {
3853
- queryKey: d,
3878
+ e[20] !== C || e[21] !== f || e[22] !== g || e[23] !== E ? (I = {
3879
+ queryKey: f,
3854
3880
  queryFn: E,
3855
3881
  enabled: C,
3856
3882
  refetchInterval: g
3857
- }, e[20] = C, e[21] = d, e[22] = g, e[23] = E, e[24] = I) : I = e[24];
3883
+ }, e[20] = C, e[21] = f, e[22] = g, e[23] = E, e[24] = I) : I = e[24];
3858
3884
  const w = re(I), D = w.data ?? null;
3859
3885
  let x;
3860
3886
  return e[25] !== w.error || e[26] !== w.isFetching || e[27] !== w.isLoading || e[28] !== w.refetch || e[29] !== D ? (x = {
@@ -3864,8 +3890,8 @@ const jo = (t) => {
3864
3890
  error: w.error,
3865
3891
  refetch: w.refetch
3866
3892
  }, e[25] = w.error, e[26] = w.isFetching, e[27] = w.isLoading, e[28] = w.refetch, e[29] = D, e[30] = x) : x = e[30], x;
3867
- }, Bo = (t) => {
3868
- const e = $(32), {
3893
+ }, ei = (t) => {
3894
+ const e = q(32), {
3869
3895
  pluginID: r,
3870
3896
  connectionID: n,
3871
3897
  resourceKey: s,
@@ -3874,32 +3900,32 @@ const jo = (t) => {
3874
3900
  upDepth: u,
3875
3901
  downDepth: l,
3876
3902
  enabled: a
3877
- } = t, c = o === void 0 ? "" : o, p = u === void 0 ? 2 : u, f = l === void 0 ? 3 : l, g = a === void 0 ? !0 : a, h = ee(r);
3878
- let v;
3879
- e[0] !== n || e[1] !== f || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s || e[6] !== p ? (v = ["RESOURCE_GRAPH", h, n, s, c, i, p, f], e[0] = n, e[1] = f, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = p, e[7] = v) : v = e[7];
3880
- const d = v, m = g && !!s && !!i;
3903
+ } = t, c = o === void 0 ? "" : o, p = u === void 0 ? 2 : u, d = l === void 0 ? 3 : l, g = a === void 0 ? !0 : a, h = ee(r);
3881
3904
  let y;
3882
- e[8] !== n || e[9] !== h || e[10] !== m ? (y = {
3905
+ e[0] !== n || e[1] !== d || e[2] !== c || e[3] !== h || e[4] !== i || e[5] !== s || e[6] !== p ? (y = ["RESOURCE_GRAPH", h, n, s, c, i, p, d], e[0] = n, e[1] = d, e[2] = c, e[3] = h, e[4] = i, e[5] = s, e[6] = p, e[7] = y) : y = e[7];
3906
+ const f = y, v = g && !!s && !!i;
3907
+ let m;
3908
+ e[8] !== n || e[9] !== h || e[10] !== v ? (m = {
3883
3909
  pluginID: h,
3884
3910
  connectionID: n,
3885
- enabled: m
3886
- }, e[8] = n, e[9] = h, e[10] = m, e[11] = y) : y = e[11];
3887
- const _ = ge(y), S = Ce(h, n), C = g && !!h && !!n && !!s && !!i && _.phase === "connected";
3888
- It(h, n, d, C);
3911
+ enabled: v
3912
+ }, e[8] = n, e[9] = h, e[10] = v, e[11] = m) : m = e[11];
3913
+ const _ = ge(m), b = Ce(h, n), C = g && !!h && !!n && !!s && !!i && _.phase === "connected";
3914
+ Rt(h, n, f, C);
3889
3915
  let E;
3890
- e[12] !== n || e[13] !== f || e[14] !== S || e[15] !== c || e[16] !== h || e[17] !== C || e[18] !== i || e[19] !== s || e[20] !== p ? (E = C ? (O) => {
3916
+ e[12] !== n || e[13] !== d || e[14] !== b || e[15] !== c || e[16] !== h || e[17] !== C || e[18] !== i || e[19] !== s || e[20] !== p ? (E = C ? (P) => {
3891
3917
  const {
3892
- signal: A,
3893
- queryKey: T
3894
- } = O;
3895
- return S(T, A, () => _s(h, n, s, c, i, p, f));
3896
- } : Ee, e[12] = n, e[13] = f, e[14] = S, e[15] = c, e[16] = h, e[17] = C, e[18] = i, e[19] = s, e[20] = p, e[21] = E) : E = e[21];
3918
+ signal: T,
3919
+ queryKey: A
3920
+ } = P;
3921
+ return b(A, T, () => Ss(h, n, s, c, i, p, d));
3922
+ } : Ee, e[12] = n, e[13] = d, e[14] = b, e[15] = c, e[16] = h, e[17] = C, e[18] = i, e[19] = s, e[20] = p, e[21] = E) : E = e[21];
3897
3923
  let I;
3898
- e[22] !== C || e[23] !== d || e[24] !== E ? (I = {
3899
- queryKey: d,
3924
+ e[22] !== C || e[23] !== f || e[24] !== E ? (I = {
3925
+ queryKey: f,
3900
3926
  queryFn: E,
3901
3927
  enabled: C
3902
- }, e[22] = C, e[23] = d, e[24] = E, e[25] = I) : I = e[25];
3928
+ }, e[22] = C, e[23] = f, e[24] = E, e[25] = I) : I = e[25];
3903
3929
  const w = re(I), D = w.data ?? null;
3904
3930
  let x;
3905
3931
  return e[26] !== w.error || e[27] !== w.isFetching || e[28] !== w.isLoading || e[29] !== w.refetch || e[30] !== D ? (x = {
@@ -3909,40 +3935,56 @@ const jo = (t) => {
3909
3935
  error: w.error,
3910
3936
  refetch: w.refetch
3911
3937
  }, e[26] = w.error, e[27] = w.isFetching, e[28] = w.isLoading, e[29] = w.refetch, e[30] = D, e[31] = x) : x = e[31], x;
3912
- }, Ho = () => {
3913
- const t = q.useContext(Zt);
3938
+ }, ti = () => {
3939
+ const t = L.useContext(en);
3914
3940
  if (!t)
3915
3941
  throw new Error("useSettings must be used within a SettingsProvider");
3916
3942
  return t;
3917
- }, Jo = (t) => {
3918
- const e = $(7);
3919
- let r, n;
3943
+ }, Qr = 1, ni = (t) => {
3944
+ const e = q(19);
3945
+ let r, n, s, i;
3920
3946
  if (e[0] !== t) {
3921
3947
  const {
3922
- to: l,
3923
- withinContext: a,
3924
- ...c
3948
+ to: y,
3949
+ withinContext: f,
3950
+ onClick: v,
3951
+ onAuxClick: m,
3952
+ ..._
3925
3953
  } = t;
3926
- n = l, r = c, e[0] = t, e[1] = r, e[2] = n;
3954
+ i = y, n = v, r = m, s = _, e[0] = t, e[1] = r, e[2] = n, e[3] = s, e[4] = i;
3927
3955
  } else
3928
- r = e[1], n = e[2];
3956
+ r = e[1], n = e[2], s = e[3], i = e[4];
3929
3957
  const {
3930
- pluginId: s
3931
- } = bt();
3932
- s || console.error("Link used outside of a plugin context");
3933
- const i = `/_plugin/${s}${n.startsWith("/") ? "" : "/"}${n}`;
3934
- let o;
3935
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
3958
+ pluginId: o
3959
+ } = Et(), u = L.useContext(wt);
3960
+ o || console.error("Link used outside of a plugin context");
3961
+ const l = `/_plugin/${o}${i.startsWith("/") ? "" : "/"}${i}`;
3962
+ let a;
3963
+ e[5] !== n || e[6] !== l || e[7] !== u ? (a = (y) => {
3964
+ n?.(y), !(y.defaultPrevented || !u || !(y.ctrlKey || y.metaKey)) && (y.preventDefault(), u.openInNewTab(l, {
3965
+ background: !0
3966
+ }));
3967
+ }, e[5] = n, e[6] = l, e[7] = u, e[8] = a) : a = e[8];
3968
+ const c = a;
3969
+ let p;
3970
+ e[9] !== r || e[10] !== l || e[11] !== u ? (p = (y) => {
3971
+ r?.(y), !(y.defaultPrevented || !u || y.button !== Qr) && (y.preventDefault(), u.openInNewTab(l, {
3972
+ background: !0
3973
+ }));
3974
+ }, e[9] = r, e[10] = l, e[11] = u, e[12] = p) : p = e[12];
3975
+ const d = p;
3976
+ let g;
3977
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
3936
3978
  textDecoration: "none",
3937
3979
  color: "inherit"
3938
- }, e[3] = o) : o = e[3];
3939
- let u;
3940
- return e[4] !== r || e[5] !== i ? (u = /* @__PURE__ */ N(Dn, { style: o, ...r, to: i }), e[4] = r, e[5] = i, e[6] = u) : u = e[6], u;
3980
+ }, e[13] = g) : g = e[13];
3981
+ let h;
3982
+ return e[14] !== d || e[15] !== c || e[16] !== s || e[17] !== l ? (h = /* @__PURE__ */ N(xn, { style: g, ...s, to: l, onClick: c, onAuxClick: d }), e[14] = d, e[15] = c, e[16] = s, e[17] = l, e[18] = h) : h = e[18], h;
3941
3983
  };
3942
- function Vo() {
3943
- const t = $(10), e = Rn(), r = xn(), {
3984
+ function si() {
3985
+ const t = q(10), e = An(), r = Tn(), {
3944
3986
  pluginId: n
3945
- } = bt();
3987
+ } = Et();
3946
3988
  n || console.error("usePluginRouter used outside of a plugin context");
3947
3989
  const s = `/_plugin/${n}`;
3948
3990
  let i;
@@ -3951,9 +3993,9 @@ function Vo() {
3951
3993
  let u;
3952
3994
  t[3] !== e || t[4] !== s ? (u = (c, p) => {
3953
3995
  const {
3954
- ...f
3996
+ ...d
3955
3997
  } = p ?? {};
3956
- c.startsWith("/") ? e(`${s}${c}`, f) : e(c, f);
3998
+ c.startsWith("/") ? e(`${s}${c}`, d) : e(c, d);
3957
3999
  }, t[3] = e, t[4] = s, t[5] = u) : u = t[5];
3958
4000
  const l = u;
3959
4001
  let a;
@@ -3963,9 +4005,9 @@ function Vo() {
3963
4005
  pluginPath: o
3964
4006
  }, t[6] = r, t[7] = l, t[8] = o, t[9] = a) : a = t[9], a;
3965
4007
  }
3966
- class Yo {
4008
+ class ri {
3967
4009
  }
3968
- class Zo {
4010
+ class oi {
3969
4011
  _extensions;
3970
4012
  /**
3971
4013
  * The root component to render for the application window.
@@ -4022,8 +4064,8 @@ class Zo {
4022
4064
  get Window() {
4023
4065
  if (!this._routes && this.root)
4024
4066
  return /* @__PURE__ */ N(this.root, {});
4025
- const e = Tn(this._routes || []);
4026
- return /* @__PURE__ */ N(Ps, { router: e });
4067
+ const e = Nn(this._routes || []);
4068
+ return /* @__PURE__ */ N(ks, { router: e });
4027
4069
  }
4028
4070
  /**
4029
4071
  * Register extension points for other plugins to extend the functionality
@@ -4053,8 +4095,8 @@ class Zo {
4053
4095
  return this._routes = e, this;
4054
4096
  }
4055
4097
  }
4056
- var Wr = /* @__PURE__ */ ((t) => (t.MISSING_MANIFEST = "MISSING_MANIFEST", t.MISSING_PLUGIN = "MISSING_PLUGIN", t.MISSING_ENTRYPOINT = "MISSING_ENTRYPOINT", t))(Wr || {});
4057
- const Xo = (t) => {
4098
+ var jr = /* @__PURE__ */ ((t) => (t.MISSING_MANIFEST = "MISSING_MANIFEST", t.MISSING_PLUGIN = "MISSING_PLUGIN", t.MISSING_ENTRYPOINT = "MISSING_ENTRYPOINT", t))(jr || {});
4099
+ const ii = (t) => {
4058
4100
  const e = t.split("::");
4059
4101
  return e.length === 1 ? {
4060
4102
  group: "core",
@@ -4065,14 +4107,14 @@ const Xo = (t) => {
4065
4107
  version: e[1] || "",
4066
4108
  kind: e[2] || e[0]
4067
4109
  };
4068
- }, ei = (t) => !t || t === "core" ? "Core" : t.charAt(0).toUpperCase() + t.slice(1), Kr = "omniview/global-search/open";
4069
- function ti(t = {}) {
4070
- window.dispatchEvent(new CustomEvent(Kr, {
4110
+ }, ci = (t) => !t || t === "core" ? "Core" : t.charAt(0).toUpperCase() + t.slice(1), zr = "omniview/global-search/open";
4111
+ function ai(t = {}) {
4112
+ window.dispatchEvent(new CustomEvent(zr, {
4071
4113
  detail: t
4072
4114
  }));
4073
4115
  }
4074
- const Gr = "omniview/resource/icons";
4075
- class Qr extends In {
4116
+ const Br = "omniview/resource/icons";
4117
+ class Hr extends Rn {
4076
4118
  state = {
4077
4119
  failed: !1,
4078
4120
  resetToken: this.props.resetToken
@@ -4092,15 +4134,15 @@ class Qr extends In {
4092
4134
  return this.state.failed ? this.props.fallback : this.props.children;
4093
4135
  }
4094
4136
  }
4095
- function jr(t, e) {
4137
+ function Jr(t, e) {
4096
4138
  try {
4097
4139
  return t?.schemaVersion !== 1 || typeof t.resolve != "function" ? void 0 : t.resolve(e);
4098
4140
  } catch {
4099
4141
  return;
4100
4142
  }
4101
4143
  }
4102
- function zr(t) {
4103
- const e = $(7);
4144
+ function Vr(t) {
4145
+ const e = q(7);
4104
4146
  let r, n;
4105
4147
  e[0] !== t ? ({
4106
4148
  icon: r,
@@ -4110,8 +4152,8 @@ function zr(t) {
4110
4152
  let i;
4111
4153
  return e[3] !== r || e[4] !== n || e[5] !== s ? (i = /* @__PURE__ */ N(r, { ...n, "aria-hidden": s }), e[3] = r, e[4] = n, e[5] = s, e[6] = i) : i = e[6], i;
4112
4154
  }
4113
- function ni(t) {
4114
- const e = $(17);
4155
+ function li(t) {
4156
+ const e = q(17);
4115
4157
  let r, n, s, i;
4116
4158
  e[0] !== t ? ({
4117
4159
  pluginId: n,
@@ -4122,19 +4164,19 @@ function ni(t) {
4122
4164
  const {
4123
4165
  version: o,
4124
4166
  contributions: u
4125
- } = nn(Gr);
4167
+ } = rn(Br);
4126
4168
  let l;
4127
4169
  e[5] !== r || e[6] !== s ? (l = r === void 0 ? /* @__PURE__ */ N("svg", { width: s.size ?? 16, height: s.size ?? 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", className: s.className, "aria-hidden": s["aria-hidden"] ?? !0, children: /* @__PURE__ */ N("path", { d: "m12 3 9 5v8l-9 5-9-5V8l9-5Zm0 9 9-4M12 12 3 8m9 4v9" }) }) : r, e[5] = r, e[6] = s, e[7] = l) : l = e[7];
4128
4170
  const a = l;
4129
4171
  let c;
4130
4172
  if (e[8] !== u || e[9] !== a || e[10] !== n || e[11] !== s || e[12] !== i || e[13] !== o) {
4131
4173
  c = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
4132
- e: for (const f of u) {
4133
- if (f.plugin !== n)
4174
+ e: for (const d of u) {
4175
+ if (d.plugin !== n)
4134
4176
  continue;
4135
- const g = jr(f.value, i);
4177
+ const g = Jr(d.value, i);
4136
4178
  if (g) {
4137
- c = /* @__PURE__ */ N(Qr, { resetToken: f, fallback: a, children: /* @__PURE__ */ N(q.Suspense, { fallback: a, children: /* @__PURE__ */ N(zr, { icon: g, ...s }) }) }, JSON.stringify([n, i, o, f.id]));
4179
+ c = /* @__PURE__ */ N(Hr, { resetToken: d, fallback: a, children: /* @__PURE__ */ N(L.Suspense, { fallback: a, children: /* @__PURE__ */ N(Vr, { icon: g, ...s }) }) }, JSON.stringify([n, i, o, d.id]));
4138
4180
  break e;
4139
4181
  }
4140
4182
  }
@@ -4144,95 +4186,100 @@ function ni(t) {
4144
4186
  if (c !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
4145
4187
  return c;
4146
4188
  let p;
4147
- return e[15] !== a ? (p = /* @__PURE__ */ N(_t, { children: a }), e[15] = a, e[16] = p) : p = e[16], p;
4189
+ return e[15] !== a ? (p = /* @__PURE__ */ N(bt, { children: a }), e[15] = a, e[16] = p) : p = e[16], p;
4148
4190
  }
4149
4191
  export {
4150
4192
  Me as ALL_SESSIONS_KEY,
4151
- qs as BottomDrawerContext,
4152
- Us as ConfirmationModalContext,
4153
- _o as ConnectionBoundary,
4154
- vr as ConnectionBoundaryFallback,
4193
+ Ws as BottomDrawerContext,
4194
+ Gs as ConfirmationModalContext,
4195
+ Do as ConnectionBoundary,
4196
+ Sr as ConnectionBoundaryFallback,
4155
4197
  se as ErrorTypes,
4156
- fo as ExtensionPointRegistry,
4157
- Bs as ExtensionPointStore,
4158
- uo as ExtensionProvider,
4159
- Kr as GLOBAL_SEARCH_OPEN_EVENT,
4160
- Jo as Link,
4161
- Xt as OperationsContext,
4162
- ao as OperationsProvider,
4198
+ _o as ExtensionPointRegistry,
4199
+ Vs as ExtensionPointStore,
4200
+ vo as ExtensionProvider,
4201
+ zr as GLOBAL_SEARCH_OPEN_EVENT,
4202
+ ni as Link,
4203
+ tn as OperationsContext,
4204
+ ho as OperationsProvider,
4163
4205
  St as PluginContext,
4164
- oo as PluginContextProvider,
4165
- Wr as PluginErrorCode,
4166
- Zo as PluginWindow,
4167
- Yo as PluginWindowRootProps,
4168
- Gr as RESOURCE_ICON_EXTENSION_POINT_ID,
4169
- ni as ResourceIcon,
4170
- Ms as RightDrawerContext,
4171
- Zt as SettingsContext,
4172
- co as SettingsProvider,
4173
- po as SnackbarProvider,
4206
+ uo as PluginContextProvider,
4207
+ jr as PluginErrorCode,
4208
+ oi as PluginWindow,
4209
+ ri as PluginWindowRootProps,
4210
+ Br as RESOURCE_ICON_EXTENSION_POINT_ID,
4211
+ li as ResourceIcon,
4212
+ Ks as RightDrawerContext,
4213
+ en as SettingsContext,
4214
+ po as SettingsProvider,
4215
+ bo as SnackbarProvider,
4174
4216
  Q as WatchState,
4175
- ks as actionToSnackbar,
4176
- Or as applyBatch,
4177
- er as connectionListQueryKey,
4217
+ wt as WindowActionsContext,
4218
+ go as WindowActionsProvider,
4219
+ qs as actionToSnackbar,
4220
+ kr as applyBatch,
4221
+ sr as connectionListQueryKey,
4178
4222
  le as createErrorHandler,
4179
- $s as defaultState,
4180
- ei as formatGroup,
4181
- $r as graphChangedEvent,
4182
- Xe as isCancelledError,
4183
- ti as openGlobalSearch,
4184
- Se as parseAppError,
4185
- Xo as parseResourceKey,
4186
- Qo as relationshipLabel,
4187
- Pe as requireConnectionReady,
4188
- vt as resourceQueryKeys,
4223
+ Us as defaultState,
4224
+ ci as formatGroup,
4225
+ Ur as graphChangedEvent,
4226
+ et as isCancelledError,
4227
+ $s as navigateActivePage,
4228
+ ai as openGlobalSearch,
4229
+ be as parseAppError,
4230
+ ii as parseResourceKey,
4231
+ lo as registerActivePageNavigator,
4232
+ Yo as relationshipLabel,
4233
+ Oe as requireConnectionReady,
4234
+ _t as resourceQueryKeys,
4189
4235
  xe as showAppError,
4190
- Ur as toRelatedResources,
4191
- Ko as useActiveSyncs,
4192
- pn as useBottomDrawer,
4193
- To as useConfirmationModal,
4194
- go as useConnection,
4195
- mo as useConnectionNamespaces,
4236
+ Gr as toRelatedResources,
4237
+ Jo as useActiveSyncs,
4238
+ gn as useBottomDrawer,
4239
+ Lo as useConfirmationModal,
4240
+ Eo as useConnection,
4241
+ Co as useConnectionNamespaces,
4196
4242
  ge as useConnectionReadiness,
4197
- vo as useConnectionStatus,
4198
- yo as useConnections,
4199
- zo as useDependencyTree,
4200
- Uo as useEditorSchemas,
4201
- Pr as useEventBatcher,
4202
- Eo as useExec,
4203
- Mo as useExecuteAction,
4204
- lo as useExtensionPoint,
4205
- nn as useExtensionPointSnapshot,
4206
- zs as useExtensionRegistry,
4207
- wo as useLogs,
4208
- Co as useMetricProviders,
4209
- Er as useMetricProvidersForResource,
4210
- Do as useMetricStream,
4211
- Lr as useOperations,
4212
- bt as usePluginContext,
4213
- So as usePluginData,
4214
- Vo as usePluginRouter,
4215
- io as usePluginSettings,
4216
- Ro as usePortForwardSessions,
4217
- It as useRefetchOnGraphChange,
4218
- jo as useRelatedResources,
4243
+ Io as useConnectionStatus,
4244
+ wo as useConnections,
4245
+ Xo as useDependencyTree,
4246
+ Bo as useEditorSchemas,
4247
+ Lr as useEventBatcher,
4248
+ Ao as useExec,
4249
+ zo as useExecuteAction,
4250
+ mo as useExtensionPoint,
4251
+ rn as useExtensionPointSnapshot,
4252
+ Js as useExtensionRegistry,
4253
+ To as useLogs,
4254
+ No as useMetricProviders,
4255
+ Ir as useMetricProvidersForResource,
4256
+ Oo as useMetricStream,
4257
+ Mr as useOperations,
4258
+ Et as usePluginContext,
4259
+ Ro as usePluginData,
4260
+ si as usePluginRouter,
4261
+ fo as usePluginSettings,
4262
+ Fo as usePortForwardSessions,
4263
+ Rt as useRefetchOnGraphChange,
4264
+ Zo as useRelatedResources,
4219
4265
  ee as useResolvedPluginId,
4220
- Ao as useResource,
4221
- qo as useResourceActions,
4222
- No as useResourceAreaComponent,
4223
- Bo as useResourceGraph,
4224
- Oo as useResourceGroups,
4225
- Io as useResourceMetrics,
4226
- $o as useResourceMutations,
4227
- xo as useResourcePortForwarder,
4228
- Po as useResourceSearch,
4229
- Fo as useResourceType,
4230
- ko as useResourceTypes,
4231
- Lo as useResources,
4232
- bo as useRightDrawer,
4233
- Ho as useSettings,
4266
+ $o as useResource,
4267
+ jo as useResourceActions,
4268
+ qo as useResourceAreaComponent,
4269
+ ei as useResourceGraph,
4270
+ Mo as useResourceGroups,
4271
+ Po as useResourceMetrics,
4272
+ Qo as useResourceMutations,
4273
+ ko as useResourcePortForwarder,
4274
+ Uo as useResourceSearch,
4275
+ Wo as useResourceType,
4276
+ Ko as useResourceTypes,
4277
+ Go as useResources,
4278
+ xo as useRightDrawer,
4279
+ ti as useSettings,
4234
4280
  we as useSnackbar,
4235
- Go as useStreamAction,
4236
- Wo as useWatchState,
4237
- ho as withConnectionReady
4281
+ Vo as useStreamAction,
4282
+ Ho as useWatchState,
4283
+ yo as useWindowActions,
4284
+ So as withConnectionReady
4238
4285
  };