app-devtools 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +315 -292
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import te from "dayjs";
1
+ import ne from "dayjs";
2
2
  import { dequal as vt } from "dequal";
3
3
  import { produce as Zt } from "immer";
4
4
  import { parse as Wt } from "regexparam";
@@ -9,7 +9,7 @@ const U = {}, Gt = (e, t) => e === t, D = Symbol("solid-proxy"), ve = Symbol("so
9
9
  equals: Gt
10
10
  };
11
11
  let Qt = At;
12
- const J = 1, we = 2, bt = {
12
+ const q = 1, we = 2, bt = {
13
13
  owned: null,
14
14
  cleanups: null,
15
15
  context: null,
@@ -17,7 +17,7 @@ const J = 1, we = 2, bt = {
17
17
  };
18
18
  var P = null;
19
19
  let X = null, A = null, E = null, Y = null, Ze = 0;
20
- function ne(e, t) {
20
+ function re(e, t) {
21
21
  const n = A, r = P, l = e.length === 0, o = l ? bt : {
22
22
  owned: null,
23
23
  cleanups: null,
@@ -26,12 +26,12 @@ function ne(e, t) {
26
26
  }, s = l ? e : () => e(() => Z(() => Te(o)));
27
27
  P = o, A = null;
28
28
  try {
29
- return ce(s, !0);
29
+ return ue(s, !0);
30
30
  } finally {
31
31
  A = n, P = r;
32
32
  }
33
33
  }
34
- function le(e, t) {
34
+ function oe(e, t) {
35
35
  t = t ? Object.assign({}, be, t) : be;
36
36
  const n = {
37
37
  value: e,
@@ -42,7 +42,7 @@ function le(e, t) {
42
42
  return [Ct.bind(n), r];
43
43
  }
44
44
  function _(e, t, n) {
45
- const r = St(e, t, !1, J);
45
+ const r = St(e, t, !1, q);
46
46
  Ne(r);
47
47
  }
48
48
  function m(e, t, n) {
@@ -51,7 +51,7 @@ function m(e, t, n) {
51
51
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ne(r), Ct.bind(r);
52
52
  }
53
53
  function Jt(e) {
54
- return ce(e, !1);
54
+ return ue(e, !1);
55
55
  }
56
56
  function Z(e) {
57
57
  if (A === null)
@@ -80,11 +80,11 @@ function qt(e) {
80
80
  function Ct() {
81
81
  const e = X;
82
82
  if (this.sources && (this.state || e))
83
- if (this.state === J || e)
83
+ if (this.state === q || e)
84
84
  Ne(this);
85
85
  else {
86
86
  const t = E;
87
- E = null, ce(() => xe(this), !1), E = t;
87
+ E = null, ue(() => xe(this), !1), E = t;
88
88
  }
89
89
  if (A) {
90
90
  const t = this.observers ? this.observers.length : 0;
@@ -94,10 +94,10 @@ function Ct() {
94
94
  }
95
95
  function _t(e, t, n) {
96
96
  let r = e.value;
97
- return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && ce(() => {
97
+ return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && ue(() => {
98
98
  for (let l = 0; l < e.observers.length; l += 1) {
99
99
  const o = e.observers[l], s = X && X.running;
100
- s && X.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : Y.push(o), o.observers && Nt(o)), s || (o.state = J);
100
+ s && X.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : Y.push(o), o.observers && Nt(o)), s || (o.state = q);
101
101
  }
102
102
  if (E.length > 1e6)
103
103
  throw E = [], new Error();
@@ -115,11 +115,11 @@ function en(e, t, n) {
115
115
  try {
116
116
  r = e.fn(t);
117
117
  } catch (l) {
118
- e.pure && (e.state = J, e.owned && e.owned.forEach(Te), e.owned = null), Tt(l);
118
+ e.pure && (e.state = q, e.owned && e.owned.forEach(Te), e.owned = null), Tt(l);
119
119
  }
120
120
  (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? _t(e, r) : e.value = r, e.updatedAt = n);
121
121
  }
122
- function St(e, t, n, r = J, l) {
122
+ function St(e, t, n, r = q, l) {
123
123
  const o = {
124
124
  fn: e,
125
125
  state: r,
@@ -147,14 +147,14 @@ function kt(e) {
147
147
  for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ze); )
148
148
  (e.state || t) && n.push(e);
149
149
  for (let r = n.length - 1; r >= 0; r--)
150
- if (e = n[r], e.state === J || t)
150
+ if (e = n[r], e.state === q || t)
151
151
  Ne(e);
152
152
  else if (e.state === we || t) {
153
153
  const l = E;
154
- E = null, ce(() => xe(e, n[0]), !1), E = l;
154
+ E = null, ue(() => xe(e, n[0]), !1), E = l;
155
155
  }
156
156
  }
157
- function ce(e, t) {
157
+ function ue(e, t) {
158
158
  if (E)
159
159
  return e();
160
160
  let n = !1;
@@ -170,7 +170,7 @@ function tn(e) {
170
170
  if (E && (At(E), E = null), e)
171
171
  return;
172
172
  const t = Y;
173
- Y = null, t.length && ce(() => Qt(t), !1);
173
+ Y = null, t.length && ue(() => Qt(t), !1);
174
174
  }
175
175
  function At(e) {
176
176
  for (let t = 0; t < e.length; t++)
@@ -181,7 +181,7 @@ function xe(e, t) {
181
181
  e.state = 0;
182
182
  for (let r = 0; r < e.sources.length; r += 1) {
183
183
  const l = e.sources[r];
184
- l.sources && (l.state === J || n ? l !== t && kt(l) : (l.state === we || n) && xe(l, t));
184
+ l.sources && (l.state === q || n ? l !== t && kt(l) : (l.state === we || n) && xe(l, t));
185
185
  }
186
186
  }
187
187
  function Nt(e) {
@@ -244,10 +244,10 @@ function rn(e, t, n = {}) {
244
244
  return a[ve], Z(() => {
245
245
  let d = a.length, g, v, b, w, k, x, N, T, O;
246
246
  if (d === 0)
247
- s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] = ne((H) => (o[0] = H, n.fallback())), s = 1);
247
+ s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] = re((H) => (o[0] = H, n.fallback())), s = 1);
248
248
  else if (s === 0) {
249
249
  for (l = new Array(d), u = 0; u < d; u++)
250
- r[u] = a[u], l[u] = ne(p);
250
+ r[u] = a[u], l[u] = re(p);
251
251
  s = d;
252
252
  } else {
253
253
  for (b = new Array(d), w = new Array(d), i && (k = new Array(d)), x = 0, N = Math.min(s, d); x < N && r[x] === a[x]; x++)
@@ -259,14 +259,14 @@ function rn(e, t, n = {}) {
259
259
  for (c = x; c <= N; c++)
260
260
  O = r[c], u = g.get(O), u !== void 0 && u !== -1 ? (b[u] = l[c], w[u] = o[c], i && (k[u] = i[c]), u = v[u], g.set(O, u)) : o[c]();
261
261
  for (u = x; u < d; u++)
262
- u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] = ne(p);
262
+ u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] = re(p);
263
263
  l = l.slice(0, s = d), r = a.slice(0);
264
264
  }
265
265
  return l;
266
266
  });
267
267
  function p(d) {
268
268
  if (o[u] = d, i) {
269
- const [g, v] = le(u);
269
+ const [g, v] = oe(u);
270
270
  return i[u] = v, t(a[u], g);
271
271
  }
272
272
  return t(a[u]);
@@ -279,16 +279,16 @@ function ln(e, t, n = {}) {
279
279
  const c = e() || [];
280
280
  return c[ve], Z(() => {
281
281
  if (c.length === 0)
282
- return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] = ne((p) => (o[0] = p, n.fallback())), i = 1), l;
282
+ return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] = re((p) => (o[0] = p, n.fallback())), i = 1), l;
283
283
  for (r[0] === Re && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
284
- a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = ne(u));
284
+ a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = re(u));
285
285
  for (; a < r.length; a++)
286
286
  o[a]();
287
287
  return i = s.length = o.length = c.length, r = c.slice(0), l = l.slice(0, i);
288
288
  });
289
289
  function u(p) {
290
290
  o[a] = p;
291
- const [d, g] = le(c[a]);
291
+ const [d, g] = oe(c[a]);
292
292
  return s[a] = g, t(d, a);
293
293
  }
294
294
  };
@@ -372,7 +372,7 @@ function sn(...e) {
372
372
  }
373
373
  return n;
374
374
  }
375
- function G(e) {
375
+ function Q(e) {
376
376
  const t = "fallback" in e && {
377
377
  fallback: () => e.fallback
378
378
  };
@@ -384,7 +384,7 @@ function an(e) {
384
384
  };
385
385
  return m(ln(() => e.each, e.children, t || void 0));
386
386
  }
387
- function fe(e) {
387
+ function G(e) {
388
388
  let t = !1;
389
389
  const n = e.keyed, r = m(() => e.when, void 0, {
390
390
  equals: (l, o) => t ? l === o : !l == !o
@@ -420,7 +420,7 @@ function cn(e) {
420
420
  return t = n || u, u ? Z(() => c(i)) : c;
421
421
  }, void 0, void 0);
422
422
  }
423
- function ue(e) {
423
+ function de(e) {
424
424
  return e;
425
425
  }
426
426
  const un = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], dn = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...un]), fn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), pn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
@@ -485,7 +485,7 @@ function mn(e, t, n) {
485
485
  const Ye = "_$DX_DELEGATE";
486
486
  function $n(e, t, n, r = {}) {
487
487
  let l;
488
- return ne((o) => {
488
+ return re((o) => {
489
489
  l = o, t === document ? e() : f(t, e(), t.firstChild ? null : void 0, n);
490
490
  }, r.owner), () => {
491
491
  l(), t.textContent = "";
@@ -551,12 +551,12 @@ function Pt(e, t, n) {
551
551
  }
552
552
  function bn(e, t = {}, n, r) {
553
553
  const l = {};
554
- return r || _(() => l.children = oe(e, t.children, l.children)), _(() => t.ref && t.ref(e)), _(() => wn(e, t, n, !0, l, !0)), l;
554
+ return r || _(() => l.children = ie(e, t.children, l.children)), _(() => t.ref && t.ref(e)), _(() => wn(e, t, n, !0, l, !0)), l;
555
555
  }
556
556
  function f(e, t, n, r) {
557
557
  if (n !== void 0 && !r && (r = []), typeof t != "function")
558
- return oe(e, t, r, n);
559
- _((l) => oe(e, t(), l, n), r);
558
+ return ie(e, t, r, n);
559
+ _((l) => ie(e, t(), l, n), r);
560
560
  }
561
561
  function wn(e, t, n, r, l = {}, o = !1) {
562
562
  t || (t = {});
@@ -568,7 +568,7 @@ function wn(e, t, n, r, l = {}, o = !1) {
568
568
  }
569
569
  for (const s in t) {
570
570
  if (s === "children") {
571
- r || oe(e, t.children);
571
+ r || ie(e, t.children);
572
572
  continue;
573
573
  }
574
574
  const i = t[s];
@@ -641,7 +641,7 @@ function Cn(e) {
641
641
  n = n._$host || n.parentNode || n.host;
642
642
  }
643
643
  }
644
- function oe(e, t, n, r, l) {
644
+ function ie(e, t, n, r, l) {
645
645
  for (U.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
646
646
  n = n();
647
647
  if (t === n)
@@ -652,25 +652,25 @@ function oe(e, t, n, r, l) {
652
652
  return n;
653
653
  if (o === "number" && (t = t.toString()), s) {
654
654
  let i = n[0];
655
- i && i.nodeType === 3 ? i.data = t : i = document.createTextNode(t), n = q(e, n, r, i);
655
+ i && i.nodeType === 3 ? i.data = t : i = document.createTextNode(t), n = ee(e, n, r, i);
656
656
  } else
657
657
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
658
658
  } else if (t == null || o === "boolean") {
659
659
  if (U.context)
660
660
  return n;
661
- n = q(e, n, r);
661
+ n = ee(e, n, r);
662
662
  } else {
663
663
  if (o === "function")
664
664
  return _(() => {
665
665
  let i = t();
666
666
  for (; typeof i == "function"; )
667
667
  i = i();
668
- n = oe(e, i, n, r);
668
+ n = ie(e, i, n, r);
669
669
  }), () => n;
670
670
  if (Array.isArray(t)) {
671
671
  const i = [], a = n && Array.isArray(n);
672
672
  if (ze(i, t, n, l))
673
- return _(() => n = oe(e, i, n, r, !0)), () => n;
673
+ return _(() => n = ie(e, i, n, r, !0)), () => n;
674
674
  if (U.context) {
675
675
  if (!i.length)
676
676
  return n;
@@ -679,18 +679,18 @@ function oe(e, t, n, r, l) {
679
679
  return n = i;
680
680
  }
681
681
  if (i.length === 0) {
682
- if (n = q(e, n, r), s)
682
+ if (n = ee(e, n, r), s)
683
683
  return n;
684
684
  } else
685
- a ? n.length === 0 ? Je(e, i, r) : mn(e, n, i) : (n && q(e), Je(e, i));
685
+ a ? n.length === 0 ? Je(e, i, r) : mn(e, n, i) : (n && ee(e), Je(e, i));
686
686
  n = i;
687
687
  } else if (t instanceof Node) {
688
688
  if (U.context && t.parentNode)
689
689
  return n = s ? [t] : t;
690
690
  if (Array.isArray(n)) {
691
691
  if (s)
692
- return n = q(e, n, r, t);
693
- q(e, n, null, t);
692
+ return n = ee(e, n, r, t);
693
+ ee(e, n, null, t);
694
694
  } else
695
695
  n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
696
696
  n = t;
@@ -725,7 +725,7 @@ function Je(e, t, n = null) {
725
725
  for (let r = 0, l = t.length; r < l; r++)
726
726
  e.insertBefore(t[r], n);
727
727
  }
728
- function q(e, t, n, r) {
728
+ function ee(e, t, n, r) {
729
729
  if (n === void 0)
730
730
  return e.textContent = "";
731
731
  const l = r || document.createTextNode("");
@@ -941,25 +941,25 @@ function Lt(e, t) {
941
941
  }
942
942
  return n;
943
943
  }
944
- function ie(e) {
944
+ function se(e) {
945
945
  let t;
946
946
  return e != null && typeof e == "object" && (e[D] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
947
947
  }
948
- function se(e, t = /* @__PURE__ */ new Set()) {
948
+ function ae(e, t = /* @__PURE__ */ new Set()) {
949
949
  let n, r, l, o;
950
950
  if (n = e != null && e[Se])
951
951
  return n;
952
- if (!ie(e) || t.has(e))
952
+ if (!se(e) || t.has(e))
953
953
  return e;
954
954
  if (Array.isArray(e)) {
955
955
  Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
956
956
  for (let s = 0, i = e.length; s < i; s++)
957
- l = e[s], (r = se(l, t)) !== l && (e[s] = r);
957
+ l = e[s], (r = ae(l, t)) !== l && (e[s] = r);
958
958
  } else {
959
959
  Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
960
960
  const s = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
961
961
  for (let a = 0, c = s.length; a < c; a++)
962
- o = s[a], !i[o].get && (l = e[o], (r = se(l, t)) !== l && (e[o] = r));
962
+ o = s[a], !i[o].get && (l = e[o], (r = ae(l, t)) !== l && (e[o] = r));
963
963
  }
964
964
  return e;
965
965
  }
@@ -986,7 +986,7 @@ function Kn(e) {
986
986
  return Ot(e), Reflect.ownKeys(e);
987
987
  }
988
988
  function jt(e) {
989
- const [t, n] = le(e, {
989
+ const [t, n] = oe(e, {
990
990
  equals: !1,
991
991
  internal: !0
992
992
  });
@@ -1008,7 +1008,7 @@ const Xn = {
1008
1008
  const s = Object.getOwnPropertyDescriptor(e, t);
1009
1009
  xt() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Be(r, t, o)());
1010
1010
  }
1011
- return ie(o) ? Lt(o) : o;
1011
+ return se(o) ? Lt(o) : o;
1012
1012
  },
1013
1013
  has(e, t) {
1014
1014
  return t === Se || t === D || t === ve || t === pe || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
@@ -1022,7 +1022,7 @@ const Xn = {
1022
1022
  ownKeys: Kn,
1023
1023
  getOwnPropertyDescriptor: Wn
1024
1024
  };
1025
- function ae(e, t, n, r = !1) {
1025
+ function ce(e, t, n, r = !1) {
1026
1026
  if (!r && e[t] === n)
1027
1027
  return;
1028
1028
  const l = e[t], o = e.length;
@@ -1034,34 +1034,34 @@ function It(e, t) {
1034
1034
  const n = Object.keys(t);
1035
1035
  for (let r = 0; r < n.length; r += 1) {
1036
1036
  const l = n[r];
1037
- ae(e, l, t[l]);
1037
+ ce(e, l, t[l]);
1038
1038
  }
1039
1039
  }
1040
1040
  function Yn(e, t) {
1041
- if (typeof t == "function" && (t = t(e)), t = se(t), Array.isArray(t)) {
1041
+ if (typeof t == "function" && (t = t(e)), t = ae(t), Array.isArray(t)) {
1042
1042
  if (e === t)
1043
1043
  return;
1044
1044
  let n = 0, r = t.length;
1045
1045
  for (; n < r; n++) {
1046
1046
  const l = t[n];
1047
- e[n] !== l && ae(e, n, l);
1047
+ e[n] !== l && ce(e, n, l);
1048
1048
  }
1049
- ae(e, "length", r);
1049
+ ce(e, "length", r);
1050
1050
  } else
1051
1051
  It(e, t);
1052
1052
  }
1053
- function de(e, t, n = []) {
1053
+ function fe(e, t, n = []) {
1054
1054
  let r, l = e;
1055
1055
  if (t.length > 1) {
1056
1056
  r = t.shift();
1057
1057
  const s = typeof r, i = Array.isArray(e);
1058
1058
  if (Array.isArray(r)) {
1059
1059
  for (let a = 0; a < r.length; a++)
1060
- de(e, [r[a]].concat(t), n);
1060
+ fe(e, [r[a]].concat(t), n);
1061
1061
  return;
1062
1062
  } else if (i && s === "function") {
1063
1063
  for (let a = 0; a < e.length; a++)
1064
- r(e[a], a) && de(e, [a].concat(t), n);
1064
+ r(e[a], a) && fe(e, [a].concat(t), n);
1065
1065
  return;
1066
1066
  } else if (i && s === "object") {
1067
1067
  const {
@@ -1070,22 +1070,22 @@ function de(e, t, n = []) {
1070
1070
  by: u = 1
1071
1071
  } = r;
1072
1072
  for (let p = a; p <= c; p += u)
1073
- de(e, [p].concat(t), n);
1073
+ fe(e, [p].concat(t), n);
1074
1074
  return;
1075
1075
  } else if (t.length > 1) {
1076
- de(e[r], t, [r].concat(n));
1076
+ fe(e[r], t, [r].concat(n));
1077
1077
  return;
1078
1078
  }
1079
1079
  l = e[r], n = [r].concat(n);
1080
1080
  }
1081
1081
  let o = t[0];
1082
- typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o = se(o), r === void 0 || ie(l) && ie(o) && !Array.isArray(o) ? It(l, o) : ae(e, r, o));
1082
+ typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o = ae(o), r === void 0 || se(l) && se(o) && !Array.isArray(o) ? It(l, o) : ce(e, r, o));
1083
1083
  }
1084
1084
  function Mt(...[e, t]) {
1085
- const n = se(e || {}), r = Array.isArray(n), l = Lt(n);
1085
+ const n = ae(e || {}), r = Array.isArray(n), l = Lt(n);
1086
1086
  function o(...s) {
1087
1087
  Jt(() => {
1088
- r && s.length === 1 ? Yn(n, s[0]) : de(n, s);
1088
+ r && s.length === 1 ? Yn(n, s[0]) : fe(n, s);
1089
1089
  });
1090
1090
  }
1091
1091
  return [l, o];
@@ -1096,18 +1096,18 @@ const ke = /* @__PURE__ */ new WeakMap(), Dt = {
1096
1096
  return e;
1097
1097
  const n = e[t];
1098
1098
  let r;
1099
- return ie(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Dt)), r) : n;
1099
+ return se(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Dt)), r) : n;
1100
1100
  },
1101
1101
  set(e, t, n) {
1102
- return ae(e, t, se(n)), !0;
1102
+ return ce(e, t, ae(n)), !0;
1103
1103
  },
1104
1104
  deleteProperty(e, t) {
1105
- return ae(e, t, void 0, !0), !0;
1105
+ return ce(e, t, void 0, !0), !0;
1106
1106
  }
1107
1107
  };
1108
1108
  function Gn(e) {
1109
1109
  return (t) => {
1110
- if (ie(t)) {
1110
+ if (se(t)) {
1111
1111
  let n;
1112
1112
  (n = ke.get(t)) || ke.set(t, n = new Proxy(t, Dt)), e(n);
1113
1113
  }
@@ -1246,7 +1246,7 @@ function Rt(e, t) {
1246
1246
  return m((n) => lr(n, typeof e == "function" ? e() : e, t));
1247
1247
  }
1248
1248
  function ge(e) {
1249
- const [t, n] = le(e);
1249
+ const [t, n] = oe(e);
1250
1250
  return {
1251
1251
  get value() {
1252
1252
  return t();
@@ -1265,7 +1265,15 @@ function ge(e) {
1265
1265
  }
1266
1266
  };
1267
1267
  }
1268
- const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y("<span></span>"), ir = /* @__PURE__ */ y('<div><div class="call"></div></div>'), sr = S`
1268
+ function or(e) {
1269
+ const t = m(e);
1270
+ return {
1271
+ get value() {
1272
+ return t();
1273
+ }
1274
+ };
1275
+ }
1276
+ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y("<span></span>"), sr = /* @__PURE__ */ y('<div><div class="call"></div></div>'), ar = S`
1269
1277
  &&& {
1270
1278
  font-size: 14px;
1271
1279
  ${L()};
@@ -1342,11 +1350,11 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1342
1350
  }
1343
1351
  }
1344
1352
  }
1345
- `, ar = (e) => {
1346
- const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l = cr(t().type, t().subType);
1353
+ `, cr = (e) => {
1354
+ const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l = ur(t().type, t().subType);
1347
1355
  return (() => {
1348
- const o = ir.cloneNode(!0), s = o.firstChild;
1349
- return C(o, sr), f(s, h(F, {
1356
+ const o = sr.cloneNode(!0), s = o.firstChild;
1357
+ return C(o, ar), f(s, h(F, {
1350
1358
  onClick: () => {
1351
1359
  Ae({
1352
1360
  selectedCall: t().id,
@@ -1356,7 +1364,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1356
1364
  class: "call-button",
1357
1365
  get children() {
1358
1366
  return [(() => {
1359
- const i = or.cloneNode(!0);
1367
+ const i = ir.cloneNode(!0);
1360
1368
  return f(i, () => l.icon), _((a) => {
1361
1369
  const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u = l.color;
1362
1370
  return c !== a._v$ && j(i, "title", a._v$ = c), u !== a._v$2 && i.style.setProperty("color", a._v$2 = u), a;
@@ -1387,12 +1395,12 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1387
1395
  });
1388
1396
  }
1389
1397
  });
1390
- })(), null), f(o, h(fe, {
1398
+ })(), null), f(o, h(G, {
1391
1399
  get when() {
1392
1400
  return r.value;
1393
1401
  },
1394
1402
  get children() {
1395
- return h(G, {
1403
+ return h(Q, {
1396
1404
  get each() {
1397
1405
  return t().subitemsWithAlias;
1398
1406
  },
@@ -1419,7 +1427,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1419
1427
  }), null), _(() => s.classList.toggle("selected", n() === t().id)), o;
1420
1428
  })();
1421
1429
  };
1422
- function cr(e, t) {
1430
+ function ur(e, t) {
1423
1431
  if (e === "ws")
1424
1432
  return {
1425
1433
  icon: t === "send" ? "S" : "R",
@@ -1440,16 +1448,16 @@ function cr(e, t) {
1440
1448
  function zt(e) {
1441
1449
  return e ? e.slice().reverse() : [];
1442
1450
  }
1443
- function ur(...e) {
1451
+ function dr(...e) {
1444
1452
  const t = [];
1445
1453
  for (const n of e)
1446
1454
  n != null && t.push(...n);
1447
1455
  return t;
1448
1456
  }
1449
- function dr(e) {
1457
+ function fr(e) {
1450
1458
  return e.filter((t) => t != null);
1451
1459
  }
1452
- function fr(e) {
1460
+ function pr(e) {
1453
1461
  return e.filter((t) => t !== !1);
1454
1462
  }
1455
1463
  function nt(e) {
@@ -1463,11 +1471,11 @@ function rt(e, t) {
1463
1471
  return t && t(n), null;
1464
1472
  }
1465
1473
  }
1466
- function pr(e, t) {
1474
+ function hr(e, t) {
1467
1475
  const n = Wt(t);
1468
- return hr(e, n);
1476
+ return gr(e, n);
1469
1477
  }
1470
- function hr(e, t) {
1478
+ function gr(e, t) {
1471
1479
  let n = 0;
1472
1480
  const r = {}, l = t.pattern.exec(e);
1473
1481
  if (!l)
@@ -1476,46 +1484,46 @@ function hr(e, t) {
1476
1484
  r[t.keys[n]] = l[++n] || null;
1477
1485
  return r;
1478
1486
  }
1479
- function re(e) {
1487
+ function le(e) {
1480
1488
  var t, n, r;
1481
1489
  if (Array.isArray(e)) {
1482
1490
  for (n = Array(t = e.length); t--; )
1483
- n[t] = (r = e[t]) && typeof r == "object" ? re(r) : r;
1491
+ n[t] = (r = e[t]) && typeof r == "object" ? le(r) : r;
1484
1492
  return n;
1485
1493
  }
1486
1494
  if (Object.prototype.toString.call(e) === "[object Object]") {
1487
1495
  n = {};
1488
1496
  for (t in e)
1489
1497
  t === "__proto__" ? Object.defineProperty(n, t, {
1490
- value: re(e[t]),
1498
+ value: le(e[t]),
1491
1499
  configurable: !0,
1492
1500
  enumerable: !0,
1493
1501
  writable: !0
1494
- }) : n[t] = (r = e[t]) && typeof r == "object" ? re(r) : r;
1502
+ }) : n[t] = (r = e[t]) && typeof r == "object" ? le(r) : r;
1495
1503
  return n;
1496
1504
  }
1497
1505
  return e;
1498
1506
  }
1499
- const [Q, gr] = Mt({
1507
+ const [J, mr] = Mt({
1500
1508
  calls: {}
1501
1509
  }), Le = ge("");
1502
1510
  let He = {
1503
1511
  callsProcessor: []
1504
1512
  };
1505
- function mr(e) {
1513
+ function $r(e) {
1506
1514
  He = {
1507
1515
  ...He,
1508
1516
  ...e
1509
1517
  };
1510
1518
  }
1511
- function Ql({
1519
+ function Jl({
1512
1520
  type: e,
1513
1521
  response: t,
1514
1522
  payload: n,
1515
1523
  event: r,
1516
1524
  startTime: l
1517
1525
  }) {
1518
- $r({
1526
+ yr({
1519
1527
  type: "ws",
1520
1528
  path: r,
1521
1529
  payload: n,
@@ -1527,7 +1535,7 @@ function Ql({
1527
1535
  response: t
1528
1536
  });
1529
1537
  }
1530
- function $r(e) {
1538
+ function yr(e) {
1531
1539
  const t = e.startTime || Date.now();
1532
1540
  return ({
1533
1541
  isError: n,
@@ -1537,7 +1545,7 @@ function $r(e) {
1537
1545
  tags: s
1538
1546
  }) => {
1539
1547
  const i = e.duration || Date.now() - t;
1540
- gr(
1548
+ mr(
1541
1549
  Gn((a) => {
1542
1550
  const c = rt(
1543
1551
  () => new URL(e.path, "http://localhost")
@@ -1549,7 +1557,7 @@ function $r(e) {
1549
1557
  if (typeof N.match == "string") {
1550
1558
  if (N.matchType && N.matchType !== e.type || N.matchSubType && e.subType && N.matchSubType.includes(e.subType))
1551
1559
  return !1;
1552
- const T = pr(c.pathname, N.match);
1560
+ const T = hr(c.pathname, N.match);
1553
1561
  return T ? (p = T, !0) : !1;
1554
1562
  } else
1555
1563
  return N.match({
@@ -1579,18 +1587,18 @@ function $r(e) {
1579
1587
  duration: i,
1580
1588
  pathParams: p,
1581
1589
  isError: n,
1582
- metadata: re(o),
1583
- response: re(l),
1590
+ metadata: le(o),
1591
+ response: le(l),
1584
1592
  path: e.path.replace(/^\//, ""),
1585
- payload: re(e.payload),
1593
+ payload: le(e.payload),
1586
1594
  searchParams: u,
1587
1595
  startTime: t,
1588
1596
  type: e.type,
1589
1597
  method: e.method,
1590
1598
  subType: e.subType,
1591
1599
  code: r,
1592
- tags: dr(
1593
- ur(e.tags, s)
1600
+ tags: fr(
1601
+ dr(e.tags, s)
1594
1602
  )
1595
1603
  }, x = rt(
1596
1604
  () => d?.payloadAlias?.(k.payload, k)
@@ -1600,29 +1608,29 @@ function $r(e) {
1600
1608
  );
1601
1609
  };
1602
1610
  }
1603
- const yr = {
1611
+ const vr = {
1604
1612
  short: 160,
1605
1613
  medium: 240,
1606
1614
  long: 360
1607
- }, vr = {
1615
+ }, br = {
1608
1616
  inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
1609
1617
  out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
1610
1618
  in: "cubic-bezier(0.4, 0.0, 1, 1)",
1611
1619
  linear: "linear"
1612
1620
  }, lt = (e) => e !== void 0 ? `${e}ms` : "";
1613
- function br(e = {}) {
1621
+ function wr(e = {}) {
1614
1622
  const { properties: t, duration: n, ease: r, delay: l } = e;
1615
1623
  return `
1616
1624
  transition: ${lt(
1617
- typeof n == "number" ? n : yr[n || "medium"]
1618
- )} ${vr[r || "inOut"]} ${lt(l)};
1625
+ typeof n == "number" ? n : vr[n || "medium"]
1626
+ )} ${br[r || "inOut"]} ${lt(l)};
1619
1627
  ${t ? `
1620
1628
  transition-property: ${t.join(", ") || ""};
1621
1629
  ` : ""}
1622
1630
  `;
1623
1631
  }
1624
1632
  const ot = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
1625
- function wr(e, t) {
1633
+ function xr(e, t) {
1626
1634
  const n = ot(String(t)).indexOf(
1627
1635
  ot(String(e))
1628
1636
  );
@@ -1631,7 +1639,7 @@ function wr(e, t) {
1631
1639
  matchedIndex: n
1632
1640
  };
1633
1641
  }
1634
- function xr(e, t, { lowerFirst: n } = {}) {
1642
+ function Cr(e, t, { lowerFirst: n } = {}) {
1635
1643
  return [...e].sort((r, l) => {
1636
1644
  const o = t(r), s = t(l);
1637
1645
  return o < s ? n ? -1 : 1 : o > s ? n ? 1 : -1 : 0;
@@ -1644,14 +1652,14 @@ function it({
1644
1652
  }) {
1645
1653
  const r = [];
1646
1654
  for (const l of e) {
1647
- const o = wr(t, n(l));
1655
+ const o = xr(t, n(l));
1648
1656
  o.matched && r.push({ item: l, matchedIndex: o.matchedIndex });
1649
1657
  }
1650
- return xr(r, (l) => l.matchedIndex, {
1658
+ return Cr(r, (l) => l.matchedIndex, {
1651
1659
  lowerFirst: !0
1652
1660
  }).map(({ item: l }) => l);
1653
1661
  }
1654
- const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type="text" placeholder="Search"></label><div></div></div>'), _r = S`
1662
+ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type="text" placeholder="Search"></label><div></div></div>'), Sr = S`
1655
1663
  &&& {
1656
1664
  ${L()};
1657
1665
  border-right: 1px solid ${$.white.alpha(0.1)};
@@ -1665,14 +1673,14 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1665
1673
  padding-bottom: 12px;
1666
1674
  }
1667
1675
  }
1668
- `, Sr = S`
1676
+ `, kr = S`
1669
1677
  &&& {
1670
1678
  ${L()};
1671
1679
  flex: 1 1;
1672
1680
  overflow-y: auto;
1673
1681
  padding-bottom: 16px;
1674
1682
  }
1675
- `, kr = S`
1683
+ `, Ar = S`
1676
1684
  &&& {
1677
1685
  ${B({
1678
1686
  gap: 8
@@ -1702,7 +1710,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1702
1710
  }
1703
1711
  }
1704
1712
  }
1705
- `, Ar = S`
1713
+ `, Nr = S`
1706
1714
  &&& {
1707
1715
  ${B({
1708
1716
  gap: 16
@@ -1713,7 +1721,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1713
1721
  > button {
1714
1722
  font-size: 14px;
1715
1723
  opacity: 0.5;
1716
- ${br()};
1724
+ ${wr()};
1717
1725
 
1718
1726
  &:hover {
1719
1727
  opacity: 1;
@@ -1725,9 +1733,9 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1725
1733
  }
1726
1734
  }
1727
1735
  }
1728
- `, V = ge("api"), Nr = () => {
1736
+ `, V = ge("api"), Tr = () => {
1729
1737
  const e = ge(""), t = Rt(() => {
1730
- const [r = "", l = ""] = e.value.split(">"), o = Object.entries(Q.calls), s = [];
1738
+ const [r = "", l = ""] = e.value.split(">"), o = Object.entries(J.calls), s = [];
1731
1739
  for (const [a, c] of o.reverse()) {
1732
1740
  const u = /* @__PURE__ */ new Set();
1733
1741
  if (!(V.value === "api" && c.type !== "fetch" && c.type !== "mutation") && !(V.value === "ws" && c.type !== "ws")) {
@@ -1755,16 +1763,16 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1755
1763
  });
1756
1764
  }, "id"), n = m(() => I.selectedCall);
1757
1765
  return (() => {
1758
- const r = Cr.cloneNode(!0), l = r.firstChild, o = l.nextSibling, s = o.firstChild, i = s.nextSibling, a = i.nextSibling, c = o.nextSibling, u = c.firstChild, p = c.nextSibling;
1759
- return C(r, _r), C(o, Ar), s.$$click = () => V.set("api"), i.$$click = () => V.set("ws"), a.$$click = () => V.set("all"), C(c, kr), f(c, h(Ee, {
1766
+ const r = _r.cloneNode(!0), l = r.firstChild, o = l.nextSibling, s = o.firstChild, i = s.nextSibling, a = i.nextSibling, c = o.nextSibling, u = c.firstChild, p = c.nextSibling;
1767
+ return C(r, Sr), C(o, Nr), s.$$click = () => V.set("api"), i.$$click = () => V.set("ws"), a.$$click = () => V.set("all"), C(c, Ar), f(c, h(Ee, {
1760
1768
  name: "search"
1761
1769
  }), u), u.$$input = (d) => {
1762
1770
  e.value = d.currentTarget.value;
1763
- }, C(p, Sr), f(p, h(G, {
1771
+ }, C(p, kr), f(p, h(Q, {
1764
1772
  get each() {
1765
1773
  return t();
1766
1774
  },
1767
- children: (d, g) => h(ar, {
1775
+ children: (d, g) => h(cr, {
1768
1776
  get index() {
1769
1777
  return g();
1770
1778
  },
@@ -1799,7 +1807,7 @@ function Ft(...e) {
1799
1807
  }
1800
1808
  return t.join(" ");
1801
1809
  }
1802
- const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /* @__PURE__ */ y("<h1></h1>"), Er = S`
1810
+ const Pr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Er = /* @__PURE__ */ y("<h1></h1>"), Lr = S`
1803
1811
  &&& {
1804
1812
  ${L()};
1805
1813
 
@@ -1834,15 +1842,15 @@ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /*
1834
1842
  }
1835
1843
  }
1836
1844
  `, M = (e) => (() => {
1837
- const t = Tr.cloneNode(!0), n = t.firstChild;
1845
+ const t = Pr.cloneNode(!0), n = t.firstChild;
1838
1846
  return f(t, (() => {
1839
1847
  const r = m(() => !!e.title);
1840
1848
  return () => r() && (() => {
1841
- const l = Pr.cloneNode(!0);
1849
+ const l = Er.cloneNode(!0);
1842
1850
  return f(l, () => e.title), l;
1843
1851
  })();
1844
- })(), n), f(n, () => e.children), _(() => C(t, Ft(Er, e.class))), t;
1845
- })(), Lr = /* @__PURE__ */ y("<div></div>"), Or = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), jr = S`
1852
+ })(), n), f(n, () => e.children), _(() => C(t, Ft(Lr, e.class))), t;
1853
+ })(), Or = /* @__PURE__ */ y("<div></div>"), jr = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), Ir = S`
1846
1854
  &&& {
1847
1855
  display: grid;
1848
1856
  grid-template-columns: auto 1fr;
@@ -1870,25 +1878,25 @@ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /*
1870
1878
  opacity: 0.7;
1871
1879
  }
1872
1880
  }
1873
- `, Ir = (e) => (() => {
1874
- const t = Lr.cloneNode(!0);
1875
- return C(t, jr), f(t, h(an, {
1881
+ `, Mr = (e) => (() => {
1882
+ const t = Or.cloneNode(!0);
1883
+ return C(t, Ir), f(t, h(an, {
1876
1884
  get each() {
1877
- return fr(e.rows);
1885
+ return pr(e.rows);
1878
1886
  },
1879
1887
  children: (n) => (() => {
1880
- const r = Or.cloneNode(!0), l = r.firstChild, o = l.nextSibling;
1888
+ const r = jr.cloneNode(!0), l = r.firstChild, o = l.nextSibling;
1881
1889
  return f(l, () => n().name), f(o, () => n().value), r;
1882
1890
  })()
1883
1891
  })), t;
1884
- })(), Mr = `
1892
+ })(), Dr = `
1885
1893
  user-select: text;
1886
1894
 
1887
1895
  *, *::before, *::after {
1888
1896
  user-select: text;
1889
1897
  }
1890
1898
  `;
1891
- function Dr(e) {
1899
+ function Rr(e) {
1892
1900
  return `
1893
1901
  display: -webkit-box;
1894
1902
  overflow: hidden;
@@ -1905,11 +1913,11 @@ function Bt(e, t) {
1905
1913
  })
1906
1914
  ).get(t)).format(e);
1907
1915
  }
1908
- const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @__PURE__ */ y('<div class="collapsed"></div>'), Fr = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Br = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), at = /* @__PURE__ */ y('<div class="delimiter"></div>'), ct = /* @__PURE__ */ y('<div class="childs"></div>'), Hr = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ut = /* @__PURE__ */ y('<div class="child"></div>'), Vr = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Ur = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), dt = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Zr = /* @__PURE__ */ y("<div></div>"), Wr = S`
1916
+ const zr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @__PURE__ */ y('<div class="collapsed"></div>'), Br = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Hr = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), at = /* @__PURE__ */ y('<div class="delimiter"></div>'), ct = /* @__PURE__ */ y('<div class="childs"></div>'), Vr = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ut = /* @__PURE__ */ y('<div class="child"></div>'), Ur = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Zr = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), dt = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Wr = /* @__PURE__ */ y("<div></div>"), Kr = S`
1909
1917
  &&& {
1910
1918
  font-family: ${R.decorative};
1911
1919
  font-size: 13px;
1912
- ${Mr};
1920
+ ${Dr};
1913
1921
  ${L({
1914
1922
  gap: 2
1915
1923
  })};
@@ -1997,7 +2005,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
1997
2005
 
1998
2006
  .value {
1999
2007
  word-wrap: break-word;
2000
- ${Dr(5)};
2008
+ ${Rr(5)};
2001
2009
  }
2002
2010
 
2003
2011
  [data-type='number'] {
@@ -2017,8 +2025,8 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2017
2025
  color: ${$.white.alpha(0.5)};
2018
2026
  }
2019
2027
  }
2020
- `, ee = 14, Ve = (e) => {
2021
- let [t, n] = le(!(e.indent > 0 && e.compact)), [r, l] = le(!e.compact);
2028
+ `, te = 14, Ve = (e) => {
2029
+ let [t, n] = oe(!(e.indent > 0 && e.compact)), [r, l] = oe(!e.compact);
2022
2030
  return m(() => {
2023
2031
  const o = e.value, s = Array.isArray(o), i = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || i && Object.keys(o).length > 0, u = c && h(F, {
2024
2032
  onClick: () => {
@@ -2038,7 +2046,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2038
2046
  }
2039
2047
  });
2040
2048
  return [a && (() => {
2041
- const p = Rr.cloneNode(!0), d = p.firstChild;
2049
+ const p = zr.cloneNode(!0), d = p.firstChild;
2042
2050
  return p.$$click = (g) => {
2043
2051
  g.shiftKey && ye(o);
2044
2052
  }, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), _((g) => {
@@ -2052,9 +2060,9 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2052
2060
  })(), m((() => {
2053
2061
  const p = m(() => !!(a && c && !t()));
2054
2062
  return () => p() ? (() => {
2055
- const d = zr.cloneNode(!0);
2063
+ const d = Fr.cloneNode(!0);
2056
2064
  return f(d, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), d;
2057
- })() : (() => s && o.length === 0 ? Fr.cloneNode(!0) : i && Object.keys(o).length === 0 ? Br.cloneNode(!0) : s ? [(() => {
2065
+ })() : (() => s && o.length === 0 ? Br.cloneNode(!0) : i && Object.keys(o).length === 0 ? Hr.cloneNode(!0) : s ? [(() => {
2058
2066
  const d = at.cloneNode(!0);
2059
2067
  return _e(d, "click", a ? void 0 : (g) => {
2060
2068
  g.shiftKey && ye(o);
@@ -2066,7 +2074,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2066
2074
  return f(g, () => {
2067
2075
  let v = o;
2068
2076
  const b = v.length;
2069
- return r() || (v = v.slice(0, ee)), [m(() => v.map((w, k) => (() => {
2077
+ return r() || (v = v.slice(0, te)), [m(() => v.map((w, k) => (() => {
2070
2078
  const x = ut.cloneNode(!0);
2071
2079
  return f(x, h(Ve, {
2072
2080
  value: w,
@@ -2079,19 +2087,19 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2079
2087
  }
2080
2088
  })), x;
2081
2089
  })())), m((() => {
2082
- const w = m(() => !r() && b > ee);
2090
+ const w = m(() => !r() && b > te);
2083
2091
  return () => w() && h(F, {
2084
2092
  onClick: () => {
2085
2093
  l(() => !0);
2086
2094
  },
2087
2095
  class: "show-all",
2088
2096
  get children() {
2089
- return ["…show all (+", b - ee, ")"];
2097
+ return ["…show all (+", b - te, ")"];
2090
2098
  }
2091
2099
  });
2092
2100
  })())];
2093
2101
  }), g;
2094
- })(), Hr.cloneNode(!0)];
2102
+ })(), Vr.cloneNode(!0)];
2095
2103
  })())] : i ? [(() => {
2096
2104
  const d = at.cloneNode(!0);
2097
2105
  return _e(d, "click", a ? void 0 : (g) => {
@@ -2107,7 +2115,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2107
2115
  return f(g, () => {
2108
2116
  let v = Object.entries(o);
2109
2117
  const b = v.length;
2110
- return r() || (v = v.slice(0, ee)), [m(() => v.map(([w, k]) => (() => {
2118
+ return r() || (v = v.slice(0, te)), [m(() => v.map(([w, k]) => (() => {
2111
2119
  const x = ut.cloneNode(!0);
2112
2120
  return f(x, h(Ve, {
2113
2121
  value: k,
@@ -2120,21 +2128,21 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2120
2128
  }
2121
2129
  })), x;
2122
2130
  })())), m((() => {
2123
- const w = m(() => !r() && b > ee);
2131
+ const w = m(() => !r() && b > te);
2124
2132
  return () => w() && h(F, {
2125
2133
  onClick: () => {
2126
2134
  l(() => !0);
2127
2135
  },
2128
2136
  class: "show-all",
2129
2137
  get children() {
2130
- return ["…show all (+", b - ee, ")"];
2138
+ return ["…show all (+", b - te, ")"];
2131
2139
  }
2132
2140
  });
2133
2141
  })())];
2134
2142
  }), g;
2135
- })(), Vr.cloneNode(!0)];
2143
+ })(), Ur.cloneNode(!0)];
2136
2144
  })())] : (() => {
2137
- const d = Ur.cloneNode(!0);
2145
+ const d = Zr.cloneNode(!0);
2138
2146
  return d.$$click = (g) => {
2139
2147
  g.shiftKey && ye(String(o));
2140
2148
  }, j(d, "data-type", typeof o), f(d, typeof o == "string" && dt.cloneNode(!0), null), f(d, () => typeof o == "number" ? Bt(o) : String(o), null), f(d, typeof o == "string" && dt.cloneNode(!0), null), d;
@@ -2142,8 +2150,8 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2142
2150
  })())];
2143
2151
  });
2144
2152
  }, W = (e) => (() => {
2145
- const t = Zr.cloneNode(!0);
2146
- return C(t, Wr), f(t, h(Ve, {
2153
+ const t = Wr.cloneNode(!0);
2154
+ return C(t, Kr), f(t, h(Ve, {
2147
2155
  get value() {
2148
2156
  return e.value;
2149
2157
  },
@@ -2157,11 +2165,11 @@ async function ye(e) {
2157
2165
  await navigator.clipboard.writeText(typeof e == "object" ? JSON.stringify(e, null, 2) : String(e)), alert("Copied to clipboard");
2158
2166
  }
2159
2167
  Pe(["click"]);
2160
- let Kr = 0;
2161
- function Xr() {
2162
- return Kr++;
2168
+ let Xr = 0;
2169
+ function Yr() {
2170
+ return Xr++;
2163
2171
  }
2164
- const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), Qr = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), Jr = /* @__PURE__ */ y("<option></option>"), qr = S`
2172
+ const Gr = /* @__PURE__ */ y("<label></label>"), Qr = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), Jr = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), qr = /* @__PURE__ */ y("<option></option>"), el = S`
2165
2173
  &&& {
2166
2174
  ${L({
2167
2175
  align: "left"
@@ -2216,32 +2224,32 @@ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><d
2216
2224
  background: ${$.white.var};
2217
2225
  }
2218
2226
  }
2219
- `, el = (e) => {
2220
- const t = `input${Xr()}`;
2227
+ `, tl = (e) => {
2228
+ const t = `input${Yr()}`;
2221
2229
  return (() => {
2222
- const n = Gr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
2223
- return f(n, h(fe, {
2230
+ const n = Qr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
2231
+ return f(n, h(G, {
2224
2232
  get when() {
2225
2233
  return e.label;
2226
2234
  },
2227
2235
  get children() {
2228
- const o = Yr.cloneNode(!0);
2236
+ const o = Gr.cloneNode(!0);
2229
2237
  return j(o, "for", t), f(o, () => e.label), o;
2230
2238
  }
2231
2239
  }), r), l.addEventListener("change", (o) => {
2232
2240
  o.currentTarget.value && e.onChange(o.currentTarget.value);
2233
2241
  }), j(l, "id", t), f(l, (() => {
2234
2242
  const o = m(() => !e.value);
2235
- return () => o() && Qr.cloneNode(!0);
2236
- })(), null), f(l, h(G, {
2243
+ return () => o() && Jr.cloneNode(!0);
2244
+ })(), null), f(l, h(Q, {
2237
2245
  get each() {
2238
2246
  return e.options;
2239
2247
  },
2240
2248
  children: (o) => (() => {
2241
- const s = Jr.cloneNode(!0);
2249
+ const s = qr.cloneNode(!0);
2242
2250
  return f(s, () => o.label), _(() => s.value = o.value), s;
2243
2251
  })()
2244
- }), null), _(() => C(n, Ft(qr, e.class))), _(() => l.value = e.value ?? ""), n;
2252
+ }), null), _(() => C(n, Ft(el, e.class))), _(() => l.value = e.value ?? ""), n;
2245
2253
  })();
2246
2254
  };
2247
2255
  function Ht(e) {
@@ -2254,10 +2262,10 @@ function ft(e, t) {
2254
2262
  typeof t == "object" && t !== null ? t : String(t)
2255
2263
  );
2256
2264
  }
2257
- function tl(e, t) {
2265
+ function nl(e, t) {
2258
2266
  return e.length > t ? `${e.slice(0, t)}...` : e;
2259
2267
  }
2260
- const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), Me = /* @__PURE__ */ y("<div></div>"), pt = /* @__PURE__ */ y("<div>No changes</div>"), ht = /* @__PURE__ */ y('<div class="line"></div>'), rl = S`
2268
+ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), Me = /* @__PURE__ */ y("<div></div>"), pt = /* @__PURE__ */ y("<div>No changes</div>"), ht = /* @__PURE__ */ y('<div class="line"></div>'), ll = S`
2261
2269
  &&& {
2262
2270
  ${L({
2263
2271
  gap: 14
@@ -2315,32 +2323,32 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2315
2323
  }
2316
2324
  }
2317
2325
  }
2318
- `, ll = () => {
2326
+ `, ol = () => {
2319
2327
  const e = m(() => {
2320
2328
  const {
2321
2329
  selectedCall: a
2322
2330
  } = I;
2323
- return a ? Q.calls[a] : Q.calls[Le.value];
2324
- }), t = m(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t()?.id), r = Rt(() => {
2331
+ return a ? J.calls[a] : J.calls[Le.value];
2332
+ }), t = or(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t.value?.id), r = Rt(() => {
2325
2333
  const a = e();
2326
2334
  return a ? zt(a.requests).map((c) => ({
2327
2335
  value: c.id,
2328
- label: `${te(c.startTime).format("HH:mm:ss")} | ${tl(Ht(c), 50)}`
2336
+ label: `${ne(c.startTime).format("HH:mm:ss")} | ${nl(Ht(c), 50)}`
2329
2337
  })).filter((c) => c.value !== n()) : [];
2330
2338
  }, "value"), l = ge(null), o = m(() => l.value ? e()?.requests.find((a) => a.id === l.value) : null), s = m(() => {
2331
2339
  if (!l.value || !n())
2332
2340
  return [];
2333
- const a = t()?.response, c = o()?.response, u = ft(c, a);
2341
+ const a = t.value?.response, c = o()?.response, u = ft(c, a);
2334
2342
  return u === "no changes" ? [] : u;
2335
2343
  }), i = m(() => {
2336
2344
  if (!l.value || !n())
2337
2345
  return [];
2338
- const a = mt(t()), c = mt(o()), u = ft(c, a);
2346
+ const a = mt(t.value), c = mt(o()), u = ft(c, a);
2339
2347
  return u === "no changes" ? [] : u;
2340
2348
  });
2341
2349
  return (() => {
2342
2350
  const a = Me.cloneNode(!0);
2343
- return C(a, rl), f(a, h(el, {
2351
+ return C(a, ll), f(a, h(tl, {
2344
2352
  get value() {
2345
2353
  return l.value;
2346
2354
  },
@@ -2351,61 +2359,75 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2351
2359
  onChange: (c) => {
2352
2360
  l.value = c;
2353
2361
  }
2354
- }), null), f(a, h(fe, {
2362
+ }), null), f(a, h(G, {
2355
2363
  get when() {
2356
2364
  return l.value;
2357
2365
  },
2358
2366
  get children() {
2359
2367
  return [(() => {
2360
- const c = nl.cloneNode(!0), u = c.firstChild, p = u.firstChild, d = p.nextSibling, g = u.nextSibling, v = g.nextSibling, b = v.firstChild, w = b.nextSibling;
2368
+ const c = rl.cloneNode(!0), u = c.firstChild, p = u.firstChild, d = p.nextSibling, g = u.nextSibling, v = g.nextSibling, b = v.firstChild, w = b.nextSibling;
2361
2369
  return f(d, () => s().filter((k) => k.added).length), f(w, () => s().filter((k) => k.removed).length), c;
2362
- })(), h(M, {
2363
- get title() {
2364
- return m(() => !!t()?.payload)() ? "Payload Diff" : t()?.searchParams ? "Search Params Diff" : "Path Params Diff";
2370
+ })(), h(G, {
2371
+ get when() {
2372
+ return t.value?.payload || t.value?.searchParams || t.value?.pathParams;
2365
2373
  },
2366
2374
  get children() {
2367
- const c = Me.cloneNode(!0);
2368
- return C(c, gt), f(c, h(G, {
2369
- get each() {
2370
- return i();
2375
+ return h(M, {
2376
+ get title() {
2377
+ return t.value?.payload ? "Payload Diff" : t.value?.searchParams ? "Search Params Diff" : t.value?.pathParams ? "Path Params Diff" : "Payload";
2371
2378
  },
2372
- get fallback() {
2373
- return pt.cloneNode(!0);
2374
- },
2375
- children: (u) => (() => {
2376
- const p = ht.cloneNode(!0);
2377
- return f(p, () => u.value), _((d) => {
2378
- const g = !!u.added, v = !!u.removed;
2379
- return g !== d._v$ && p.classList.toggle("added", d._v$ = g), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
2380
- }, {
2381
- _v$: void 0,
2382
- _v$2: void 0
2383
- }), p;
2384
- })()
2385
- })), c;
2379
+ get children() {
2380
+ const c = Me.cloneNode(!0);
2381
+ return C(c, gt), f(c, h(Q, {
2382
+ get each() {
2383
+ return i();
2384
+ },
2385
+ get fallback() {
2386
+ return pt.cloneNode(!0);
2387
+ },
2388
+ children: (u) => (() => {
2389
+ const p = ht.cloneNode(!0);
2390
+ return f(p, () => u.value), _((d) => {
2391
+ const g = !!u.added, v = !!u.removed;
2392
+ return g !== d._v$ && p.classList.toggle("added", d._v$ = g), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
2393
+ }, {
2394
+ _v$: void 0,
2395
+ _v$2: void 0
2396
+ }), p;
2397
+ })()
2398
+ })), c;
2399
+ }
2400
+ });
2386
2401
  }
2387
- }), h(M, {
2388
- title: "Response Diff",
2402
+ }), h(G, {
2403
+ get when() {
2404
+ return t.value?.response !== void 0;
2405
+ },
2389
2406
  get children() {
2390
- const c = Me.cloneNode(!0);
2391
- return C(c, gt), f(c, h(G, {
2392
- get each() {
2393
- return s();
2394
- },
2395
- get fallback() {
2396
- return pt.cloneNode(!0);
2397
- },
2398
- children: (u) => (() => {
2399
- const p = ht.cloneNode(!0);
2400
- return f(p, () => u.value), _((d) => {
2401
- const g = !!u.added, v = !!u.removed;
2402
- return g !== d._v$3 && p.classList.toggle("added", d._v$3 = g), v !== d._v$4 && p.classList.toggle("removed", d._v$4 = v), d;
2403
- }, {
2404
- _v$3: void 0,
2405
- _v$4: void 0
2406
- }), p;
2407
- })()
2408
- })), c;
2407
+ return h(M, {
2408
+ title: "Response Diff",
2409
+ get children() {
2410
+ const c = Me.cloneNode(!0);
2411
+ return C(c, gt), f(c, h(Q, {
2412
+ get each() {
2413
+ return s();
2414
+ },
2415
+ get fallback() {
2416
+ return pt.cloneNode(!0);
2417
+ },
2418
+ children: (u) => (() => {
2419
+ const p = ht.cloneNode(!0);
2420
+ return f(p, () => u.value), _((d) => {
2421
+ const g = !!u.added, v = !!u.removed;
2422
+ return g !== d._v$3 && p.classList.toggle("added", d._v$3 = g), v !== d._v$4 && p.classList.toggle("removed", d._v$4 = v), d;
2423
+ }, {
2424
+ _v$3: void 0,
2425
+ _v$4: void 0
2426
+ }), p;
2427
+ })()
2428
+ })), c;
2429
+ }
2430
+ });
2409
2431
  }
2410
2432
  })];
2411
2433
  }
@@ -2415,7 +2437,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2415
2437
  function mt(e) {
2416
2438
  return e ? e.payload || e.searchParams || e.pathParams : null;
2417
2439
  }
2418
- const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), il = /* @__PURE__ */ y('<div class="tags"></div>'), sl = /* @__PURE__ */ y('<div class="details"></div>'), al = /* @__PURE__ */ y("<span>|</span>"), cl = /* @__PURE__ */ y("<h2></h2>"), ul = /* @__PURE__ */ y('<div class="method"></div>'), dl = /* @__PURE__ */ y('<div class="code"></div>'), fl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), pl = /* @__PURE__ */ y('<div class="tag"></div>'), hl = /* @__PURE__ */ y("<span> ms</span>"), gl = /* @__PURE__ */ y("<span></span>"), ml = S`
2440
+ const $t = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), sl = /* @__PURE__ */ y('<div class="tags"></div>'), al = /* @__PURE__ */ y('<div class="details"></div>'), cl = /* @__PURE__ */ y("<span>|</span>"), ul = /* @__PURE__ */ y("<h2></h2>"), dl = /* @__PURE__ */ y('<div class="method"></div>'), fl = /* @__PURE__ */ y('<div class="code"></div>'), pl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), hl = /* @__PURE__ */ y('<div class="tag"></div>'), gl = /* @__PURE__ */ y("<span> ms</span>"), ml = /* @__PURE__ */ y("<span></span>"), $l = S`
2419
2441
  &&& {
2420
2442
  ${L()};
2421
2443
  padding-left: 10px;
@@ -2433,6 +2455,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2433
2455
  }
2434
2456
 
2435
2457
  span.type {
2458
+ text-transform: capitalize;
2436
2459
  color: ${$.secondary.var};
2437
2460
  }
2438
2461
  }
@@ -2488,7 +2511,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2488
2511
  padding-bottom: 20px;
2489
2512
  }
2490
2513
  }
2491
- `, $l = S`
2514
+ `, yl = S`
2492
2515
  &&& {
2493
2516
  ${B({
2494
2517
  gap: 20
@@ -2510,10 +2533,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2510
2533
  }
2511
2534
  }
2512
2535
  }
2513
- `, yl = () => {
2536
+ `, vl = () => {
2514
2537
  const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = m(() => {
2515
2538
  let o;
2516
- e() ? o = Q.calls[e()] : o = Q.calls[Le.value];
2539
+ e() ? o = J.calls[e()] : o = J.calls[Le.value];
2517
2540
  const s = t() && o?.requests.find((i) => i.id === t()) || o?.requests.at(-1);
2518
2541
  return s && o ? {
2519
2542
  ...s,
@@ -2536,52 +2559,52 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2536
2559
  }
2537
2560
  return (() => {
2538
2561
  const o = $t.cloneNode(!0);
2539
- return C(o, ml), f(o, h(fe, {
2562
+ return C(o, $l), f(o, h(G, {
2540
2563
  get when() {
2541
2564
  return r();
2542
2565
  },
2543
2566
  keyed: !0,
2544
2567
  children: (s) => [(() => {
2545
- const i = ol.cloneNode(!0), a = i.firstChild;
2546
- return a.nextSibling, f(a, () => s.type === "ws" ? "WS" : "API"), f(i, () => s.callName, null), f(i, (() => {
2568
+ const i = il.cloneNode(!0), a = i.firstChild;
2569
+ return a.nextSibling, f(a, () => s.type === "ws" ? `WS ${s.subType}` : "API"), f(i, () => s.callName, null), f(i, (() => {
2547
2570
  const c = m(() => !!s.alias);
2548
- return () => c() && al.cloneNode(!0);
2571
+ return () => c() && cl.cloneNode(!0);
2549
2572
  })(), null), f(i, () => s.alias, null), i;
2550
2573
  })(), m((() => {
2551
2574
  const i = m(() => s.callPath !== s.callName);
2552
2575
  return () => i() && (() => {
2553
- const a = cl.cloneNode(!0);
2576
+ const a = ul.cloneNode(!0);
2554
2577
  return f(a, () => s.callPath), a;
2555
2578
  })();
2556
2579
  })()), (() => {
2557
- const i = il.cloneNode(!0);
2580
+ const i = sl.cloneNode(!0);
2558
2581
  return f(i, (() => {
2559
2582
  const a = m(() => !!s.method);
2560
2583
  return () => a() && (() => {
2561
- const c = ul.cloneNode(!0);
2584
+ const c = dl.cloneNode(!0);
2562
2585
  return f(c, () => s.method), c;
2563
2586
  })();
2564
2587
  })(), null), f(i, (() => {
2565
2588
  const a = m(() => !!s.code);
2566
2589
  return () => a() && (() => {
2567
- const c = dl.cloneNode(!0);
2590
+ const c = fl.cloneNode(!0);
2568
2591
  return f(c, () => s.code), _(() => c.classList.toggle("error", s.code >= 400)), c;
2569
2592
  })();
2570
2593
  })(), null), f(i, (() => {
2571
2594
  const a = m(() => !!s.isError);
2572
- return () => a() && fl.cloneNode(!0);
2573
- })(), null), f(i, h(G, {
2595
+ return () => a() && pl.cloneNode(!0);
2596
+ })(), null), f(i, h(Q, {
2574
2597
  get each() {
2575
2598
  return s.tags;
2576
2599
  },
2577
2600
  children: (a) => (() => {
2578
- const c = pl.cloneNode(!0);
2601
+ const c = hl.cloneNode(!0);
2579
2602
  return f(c, a), c;
2580
2603
  })()
2581
2604
  }), null), i;
2582
2605
  })(), (() => {
2583
2606
  const i = $t.cloneNode(!0);
2584
- return C(i, $l), f(i, () => l("summary", "Summary"), null), f(i, (() => {
2607
+ return C(i, yl), f(i, () => l("summary", "Summary"), null), f(i, (() => {
2585
2608
  const a = m(() => !!s.payload);
2586
2609
  return () => a() && l("payload", "Payload");
2587
2610
  })(), null), f(i, (() => {
@@ -2589,10 +2612,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2589
2612
  return () => a() && l("urlParams", "URL Params");
2590
2613
  })(), null), f(i, () => l("response", "Response"), null), f(i, () => l("diff", "Diff"), null), i;
2591
2614
  })(), (() => {
2592
- const i = sl.cloneNode(!0);
2615
+ const i = al.cloneNode(!0);
2593
2616
  return f(i, h(cn, {
2594
2617
  get children() {
2595
- return [h(ue, {
2618
+ return [h(de, {
2596
2619
  get when() {
2597
2620
  return n() === "summary";
2598
2621
  },
@@ -2630,25 +2653,25 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2630
2653
  })), h(M, {
2631
2654
  title: "Stats",
2632
2655
  get children() {
2633
- return h(Ir, {
2656
+ return h(Mr, {
2634
2657
  get rows() {
2635
2658
  return [s.type !== "ws" && {
2636
2659
  name: "Duration",
2637
2660
  value: (() => {
2638
- const a = hl.cloneNode(!0), c = a.firstChild;
2661
+ const a = gl.cloneNode(!0), c = a.firstChild;
2639
2662
  return f(a, () => Bt(s.duration, 0), c), _(() => a.style.setProperty("color", s.duration < 500 ? $.success.var : s.duration > 1e3 ? $.error.var : void 0)), a;
2640
2663
  })()
2641
2664
  }, {
2642
2665
  name: "Start Time",
2643
2666
  value: (() => {
2644
- const a = gl.cloneNode(!0);
2645
- return f(a, () => `${te(s.startTime).format("HH:mm:ss")} (${te(s.startTime).fromNow()})`), _(() => j(a, "title", te(s.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), a;
2667
+ const a = ml.cloneNode(!0);
2668
+ return f(a, () => `${ne(s.startTime).format("HH:mm:ss")} (${ne(s.startTime).fromNow()})`), _(() => j(a, "title", ne(s.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), a;
2646
2669
  })()
2647
2670
  }];
2648
2671
  }
2649
2672
  });
2650
2673
  }
2651
- }), h(fe, {
2674
+ }), h(G, {
2652
2675
  get when() {
2653
2676
  return s.type !== "ws";
2654
2677
  },
@@ -2666,7 +2689,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2666
2689
  }
2667
2690
  })];
2668
2691
  }
2669
- }), h(ue, {
2692
+ }), h(de, {
2670
2693
  get when() {
2671
2694
  return n() === "payload";
2672
2695
  },
@@ -2682,7 +2705,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2682
2705
  }
2683
2706
  });
2684
2707
  }
2685
- }), h(ue, {
2708
+ }), h(de, {
2686
2709
  get when() {
2687
2710
  return n() === "response";
2688
2711
  },
@@ -2698,7 +2721,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2698
2721
  }
2699
2722
  });
2700
2723
  }
2701
- }), h(ue, {
2724
+ }), h(de, {
2702
2725
  get when() {
2703
2726
  return n() === "urlParams";
2704
2727
  },
@@ -2714,12 +2737,12 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2714
2737
  }
2715
2738
  });
2716
2739
  }
2717
- }), h(ue, {
2740
+ }), h(de, {
2718
2741
  get when() {
2719
2742
  return n() === "diff";
2720
2743
  },
2721
2744
  get children() {
2722
- return h(ll, {});
2745
+ return h(ol, {});
2723
2746
  }
2724
2747
  })];
2725
2748
  }
@@ -2727,7 +2750,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2727
2750
  })()]
2728
2751
  })), o;
2729
2752
  })();
2730
- }, vl = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), bl = /* @__PURE__ */ y("<div>no requests found</div>"), wl = /* @__PURE__ */ y('<span class="start-time"></span>'), xl = /* @__PURE__ */ y("<div></div>"), Cl = /* @__PURE__ */ y('<span class="separator">|</span>'), _l = /* @__PURE__ */ y('<span class="payload"></span>'), Sl = S`
2753
+ }, bl = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), wl = /* @__PURE__ */ y("<div>no requests found</div>"), xl = /* @__PURE__ */ y('<span class="start-time"></span>'), Cl = /* @__PURE__ */ y("<div></div>"), _l = /* @__PURE__ */ y('<span class="separator">|</span>'), Sl = /* @__PURE__ */ y('<span class="payload"></span>'), kl = S`
2731
2754
  &&& {
2732
2755
  ${L()};
2733
2756
  border-right: 1px solid ${$.white.alpha(0.1)};
@@ -2741,13 +2764,13 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2741
2764
  padding-bottom: 16px;
2742
2765
  }
2743
2766
  }
2744
- `, kl = S`
2767
+ `, Al = S`
2745
2768
  &&& {
2746
2769
  ${L()};
2747
2770
  flex: 1 1;
2748
2771
  overflow-y: auto;
2749
2772
  }
2750
- `, Al = S`
2773
+ `, Nl = S`
2751
2774
  &&& {
2752
2775
  font-size: 13px;
2753
2776
  ${L()};
@@ -2783,38 +2806,38 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2783
2806
  }
2784
2807
  }
2785
2808
  }
2786
- `, Nl = S`
2809
+ `, Tl = S`
2787
2810
  &&& {
2788
2811
  opacity: 0.4;
2789
2812
  font-size: 14px;
2790
2813
  padding: 12px;
2791
2814
  padding-top: 0;
2792
2815
  }
2793
- `, Tl = () => {
2816
+ `, Pl = () => {
2794
2817
  const e = m(() => {
2795
2818
  const l = I.selectedCall;
2796
- return l ? l ? Q.calls[l] : null : Q.calls[Le.value] || null;
2819
+ return l ? l ? J.calls[l] : null : J.calls[Le.value] || null;
2797
2820
  }), t = m(() => {
2798
2821
  const l = zt(e()?.requests);
2799
2822
  return l.length === 0 ? null : l;
2800
2823
  }), n = m(() => I.selectedSubitem ? t()?.filter((l) => l.alias === I.selectedSubitem) : t()), r = m(() => I.selectedRequest || n()?.[0]?.id);
2801
2824
  return (() => {
2802
- const l = vl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
2803
- return C(l, Sl), C(s, kl), f(s, h(G, {
2825
+ const l = bl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
2826
+ return C(l, kl), C(s, Al), f(s, h(Q, {
2804
2827
  get each() {
2805
2828
  return n();
2806
2829
  },
2807
2830
  get fallback() {
2808
2831
  return (() => {
2809
- const i = bl.cloneNode(!0);
2810
- return C(i, Nl), i;
2832
+ const i = wl.cloneNode(!0);
2833
+ return C(i, Tl), i;
2811
2834
  })();
2812
2835
  },
2813
2836
  children: (i) => {
2814
- const a = te(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ht(i);
2837
+ const a = ne(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ht(i);
2815
2838
  return (() => {
2816
- const d = xl.cloneNode(!0);
2817
- return C(d, Al), f(d, h(F, {
2839
+ const d = Cl.cloneNode(!0);
2840
+ return C(d, Nl), f(d, h(F, {
2818
2841
  onClick: () => {
2819
2842
  Ae("selectedRequest", i.id);
2820
2843
  },
@@ -2825,10 +2848,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2825
2848
  },
2826
2849
  get children() {
2827
2850
  return [(() => {
2828
- const g = wl.cloneNode(!0);
2851
+ const g = xl.cloneNode(!0);
2829
2852
  return j(g, "title", u), f(g, c), g;
2830
- })(), m(() => !!p && [Cl.cloneNode(!0), (() => {
2831
- const g = _l.cloneNode(!0);
2853
+ })(), m(() => !!p && [_l.cloneNode(!0), (() => {
2854
+ const g = Sl.cloneNode(!0);
2832
2855
  return j(g, "title", p), f(g, p), g;
2833
2856
  })()])];
2834
2857
  }
@@ -2837,15 +2860,15 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2837
2860
  }
2838
2861
  })), l;
2839
2862
  })();
2840
- }, Pl = /* @__PURE__ */ y("<div></div>"), El = S`
2863
+ }, El = /* @__PURE__ */ y("<div></div>"), Ll = S`
2841
2864
  &&& {
2842
2865
  display: grid;
2843
2866
  grid-template-columns: 1fr 1fr 3fr;
2844
2867
  }
2845
- `, Ll = () => (() => {
2846
- const e = Pl.cloneNode(!0);
2847
- return C(e, El), f(e, h(Nr, {}), null), f(e, h(Tl, {}), null), f(e, h(yl, {}), null), e;
2848
- })(), Ol = `
2868
+ `, Ol = () => (() => {
2869
+ const e = El.cloneNode(!0);
2870
+ return C(e, Ll), f(e, h(Tr, {}), null), f(e, h(Pl, {}), null), f(e, h(vl, {}), null), e;
2871
+ })(), jl = `
2849
2872
  font-family: ${R.primary};
2850
2873
  color: ${$.textPrimary.var};
2851
2874
 
@@ -2896,11 +2919,11 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2896
2919
  h3 {
2897
2920
  font-weight: normal;
2898
2921
  }
2899
- `, jl = `
2922
+ `, Il = `
2900
2923
  display: flex;
2901
2924
  align-items: center;
2902
2925
  justify-content: center;
2903
- `, Il = `
2926
+ `, Ml = `
2904
2927
  *,
2905
2928
  *::before,
2906
2929
  *::after {
@@ -2974,9 +2997,9 @@ button {
2974
2997
  cursor: pointer;
2975
2998
  -webkit-appearance: none;
2976
2999
  }
2977
- `, Ml = /* @__PURE__ */ y("<div></div>"), Dl = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Rl = S`
2978
- ${Il};
2979
- ${Ol};
3000
+ `, Dl = /* @__PURE__ */ y("<div></div>"), Rl = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), zl = S`
3001
+ ${Ml};
3002
+ ${jl};
2980
3003
 
2981
3004
  position: fixed;
2982
3005
  inset: 32px;
@@ -2990,7 +3013,7 @@ button {
2990
3013
  border-right: 1px solid ${$.white.alpha(0.1)};
2991
3014
 
2992
3015
  button {
2993
- ${jl};
3016
+ ${Il};
2994
3017
  width: 100%;
2995
3018
  aspect-ratio: 1 / 1;
2996
3019
  color: ${$.bgPrimary.var};
@@ -3009,28 +3032,28 @@ button {
3009
3032
  > main > * {
3010
3033
  ${We};
3011
3034
  }
3012
- `, zl = S`
3035
+ `, Fl = S`
3013
3036
  ${We};
3014
3037
  position: fixed;
3015
3038
  inset: 0;
3016
3039
  backdrop-filter: blur(5px);
3017
- `, Fl = () => [(() => {
3018
- const e = Ml.cloneNode(!0);
3019
- return _e(e, "click", Ut, !0), C(e, zl), e;
3040
+ `, Bl = () => [(() => {
3041
+ const e = Dl.cloneNode(!0);
3042
+ return _e(e, "click", Ut, !0), C(e, Fl), e;
3020
3043
  })(), (() => {
3021
- const e = Dl.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
3022
- return C(e, Rl), f(t, h(F, {
3044
+ const e = Rl.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
3045
+ return C(e, zl), f(t, h(F, {
3023
3046
  title: "API Explorer",
3024
3047
  get children() {
3025
3048
  return h(Ee, {
3026
3049
  name: "network"
3027
3050
  });
3028
3051
  }
3029
- })), f(n, h(Ll, {})), e;
3052
+ })), f(n, h(Ol, {})), e;
3030
3053
  })()];
3031
3054
  Pe(["click"]);
3032
- const Bl = () => h(Fl, {});
3033
- function Hl(e) {
3055
+ const Hl = () => h(Bl, {});
3056
+ function Vl(e) {
3034
3057
  let t = "";
3035
3058
  return e.forEach(({ family: n, weights: r, italics: l }) => {
3036
3059
  t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((o, s) => {
@@ -3041,11 +3064,11 @@ function Hl(e) {
3041
3064
  }), `https://fonts.googleapis.com/css2?${t}&display=swap`;
3042
3065
  }
3043
3066
  let yt = !1;
3044
- function Vl() {
3067
+ function Ul() {
3045
3068
  if (yt)
3046
3069
  return;
3047
3070
  yt = !0;
3048
- const e = Hl([
3071
+ const e = Vl([
3049
3072
  {
3050
3073
  family: "Work+Sans",
3051
3074
  weights: [300, "..", 700]
@@ -3055,33 +3078,33 @@ function Vl() {
3055
3078
  }
3056
3079
  let Vt = () => {
3057
3080
  }, Ue = !1;
3058
- function Ul() {
3059
- if (te.extend(kn), Ue) {
3081
+ function Zl() {
3082
+ if (ne.extend(kn), Ue) {
3060
3083
  Ut();
3061
3084
  return;
3062
3085
  }
3063
- Ue = !0, Vl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3086
+ Ue = !0, Ul(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3064
3087
  const e = document.getElementById("dev-tools-root") || document.createElement("div");
3065
- e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(Bl, {}), e);
3088
+ e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(Hl, {}), e);
3066
3089
  }
3067
3090
  function Ut() {
3068
3091
  Ue = !1, Vt();
3069
3092
  }
3070
- function Jl({
3093
+ function ql({
3071
3094
  callsProcessor: e,
3072
3095
  shortcut: t
3073
3096
  }) {
3074
3097
  Yt(window, {
3075
3098
  [t]: (n) => {
3076
3099
  const r = document.activeElement;
3077
- r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Ul());
3100
+ r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Zl());
3078
3101
  }
3079
- }), mr({
3102
+ }), $r({
3080
3103
  callsProcessor: e
3081
3104
  });
3082
3105
  }
3083
3106
  export {
3084
- $r as addCall,
3085
- Ql as addWebsocketEvent,
3086
- Jl as initializeDevTools
3107
+ yr as addCall,
3108
+ Jl as addWebsocketEvent,
3109
+ ql as initializeDevTools
3087
3110
  };