@vue/devtools-applet 7.4.6 → 7.5.1

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,47 +1,301 @@
1
- import { onRpcConnected as Re, rpc as D, DevToolsMessagingEvents as W, useDevToolsState as Jt } from "@vue/devtools-core";
2
- import { ref as T, onUnmounted as ye, isRef as Ge, unref as d, watch as X, onMounted as St, nextTick as ze, readonly as Yt, getCurrentScope as Xt, onScopeDispose as Qt, getCurrentInstance as Qe, computed as V, reactive as ft, shallowRef as vt, toRaw as Tt, defineComponent as B, withDirectives as J, openBlock as p, createElementBlock as m, normalizeStyle as Ie, createTextVNode as ne, toDisplayString as le, mergeModels as Be, useModel as et, Fragment as te, renderList as ae, normalizeClass as ie, createBlock as z, provide as ge, inject as ve, mergeProps as ke, withModifiers as fe, withCtx as M, createVNode as x, createCommentVNode as U, createElementVNode as r, watchEffect as tt, renderSlot as nt, toValue as mt, h as en, vShow as tn, createStaticVNode as nn } from "vue";
3
- import { isPlainObject as on, UNDEFINED as ln, NAN as sn, INFINITY as an, NEGATIVE_INFINITY as rn, getRaw as Et, toSubmit as Ue, formatInspectorStateValue as un, getInspectorStateValueType as ht, toEdit as cn, parse as Y } from "@vue/devtools-kit";
4
- import { isArray as gt, isObject as Ct, sortByKey as Vt, isInSeparateWindow as dn, isInChromePanel as _t } from "@vue/devtools-shared";
5
- import { vTooltip as Q, VueButton as de, VueIcon as oe, VueDropdown as pn, VueDropdownButton as xt, VueInput as Ze, VueCodeBlock as fn, VueDialog as vn, VueSwitch as mn, VueSelect as hn, VueIcIcon as yt } from "@vue/devtools-ui";
6
- import { flatten as gn, groupBy as Cn } from "lodash-es";
1
+ import { defineComponent as B, withDirectives as J, openBlock as p, createElementBlock as m, normalizeStyle as Ie, unref as d, createTextVNode as ne, toDisplayString as le, mergeModels as ze, useModel as Qe, Fragment as te, renderList as ae, normalizeClass as ie, createBlock as z, toValue as ft, ref as T, computed as V, h as Jt, provide as ge, inject as ve, createElementVNode as u, renderSlot as et, createCommentVNode as U, isRef as Ge, watch as X, onMounted as St, nextTick as Be, readonly as Yt, getCurrentScope as Xt, onScopeDispose as Qt, getCurrentInstance as tt, reactive as vt, shallowRef as mt, toRaw as Tt, mergeProps as ke, withModifiers as fe, withCtx as M, createVNode as x, watchEffect as nt, onUnmounted as ye, vShow as en, createStaticVNode as tn } from "vue";
2
+ import { vTooltip as Q, VueButton as de, VueIcon as oe, VueDropdown as nn, VueDropdownButton as ht, VueInput as Ze, VueCodeBlock as on, VueDialog as ln, VueSwitch as sn, VueSelect as an, VueIcIcon as gt } from "@vue/devtools-ui";
3
+ import { isPlainObject as rn, UNDEFINED as un, NAN as cn, INFINITY as dn, NEGATIVE_INFINITY as pn, getRaw as Et, toSubmit as Ue, formatInspectorStateValue as fn, getInspectorStateValueType as Ct, toEdit as vn, parse as Y } from "@vue/devtools-kit";
4
+ import { rpc as D, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as mn } from "@vue/devtools-core";
7
5
  import { Splitpanes as Ae, Pane as ue } from "splitpanes";
8
- import { debounce as _n } from "perfect-debounce";
9
- import { RecycleScroller as xn } from "vue-virtual-scroller";
10
- function Wl() {
11
- const n = T([]), e = T([]);
12
- function o(s) {
13
- e.value = s, s.length < n.value.length && (n.value = []), e.value.forEach((l) => {
14
- t(l);
15
- });
6
+ import { isArray as _t, isObject as xt, sortByKey as Vt, isInSeparateWindow as hn, isInChromePanel as yt } from "@vue/devtools-shared";
7
+ import { debounce as gn } from "perfect-debounce";
8
+ import { RecycleScroller as Cn } from "vue-virtual-scroller";
9
+ import { flatten as _n, groupBy as xn } from "lodash-es";
10
+ function bt(n) {
11
+ return n.toString(16).padStart(6, "0");
12
+ }
13
+ function yn(n, e) {
14
+ const o = new Date(n);
15
+ return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
16
+ }
17
+ function bn(n, e) {
18
+ const o = /* @__PURE__ */ new Map(), t = Rt(n, e.toLowerCase(), o, 0);
19
+ return o.clear(), t;
20
+ }
21
+ const Nt = 10;
22
+ function Rt(n, e, o, t) {
23
+ if (t > Nt)
24
+ return !1;
25
+ let s = !1;
26
+ const l = Object.keys(n);
27
+ let i, r;
28
+ for (let c = 0; c < l.length && (i = l[c], r = n[i], s = At(e, i, r, o, t + 1), !s); c++)
29
+ ;
30
+ return s;
31
+ }
32
+ function At(n, e, o, t, s) {
33
+ let l = !1, i;
34
+ return e === "_custom" && (e = o.display, o = o.value), (i = wn(o)) && (o = i), e && wt(e, n) ? (l = !0, t.set(o, !0)) : t.has(o) ? l = t.get(o) : Array.isArray(o) ? (t.set(o, null), l = kn(o, n, t, s), t.set(o, l)) : rn(o) ? (t.set(o, null), l = Rt(o, n, t, s), t.set(o, l)) : wt(o, n) && (l = !0, t.set(o, !0)), l;
35
+ }
36
+ function wt(n, e) {
37
+ return `${n}`.toLowerCase().includes(e);
38
+ }
39
+ function wn(n) {
40
+ return n === null ? "null" : n === un ? "undefined" : n === cn ? "NaN" : n === dn ? "Infinity" : n === pn ? "-Infinity" : !1;
41
+ }
42
+ function kn(n, e, o, t) {
43
+ if (t > Nt)
44
+ return !1;
45
+ let s = !1, l;
46
+ for (let i = 0; i < n.length && (l = n[i], s = At(e, null, l, o, t + 1), !s); i++)
47
+ ;
48
+ return s;
49
+ }
50
+ const Dt = /* @__PURE__ */ B({
51
+ __name: "NodeTag",
52
+ props: {
53
+ tag: {}
54
+ },
55
+ setup(n) {
56
+ return (e, o) => J((p(), m("span", {
57
+ style: Ie({
58
+ color: `#${d(bt)(e.tag.textColor)}`,
59
+ backgroundColor: `#${d(bt)(e.tag.backgroundColor)}`
60
+ }),
61
+ class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
62
+ }, [
63
+ ne(le(e.tag.label), 1)
64
+ ], 4)), [
65
+ [d(Q), {
66
+ content: e.tag.tooltip,
67
+ html: !0
68
+ }]
69
+ ]);
16
70
  }
17
- Re(() => {
18
- D.value.getCustomInspector().then((s) => {
19
- e.value = s, e.value.forEach((l) => {
20
- t(l);
21
- });
22
- }), D.functions.on(W.INSPECTOR_UPDATED, o);
71
+ }), In = { class: "p2" }, $n = ["onClick"], Sn = /* @__PURE__ */ B({
72
+ __name: "SelectiveList",
73
+ props: /* @__PURE__ */ ze({
74
+ data: {}
75
+ }, {
76
+ modelValue: {},
77
+ modelModifiers: {}
78
+ }),
79
+ emits: /* @__PURE__ */ ze(["select"], ["update:modelValue"]),
80
+ setup(n, { emit: e }) {
81
+ const o = e, t = Qe(n, "modelValue");
82
+ function s(l) {
83
+ t.value = l, o("select", l);
84
+ }
85
+ return (l, i) => (p(), m("ul", In, [
86
+ (p(!0), m(te, null, ae(l.data, (r) => (p(), m("li", {
87
+ key: r.id,
88
+ class: ie(["selectable-item", { active: r.id === t.value }]),
89
+ onClick: (c) => s(r.id)
90
+ }, [
91
+ ne(le(r.label) + " ", 1),
92
+ (p(!0), m(te, null, ae(r.tags, (c, g) => (p(), z(Dt, {
93
+ key: g,
94
+ tag: c
95
+ }, null, 8, ["tag"]))), 128))
96
+ ], 10, $n))), 128))
97
+ ]));
98
+ }
99
+ }), ot = Symbol("VirtualRouteKey"), Pt = Symbol("VirtualRoutesKey");
100
+ function lt(n, e) {
101
+ const o = (e == null ? void 0 : e.defaultRoutePath) ?? ft(n)[0].path, t = T({
102
+ path: o
103
+ }), s = V(() => ft(n)), l = V(() => t.value.path), i = B({
104
+ setup() {
105
+ return () => {
106
+ const c = s.value.find((g) => g.path === l.value);
107
+ return c ? Jt(c.component) : null;
108
+ };
109
+ }
23
110
  });
24
- function t(s) {
25
- n.value.some((l) => l.id === s.id) || n.value.push(s);
111
+ function r() {
112
+ t.value.path = o;
26
113
  }
27
- return ye(() => {
28
- D.functions.off(W.INSPECTOR_UPDATED, o);
29
- }), {
30
- registeredInspector: n,
31
- register: t
114
+ return ge(ot, t), ge(Pt, s), { VirtualRouterView: i, restoreRouter: r };
115
+ }
116
+ function De() {
117
+ const n = ve(ot);
118
+ return {
119
+ push(e) {
120
+ n.value.path = e;
121
+ }
122
+ };
123
+ }
124
+ function Tn() {
125
+ const n = ve(Pt), e = ve(ot);
126
+ return {
127
+ routes: n,
128
+ currentRoute: e
129
+ };
130
+ }
131
+ const En = {
132
+ border: "b base",
133
+ class: "flex items-center justify-between px3"
134
+ }, Vn = ["href"], Nn = ["href"], $e = /* @__PURE__ */ B({
135
+ __name: "DevToolsHeader",
136
+ props: {
137
+ githubRepoLink: {},
138
+ docLink: {}
139
+ },
140
+ setup(n) {
141
+ const e = De();
142
+ return (o, t) => (p(), m("div", En, [
143
+ u("div", null, [
144
+ et(o.$slots, "default", {}, () => [
145
+ u("i", {
146
+ class: "i-ep:back cursor-pointer op70 text-base hover:op100",
147
+ onClick: t[0] || (t[0] = (s) => d(e).push("/"))
148
+ })
149
+ ])
150
+ ]),
151
+ u("div", null, [
152
+ u("a", {
153
+ class: "pr2",
154
+ href: o.docLink,
155
+ target: "_blank",
156
+ title: "View Documentation"
157
+ }, t[1] || (t[1] = [
158
+ u("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
159
+ ]), 8, Vn),
160
+ o.githubRepoLink ? (p(), m("a", {
161
+ key: 0,
162
+ href: o.githubRepoLink,
163
+ target: "_blank",
164
+ title: "Star on GitHub"
165
+ }, t[2] || (t[2] = [
166
+ u("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
167
+ ]), 8, Nn)) : U("", !0)
168
+ ])
169
+ ]));
170
+ }
171
+ }), be = (n, e) => {
172
+ const o = n.__vccOpts || n;
173
+ for (const [t, s] of e)
174
+ o[t] = s;
175
+ return o;
176
+ }, Rn = {}, An = { class: "h-full flex flex-col items-center justify-center op50" };
177
+ function Dn(n, e) {
178
+ return p(), m("div", An, [
179
+ e[0] || (e[0] = u("i", { class: "i-lets-icons:blank-light" }, null, -1)),
180
+ u("span", null, [
181
+ et(n.$slots, "default")
182
+ ])
183
+ ]);
184
+ }
185
+ const Ne = /* @__PURE__ */ be(Rn, [["render", Dn]]), Pn = { class: "flex gap3" }, Mn = ["onClick"], Se = /* @__PURE__ */ B({
186
+ __name: "Navbar",
187
+ setup(n) {
188
+ const { routes: e, currentRoute: o } = Tn(), t = De();
189
+ return (s, l) => (p(), m("ul", Pn, [
190
+ (p(!0), m(te, null, ae(d(e), (i, r) => (p(), m("li", {
191
+ key: r,
192
+ class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", d(o).path === i.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
193
+ onClick: (c) => d(t).push(i.path)
194
+ }, le(i.name), 11, Mn))), 128))
195
+ ]));
196
+ }
197
+ }), st = /* @__PURE__ */ B({
198
+ __name: "ToggleExpanded",
199
+ props: {
200
+ value: { type: Boolean }
201
+ },
202
+ setup(n) {
203
+ return (e, o) => (p(), m("i", {
204
+ class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
205
+ "transform rotate-90": e.value
206
+ }])
207
+ }, null, 2));
208
+ }
209
+ }), Mt = Symbol("StateEditorSymbol");
210
+ function Hn(n) {
211
+ const e = T(n);
212
+ return ge(Mt, e), {
213
+ context: e
214
+ };
215
+ }
216
+ function at() {
217
+ return ve(Mt);
218
+ }
219
+ function Ln() {
220
+ const n = T(""), e = T("string"), o = T(!1), t = at();
221
+ return {
222
+ editingText: n,
223
+ editing: o,
224
+ toggleEditing(s) {
225
+ s && (e.value = s), o.value = !o.value;
226
+ },
227
+ editingType: e,
228
+ nodeId: V(() => t.value.nodeId)
229
+ };
230
+ }
231
+ function On(n, e) {
232
+ if (n === "array")
233
+ return e.length;
234
+ const o = "newProp";
235
+ let t = 1;
236
+ for (; ; ) {
237
+ const s = `${o}${t}`;
238
+ if (!e[s])
239
+ return s;
240
+ t++;
241
+ }
242
+ }
243
+ function jn() {
244
+ const n = T({
245
+ enable: !1,
246
+ key: "",
247
+ value: "undefined"
248
+ });
249
+ function e(t, s) {
250
+ const l = On(t, s);
251
+ n.value = {
252
+ enable: !0,
253
+ key: l.toString(),
254
+ value: "undefined"
255
+ };
256
+ }
257
+ function o() {
258
+ n.value = {
259
+ enable: !1,
260
+ key: "",
261
+ value: "undefined"
262
+ };
263
+ }
264
+ return {
265
+ addNewProp: e,
266
+ resetDrafting: o,
267
+ draftingNewProp: n
268
+ };
269
+ }
270
+ const Ht = "expanded-state";
271
+ function me(n = "") {
272
+ const e = T([]);
273
+ return ge(`${Ht}-${n}`, e), {
274
+ expanded: e
32
275
  };
33
276
  }
34
- function ot(n) {
277
+ function it(n = "") {
278
+ const e = ve(`${Ht}-${n}`, T([]));
279
+ function o(t) {
280
+ const s = e.value.indexOf(t);
281
+ s === -1 ? e.value.push(t) : e.value.splice(s, 1);
282
+ }
283
+ return {
284
+ expanded: e,
285
+ toggleExpanded: o
286
+ };
287
+ }
288
+ function rt(n) {
35
289
  return Xt() ? (Qt(n), !0) : !1;
36
290
  }
37
291
  function ee(n) {
38
292
  return typeof n == "function" ? n() : d(n);
39
293
  }
40
- const lt = typeof window < "u" && typeof document < "u";
294
+ const ut = typeof window < "u" && typeof document < "u";
41
295
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
42
- const yn = (n) => typeof n < "u", bn = Object.prototype.toString, wn = (n) => bn.call(n) === "[object Object]", Fe = () => {
296
+ const Un = (n) => typeof n < "u", zn = Object.prototype.toString, Bn = (n) => zn.call(n) === "[object Object]", Fe = () => {
43
297
  };
44
- function kn(n, e) {
298
+ function Zn(n, e) {
45
299
  function o(...t) {
46
300
  return new Promise((s, l) => {
47
301
  Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(s).catch(l);
@@ -49,29 +303,29 @@ function kn(n, e) {
49
303
  }
50
304
  return o;
51
305
  }
52
- const In = (n) => n();
53
- function $n(n, e = {}) {
306
+ const Fn = (n) => n();
307
+ function Gn(n, e = {}) {
54
308
  let o, t, s = Fe;
55
- const l = (u) => {
56
- clearTimeout(u), s(), s = Fe;
309
+ const l = (r) => {
310
+ clearTimeout(r), s(), s = Fe;
57
311
  };
58
- return (u) => {
59
- const c = ee(n), C = ee(e.maxWait);
60
- return o && l(o), c <= 0 || C !== void 0 && C <= 0 ? (t && (l(t), t = null), Promise.resolve(u())) : new Promise((v, a) => {
61
- s = e.rejectOnCancel ? a : v, C && !t && (t = setTimeout(() => {
62
- o && l(o), t = null, v(u());
63
- }, C)), o = setTimeout(() => {
64
- t && l(t), t = null, v(u());
312
+ return (r) => {
313
+ const c = ee(n), g = ee(e.maxWait);
314
+ return o && l(o), c <= 0 || g !== void 0 && g <= 0 ? (t && (l(t), t = null), Promise.resolve(r())) : new Promise((f, a) => {
315
+ s = e.rejectOnCancel ? a : f, g && !t && (t = setTimeout(() => {
316
+ o && l(o), t = null, f(r());
317
+ }, g)), o = setTimeout(() => {
318
+ t && l(t), t = null, f(r());
65
319
  }, c);
66
320
  });
67
321
  };
68
322
  }
69
- function bt(n, e = !1, o = "Timeout") {
323
+ function kt(n, e = !1, o = "Timeout") {
70
324
  return new Promise((t, s) => {
71
325
  setTimeout(e ? () => s(o) : t, n);
72
326
  });
73
327
  }
74
- function Sn(n) {
328
+ function Kn(n) {
75
329
  let e;
76
330
  function o() {
77
331
  return e || (e = n()), e;
@@ -81,70 +335,70 @@ function Sn(n) {
81
335
  e = void 0, t && await t;
82
336
  }, o;
83
337
  }
84
- function Tn(n) {
85
- return Qe();
338
+ function Wn(n) {
339
+ return tt();
86
340
  }
87
- function En(n, e, o = {}) {
341
+ function qn(n, e, o = {}) {
88
342
  const {
89
- eventFilter: t = In,
343
+ eventFilter: t = Fn,
90
344
  ...s
91
345
  } = o;
92
346
  return X(
93
347
  n,
94
- kn(
348
+ Zn(
95
349
  t,
96
350
  e
97
351
  ),
98
352
  s
99
353
  );
100
354
  }
101
- function Vn(n, e = !0, o) {
102
- Tn() ? St(n, o) : e ? n() : ze(n);
355
+ function Jn(n, e = !0, o) {
356
+ Wn() ? St(n, o) : e ? n() : Be(n);
103
357
  }
104
358
  function Xe(n, e = !1) {
105
- function o(a, { flush: f = "sync", deep: g = !1, timeout: b, throwOnTimeout: h } = {}) {
106
- let S = null;
107
- const O = [new Promise((A) => {
108
- S = X(
359
+ function o(a, { flush: h = "sync", deep: y = !1, timeout: C, throwOnTimeout: v } = {}) {
360
+ let w = null;
361
+ const L = [new Promise((A) => {
362
+ w = X(
109
363
  n,
110
- (k) => {
111
- a(k) !== e && (S ? S() : ze(() => S == null ? void 0 : S()), A(k));
364
+ (I) => {
365
+ a(I) !== e && (w ? w() : Be(() => w == null ? void 0 : w()), A(I));
112
366
  },
113
367
  {
114
- flush: f,
115
- deep: g,
368
+ flush: h,
369
+ deep: y,
116
370
  immediate: !0
117
371
  }
118
372
  );
119
373
  })];
120
- return b != null && O.push(
121
- bt(b, h).then(() => ee(n)).finally(() => S == null ? void 0 : S())
122
- ), Promise.race(O);
374
+ return C != null && L.push(
375
+ kt(C, v).then(() => ee(n)).finally(() => w == null ? void 0 : w())
376
+ ), Promise.race(L);
123
377
  }
124
- function t(a, f) {
378
+ function t(a, h) {
125
379
  if (!Ge(a))
126
- return o((k) => k === a, f);
127
- const { flush: g = "sync", deep: b = !1, timeout: h, throwOnTimeout: S } = f ?? {};
380
+ return o((I) => I === a, h);
381
+ const { flush: y = "sync", deep: C = !1, timeout: v, throwOnTimeout: w } = h ?? {};
128
382
  let j = null;
129
- const A = [new Promise((k) => {
383
+ const A = [new Promise((I) => {
130
384
  j = X(
131
385
  [n, a],
132
386
  ([R, H]) => {
133
- e !== (R === H) && (j ? j() : ze(() => j == null ? void 0 : j()), k(R));
387
+ e !== (R === H) && (j ? j() : Be(() => j == null ? void 0 : j()), I(R));
134
388
  },
135
389
  {
136
- flush: g,
137
- deep: b,
390
+ flush: y,
391
+ deep: C,
138
392
  immediate: !0
139
393
  }
140
394
  );
141
395
  })];
142
- return h != null && A.push(
143
- bt(h, S).then(() => ee(n)).finally(() => (j == null || j(), ee(n)))
396
+ return v != null && A.push(
397
+ kt(v, w).then(() => ee(n)).finally(() => (j == null || j(), ee(n)))
144
398
  ), Promise.race(A);
145
399
  }
146
400
  function s(a) {
147
- return o((f) => !!f, a);
401
+ return o((h) => !!h, a);
148
402
  }
149
403
  function l(a) {
150
404
  return t(null, a);
@@ -152,27 +406,27 @@ function Xe(n, e = !1) {
152
406
  function i(a) {
153
407
  return t(void 0, a);
154
408
  }
155
- function u(a) {
409
+ function r(a) {
156
410
  return o(Number.isNaN, a);
157
411
  }
158
- function c(a, f) {
159
- return o((g) => {
160
- const b = Array.from(g);
161
- return b.includes(a) || b.includes(ee(a));
162
- }, f);
412
+ function c(a, h) {
413
+ return o((y) => {
414
+ const C = Array.from(y);
415
+ return C.includes(a) || C.includes(ee(a));
416
+ }, h);
163
417
  }
164
- function C(a) {
165
- return v(1, a);
418
+ function g(a) {
419
+ return f(1, a);
166
420
  }
167
- function v(a = 1, f) {
168
- let g = -1;
169
- return o(() => (g += 1, g >= a), f);
421
+ function f(a = 1, h) {
422
+ let y = -1;
423
+ return o(() => (y += 1, y >= a), h);
170
424
  }
171
425
  return Array.isArray(ee(n)) ? {
172
426
  toMatch: o,
173
427
  toContains: c,
174
- changed: C,
175
- changedTimes: v,
428
+ changed: g,
429
+ changedTimes: f,
176
430
  get not() {
177
431
  return Xe(n, !e);
178
432
  }
@@ -181,19 +435,19 @@ function Xe(n, e = !1) {
181
435
  toBe: t,
182
436
  toBeTruthy: s,
183
437
  toBeNull: l,
184
- toBeNaN: u,
438
+ toBeNaN: r,
185
439
  toBeUndefined: i,
186
- changed: C,
187
- changedTimes: v,
440
+ changed: g,
441
+ changedTimes: f,
188
442
  get not() {
189
443
  return Xe(n, !e);
190
444
  }
191
445
  };
192
446
  }
193
- function Nt(n) {
447
+ function Lt(n) {
194
448
  return Xe(n);
195
449
  }
196
- function Nn(n, e, o = {}) {
450
+ function Yn(n, e, o = {}) {
197
451
  const {
198
452
  immediate: t = !0
199
453
  } = o, s = T(!1);
@@ -201,28 +455,28 @@ function Nn(n, e, o = {}) {
201
455
  function i() {
202
456
  l && (clearTimeout(l), l = null);
203
457
  }
204
- function u() {
458
+ function r() {
205
459
  s.value = !1, i();
206
460
  }
207
- function c(...C) {
461
+ function c(...g) {
208
462
  i(), s.value = !0, l = setTimeout(() => {
209
- s.value = !1, l = null, n(...C);
463
+ s.value = !1, l = null, n(...g);
210
464
  }, ee(e));
211
465
  }
212
- return t && (s.value = !0, lt && c()), ot(u), {
466
+ return t && (s.value = !0, ut && c()), rt(r), {
213
467
  isPending: Yt(s),
214
468
  start: c,
215
- stop: u
469
+ stop: r
216
470
  };
217
471
  }
218
- function Rn(n = !1, e = {}) {
472
+ function Xn(n = !1, e = {}) {
219
473
  const {
220
474
  truthyValue: o = !0,
221
475
  falsyValue: t = !1
222
476
  } = e, s = Ge(n), l = T(n);
223
- function i(u) {
477
+ function i(r) {
224
478
  if (arguments.length)
225
- return l.value = u, l.value;
479
+ return l.value = r, l.value;
226
480
  {
227
481
  const c = ee(o);
228
482
  return l.value = l.value === c ? ee(t) : c, l.value;
@@ -230,22 +484,22 @@ function Rn(n = !1, e = {}) {
230
484
  }
231
485
  return s ? i : [l, i];
232
486
  }
233
- function An(n, e, o = {}) {
487
+ function Qn(n, e, o = {}) {
234
488
  const {
235
489
  debounce: t = 0,
236
490
  maxWait: s = void 0,
237
491
  ...l
238
492
  } = o;
239
- return En(
493
+ return qn(
240
494
  n,
241
495
  e,
242
496
  {
243
497
  ...l,
244
- eventFilter: $n(t, { maxWait: s })
498
+ eventFilter: Gn(t, { maxWait: s })
245
499
  }
246
500
  );
247
501
  }
248
- const Ke = lt ? window : void 0, Rt = lt ? window.navigator : void 0;
502
+ const Ke = ut ? window : void 0, Ot = ut ? window.navigator : void 0;
249
503
  function xe(n) {
250
504
  var e;
251
505
  const o = ee(n);
@@ -257,43 +511,43 @@ function he(...n) {
257
511
  return Fe;
258
512
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
259
513
  const l = [], i = () => {
260
- l.forEach((v) => v()), l.length = 0;
261
- }, u = (v, a, f, g) => (v.addEventListener(a, f, g), () => v.removeEventListener(a, f, g)), c = X(
514
+ l.forEach((f) => f()), l.length = 0;
515
+ }, r = (f, a, h, y) => (f.addEventListener(a, h, y), () => f.removeEventListener(a, h, y)), c = X(
262
516
  () => [xe(e), ee(s)],
263
- ([v, a]) => {
264
- if (i(), !v)
517
+ ([f, a]) => {
518
+ if (i(), !f)
265
519
  return;
266
- const f = wn(a) ? { ...a } : a;
520
+ const h = Bn(a) ? { ...a } : a;
267
521
  l.push(
268
- ...o.flatMap((g) => t.map((b) => u(v, g, b, f)))
522
+ ...o.flatMap((y) => t.map((C) => r(f, y, C, h)))
269
523
  );
270
524
  },
271
525
  { immediate: !0, flush: "post" }
272
- ), C = () => {
526
+ ), g = () => {
273
527
  c(), i();
274
528
  };
275
- return ot(C), C;
529
+ return rt(g), g;
276
530
  }
277
- function Dn() {
278
- const n = T(!1), e = Qe();
531
+ function eo() {
532
+ const n = T(!1), e = tt();
279
533
  return e && St(() => {
280
534
  n.value = !0;
281
535
  }, e), n;
282
536
  }
283
- function st(n) {
284
- const e = Dn();
537
+ function ct(n) {
538
+ const e = eo();
285
539
  return V(() => (e.value, !!n()));
286
540
  }
287
- function wt(n, e = {}) {
541
+ function It(n, e = {}) {
288
542
  const {
289
543
  controls: o = !1,
290
- navigator: t = Rt
291
- } = e, s = st(() => t && "permissions" in t), l = vt(), i = typeof n == "string" ? { name: n } : n, u = vt(), c = () => {
292
- var v, a;
293
- u.value = (a = (v = l.value) == null ? void 0 : v.state) != null ? a : "prompt";
544
+ navigator: t = Ot
545
+ } = e, s = ct(() => t && "permissions" in t), l = mt(), i = typeof n == "string" ? { name: n } : n, r = mt(), c = () => {
546
+ var f, a;
547
+ r.value = (a = (f = l.value) == null ? void 0 : f.state) != null ? a : "prompt";
294
548
  };
295
549
  he(l, "change", c);
296
- const C = Sn(async () => {
550
+ const g = Kn(async () => {
297
551
  if (s.value) {
298
552
  if (!l.value)
299
553
  try {
@@ -307,118 +561,118 @@ function wt(n, e = {}) {
307
561
  return Tt(l.value);
308
562
  }
309
563
  });
310
- return C(), o ? {
311
- state: u,
564
+ return g(), o ? {
565
+ state: r,
312
566
  isSupported: s,
313
- query: C
314
- } : u;
567
+ query: g
568
+ } : r;
315
569
  }
316
- function Pn(n = {}) {
570
+ function to(n = {}) {
317
571
  const {
318
- navigator: e = Rt,
572
+ navigator: e = Ot,
319
573
  read: o = !1,
320
574
  source: t,
321
575
  copiedDuring: s = 1500,
322
576
  legacy: l = !1
323
- } = n, i = st(() => e && "clipboard" in e), u = wt("clipboard-read"), c = wt("clipboard-write"), C = V(() => i.value || l), v = T(""), a = T(!1), f = Nn(() => a.value = !1, s);
324
- function g() {
325
- i.value && j(u.value) ? e.clipboard.readText().then((O) => {
326
- v.value = O;
327
- }) : v.value = S();
577
+ } = n, i = ct(() => e && "clipboard" in e), r = It("clipboard-read"), c = It("clipboard-write"), g = V(() => i.value || l), f = T(""), a = T(!1), h = Yn(() => a.value = !1, s);
578
+ function y() {
579
+ i.value && j(r.value) ? e.clipboard.readText().then((L) => {
580
+ f.value = L;
581
+ }) : f.value = w();
328
582
  }
329
- C.value && o && he(["copy", "cut"], g);
330
- async function b(O = ee(t)) {
331
- C.value && O != null && (i.value && j(c.value) ? await e.clipboard.writeText(O) : h(O), v.value = O, a.value = !0, f.start());
583
+ g.value && o && he(["copy", "cut"], y);
584
+ async function C(L = ee(t)) {
585
+ g.value && L != null && (i.value && j(c.value) ? await e.clipboard.writeText(L) : v(L), f.value = L, a.value = !0, h.start());
332
586
  }
333
- function h(O) {
587
+ function v(L) {
334
588
  const A = document.createElement("textarea");
335
- A.value = O ?? "", A.style.position = "absolute", A.style.opacity = "0", document.body.appendChild(A), A.select(), document.execCommand("copy"), A.remove();
589
+ A.value = L ?? "", A.style.position = "absolute", A.style.opacity = "0", document.body.appendChild(A), A.select(), document.execCommand("copy"), A.remove();
336
590
  }
337
- function S() {
338
- var O, A, k;
339
- return (k = (A = (O = document == null ? void 0 : document.getSelection) == null ? void 0 : O.call(document)) == null ? void 0 : A.toString()) != null ? k : "";
591
+ function w() {
592
+ var L, A, I;
593
+ return (I = (A = (L = document == null ? void 0 : document.getSelection) == null ? void 0 : L.call(document)) == null ? void 0 : A.toString()) != null ? I : "";
340
594
  }
341
- function j(O) {
342
- return O === "granted" || O === "prompt";
595
+ function j(L) {
596
+ return L === "granted" || L === "prompt";
343
597
  }
344
598
  return {
345
- isSupported: C,
346
- text: v,
599
+ isSupported: g,
600
+ text: f,
347
601
  copied: a,
348
- copy: b
602
+ copy: C
349
603
  };
350
604
  }
351
- function Mn(n) {
605
+ function no(n) {
352
606
  return JSON.parse(JSON.stringify(n));
353
607
  }
354
- function Hn(n, e, o = {}) {
608
+ function oo(n, e, o = {}) {
355
609
  const { window: t = Ke, ...s } = o;
356
610
  let l;
357
- const i = st(() => t && "ResizeObserver" in t), u = () => {
611
+ const i = ct(() => t && "ResizeObserver" in t), r = () => {
358
612
  l && (l.disconnect(), l = void 0);
359
613
  }, c = V(() => {
360
614
  const a = ee(n);
361
- return Array.isArray(a) ? a.map((f) => xe(f)) : [xe(a)];
362
- }), C = X(
615
+ return Array.isArray(a) ? a.map((h) => xe(h)) : [xe(a)];
616
+ }), g = X(
363
617
  c,
364
618
  (a) => {
365
- if (u(), i.value && t) {
619
+ if (r(), i.value && t) {
366
620
  l = new ResizeObserver(e);
367
- for (const f of a)
368
- f && l.observe(f, s);
621
+ for (const h of a)
622
+ h && l.observe(h, s);
369
623
  }
370
624
  },
371
625
  { immediate: !0, flush: "post" }
372
- ), v = () => {
373
- u(), C();
626
+ ), f = () => {
627
+ r(), g();
374
628
  };
375
- return ot(v), {
629
+ return rt(f), {
376
630
  isSupported: i,
377
- stop: v
631
+ stop: f
378
632
  };
379
633
  }
380
- function Ln(n, e = { width: 0, height: 0 }, o = {}) {
634
+ function lo(n, e = { width: 0, height: 0 }, o = {}) {
381
635
  const { window: t = Ke, box: s = "content-box" } = o, l = V(() => {
382
- var a, f;
383
- return (f = (a = xe(n)) == null ? void 0 : a.namespaceURI) == null ? void 0 : f.includes("svg");
384
- }), i = T(e.width), u = T(e.height), { stop: c } = Hn(
636
+ var a, h;
637
+ return (h = (a = xe(n)) == null ? void 0 : a.namespaceURI) == null ? void 0 : h.includes("svg");
638
+ }), i = T(e.width), r = T(e.height), { stop: c } = oo(
385
639
  n,
386
640
  ([a]) => {
387
- const f = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
641
+ const h = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
388
642
  if (t && l.value) {
389
- const g = xe(n);
390
- if (g) {
391
- const b = g.getBoundingClientRect();
392
- i.value = b.width, u.value = b.height;
643
+ const y = xe(n);
644
+ if (y) {
645
+ const C = y.getBoundingClientRect();
646
+ i.value = C.width, r.value = C.height;
393
647
  }
394
- } else if (f) {
395
- const g = Array.isArray(f) ? f : [f];
396
- i.value = g.reduce((b, { inlineSize: h }) => b + h, 0), u.value = g.reduce((b, { blockSize: h }) => b + h, 0);
648
+ } else if (h) {
649
+ const y = Array.isArray(h) ? h : [h];
650
+ i.value = y.reduce((C, { inlineSize: v }) => C + v, 0), r.value = y.reduce((C, { blockSize: v }) => C + v, 0);
397
651
  } else
398
- i.value = a.contentRect.width, u.value = a.contentRect.height;
652
+ i.value = a.contentRect.width, r.value = a.contentRect.height;
399
653
  },
400
654
  o
401
655
  );
402
- Vn(() => {
656
+ Jn(() => {
403
657
  const a = xe(n);
404
- a && (i.value = "offsetWidth" in a ? a.offsetWidth : e.width, u.value = "offsetHeight" in a ? a.offsetHeight : e.height);
658
+ a && (i.value = "offsetWidth" in a ? a.offsetWidth : e.width, r.value = "offsetHeight" in a ? a.offsetHeight : e.height);
405
659
  });
406
- const C = X(
660
+ const g = X(
407
661
  () => xe(n),
408
662
  (a) => {
409
- i.value = a ? e.width : 0, u.value = a ? e.height : 0;
663
+ i.value = a ? e.width : 0, r.value = a ? e.height : 0;
410
664
  }
411
665
  );
412
- function v() {
413
- c(), C();
666
+ function f() {
667
+ c(), g();
414
668
  }
415
669
  return {
416
670
  width: i,
417
- height: u,
418
- stop: v
671
+ height: r,
672
+ stop: f
419
673
  };
420
674
  }
421
- const On = {
675
+ const so = {
422
676
  ctrl: "control",
423
677
  command: "meta",
424
678
  cmd: "meta",
@@ -428,278 +682,98 @@ const On = {
428
682
  left: "arrowleft",
429
683
  right: "arrowright"
430
684
  };
431
- function jn(n = {}) {
685
+ function ao(n = {}) {
432
686
  const {
433
687
  reactive: e = !1,
434
688
  target: o = Ke,
435
- aliasMap: t = On,
689
+ aliasMap: t = so,
436
690
  passive: s = !0,
437
691
  onEventFired: l = Fe
438
- } = n, i = ft(/* @__PURE__ */ new Set()), u = {
692
+ } = n, i = vt(/* @__PURE__ */ new Set()), r = {
439
693
  toJSON() {
440
694
  return {};
441
695
  },
442
696
  current: i
443
- }, c = e ? ft(u) : u, C = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
444
- function a(h, S) {
445
- h in c && (e ? c[h] = S : c[h].value = S);
697
+ }, c = e ? vt(r) : r, g = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
698
+ function a(v, w) {
699
+ v in c && (e ? c[v] = w : c[v].value = w);
446
700
  }
447
- function f() {
701
+ function h() {
448
702
  i.clear();
449
- for (const h of v)
450
- a(h, !1);
703
+ for (const v of f)
704
+ a(v, !1);
451
705
  }
452
- function g(h, S) {
453
- var j, O;
454
- const A = (j = h.key) == null ? void 0 : j.toLowerCase(), R = [(O = h.code) == null ? void 0 : O.toLowerCase(), A].filter(Boolean);
455
- A && (S ? i.add(A) : i.delete(A));
706
+ function y(v, w) {
707
+ var j, L;
708
+ const A = (j = v.key) == null ? void 0 : j.toLowerCase(), R = [(L = v.code) == null ? void 0 : L.toLowerCase(), A].filter(Boolean);
709
+ A && (w ? i.add(A) : i.delete(A));
456
710
  for (const H of R)
457
- v.add(H), a(H, S);
458
- A === "meta" && !S ? (C.forEach((H) => {
711
+ f.add(H), a(H, w);
712
+ A === "meta" && !w ? (g.forEach((H) => {
459
713
  i.delete(H), a(H, !1);
460
- }), C.clear()) : typeof h.getModifierState == "function" && h.getModifierState("Meta") && S && [...i, ...R].forEach((H) => C.add(H));
714
+ }), g.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && w && [...i, ...R].forEach((H) => g.add(H));
461
715
  }
462
- he(o, "keydown", (h) => (g(h, !0), l(h)), { passive: s }), he(o, "keyup", (h) => (g(h, !1), l(h)), { passive: s }), he("blur", f, { passive: !0 }), he("focus", f, { passive: !0 });
463
- const b = new Proxy(
716
+ he(o, "keydown", (v) => (y(v, !0), l(v)), { passive: s }), he(o, "keyup", (v) => (y(v, !1), l(v)), { passive: s }), he("blur", h, { passive: !0 }), he("focus", h, { passive: !0 });
717
+ const C = new Proxy(
464
718
  c,
465
719
  {
466
- get(h, S, j) {
467
- if (typeof S != "string")
468
- return Reflect.get(h, S, j);
469
- if (S = S.toLowerCase(), S in t && (S = t[S]), !(S in c))
470
- if (/[+_-]/.test(S)) {
471
- const A = S.split(/[+_-]/g).map((k) => k.trim());
472
- c[S] = V(() => A.every((k) => ee(b[k])));
720
+ get(v, w, j) {
721
+ if (typeof w != "string")
722
+ return Reflect.get(v, w, j);
723
+ if (w = w.toLowerCase(), w in t && (w = t[w]), !(w in c))
724
+ if (/[+_-]/.test(w)) {
725
+ const A = w.split(/[+_-]/g).map((I) => I.trim());
726
+ c[w] = V(() => A.every((I) => ee(C[I])));
473
727
  } else
474
- c[S] = T(!1);
475
- const O = Reflect.get(h, S, j);
476
- return e ? ee(O) : O;
728
+ c[w] = T(!1);
729
+ const L = Reflect.get(v, w, j);
730
+ return e ? ee(L) : L;
477
731
  }
478
732
  }
479
733
  );
480
- return b;
734
+ return C;
481
735
  }
482
- function Un(n, e, o, t = {}) {
736
+ function io(n, e, o, t = {}) {
483
737
  var s, l, i;
484
738
  const {
485
- clone: u = !1,
739
+ clone: r = !1,
486
740
  passive: c = !1,
487
- eventName: C,
488
- deep: v = !1,
741
+ eventName: g,
742
+ deep: f = !1,
489
743
  defaultValue: a,
490
- shouldEmit: f
491
- } = t, g = Qe(), b = o || (g == null ? void 0 : g.emit) || ((s = g == null ? void 0 : g.$emit) == null ? void 0 : s.bind(g)) || ((i = (l = g == null ? void 0 : g.proxy) == null ? void 0 : l.$emit) == null ? void 0 : i.bind(g == null ? void 0 : g.proxy));
492
- let h = C;
493
- h = h || `update:${e.toString()}`;
494
- const S = (A) => u ? typeof u == "function" ? u(A) : Mn(A) : A, j = () => yn(n[e]) ? S(n[e]) : a, O = (A) => {
495
- f ? f(A) && b(h, A) : b(h, A);
744
+ shouldEmit: h
745
+ } = t, y = tt(), C = o || (y == null ? void 0 : y.emit) || ((s = y == null ? void 0 : y.$emit) == null ? void 0 : s.bind(y)) || ((i = (l = y == null ? void 0 : y.proxy) == null ? void 0 : l.$emit) == null ? void 0 : i.bind(y == null ? void 0 : y.proxy));
746
+ let v = g;
747
+ v = v || `update:${e.toString()}`;
748
+ const w = (A) => r ? typeof r == "function" ? r(A) : no(A) : A, j = () => Un(n[e]) ? w(n[e]) : a, L = (A) => {
749
+ h ? h(A) && C(v, A) : C(v, A);
496
750
  };
497
751
  if (c) {
498
- const A = j(), k = T(A);
752
+ const A = j(), I = T(A);
499
753
  let R = !1;
500
754
  return X(
501
755
  () => n[e],
502
756
  (H) => {
503
- R || (R = !0, k.value = S(H), ze(() => R = !1));
757
+ R || (R = !0, I.value = w(H), Be(() => R = !1));
504
758
  }
505
759
  ), X(
506
- k,
760
+ I,
507
761
  (H) => {
508
- !R && (H !== n[e] || v) && O(H);
762
+ !R && (H !== n[e] || f) && L(H);
509
763
  },
510
- { deep: v }
511
- ), k;
764
+ { deep: f }
765
+ ), I;
512
766
  } else
513
767
  return V({
514
768
  get() {
515
769
  return j();
516
770
  },
517
771
  set(A) {
518
- O(A);
772
+ L(A);
519
773
  }
520
774
  });
521
775
  }
522
- function kt(n) {
523
- return n.toString(16).padStart(6, "0");
524
- }
525
- function zn(n, e) {
526
- const o = new Date(n);
527
- return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
528
- }
529
- function Bn(n, e) {
530
- const o = /* @__PURE__ */ new Map(), t = Dt(n, e.toLowerCase(), o, 0);
531
- return o.clear(), t;
532
- }
533
- const At = 10;
534
- function Dt(n, e, o, t) {
535
- if (t > At)
536
- return !1;
537
- let s = !1;
538
- const l = Object.keys(n);
539
- let i, u;
540
- for (let c = 0; c < l.length && (i = l[c], u = n[i], s = Pt(e, i, u, o, t + 1), !s); c++)
541
- ;
542
- return s;
543
- }
544
- function Pt(n, e, o, t, s) {
545
- let l = !1, i;
546
- return e === "_custom" && (e = o.display, o = o.value), (i = Zn(o)) && (o = i), e && It(e, n) ? (l = !0, t.set(o, !0)) : t.has(o) ? l = t.get(o) : Array.isArray(o) ? (t.set(o, null), l = Fn(o, n, t, s), t.set(o, l)) : on(o) ? (t.set(o, null), l = Dt(o, n, t, s), t.set(o, l)) : It(o, n) && (l = !0, t.set(o, !0)), l;
547
- }
548
- function It(n, e) {
549
- return `${n}`.toLowerCase().includes(e);
550
- }
551
- function Zn(n) {
552
- return n === null ? "null" : n === ln ? "undefined" : n === sn ? "NaN" : n === an ? "Infinity" : n === rn ? "-Infinity" : !1;
553
- }
554
- function Fn(n, e, o, t) {
555
- if (t > At)
556
- return !1;
557
- let s = !1, l;
558
- for (let i = 0; i < n.length && (l = n[i], s = Pt(e, null, l, o, t + 1), !s); i++)
559
- ;
560
- return s;
561
- }
562
- const Mt = /* @__PURE__ */ B({
563
- __name: "NodeTag",
564
- props: {
565
- tag: {}
566
- },
567
- setup(n) {
568
- return (e, o) => J((p(), m("span", {
569
- style: Ie({
570
- color: `#${d(kt)(e.tag.textColor)}`,
571
- backgroundColor: `#${d(kt)(e.tag.backgroundColor)}`
572
- }),
573
- class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
574
- }, [
575
- ne(le(e.tag.label), 1)
576
- ], 4)), [
577
- [d(Q), {
578
- content: e.tag.tooltip,
579
- html: !0
580
- }]
581
- ]);
582
- }
583
- }), Gn = { class: "p2" }, Kn = ["onClick"], Wn = /* @__PURE__ */ B({
584
- __name: "SelectiveList",
585
- props: /* @__PURE__ */ Be({
586
- data: {}
587
- }, {
588
- modelValue: {},
589
- modelModifiers: {}
590
- }),
591
- emits: /* @__PURE__ */ Be(["select"], ["update:modelValue"]),
592
- setup(n, { emit: e }) {
593
- const o = e, t = et(n, "modelValue");
594
- function s(l) {
595
- t.value = l, o("select", l);
596
- }
597
- return (l, i) => (p(), m("ul", Gn, [
598
- (p(!0), m(te, null, ae(l.data, (u) => (p(), m("li", {
599
- key: u.id,
600
- class: ie(["selectable-item", { active: u.id === t.value }]),
601
- onClick: (c) => s(u.id)
602
- }, [
603
- ne(le(u.label) + " ", 1),
604
- (p(!0), m(te, null, ae(u.tags, (c, C) => (p(), z(Mt, {
605
- key: C,
606
- tag: c
607
- }, null, 8, ["tag"]))), 128))
608
- ], 10, Kn))), 128))
609
- ]));
610
- }
611
- }), at = /* @__PURE__ */ B({
612
- __name: "ToggleExpanded",
613
- props: {
614
- value: { type: Boolean }
615
- },
616
- setup(n) {
617
- return (e, o) => (p(), m("i", {
618
- class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
619
- "transform rotate-90": e.value
620
- }])
621
- }, null, 2));
622
- }
623
- }), Ht = Symbol("StateEditorSymbol");
624
- function qn(n) {
625
- const e = T(n);
626
- return ge(Ht, e), {
627
- context: e
628
- };
629
- }
630
- function it() {
631
- return ve(Ht);
632
- }
633
- function Jn() {
634
- const n = T(""), e = T("string"), o = T(!1), t = it();
635
- return {
636
- editingText: n,
637
- editing: o,
638
- toggleEditing(s) {
639
- s && (e.value = s), o.value = !o.value;
640
- },
641
- editingType: e,
642
- nodeId: V(() => t.value.nodeId)
643
- };
644
- }
645
- function Yn(n, e) {
646
- if (n === "array")
647
- return e.length;
648
- const o = "newProp";
649
- let t = 1;
650
- for (; ; ) {
651
- const s = `${o}${t}`;
652
- if (!e[s])
653
- return s;
654
- t++;
655
- }
656
- }
657
- function Xn() {
658
- const n = T({
659
- enable: !1,
660
- key: "",
661
- value: "undefined"
662
- });
663
- function e(t, s) {
664
- const l = Yn(t, s);
665
- n.value = {
666
- enable: !0,
667
- key: l.toString(),
668
- value: "undefined"
669
- };
670
- }
671
- function o() {
672
- n.value = {
673
- enable: !1,
674
- key: "",
675
- value: "undefined"
676
- };
677
- }
678
- return {
679
- addNewProp: e,
680
- resetDrafting: o,
681
- draftingNewProp: n
682
- };
683
- }
684
- const Lt = "expanded-state";
685
- function me(n = "") {
686
- const e = T([]);
687
- return ge(`${Lt}-${n}`, e), {
688
- expanded: e
689
- };
690
- }
691
- function rt(n = "") {
692
- const e = ve(`${Lt}-${n}`, T([]));
693
- function o(t) {
694
- const s = e.value.indexOf(t);
695
- s === -1 ? e.value.push(t) : e.value.splice(s, 1);
696
- }
697
- return {
698
- expanded: e,
699
- toggleExpanded: o
700
- };
701
- }
702
- function Qn(n, e = {}) {
776
+ function ro(n, e = {}) {
703
777
  const {
704
778
  enter: o = () => {
705
779
  },
@@ -715,7 +789,7 @@ function Qn(n, e = {}) {
715
789
  isHovering: l
716
790
  };
717
791
  }
718
- const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__PURE__ */ B({
792
+ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__PURE__ */ B({
719
793
  __name: "StateFieldEditor",
720
794
  props: {
721
795
  data: {},
@@ -726,13 +800,13 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
726
800
  },
727
801
  emits: ["enableEditInput", "addNewProp"],
728
802
  setup(n) {
729
- const e = n, o = it(), { copy: t, isSupported: s } = Pn(), l = T(!1), i = V(() => Et(e.data.value)), u = V(() => i.value.value), c = V(() => i.value.customType), C = V(() => u.value === null ? "null" : typeof u.value), v = {
803
+ const e = n, o = at(), { copy: t, isSupported: s } = to(), l = T(!1), i = V(() => Et(e.data.value)), r = V(() => i.value.value), c = V(() => i.value.customType), g = V(() => r.value === null ? "null" : typeof r.value), f = {
730
804
  flat: !0,
731
805
  size: "mini"
732
806
  }, a = V(() => ({
733
807
  "opacity-0": !e.hovering
734
808
  }));
735
- async function f(b, h = !1) {
809
+ async function h(C, v = !1) {
736
810
  await D.value.editInspectorState({
737
811
  path: e.data.path || [e.data.key],
738
812
  inspectorId: o.value.inspectorId,
@@ -740,22 +814,22 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
740
814
  nodeId: o.value.nodeId,
741
815
  state: {
742
816
  newKey: null,
743
- value: Tt(b),
744
- type: C.value,
745
- remove: h
817
+ value: Tt(C),
818
+ type: g.value,
819
+ remove: v
746
820
  }
747
821
  }), await D.value.sendInspectorState(o.value.inspectorId);
748
822
  }
749
- function g(b, h) {
750
- const S = typeof b == "number" ? b + h : BigInt(b) + BigInt(h);
751
- f(S);
823
+ function y(C, v) {
824
+ const w = typeof C == "number" ? C + v : BigInt(C) + BigInt(v);
825
+ h(w);
752
826
  }
753
- return (b, h) => (p(), m("div", eo, [
754
- !e.disableEdit && b.data.editable ? (p(), m(te, { key: 0 }, [
755
- C.value === "string" || C.value === "number" || C.value === "object" || C.value === "null" ? (p(), m(te, { key: 0 }, [
756
- J((p(), z(d(de), ke(v, {
827
+ return (C, v) => (p(), m("div", uo, [
828
+ !e.disableEdit && C.data.editable ? (p(), m(te, { key: 0 }, [
829
+ g.value === "string" || g.value === "number" || g.value === "object" || g.value === "null" ? (p(), m(te, { key: 0 }, [
830
+ J((p(), z(d(de), ke(f, {
757
831
  class: a.value,
758
- onClick: h[0] || (h[0] = fe((S) => b.$emit("enableEditInput", C.value), ["stop"]))
832
+ onClick: v[0] || (v[0] = fe((w) => C.$emit("enableEditInput", g.value), ["stop"]))
759
833
  }), {
760
834
  icon: M(() => [
761
835
  x(d(oe), { icon: "i-material-symbols-edit-rounded" })
@@ -766,9 +840,9 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
766
840
  content: "Edit value"
767
841
  }]
768
842
  ]),
769
- C.value === "object" && b.showAddIfNeeded ? J((p(), z(d(de), ke({ key: 0 }, v, {
843
+ g.value === "object" && C.showAddIfNeeded ? J((p(), z(d(de), ke({ key: 0 }, f, {
770
844
  class: a.value,
771
- onClick: h[1] || (h[1] = fe((S) => b.$emit("addNewProp", Array.isArray(u.value) ? "array" : "object"), ["stop"]))
845
+ onClick: v[1] || (v[1] = fe((w) => C.$emit("addNewProp", Array.isArray(r.value) ? "array" : "object"), ["stop"]))
772
846
  }), {
773
847
  icon: M(() => [
774
848
  x(d(oe), { icon: "i-material-symbols-add-circle-rounded" })
@@ -780,29 +854,29 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
780
854
  }]
781
855
  ]) : U("", !0)
782
856
  ], 64)) : U("", !0),
783
- C.value === "boolean" ? (p(), z(d(de), ke({ key: 1 }, v, {
857
+ g.value === "boolean" ? (p(), z(d(de), ke({ key: 1 }, f, {
784
858
  class: a.value,
785
- onClick: h[2] || (h[2] = (S) => f(!u.value))
859
+ onClick: v[2] || (v[2] = (w) => h(!r.value))
786
860
  }), {
787
861
  icon: M(() => [
788
862
  x(d(oe), {
789
- icon: u.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
863
+ icon: r.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
790
864
  }, null, 8, ["icon"])
791
865
  ]),
792
866
  _: 1
793
- }, 16, ["class"])) : C.value === "number" || c.value === "bigint" ? (p(), m(te, { key: 2 }, [
794
- x(d(de), ke(v, {
867
+ }, 16, ["class"])) : g.value === "number" || c.value === "bigint" ? (p(), m(te, { key: 2 }, [
868
+ x(d(de), ke(f, {
795
869
  class: a.value,
796
- onClick: h[3] || (h[3] = fe((S) => g(u.value, 1), ["stop"]))
870
+ onClick: v[3] || (v[3] = fe((w) => y(r.value, 1), ["stop"]))
797
871
  }), {
798
872
  icon: M(() => [
799
873
  x(d(oe), { icon: "i-carbon-add" })
800
874
  ]),
801
875
  _: 1
802
876
  }, 16, ["class"]),
803
- x(d(de), ke(v, {
877
+ x(d(de), ke(f, {
804
878
  class: a.value,
805
- onClick: h[4] || (h[4] = fe((S) => g(u.value, -1), ["stop"]))
879
+ onClick: v[4] || (v[4] = fe((w) => y(r.value, -1), ["stop"]))
806
880
  }), {
807
881
  icon: M(() => [
808
882
  x(d(oe), { icon: "i-carbon-subtract" })
@@ -811,43 +885,43 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
811
885
  }, 16, ["class"])
812
886
  ], 64)) : U("", !0)
813
887
  ], 64)) : U("", !0),
814
- !e.disableEdit && b.depth > 0 && b.data.editable ? (p(), z(d(de), ke({ key: 1 }, v, {
888
+ !e.disableEdit && C.depth > 0 && C.data.editable ? (p(), z(d(de), ke({ key: 1 }, f, {
815
889
  class: a.value,
816
- onClick: h[5] || (h[5] = fe((S) => f(u.value, !0), ["stop"]))
890
+ onClick: v[5] || (v[5] = fe((w) => h(r.value, !0), ["stop"]))
817
891
  }), {
818
892
  icon: M(() => [
819
893
  x(d(oe), { icon: "i-material-symbols-delete-rounded" })
820
894
  ]),
821
895
  _: 1
822
896
  }, 16, ["class"])) : U("", !0),
823
- x(d(pn), {
897
+ x(d(nn), {
824
898
  class: ie({
825
- "opacity-0": !b.hovering && !l.value
899
+ "opacity-0": !C.hovering && !l.value
826
900
  }),
827
901
  "button-props": {
828
902
  flat: !0,
829
903
  size: "mini"
830
904
  },
831
905
  disabled: !d(s),
832
- "onUpdate:visible": h[8] || (h[8] = (S) => l.value = S)
906
+ "onUpdate:visible": v[8] || (v[8] = (w) => l.value = w)
833
907
  }, {
834
908
  popper: M(() => [
835
- r("div", to, [
836
- x(d(xt), {
837
- onClick: h[6] || (h[6] = (S) => d(t)(typeof u.value == "object" ? JSON.stringify(u.value) : u.value.toString()))
909
+ u("div", co, [
910
+ x(d(ht), {
911
+ onClick: v[6] || (v[6] = (w) => d(t)(typeof r.value == "object" ? JSON.stringify(r.value) : r.value.toString()))
838
912
  }, {
839
913
  icon: M(() => [
840
914
  x(d(oe), {
841
915
  icon: "i-material-symbols-copy-all-rounded",
842
916
  class: "mt4px"
843
917
  }),
844
- h[9] || (h[9] = ne(" Copy Value "))
918
+ v[9] || (v[9] = ne(" Copy Value "))
845
919
  ]),
846
920
  _: 1
847
921
  }),
848
- x(d(xt), {
849
- onClick: h[7] || (h[7] = () => {
850
- d(t)(b.data.key);
922
+ x(d(ht), {
923
+ onClick: v[7] || (v[7] = () => {
924
+ d(t)(C.data.key);
851
925
  })
852
926
  }, {
853
927
  icon: M(() => [
@@ -855,7 +929,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
855
929
  icon: "i-material-symbols-copy-all-rounded",
856
930
  class: "mt4px"
857
931
  }),
858
- h[10] || (h[10] = ne(" Copy Path "))
932
+ v[10] || (v[10] = ne(" Copy Path "))
859
933
  ]),
860
934
  _: 1
861
935
  })
@@ -868,7 +942,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
868
942
  }, 8, ["class", "disabled"])
869
943
  ]));
870
944
  }
871
- }), oo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
945
+ }), fo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
872
946
  __name: "StateFieldInputEditor",
873
947
  props: {
874
948
  modelValue: {},
@@ -878,11 +952,11 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
878
952
  },
879
953
  emits: ["cancel", "submit", "update:modelValue"],
880
954
  setup(n, { emit: e }) {
881
- const o = n, t = e, s = V(() => o.customType === "date" ? "datetime-local" : ""), { escape: l, enter: i } = jn();
882
- tt(() => {
955
+ const o = n, t = e, s = V(() => o.customType === "date" ? "datetime-local" : ""), { escape: l, enter: i } = ao();
956
+ nt(() => {
883
957
  l.value ? t("cancel") : i.value && t("submit");
884
958
  });
885
- const u = Un(o, "modelValue", t);
959
+ const r = io(o, "modelValue", t);
886
960
  function c(a) {
887
961
  try {
888
962
  return Ue(a, o.customType), !0;
@@ -890,18 +964,18 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
890
964
  return !1;
891
965
  }
892
966
  }
893
- const C = T(!1);
894
- return X(u, _n(() => {
895
- C.value = !c(u.value);
896
- }, 300)), (a, f) => (p(), m("span", oo, [
967
+ const g = T(!1);
968
+ return X(r, gn(() => {
969
+ g.value = !c(r.value);
970
+ }, 300)), (a, h) => (p(), m("span", fo, [
897
971
  x(d(Ze), {
898
- modelValue: d(u),
899
- "onUpdate:modelValue": f[0] || (f[0] = (g) => Ge(u) ? u.value = g : null),
972
+ modelValue: d(r),
973
+ "onUpdate:modelValue": h[0] || (h[0] = (y) => Ge(r) ? r.value = y : null),
900
974
  type: s.value,
901
- variant: C.value ? "warning" : "normal",
975
+ variant: g.value ? "warning" : "normal",
902
976
  class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
903
977
  "auto-focus": a.autoFocus,
904
- onClick: f[1] || (f[1] = fe(() => {
978
+ onClick: h[1] || (h[1] = fe(() => {
905
979
  }, ["stop"]))
906
980
  }, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
907
981
  a.showActions ? (p(), m(te, { key: 0 }, [
@@ -909,7 +983,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
909
983
  size: "mini",
910
984
  flat: "",
911
985
  class: "p2px!",
912
- onClick: f[2] || (f[2] = fe((g) => a.$emit("cancel"), ["stop"]))
986
+ onClick: h[2] || (h[2] = fe((y) => a.$emit("cancel"), ["stop"]))
913
987
  }, {
914
988
  icon: M(() => [
915
989
  x(d(oe), { icon: "i-material-symbols-cancel" })
@@ -920,7 +994,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
920
994
  content: "Esc to cancel"
921
995
  }]
922
996
  ]),
923
- C.value ? J((p(), z(d(oe), {
997
+ g.value ? J((p(), z(d(oe), {
924
998
  key: 1,
925
999
  icon: "i-material-symbols-warning",
926
1000
  class: "color-warning-500 dark:color-warning-300"
@@ -933,7 +1007,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
933
1007
  size: "mini",
934
1008
  flat: "",
935
1009
  class: "p2px!",
936
- onClick: f[3] || (f[3] = fe((g) => a.$emit("submit"), ["stop"]))
1010
+ onClick: h[3] || (h[3] = fe((y) => a.$emit("submit"), ["stop"]))
937
1011
  }, {
938
1012
  icon: M(() => [
939
1013
  x(d(oe), { icon: "i-material-symbols-save" })
@@ -947,18 +1021,18 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
947
1021
  ], 64)) : U("", !0)
948
1022
  ]));
949
1023
  }
950
- }), lo = {
1024
+ }), vo = {
951
1025
  key: 1,
952
1026
  pl5: ""
953
- }, so = {
1027
+ }, mo = {
954
1028
  op70: "",
955
1029
  class: "whitespace-nowrap"
956
- }, ao = ["innerHTML"], io = { key: 0 }, ro = {
1030
+ }, ho = ["innerHTML"], go = { key: 0 }, Co = {
957
1031
  "overflow-hidden": "",
958
1032
  "text-ellipsis": "",
959
1033
  "whitespace-nowrap": "",
960
1034
  "state-key": ""
961
- }, $t = 30, uo = /* @__PURE__ */ B({
1035
+ }, $t = 30, _o = /* @__PURE__ */ B({
962
1036
  __name: "StateFieldViewer",
963
1037
  props: {
964
1038
  data: {},
@@ -967,17 +1041,17 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
967
1041
  expandedStateId: {}
968
1042
  },
969
1043
  setup(n) {
970
- const e = n, o = T($t), t = V(() => un(e.data.value, !1, {
1044
+ const e = n, o = T($t), t = V(() => fn(e.data.value, !1, {
971
1045
  customClass: {
972
1046
  string: "max-w-120 truncate"
973
1047
  }
974
- })), s = V(() => ht(e.data.value)), l = V(() => Et(e.data.value)), { expanded: i, toggleExpanded: u } = rt(e.expandedStateId ?? ""), c = V(() => {
1048
+ })), s = V(() => Ct(e.data.value)), l = V(() => Et(e.data.value)), { expanded: i, toggleExpanded: r } = it(e.expandedStateId ?? ""), c = V(() => {
975
1049
  var _;
976
1050
  return s.value === "custom" ? `${((_ = e.data.value._custom) == null ? void 0 : _.type) ?? "string"}-custom-state` : "";
977
- }), C = V(() => {
1051
+ }), g = V(() => {
978
1052
  const { value: _ } = l.value;
979
- return gt(_) ? _.length : Ct(_) ? Object.keys(_).length : 0;
980
- }), v = V(() => e.data.path || [e.data.key]), a = V(() => v.value[v.value.length - 1]), f = V(() => {
1053
+ return _t(_) ? _.length : xt(_) ? Object.keys(_).length : 0;
1054
+ }), f = V(() => e.data.path || [e.data.key]), a = V(() => f.value[f.value.length - 1]), h = V(() => {
981
1055
  var F, se, re, ce, Ce, _e, He;
982
1056
  const _ = ["Reactive"], N = ((se = (F = e.data.value) == null ? void 0 : F._custom) == null ? void 0 : se.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
983
1057
  if (_.includes(N))
@@ -985,59 +1059,59 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
985
1059
  if ((Ce = (ce = e.data.value) == null ? void 0 : ce.fields) != null && Ce.abstract)
986
1060
  return "";
987
1061
  {
988
- const Le = (He = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : He.type, Oe = s.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, je = s.value === "custom" && Le === "ref" ? ht(Oe) : s.value, We = s.value === "string" ? "select-text" : "", Ee = `<span class="${je}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
1062
+ const Le = (He = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : He.type, Oe = s.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, je = s.value === "custom" && Le === "ref" ? Ct(Oe) : s.value, We = s.value === "string" ? "select-text" : "", Ee = `<span title="${s.value === "string" ? e.data.value : ""}" class="${je}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
989
1063
  return N ? `${Ee} <span class="text-gray-500">(${N})</span>` : Ee;
990
1064
  }
991
- }), g = V(() => {
1065
+ }), y = V(() => {
992
1066
  const { value: _, inherit: N, customType: F } = l.value, se = F === "set";
993
1067
  let re = [];
994
- return gt(_) ? _.slice(0, o.value).map((Ce, _e) => ({
1068
+ return _t(_) ? _.slice(0, o.value).map((Ce, _e) => ({
995
1069
  key: _e.toString(),
996
- path: [...v.value, _e.toString()],
1070
+ path: [...f.value, _e.toString()],
997
1071
  value: Ce,
998
1072
  ...N,
999
1073
  editable: e.data.editable && !se,
1000
1074
  creating: !1
1001
- })) : (Ct(_) && (re = Object.keys(_).slice(0, o.value).map((ce) => ({
1075
+ })) : (xt(_) && (re = Object.keys(_).slice(0, o.value).map((ce) => ({
1002
1076
  key: ce,
1003
- path: [...v.value, ce],
1077
+ path: [...f.value, ce],
1004
1078
  value: _[ce],
1005
1079
  ...N,
1006
1080
  editable: e.data.editable && !se,
1007
1081
  creating: !1
1008
1082
  })), s.value !== "custom" && (re = Vt(re))), re === e.data.value ? [] : re);
1009
- }), b = V(() => g.value.length > 0), h = T(), S = it(), { isHovering: j } = Qn(() => h.value), { editingType: O, editing: A, editingText: k, toggleEditing: R, nodeId: H } = Jn();
1083
+ }), C = V(() => y.value.length > 0), v = T(), w = at(), { isHovering: j } = ro(() => v.value), { editingType: L, editing: A, editingText: I, toggleEditing: R, nodeId: H } = Ln();
1010
1084
  X(() => A.value, (_) => {
1011
1085
  if (_) {
1012
1086
  const { value: N } = l.value;
1013
- k.value = cn(N, l.value.customType);
1087
+ I.value = vn(N, l.value.customType);
1014
1088
  } else
1015
- k.value = "";
1089
+ I.value = "";
1016
1090
  });
1017
1091
  async function K() {
1018
1092
  const _ = e.data;
1019
1093
  await D.value.editInspectorState({
1020
- path: v.value,
1021
- inspectorId: S.value.inspectorId,
1094
+ path: f.value,
1095
+ inspectorId: w.value.inspectorId,
1022
1096
  type: _.stateType,
1023
1097
  nodeId: H.value,
1024
1098
  state: {
1025
1099
  newKey: null,
1026
- type: O.value,
1027
- value: Ue(k.value, l.value.customType)
1100
+ type: L.value,
1101
+ value: Ue(I.value, l.value.customType)
1028
1102
  }
1029
- }), await D.value.sendInspectorState(S.value.inspectorId), R();
1103
+ }), await D.value.sendInspectorState(w.value.inspectorId), R();
1030
1104
  }
1031
- const { addNewProp: Z, draftingNewProp: E, resetDrafting: P } = Xn();
1032
- function w(_) {
1105
+ const { addNewProp: Z, draftingNewProp: E, resetDrafting: P } = jn();
1106
+ function k(_) {
1033
1107
  const N = `${e.depth}-${e.index}`;
1034
- i.value.includes(N) || u(N), Z(_, l.value.value);
1108
+ i.value.includes(N) || r(N), Z(_, l.value.value);
1035
1109
  }
1036
- async function I() {
1110
+ async function $() {
1037
1111
  const _ = e.data;
1038
1112
  await D.value.editInspectorState({
1039
- path: [...v.value, E.value.key],
1040
- inspectorId: S.value.inspectorId,
1113
+ path: [...f.value, E.value.key],
1114
+ inspectorId: w.value.inspectorId,
1041
1115
  type: _.stateType,
1042
1116
  nodeId: H.value,
1043
1117
  state: {
@@ -1045,55 +1119,55 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
1045
1119
  type: typeof Ue(E.value.value),
1046
1120
  value: Ue(E.value.value)
1047
1121
  }
1048
- }), await D.value.sendInspectorState(S.value.inspectorId), P();
1122
+ }), await D.value.sendInspectorState(w.value.inspectorId), P();
1049
1123
  }
1050
1124
  return (_, N) => (p(), m("div", null, [
1051
- r("div", {
1125
+ u("div", {
1052
1126
  ref_key: "containerRef",
1053
- ref: h,
1054
- class: ie(["font-state-field flex items-center text-3.5", [b.value && "cursor-pointer hover:bg-active"]]),
1127
+ ref: v,
1128
+ class: ie(["font-state-field flex items-center text-3.5", [C.value && "cursor-pointer hover:bg-active"]]),
1055
1129
  style: Ie({ paddingLeft: `${_.depth * 15 + 4}px` }),
1056
- onClick: N[1] || (N[1] = (F) => d(u)(`${_.depth}-${_.index}`))
1130
+ onClick: N[1] || (N[1] = (F) => d(r)(`${_.depth}-${_.index}`))
1057
1131
  }, [
1058
- b.value ? (p(), z(at, {
1132
+ C.value ? (p(), z(st, {
1059
1133
  key: 0,
1060
1134
  value: d(i).includes(`${_.depth}-${_.index}`)
1061
- }, null, 8, ["value"])) : (p(), m("span", lo)),
1062
- r("span", so, le(a.value), 1),
1063
- N[5] || (N[5] = r("span", { mx1: "" }, ":", -1)),
1135
+ }, null, 8, ["value"])) : (p(), m("span", vo)),
1136
+ u("span", mo, le(a.value), 1),
1137
+ N[5] || (N[5] = u("span", { mx1: "" }, ":", -1)),
1064
1138
  d(A) ? (p(), z(Ye, {
1065
1139
  key: 2,
1066
- modelValue: d(k),
1067
- "onUpdate:modelValue": N[0] || (N[0] = (F) => Ge(k) ? k.value = F : null),
1140
+ modelValue: d(I),
1141
+ "onUpdate:modelValue": N[0] || (N[0] = (F) => Ge(I) ? I.value = F : null),
1068
1142
  class: "mr-1",
1069
1143
  "custom-type": l.value.customType,
1070
1144
  onCancel: d(R),
1071
1145
  onSubmit: K
1072
1146
  }, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
1073
- r("span", {
1147
+ u("span", {
1074
1148
  class: ie([c.value, "flex whitespace-nowrap"])
1075
1149
  }, [
1076
- r("span", {
1150
+ u("span", {
1077
1151
  class: "flex",
1078
- innerHTML: f.value
1079
- }, null, 8, ao)
1152
+ innerHTML: h.value
1153
+ }, null, 8, ho)
1080
1154
  ], 2),
1081
- x(no, {
1155
+ x(po, {
1082
1156
  hovering: d(j),
1083
- "disable-edit": d(S).disableEdit || d(A),
1157
+ "disable-edit": d(w).disableEdit || d(A),
1084
1158
  data: _.data,
1085
1159
  depth: _.depth,
1086
1160
  onEnableEditInput: d(R),
1087
- onAddNewProp: w
1161
+ onAddNewProp: k
1088
1162
  }, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
1089
1163
  ], 6),
1090
- b.value && d(i).includes(`${_.depth}-${_.index}`) ? (p(), m("div", io, [
1091
- x(Ot, {
1092
- data: g.value,
1164
+ C.value && d(i).includes(`${_.depth}-${_.index}`) ? (p(), m("div", go, [
1165
+ x(jt, {
1166
+ data: y.value,
1093
1167
  depth: _.depth,
1094
1168
  index: _.index
1095
1169
  }, null, 8, ["data", "depth", "index"]),
1096
- C.value > o.value ? J((p(), z(d(de), {
1170
+ g.value > o.value ? J((p(), z(d(de), {
1097
1171
  key: 0,
1098
1172
  flat: "",
1099
1173
  size: "mini",
@@ -1111,31 +1185,26 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
1111
1185
  key: 1,
1112
1186
  style: Ie({ paddingLeft: `${(_.depth + 1) * 15 + 4}px` })
1113
1187
  }, [
1114
- r("span", ro, [
1188
+ u("span", Co, [
1115
1189
  x(Ye, {
1116
1190
  modelValue: d(E).key,
1117
1191
  "onUpdate:modelValue": N[3] || (N[3] = (F) => d(E).key = F),
1118
1192
  "show-actions": !1
1119
1193
  }, null, 8, ["modelValue"])
1120
1194
  ]),
1121
- N[6] || (N[6] = r("span", { "mx-1": "" }, ":", -1)),
1195
+ N[6] || (N[6] = u("span", { "mx-1": "" }, ":", -1)),
1122
1196
  x(Ye, {
1123
1197
  modelValue: d(E).value,
1124
1198
  "onUpdate:modelValue": N[4] || (N[4] = (F) => d(E).value = F),
1125
1199
  "auto-focus": !1,
1126
1200
  onCancel: d(P),
1127
- onSubmit: I
1201
+ onSubmit: $
1128
1202
  }, null, 8, ["modelValue", "onCancel"])
1129
1203
  ], 4)) : U("", !0)
1130
1204
  ])) : U("", !0)
1131
1205
  ]));
1132
1206
  }
1133
- }), be = (n, e) => {
1134
- const o = n.__vccOpts || n;
1135
- for (const [t, s] of e)
1136
- o[t] = s;
1137
- return o;
1138
- }, co = /* @__PURE__ */ be(uo, [["__scopeId", "data-v-f3246652"]]), Ot = /* @__PURE__ */ B({
1207
+ }), xo = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-18a10784"]]), jt = /* @__PURE__ */ B({
1139
1208
  __name: "ChildStateViewer",
1140
1209
  props: {
1141
1210
  data: {},
@@ -1146,7 +1215,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
1146
1215
  setup(n) {
1147
1216
  return (e, o) => (p(), m("div", null, [
1148
1217
  (p(!0), m(te, null, ae(e.data, (t, s) => (p(), m("div", { key: s }, [
1149
- x(co, {
1218
+ x(xo, {
1150
1219
  data: t,
1151
1220
  depth: e.depth + 1,
1152
1221
  index: `${e.index}-${s}`,
@@ -1155,66 +1224,287 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
1155
1224
  ]))), 128))
1156
1225
  ]));
1157
1226
  }
1158
- }), po = ["onClick"], fo = {
1159
- key: 1,
1160
- pl5: ""
1161
- }, vo = {
1162
- "font-state-field": "",
1163
- "text-3.5": ""
1164
- }, mo = { key: 0 }, De = /* @__PURE__ */ B({
1165
- __name: "RootStateViewer",
1166
- props: {
1167
- data: {},
1168
- nodeId: {},
1169
- inspectorId: {},
1170
- disableEdit: { type: Boolean, default: !1 },
1171
- expandedStateId: { default: "" }
1172
- },
1173
- setup(n) {
1174
- const e = n;
1175
- function o() {
1176
- return {
1177
- nodeId: e.nodeId,
1178
- inspectorId: e.inspectorId,
1179
- disableEdit: e.disableEdit
1180
- };
1181
- }
1182
- const { context: t } = qn(o());
1183
- tt(() => {
1184
- t.value = o();
1227
+ }), yo = ["onClick"], bo = {
1228
+ key: 1,
1229
+ pl5: ""
1230
+ }, wo = {
1231
+ "font-state-field": "",
1232
+ "text-3.5": ""
1233
+ }, ko = { key: 0 }, Pe = /* @__PURE__ */ B({
1234
+ __name: "RootStateViewer",
1235
+ props: {
1236
+ data: {},
1237
+ nodeId: {},
1238
+ inspectorId: {},
1239
+ disableEdit: { type: Boolean, default: !1 },
1240
+ expandedStateId: { default: "" }
1241
+ },
1242
+ setup(n) {
1243
+ const e = n;
1244
+ function o() {
1245
+ return {
1246
+ nodeId: e.nodeId,
1247
+ inspectorId: e.inspectorId,
1248
+ disableEdit: e.disableEdit
1249
+ };
1250
+ }
1251
+ const { context: t } = Hn(o());
1252
+ nt(() => {
1253
+ t.value = o();
1254
+ });
1255
+ const { expanded: s, toggleExpanded: l } = it(e.expandedStateId);
1256
+ return (i, r) => (p(), m("div", null, [
1257
+ (p(!0), m(te, null, ae(i.data, (c, g, f) => (p(), m("div", { key: f }, [
1258
+ u("div", {
1259
+ class: ie(["flex items-center", [(c == null ? void 0 : c.length) && "cursor-pointer hover:bg-active"]]),
1260
+ onClick: (a) => d(l)(`${f}`)
1261
+ }, [
1262
+ c != null && c.length ? (p(), z(st, {
1263
+ key: 0,
1264
+ value: d(s).includes(`${f}`)
1265
+ }, null, 8, ["value"])) : (p(), m("span", bo)),
1266
+ u("span", wo, le(g), 1)
1267
+ ], 10, yo),
1268
+ c != null && c.length && d(s).includes(`${f}`) ? (p(), m("div", ko, [
1269
+ x(jt, {
1270
+ data: c,
1271
+ index: `${f}`,
1272
+ "expanded-state-id": i.expandedStateId
1273
+ }, null, 8, ["data", "index", "expanded-state-id"])
1274
+ ])) : U("", !0)
1275
+ ]))), 128))
1276
+ ]));
1277
+ }
1278
+ }), Io = { class: "p3" }, $o = ["onClick"], So = {
1279
+ key: 0,
1280
+ class: "absolute left-5px top-4.5 h10 w0 border-l-2",
1281
+ border: "solid gray2"
1282
+ }, To = { class: "h-full flex items-center truncate pl5" }, Eo = {
1283
+ absolute: "",
1284
+ "top-5": "",
1285
+ pr2: "",
1286
+ "text-3": "",
1287
+ op40: ""
1288
+ }, Vo = {
1289
+ pl2: "",
1290
+ op30: ""
1291
+ }, No = /* @__PURE__ */ B({
1292
+ __name: "EventList",
1293
+ props: /* @__PURE__ */ ze({
1294
+ data: {}
1295
+ }, {
1296
+ modelValue: {},
1297
+ modelModifiers: {}
1298
+ }),
1299
+ emits: ["update:modelValue"],
1300
+ setup(n) {
1301
+ const e = n, o = Qe(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], s = T(null), l = V(() => {
1302
+ let i = -1, r = 0;
1303
+ return e.data.forEach((c, g) => {
1304
+ (c.groupId !== r || i === -1) && (i = (i + 1) % t.length), r = c.groupId ?? r, c.id = g, c.color = t[i];
1305
+ }), e.data;
1306
+ });
1307
+ return X(() => l.value.length, (i) => {
1308
+ var r;
1309
+ (r = s.value) == null || r.scrollToItem(i - 1);
1310
+ }, { flush: "post" }), (i, r) => (p(), m("div", Io, [
1311
+ x(d(Cn), {
1312
+ ref_key: "scrollerRef",
1313
+ ref: s,
1314
+ items: l.value,
1315
+ "min-item-size": 52,
1316
+ "key-field": "id",
1317
+ "page-mode": "",
1318
+ "item-tag": "li",
1319
+ "list-tag": "ul",
1320
+ buffer: 20
1321
+ }, {
1322
+ default: M(({ item: c }) => [
1323
+ u("div", {
1324
+ class: "relative mb7 h6 cursor-pointer",
1325
+ style: Ie({ color: o.value === c.id ? c.color : "" }),
1326
+ onClick: (g) => o.value = c.id
1327
+ }, [
1328
+ u("span", {
1329
+ class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
1330
+ style: Ie({ border: `3px solid ${c.color}` })
1331
+ }, null, 4),
1332
+ c.id < i.data.length - 1 ? (p(), m("span", So)) : U("", !0),
1333
+ u("p", To, [
1334
+ u("span", Eo, "[" + le(d(yn)(c.time)) + "]", 1),
1335
+ ne(" " + le(c.title) + " ", 1),
1336
+ u("span", Vo, le(c.subtitle), 1)
1337
+ ])
1338
+ ], 12, $o)
1339
+ ]),
1340
+ _: 1
1341
+ }, 8, ["items"])
1342
+ ]));
1343
+ }
1344
+ }), Ro = { class: "h-full flex flex-col" }, Ao = {
1345
+ key: 1,
1346
+ class: "flex-1 overflow-hidden"
1347
+ }, Do = {
1348
+ "h-full": "",
1349
+ "select-none": "",
1350
+ "overflow-scroll": "",
1351
+ class: "no-scrollbar"
1352
+ }, Po = {
1353
+ "h-full": "",
1354
+ "select-none": "",
1355
+ "overflow-scroll": "",
1356
+ class: "no-scrollbar"
1357
+ }, dt = /* @__PURE__ */ B({
1358
+ __name: "index",
1359
+ props: {
1360
+ layerIds: {},
1361
+ docLink: {},
1362
+ githubRepoLink: {},
1363
+ headerVisible: { type: Boolean, default: !0 }
1364
+ },
1365
+ setup(n, { expose: e }) {
1366
+ const o = n, { expanded: t } = me("timeline-state");
1367
+ t.value = ["0", "1"];
1368
+ const s = T([]), l = T(/* @__PURE__ */ new Map()), i = T(0), r = V(() => s.value[i.value] ?? null), c = V(() => {
1369
+ var C;
1370
+ const y = [];
1371
+ for (const v in (C = r.value) == null ? void 0 : C.data)
1372
+ y.push({
1373
+ key: v,
1374
+ type: v,
1375
+ editable: !1,
1376
+ value: r.value.data[v]
1377
+ });
1378
+ return y;
1379
+ }), g = V(() => {
1380
+ var v, w, j;
1381
+ const y = (v = r.value) == null ? void 0 : v.groupId, C = l.value.get(y);
1382
+ if (C) {
1383
+ const L = ((w = C[C.length - 1]) == null ? void 0 : w.time) - (((j = C[0]) == null ? void 0 : j.time) ?? 0);
1384
+ return [{
1385
+ key: "events",
1386
+ type: "events",
1387
+ editable: !1,
1388
+ value: C.length
1389
+ }, L && {
1390
+ key: "duration",
1391
+ type: "duration",
1392
+ editable: !1,
1393
+ value: `${L}ms`
1394
+ }].filter(Boolean);
1395
+ }
1396
+ }), f = V(() => ({ "Event Info": c.value, ...g.value && { "Group Info": g.value } }));
1397
+ function a(y) {
1398
+ var v;
1399
+ const C = y.groupId;
1400
+ C !== void 0 && (l.value.set(C, l.value.get(C) ?? []), (v = l.value.get(C)) == null || v.push(y));
1401
+ }
1402
+ function h(y) {
1403
+ const C = Y(y);
1404
+ if (!C)
1405
+ return;
1406
+ const { layerId: v, event: w } = C;
1407
+ o.layerIds.includes(v) && (s.value.push(w), a(w));
1408
+ }
1409
+ return D.functions.on(W.TIMELINE_EVENT_UPDATED, h), ye(() => {
1410
+ D.functions.off(W.TIMELINE_EVENT_UPDATED, h);
1411
+ }), e({
1412
+ clear() {
1413
+ s.value = [], l.value.clear();
1414
+ }
1415
+ }), (y, C) => (p(), m("div", Ro, [
1416
+ y.headerVisible ? (p(), z($e, {
1417
+ key: 0,
1418
+ "doc-link": y.docLink,
1419
+ "github-repo-link": y.githubRepoLink
1420
+ }, {
1421
+ default: M(() => [
1422
+ x(Se)
1423
+ ]),
1424
+ _: 1
1425
+ }, 8, ["doc-link", "github-repo-link"])) : U("", !0),
1426
+ s.value.length ? (p(), m("div", Ao, [
1427
+ x(d(Ae), { class: "h-full" }, {
1428
+ default: M(() => [
1429
+ x(d(ue), {
1430
+ border: "r base",
1431
+ size: "40",
1432
+ "h-full": ""
1433
+ }, {
1434
+ default: M(() => [
1435
+ u("div", Do, [
1436
+ x(No, {
1437
+ modelValue: i.value,
1438
+ "onUpdate:modelValue": C[0] || (C[0] = (v) => i.value = v),
1439
+ data: s.value
1440
+ }, null, 8, ["modelValue", "data"])
1441
+ ])
1442
+ ]),
1443
+ _: 1
1444
+ }),
1445
+ x(d(ue), { size: "60" }, {
1446
+ default: M(() => [
1447
+ u("div", Po, [
1448
+ x(Pe, {
1449
+ class: "p3",
1450
+ data: f.value,
1451
+ "node-id": "",
1452
+ "inspector-id": "",
1453
+ "disable-edit": !0,
1454
+ "expanded-state-id": "timeline-state"
1455
+ }, null, 8, ["data"])
1456
+ ])
1457
+ ]),
1458
+ _: 1
1459
+ })
1460
+ ]),
1461
+ _: 1
1462
+ })
1463
+ ])) : (p(), z(Ne, {
1464
+ key: 2,
1465
+ class: "flex-1"
1466
+ }, {
1467
+ default: M(() => C[1] || (C[1] = [
1468
+ ne(" No events ")
1469
+ ])),
1470
+ _: 1
1471
+ }))
1472
+ ]));
1473
+ }
1474
+ });
1475
+ function W1() {
1476
+ const n = T([]), e = T([]);
1477
+ function o(s) {
1478
+ e.value = s, s.length < n.value.length && (n.value = []), e.value.forEach((l) => {
1479
+ t(l);
1185
1480
  });
1186
- const { expanded: s, toggleExpanded: l } = rt(e.expandedStateId);
1187
- return (i, u) => (p(), m("div", null, [
1188
- (p(!0), m(te, null, ae(i.data, (c, C, v) => (p(), m("div", { key: v }, [
1189
- r("div", {
1190
- class: ie(["flex items-center", [(c == null ? void 0 : c.length) && "cursor-pointer hover:bg-active"]]),
1191
- onClick: (a) => d(l)(`${v}`)
1192
- }, [
1193
- c != null && c.length ? (p(), z(at, {
1194
- key: 0,
1195
- value: d(s).includes(`${v}`)
1196
- }, null, 8, ["value"])) : (p(), m("span", fo)),
1197
- r("span", vo, le(C), 1)
1198
- ], 10, po),
1199
- c != null && c.length && d(s).includes(`${v}`) ? (p(), m("div", mo, [
1200
- x(Ot, {
1201
- data: c,
1202
- index: `${v}`,
1203
- "expanded-state-id": i.expandedStateId
1204
- }, null, 8, ["data", "index", "expanded-state-id"])
1205
- ])) : U("", !0)
1206
- ]))), 128))
1207
- ]));
1208
1481
  }
1209
- }), jt = Symbol("SelectedSymbolKey");
1210
- function ho() {
1482
+ Re(() => {
1483
+ D.value.getCustomInspector().then((s) => {
1484
+ e.value = s, e.value.forEach((l) => {
1485
+ t(l);
1486
+ });
1487
+ }), D.functions.on(W.INSPECTOR_UPDATED, o);
1488
+ });
1489
+ function t(s) {
1490
+ n.value.some((l) => l.id === s.id) || n.value.push(s);
1491
+ }
1492
+ return ye(() => {
1493
+ D.functions.off(W.INSPECTOR_UPDATED, o);
1494
+ }), {
1495
+ registeredInspector: n,
1496
+ register: t
1497
+ };
1498
+ }
1499
+ const Ut = Symbol("SelectedSymbolKey");
1500
+ function Mo() {
1211
1501
  const n = T("");
1212
- return ge(jt, n), {
1502
+ return ge(Ut, n), {
1213
1503
  selected: n
1214
1504
  };
1215
1505
  }
1216
- function go() {
1217
- const n = ve(jt, T(""));
1506
+ function Ho() {
1507
+ const n = ve(Ut, T(""));
1218
1508
  function e(o) {
1219
1509
  n.value = o;
1220
1510
  }
@@ -1223,24 +1513,24 @@ function go() {
1223
1513
  select: e
1224
1514
  };
1225
1515
  }
1226
- const Co = ["onClick", "onDblclick"], _o = {
1516
+ const Lo = ["onClick", "onDblclick"], Oo = {
1227
1517
  key: 1,
1228
1518
  pl5: ""
1229
- }, xo = {
1519
+ }, jo = {
1230
1520
  "font-state-field": "",
1231
1521
  "text-3.5": ""
1232
- }, yo = {
1522
+ }, Uo = {
1233
1523
  key: 0,
1234
1524
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1235
- }, bo = {
1525
+ }, zo = {
1236
1526
  "group-hover:text-white": "",
1237
1527
  class: "ws-nowrap [.active_&]:text-white"
1238
- }, wo = {
1528
+ }, Bo = {
1239
1529
  key: 1,
1240
1530
  class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
1241
- }, ko = { key: 0 }, Pe = /* @__PURE__ */ B({
1531
+ }, Zo = { key: 0 }, Me = /* @__PURE__ */ B({
1242
1532
  __name: "TreeViewer",
1243
- props: /* @__PURE__ */ Be({
1533
+ props: /* @__PURE__ */ ze({
1244
1534
  data: {},
1245
1535
  depth: { default: 0 },
1246
1536
  withTag: { type: Boolean, default: !1 }
@@ -1250,48 +1540,48 @@ const Co = ["onClick", "onDblclick"], _o = {
1250
1540
  }),
1251
1541
  emits: ["update:modelValue"],
1252
1542
  setup(n) {
1253
- const e = et(n, "modelValue"), { expanded: o, toggleExpanded: t } = rt();
1254
- go();
1543
+ const e = Qe(n, "modelValue"), { expanded: o, toggleExpanded: t } = it();
1544
+ Ho();
1255
1545
  function s(i) {
1256
1546
  return "name" in i && (i == null ? void 0 : i.name) || "label" in i && i.label;
1257
1547
  }
1258
1548
  function l(i) {
1259
1549
  e.value = i;
1260
1550
  }
1261
- return (i, u) => (p(!0), m(te, null, ae(i.data, (c, C) => {
1262
- var v, a;
1551
+ return (i, r) => (p(!0), m(te, null, ae(i.data, (c, g) => {
1552
+ var f, a;
1263
1553
  return p(), m("div", {
1264
- key: C,
1554
+ key: g,
1265
1555
  class: ie({
1266
1556
  "min-w-max": i.depth === 0
1267
1557
  })
1268
1558
  }, [
1269
- r("div", {
1559
+ u("div", {
1270
1560
  class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === c.id }]),
1271
1561
  style: Ie({ paddingLeft: `${15 * i.depth + 4}px` }),
1272
- onClick: (f) => l(c.id),
1273
- onDblclick: (f) => d(t)(c.id)
1562
+ onClick: (h) => l(c.id),
1563
+ onDblclick: (h) => d(t)(c.id)
1274
1564
  }, [
1275
- (v = c == null ? void 0 : c.children) != null && v.length ? (p(), z(at, {
1565
+ (f = c == null ? void 0 : c.children) != null && f.length ? (p(), z(st, {
1276
1566
  key: 0,
1277
1567
  value: d(o).includes(c.id),
1278
1568
  class: "[.active_&]:op20 group-hover:op20",
1279
- onClick: fe((f) => d(t)(c.id), ["stop"])
1280
- }, null, 8, ["value", "onClick"])) : (p(), m("span", _o)),
1281
- r("span", xo, [
1282
- i.withTag ? (p(), m("span", yo, "<")) : U("", !0),
1283
- r("span", bo, le(s(c)), 1),
1284
- i.withTag ? (p(), m("span", wo, ">")) : U("", !0)
1569
+ onClick: fe((h) => d(t)(c.id), ["stop"])
1570
+ }, null, 8, ["value", "onClick"])) : (p(), m("span", Oo)),
1571
+ u("span", jo, [
1572
+ i.withTag ? (p(), m("span", Uo, "<")) : U("", !0),
1573
+ u("span", zo, le(s(c)), 1),
1574
+ i.withTag ? (p(), m("span", Bo, ">")) : U("", !0)
1285
1575
  ]),
1286
- (p(!0), m(te, null, ae(c.tags, (f, g) => (p(), z(Mt, {
1287
- key: g,
1288
- tag: f
1576
+ (p(!0), m(te, null, ae(c.tags, (h, y) => (p(), z(Dt, {
1577
+ key: y,
1578
+ tag: h
1289
1579
  }, null, 8, ["tag"]))), 128))
1290
- ], 46, Co),
1291
- (a = c == null ? void 0 : c.children) != null && a.length && d(o).includes(c.id) ? (p(), m("div", ko, [
1292
- x(Pe, {
1580
+ ], 46, Lo),
1581
+ (a = c == null ? void 0 : c.children) != null && a.length && d(o).includes(c.id) ? (p(), m("div", Zo, [
1582
+ x(Me, {
1293
1583
  modelValue: e.value,
1294
- "onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
1584
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => e.value = h),
1295
1585
  data: c == null ? void 0 : c.children,
1296
1586
  depth: i.depth + 1,
1297
1587
  "with-tag": i.withTag
@@ -1300,7 +1590,7 @@ const Co = ["onClick", "onDblclick"], _o = {
1300
1590
  ], 2);
1301
1591
  }), 128));
1302
1592
  }
1303
- }), Io = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, $o = { class: "flex-1 overflow-scroll text-3.5" }, So = /* @__PURE__ */ B({
1593
+ }), Fo = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, Go = { class: "flex-1 overflow-scroll text-3.5" }, Ko = /* @__PURE__ */ B({
1304
1594
  __name: "RenderCode",
1305
1595
  props: {
1306
1596
  code: {}
@@ -1311,94 +1601,94 @@ const Co = ["onClick", "onDblclick"], _o = {
1311
1601
  function t() {
1312
1602
  o("close");
1313
1603
  }
1314
- return (s, l) => (p(), m("div", Io, [
1315
- r("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1316
- l[0] || (l[0] = r("span", { class: "font-500" }, "Render Code", -1)),
1317
- r("i", {
1604
+ return (s, l) => (p(), m("div", Fo, [
1605
+ u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
1606
+ l[0] || (l[0] = u("span", { class: "font-500" }, "Render Code", -1)),
1607
+ u("i", {
1318
1608
  class: "i-carbon-close cursor-pointer hover:op80",
1319
1609
  onClick: t
1320
1610
  })
1321
1611
  ]),
1322
- r("div", $o, [
1323
- x(d(fn), {
1612
+ u("div", Go, [
1613
+ x(d(on), {
1324
1614
  code: s.code,
1325
1615
  lang: "javascript"
1326
1616
  }, null, 8, ["code"])
1327
1617
  ])
1328
1618
  ]));
1329
1619
  }
1330
- }), To = { class: "h-full w-full" }, Eo = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, Vo = {
1620
+ }), Wo = { class: "h-full w-full" }, qo = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, Jo = {
1331
1621
  key: 0,
1332
1622
  class: "h-full flex flex-col p2"
1333
- }, No = { class: "flex py2" }, Ro = {
1623
+ }, Yo = { class: "flex py2" }, Xo = {
1334
1624
  xmlns: "http://www.w3.org/2000/svg",
1335
1625
  style: { height: "1.1em", width: "1.1em" },
1336
1626
  class: "op-80 hover:op-100",
1337
1627
  viewBox: "0 0 24 24"
1338
- }, Ao = { class: "h-full flex flex-col p2" }, Do = { class: "flex py2" }, Po = {
1628
+ }, Qo = { class: "h-full flex flex-col p2" }, el = { class: "flex py2" }, tl = {
1339
1629
  key: 0,
1340
1630
  class: "font-state-field flex items-center px-1 text-3.5"
1341
- }, Mo = {
1631
+ }, nl = {
1342
1632
  "group-hover:text-white": "",
1343
1633
  class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
1344
- }, Ho = { class: "flex items-center gap-2 px-1" }, Lo = { class: "h-full flex flex-col items-center justify-center gap-2" }, Oo = { class: "block" }, jo = {
1634
+ }, ol = { class: "flex items-center gap-2 px-1" }, ll = { class: "h-full flex flex-col items-center justify-center gap-2" }, sl = { class: "block" }, al = {
1345
1635
  xmlns: "http://www.w3.org/2000/svg",
1346
1636
  style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
1347
1637
  class: "animate-fade",
1348
1638
  viewBox: "0 0 24 24"
1349
- }, Uo = { class: "flex items-center justify-center" }, Ve = "components", zo = /* @__PURE__ */ B({
1639
+ }, il = { class: "flex items-center justify-center" }, Ve = "components", rl = /* @__PURE__ */ B({
1350
1640
  __name: "index",
1351
1641
  emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
1352
1642
  setup(n, { emit: e }) {
1353
- const o = e, t = T(), s = T(!1), { width: l } = Ln(t), i = V(() => s.value ? l.value < 700 : !1), u = T(""), c = T(""), [C, v] = Rn(!0), a = T(!1), f = T(!1), g = T(""), b = T(!1);
1354
- function h($, y = [], L = []) {
1643
+ const o = e, t = T(), s = T(!1), { width: l } = lo(t), i = V(() => s.value ? l.value < 700 : !1), r = T(""), c = T(""), [g, f] = Xn(!0), a = T(!1), h = T(!1), y = T(""), C = T(!1);
1644
+ function v(S, b = [], O = []) {
1355
1645
  var G;
1356
- return y.push($.id), ((G = $.children) == null ? void 0 : G.length) === 0 && L.push([...y]), Array.isArray($.children) && $.children.forEach((q) => {
1357
- h(q, y, L);
1358
- }), y.pop(), L;
1646
+ return b.push(S.id), ((G = S.children) == null ? void 0 : G.length) === 0 && O.push([...b]), Array.isArray(S.children) && S.children.forEach((q) => {
1647
+ v(q, b, O);
1648
+ }), b.pop(), O;
1359
1649
  }
1360
- function S($) {
1361
- const y = [], L = (G) => {
1650
+ function w(S) {
1651
+ const b = [], O = (G) => {
1362
1652
  G == null || G.forEach((q) => {
1363
1653
  var we;
1364
- y.push(q), (we = q.children) != null && we.length && L(q.children);
1654
+ b.push(q), (we = q.children) != null && we.length && O(q.children);
1365
1655
  });
1366
1656
  };
1367
- return L($), y;
1368
- }
1369
- function j($, y) {
1370
- const L = [];
1371
- return $ == null || $.forEach((G) => {
1372
- L.push(...G.slice(0, y + 1));
1373
- }), [...new Set(L)];
1374
- }
1375
- function O($, y) {
1376
- const L = [];
1377
- return $.forEach((G) => {
1378
- const q = G.indexOf(y);
1379
- q !== -1 && L.push(...G.slice(0, q + 1));
1380
- }), [...new Set(L)];
1381
- }
1382
- const A = T([]), k = V(() => {
1383
- var $, y;
1384
- return ($ = A.value) != null && $.length ? h((y = A.value) == null ? void 0 : y[0]) : [];
1385
- }), R = V(() => S(A.value)), H = V(() => R.value.map(($) => $.id)), K = T({}), Z = T(""), E = V(() => {
1386
- const $ = [], y = (L) => {
1387
- L.forEach((G) => {
1657
+ return O(S), b;
1658
+ }
1659
+ function j(S, b) {
1660
+ const O = [];
1661
+ return S == null || S.forEach((G) => {
1662
+ O.push(...G.slice(0, b + 1));
1663
+ }), [...new Set(O)];
1664
+ }
1665
+ function L(S, b) {
1666
+ const O = [];
1667
+ return S.forEach((G) => {
1668
+ const q = G.indexOf(b);
1669
+ q !== -1 && O.push(...G.slice(0, q + 1));
1670
+ }), [...new Set(O)];
1671
+ }
1672
+ const A = T([]), I = V(() => {
1673
+ var S, b;
1674
+ return (S = A.value) != null && S.length ? v((b = A.value) == null ? void 0 : b[0]) : [];
1675
+ }), R = V(() => w(A.value)), H = V(() => R.value.map((S) => S.id)), K = T({}), Z = T(""), E = V(() => {
1676
+ const S = [], b = (O) => {
1677
+ O.forEach((G) => {
1388
1678
  var q;
1389
- G.id === Z.value && $.push(G), (q = G.children) != null && q.length && y(G.children);
1679
+ G.id === Z.value && S.push(G), (q = G.children) != null && q.length && b(G.children);
1390
1680
  });
1391
1681
  };
1392
- return y(A.value), $[0];
1682
+ return b(A.value), S[0];
1393
1683
  }), P = V(() => {
1394
- var $;
1395
- return (($ = E.value) == null ? void 0 : $.file) ?? "";
1396
- }), w = V(() => {
1397
- const $ = {};
1398
- for (const y in K.value) {
1399
- const G = K.value[y].filter((we) => {
1684
+ var S;
1685
+ return ((S = E.value) == null ? void 0 : S.file) ?? "";
1686
+ }), k = V(() => {
1687
+ const S = {};
1688
+ for (const b in K.value) {
1689
+ const G = K.value[b].filter((we) => {
1400
1690
  try {
1401
- return Bn({
1691
+ return bn({
1402
1692
  [we.key]: we.value
1403
1693
  }, c.value);
1404
1694
  } catch (qt) {
@@ -1406,68 +1696,68 @@ const Co = ["onClick", "onDblclick"], _o = {
1406
1696
  [we.key]: qt
1407
1697
  };
1408
1698
  }
1409
- }), q = gn(Object.values(Cn(Vt(G), "stateType")));
1410
- G.length && ($[y] = q);
1699
+ }), q = _n(Object.values(xn(Vt(G), "stateType")));
1700
+ G.length && (S[b] = q);
1411
1701
  }
1412
- return $;
1413
- }), { expanded: I } = me(), { expanded: _ } = me("component-state");
1414
- ho();
1415
- async function N($ = "") {
1416
- return D.value.getInspectorTree({ inspectorId: Ve, filter: $ }).then((y) => {
1702
+ return S;
1703
+ }), { expanded: $ } = me(), { expanded: _ } = me("component-state");
1704
+ Mo();
1705
+ async function N(S = "") {
1706
+ return D.value.getInspectorTree({ inspectorId: Ve, filter: S }).then((b) => {
1417
1707
  var G, q;
1418
- const L = Y(y);
1419
- A.value = L, Z.value = (q = (G = A.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, I.value = j(k.value, 1), a.value = !0;
1708
+ const O = Y(b);
1709
+ A.value = O, Z.value = (q = (G = A.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, $.value = j(I.value, 1), a.value = !0;
1420
1710
  });
1421
1711
  }
1422
- function F($) {
1423
- if (!$ || !($ != null && $.state))
1712
+ function F(S) {
1713
+ if (!S || !(S != null && S.state))
1424
1714
  return {};
1425
- const y = {};
1426
- return $.state.forEach((L) => {
1427
- y[L.type] || (y[L.type] = []), y[L.type].push(L);
1428
- }), y;
1429
- }
1430
- function se($) {
1431
- D.value.getInspectorState({ inspectorId: Ve, nodeId: $ }).then((y) => {
1432
- const L = Y(y);
1433
- L && (K.value = F(L), _.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
1715
+ const b = {};
1716
+ return S.state.forEach((O) => {
1717
+ b[O.type] || (b[O.type] = []), b[O.type].push(O);
1718
+ }), b;
1719
+ }
1720
+ function se(S) {
1721
+ D.value.getInspectorState({ inspectorId: Ve, nodeId: S }).then((b) => {
1722
+ const O = Y(b);
1723
+ O && (K.value = F(O), _.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
1434
1724
  });
1435
1725
  }
1436
- X(Z, ($) => {
1437
- se($), b.value && je();
1726
+ X(Z, (S) => {
1727
+ se(S), C.value && je();
1438
1728
  });
1439
- function re($) {
1440
- const y = Y($);
1441
- y.inspectorId !== Ve || y.nodeId !== Z.value || (K.value = F({ state: y.state.state }));
1729
+ function re(S) {
1730
+ const b = Y(S);
1731
+ b.inspectorId !== Ve || b.nodeId !== Z.value || (K.value = F({ state: b.state.state }));
1442
1732
  }
1443
1733
  D.functions.on(W.INSPECTOR_STATE_UPDATED, re), N();
1444
- function ce($) {
1445
- const y = $.trim().toLowerCase();
1446
- v(), N(y).then(() => {
1447
- v();
1734
+ function ce(S) {
1735
+ const b = S.trim().toLowerCase();
1736
+ f(), N(b).then(() => {
1737
+ f();
1448
1738
  });
1449
1739
  }
1450
- An(u, ($) => {
1451
- ce($);
1740
+ Qn(r, (S) => {
1741
+ ce(S);
1452
1742
  }, { debounce: 300 });
1453
- function Ce($) {
1454
- var L, G;
1455
- const y = Y($);
1456
- y.inspectorId === Ve && (u.value ? ce(u.value) : A.value = y.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (L = A.value) == null ? void 0 : L[0]) == null ? void 0 : G.id, I.value = j(k.value, 1)));
1743
+ function Ce(S) {
1744
+ var O, G;
1745
+ const b = Y(S);
1746
+ b.inspectorId === Ve && (r.value ? ce(r.value) : A.value = b.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (O = A.value) == null ? void 0 : O[0]) == null ? void 0 : G.id, $.value = j(I.value, 1)));
1457
1747
  }
1458
1748
  D.functions.on(W.INSPECTOR_TREE_UPDATED, Ce), ye(() => {
1459
1749
  D.functions.off(W.INSPECTOR_STATE_UPDATED, re), D.functions.off(W.INSPECTOR_TREE_UPDATED, Ce);
1460
1750
  });
1461
1751
  function _e() {
1462
- f.value = !0, o("onInspectComponentStart"), D.value.inspectComponentInspector().then(($) => {
1463
- const y = JSON.parse($);
1464
- Z.value = y.id, I.value.includes(y.id) || I.value.push(y.id), I.value = [.../* @__PURE__ */ new Set([...I.value, ...O(k.value, y.id)])], Ft();
1752
+ h.value = !0, o("onInspectComponentStart"), D.value.inspectComponentInspector().then((S) => {
1753
+ const b = JSON.parse(S);
1754
+ Z.value = b.id, $.value.includes(b.id) || $.value.push(b.id), $.value = [.../* @__PURE__ */ new Set([...$.value, ...L(I.value, b.id)])], Ft();
1465
1755
  }).finally(() => {
1466
- f.value = !1, o("onInspectComponentEnd");
1756
+ h.value = !1, o("onInspectComponentEnd");
1467
1757
  });
1468
1758
  }
1469
1759
  function He() {
1470
- f.value = !1, D.value.cancelInspectComponentInspector();
1760
+ h.value = !1, D.value.cancelInspectComponentInspector();
1471
1761
  }
1472
1762
  function Le() {
1473
1763
  D.value.scrollToComponent(Z.value);
@@ -1478,8 +1768,8 @@ const Co = ["onClick", "onDblclick"], _o = {
1478
1768
  });
1479
1769
  }
1480
1770
  function je() {
1481
- D.value.getComponentRenderCode(Z.value).then(($) => {
1482
- g.value = $, b.value = !0;
1771
+ D.value.getComponentRenderCode(Z.value).then((S) => {
1772
+ y.value = S, C.value = !0;
1483
1773
  });
1484
1774
  }
1485
1775
  function We() {
@@ -1488,36 +1778,36 @@ const Co = ["onClick", "onDblclick"], _o = {
1488
1778
  const Ee = T();
1489
1779
  function Ft() {
1490
1780
  setTimeout(() => {
1491
- var y;
1492
- const $ = (y = Ee.value) == null ? void 0 : y.querySelector(".active");
1493
- $ == null || $.scrollIntoView({ behavior: "smooth", block: "center" });
1781
+ var b;
1782
+ const S = (b = Ee.value) == null ? void 0 : b.querySelector(".active");
1783
+ S == null || S.scrollIntoView({ behavior: "smooth", block: "center" });
1494
1784
  }, 300);
1495
1785
  }
1496
1786
  function Gt() {
1497
- g.value = "", b.value = !1;
1498
- }
1499
- const qe = Jt(), pt = V(() => qe.appRecords.value.map(($) => ({
1500
- label: $.name + ($.version ? ` (${$.version})` : ""),
1501
- value: $.id
1502
- }))), Kt = V(() => pt.value.map(($) => ({
1503
- label: $.label,
1504
- id: $.value
1787
+ y.value = "", C.value = !1;
1788
+ }
1789
+ const qe = mn(), pt = V(() => qe.appRecords.value.map((S) => ({
1790
+ label: S.name + (S.version ? ` (${S.version})` : ""),
1791
+ value: S.id
1792
+ }))), Kt = V(() => pt.value.map((S) => ({
1793
+ label: S.label,
1794
+ id: S.value
1505
1795
  }))), Je = T(qe.activeAppRecordId.value);
1506
- tt(() => {
1796
+ nt(() => {
1507
1797
  Je.value = qe.activeAppRecordId.value;
1508
1798
  });
1509
- function Wt($) {
1510
- D.value.toggleApp($).then(() => {
1799
+ function Wt(S) {
1800
+ D.value.toggleApp(S).then(() => {
1511
1801
  Z.value = "", N();
1512
1802
  });
1513
1803
  }
1514
- return ($, y) => (p(), m("div", To, [
1804
+ return (S, b) => (p(), m("div", Wo, [
1515
1805
  x(d(Ae), {
1516
1806
  ref_key: "splitpanesRef",
1517
1807
  ref: t,
1518
1808
  class: "flex-1 overflow-auto",
1519
1809
  horizontal: i.value,
1520
- onReady: y[4] || (y[4] = (L) => s.value = !0)
1810
+ onReady: b[4] || (b[4] = (O) => s.value = !0)
1521
1811
  }, {
1522
1812
  default: M(() => [
1523
1813
  pt.value.length > 1 ? (p(), z(d(ue), {
@@ -1526,10 +1816,10 @@ const Co = ["onClick", "onDblclick"], _o = {
1526
1816
  size: "20"
1527
1817
  }, {
1528
1818
  default: M(() => [
1529
- r("div", Eo, [
1530
- x(Wn, {
1819
+ u("div", qo, [
1820
+ x(Sn, {
1531
1821
  modelValue: Je.value,
1532
- "onUpdate:modelValue": y[0] || (y[0] = (L) => Je.value = L),
1822
+ "onUpdate:modelValue": b[0] || (b[0] = (O) => Je.value = O),
1533
1823
  data: Kt.value,
1534
1824
  class: "w-full",
1535
1825
  onSelect: Wt
@@ -1543,24 +1833,24 @@ const Co = ["onClick", "onDblclick"], _o = {
1543
1833
  "h-full": ""
1544
1834
  }, {
1545
1835
  default: M(() => [
1546
- a.value ? (p(), m("div", Vo, [
1547
- r("div", No, [
1836
+ a.value ? (p(), m("div", Jo, [
1837
+ u("div", Yo, [
1548
1838
  x(d(Ze), {
1549
- modelValue: u.value,
1550
- "onUpdate:modelValue": y[1] || (y[1] = (L) => u.value = L),
1839
+ modelValue: r.value,
1840
+ "onUpdate:modelValue": b[1] || (b[1] = (O) => r.value = O),
1551
1841
  "loading-debounce-time": 250,
1552
- loading: !d(C),
1842
+ loading: !d(g),
1553
1843
  placeholder: "Find components...",
1554
1844
  class: "flex-1 text-3.5"
1555
1845
  }, null, 8, ["modelValue", "loading"]),
1556
- d(dn) ? U("", !0) : J((p(), m("button", {
1846
+ d(hn) ? U("", !0) : J((p(), m("button", {
1557
1847
  key: 0,
1558
1848
  "px-1": "",
1559
1849
  class: "hover:color-#00dc82",
1560
1850
  onClick: _e
1561
1851
  }, [
1562
- (p(), m("svg", Ro, y[6] || (y[6] = [
1563
- r("path", {
1852
+ (p(), m("svg", Xo, b[6] || (b[6] = [
1853
+ u("path", {
1564
1854
  fill: "currentColor",
1565
1855
  d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
1566
1856
  }, null, -1)
@@ -1574,14 +1864,14 @@ const Co = ["onClick", "onDblclick"], _o = {
1574
1864
  ]
1575
1865
  ])
1576
1866
  ]),
1577
- r("div", {
1867
+ u("div", {
1578
1868
  ref_key: "componentTreeContainer",
1579
1869
  ref: Ee,
1580
1870
  class: "no-scrollbar flex-1 select-none overflow-scroll"
1581
1871
  }, [
1582
- x(Pe, {
1872
+ x(Me, {
1583
1873
  modelValue: Z.value,
1584
- "onUpdate:modelValue": y[2] || (y[2] = (L) => Z.value = L),
1874
+ "onUpdate:modelValue": b[2] || (b[2] = (O) => Z.value = O),
1585
1875
  data: A.value,
1586
1876
  "with-tag": !0
1587
1877
  }, null, 8, ["modelValue", "data"])
@@ -1595,24 +1885,24 @@ const Co = ["onClick", "onDblclick"], _o = {
1595
1885
  "h-full": ""
1596
1886
  }, {
1597
1887
  default: M(() => {
1598
- var L;
1888
+ var O;
1599
1889
  return [
1600
- r("div", Ao, [
1601
- r("div", Do, [
1602
- (L = E.value) != null && L.name ? (p(), m("span", Po, [
1603
- y[7] || (y[7] = r("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
1604
- r("span", Mo, le(E.value.name), 1),
1605
- y[8] || (y[8] = r("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
1890
+ u("div", Qo, [
1891
+ u("div", el, [
1892
+ (O = E.value) != null && O.name ? (p(), m("span", tl, [
1893
+ b[7] || (b[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
1894
+ u("span", nl, le(E.value.name), 1),
1895
+ b[8] || (b[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
1606
1896
  ])) : U("", !0),
1607
1897
  x(d(Ze), {
1608
1898
  modelValue: c.value,
1609
- "onUpdate:modelValue": y[3] || (y[3] = (G) => c.value = G),
1899
+ "onUpdate:modelValue": b[3] || (b[3] = (G) => c.value = G),
1610
1900
  "loading-debounce-time": 250,
1611
1901
  placeholder: "Filter State...",
1612
1902
  class: "flex-1 text-3.5"
1613
1903
  }, null, 8, ["modelValue"]),
1614
- r("div", Ho, [
1615
- J(r("i", {
1904
+ u("div", ol, [
1905
+ J(u("i", {
1616
1906
  class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
1617
1907
  onClick: Le
1618
1908
  }, null, 512), [
@@ -1623,7 +1913,7 @@ const Co = ["onClick", "onDblclick"], _o = {
1623
1913
  { bottom: !0 }
1624
1914
  ]
1625
1915
  ]),
1626
- J(r("i", {
1916
+ J(u("i", {
1627
1917
  class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
1628
1918
  onClick: je
1629
1919
  }, null, 512), [
@@ -1634,7 +1924,7 @@ const Co = ["onClick", "onDblclick"], _o = {
1634
1924
  { bottom: !0 }
1635
1925
  ]
1636
1926
  ]),
1637
- d(_t) ? J((p(), m("i", {
1927
+ d(yt) ? J((p(), m("i", {
1638
1928
  key: 0,
1639
1929
  class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
1640
1930
  onClick: Oe
@@ -1660,17 +1950,17 @@ const Co = ["onClick", "onDblclick"], _o = {
1660
1950
  ]) : U("", !0)
1661
1951
  ])
1662
1952
  ]),
1663
- x(De, {
1953
+ x(Pe, {
1664
1954
  class: "no-scrollbar flex-1 select-none overflow-scroll",
1665
- data: w.value,
1955
+ data: k.value,
1666
1956
  "node-id": Z.value,
1667
1957
  "inspector-id": Ve,
1668
1958
  "expanded-state-id": "component-state"
1669
1959
  }, null, 8, ["data", "node-id"])
1670
1960
  ]),
1671
- b.value && g.value ? (p(), z(So, {
1961
+ C.value && y.value ? (p(), z(Ko, {
1672
1962
  key: 0,
1673
- code: g.value,
1963
+ code: y.value,
1674
1964
  onClose: Gt
1675
1965
  }, null, 8, ["code"])) : U("", !0)
1676
1966
  ];
@@ -1680,18 +1970,18 @@ const Co = ["onClick", "onDblclick"], _o = {
1680
1970
  ]),
1681
1971
  _: 1
1682
1972
  }, 8, ["horizontal"]),
1683
- d(_t) ? (p(), z(d(vn), {
1973
+ d(yt) ? (p(), z(d(ln), {
1684
1974
  key: 0,
1685
- modelValue: f.value,
1686
- "onUpdate:modelValue": y[5] || (y[5] = (L) => f.value = L),
1975
+ modelValue: h.value,
1976
+ "onUpdate:modelValue": b[5] || (b[5] = (O) => h.value = O),
1687
1977
  title: "",
1688
1978
  height: "12rem",
1689
1979
  closable: !1
1690
1980
  }, {
1691
1981
  footer: M(() => [
1692
- r("div", Uo, [
1982
+ u("div", il, [
1693
1983
  x(d(de), { onClick: He }, {
1694
- default: M(() => y[11] || (y[11] = [
1984
+ default: M(() => b[11] || (b[11] = [
1695
1985
  ne(" Cancel ")
1696
1986
  ])),
1697
1987
  _: 1
@@ -1699,52 +1989,52 @@ const Co = ["onClick", "onDblclick"], _o = {
1699
1989
  ])
1700
1990
  ]),
1701
1991
  default: M(() => [
1702
- r("div", Lo, [
1703
- r("span", Oo, [
1704
- (p(), m("svg", jo, y[9] || (y[9] = [
1705
- r("g", {
1992
+ u("div", ll, [
1993
+ u("span", sl, [
1994
+ (p(), m("svg", al, b[9] || (b[9] = [
1995
+ u("g", {
1706
1996
  fill: "none",
1707
1997
  stroke: "currentColor",
1708
1998
  "stroke-linecap": "round",
1709
1999
  "stroke-linejoin": "round",
1710
2000
  "stroke-width": "2"
1711
2001
  }, [
1712
- r("circle", {
2002
+ u("circle", {
1713
2003
  cx: "12",
1714
2004
  cy: "12",
1715
2005
  r: ".5",
1716
2006
  fill: "currentColor"
1717
2007
  }),
1718
- r("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
2008
+ u("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
1719
2009
  ], -1)
1720
2010
  ])))
1721
2011
  ]),
1722
- y[10] || (y[10] = r("p", null, " Click on a component on the page to select it ", -1))
2012
+ b[10] || (b[10] = u("p", null, " Click on a component on the page to select it ", -1))
1723
2013
  ])
1724
2014
  ]),
1725
2015
  _: 1
1726
2016
  }, 8, ["modelValue"])) : U("", !0)
1727
2017
  ]));
1728
2018
  }
1729
- }), ql = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-38589395"]]), Bo = {}, Zo = { class: "h-screen w-screen $ui-fcc flex-col" };
1730
- function Fo(n, e) {
1731
- return p(), m("div", Zo, [
1732
- e[0] || (e[0] = r("div", { class: "outer" }, [
1733
- r("div", { class: "inner" }, [
1734
- r("i", {
2019
+ }), q1 = /* @__PURE__ */ be(rl, [["__scopeId", "data-v-38589395"]]), ul = {}, cl = { class: "h-screen w-screen $ui-fcc flex-col" };
2020
+ function dl(n, e) {
2021
+ return p(), m("div", cl, [
2022
+ e[0] || (e[0] = u("div", { class: "outer" }, [
2023
+ u("div", { class: "inner" }, [
2024
+ u("i", {
1735
2025
  class: "i-logos-vue inline-block h8! w8!",
1736
2026
  alt: "Vue logo"
1737
2027
  })
1738
2028
  ])
1739
2029
  ], -1)),
1740
- nt(n.$slots, "default", {}, void 0, !0)
2030
+ et(n.$slots, "default", {}, void 0, !0)
1741
2031
  ]);
1742
2032
  }
1743
- const Go = /* @__PURE__ */ be(Bo, [["render", Fo], ["__scopeId", "data-v-b8018f07"]]), Ut = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
1744
- function $e() {
1745
- return ve(Ut);
2033
+ const pl = /* @__PURE__ */ be(ul, [["render", dl], ["__scopeId", "data-v-b8018f07"]]), zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
2034
+ function Te() {
2035
+ return ve(zt);
1746
2036
  }
1747
- function zt() {
2037
+ function Bt() {
1748
2038
  const n = T({
1749
2039
  homepage: "",
1750
2040
  id: "",
@@ -1752,160 +2042,128 @@ function zt() {
1752
2042
  logo: "",
1753
2043
  timelineLayerIds: []
1754
2044
  });
1755
- return ge(Ut, n), n;
1756
- }
1757
- const ut = Symbol("VirtualRouteKey"), Bt = Symbol("VirtualRoutesKey");
1758
- function ct(n, e) {
1759
- const o = (e == null ? void 0 : e.defaultRoutePath) ?? mt(n)[0].path, t = T({
1760
- path: o
1761
- }), s = V(() => mt(n)), l = V(() => t.value.path), i = B({
1762
- setup() {
1763
- return () => {
1764
- const c = s.value.find((C) => C.path === l.value);
1765
- return c ? en(c.component) : null;
1766
- };
1767
- }
1768
- });
1769
- function u() {
1770
- t.value.path = o;
1771
- }
1772
- return ge(ut, t), ge(Bt, s), { VirtualRouterView: i, restoreRouter: u };
1773
- }
1774
- function Me() {
1775
- const n = ve(ut);
1776
- return {
1777
- push(e) {
1778
- n.value.path = e;
1779
- }
1780
- };
1781
- }
1782
- function Ko() {
1783
- const n = ve(Bt), e = ve(ut);
1784
- return {
1785
- routes: n,
1786
- currentRoute: e
1787
- };
2045
+ return ge(zt, n), n;
1788
2046
  }
1789
- const Wo = {}, qo = {
2047
+ const fl = {}, vl = {
1790
2048
  width: "175",
1791
2049
  height: "34",
1792
2050
  viewBox: "0 0 175 34",
1793
2051
  fill: "none",
1794
2052
  xmlns: "http://www.w3.org/2000/svg"
1795
2053
  };
1796
- function Jo(n, e) {
1797
- return p(), m("svg", qo, e[0] || (e[0] = [
1798
- r("path", {
2054
+ function ml(n, e) {
2055
+ return p(), m("svg", vl, e[0] || (e[0] = [
2056
+ u("path", {
1799
2057
  fill: "currentColor",
1800
2058
  d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
1801
2059
  }, null, -1)
1802
2060
  ]));
1803
2061
  }
1804
- const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
2062
+ const hl = /* @__PURE__ */ be(fl, [["render", ml]]), gl = {
1805
2063
  "h-full": "",
1806
2064
  "w-full": "",
1807
2065
  flex: "",
1808
2066
  "items-center": ""
1809
- }, Qo = {
2067
+ }, Cl = {
1810
2068
  flex: "~ col gap2",
1811
2069
  ma: "",
1812
2070
  "px-5": ""
1813
- }, e1 = {
2071
+ }, _l = {
1814
2072
  flex: "~ col",
1815
2073
  "mt-20": "",
1816
2074
  "items-center": ""
1817
- }, t1 = {
2075
+ }, xl = {
1818
2076
  flex: "~",
1819
2077
  "mt--10": "",
1820
2078
  "items-center": "",
1821
2079
  "justify-center": ""
1822
- }, n1 = { class: "mr-1" }, o1 = {
2080
+ }, yl = { class: "mr-1" }, bl = {
1823
2081
  key: 0,
1824
2082
  class: "inline-block w20"
1825
- }, l1 = ["src", "alt"], s1 = {
2083
+ }, wl = ["src", "alt"], kl = {
1826
2084
  key: 1,
1827
2085
  class: "mr2 inline-block min-w-20 text-center text-10 font-600"
1828
- }, a1 = {
2086
+ }, Il = {
1829
2087
  mb6: "",
1830
2088
  "mt--1": "",
1831
2089
  "text-center": "",
1832
2090
  "text-sm": "",
1833
2091
  flex: "~ gap-1"
1834
- }, i1 = { op40: "" }, r1 = { flex: "~ gap2 wrap" }, u1 = {
2092
+ }, $l = { op40: "" }, Sl = { flex: "~ gap2 wrap" }, Tl = {
1835
2093
  flex: "~ gap-6 wrap",
1836
2094
  "mt-5": "",
1837
2095
  "items-center": "",
1838
2096
  "justify-center": ""
1839
- }, c1 = ["href"], d1 = /* @__PURE__ */ B({
2097
+ }, El = ["href"], Vl = /* @__PURE__ */ B({
1840
2098
  __name: "About",
1841
2099
  setup(n) {
1842
- const e = Me(), o = $e(), t = T(!1), s = T(!1);
2100
+ const e = De(), o = Te(), t = T(!1), s = T(!1);
1843
2101
  function l() {
1844
2102
  t.value = !0;
1845
2103
  }
1846
2104
  function i() {
1847
2105
  t.value = !0, s.value = !0;
1848
2106
  }
1849
- return (u, c) => {
1850
- var C;
1851
- return p(), m("div", Xo, [
1852
- r("div", Qo, [
1853
- c[5] || (c[5] = r("div", { "flex-auto": "" }, null, -1)),
1854
- r("div", e1, [
1855
- r("div", t1, [
1856
- r("span", n1, [
1857
- t.value ? U("", !0) : (p(), m("span", o1)),
1858
- J(r("img", {
2107
+ return (r, c) => {
2108
+ var g;
2109
+ return p(), m("div", gl, [
2110
+ u("div", Cl, [
2111
+ c[5] || (c[5] = u("div", { "flex-auto": "" }, null, -1)),
2112
+ u("div", _l, [
2113
+ u("div", xl, [
2114
+ u("span", yl, [
2115
+ t.value ? U("", !0) : (p(), m("span", bl)),
2116
+ J(u("img", {
1859
2117
  src: d(o).logo,
1860
2118
  alt: `${d(o).label} Logo`,
1861
2119
  class: "inline-block h16",
1862
2120
  onError: i,
1863
2121
  onLoad: l
1864
- }, null, 40, l1), [
1865
- [tn, t.value && !s.value]
2122
+ }, null, 40, wl), [
2123
+ [en, t.value && !s.value]
1866
2124
  ]),
1867
- s.value ? (p(), m("span", s1, le(d(o).label), 1)) : U("", !0)
2125
+ s.value ? (p(), m("span", kl, le(d(o).label), 1)) : U("", !0)
1868
2126
  ]),
1869
- r("span", null, [
1870
- x(Yo, { "h-18": "" })
2127
+ u("span", null, [
2128
+ x(hl, { "h-18": "" })
1871
2129
  ])
1872
2130
  ]),
1873
- r("div", a1, [
1874
- r("span", i1, le(d(o).label) + " DevTools ", 1)
2131
+ u("div", Il, [
2132
+ u("span", $l, le(d(o).label) + " DevTools ", 1)
1875
2133
  ])
1876
2134
  ]),
1877
- c[6] || (c[6] = r("div", { "flex-auto": "" }, null, -1)),
1878
- r("div", r1, [
1879
- r("div", {
2135
+ c[6] || (c[6] = u("div", { "flex-auto": "" }, null, -1)),
2136
+ u("div", Sl, [
2137
+ u("div", {
1880
2138
  flex: "~ col auto",
1881
2139
  "min-w-40": "",
1882
2140
  p4: "",
1883
2141
  "theme-card-lime": "",
1884
- onClick: c[0] || (c[0] = (v) => d(e).push("/state"))
2142
+ onClick: c[0] || (c[0] = (f) => d(e).push("/state"))
1885
2143
  }, c[2] || (c[2] = [
1886
- r("div", {
2144
+ u("div", {
1887
2145
  "i-carbon-tree-view-alt": "",
1888
2146
  "text-3xl": ""
1889
2147
  }, null, -1),
1890
- r("code", null, "State", -1)
2148
+ u("code", null, "State", -1)
1891
2149
  ])),
1892
- (C = d(o).timelineLayerIds) != null && C.length ? (p(), m("div", {
2150
+ (g = d(o).timelineLayerIds) != null && g.length ? (p(), m("div", {
1893
2151
  key: 0,
1894
2152
  flex: "~ col auto",
1895
2153
  "min-w-40": "",
1896
2154
  p4: "",
1897
2155
  "theme-card-lime": "",
1898
- onClick: c[1] || (c[1] = (v) => d(e).push("/timeline"))
2156
+ onClick: c[1] || (c[1] = (f) => d(e).push("/timeline"))
1899
2157
  }, c[3] || (c[3] = [
1900
- r("div", {
2158
+ u("div", {
1901
2159
  "i-mdi:timeline-clock-outline": "",
1902
2160
  "text-3xl": ""
1903
2161
  }, null, -1),
1904
- r("div", null, "Timeline", -1)
2162
+ u("div", null, "Timeline", -1)
1905
2163
  ]))) : U("", !0)
1906
2164
  ]),
1907
- r("div", u1, [
1908
- r("a", {
2165
+ u("div", Tl, [
2166
+ u("a", {
1909
2167
  href: d(o).homepage,
1910
2168
  target: "_blank",
1911
2169
  flex: "~ gap1",
@@ -1914,71 +2172,19 @@ const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
1914
2172
  hover: "op100 text-yellow",
1915
2173
  transition: ""
1916
2174
  }, c[4] || (c[4] = [
1917
- r("div", { "i-carbon-document": "" }, null, -1),
2175
+ u("div", { "i-carbon-document": "" }, null, -1),
1918
2176
  ne(" View Documentation ")
1919
- ]), 8, c1)
2177
+ ]), 8, El)
1920
2178
  ]),
1921
- c[7] || (c[7] = r("div", { "flex-auto": "" }, null, -1))
2179
+ c[7] || (c[7] = u("div", { "flex-auto": "" }, null, -1))
1922
2180
  ])
1923
2181
  ]);
1924
2182
  };
1925
2183
  }
1926
- }), p1 = {
1927
- border: "b base",
1928
- class: "flex items-center justify-between px3"
1929
- }, f1 = ["href"], v1 = ["href"], Se = /* @__PURE__ */ B({
1930
- __name: "DevToolsHeader",
1931
- props: {
1932
- githubRepoLink: {},
1933
- docLink: {}
1934
- },
1935
- setup(n) {
1936
- const e = Me();
1937
- return (o, t) => (p(), m("div", p1, [
1938
- r("div", null, [
1939
- nt(o.$slots, "default", {}, () => [
1940
- r("i", {
1941
- class: "i-ep:back cursor-pointer op70 text-base hover:op100",
1942
- onClick: t[0] || (t[0] = (s) => d(e).push("/"))
1943
- })
1944
- ])
1945
- ]),
1946
- r("div", null, [
1947
- r("a", {
1948
- class: "pr2",
1949
- href: o.docLink,
1950
- target: "_blank",
1951
- title: "View Documentation"
1952
- }, t[1] || (t[1] = [
1953
- r("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
1954
- ]), 8, f1),
1955
- o.githubRepoLink ? (p(), m("a", {
1956
- key: 0,
1957
- href: o.githubRepoLink,
1958
- target: "_blank",
1959
- title: "Star on GitHub"
1960
- }, t[2] || (t[2] = [
1961
- r("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
1962
- ]), 8, v1)) : U("", !0)
1963
- ])
1964
- ]));
1965
- }
1966
- }), m1 = { class: "flex gap3" }, h1 = ["onClick"], Te = /* @__PURE__ */ B({
1967
- __name: "Navbar",
1968
- setup(n) {
1969
- const { routes: e, currentRoute: o } = Ko(), t = Me();
1970
- return (s, l) => (p(), m("ul", m1, [
1971
- (p(!0), m(te, null, ae(d(e), (i, u) => (p(), m("li", {
1972
- key: u,
1973
- class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", d(o).path === i.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
1974
- onClick: (c) => d(t).push(i.path)
1975
- }, le(i.name), 11, h1))), 128))
1976
- ]));
1977
- }
1978
- }), g1 = { class: "flex-1 overflow-y-auto p2" }, C1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, _1 = { class: "w-4/5" }, x1 = {
2184
+ }), Nl = { class: "flex-1 overflow-y-auto p2" }, Rl = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, Al = { class: "w-4/5" }, Dl = {
1979
2185
  key: 0,
1980
2186
  class: "flex justify-start"
1981
- }, y1 = { key: 1 }, Zt = /* @__PURE__ */ B({
2187
+ }, Pl = { key: 1 }, Zt = /* @__PURE__ */ B({
1982
2188
  __name: "Settings",
1983
2189
  props: {
1984
2190
  pluginId: {},
@@ -1988,54 +2194,54 @@ const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
1988
2194
  emits: ["update"],
1989
2195
  setup(n, { emit: e }) {
1990
2196
  const o = n, t = e, s = V(() => o.options), l = V(() => o.values);
1991
- function i(u, c) {
1992
- D.value.updatePluginSettings(o.pluginId, u, c), D.value.getPluginSettings(o.pluginId).then((C) => {
1993
- t("update", C);
2197
+ function i(r, c) {
2198
+ D.value.updatePluginSettings(o.pluginId, r, c), D.value.getPluginSettings(o.pluginId).then((g) => {
2199
+ t("update", g);
1994
2200
  });
1995
2201
  }
1996
- return (u, c) => (p(), m("div", g1, [
1997
- r("ul", null, [
1998
- (p(!0), m(te, null, ae(s.value, (C, v) => (p(), m("li", {
1999
- key: v,
2202
+ return (r, c) => (p(), m("div", Nl, [
2203
+ u("ul", null, [
2204
+ (p(!0), m(te, null, ae(s.value, (g, f) => (p(), m("li", {
2205
+ key: f,
2000
2206
  class: "flex items-center py-2"
2001
2207
  }, [
2002
- r("div", C1, le(C.label), 1),
2003
- r("div", _1, [
2004
- C.type === "boolean" ? (p(), m("div", x1, [
2005
- x(d(mn), {
2006
- "model-value": l.value[v],
2208
+ u("div", Rl, le(g.label), 1),
2209
+ u("div", Al, [
2210
+ g.type === "boolean" ? (p(), m("div", Dl, [
2211
+ x(d(sn), {
2212
+ "model-value": l.value[f],
2007
2213
  class: "row-reverse flex hover:bg-active py1 pl2 pr1",
2008
- "onUpdate:modelValue": (a) => i(v, a)
2214
+ "onUpdate:modelValue": (a) => i(f, a)
2009
2215
  }, null, 8, ["model-value", "onUpdate:modelValue"])
2010
- ])) : C.type === "choice" ? (p(), m("div", y1, [
2011
- x(d(hn), {
2012
- "model-value": l.value[v],
2013
- options: C.options,
2014
- "onUpdate:modelValue": (a) => i(v, a)
2216
+ ])) : g.type === "choice" ? (p(), m("div", Pl, [
2217
+ x(d(an), {
2218
+ "model-value": l.value[f],
2219
+ options: g.options,
2220
+ "onUpdate:modelValue": (a) => i(f, a)
2015
2221
  }, null, 8, ["model-value", "options", "onUpdate:modelValue"])
2016
- ])) : C.type === "text" ? (p(), z(d(Ze), {
2222
+ ])) : g.type === "text" ? (p(), z(d(Ze), {
2017
2223
  key: 2,
2018
- "model-value": l.value[v],
2019
- "onUpdate:modelValue": (a) => i(v, a)
2224
+ "model-value": l.value[f],
2225
+ "onUpdate:modelValue": (a) => i(f, a)
2020
2226
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
2021
2227
  ])
2022
2228
  ]))), 128))
2023
2229
  ])
2024
2230
  ]));
2025
2231
  }
2026
- }), b1 = { class: "h-full flex flex-col" }, w1 = /* @__PURE__ */ B({
2232
+ }), Ml = { class: "h-full flex flex-col" }, Hl = /* @__PURE__ */ B({
2027
2233
  __name: "Settings",
2028
2234
  setup(n) {
2029
- const e = ve("pluginSettings"), o = $e(), t = V(() => e.value.options), s = V(() => e.value.values);
2235
+ const e = ve("pluginSettings"), o = Te(), t = V(() => e.value.options), s = V(() => e.value.values);
2030
2236
  function l(i) {
2031
2237
  e.value = i;
2032
2238
  }
2033
- return (i, u) => (p(), m("div", b1, [
2034
- x(Se, {
2239
+ return (i, r) => (p(), m("div", Ml, [
2240
+ x($e, {
2035
2241
  "doc-link": d(o).homepage
2036
2242
  }, {
2037
2243
  default: M(() => [
2038
- x(Te)
2244
+ x(Se)
2039
2245
  ]),
2040
2246
  _: 1
2041
2247
  }, 8, ["doc-link"]),
@@ -2047,119 +2253,110 @@ const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
2047
2253
  }, null, 8, ["plugin-id", "options", "values"])
2048
2254
  ]));
2049
2255
  }
2050
- }), k1 = {}, I1 = { class: "h-full flex flex-col items-center justify-center op50" };
2051
- function $1(n, e) {
2052
- return p(), m("div", I1, [
2053
- e[0] || (e[0] = r("i", { class: "i-lets-icons:blank-light" }, null, -1)),
2054
- r("span", null, [
2055
- nt(n.$slots, "default")
2056
- ])
2057
- ]);
2058
- }
2059
- const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex flex-col" }, T1 = { class: "h-full flex flex-col p2" }, E1 = {
2256
+ }), Ll = { class: "h-full flex flex-col" }, Ol = { class: "h-full flex flex-col p2" }, jl = {
2060
2257
  key: 0,
2061
2258
  class: "mb-1 flex justify-end pb-1",
2062
2259
  border: "b dashed base"
2063
- }, V1 = { class: "flex items-center gap-2 px-1" }, N1 = ["onClick"], R1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, A1 = { class: "h-full flex flex-col p2" }, D1 = {
2260
+ }, Ul = { class: "flex items-center gap-2 px-1" }, zl = ["onClick"], Bl = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Zl = { class: "h-full flex flex-col p2" }, Fl = {
2064
2261
  key: 0,
2065
2262
  class: "mb-1 flex justify-end pb-1",
2066
2263
  border: "b dashed base"
2067
- }, P1 = { class: "flex items-center gap-2 px-1" }, M1 = ["onClick"], H1 = /* @__PURE__ */ B({
2264
+ }, Gl = { class: "flex items-center gap-2 px-1" }, Kl = ["onClick"], Wl = /* @__PURE__ */ B({
2068
2265
  __name: "Index",
2069
2266
  setup(n) {
2070
- const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = $e(), s = V(() => t.value.id), l = T([]), i = T([]), u = T([]), c = V(() => {
2071
- var w, I;
2072
- return (w = u.value) != null && w.length ? b((I = u.value) == null ? void 0 : I[0]) : [];
2073
- }), C = V(() => S(u.value)), v = V(() => C.value.map((w) => w.id)), a = T(""), f = T({}), g = V(() => !Object.keys(f.value).length);
2074
- function b(w, I = [], _ = []) {
2267
+ const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = Te(), s = V(() => t.value.id), l = T([]), i = T([]), r = T([]), c = V(() => {
2268
+ var k, $;
2269
+ return (k = r.value) != null && k.length ? C(($ = r.value) == null ? void 0 : $[0]) : [];
2270
+ }), g = V(() => w(r.value)), f = V(() => g.value.map((k) => k.id)), a = T(""), h = T({}), y = V(() => !Object.keys(h.value).length);
2271
+ function C(k, $ = [], _ = []) {
2075
2272
  var N;
2076
- return I.push(w.id), ((N = w.children) == null ? void 0 : N.length) === 0 && _.push([...I]), Array.isArray(w.children) && w.children.forEach((F) => {
2077
- b(F, I, _);
2078
- }), I.pop(), _;
2273
+ return $.push(k.id), ((N = k.children) == null ? void 0 : N.length) === 0 && _.push([...$]), Array.isArray(k.children) && k.children.forEach((F) => {
2274
+ C(F, $, _);
2275
+ }), $.pop(), _;
2079
2276
  }
2080
- function h(w, I) {
2277
+ function v(k, $) {
2081
2278
  const _ = [];
2082
- return w == null || w.forEach((N) => {
2083
- _.push(...N.slice(0, I + 1));
2279
+ return k == null || k.forEach((N) => {
2280
+ _.push(...N.slice(0, $ + 1));
2084
2281
  }), [...new Set(_)];
2085
2282
  }
2086
- function S(w) {
2087
- const I = [], _ = (N) => {
2283
+ function w(k) {
2284
+ const $ = [], _ = (N) => {
2088
2285
  N == null || N.forEach((F) => {
2089
2286
  var se;
2090
- I.push(F), (se = F.children) != null && se.length && _(F.children);
2287
+ $.push(F), (se = F.children) != null && se.length && _(F.children);
2091
2288
  });
2092
2289
  };
2093
- return _(w), I;
2290
+ return _(k), $;
2094
2291
  }
2095
2292
  function j() {
2096
- D.value.getInspectorNodeActions(s.value).then((w) => {
2097
- l.value = w;
2293
+ D.value.getInspectorNodeActions(s.value).then((k) => {
2294
+ l.value = k;
2098
2295
  });
2099
2296
  }
2100
- function O() {
2101
- D.value.getInspectorActions(s.value).then((w) => {
2102
- i.value = w;
2297
+ function L() {
2298
+ D.value.getInspectorActions(s.value).then((k) => {
2299
+ i.value = k;
2103
2300
  });
2104
2301
  }
2105
- j(), O();
2106
- function A(w) {
2107
- D.value.callInspectorNodeAction(s.value, w, a.value);
2302
+ j(), L();
2303
+ function A(k) {
2304
+ D.value.callInspectorNodeAction(s.value, k, a.value);
2108
2305
  }
2109
- function k(w) {
2110
- D.value.callInspectorAction(s.value, w);
2306
+ function I(k) {
2307
+ D.value.callInspectorAction(s.value, k);
2111
2308
  }
2112
- function R(w) {
2113
- var I;
2114
- for (const _ in w)
2115
- (I = w[_]) != null && I.length || delete w[_];
2116
- return w;
2309
+ function R(k) {
2310
+ var $;
2311
+ for (const _ in k)
2312
+ ($ = k[_]) != null && $.length || delete k[_];
2313
+ return k;
2117
2314
  }
2118
- function H(w) {
2119
- D.value.getInspectorState({ inspectorId: s.value, nodeId: w }).then((I) => {
2120
- const _ = Y(I);
2121
- _ && (f.value = R(_), o.value = Array.from({ length: Object.keys(f.value).length }, (N, F) => `${F}`));
2315
+ function H(k) {
2316
+ D.value.getInspectorState({ inspectorId: s.value, nodeId: k }).then(($) => {
2317
+ const _ = Y($);
2318
+ _ && (h.value = R(_), o.value = Array.from({ length: Object.keys(h.value).length }, (N, F) => `${F}`));
2122
2319
  });
2123
2320
  }
2124
2321
  function K() {
2125
- f.value = {};
2322
+ h.value = {};
2126
2323
  }
2127
2324
  X(a, () => {
2128
2325
  K(), H(a.value);
2129
2326
  });
2130
2327
  const Z = () => {
2131
- D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((w) => {
2132
- const I = Y(w);
2133
- u.value = I, !a.value && I.length && (a.value = I[0].id, e.value = h(c.value, 1), H(I[0].id));
2328
+ D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((k) => {
2329
+ const $ = Y(k);
2330
+ r.value = $, !a.value && $.length && (a.value = $[0].id, e.value = v(c.value, 1), H($[0].id));
2134
2331
  });
2135
2332
  };
2136
- Nt(s).toBeTruthy().then(Z);
2137
- function E(w) {
2333
+ Lt(s).toBeTruthy().then(Z);
2334
+ function E(k) {
2138
2335
  var _, N;
2139
- const I = Y(w);
2140
- !I.rootNodes.length || I.inspectorId !== s.value || (u.value = I.rootNodes, v.value.includes(a.value) || (a.value = (N = (_ = u.value) == null ? void 0 : _[0]) == null ? void 0 : N.id, e.value = h(c.value, 1)));
2336
+ const $ = Y(k);
2337
+ !$.rootNodes.length || $.inspectorId !== s.value || (r.value = $.rootNodes, f.value.includes(a.value) || (a.value = (N = (_ = r.value) == null ? void 0 : _[0]) == null ? void 0 : N.id, e.value = v(c.value, 1)));
2141
2338
  }
2142
- function P(w) {
2143
- const I = Y(w);
2144
- if (I.inspectorId !== s.value || !I.state || I.nodeId !== a.value)
2339
+ function P(k) {
2340
+ const $ = Y(k);
2341
+ if ($.inspectorId !== s.value || !$.state || $.nodeId !== a.value)
2145
2342
  return;
2146
- const { inspectorId: _, ...N } = I.state;
2147
- f.value = R(N);
2343
+ const { inspectorId: _, ...N } = $.state;
2344
+ h.value = R(N);
2148
2345
  }
2149
2346
  return Re(() => {
2150
2347
  D.functions.on(W.INSPECTOR_TREE_UPDATED, E), D.functions.on(W.INSPECTOR_STATE_UPDATED, P);
2151
2348
  }), ye(() => {
2152
2349
  D.functions.off(W.INSPECTOR_TREE_UPDATED, E), D.functions.off(W.INSPECTOR_STATE_UPDATED, P);
2153
- }), (w, I) => (p(), m("div", S1, [
2154
- x(Se, {
2350
+ }), (k, $) => (p(), m("div", Ll, [
2351
+ x($e, {
2155
2352
  "doc-link": d(t).homepage
2156
2353
  }, {
2157
2354
  default: M(() => [
2158
- x(Te)
2355
+ x(Se)
2159
2356
  ]),
2160
2357
  _: 1
2161
2358
  }, 8, ["doc-link"]),
2162
- u.value.length ? (p(), z(d(Ae), {
2359
+ r.value.length ? (p(), z(d(Ae), {
2163
2360
  key: 0,
2164
2361
  class: "flex-1 overflow-auto"
2165
2362
  }, {
@@ -2172,22 +2369,22 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2172
2369
  default: M(() => {
2173
2370
  var _;
2174
2371
  return [
2175
- r("div", T1, [
2176
- (_ = i.value) != null && _.length ? (p(), m("div", E1, [
2177
- r("div", V1, [
2372
+ u("div", Ol, [
2373
+ (_ = i.value) != null && _.length ? (p(), m("div", jl, [
2374
+ u("div", Ul, [
2178
2375
  (p(!0), m(te, null, ae(i.value, (N, F) => J((p(), m("div", {
2179
2376
  key: F,
2180
2377
  class: "flex items-center gap1",
2181
- onClick: (se) => k(F)
2378
+ onClick: (se) => I(F)
2182
2379
  }, [
2183
- x(d(yt), {
2380
+ x(d(gt), {
2184
2381
  name: `baseline-${N.icon.replace(/\_/g, "-")}`,
2185
2382
  "cursor-pointer": "",
2186
2383
  op70: "",
2187
2384
  "text-base": "",
2188
2385
  "hover:op100": ""
2189
2386
  }, null, 8, ["name"])
2190
- ], 8, N1)), [
2387
+ ], 8, zl)), [
2191
2388
  [
2192
2389
  d(Q),
2193
2390
  { content: N.tooltip },
@@ -2197,11 +2394,11 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2197
2394
  ])), 128))
2198
2395
  ])
2199
2396
  ])) : U("", !0),
2200
- r("div", R1, [
2201
- x(Pe, {
2397
+ u("div", Bl, [
2398
+ x(Me, {
2202
2399
  modelValue: a.value,
2203
- "onUpdate:modelValue": I[0] || (I[0] = (N) => a.value = N),
2204
- data: u.value
2400
+ "onUpdate:modelValue": $[0] || ($[0] = (N) => a.value = N),
2401
+ data: r.value
2205
2402
  }, null, 8, ["modelValue", "data"])
2206
2403
  ])
2207
2404
  ])
@@ -2213,22 +2410,22 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2213
2410
  default: M(() => {
2214
2411
  var _;
2215
2412
  return [
2216
- r("div", A1, [
2217
- (_ = l.value) != null && _.length ? (p(), m("div", D1, [
2218
- r("div", P1, [
2413
+ u("div", Zl, [
2414
+ (_ = l.value) != null && _.length ? (p(), m("div", Fl, [
2415
+ u("div", Gl, [
2219
2416
  (p(!0), m(te, null, ae(l.value, (N, F) => J((p(), m("div", {
2220
2417
  key: F,
2221
2418
  class: "flex items-center gap1",
2222
2419
  onClick: (se) => A(F)
2223
2420
  }, [
2224
- x(d(yt), {
2421
+ x(d(gt), {
2225
2422
  name: `baseline-${N.icon.replace(/\_/g, "-")}`,
2226
2423
  "cursor-pointer": "",
2227
2424
  op70: "",
2228
2425
  "text-base": "",
2229
2426
  "hover:op100": ""
2230
2427
  }, null, 8, ["name"])
2231
- ], 8, M1)), [
2428
+ ], 8, Kl)), [
2232
2429
  [
2233
2430
  d(Q),
2234
2431
  { content: N.tooltip },
@@ -2238,15 +2435,15 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2238
2435
  ])), 128))
2239
2436
  ])
2240
2437
  ])) : U("", !0),
2241
- a.value && !g.value ? (p(), z(De, {
2438
+ a.value && !y.value ? (p(), z(Pe, {
2242
2439
  key: 1,
2243
- data: f.value,
2440
+ data: h.value,
2244
2441
  "node-id": a.value,
2245
2442
  "inspector-id": s.value,
2246
2443
  "expanded-state-id": "custom-inspector-state",
2247
2444
  class: "no-scrollbar flex-1 select-none overflow-scroll"
2248
2445
  }, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ne, { key: 2 }, {
2249
- default: M(() => I[1] || (I[1] = [
2446
+ default: M(() => $[1] || ($[1] = [
2250
2447
  ne(" No Data ")
2251
2448
  ])),
2252
2449
  _: 1
@@ -2259,216 +2456,26 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2259
2456
  ]),
2260
2457
  _: 1
2261
2458
  })) : (p(), z(Ne, { key: 1 }, {
2262
- default: M(() => I[2] || (I[2] = [
2459
+ default: M(() => $[2] || ($[2] = [
2263
2460
  ne(" No Data ")
2264
2461
  ])),
2265
2462
  _: 1
2266
2463
  }))
2267
2464
  ]));
2268
2465
  }
2269
- }), L1 = { class: "p3" }, O1 = ["onClick"], j1 = {
2270
- key: 0,
2271
- class: "absolute left-5px top-4.5 h10 w0 border-l-2",
2272
- border: "solid gray2"
2273
- }, U1 = { class: "h-full flex items-center truncate pl5" }, z1 = {
2274
- absolute: "",
2275
- "top-5": "",
2276
- pr2: "",
2277
- "text-3": "",
2278
- op40: ""
2279
- }, B1 = {
2280
- pl2: "",
2281
- op30: ""
2282
- }, Z1 = /* @__PURE__ */ B({
2283
- __name: "EventList",
2284
- props: /* @__PURE__ */ Be({
2285
- data: {}
2286
- }, {
2287
- modelValue: {},
2288
- modelModifiers: {}
2289
- }),
2290
- emits: ["update:modelValue"],
2291
- setup(n) {
2292
- const e = n, o = et(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], s = T(null), l = V(() => {
2293
- let i = -1, u = 0;
2294
- return e.data.forEach((c, C) => {
2295
- (c.groupId !== u || i === -1) && (i = (i + 1) % t.length), u = c.groupId ?? u, c.id = C, c.color = t[i];
2296
- }), e.data;
2297
- });
2298
- return X(() => l.value.length, (i) => {
2299
- var u;
2300
- (u = s.value) == null || u.scrollToItem(i - 1);
2301
- }, { flush: "post" }), (i, u) => (p(), m("div", L1, [
2302
- x(d(xn), {
2303
- ref_key: "scrollerRef",
2304
- ref: s,
2305
- items: l.value,
2306
- "min-item-size": 52,
2307
- "key-field": "id",
2308
- "page-mode": "",
2309
- "item-tag": "li",
2310
- "list-tag": "ul",
2311
- buffer: 20
2312
- }, {
2313
- default: M(({ item: c }) => [
2314
- r("div", {
2315
- class: "relative mb7 h6 cursor-pointer",
2316
- style: Ie({ color: o.value === c.id ? c.color : "" }),
2317
- onClick: (C) => o.value = c.id
2318
- }, [
2319
- r("span", {
2320
- class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
2321
- style: Ie({ border: `3px solid ${c.color}` })
2322
- }, null, 4),
2323
- c.id < i.data.length - 1 ? (p(), m("span", j1)) : U("", !0),
2324
- r("p", U1, [
2325
- r("span", z1, "[" + le(d(zn)(c.time)) + "]", 1),
2326
- ne(" " + le(c.title) + " ", 1),
2327
- r("span", B1, le(c.subtitle), 1)
2328
- ])
2329
- ], 12, O1)
2330
- ]),
2331
- _: 1
2332
- }, 8, ["items"])
2333
- ]));
2334
- }
2335
- }), F1 = { class: "h-full flex flex-col" }, G1 = {
2336
- key: 0,
2337
- class: "flex-1 overflow-hidden"
2338
- }, K1 = {
2339
- "h-full": "",
2340
- "select-none": "",
2341
- "overflow-scroll": "",
2342
- class: "no-scrollbar"
2343
- }, W1 = {
2344
- "h-full": "",
2345
- "select-none": "",
2346
- "overflow-scroll": "",
2347
- class: "no-scrollbar"
2348
- }, dt = /* @__PURE__ */ B({
2349
- __name: "index",
2350
- props: {
2351
- layerIds: {},
2352
- docLink: {},
2353
- githubRepoLink: {}
2354
- },
2355
- setup(n) {
2356
- const e = n, { expanded: o } = me("timeline-state");
2357
- o.value = ["0", "1"];
2358
- const t = T([]), s = T(/* @__PURE__ */ new Map()), l = T(0), i = V(() => t.value[l.value] ?? null), u = V(() => {
2359
- var g;
2360
- const f = [];
2361
- for (const b in (g = i.value) == null ? void 0 : g.data)
2362
- f.push({
2363
- key: b,
2364
- type: b,
2365
- editable: !1,
2366
- value: i.value.data[b]
2367
- });
2368
- return f;
2369
- }), c = V(() => {
2370
- var b, h, S;
2371
- const f = (b = i.value) == null ? void 0 : b.groupId, g = s.value.get(f);
2372
- if (g) {
2373
- const j = ((h = g[g.length - 1]) == null ? void 0 : h.time) - (((S = g[0]) == null ? void 0 : S.time) ?? 0);
2374
- return [{
2375
- key: "events",
2376
- type: "events",
2377
- editable: !1,
2378
- value: g.length
2379
- }, j && {
2380
- key: "duration",
2381
- type: "duration",
2382
- editable: !1,
2383
- value: `${j}ms`
2384
- }].filter(Boolean);
2385
- }
2386
- }), C = V(() => ({ "Event Info": u.value, ...c.value && { "Group Info": c.value } }));
2387
- function v(f) {
2388
- var b;
2389
- const g = f.groupId;
2390
- g !== void 0 && (s.value.set(g, s.value.get(g) ?? []), (b = s.value.get(g)) == null || b.push(f));
2391
- }
2392
- function a(f) {
2393
- const g = Y(f);
2394
- if (!g)
2395
- return;
2396
- const { layerId: b, event: h } = g;
2397
- e.layerIds.includes(b) && (t.value.push(h), v(h));
2398
- }
2399
- return D.functions.on(W.TIMELINE_EVENT_UPDATED, a), ye(() => {
2400
- D.functions.off(W.TIMELINE_EVENT_UPDATED, a);
2401
- }), (f, g) => (p(), m("div", F1, [
2402
- x(Se, {
2403
- "doc-link": f.docLink,
2404
- "github-repo-link": f.githubRepoLink
2405
- }, {
2406
- default: M(() => [
2407
- x(Te)
2408
- ]),
2409
- _: 1
2410
- }, 8, ["doc-link", "github-repo-link"]),
2411
- t.value.length ? (p(), m("div", G1, [
2412
- x(d(Ae), { class: "h-full" }, {
2413
- default: M(() => [
2414
- x(d(ue), {
2415
- border: "r base",
2416
- size: "40",
2417
- "h-full": ""
2418
- }, {
2419
- default: M(() => [
2420
- r("div", K1, [
2421
- x(Z1, {
2422
- modelValue: l.value,
2423
- "onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
2424
- data: t.value
2425
- }, null, 8, ["modelValue", "data"])
2426
- ])
2427
- ]),
2428
- _: 1
2429
- }),
2430
- x(d(ue), { size: "60" }, {
2431
- default: M(() => [
2432
- r("div", W1, [
2433
- x(De, {
2434
- class: "p3",
2435
- data: C.value,
2436
- "node-id": "",
2437
- "inspector-id": "",
2438
- "disable-edit": !0,
2439
- "expanded-state-id": "timeline-state"
2440
- }, null, 8, ["data"])
2441
- ])
2442
- ]),
2443
- _: 1
2444
- })
2445
- ]),
2446
- _: 1
2447
- })
2448
- ])) : (p(), z(Ne, {
2449
- key: 1,
2450
- class: "flex-1"
2451
- }, {
2452
- default: M(() => g[1] || (g[1] = [
2453
- ne(" No events ")
2454
- ])),
2455
- _: 1
2456
- }))
2457
- ]));
2458
- }
2459
- }), q1 = /* @__PURE__ */ B({
2466
+ }), ql = /* @__PURE__ */ B({
2460
2467
  __name: "Index",
2461
2468
  setup(n) {
2462
- const e = $e();
2469
+ const e = Te();
2463
2470
  return (o, t) => (p(), z(dt, {
2464
2471
  "layer-ids": d(e).timelineLayerIds,
2465
2472
  "doc-link": d(e).homepage
2466
2473
  }, null, 8, ["layer-ids", "doc-link"]));
2467
2474
  }
2468
- }), J1 = {
2475
+ }), Jl = {
2469
2476
  "h-full": "",
2470
2477
  "w-full": ""
2471
- }, Y1 = { key: 0 }, Jl = /* @__PURE__ */ B({
2478
+ }, Yl = { key: 0 }, J1 = /* @__PURE__ */ B({
2472
2479
  __name: "index",
2473
2480
  props: {
2474
2481
  id: {},
@@ -2476,156 +2483,156 @@ const Ne = /* @__PURE__ */ be(k1, [["render", $1]]), S1 = { class: "h-full flex
2476
2483
  },
2477
2484
  emits: ["loadError"],
2478
2485
  setup(n, { emit: e }) {
2479
- const o = n, t = e, s = zt(), l = T(!1), i = T(null);
2486
+ const o = n, t = e, s = Bt(), l = T(!1), i = T(null);
2480
2487
  ge("pluginSettings", i);
2481
- const u = V(() => {
2488
+ const r = V(() => {
2482
2489
  var a;
2483
2490
  return [
2484
2491
  {
2485
2492
  path: "/state",
2486
2493
  name: "State",
2487
- component: H1,
2494
+ component: Wl,
2488
2495
  icon: "i-carbon-tree-view-alt"
2489
2496
  },
2490
2497
  ((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
2491
2498
  path: "/timeline",
2492
2499
  name: "Timeline",
2493
- component: q1,
2500
+ component: ql,
2494
2501
  icon: "i-mdi:timeline-clock-outline"
2495
2502
  },
2496
2503
  {
2497
2504
  path: "/about",
2498
2505
  name: "About",
2499
- component: d1
2506
+ component: Vl
2500
2507
  },
2501
2508
  i.value && {
2502
2509
  path: "/settings",
2503
2510
  name: "Settings",
2504
- component: w1,
2511
+ component: Hl,
2505
2512
  icon: "i-mdi:cog-outline"
2506
2513
  }
2507
2514
  ].filter(Boolean);
2508
- }), { VirtualRouterView: c, restoreRouter: C } = ct(u, {
2515
+ }), { VirtualRouterView: c, restoreRouter: g } = lt(r, {
2509
2516
  defaultRoutePath: "/state"
2510
2517
  });
2511
- function v() {
2518
+ function f() {
2512
2519
  l.value = !0, Re(() => {
2513
2520
  D.value.getInspectorInfo(o.id).then((a) => {
2514
2521
  if (!a) {
2515
2522
  t("loadError");
2516
2523
  return;
2517
2524
  }
2518
- const f = {
2525
+ const h = {
2519
2526
  homepage: a == null ? void 0 : a.homepage,
2520
2527
  id: a == null ? void 0 : a.id,
2521
2528
  label: a == null ? void 0 : a.label,
2522
2529
  logo: a == null ? void 0 : a.logo,
2523
- timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((g) => g.id),
2530
+ timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((y) => y.id),
2524
2531
  pluginId: o.pluginId
2525
2532
  };
2526
- s.value = f, C(), l.value = !1;
2533
+ s.value = h, g(), l.value = !1;
2527
2534
  }), D.value.getPluginSettings(o.pluginId).then((a) => {
2528
2535
  a.options ? i.value = a : i.value = null;
2529
2536
  });
2530
2537
  });
2531
2538
  }
2532
2539
  return X(() => o.id, () => {
2533
- v();
2540
+ f();
2534
2541
  }, {
2535
2542
  immediate: !0
2536
2543
  }), ye(() => {
2537
2544
  D.value.unhighlight();
2538
- }), (a, f) => (p(), m("div", J1, [
2539
- l.value ? (p(), m("div", Y1, [
2540
- x(Go)
2545
+ }), (a, h) => (p(), m("div", Jl, [
2546
+ l.value ? (p(), m("div", Yl, [
2547
+ x(pl)
2541
2548
  ])) : (p(), z(d(c), { key: 1 }))
2542
2549
  ]));
2543
2550
  }
2544
- }), X1 = {}, Q1 = {
2551
+ }), Xl = {}, Ql = {
2545
2552
  viewBox: "0 0 566 154",
2546
2553
  fill: "none",
2547
2554
  xmlns: "http://www.w3.org/2000/svg"
2548
2555
  };
2549
- function el(n, e) {
2550
- return p(), m("svg", Q1, e[0] || (e[0] = [
2551
- nn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
2556
+ function e1(n, e) {
2557
+ return p(), m("svg", Ql, e[0] || (e[0] = [
2558
+ tn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
2552
2559
  ]));
2553
2560
  }
2554
- const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2561
+ const t1 = /* @__PURE__ */ be(Xl, [["render", e1]]), n1 = {
2555
2562
  "h-full": "",
2556
2563
  "w-full": "",
2557
2564
  flex: "",
2558
2565
  "items-center": ""
2559
- }, ol = {
2566
+ }, o1 = {
2560
2567
  flex: "~ col gap2",
2561
2568
  ma: "",
2562
2569
  "px-5": ""
2563
- }, ll = {
2570
+ }, l1 = {
2564
2571
  flex: "~ col",
2565
2572
  "mt-20": "",
2566
2573
  "items-center": ""
2567
- }, sl = {
2574
+ }, s1 = {
2568
2575
  flex: "~",
2569
2576
  "mt--10": "",
2570
2577
  "items-center": "",
2571
2578
  "justify-center": ""
2572
- }, al = { flex: "~ gap2 wrap" }, il = /* @__PURE__ */ B({
2579
+ }, a1 = { flex: "~ gap2 wrap" }, i1 = /* @__PURE__ */ B({
2573
2580
  __name: "About",
2574
2581
  setup(n) {
2575
- const e = Me();
2576
- return (o, t) => (p(), m("div", nl, [
2577
- r("div", ol, [
2578
- t[5] || (t[5] = r("div", { "flex-auto": "" }, null, -1)),
2579
- r("div", ll, [
2580
- r("div", sl, [
2581
- x(tl, { "h-18": "" })
2582
+ const e = De();
2583
+ return (o, t) => (p(), m("div", n1, [
2584
+ u("div", o1, [
2585
+ t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
2586
+ u("div", l1, [
2587
+ u("div", s1, [
2588
+ x(t1, { "h-18": "" })
2582
2589
  ]),
2583
- t[2] || (t[2] = r("div", {
2590
+ t[2] || (t[2] = u("div", {
2584
2591
  mb6: "",
2585
2592
  "mt--1": "",
2586
2593
  "text-center": "",
2587
2594
  "text-sm": "",
2588
2595
  flex: "~ gap-1"
2589
2596
  }, [
2590
- r("span", { op40: "" }, " Pinia DevTools ")
2597
+ u("span", { op40: "" }, " Pinia DevTools ")
2591
2598
  ], -1))
2592
2599
  ]),
2593
- t[6] || (t[6] = r("div", { "flex-auto": "" }, null, -1)),
2594
- r("div", al, [
2595
- r("div", {
2600
+ t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
2601
+ u("div", a1, [
2602
+ u("div", {
2596
2603
  flex: "~ col auto",
2597
2604
  "min-w-40": "",
2598
2605
  p4: "",
2599
2606
  "theme-card-lime": "",
2600
2607
  onClick: t[0] || (t[0] = (s) => d(e).push("/store"))
2601
2608
  }, t[3] || (t[3] = [
2602
- r("div", {
2609
+ u("div", {
2603
2610
  "i-carbon-tree-view-alt": "",
2604
2611
  "text-3xl": ""
2605
2612
  }, null, -1),
2606
- r("code", null, "Store", -1)
2613
+ u("code", null, "Store", -1)
2607
2614
  ])),
2608
- r("div", {
2615
+ u("div", {
2609
2616
  flex: "~ col auto",
2610
2617
  "min-w-40": "",
2611
2618
  p4: "",
2612
2619
  "theme-card-lime": "",
2613
2620
  onClick: t[1] || (t[1] = (s) => d(e).push("/timeline"))
2614
2621
  }, t[4] || (t[4] = [
2615
- r("div", {
2622
+ u("div", {
2616
2623
  "i-mdi:timeline-clock-outline": "",
2617
2624
  "text-3xl": ""
2618
2625
  }, null, -1),
2619
- r("div", null, "Timeline", -1)
2626
+ u("div", null, "Timeline", -1)
2620
2627
  ]))
2621
2628
  ]),
2622
- t[7] || (t[7] = r("div", {
2629
+ t[7] || (t[7] = u("div", {
2623
2630
  flex: "~ gap-6 wrap",
2624
2631
  "mt-5": "",
2625
2632
  "items-center": "",
2626
2633
  "justify-center": ""
2627
2634
  }, [
2628
- r("a", {
2635
+ u("a", {
2629
2636
  href: "https://github.com/vuejs/pinia",
2630
2637
  target: "_blank",
2631
2638
  flex: "~ gap1",
@@ -2634,10 +2641,10 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2634
2641
  hover: "op100 text-blue",
2635
2642
  transition: ""
2636
2643
  }, [
2637
- r("div", { "i-carbon-star": "" }),
2644
+ u("div", { "i-carbon-star": "" }),
2638
2645
  ne(" Star on GitHub ")
2639
2646
  ]),
2640
- r("a", {
2647
+ u("a", {
2641
2648
  href: "https://pinia.vuejs.org/",
2642
2649
  target: "_blank",
2643
2650
  flex: "~ gap1",
@@ -2646,28 +2653,28 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2646
2653
  hover: "op100 text-yellow",
2647
2654
  transition: ""
2648
2655
  }, [
2649
- r("div", { "i-carbon-document": "" }),
2656
+ u("div", { "i-carbon-document": "" }),
2650
2657
  ne(" View Documentation ")
2651
2658
  ])
2652
2659
  ], -1)),
2653
- t[8] || (t[8] = r("div", { "flex-auto": "" }, null, -1))
2660
+ t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
2654
2661
  ])
2655
2662
  ]));
2656
2663
  }
2657
- }), rl = { class: "h-full flex flex-col" }, ul = /* @__PURE__ */ B({
2664
+ }), r1 = { class: "h-full flex flex-col" }, u1 = /* @__PURE__ */ B({
2658
2665
  __name: "Settings",
2659
2666
  setup(n) {
2660
2667
  const e = ve("pluginSettings"), o = V(() => e.value.options), t = V(() => e.value.values);
2661
2668
  function s(l) {
2662
2669
  e.value = l;
2663
2670
  }
2664
- return (l, i) => (p(), m("div", rl, [
2665
- x(Se, {
2671
+ return (l, i) => (p(), m("div", r1, [
2672
+ x($e, {
2666
2673
  "doc-link": "https://pinia.vuejs.org/",
2667
2674
  "github-repo-link": "https://github.com/vuejs/pinia"
2668
2675
  }, {
2669
2676
  default: M(() => [
2670
- x(Te)
2677
+ x(Se)
2671
2678
  ]),
2672
2679
  _: 1
2673
2680
  }),
@@ -2679,108 +2686,108 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2679
2686
  }, null, 8, ["options", "values"])
2680
2687
  ]));
2681
2688
  }
2682
- }), cl = { class: "h-full flex flex-col" }, dl = { class: "h-full flex flex-col p2" }, pl = {
2689
+ }), c1 = { class: "h-full flex flex-col" }, d1 = { class: "h-full flex flex-col p2" }, p1 = {
2683
2690
  key: 0,
2684
2691
  class: "mb-1 flex justify-end pb-1",
2685
2692
  border: "b dashed base"
2686
- }, fl = { class: "flex items-center gap-2 px-1" }, vl = ["onClick"], ml = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, hl = { class: "h-full flex flex-col p2" }, gl = {
2693
+ }, f1 = { class: "flex items-center gap-2 px-1" }, v1 = ["onClick"], m1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, h1 = { class: "h-full flex flex-col p2" }, g1 = {
2687
2694
  key: 0,
2688
2695
  class: "mb-1 flex justify-end pb-1",
2689
2696
  border: "b dashed base"
2690
- }, Cl = { class: "flex items-center gap-2 px-1" }, _l = ["onClick"], pe = "pinia", xl = /* @__PURE__ */ B({
2697
+ }, C1 = { class: "flex items-center gap-2 px-1" }, _1 = ["onClick"], pe = "pinia", x1 = /* @__PURE__ */ B({
2691
2698
  __name: "Index",
2692
2699
  setup(n) {
2693
- const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = T([]), s = T([]), l = T(""), i = T([]), u = V(() => {
2700
+ const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = T([]), s = T([]), l = T(""), i = T([]), r = V(() => {
2694
2701
  var E, P;
2695
- return (E = i.value) != null && E.length ? f((P = i.value) == null ? void 0 : P[0]) : [];
2696
- }), c = V(() => b(i.value)), C = V(() => c.value.map((E) => E.id)), v = T({}), a = V(() => {
2702
+ return (E = i.value) != null && E.length ? h((P = i.value) == null ? void 0 : P[0]) : [];
2703
+ }), c = V(() => C(i.value)), g = V(() => c.value.map((E) => E.id)), f = T({}), a = V(() => {
2697
2704
  var E, P;
2698
- return !((E = v.value.state) != null && E.length) && !((P = v.value.getters) != null && P.length);
2705
+ return !((E = f.value.state) != null && E.length) && !((P = f.value.getters) != null && P.length);
2699
2706
  });
2700
- function f(E, P = [], w = []) {
2701
- var I;
2702
- return P.push(E.id), ((I = E.children) == null ? void 0 : I.length) === 0 && w.push([...P]), Array.isArray(E.children) && E.children.forEach((_) => {
2703
- f(_, P, w);
2704
- }), P.pop(), w;
2705
- }
2706
- function g(E, P) {
2707
- const w = [];
2708
- return E == null || E.forEach((I) => {
2709
- w.push(...I.slice(0, P + 1));
2710
- }), [...new Set(w)];
2711
- }
2712
- function b(E) {
2713
- const P = [], w = (I) => {
2714
- I == null || I.forEach((_) => {
2707
+ function h(E, P = [], k = []) {
2708
+ var $;
2709
+ return P.push(E.id), (($ = E.children) == null ? void 0 : $.length) === 0 && k.push([...P]), Array.isArray(E.children) && E.children.forEach((_) => {
2710
+ h(_, P, k);
2711
+ }), P.pop(), k;
2712
+ }
2713
+ function y(E, P) {
2714
+ const k = [];
2715
+ return E == null || E.forEach(($) => {
2716
+ k.push(...$.slice(0, P + 1));
2717
+ }), [...new Set(k)];
2718
+ }
2719
+ function C(E) {
2720
+ const P = [], k = ($) => {
2721
+ $ == null || $.forEach((_) => {
2715
2722
  var N;
2716
- P.push(_), (N = _.children) != null && N.length && w(_.children);
2723
+ P.push(_), (N = _.children) != null && N.length && k(_.children);
2717
2724
  });
2718
2725
  };
2719
- return w(E), P;
2726
+ return k(E), P;
2720
2727
  }
2721
- function h() {
2728
+ function v() {
2722
2729
  D.value.getInspectorNodeActions(pe).then((E) => {
2723
2730
  t.value = E;
2724
2731
  });
2725
2732
  }
2726
- function S() {
2733
+ function w() {
2727
2734
  D.value.getInspectorActions(pe).then((E) => {
2728
2735
  s.value = E;
2729
2736
  });
2730
2737
  }
2731
- h(), S();
2738
+ v(), w();
2732
2739
  function j(E) {
2733
2740
  D.value.callInspectorNodeAction(pe, E, l.value);
2734
2741
  }
2735
- function O(E) {
2742
+ function L(E) {
2736
2743
  D.value.callInspectorAction(pe, E);
2737
2744
  }
2738
2745
  function A(E) {
2739
2746
  var P;
2740
- for (const w in E)
2741
- (P = E[w]) != null && P.length || delete E[w];
2747
+ for (const k in E)
2748
+ (P = E[k]) != null && P.length || delete E[k];
2742
2749
  return E;
2743
2750
  }
2744
- function k(E) {
2751
+ function I(E) {
2745
2752
  D.value.getInspectorState({ inspectorId: pe, nodeId: E }).then((P) => {
2746
- const w = Y(P);
2747
- w && (v.value = A(w), o.value = Array.from({ length: Object.keys(v.value).length }, (I, _) => `${_}`));
2753
+ const k = Y(P);
2754
+ k && (f.value = A(k), o.value = Array.from({ length: Object.keys(f.value).length }, ($, _) => `${_}`));
2748
2755
  });
2749
2756
  }
2750
2757
  function R() {
2751
- v.value = {};
2758
+ f.value = {};
2752
2759
  }
2753
2760
  X(l, () => {
2754
- R(), k(l.value);
2761
+ R(), I(l.value);
2755
2762
  }), (() => {
2756
2763
  D.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((E) => {
2757
2764
  const P = Y(E);
2758
- i.value = P, !l.value && P.length && (l.value = P[0].id, k(P[0].id), e.value = g(u.value, 1));
2765
+ i.value = P, !l.value && P.length && (l.value = P[0].id, I(P[0].id), e.value = y(r.value, 1));
2759
2766
  });
2760
2767
  })();
2761
2768
  function K(E) {
2762
2769
  const P = Y(E);
2763
- P.inspectorId !== pe || !P.rootNodes.length || (i.value = P.rootNodes, C.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = g(u.value, 1), k(P.rootNodes[0].id)));
2770
+ P.inspectorId !== pe || !P.rootNodes.length || (i.value = P.rootNodes, g.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = y(r.value, 1), I(P.rootNodes[0].id)));
2764
2771
  }
2765
2772
  function Z(E) {
2766
2773
  const P = Y(E);
2767
2774
  if (P.inspectorId !== pe)
2768
2775
  return;
2769
- const w = P.state;
2770
- v.value = A({
2771
- state: w.state,
2772
- getters: w.getters
2776
+ const k = P.state;
2777
+ f.value = A({
2778
+ state: k.state,
2779
+ getters: k.getters
2773
2780
  });
2774
2781
  }
2775
2782
  return D.functions.on(W.INSPECTOR_TREE_UPDATED, K), D.functions.on(W.INSPECTOR_STATE_UPDATED, Z), ye(() => {
2776
2783
  D.functions.off(W.INSPECTOR_TREE_UPDATED, K), D.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
2777
- }), (E, P) => (p(), m("div", cl, [
2778
- x(Se, {
2784
+ }), (E, P) => (p(), m("div", c1, [
2785
+ x($e, {
2779
2786
  "doc-link": "https://pinia.vuejs.org/",
2780
2787
  "github-repo-link": "https://github.com/vuejs/pinia"
2781
2788
  }, {
2782
2789
  default: M(() => [
2783
- x(Te)
2790
+ x(Se)
2784
2791
  ]),
2785
2792
  _: 1
2786
2793
  }),
@@ -2792,37 +2799,37 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2792
2799
  "h-full": ""
2793
2800
  }, {
2794
2801
  default: M(() => {
2795
- var w;
2802
+ var k;
2796
2803
  return [
2797
- r("div", dl, [
2798
- (w = s.value) != null && w.length ? (p(), m("div", pl, [
2799
- r("div", fl, [
2800
- (p(!0), m(te, null, ae(s.value, (I, _) => J((p(), m("div", {
2804
+ u("div", d1, [
2805
+ (k = s.value) != null && k.length ? (p(), m("div", p1, [
2806
+ u("div", f1, [
2807
+ (p(!0), m(te, null, ae(s.value, ($, _) => J((p(), m("div", {
2801
2808
  key: _,
2802
2809
  class: "flex items-center gap1",
2803
- onClick: (N) => O(_)
2810
+ onClick: (N) => L(_)
2804
2811
  }, [
2805
- r("i", {
2806
- class: ie(`i-ic-baseline-${I.icon.replace(/\_/g, "-")}`),
2812
+ u("i", {
2813
+ class: ie(`i-ic-baseline-${$.icon.replace(/\_/g, "-")}`),
2807
2814
  "cursor-pointer": "",
2808
2815
  op70: "",
2809
2816
  "text-base": "",
2810
2817
  "hover:op100": ""
2811
2818
  }, null, 2)
2812
- ], 8, vl)), [
2819
+ ], 8, v1)), [
2813
2820
  [
2814
2821
  d(Q),
2815
- { content: I.tooltip },
2822
+ { content: $.tooltip },
2816
2823
  void 0,
2817
2824
  { "bottom-end": !0 }
2818
2825
  ]
2819
2826
  ])), 128))
2820
2827
  ])
2821
2828
  ])) : U("", !0),
2822
- r("div", ml, [
2823
- x(Pe, {
2829
+ u("div", m1, [
2830
+ x(Me, {
2824
2831
  modelValue: l.value,
2825
- "onUpdate:modelValue": P[0] || (P[0] = (I) => l.value = I),
2832
+ "onUpdate:modelValue": P[0] || (P[0] = ($) => l.value = $),
2826
2833
  data: i.value
2827
2834
  }, null, 8, ["modelValue", "data"])
2828
2835
  ])
@@ -2833,37 +2840,37 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2833
2840
  }),
2834
2841
  x(d(ue), { size: "60" }, {
2835
2842
  default: M(() => {
2836
- var w;
2843
+ var k;
2837
2844
  return [
2838
- r("div", hl, [
2839
- (w = t.value) != null && w.length ? (p(), m("div", gl, [
2840
- r("div", Cl, [
2841
- (p(!0), m(te, null, ae(t.value, (I, _) => J((p(), m("div", {
2845
+ u("div", h1, [
2846
+ (k = t.value) != null && k.length ? (p(), m("div", g1, [
2847
+ u("div", C1, [
2848
+ (p(!0), m(te, null, ae(t.value, ($, _) => J((p(), m("div", {
2842
2849
  key: _,
2843
2850
  class: "flex items-center gap1",
2844
2851
  onClick: (N) => j(_)
2845
2852
  }, [
2846
- r("i", {
2847
- class: ie(`i-ic-baseline-${I.icon.replace(/\_/g, "-")}`),
2853
+ u("i", {
2854
+ class: ie(`i-ic-baseline-${$.icon.replace(/\_/g, "-")}`),
2848
2855
  "cursor-pointer": "",
2849
2856
  op70: "",
2850
2857
  "text-base": "",
2851
2858
  "hover:op100": ""
2852
2859
  }, null, 2)
2853
- ], 8, _l)), [
2860
+ ], 8, _1)), [
2854
2861
  [
2855
2862
  d(Q),
2856
- { content: I.tooltip },
2863
+ { content: $.tooltip },
2857
2864
  void 0,
2858
2865
  { "bottom-end": !0 }
2859
2866
  ]
2860
2867
  ])), 128))
2861
2868
  ])
2862
2869
  ])) : U("", !0),
2863
- l.value && !a.value ? (p(), z(De, {
2870
+ l.value && !a.value ? (p(), z(Pe, {
2864
2871
  key: 1,
2865
2872
  class: "no-scrollbar flex-1 select-none overflow-scroll",
2866
- data: v.value,
2873
+ data: f.value,
2867
2874
  "node-id": l.value,
2868
2875
  "inspector-id": pe,
2869
2876
  "expanded-state-id": "pinia-store-state"
@@ -2883,7 +2890,7 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2883
2890
  })
2884
2891
  ]));
2885
2892
  }
2886
- }), yl = /* @__PURE__ */ B({
2893
+ }), y1 = /* @__PURE__ */ B({
2887
2894
  __name: "Index",
2888
2895
  setup(n) {
2889
2896
  const e = ["pinia:mutations"];
@@ -2893,10 +2900,10 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2893
2900
  "github-repo-link": "https://github.com/vuejs/pinia"
2894
2901
  }));
2895
2902
  }
2896
- }), bl = {
2903
+ }), b1 = {
2897
2904
  "h-full": "",
2898
2905
  "w-full": ""
2899
- }, Yl = /* @__PURE__ */ B({
2906
+ }, Y1 = /* @__PURE__ */ B({
2900
2907
  __name: "index",
2901
2908
  setup(n) {
2902
2909
  const e = T(null);
@@ -2905,137 +2912,137 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
2905
2912
  {
2906
2913
  path: "/store",
2907
2914
  name: "Store",
2908
- component: xl,
2915
+ component: x1,
2909
2916
  icon: "i-carbon-tree-view-alt"
2910
2917
  },
2911
2918
  {
2912
2919
  path: "/timeline",
2913
2920
  name: "Timeline",
2914
- component: yl,
2921
+ component: y1,
2915
2922
  icon: "i-mdi:timeline-clock-outline"
2916
2923
  },
2917
2924
  {
2918
2925
  path: "/",
2919
2926
  name: "About",
2920
- component: il,
2927
+ component: i1,
2921
2928
  icon: "i-logos-pinia"
2922
2929
  },
2923
2930
  e.value && {
2924
2931
  path: "/settings",
2925
2932
  name: "Settings",
2926
- component: ul,
2933
+ component: u1,
2927
2934
  icon: "i-mdi:cog-outline"
2928
2935
  }
2929
- ].filter(Boolean)), { VirtualRouterView: t, restoreRouter: s } = ct(o, {
2936
+ ].filter(Boolean)), { VirtualRouterView: t, restoreRouter: s } = lt(o, {
2930
2937
  defaultRoutePath: "/store"
2931
2938
  });
2932
2939
  return Re(() => {
2933
2940
  D.value.getPluginSettings("dev.esm.pinia").then((i) => {
2934
2941
  i.options ? e.value = i : e.value = null;
2935
2942
  });
2936
- }), (l, i) => (p(), m("div", bl, [
2943
+ }), (l, i) => (p(), m("div", b1, [
2937
2944
  x(d(t))
2938
2945
  ]));
2939
2946
  }
2940
- }), wl = {}, kl = {
2947
+ }), w1 = {}, k1 = {
2941
2948
  viewBox: "0 0 566 154",
2942
2949
  fill: "none",
2943
2950
  xmlns: "http://www.w3.org/2000/svg"
2944
2951
  };
2945
- function Il(n, e) {
2946
- return p(), m("svg", kl, e[0] || (e[0] = [
2947
- r("svg", {
2952
+ function I1(n, e) {
2953
+ return p(), m("svg", k1, e[0] || (e[0] = [
2954
+ u("svg", {
2948
2955
  xmlns: "http://www.w3.org/2000/svg",
2949
2956
  width: "8em",
2950
2957
  height: "8em",
2951
2958
  viewBox: "0 -4 24 24"
2952
2959
  }, [
2953
- r("path", {
2960
+ u("path", {
2954
2961
  fill: "#3dd68c",
2955
2962
  d: "M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
2956
2963
  })
2957
2964
  ], -1),
2958
- r("path", {
2965
+ u("path", {
2959
2966
  d: "M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",
2960
2967
  fill: "currentColor"
2961
2968
  }, null, -1)
2962
2969
  ]));
2963
2970
  }
2964
- const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
2971
+ const $1 = /* @__PURE__ */ be(w1, [["render", I1]]), S1 = {
2965
2972
  "h-full": "",
2966
2973
  "w-full": "",
2967
2974
  flex: "",
2968
2975
  "items-center": ""
2969
- }, Tl = {
2976
+ }, T1 = {
2970
2977
  flex: "~ col gap2",
2971
2978
  ma: "",
2972
2979
  "px-5": ""
2973
- }, El = {
2980
+ }, E1 = {
2974
2981
  flex: "~ col",
2975
2982
  "mt-20": "",
2976
2983
  "items-center": ""
2977
- }, Vl = {
2984
+ }, V1 = {
2978
2985
  flex: "~",
2979
2986
  "mt--10": "",
2980
2987
  "items-center": "",
2981
2988
  "justify-center": ""
2982
- }, Nl = { flex: "~ gap2 wrap" }, Rl = /* @__PURE__ */ B({
2989
+ }, N1 = { flex: "~ gap2 wrap" }, R1 = /* @__PURE__ */ B({
2983
2990
  __name: "About",
2984
2991
  setup(n) {
2985
- const e = Me();
2986
- return (o, t) => (p(), m("div", Sl, [
2987
- r("div", Tl, [
2988
- t[5] || (t[5] = r("div", { "flex-auto": "" }, null, -1)),
2989
- r("div", El, [
2990
- r("div", Vl, [
2991
- x($l, { "h-18": "" })
2992
+ const e = De();
2993
+ return (o, t) => (p(), m("div", S1, [
2994
+ u("div", T1, [
2995
+ t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
2996
+ u("div", E1, [
2997
+ u("div", V1, [
2998
+ x($1, { "h-18": "" })
2992
2999
  ]),
2993
- t[2] || (t[2] = r("div", {
3000
+ t[2] || (t[2] = u("div", {
2994
3001
  mb6: "",
2995
3002
  "mt--1": "",
2996
3003
  "text-center": "",
2997
3004
  "text-sm": "",
2998
3005
  flex: "~ gap-1"
2999
3006
  }, [
3000
- r("span", { op40: "" }, " Router DevTools ")
3007
+ u("span", { op40: "" }, " Router DevTools ")
3001
3008
  ], -1))
3002
3009
  ]),
3003
- t[6] || (t[6] = r("div", { "flex-auto": "" }, null, -1)),
3004
- r("div", Nl, [
3005
- r("div", {
3010
+ t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
3011
+ u("div", N1, [
3012
+ u("div", {
3006
3013
  flex: "~ col auto",
3007
3014
  "min-w-40": "",
3008
3015
  p4: "",
3009
3016
  "theme-card-lime": "",
3010
3017
  onClick: t[0] || (t[0] = (s) => d(e).push("/routes"))
3011
3018
  }, t[3] || (t[3] = [
3012
- r("div", {
3019
+ u("div", {
3013
3020
  "i-carbon-tree-view-alt": "",
3014
3021
  "text-3xl": ""
3015
3022
  }, null, -1),
3016
- r("code", null, "Routes", -1)
3023
+ u("code", null, "Routes", -1)
3017
3024
  ])),
3018
- r("div", {
3025
+ u("div", {
3019
3026
  flex: "~ col auto",
3020
3027
  "min-w-40": "",
3021
3028
  p4: "",
3022
3029
  "theme-card-lime": "",
3023
3030
  onClick: t[1] || (t[1] = (s) => d(e).push("/timeline"))
3024
3031
  }, t[4] || (t[4] = [
3025
- r("div", {
3032
+ u("div", {
3026
3033
  "i-mdi:timeline-clock-outline": "",
3027
3034
  "text-3xl": ""
3028
3035
  }, null, -1),
3029
- r("div", null, "Timeline", -1)
3036
+ u("div", null, "Timeline", -1)
3030
3037
  ]))
3031
3038
  ]),
3032
- t[7] || (t[7] = r("div", {
3039
+ t[7] || (t[7] = u("div", {
3033
3040
  flex: "~ gap-6 wrap",
3034
3041
  "mt-5": "",
3035
3042
  "items-center": "",
3036
3043
  "justify-center": ""
3037
3044
  }, [
3038
- r("a", {
3045
+ u("a", {
3039
3046
  href: "https://github.com/vuejs/router",
3040
3047
  target: "_blank",
3041
3048
  flex: "~ gap1",
@@ -3044,10 +3051,10 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3044
3051
  hover: "op100 text-blue",
3045
3052
  transition: ""
3046
3053
  }, [
3047
- r("div", { "i-carbon-star": "" }),
3054
+ u("div", { "i-carbon-star": "" }),
3048
3055
  ne(" Star on GitHub ")
3049
3056
  ]),
3050
- r("a", {
3057
+ u("a", {
3051
3058
  href: "https://router.vuejs.org/",
3052
3059
  target: "_blank",
3053
3060
  flex: "~ gap1",
@@ -3056,98 +3063,98 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3056
3063
  hover: "op100 text-yellow",
3057
3064
  transition: ""
3058
3065
  }, [
3059
- r("div", { "i-carbon-document": "" }),
3066
+ u("div", { "i-carbon-document": "" }),
3060
3067
  ne(" View Documentation ")
3061
3068
  ])
3062
3069
  ], -1)),
3063
- t[8] || (t[8] = r("div", { "flex-auto": "" }, null, -1))
3070
+ t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
3064
3071
  ])
3065
3072
  ]));
3066
3073
  }
3067
- }), Al = { class: "h-full flex flex-col" }, Dl = {
3074
+ }), A1 = { class: "h-full flex flex-col" }, D1 = {
3068
3075
  "h-full": "",
3069
3076
  "select-none": "",
3070
3077
  "overflow-scroll": "",
3071
3078
  p2: "",
3072
3079
  class: "no-scrollbar"
3073
- }, Pl = {
3080
+ }, P1 = {
3074
3081
  "h-full": "",
3075
3082
  "select-none": "",
3076
3083
  "overflow-scroll": "",
3077
3084
  class: "no-scrollbar"
3078
- }, Ml = /* @__PURE__ */ B({
3085
+ }, M1 = /* @__PURE__ */ B({
3079
3086
  __name: "Index",
3080
3087
  setup(n) {
3081
- const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = $e(), s = V(() => t.value.id), l = T(""), i = T([]), u = V(() => {
3082
- var k, R;
3083
- return (k = i.value) != null && k.length ? a((R = i.value) == null ? void 0 : R[0]) : [];
3084
- }), c = V(() => g(i.value)), C = V(() => c.value.map((k) => k.id)), v = T({});
3085
- function a(k, R = [], H = []) {
3088
+ const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = Te(), s = V(() => t.value.id), l = T(""), i = T([]), r = V(() => {
3089
+ var I, R;
3090
+ return (I = i.value) != null && I.length ? a((R = i.value) == null ? void 0 : R[0]) : [];
3091
+ }), c = V(() => y(i.value)), g = V(() => c.value.map((I) => I.id)), f = T({});
3092
+ function a(I, R = [], H = []) {
3086
3093
  var K;
3087
- return R.push(k.id), ((K = k.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray(k.children) && k.children.forEach((Z) => {
3094
+ return R.push(I.id), ((K = I.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray(I.children) && I.children.forEach((Z) => {
3088
3095
  a(Z, R, H);
3089
3096
  }), R.pop(), H;
3090
3097
  }
3091
- function f(k, R) {
3098
+ function h(I, R) {
3092
3099
  const H = [];
3093
- return k == null || k.forEach((K) => {
3100
+ return I == null || I.forEach((K) => {
3094
3101
  H.push(...K.slice(0, R + 1));
3095
3102
  }), [...new Set(H)];
3096
3103
  }
3097
- function g(k) {
3104
+ function y(I) {
3098
3105
  const R = [], H = (K) => {
3099
3106
  K == null || K.forEach((Z) => {
3100
3107
  var E;
3101
3108
  R.push(Z), (E = Z.children) != null && E.length && H(Z.children);
3102
3109
  });
3103
3110
  };
3104
- return H(k), R;
3111
+ return H(I), R;
3105
3112
  }
3106
- function b(k) {
3113
+ function C(I) {
3107
3114
  var R;
3108
- for (const H in k)
3109
- (R = k[H]) != null && R.length || delete k[H];
3110
- return k;
3115
+ for (const H in I)
3116
+ (R = I[H]) != null && R.length || delete I[H];
3117
+ return I;
3111
3118
  }
3112
- function h(k) {
3113
- D.value.getInspectorState({ inspectorId: s.value, nodeId: k }).then((R) => {
3119
+ function v(I) {
3120
+ D.value.getInspectorState({ inspectorId: s.value, nodeId: I }).then((R) => {
3114
3121
  const H = Y(R);
3115
- H && (v.value = b(H), o.value = Array.from({ length: Object.keys(v.value).length }, (K, Z) => `${Z}`));
3122
+ H && (f.value = C(H), o.value = Array.from({ length: Object.keys(f.value).length }, (K, Z) => `${Z}`));
3116
3123
  });
3117
3124
  }
3118
- function S() {
3119
- v.value = {};
3125
+ function w() {
3126
+ f.value = {};
3120
3127
  }
3121
3128
  X(l, () => {
3122
- S(), h(l.value);
3129
+ w(), v(l.value);
3123
3130
  });
3124
3131
  const j = () => {
3125
- D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((k) => {
3126
- const R = Y(k);
3127
- i.value = R, !l.value && R.length && (l.value = R[0].id, h(R[0].id), e.value = f(u.value, 1));
3132
+ D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((I) => {
3133
+ const R = Y(I);
3134
+ i.value = R, !l.value && R.length && (l.value = R[0].id, v(R[0].id), e.value = h(r.value, 1));
3128
3135
  });
3129
3136
  };
3130
- Nt(s).toBeTruthy().then(j);
3131
- function O(k) {
3132
- const R = Y(k);
3133
- R.inspectorId !== s.value || !R.rootNodes.length || (i.value = R.rootNodes, C.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = f(u.value, 1), h(R.rootNodes[0].id)));
3137
+ Lt(s).toBeTruthy().then(j);
3138
+ function L(I) {
3139
+ const R = Y(I);
3140
+ R.inspectorId !== s.value || !R.rootNodes.length || (i.value = R.rootNodes, g.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = h(r.value, 1), v(R.rootNodes[0].id)));
3134
3141
  }
3135
- function A(k) {
3136
- const R = Y(k);
3142
+ function A(I) {
3143
+ const R = Y(I);
3137
3144
  if (R.inspectorId !== s.value)
3138
3145
  return;
3139
3146
  const H = R.state;
3140
- v.value = b(H);
3147
+ f.value = C(H);
3141
3148
  }
3142
- return D.functions.on(W.INSPECTOR_TREE_UPDATED, O), D.functions.on(W.INSPECTOR_STATE_UPDATED, A), ye(() => {
3143
- D.functions.off(W.INSPECTOR_TREE_UPDATED, O), D.functions.off(W.INSPECTOR_STATE_UPDATED, A);
3144
- }), (k, R) => (p(), m("div", Al, [
3145
- x(Se, {
3149
+ return D.functions.on(W.INSPECTOR_TREE_UPDATED, L), D.functions.on(W.INSPECTOR_STATE_UPDATED, A), ye(() => {
3150
+ D.functions.off(W.INSPECTOR_TREE_UPDATED, L), D.functions.off(W.INSPECTOR_STATE_UPDATED, A);
3151
+ }), (I, R) => (p(), m("div", A1, [
3152
+ x($e, {
3146
3153
  "doc-link": "https://router.vuejs.org/",
3147
3154
  "github-repo-link": "https://github.com/vuejs/router"
3148
3155
  }, {
3149
3156
  default: M(() => [
3150
- x(Te)
3157
+ x(Se)
3151
3158
  ]),
3152
3159
  _: 1
3153
3160
  }),
@@ -3159,8 +3166,8 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3159
3166
  "h-full": ""
3160
3167
  }, {
3161
3168
  default: M(() => [
3162
- r("div", Dl, [
3163
- x(Pe, {
3169
+ u("div", D1, [
3170
+ x(Me, {
3164
3171
  modelValue: l.value,
3165
3172
  "onUpdate:modelValue": R[0] || (R[0] = (H) => l.value = H),
3166
3173
  data: i.value
@@ -3171,11 +3178,11 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3171
3178
  }),
3172
3179
  x(d(ue), { size: "60" }, {
3173
3180
  default: M(() => [
3174
- r("div", Pl, [
3175
- l.value ? (p(), z(De, {
3181
+ u("div", P1, [
3182
+ l.value ? (p(), z(Pe, {
3176
3183
  key: 0,
3177
3184
  class: "p3",
3178
- data: v.value,
3185
+ data: f.value,
3179
3186
  "node-id": "",
3180
3187
  "inspector-id": "router",
3181
3188
  "expanded-state-id": "routes-state"
@@ -3194,42 +3201,42 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3194
3201
  })
3195
3202
  ]));
3196
3203
  }
3197
- }), Hl = /* @__PURE__ */ B({
3204
+ }), H1 = /* @__PURE__ */ B({
3198
3205
  __name: "Index",
3199
3206
  setup(n) {
3200
- const e = $e();
3207
+ const e = Te();
3201
3208
  return (o, t) => (p(), z(dt, {
3202
3209
  "layer-ids": d(e).timelineLayerIds,
3203
3210
  "doc-link": "https://router.vuejs.org/",
3204
3211
  "github-repo-link": "https://github.com/vuejs/router"
3205
3212
  }, null, 8, ["layer-ids"]));
3206
3213
  }
3207
- }), Ll = {
3214
+ }), L1 = {
3208
3215
  "h-full": "",
3209
3216
  "w-full": ""
3210
- }, Xl = /* @__PURE__ */ B({
3217
+ }, X1 = /* @__PURE__ */ B({
3211
3218
  __name: "index",
3212
3219
  props: {
3213
3220
  id: {}
3214
3221
  },
3215
3222
  setup(n) {
3216
- const e = n, o = zt(), t = T(!1), { VirtualRouterView: s, restoreRouter: l } = ct([
3223
+ const e = n, o = Bt(), t = T(!1), { VirtualRouterView: s, restoreRouter: l } = lt([
3217
3224
  {
3218
3225
  path: "/routes",
3219
3226
  name: "Routes",
3220
- component: Ml,
3227
+ component: M1,
3221
3228
  icon: "i-carbon-tree-view-alt"
3222
3229
  },
3223
3230
  {
3224
3231
  path: "/timeline",
3225
3232
  name: "Timeline",
3226
- component: Hl,
3233
+ component: H1,
3227
3234
  icon: "i-mdi:timeline-clock-outline"
3228
3235
  },
3229
3236
  {
3230
3237
  path: "/about",
3231
3238
  name: "About",
3232
- component: Rl,
3239
+ component: R1,
3233
3240
  icon: "i-ri-route-line"
3234
3241
  }
3235
3242
  ], {
@@ -3237,31 +3244,33 @@ const $l = /* @__PURE__ */ be(wl, [["render", Il]]), Sl = {
3237
3244
  });
3238
3245
  function i() {
3239
3246
  t.value = !0, Re(() => {
3240
- D.value.getInspectorInfo(e.id).then((u) => {
3241
- if (!u)
3247
+ D.value.getInspectorInfo(e.id).then((r) => {
3248
+ if (!r)
3242
3249
  return;
3243
3250
  const c = {
3244
- homepage: u == null ? void 0 : u.homepage,
3245
- id: u == null ? void 0 : u.id,
3246
- label: u == null ? void 0 : u.label,
3247
- logo: u == null ? void 0 : u.logo,
3248
- timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((C) => C.id)
3251
+ homepage: r == null ? void 0 : r.homepage,
3252
+ id: r == null ? void 0 : r.id,
3253
+ label: r == null ? void 0 : r.label,
3254
+ logo: r == null ? void 0 : r.logo,
3255
+ timelineLayerIds: r == null ? void 0 : r.timelineLayers.map((g) => g.id)
3249
3256
  };
3250
3257
  o.value = c, l(), t.value = !1;
3251
3258
  });
3252
3259
  });
3253
3260
  }
3254
- return X(() => e.id, (u) => {
3255
- u && i();
3256
- }), (u, c) => (p(), m("div", Ll, [
3261
+ return X(() => e.id, (r) => {
3262
+ r && i();
3263
+ }), (r, c) => (p(), m("div", L1, [
3257
3264
  x(d(s))
3258
3265
  ]));
3259
3266
  }
3260
3267
  });
3261
3268
  export {
3262
- ql as Components,
3263
- Jl as CustomInspector,
3264
- Yl as Pinia,
3265
- Xl as Router,
3266
- Wl as useCustomInspector
3269
+ q1 as Components,
3270
+ J1 as CustomInspector,
3271
+ Y1 as Pinia,
3272
+ X1 as Router,
3273
+ Sn as SelectiveList,
3274
+ dt as Timeline,
3275
+ W1 as useCustomInspector
3267
3276
  };