app-devtools 0.29.0 → 0.30.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/main.js +548 -520
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import ne from "dayjs";
|
|
2
|
-
import { dequal as
|
|
3
|
-
import { produce as
|
|
4
|
-
import { parse as
|
|
5
|
-
import { nanoid as
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
8
|
-
const U = {},
|
|
9
|
-
equals:
|
|
2
|
+
import { dequal as xt } from "dequal";
|
|
3
|
+
import { produce as Kt } from "immer";
|
|
4
|
+
import { parse as Jt } from "regexparam";
|
|
5
|
+
import { nanoid as Xt } from "nanoid";
|
|
6
|
+
import * as Yt from "diff";
|
|
7
|
+
import Gt from "tinykeys";
|
|
8
|
+
const U = {}, Qt = (e, t) => e === t, D = Symbol("solid-proxy"), ve = Symbol("solid-track"), be = {
|
|
9
|
+
equals: Qt
|
|
10
10
|
};
|
|
11
|
-
let
|
|
12
|
-
const q = 1, we = 2,
|
|
11
|
+
let qt = Pt;
|
|
12
|
+
const q = 1, we = 2, Ct = {
|
|
13
13
|
owned: null,
|
|
14
14
|
cleanups: null,
|
|
15
15
|
context: null,
|
|
16
16
|
owner: null
|
|
17
17
|
};
|
|
18
18
|
var P = null;
|
|
19
|
-
let J = null, N = null, E = null, X = null,
|
|
19
|
+
let J = null, N = null, E = null, X = null, Je = 0;
|
|
20
20
|
function re(e, t) {
|
|
21
|
-
const n = N, r = P, l = e.length === 0, o = l ?
|
|
21
|
+
const n = N, r = P, l = e.length === 0, o = l ? Ct : {
|
|
22
22
|
owned: null,
|
|
23
23
|
cleanups: null,
|
|
24
24
|
context: null,
|
|
25
25
|
owner: t === void 0 ? r : t
|
|
26
|
-
}, s = l ? e : () => e(() =>
|
|
26
|
+
}, s = l ? e : () => e(() => W(() => Te(o)));
|
|
27
27
|
P = o, N = null;
|
|
28
28
|
try {
|
|
29
29
|
return ue(s, !0);
|
|
@@ -38,22 +38,22 @@ function oe(e, t) {
|
|
|
38
38
|
observers: null,
|
|
39
39
|
observerSlots: null,
|
|
40
40
|
comparator: t.equals || void 0
|
|
41
|
-
}, r = (l) => (typeof l == "function" && (l = l(n.value)),
|
|
42
|
-
return [
|
|
41
|
+
}, r = (l) => (typeof l == "function" && (l = l(n.value)), Nt(n, l));
|
|
42
|
+
return [kt.bind(n), r];
|
|
43
43
|
}
|
|
44
44
|
function _(e, t, n) {
|
|
45
|
-
const r =
|
|
45
|
+
const r = At(e, t, !1, q);
|
|
46
46
|
Ae(r);
|
|
47
47
|
}
|
|
48
48
|
function m(e, t, n) {
|
|
49
49
|
n = n ? Object.assign({}, be, n) : be;
|
|
50
|
-
const r =
|
|
51
|
-
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ae(r),
|
|
50
|
+
const r = At(e, t, !0, 0);
|
|
51
|
+
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ae(r), kt.bind(r);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function en(e) {
|
|
54
54
|
return ue(e, !1);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function W(e) {
|
|
57
57
|
if (N === null)
|
|
58
58
|
return e();
|
|
59
59
|
const t = N;
|
|
@@ -64,20 +64,20 @@ function Z(e) {
|
|
|
64
64
|
N = t;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function _t(e) {
|
|
68
68
|
return P === null || (P.cleanups === null ? P.cleanups = [e] : P.cleanups.push(e)), e;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function St() {
|
|
71
71
|
return N;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const t = m(e), n = m(() =>
|
|
73
|
+
function tn(e) {
|
|
74
|
+
const t = m(e), n = m(() => ze(t()));
|
|
75
75
|
return n.toArray = () => {
|
|
76
76
|
const r = n();
|
|
77
77
|
return Array.isArray(r) ? r : r != null ? [r] : [];
|
|
78
78
|
}, n;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function kt() {
|
|
81
81
|
const e = J;
|
|
82
82
|
if (this.sources && (this.state || e))
|
|
83
83
|
if (this.state === q || e)
|
|
@@ -92,12 +92,12 @@ function St() {
|
|
|
92
92
|
}
|
|
93
93
|
return this.value;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Nt(e, t, n) {
|
|
96
96
|
let r = e.value;
|
|
97
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 = J && J.running;
|
|
100
|
-
s && J.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : X.push(o), o.observers &&
|
|
100
|
+
s && J.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : X.push(o), o.observers && Et(o)), s || (o.state = q);
|
|
101
101
|
}
|
|
102
102
|
if (E.length > 1e6)
|
|
103
103
|
throw E = [], new Error();
|
|
@@ -107,19 +107,19 @@ function Ae(e) {
|
|
|
107
107
|
if (!e.fn)
|
|
108
108
|
return;
|
|
109
109
|
Te(e);
|
|
110
|
-
const t = P, n = N, r =
|
|
111
|
-
N = P = e,
|
|
110
|
+
const t = P, n = N, r = Je;
|
|
111
|
+
N = P = e, nn(e, e.value, r), N = n, P = t;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function nn(e, t, n) {
|
|
114
114
|
let r;
|
|
115
115
|
try {
|
|
116
116
|
r = e.fn(t);
|
|
117
117
|
} catch (l) {
|
|
118
|
-
e.pure && (e.state = q, e.owned && e.owned.forEach(Te), e.owned = null),
|
|
118
|
+
e.pure && (e.state = q, e.owned && e.owned.forEach(Te), e.owned = null), Ot(l);
|
|
119
119
|
}
|
|
120
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
120
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Nt(e, r) : e.value = r, e.updatedAt = n);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function At(e, t, n, r = q, l) {
|
|
123
123
|
const o = {
|
|
124
124
|
fn: e,
|
|
125
125
|
state: r,
|
|
@@ -133,18 +133,18 @@ function Nt(e, t, n, r = q, l) {
|
|
|
133
133
|
context: null,
|
|
134
134
|
pure: n
|
|
135
135
|
};
|
|
136
|
-
return P === null || P !==
|
|
136
|
+
return P === null || P !== Ct && (P.owned ? P.owned.push(o) : P.owned = [o]), o;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Tt(e) {
|
|
139
139
|
const t = J;
|
|
140
140
|
if (e.state === 0 || t)
|
|
141
141
|
return;
|
|
142
142
|
if (e.state === we || t)
|
|
143
143
|
return xe(e);
|
|
144
|
-
if (e.suspense &&
|
|
144
|
+
if (e.suspense && W(e.suspense.inFallback))
|
|
145
145
|
return e.suspense.effects.push(e);
|
|
146
146
|
const n = [e];
|
|
147
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
|
147
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Je); )
|
|
148
148
|
(e.state || t) && n.push(e);
|
|
149
149
|
for (let r = n.length - 1; r >= 0; r--)
|
|
150
150
|
if (e = n[r], e.state === q || t)
|
|
@@ -158,37 +158,37 @@ function ue(e, t) {
|
|
|
158
158
|
if (E)
|
|
159
159
|
return e();
|
|
160
160
|
let n = !1;
|
|
161
|
-
t || (E = []), X ? n = !0 : X = [],
|
|
161
|
+
t || (E = []), X ? n = !0 : X = [], Je++;
|
|
162
162
|
try {
|
|
163
163
|
const r = e();
|
|
164
|
-
return
|
|
164
|
+
return rn(n), r;
|
|
165
165
|
} catch (r) {
|
|
166
|
-
n || (X = null), E = null,
|
|
166
|
+
n || (X = null), E = null, Ot(r);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
if (E && (
|
|
169
|
+
function rn(e) {
|
|
170
|
+
if (E && (Pt(E), E = null), e)
|
|
171
171
|
return;
|
|
172
172
|
const t = X;
|
|
173
|
-
X = null, t.length && ue(() =>
|
|
173
|
+
X = null, t.length && ue(() => qt(t), !1);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Pt(e) {
|
|
176
176
|
for (let t = 0; t < e.length; t++)
|
|
177
|
-
|
|
177
|
+
Tt(e[t]);
|
|
178
178
|
}
|
|
179
179
|
function xe(e, t) {
|
|
180
180
|
const n = J;
|
|
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 === q || n ? l !== t &&
|
|
184
|
+
l.sources && (l.state === q || n ? l !== t && Tt(l) : (l.state === we || n) && xe(l, t));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Et(e) {
|
|
188
188
|
const t = J;
|
|
189
189
|
for (let n = 0; n < e.observers.length; n += 1) {
|
|
190
190
|
const r = e.observers[n];
|
|
191
|
-
(!r.state || t) && (r.state = we, r.pure ? E.push(r) : X.push(r), r.observers &&
|
|
191
|
+
(!r.state || t) && (r.state = we, r.pure ? E.push(r) : X.push(r), r.observers && Et(r));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
function Te(e) {
|
|
@@ -213,38 +213,38 @@ function Te(e) {
|
|
|
213
213
|
}
|
|
214
214
|
e.state = 0, e.context = null;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function ln(e) {
|
|
217
217
|
return e instanceof Error || typeof e == "string" ? e : new Error("Unknown error");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
throw e =
|
|
219
|
+
function Ot(e) {
|
|
220
|
+
throw e = ln(e), e;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function ze(e) {
|
|
223
223
|
if (typeof e == "function" && !e.length)
|
|
224
|
-
return
|
|
224
|
+
return ze(e());
|
|
225
225
|
if (Array.isArray(e)) {
|
|
226
226
|
const t = [];
|
|
227
227
|
for (let n = 0; n < e.length; n++) {
|
|
228
|
-
const r =
|
|
228
|
+
const r = ze(e[n]);
|
|
229
229
|
Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
|
|
230
230
|
}
|
|
231
231
|
return t;
|
|
232
232
|
}
|
|
233
233
|
return e;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const Re = Symbol("fallback");
|
|
236
236
|
function Ce(e) {
|
|
237
237
|
for (let t = 0; t < e.length; t++)
|
|
238
238
|
e[t]();
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function on(e, t, n = {}) {
|
|
241
241
|
let r = [], l = [], o = [], s = 0, i = t.length > 1 ? [] : null;
|
|
242
|
-
return
|
|
242
|
+
return _t(() => Ce(o)), () => {
|
|
243
243
|
let a = e() || [], c, u;
|
|
244
|
-
return a[ve],
|
|
245
|
-
let d = a.length, g, v, b, w, k, x, A, T,
|
|
244
|
+
return a[ve], W(() => {
|
|
245
|
+
let d = a.length, g, v, b, w, k, x, A, T, L;
|
|
246
246
|
if (d === 0)
|
|
247
|
-
s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [
|
|
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
250
|
r[u] = a[u], l[u] = re(p);
|
|
@@ -255,9 +255,9 @@ function ln(e, t, n = {}) {
|
|
|
255
255
|
for (A = s - 1, T = d - 1; A >= x && T >= x && r[A] === a[T]; A--, T--)
|
|
256
256
|
b[T] = l[A], w[T] = o[A], i && (k[T] = i[A]);
|
|
257
257
|
for (g = /* @__PURE__ */ new Map(), v = new Array(T + 1), u = T; u >= x; u--)
|
|
258
|
-
|
|
258
|
+
L = a[u], c = g.get(L), v[u] = c === void 0 ? -1 : c, g.set(L, u);
|
|
259
259
|
for (c = x; c <= A; c++)
|
|
260
|
-
|
|
260
|
+
L = r[c], u = g.get(L), u !== void 0 && u !== -1 ? (b[u] = l[c], w[u] = o[c], i && (k[u] = i[c]), u = v[u], g.set(L, u)) : o[c]();
|
|
261
261
|
for (u = x; u < d; u++)
|
|
262
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);
|
|
@@ -273,14 +273,14 @@ function ln(e, t, n = {}) {
|
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function sn(e, t, n = {}) {
|
|
277
277
|
let r = [], l = [], o = [], s = [], i = 0, a;
|
|
278
|
-
return
|
|
278
|
+
return _t(() => Ce(o)), () => {
|
|
279
279
|
const c = e() || [];
|
|
280
|
-
return c[ve],
|
|
280
|
+
return c[ve], W(() => {
|
|
281
281
|
if (c.length === 0)
|
|
282
|
-
return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [
|
|
283
|
-
for (r[0] ===
|
|
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
|
+
for (r[0] === Re && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
|
|
284
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]();
|
|
@@ -294,12 +294,12 @@ function on(e, t, n = {}) {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
function h(e, t) {
|
|
297
|
-
return
|
|
297
|
+
return W(() => e(t || {}));
|
|
298
298
|
}
|
|
299
299
|
function me() {
|
|
300
300
|
return !0;
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const an = {
|
|
303
303
|
get(e, t, n) {
|
|
304
304
|
return t === D ? n : e.get(t);
|
|
305
305
|
},
|
|
@@ -326,7 +326,7 @@ const sn = {
|
|
|
326
326
|
function Ie(e) {
|
|
327
327
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function cn(...e) {
|
|
330
330
|
let t = !1;
|
|
331
331
|
for (let r = 0; r < e.length; r++) {
|
|
332
332
|
const l = e[r];
|
|
@@ -353,7 +353,7 @@ function an(...e) {
|
|
|
353
353
|
r.push(...Object.keys(Ie(e[l])));
|
|
354
354
|
return [...new Set(r)];
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, an);
|
|
357
357
|
const n = {};
|
|
358
358
|
for (let r = e.length - 1; r >= 0; r--)
|
|
359
359
|
if (e[r]) {
|
|
@@ -376,13 +376,13 @@ function G(e) {
|
|
|
376
376
|
const t = "fallback" in e && {
|
|
377
377
|
fallback: () => e.fallback
|
|
378
378
|
};
|
|
379
|
-
return m(
|
|
379
|
+
return m(on(() => e.each, e.children, t || void 0));
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function un(e) {
|
|
382
382
|
const t = "fallback" in e && {
|
|
383
383
|
fallback: () => e.fallback
|
|
384
384
|
};
|
|
385
|
-
return m(
|
|
385
|
+
return m(sn(() => e.each, e.children, t || void 0));
|
|
386
386
|
}
|
|
387
387
|
function Y(e) {
|
|
388
388
|
let t = !1;
|
|
@@ -393,14 +393,14 @@ function Y(e) {
|
|
|
393
393
|
const l = r();
|
|
394
394
|
if (l) {
|
|
395
395
|
const o = e.children, s = typeof o == "function" && o.length > 0;
|
|
396
|
-
return t = n || s, s ?
|
|
396
|
+
return t = n || s, s ? W(() => o(l)) : o;
|
|
397
397
|
}
|
|
398
398
|
return e.fallback;
|
|
399
399
|
}, void 0, void 0);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function dn(e) {
|
|
402
402
|
let t = !1, n = !1;
|
|
403
|
-
const r = (s, i) => s[0] === i[0] && (t ? s[1] === i[1] : !s[1] == !i[1]) && s[2] === i[2], l =
|
|
403
|
+
const r = (s, i) => s[0] === i[0] && (t ? s[1] === i[1] : !s[1] == !i[1]) && s[2] === i[2], l = tn(() => e.children), o = m(() => {
|
|
404
404
|
let s = l();
|
|
405
405
|
Array.isArray(s) || (s = [s]);
|
|
406
406
|
for (let i = 0; i < s.length; i++) {
|
|
@@ -417,23 +417,23 @@ function un(e) {
|
|
|
417
417
|
if (s < 0)
|
|
418
418
|
return e.fallback;
|
|
419
419
|
const c = a.children, u = typeof c == "function" && c.length > 0;
|
|
420
|
-
return t = n || u, u ?
|
|
420
|
+
return t = n || u, u ? W(() => c(i)) : c;
|
|
421
421
|
}, void 0, void 0);
|
|
422
422
|
}
|
|
423
423
|
function de(e) {
|
|
424
424
|
return e;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const fn = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], pn = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...fn]), hn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), gn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
427
427
|
className: "class",
|
|
428
428
|
htmlFor: "for"
|
|
429
|
-
}),
|
|
429
|
+
}), Ge = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
430
430
|
class: "className",
|
|
431
431
|
formnovalidate: "formNoValidate",
|
|
432
432
|
ismap: "isMap",
|
|
433
433
|
nomodule: "noModule",
|
|
434
434
|
playsinline: "playsInline",
|
|
435
435
|
readonly: "readOnly"
|
|
436
|
-
}),
|
|
436
|
+
}), mn = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), yn = {
|
|
437
437
|
xlink: "http://www.w3.org/1999/xlink",
|
|
438
438
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
439
439
|
};
|
|
@@ -482,8 +482,8 @@ function $n(e, t, n) {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
485
|
+
const Qe = "_$DX_DELEGATE";
|
|
486
|
+
function vn(e, t, n, r = {}) {
|
|
487
487
|
let l;
|
|
488
488
|
return re((o) => {
|
|
489
489
|
l = o, t === document ? e() : f(t, e(), t.firstChild ? null : void 0, n);
|
|
@@ -491,23 +491,23 @@ function yn(e, t, n, r = {}) {
|
|
|
491
491
|
l(), t.textContent = "";
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function $(e, t, n) {
|
|
495
495
|
const r = document.createElement("template");
|
|
496
496
|
r.innerHTML = e;
|
|
497
497
|
let l = r.content.firstChild;
|
|
498
498
|
return n && (l = l.firstChild), l;
|
|
499
499
|
}
|
|
500
500
|
function Pe(e, t = window.document) {
|
|
501
|
-
const n = t[
|
|
501
|
+
const n = t[Qe] || (t[Qe] = /* @__PURE__ */ new Set());
|
|
502
502
|
for (let r = 0, l = e.length; r < l; r++) {
|
|
503
503
|
const o = e[r];
|
|
504
|
-
n.has(o) || (n.add(o), t.addEventListener(o,
|
|
504
|
+
n.has(o) || (n.add(o), t.addEventListener(o, Sn));
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
function j(e, t, n) {
|
|
508
508
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function bn(e, t, n, r) {
|
|
511
511
|
r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r);
|
|
512
512
|
}
|
|
513
513
|
function C(e, t) {
|
|
@@ -522,16 +522,16 @@ function _e(e, t, n, r) {
|
|
|
522
522
|
} else
|
|
523
523
|
e.addEventListener(t, n);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function wn(e, t, n = {}) {
|
|
526
526
|
const r = Object.keys(t || {}), l = Object.keys(n);
|
|
527
527
|
let o, s;
|
|
528
528
|
for (o = 0, s = l.length; o < s; o++) {
|
|
529
529
|
const i = l[o];
|
|
530
|
-
!i || i === "undefined" || t[i] || (
|
|
530
|
+
!i || i === "undefined" || t[i] || (qe(e, i, !1), delete n[i]);
|
|
531
531
|
}
|
|
532
532
|
for (o = 0, s = r.length; o < s; o++) {
|
|
533
533
|
const i = r[o], a = !!t[i];
|
|
534
|
-
!i || i === "undefined" || n[i] === a || !a || (
|
|
534
|
+
!i || i === "undefined" || n[i] === a || !a || (qe(e, i, !0), n[i] = a);
|
|
535
535
|
}
|
|
536
536
|
return n;
|
|
537
537
|
}
|
|
@@ -549,22 +549,22 @@ function Lt(e, t, n) {
|
|
|
549
549
|
l = t[o], l !== n[o] && (r.setProperty(o, l), n[o] = l);
|
|
550
550
|
return n;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function xn(e, t = {}, n, r) {
|
|
553
553
|
const l = {};
|
|
554
|
-
return r || _(() => l.children = ie(e, t.children, l.children)), _(() => t.ref && t.ref(e)), _(() =>
|
|
554
|
+
return r || _(() => l.children = ie(e, t.children, l.children)), _(() => t.ref && t.ref(e)), _(() => Cn(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
558
|
return ie(e, t, r, n);
|
|
559
559
|
_((l) => ie(e, t(), l, n), r);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Cn(e, t, n, r, l = {}, o = !1) {
|
|
562
562
|
t || (t = {});
|
|
563
563
|
for (const s in l)
|
|
564
564
|
if (!(s in t)) {
|
|
565
565
|
if (s === "children")
|
|
566
566
|
continue;
|
|
567
|
-
l[s] =
|
|
567
|
+
l[s] = et(e, s, null, l[s], n, o);
|
|
568
568
|
}
|
|
569
569
|
for (const s in t) {
|
|
570
570
|
if (s === "children") {
|
|
@@ -572,23 +572,23 @@ function xn(e, t, n, r, l = {}, o = !1) {
|
|
|
572
572
|
continue;
|
|
573
573
|
}
|
|
574
574
|
const i = t[s];
|
|
575
|
-
l[s] =
|
|
575
|
+
l[s] = et(e, s, i, l[s], n, o);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function _n(e) {
|
|
579
579
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function qe(e, t, n) {
|
|
582
582
|
const r = t.trim().split(/\s+/);
|
|
583
583
|
for (let l = 0, o = r.length; l < o; l++)
|
|
584
584
|
e.classList.toggle(r[l], n);
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function et(e, t, n, r, l, o) {
|
|
587
587
|
let s, i, a;
|
|
588
588
|
if (t === "style")
|
|
589
589
|
return Lt(e, n, r);
|
|
590
590
|
if (t === "classList")
|
|
591
|
-
return
|
|
591
|
+
return wn(e, n, r);
|
|
592
592
|
if (n === r)
|
|
593
593
|
return r;
|
|
594
594
|
if (t === "ref")
|
|
@@ -600,21 +600,21 @@ function qe(e, t, n, r, l, o) {
|
|
|
600
600
|
const c = t.slice(10);
|
|
601
601
|
r && e.removeEventListener(c, r, !0), n && e.addEventListener(c, n, !0);
|
|
602
602
|
} else if (t.slice(0, 2) === "on") {
|
|
603
|
-
const c = t.slice(2).toLowerCase(), u =
|
|
603
|
+
const c = t.slice(2).toLowerCase(), u = mn.has(c);
|
|
604
604
|
if (!u && r) {
|
|
605
605
|
const p = Array.isArray(r) ? r[0] : r;
|
|
606
606
|
e.removeEventListener(c, p);
|
|
607
607
|
}
|
|
608
608
|
(u || n) && (_e(e, c, n, u), u && Pe([c]));
|
|
609
|
-
} else if ((a =
|
|
610
|
-
t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[
|
|
609
|
+
} else if ((a = hn.has(t)) || !l && (Ge[t] || (i = pn.has(t))) || (s = e.nodeName.includes("-")))
|
|
610
|
+
t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[_n(t)] = n : e[Ge[t] || t] = n;
|
|
611
611
|
else {
|
|
612
|
-
const c = l && t.indexOf(":") > -1 &&
|
|
613
|
-
c ?
|
|
612
|
+
const c = l && t.indexOf(":") > -1 && yn[t.split(":")[0]];
|
|
613
|
+
c ? bn(e, c, t, n) : j(e, gn[t] || t, n);
|
|
614
614
|
}
|
|
615
615
|
return n;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Sn(e) {
|
|
618
618
|
const t = `$$${e.type}`;
|
|
619
619
|
let n = e.composedPath && e.composedPath()[0] || e.target;
|
|
620
620
|
for (e.target !== n && Object.defineProperty(e, "target", {
|
|
@@ -669,7 +669,7 @@ function ie(e, t, n, r, l) {
|
|
|
669
669
|
}), () => n;
|
|
670
670
|
if (Array.isArray(t)) {
|
|
671
671
|
const i = [], a = n && Array.isArray(n);
|
|
672
|
-
if (
|
|
672
|
+
if (Fe(i, t, n, l))
|
|
673
673
|
return _(() => n = ie(e, i, n, r, !0)), () => n;
|
|
674
674
|
if (U.context) {
|
|
675
675
|
if (!i.length)
|
|
@@ -682,7 +682,7 @@ function ie(e, t, n, r, l) {
|
|
|
682
682
|
if (n = ee(e, n, r), s)
|
|
683
683
|
return n;
|
|
684
684
|
} else
|
|
685
|
-
a ? n.length === 0 ?
|
|
685
|
+
a ? n.length === 0 ? tt(e, i, r) : $n(e, n, i) : (n && ee(e), tt(e, i));
|
|
686
686
|
n = i;
|
|
687
687
|
} else if (t instanceof Node) {
|
|
688
688
|
if (U.context && t.parentNode)
|
|
@@ -698,7 +698,7 @@ function ie(e, t, n, r, l) {
|
|
|
698
698
|
}
|
|
699
699
|
return n;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Fe(e, t, n, r) {
|
|
702
702
|
let l = !1;
|
|
703
703
|
for (let o = 0, s = t.length; o < s; o++) {
|
|
704
704
|
let i = t[o], a = n && n[o];
|
|
@@ -706,12 +706,12 @@ function Re(e, t, n, r) {
|
|
|
706
706
|
e.push(i);
|
|
707
707
|
else if (!(i == null || i === !0 || i === !1))
|
|
708
708
|
if (Array.isArray(i))
|
|
709
|
-
l =
|
|
709
|
+
l = Fe(e, i, a) || l;
|
|
710
710
|
else if (typeof i == "function")
|
|
711
711
|
if (r) {
|
|
712
712
|
for (; typeof i == "function"; )
|
|
713
713
|
i = i();
|
|
714
|
-
l =
|
|
714
|
+
l = Fe(e, Array.isArray(i) ? i : [i], Array.isArray(a) ? a : [a]) || l;
|
|
715
715
|
} else
|
|
716
716
|
e.push(i), l = !0;
|
|
717
717
|
else {
|
|
@@ -721,7 +721,7 @@ function Re(e, t, n, r) {
|
|
|
721
721
|
}
|
|
722
722
|
return l;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function tt(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
|
}
|
|
@@ -743,18 +743,18 @@ function ee(e, t, n, r) {
|
|
|
743
743
|
e.insertBefore(l, n);
|
|
744
744
|
return [l];
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = {}, Nn = {
|
|
747
747
|
get exports() {
|
|
748
|
-
return
|
|
748
|
+
return Be;
|
|
749
749
|
},
|
|
750
750
|
set exports(e) {
|
|
751
|
-
|
|
751
|
+
Be = e;
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
(function(e, t) {
|
|
755
755
|
(function(n, r) {
|
|
756
756
|
e.exports = r();
|
|
757
|
-
})(
|
|
757
|
+
})(kn, function() {
|
|
758
758
|
return function(n, r, l) {
|
|
759
759
|
n = n || {};
|
|
760
760
|
var o = r.prototype, s = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
@@ -763,13 +763,13 @@ var Sn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
763
763
|
}
|
|
764
764
|
l.en.relativeTime = s, o.fromToBase = function(c, u, p, d, g) {
|
|
765
765
|
for (var v, b, w, k = p.$locale().relativeTime || s, x = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], A = x.length, T = 0; T < A; T += 1) {
|
|
766
|
-
var
|
|
767
|
-
|
|
766
|
+
var L = x[T];
|
|
767
|
+
L.d && (v = d ? l(c).diff(p, L.d, !0) : p.diff(c, L.d, !0));
|
|
768
768
|
var H = (n.rounding || Math.round)(Math.abs(v));
|
|
769
|
-
if (w = v > 0, H <=
|
|
770
|
-
H <= 1 && T > 0 && (
|
|
771
|
-
var
|
|
772
|
-
g && (H = g("" + H)), b = typeof
|
|
769
|
+
if (w = v > 0, H <= L.r || !L.r) {
|
|
770
|
+
H <= 1 && T > 0 && (L = x[T - 1]);
|
|
771
|
+
var Le = k[L.l];
|
|
772
|
+
g && (H = g("" + H)), b = typeof Le == "string" ? Le.replace("%d", H) : Le(H, u, L.l, w);
|
|
773
773
|
break;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
@@ -792,17 +792,17 @@ var Sn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
792
792
|
};
|
|
793
793
|
};
|
|
794
794
|
});
|
|
795
|
-
})(
|
|
796
|
-
const
|
|
797
|
-
const t =
|
|
798
|
-
return
|
|
799
|
-
onMouseDown:
|
|
795
|
+
})(Nn);
|
|
796
|
+
const An = Be, Tn = /* @__PURE__ */ $("<button></button>"), F = (e) => (() => {
|
|
797
|
+
const t = Tn.cloneNode(!0);
|
|
798
|
+
return xn(t, cn(e, {
|
|
799
|
+
onMouseDown: Pn
|
|
800
800
|
}), !1, !1), t;
|
|
801
801
|
})();
|
|
802
|
-
function
|
|
802
|
+
function Pn(e) {
|
|
803
803
|
e.preventDefault();
|
|
804
804
|
}
|
|
805
|
-
const
|
|
805
|
+
const En = `<svg
|
|
806
806
|
xmlns="http://www.w3.org/2000/svg"
|
|
807
807
|
width="32"
|
|
808
808
|
height="32"
|
|
@@ -813,7 +813,7 @@ const Pn = `<svg
|
|
|
813
813
|
d="m24 12l-8 10l-8-10z"
|
|
814
814
|
/>
|
|
815
815
|
</svg>
|
|
816
|
-
`,
|
|
816
|
+
`, On = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
817
817
|
<path d="M21 28C22.1046 28 23 27.1046 23 26C23 24.8954 22.1046 24 21 24C19.8954 24 19 24.8954 19 26C19 27.1046 19.8954 28 21 28Z" fill="currentColor"/>
|
|
818
818
|
<path d="M21 8C22.1046 8 23 7.10457 23 6C23 4.89543 22.1046 4 21 4C19.8954 4 19 4.89543 19 6C19 7.10457 19.8954 8 21 8Z" fill="currentColor"/>
|
|
819
819
|
<path d="M4 18C5.10457 18 6 17.1046 6 16C6 14.8954 5.10457 14 4 14C2.89543 14 2 14.8954 2 16C2 17.1046 2.89543 18 4 18Z" fill="currentColor"/>
|
|
@@ -822,49 +822,49 @@ const Pn = `<svg
|
|
|
822
822
|
`, Ln = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
823
823
|
<path d="M29 27.586L21.448 20.034C23.2628 17.8553 24.1678 15.0608 23.9747 12.2319C23.7816 9.40297 22.5053 6.75739 20.4112 4.84552C18.3172 2.93364 15.5667 1.90267 12.732 1.96709C9.89717 2.0315 7.19635 3.18633 5.19134 5.19134C3.18633 7.19635 2.0315 9.89717 1.96709 12.732C1.90268 15.5667 2.93364 18.3172 4.84552 20.4112C6.75739 22.5053 9.40297 23.7816 12.2319 23.9747C15.0608 24.1678 17.8553 23.2628 20.034 21.448L27.586 29L29 27.586ZM4 13C4 11.22 4.52784 9.47991 5.51677 7.99987C6.50571 6.51983 7.91132 5.36627 9.55585 4.68508C11.2004 4.0039 13.01 3.82567 14.7558 4.17293C16.5016 4.5202 18.1053 5.37737 19.364 6.63604C20.6226 7.89471 21.4798 9.49836 21.8271 11.2442C22.1743 12.99 21.9961 14.7996 21.3149 16.4442C20.6337 18.0887 19.4802 19.4943 18.0001 20.4832C16.5201 21.4722 14.78 22 13 22C10.6139 21.9974 8.32622 21.0483 6.63896 19.361C4.95171 17.6738 4.00265 15.3861 4 13Z" fill="currentColor"/>
|
|
824
824
|
</svg>
|
|
825
|
-
`,
|
|
825
|
+
`, jn = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
826
826
|
<path d="M27.71 4.29C27.575 4.15567 27.4045 4.06267 27.2185 4.02193C27.0325 3.98118 26.8388 3.99439 26.66 4.06L4.66 12.06C4.47027 12.132 4.30692 12.26 4.19165 12.427C4.07638 12.594 4.01465 12.7921 4.01465 12.995C4.01465 13.1979 4.07638 13.396 4.19165 13.563C4.30692 13.73 4.47027 13.858 4.66 13.93L14.26 17.77L18.1 27.37C18.1721 27.5514 18.2958 27.7077 18.4557 27.8197C18.6157 27.9316 18.8049 27.9943 19 28C19.2021 27.9959 19.3982 27.9306 19.5624 27.8127C19.7266 27.6949 19.8513 27.5301 19.92 27.34L27.92 5.34C27.9881 5.16308 28.0046 4.97043 27.9674 4.78452C27.9302 4.59862 27.8409 4.42711 27.71 4.29ZM19 24.2L16.21 17.2L21 12.41L19.59 11L14.76 15.83L7.8 13L25.33 6.67L19 24.2Z" fill="currentColor"/>
|
|
827
827
|
</svg>
|
|
828
|
-
`,
|
|
828
|
+
`, In = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
829
829
|
<path d="M30 8H25.9C25.4 5.7 23.4 4 21 4C18.6 4 16.6 5.7 16.1 8H2V10H16.1C16.6 12.3 18.6 14 21 14C23.4 14 25.4 12.3 25.9 10H30V8ZM21 12C19.3 12 18 10.7 18 9C18 7.3 19.3 6 21 6C22.7 6 24 7.3 24 9C24 10.7 22.7 12 21 12ZM2 24H6.1C6.6 26.3 8.6 28 11 28C13.4 28 15.4 26.3 15.9 24H30V22H15.9C15.4 19.7 13.4 18 11 18C8.6 18 6.6 19.7 6.1 22H2V24ZM11 20C12.7 20 14 21.3 14 23C14 24.7 12.7 26 11 26C9.3 26 8 24.7 8 23C8 21.3 9.3 20 11 20Z" fill="currentColor"/>
|
|
830
830
|
</svg>
|
|
831
|
-
`,
|
|
832
|
-
"/src/assets/icons/caret-down.svg":
|
|
833
|
-
"/src/assets/icons/network.svg":
|
|
831
|
+
`, Mn = /* @__PURE__ */ Object.assign({
|
|
832
|
+
"/src/assets/icons/caret-down.svg": En,
|
|
833
|
+
"/src/assets/icons/network.svg": On,
|
|
834
834
|
"/src/assets/icons/search.svg": Ln,
|
|
835
|
-
"/src/assets/icons/send.svg":
|
|
836
|
-
"/src/assets/icons/settings.svg":
|
|
835
|
+
"/src/assets/icons/send.svg": jn,
|
|
836
|
+
"/src/assets/icons/settings.svg": In
|
|
837
837
|
});
|
|
838
|
-
function
|
|
839
|
-
return
|
|
838
|
+
function Dn(e) {
|
|
839
|
+
return Mn[`/src/assets/icons/${e}.svg`];
|
|
840
840
|
}
|
|
841
|
-
const
|
|
841
|
+
const Xe = `
|
|
842
842
|
position: absolute;
|
|
843
843
|
width: 100%;
|
|
844
844
|
height: 100%;
|
|
845
845
|
top: 0;
|
|
846
846
|
left: 0;
|
|
847
847
|
`;
|
|
848
|
-
function
|
|
848
|
+
function zn(e, t = "px") {
|
|
849
849
|
return typeof e == "string" ? String(e) : Array.isArray(e) ? e.map((n) => `${n}${t}`).join(" ") : `${e}${t}`;
|
|
850
850
|
}
|
|
851
|
-
let
|
|
851
|
+
let Rn = { data: "" }, Fn = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Rn, Bn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Hn = /\/\*[^]*?\*\/| +/g, nt = /\n+/g, K = (e, t) => {
|
|
852
852
|
let n = "", r = "", l = "";
|
|
853
853
|
for (let o in e) {
|
|
854
854
|
let s = e[o];
|
|
855
855
|
o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : r += o[1] == "f" ? K(s, o) : o + "{" + K(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? r += K(s, t ? t.replace(/([^,])+/g, (i) => o.replace(/(^:.*)|([^,])+/g, (a) => /&/.test(a) ? a.replace(/&/g, i) : i ? i + " " + a : a)) : o) : s != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), l += K.p ? K.p(o, s) : o + ":" + s + ";");
|
|
856
856
|
}
|
|
857
857
|
return n + (t && l ? t + "{" + l + "}" : l) + r;
|
|
858
|
-
}, R = {},
|
|
858
|
+
}, R = {}, jt = (e) => {
|
|
859
859
|
if (typeof e == "object") {
|
|
860
860
|
let t = "";
|
|
861
861
|
for (let n in e)
|
|
862
|
-
t += n +
|
|
862
|
+
t += n + jt(e[n]);
|
|
863
863
|
return t;
|
|
864
864
|
}
|
|
865
865
|
return e;
|
|
866
|
-
},
|
|
867
|
-
let o =
|
|
866
|
+
}, Vn = (e, t, n, r, l) => {
|
|
867
|
+
let o = jt(e), s = R[o] || (R[o] = ((a) => {
|
|
868
868
|
let c = 0, u = 11;
|
|
869
869
|
for (; c < a.length; )
|
|
870
870
|
u = 101 * u + a.charCodeAt(c++) >>> 0;
|
|
@@ -873,8 +873,8 @@ let zn = { data: "" }, Rn = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
873
873
|
if (!R[s]) {
|
|
874
874
|
let a = o !== e ? e : ((c) => {
|
|
875
875
|
let u, p, d = [{}];
|
|
876
|
-
for (; u =
|
|
877
|
-
u[4] ? d.shift() : u[3] ? (p = u[3].replace(
|
|
876
|
+
for (; u = Bn.exec(c.replace(Hn, "")); )
|
|
877
|
+
u[4] ? d.shift() : u[3] ? (p = u[3].replace(nt, " ").trim(), d.unshift(d[0][p] = d[0][p] || {})) : d[0][u[1]] = u[2].replace(nt, " ").trim();
|
|
878
878
|
return d[0];
|
|
879
879
|
})(e);
|
|
880
880
|
R[s] = K(l ? { ["@keyframes " + s]: a } : a, n ? "" : "." + s);
|
|
@@ -883,7 +883,7 @@ let zn = { data: "" }, Rn = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
883
883
|
return n && (R.g = R[s]), ((a, c, u, p) => {
|
|
884
884
|
p ? c.data = c.data.replace(p, a) : c.data.indexOf(a) === -1 && (c.data = u ? a + c.data : c.data + a);
|
|
885
885
|
})(R[s], t, r, i), s;
|
|
886
|
-
},
|
|
886
|
+
}, Un = (e, t, n) => e.reduce((r, l, o) => {
|
|
887
887
|
let s = t[o];
|
|
888
888
|
if (s && s.call) {
|
|
889
889
|
let i = s(n), a = i && i.props && i.props.className || /^go/.test(i) && i;
|
|
@@ -893,11 +893,11 @@ let zn = { data: "" }, Rn = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
893
893
|
}, "");
|
|
894
894
|
function S(e) {
|
|
895
895
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
896
|
-
return
|
|
896
|
+
return Vn(n.unshift ? n.raw ? Un(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, l) => Object.assign(r, l && l.call ? l(t.p) : l), {}) : n, Fn(t.target), t.g, t.o, t.k);
|
|
897
897
|
}
|
|
898
898
|
S.bind({ g: 1 });
|
|
899
899
|
S.bind({ k: 1 });
|
|
900
|
-
const
|
|
900
|
+
const Wn = /* @__PURE__ */ $("<div></div>"), Zn = S`
|
|
901
901
|
&&& {
|
|
902
902
|
position: relative;
|
|
903
903
|
color: currentColor;
|
|
@@ -906,17 +906,17 @@ const Un = /* @__PURE__ */ y("<div></div>"), Zn = S`
|
|
|
906
906
|
|
|
907
907
|
svg {
|
|
908
908
|
display: block;
|
|
909
|
-
${
|
|
909
|
+
${Xe};
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
`, Ee = (e) => {
|
|
913
|
-
const t =
|
|
913
|
+
const t = Dn(e.name);
|
|
914
914
|
return (() => {
|
|
915
|
-
const n =
|
|
915
|
+
const n = Wn.cloneNode(!0);
|
|
916
916
|
return n.innerHTML = t, _((r) => {
|
|
917
917
|
const l = `icon ${e.class || ""} ${Zn}`, o = {
|
|
918
918
|
color: e.color,
|
|
919
|
-
"--icon-size": e.size &&
|
|
919
|
+
"--icon-size": e.size && zn(e.size)
|
|
920
920
|
};
|
|
921
921
|
return l !== r._v$ && C(n, r._v$ = l), r._v$2 = Lt(n, o, r._v$2), r;
|
|
922
922
|
}, {
|
|
@@ -924,11 +924,11 @@ const Un = /* @__PURE__ */ y("<div></div>"), Zn = S`
|
|
|
924
924
|
_v$2: void 0
|
|
925
925
|
}), n;
|
|
926
926
|
})();
|
|
927
|
-
}, Se = Symbol("store-raw"), pe = Symbol("store-node"),
|
|
928
|
-
function
|
|
927
|
+
}, Se = Symbol("store-raw"), pe = Symbol("store-node"), Kn = Symbol("store-name");
|
|
928
|
+
function It(e, t) {
|
|
929
929
|
let n = e[D];
|
|
930
930
|
if (!n && (Object.defineProperty(e, D, {
|
|
931
|
-
value: n = new Proxy(e,
|
|
931
|
+
value: n = new Proxy(e, Yn)
|
|
932
932
|
}), !Array.isArray(e))) {
|
|
933
933
|
const r = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
934
934
|
for (let o = 0, s = r.length; o < s; o++) {
|
|
@@ -963,52 +963,52 @@ function ae(e, t = /* @__PURE__ */ new Set()) {
|
|
|
963
963
|
}
|
|
964
964
|
return e;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Ye(e) {
|
|
967
967
|
let t = e[pe];
|
|
968
968
|
return t || Object.defineProperty(e, pe, {
|
|
969
969
|
value: t = {}
|
|
970
970
|
}), t;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
return e[t] || (e[t] =
|
|
972
|
+
function He(e, t, n) {
|
|
973
|
+
return e[t] || (e[t] = Dt(n));
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Jn(e, t) {
|
|
976
976
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
977
|
-
return !n || n.get || !n.configurable || t === D || t === pe || t ===
|
|
977
|
+
return !n || n.get || !n.configurable || t === D || t === pe || t === Kn || (delete n.value, delete n.writable, n.get = () => e[D][t]), n;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
if (
|
|
981
|
-
const t =
|
|
982
|
-
(t._ || (t._ =
|
|
979
|
+
function Mt(e) {
|
|
980
|
+
if (St()) {
|
|
981
|
+
const t = Ye(e);
|
|
982
|
+
(t._ || (t._ = Dt()))();
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
985
|
+
function Xn(e) {
|
|
986
|
+
return Mt(e), Reflect.ownKeys(e);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Dt(e) {
|
|
989
989
|
const [t, n] = oe(e, {
|
|
990
990
|
equals: !1,
|
|
991
991
|
internal: !0
|
|
992
992
|
});
|
|
993
993
|
return t.$ = n, t;
|
|
994
994
|
}
|
|
995
|
-
const
|
|
995
|
+
const Yn = {
|
|
996
996
|
get(e, t, n) {
|
|
997
997
|
if (t === Se)
|
|
998
998
|
return e;
|
|
999
999
|
if (t === D)
|
|
1000
1000
|
return n;
|
|
1001
1001
|
if (t === ve)
|
|
1002
|
-
return
|
|
1003
|
-
const r =
|
|
1002
|
+
return Mt(e), n;
|
|
1003
|
+
const r = Ye(e), l = r.hasOwnProperty(t);
|
|
1004
1004
|
let o = l ? r[t]() : e[t];
|
|
1005
1005
|
if (t === pe || t === "__proto__")
|
|
1006
1006
|
return o;
|
|
1007
1007
|
if (!l) {
|
|
1008
1008
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
1009
|
-
|
|
1009
|
+
St() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = He(r, t, o)());
|
|
1010
1010
|
}
|
|
1011
|
-
return se(o) ?
|
|
1011
|
+
return se(o) ? It(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);
|
|
@@ -1019,25 +1019,25 @@ const Xn = {
|
|
|
1019
1019
|
deleteProperty() {
|
|
1020
1020
|
return !0;
|
|
1021
1021
|
},
|
|
1022
|
-
ownKeys:
|
|
1023
|
-
getOwnPropertyDescriptor:
|
|
1022
|
+
ownKeys: Xn,
|
|
1023
|
+
getOwnPropertyDescriptor: Jn
|
|
1024
1024
|
};
|
|
1025
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;
|
|
1029
1029
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
1030
|
-
let s =
|
|
1031
|
-
(i =
|
|
1030
|
+
let s = Ye(e), i;
|
|
1031
|
+
(i = He(s, t, l)) && i.$(() => n), Array.isArray(e) && e.length !== o && (i = He(s, "length", o)) && i.$(e.length), (i = s._) && i.$();
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function zt(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
1037
|
ce(e, l, t[l]);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Gn(e, t) {
|
|
1041
1041
|
if (typeof t == "function" && (t = t(e)), t = ae(t), Array.isArray(t)) {
|
|
1042
1042
|
if (e === t)
|
|
1043
1043
|
return;
|
|
@@ -1048,7 +1048,7 @@ function Yn(e, t) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
ce(e, "length", r);
|
|
1050
1050
|
} else
|
|
1051
|
-
|
|
1051
|
+
zt(e, t);
|
|
1052
1052
|
}
|
|
1053
1053
|
function fe(e, t, n = []) {
|
|
1054
1054
|
let r, l = e;
|
|
@@ -1079,24 +1079,24 @@ function fe(e, t, n = []) {
|
|
|
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 = ae(o), r === void 0 || se(l) && se(o) && !Array.isArray(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) ? zt(l, o) : ce(e, r, o));
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const n = ae(e || {}), r = Array.isArray(n), l =
|
|
1084
|
+
function Rt(...[e, t]) {
|
|
1085
|
+
const n = ae(e || {}), r = Array.isArray(n), l = It(n);
|
|
1086
1086
|
function o(...s) {
|
|
1087
|
-
|
|
1088
|
-
r && s.length === 1 ?
|
|
1087
|
+
en(() => {
|
|
1088
|
+
r && s.length === 1 ? Gn(n, s[0]) : fe(n, s);
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
return [l, o];
|
|
1092
1092
|
}
|
|
1093
|
-
const ke = /* @__PURE__ */ new WeakMap(),
|
|
1093
|
+
const ke = /* @__PURE__ */ new WeakMap(), Ft = {
|
|
1094
1094
|
get(e, t) {
|
|
1095
1095
|
if (t === Se)
|
|
1096
1096
|
return e;
|
|
1097
1097
|
const n = e[t];
|
|
1098
1098
|
let r;
|
|
1099
|
-
return se(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n,
|
|
1099
|
+
return se(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Ft)), r) : n;
|
|
1100
1100
|
},
|
|
1101
1101
|
set(e, t, n) {
|
|
1102
1102
|
return ce(e, t, ae(n)), !0;
|
|
@@ -1105,16 +1105,16 @@ const ke = /* @__PURE__ */ new WeakMap(), Rt = {
|
|
|
1105
1105
|
return ce(e, t, void 0, !0), !0;
|
|
1106
1106
|
}
|
|
1107
1107
|
};
|
|
1108
|
-
function
|
|
1108
|
+
function Qn(e) {
|
|
1109
1109
|
return (t) => {
|
|
1110
1110
|
if (se(t)) {
|
|
1111
1111
|
let n;
|
|
1112
|
-
(n = ke.get(t)) || ke.set(t, n = new Proxy(t,
|
|
1112
|
+
(n = ke.get(t)) || ke.set(t, n = new Proxy(t, Ft)), e(n);
|
|
1113
1113
|
}
|
|
1114
1114
|
return t;
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
|
-
const [I, Ne] =
|
|
1117
|
+
const [I, Ne] = Rt({
|
|
1118
1118
|
selectedCall: null,
|
|
1119
1119
|
selectedRequest: null,
|
|
1120
1120
|
selectedTab: null,
|
|
@@ -1126,14 +1126,14 @@ const [I, Ne] = zt({
|
|
|
1126
1126
|
white-space: nowrap;
|
|
1127
1127
|
word-wrap: norma;
|
|
1128
1128
|
max-width: 100%;
|
|
1129
|
-
`,
|
|
1129
|
+
`, qn = {
|
|
1130
1130
|
left: "flex-start",
|
|
1131
1131
|
center: "center",
|
|
1132
1132
|
right: "flex-end",
|
|
1133
1133
|
spaceBetween: "space-between",
|
|
1134
1134
|
spaceAround: "space-around",
|
|
1135
1135
|
spaceEvenly: "space-evenly"
|
|
1136
|
-
},
|
|
1136
|
+
}, er = {
|
|
1137
1137
|
top: "flex-start",
|
|
1138
1138
|
bottom: "flex-end",
|
|
1139
1139
|
center: "center",
|
|
@@ -1146,21 +1146,21 @@ const [I, Ne] = zt({
|
|
|
1146
1146
|
display: flex;
|
|
1147
1147
|
column-gap: ${n}px;
|
|
1148
1148
|
flex-direction: row;
|
|
1149
|
-
justify-content: ${
|
|
1150
|
-
align-items: ${
|
|
1151
|
-
`,
|
|
1149
|
+
justify-content: ${qn[e]};
|
|
1150
|
+
align-items: ${er[t]};
|
|
1151
|
+
`, tr = {
|
|
1152
1152
|
top: "flex-start",
|
|
1153
1153
|
center: "center",
|
|
1154
1154
|
bottom: "flex-end",
|
|
1155
1155
|
spaceBetween: "space-between",
|
|
1156
1156
|
spaceAround: "space-around",
|
|
1157
1157
|
spaceEvenly: "space-evenly"
|
|
1158
|
-
},
|
|
1158
|
+
}, nr = {
|
|
1159
1159
|
left: "flex-start",
|
|
1160
1160
|
right: "flex-end",
|
|
1161
1161
|
center: "center",
|
|
1162
1162
|
stretch: "stretch"
|
|
1163
|
-
},
|
|
1163
|
+
}, O = ({
|
|
1164
1164
|
justify: e = "top",
|
|
1165
1165
|
align: t = "stretch",
|
|
1166
1166
|
gap: n = 0
|
|
@@ -1168,10 +1168,10 @@ const [I, Ne] = zt({
|
|
|
1168
1168
|
row-gap: ${n}px;
|
|
1169
1169
|
display: flex;
|
|
1170
1170
|
flex-direction: column;
|
|
1171
|
-
justify-content: ${
|
|
1172
|
-
align-items: ${
|
|
1171
|
+
justify-content: ${tr[e]};
|
|
1172
|
+
align-items: ${nr[t]};
|
|
1173
1173
|
`;
|
|
1174
|
-
function
|
|
1174
|
+
function rr(e) {
|
|
1175
1175
|
if (e.length < 4)
|
|
1176
1176
|
throw new Error("Invalid hex value");
|
|
1177
1177
|
return (e.replace(
|
|
@@ -1179,16 +1179,16 @@ function nr(e) {
|
|
|
1179
1179
|
(t, n, r, l) => `#${n}${n}${r}${r}${l}${l}`
|
|
1180
1180
|
).substring(1).match(/.{2}/g) || []).map((t) => parseInt(t, 16));
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function lr(e) {
|
|
1183
1183
|
return Object.entries(e);
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1186
|
-
let
|
|
1187
|
-
function
|
|
1185
|
+
const ye = document.documentElement.style;
|
|
1186
|
+
let rt = 1;
|
|
1187
|
+
function or(e) {
|
|
1188
1188
|
const t = {};
|
|
1189
|
-
for (const [n, r] of
|
|
1190
|
-
const [l, o, s] =
|
|
1191
|
-
|
|
1189
|
+
for (const [n, r] of lr(e)) {
|
|
1190
|
+
const [l, o, s] = rr(r), i = `c${rt}`;
|
|
1191
|
+
rt++, ye.setProperty(`--${i}-r`, String(l)), ye.setProperty(`--${i}-g`, String(o)), ye.setProperty(`--${i}-b`, String(s)), ye.setProperty(`--${i}`, r), t[n] = {
|
|
1192
1192
|
red: l,
|
|
1193
1193
|
green: o,
|
|
1194
1194
|
blue: s,
|
|
@@ -1215,7 +1215,7 @@ function lr(e) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
return t;
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const y = or({
|
|
1219
1219
|
bgPrimary: "#0F172A",
|
|
1220
1220
|
bgSecondary: "#1E293B",
|
|
1221
1221
|
textPrimary: "#fff",
|
|
@@ -1232,18 +1232,18 @@ const $ = lr({
|
|
|
1232
1232
|
primary: '"Work Sans", sans-serif',
|
|
1233
1233
|
decorative: '"Fira Code", monospaced'
|
|
1234
1234
|
};
|
|
1235
|
-
function
|
|
1235
|
+
function ir(e, t, n) {
|
|
1236
1236
|
if (!e)
|
|
1237
1237
|
return t;
|
|
1238
1238
|
const r = [], l = new Map(e.map((o) => [o[n], o]));
|
|
1239
1239
|
for (const o of t) {
|
|
1240
1240
|
const s = l.get(o[n]);
|
|
1241
|
-
s &&
|
|
1241
|
+
s && xt(s, o) ? r.push(s) : r.push(o);
|
|
1242
1242
|
}
|
|
1243
1243
|
return r;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return m((n) =>
|
|
1245
|
+
function Bt(e, t) {
|
|
1246
|
+
return m((n) => ir(n, typeof e == "function" ? e() : e, t));
|
|
1247
1247
|
}
|
|
1248
1248
|
function ge(e) {
|
|
1249
1249
|
const [t, n] = oe(e);
|
|
@@ -1258,14 +1258,14 @@ function ge(e) {
|
|
|
1258
1258
|
n(() => r);
|
|
1259
1259
|
},
|
|
1260
1260
|
produce(r) {
|
|
1261
|
-
n((l) =>
|
|
1261
|
+
n((l) => Kt(l, r));
|
|
1262
1262
|
},
|
|
1263
1263
|
peek() {
|
|
1264
|
-
return
|
|
1264
|
+
return W(t);
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Ve(e) {
|
|
1269
1269
|
const t = m(e);
|
|
1270
1270
|
return {
|
|
1271
1271
|
get value() {
|
|
@@ -1273,10 +1273,10 @@ function He(e) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const sr = /* @__PURE__ */ $('<div class="tag"></div>'), lt = /* @__PURE__ */ $("<span></span>"), ar = /* @__PURE__ */ $('<div><div class="call"></div></div>'), cr = S`
|
|
1277
1277
|
&&& {
|
|
1278
1278
|
font-size: 14px;
|
|
1279
|
-
${
|
|
1279
|
+
${O()};
|
|
1280
1280
|
|
|
1281
1281
|
> .call {
|
|
1282
1282
|
padding: 4px 12px;
|
|
@@ -1285,7 +1285,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1285
1285
|
|
|
1286
1286
|
&.selected {
|
|
1287
1287
|
opacity: 1;
|
|
1288
|
-
background-color: ${
|
|
1288
|
+
background-color: ${y.secondary.alpha(0.16)};
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
> .call-button {
|
|
@@ -1313,7 +1313,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1313
1313
|
padding-left: 14px;
|
|
1314
1314
|
margin-left: 16px;
|
|
1315
1315
|
padding-right: 0;
|
|
1316
|
-
border-left: 1px solid ${
|
|
1316
|
+
border-left: 1px solid ${y.white.alpha(0.1)};
|
|
1317
1317
|
${B()};
|
|
1318
1318
|
|
|
1319
1319
|
span {
|
|
@@ -1327,7 +1327,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1327
1327
|
|
|
1328
1328
|
&.selected span {
|
|
1329
1329
|
opacity: 1;
|
|
1330
|
-
background-color: ${
|
|
1330
|
+
background-color: ${y.secondary.alpha(0.16)};
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
&:first-of-type {
|
|
@@ -1336,7 +1336,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1336
1336
|
|
|
1337
1337
|
&:last-of-type {
|
|
1338
1338
|
border-radius: 0 0 0 10px;
|
|
1339
|
-
border-bottom: 1px solid ${
|
|
1339
|
+
border-bottom: 1px solid ${y.white.alpha(0.1)};
|
|
1340
1340
|
padding-bottom: 10px;
|
|
1341
1341
|
margin-bottom: 4px;
|
|
1342
1342
|
}
|
|
@@ -1350,11 +1350,11 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
`,
|
|
1354
|
-
const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l =
|
|
1353
|
+
`, ur = (e) => {
|
|
1354
|
+
const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l = dr(t().type, t().subType);
|
|
1355
1355
|
return (() => {
|
|
1356
|
-
const o =
|
|
1357
|
-
return C(o,
|
|
1356
|
+
const o = ar.cloneNode(!0), s = o.firstChild;
|
|
1357
|
+
return C(o, cr), f(s, h(F, {
|
|
1358
1358
|
onClick: () => {
|
|
1359
1359
|
Ne({
|
|
1360
1360
|
selectedCall: t().id,
|
|
@@ -1364,7 +1364,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1364
1364
|
class: "call-button",
|
|
1365
1365
|
get children() {
|
|
1366
1366
|
return [(() => {
|
|
1367
|
-
const i =
|
|
1367
|
+
const i = sr.cloneNode(!0);
|
|
1368
1368
|
return f(i, () => l.icon), _((a) => {
|
|
1369
1369
|
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u = l.color;
|
|
1370
1370
|
return c !== a._v$ && j(i, "title", a._v$ = c), u !== a._v$2 && i.style.setProperty("color", a._v$2 = u), a;
|
|
@@ -1373,7 +1373,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1373
1373
|
_v$2: void 0
|
|
1374
1374
|
}), i;
|
|
1375
1375
|
})(), (() => {
|
|
1376
|
-
const i =
|
|
1376
|
+
const i = lt.cloneNode(!0);
|
|
1377
1377
|
return f(i, () => t().name), _(() => j(i, "title", t().name)), i;
|
|
1378
1378
|
})()];
|
|
1379
1379
|
}
|
|
@@ -1418,7 +1418,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1418
1418
|
});
|
|
1419
1419
|
},
|
|
1420
1420
|
get children() {
|
|
1421
|
-
const a =
|
|
1421
|
+
const a = lt.cloneNode(!0);
|
|
1422
1422
|
return f(a, i), a;
|
|
1423
1423
|
}
|
|
1424
1424
|
})
|
|
@@ -1427,7 +1427,7 @@ const ir = /* @__PURE__ */ y('<div class="tag"></div>'), rt = /* @__PURE__ */ y(
|
|
|
1427
1427
|
}), null), _(() => s.classList.toggle("selected", n() === t().id)), o;
|
|
1428
1428
|
})();
|
|
1429
1429
|
};
|
|
1430
|
-
function
|
|
1430
|
+
function dr(e, t) {
|
|
1431
1431
|
if (e === "ws")
|
|
1432
1432
|
return {
|
|
1433
1433
|
icon: t === "send" ? "S" : "R",
|
|
@@ -1445,37 +1445,37 @@ function ur(e, t) {
|
|
|
1445
1445
|
color: r
|
|
1446
1446
|
};
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Ht(e) {
|
|
1449
1449
|
return e ? e.slice().reverse() : [];
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function fr(...e) {
|
|
1452
1452
|
const t = [];
|
|
1453
1453
|
for (const n of e)
|
|
1454
1454
|
n != null && t.push(...n);
|
|
1455
1455
|
return t;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function pr(e) {
|
|
1458
1458
|
return e.filter((t) => t != null);
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function hr(e) {
|
|
1461
1461
|
return e.filter((t) => t !== !1);
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function ot(e) {
|
|
1464
1464
|
if (e == null)
|
|
1465
1465
|
throw new Error("Value is null or undefined");
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function it(e, t) {
|
|
1468
1468
|
try {
|
|
1469
1469
|
return e();
|
|
1470
1470
|
} catch (n) {
|
|
1471
1471
|
return t && t(n), null;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
function hr(e, t) {
|
|
1475
|
-
const n = Kt(t);
|
|
1476
|
-
return gr(e, n);
|
|
1477
|
-
}
|
|
1478
1474
|
function gr(e, t) {
|
|
1475
|
+
const n = Jt(t);
|
|
1476
|
+
return mr(e, n);
|
|
1477
|
+
}
|
|
1478
|
+
function mr(e, t) {
|
|
1479
1479
|
let n = 0;
|
|
1480
1480
|
const r = {}, l = t.pattern.exec(e);
|
|
1481
1481
|
if (!l)
|
|
@@ -1504,26 +1504,26 @@ function le(e) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
return e;
|
|
1506
1506
|
}
|
|
1507
|
-
const [Q,
|
|
1507
|
+
const [Q, yr] = Rt({
|
|
1508
1508
|
calls: {}
|
|
1509
|
-
}),
|
|
1510
|
-
let
|
|
1509
|
+
}), Oe = ge("");
|
|
1510
|
+
let Ue = {
|
|
1511
1511
|
callsProcessor: []
|
|
1512
1512
|
};
|
|
1513
1513
|
function $r(e) {
|
|
1514
|
-
|
|
1515
|
-
...
|
|
1514
|
+
Ue = {
|
|
1515
|
+
...Ue,
|
|
1516
1516
|
...e
|
|
1517
1517
|
};
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function to({
|
|
1520
1520
|
type: e,
|
|
1521
1521
|
response: t,
|
|
1522
1522
|
payload: n,
|
|
1523
1523
|
event: r,
|
|
1524
1524
|
startTime: l
|
|
1525
1525
|
}) {
|
|
1526
|
-
|
|
1526
|
+
vr({
|
|
1527
1527
|
type: "ws",
|
|
1528
1528
|
path: r,
|
|
1529
1529
|
payload: n,
|
|
@@ -1535,7 +1535,7 @@ function Ql({
|
|
|
1535
1535
|
response: t
|
|
1536
1536
|
});
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function vr(e) {
|
|
1539
1539
|
const t = e.startTime || Date.now();
|
|
1540
1540
|
return ({
|
|
1541
1541
|
isError: n,
|
|
@@ -1545,19 +1545,19 @@ function yr(e) {
|
|
|
1545
1545
|
tags: s
|
|
1546
1546
|
}) => {
|
|
1547
1547
|
const i = e.duration || Date.now() - t;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
const c =
|
|
1548
|
+
yr(
|
|
1549
|
+
Qn((a) => {
|
|
1550
|
+
const c = it(
|
|
1551
1551
|
() => new URL(e.path, "http://localhost")
|
|
1552
1552
|
);
|
|
1553
|
-
|
|
1553
|
+
ot(c);
|
|
1554
1554
|
const u = c.searchParams.toString() !== "" ? Object.fromEntries(c.searchParams.entries()) : null;
|
|
1555
1555
|
let p = null;
|
|
1556
|
-
const d =
|
|
1556
|
+
const d = Ue.callsProcessor.find((A) => {
|
|
1557
1557
|
if (typeof A.match == "string") {
|
|
1558
1558
|
if (A.matchType && A.matchType !== e.type || A.matchSubType && e.subType && A.matchSubType.includes(e.subType))
|
|
1559
1559
|
return !1;
|
|
1560
|
-
const T =
|
|
1560
|
+
const T = gr(c.pathname, A.match);
|
|
1561
1561
|
return T ? (p = T, !0) : !1;
|
|
1562
1562
|
} else
|
|
1563
1563
|
return A.match({
|
|
@@ -1579,11 +1579,11 @@ function yr(e) {
|
|
|
1579
1579
|
requests: [],
|
|
1580
1580
|
type: e.type,
|
|
1581
1581
|
subType: e.subType
|
|
1582
|
-
},
|
|
1582
|
+
}, Oe.value = v);
|
|
1583
1583
|
const w = a.calls[v];
|
|
1584
|
-
|
|
1584
|
+
ot(w), w.requests.length > 100 && w.requests.shift();
|
|
1585
1585
|
const k = {
|
|
1586
|
-
id:
|
|
1586
|
+
id: Xt(),
|
|
1587
1587
|
duration: i,
|
|
1588
1588
|
pathParams: p,
|
|
1589
1589
|
isError: n,
|
|
@@ -1597,10 +1597,10 @@ function yr(e) {
|
|
|
1597
1597
|
method: e.method,
|
|
1598
1598
|
subType: e.subType,
|
|
1599
1599
|
code: r,
|
|
1600
|
-
tags:
|
|
1601
|
-
|
|
1600
|
+
tags: pr(
|
|
1601
|
+
fr(e.tags, s)
|
|
1602
1602
|
)
|
|
1603
|
-
}, x =
|
|
1603
|
+
}, x = it(
|
|
1604
1604
|
() => d?.payloadAlias?.(k.payload, k)
|
|
1605
1605
|
);
|
|
1606
1606
|
x && (k.alias = x), w.requests.push(k);
|
|
@@ -1608,79 +1608,79 @@ function yr(e) {
|
|
|
1608
1608
|
);
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
|
-
const
|
|
1611
|
+
const br = {
|
|
1612
1612
|
short: 160,
|
|
1613
1613
|
medium: 240,
|
|
1614
1614
|
long: 360
|
|
1615
|
-
},
|
|
1615
|
+
}, wr = {
|
|
1616
1616
|
inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
1617
1617
|
out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
|
|
1618
1618
|
in: "cubic-bezier(0.4, 0.0, 1, 1)",
|
|
1619
1619
|
linear: "linear"
|
|
1620
|
-
},
|
|
1621
|
-
function
|
|
1620
|
+
}, st = (e) => e !== void 0 ? `${e}ms` : "";
|
|
1621
|
+
function xr(e = {}) {
|
|
1622
1622
|
const { properties: t, duration: n, ease: r, delay: l } = e;
|
|
1623
1623
|
return `
|
|
1624
|
-
transition: ${
|
|
1625
|
-
typeof n == "number" ? n :
|
|
1626
|
-
)} ${
|
|
1624
|
+
transition: ${st(
|
|
1625
|
+
typeof n == "number" ? n : br[n || "medium"]
|
|
1626
|
+
)} ${wr[r || "inOut"]} ${st(l)};
|
|
1627
1627
|
${t ? `
|
|
1628
1628
|
transition-property: ${t.join(", ") || ""};
|
|
1629
1629
|
` : ""}
|
|
1630
1630
|
`;
|
|
1631
1631
|
}
|
|
1632
|
-
const
|
|
1633
|
-
function
|
|
1634
|
-
const n =
|
|
1635
|
-
|
|
1632
|
+
const at = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
|
|
1633
|
+
function Cr(e, t) {
|
|
1634
|
+
const n = at(String(t)).indexOf(
|
|
1635
|
+
at(String(e))
|
|
1636
1636
|
);
|
|
1637
1637
|
return {
|
|
1638
1638
|
matched: n !== -1,
|
|
1639
1639
|
matchedIndex: n
|
|
1640
1640
|
};
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function _r(e, t, { lowerFirst: n } = {}) {
|
|
1643
1643
|
return [...e].sort((r, l) => {
|
|
1644
1644
|
const o = t(r), s = t(l);
|
|
1645
1645
|
return o < s ? n ? -1 : 1 : o > s ? n ? 1 : -1 : 0;
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function ct({
|
|
1649
1649
|
items: e,
|
|
1650
1650
|
searchQuery: t,
|
|
1651
1651
|
getStringToMatch: n
|
|
1652
1652
|
}) {
|
|
1653
1653
|
const r = [];
|
|
1654
1654
|
for (const l of e) {
|
|
1655
|
-
const o =
|
|
1655
|
+
const o = Cr(t, n(l));
|
|
1656
1656
|
o.matched && r.push({ item: l, matchedIndex: o.matchedIndex });
|
|
1657
1657
|
}
|
|
1658
|
-
return
|
|
1658
|
+
return _r(r, (l) => l.matchedIndex, {
|
|
1659
1659
|
lowerFirst: !0
|
|
1660
1660
|
}).map(({ item: l }) => l);
|
|
1661
1661
|
}
|
|
1662
|
-
const
|
|
1662
|
+
const Sr = /* @__PURE__ */ $('<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>'), kr = S`
|
|
1663
1663
|
&&& {
|
|
1664
|
-
${
|
|
1665
|
-
border-right: 1px solid ${
|
|
1664
|
+
${O()};
|
|
1665
|
+
border-right: 1px solid ${y.white.alpha(0.1)};
|
|
1666
1666
|
|
|
1667
1667
|
> h1 {
|
|
1668
1668
|
font-size: 18px;
|
|
1669
1669
|
padding-left: 12px;
|
|
1670
1670
|
padding-top: 10px;
|
|
1671
1671
|
font-family: ${z.decorative};
|
|
1672
|
-
color: ${
|
|
1672
|
+
color: ${y.secondary.var};
|
|
1673
1673
|
padding-bottom: 12px;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
`,
|
|
1676
|
+
`, Nr = S`
|
|
1677
1677
|
&&& {
|
|
1678
|
-
${
|
|
1678
|
+
${O()};
|
|
1679
1679
|
flex: 1 1;
|
|
1680
1680
|
overflow-y: auto;
|
|
1681
1681
|
padding-bottom: 16px;
|
|
1682
1682
|
}
|
|
1683
|
-
`,
|
|
1683
|
+
`, Ar = S`
|
|
1684
1684
|
&&& {
|
|
1685
1685
|
${B({
|
|
1686
1686
|
gap: 8
|
|
@@ -1690,27 +1690,27 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1690
1690
|
|
|
1691
1691
|
display: grid;
|
|
1692
1692
|
grid-template-columns: 14px 1fr;
|
|
1693
|
-
background: ${
|
|
1693
|
+
background: ${y.white.alpha(0.05)};
|
|
1694
1694
|
border-radius: 4px;
|
|
1695
1695
|
--icon-size: 16px;
|
|
1696
1696
|
padding: 4px 0;
|
|
1697
1697
|
padding-left: 6px;
|
|
1698
1698
|
|
|
1699
1699
|
.icon {
|
|
1700
|
-
color: ${
|
|
1700
|
+
color: ${y.secondary.var};
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
1703
|
input {
|
|
1704
1704
|
border: none;
|
|
1705
1705
|
background: transparent;
|
|
1706
|
-
color: ${
|
|
1706
|
+
color: ${y.white.var};
|
|
1707
1707
|
|
|
1708
1708
|
&:focus {
|
|
1709
1709
|
outline: none;
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
|
-
`,
|
|
1713
|
+
`, Tr = S`
|
|
1714
1714
|
&&& {
|
|
1715
1715
|
${B({
|
|
1716
1716
|
gap: 16
|
|
@@ -1721,7 +1721,7 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1721
1721
|
> button {
|
|
1722
1722
|
font-size: 14px;
|
|
1723
1723
|
opacity: 0.5;
|
|
1724
|
-
${
|
|
1724
|
+
${xr()};
|
|
1725
1725
|
|
|
1726
1726
|
&:hover {
|
|
1727
1727
|
opacity: 1;
|
|
@@ -1729,12 +1729,12 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1729
1729
|
|
|
1730
1730
|
&.active {
|
|
1731
1731
|
opacity: 1;
|
|
1732
|
-
color: ${
|
|
1732
|
+
color: ${y.primary.var};
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
|
-
`, V = ge("api"),
|
|
1737
|
-
const e = ge(""), t =
|
|
1736
|
+
`, V = ge("api"), Pr = () => {
|
|
1737
|
+
const e = ge(""), t = Bt(() => {
|
|
1738
1738
|
const [r = "", l = ""] = e.value.split(">"), o = Object.entries(Q.calls), s = [];
|
|
1739
1739
|
for (const [a, c] of o.reverse()) {
|
|
1740
1740
|
const u = /* @__PURE__ */ new Set();
|
|
@@ -1743,7 +1743,7 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1743
1743
|
p.alias && u.add(p.alias);
|
|
1744
1744
|
s.push({
|
|
1745
1745
|
id: a,
|
|
1746
|
-
subitemsWithAlias:
|
|
1746
|
+
subitemsWithAlias: ct({
|
|
1747
1747
|
items: [...u],
|
|
1748
1748
|
searchQuery: l.trim(),
|
|
1749
1749
|
getStringToMatch(p) {
|
|
@@ -1754,7 +1754,7 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
-
return
|
|
1757
|
+
return ct({
|
|
1758
1758
|
items: s,
|
|
1759
1759
|
searchQuery: r.trim(),
|
|
1760
1760
|
getStringToMatch(a) {
|
|
@@ -1763,16 +1763,16 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1763
1763
|
});
|
|
1764
1764
|
}, "id"), n = m(() => I.selectedCall);
|
|
1765
1765
|
return (() => {
|
|
1766
|
-
const r =
|
|
1767
|
-
return C(r,
|
|
1766
|
+
const r = Sr.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, kr), C(o, Tr), s.$$click = () => V.set("api"), i.$$click = () => V.set("ws"), a.$$click = () => V.set("all"), C(c, Ar), f(c, h(Ee, {
|
|
1768
1768
|
name: "search"
|
|
1769
1769
|
}), u), u.$$input = (d) => {
|
|
1770
1770
|
e.value = d.currentTarget.value;
|
|
1771
|
-
}, C(p,
|
|
1771
|
+
}, C(p, Nr), f(p, h(G, {
|
|
1772
1772
|
get each() {
|
|
1773
1773
|
return t();
|
|
1774
1774
|
},
|
|
1775
|
-
children: (d, g) => h(
|
|
1775
|
+
children: (d, g) => h(ur, {
|
|
1776
1776
|
get index() {
|
|
1777
1777
|
return g();
|
|
1778
1778
|
},
|
|
@@ -1792,7 +1792,7 @@ const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1792
1792
|
})();
|
|
1793
1793
|
};
|
|
1794
1794
|
Pe(["click", "input"]);
|
|
1795
|
-
function
|
|
1795
|
+
function Vt(...e) {
|
|
1796
1796
|
const t = [];
|
|
1797
1797
|
for (let n = 0; n < e.length; n++) {
|
|
1798
1798
|
const r = e[n];
|
|
@@ -1807,17 +1807,17 @@ function Ht(...e) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
return t.join(" ");
|
|
1809
1809
|
}
|
|
1810
|
-
const
|
|
1810
|
+
const Er = /* @__PURE__ */ $('<div><div class="content"></div></div>'), Or = /* @__PURE__ */ $("<h1></h1>"), Lr = S`
|
|
1811
1811
|
&&& {
|
|
1812
|
-
${
|
|
1812
|
+
${O()};
|
|
1813
1813
|
|
|
1814
1814
|
> h1 {
|
|
1815
1815
|
font-size: 14px;
|
|
1816
|
-
color: ${
|
|
1816
|
+
color: ${y.secondary.var};
|
|
1817
1817
|
letter-spacing: 0.08em;
|
|
1818
1818
|
font-family: ${z.decorative};
|
|
1819
1819
|
font-weight: 300;
|
|
1820
|
-
background: ${
|
|
1820
|
+
background: ${y.bgPrimary.var};
|
|
1821
1821
|
z-index: 1;
|
|
1822
1822
|
align-self: flex-start;
|
|
1823
1823
|
position: sticky;
|
|
@@ -1833,7 +1833,7 @@ const Pr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Er = /*
|
|
|
1833
1833
|
padding-top: calc(var(--padding-top) + 10px);
|
|
1834
1834
|
padding-inline: 10px;
|
|
1835
1835
|
padding-bottom: 10px;
|
|
1836
|
-
background: ${
|
|
1836
|
+
background: ${y.white.alpha(0.05)};
|
|
1837
1837
|
border-radius: 4px;
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
@@ -1842,15 +1842,15 @@ const Pr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Er = /*
|
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
`, M = (e) => (() => {
|
|
1845
|
-
const t =
|
|
1845
|
+
const t = Er.cloneNode(!0), n = t.firstChild;
|
|
1846
1846
|
return f(t, (() => {
|
|
1847
1847
|
const r = m(() => !!e.title);
|
|
1848
1848
|
return () => r() && (() => {
|
|
1849
|
-
const l =
|
|
1849
|
+
const l = Or.cloneNode(!0);
|
|
1850
1850
|
return f(l, () => e.title), l;
|
|
1851
1851
|
})();
|
|
1852
|
-
})(), n), f(n, () => e.children), _(() => C(t,
|
|
1853
|
-
})(),
|
|
1852
|
+
})(), n), f(n, () => e.children), _(() => C(t, Vt(Lr, e.class))), t;
|
|
1853
|
+
})(), jr = /* @__PURE__ */ $("<div></div>"), Ir = /* @__PURE__ */ $('<div class="row"><div class="name"></div><div class="value"></div></div>'), Mr = S`
|
|
1854
1854
|
&&& {
|
|
1855
1855
|
display: grid;
|
|
1856
1856
|
grid-template-columns: auto 1fr;
|
|
@@ -1866,37 +1866,37 @@ const Pr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Er = /*
|
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
1868
|
.row:not(:last-child) > div {
|
|
1869
|
-
border-bottom: 1px solid ${
|
|
1869
|
+
border-bottom: 1px solid ${y.white.alpha(0.1)};
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
1872
|
.value {
|
|
1873
1873
|
padding-left: 16px;
|
|
1874
|
-
color: ${
|
|
1874
|
+
color: ${y.white.var};
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
1877
|
.name {
|
|
1878
1878
|
opacity: 0.7;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
`,
|
|
1882
|
-
const t =
|
|
1883
|
-
return C(t,
|
|
1881
|
+
`, Dr = (e) => (() => {
|
|
1882
|
+
const t = jr.cloneNode(!0);
|
|
1883
|
+
return C(t, Mr), f(t, h(un, {
|
|
1884
1884
|
get each() {
|
|
1885
|
-
return
|
|
1885
|
+
return hr(e.rows);
|
|
1886
1886
|
},
|
|
1887
1887
|
children: (n) => (() => {
|
|
1888
|
-
const r =
|
|
1888
|
+
const r = Ir.cloneNode(!0), l = r.firstChild, o = l.nextSibling;
|
|
1889
1889
|
return f(l, () => n().name), f(o, () => n().value), r;
|
|
1890
1890
|
})()
|
|
1891
1891
|
})), t;
|
|
1892
|
-
})(),
|
|
1892
|
+
})(), zr = `
|
|
1893
1893
|
user-select: text;
|
|
1894
1894
|
|
|
1895
1895
|
*, *::before, *::after {
|
|
1896
1896
|
user-select: text;
|
|
1897
1897
|
}
|
|
1898
1898
|
`;
|
|
1899
|
-
function
|
|
1899
|
+
function Rr(e) {
|
|
1900
1900
|
return `
|
|
1901
1901
|
display: -webkit-box;
|
|
1902
1902
|
overflow: hidden;
|
|
@@ -1904,17 +1904,20 @@ function zr(e) {
|
|
|
1904
1904
|
-webkit-box-orient: vertical;
|
|
1905
1905
|
`;
|
|
1906
1906
|
}
|
|
1907
|
-
const
|
|
1908
|
-
function
|
|
1907
|
+
const ut = /* @__PURE__ */ new Map();
|
|
1908
|
+
function We(e, t) {
|
|
1909
1909
|
const n = JSON.stringify(t);
|
|
1910
|
-
return (
|
|
1910
|
+
return (ut.get(n) ?? ut.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
|
|
1911
1911
|
}
|
|
1912
|
-
|
|
1912
|
+
function Fr(e) {
|
|
1913
|
+
return e !== null && typeof e == "object";
|
|
1914
|
+
}
|
|
1915
|
+
const Br = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Hr = /* @__PURE__ */ $('<div class="collapsed"></div>'), Vr = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), Ur = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), dt = /* @__PURE__ */ $('<div class="delimiter"></div>'), ft = /* @__PURE__ */ $('<div class="childs"></div>'), Wr = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), pt = /* @__PURE__ */ $('<div class="child"></div>'), Zr = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Kr = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), ht = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), Jr = /* @__PURE__ */ $("<div></div>"), Me = /* @__PURE__ */ $("<span> · id: </span>"), Xr = S`
|
|
1913
1916
|
&&& {
|
|
1914
1917
|
font-family: ${z.decorative};
|
|
1915
1918
|
font-size: 13px;
|
|
1916
|
-
${
|
|
1917
|
-
${
|
|
1919
|
+
${zr};
|
|
1920
|
+
${O({
|
|
1918
1921
|
gap: 2
|
|
1919
1922
|
})};
|
|
1920
1923
|
padding-left: 8px;
|
|
@@ -1924,7 +1927,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
1924
1927
|
width: 16px;
|
|
1925
1928
|
display: inline-block;
|
|
1926
1929
|
vertical-align: middle;
|
|
1927
|
-
color: ${
|
|
1930
|
+
color: ${y.white.alpha(0.5)};
|
|
1928
1931
|
|
|
1929
1932
|
&:not(.expanded) .icon {
|
|
1930
1933
|
transform: rotate(-90deg);
|
|
@@ -1932,18 +1935,18 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
1932
1935
|
}
|
|
1933
1936
|
|
|
1934
1937
|
.show-all {
|
|
1935
|
-
color: ${
|
|
1938
|
+
color: ${y.white.alpha(0.5)};
|
|
1936
1939
|
text-align: left;
|
|
1937
1940
|
}
|
|
1938
1941
|
|
|
1939
1942
|
.childs {
|
|
1940
|
-
${
|
|
1943
|
+
${O({
|
|
1941
1944
|
gap: 2
|
|
1942
1945
|
})};
|
|
1943
1946
|
}
|
|
1944
1947
|
|
|
1945
1948
|
.delimiter {
|
|
1946
|
-
color: ${
|
|
1949
|
+
color: ${y.white.alpha(0.5)};
|
|
1947
1950
|
margin-top: 1px;
|
|
1948
1951
|
margin-bottom: 1px;
|
|
1949
1952
|
|
|
@@ -1957,13 +1960,13 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
1957
1960
|
.childs {
|
|
1958
1961
|
padding-left: 20px;
|
|
1959
1962
|
grid-column: 1 / span 3;
|
|
1960
|
-
border-left: 1px solid ${
|
|
1963
|
+
border-left: 1px solid ${y.white.alpha(0.05)};
|
|
1961
1964
|
|
|
1962
1965
|
> .value {
|
|
1963
1966
|
&::after {
|
|
1964
1967
|
content: ',';
|
|
1965
1968
|
opacity: 0.5;
|
|
1966
|
-
color: ${
|
|
1969
|
+
color: ${y.white.var};
|
|
1967
1970
|
}
|
|
1968
1971
|
}
|
|
1969
1972
|
}
|
|
@@ -1985,12 +1988,12 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
1985
1988
|
}
|
|
1986
1989
|
|
|
1987
1990
|
&.index {
|
|
1988
|
-
color: ${
|
|
1991
|
+
color: ${y.success.alpha(0.7)};
|
|
1989
1992
|
}
|
|
1990
1993
|
|
|
1991
1994
|
&::after {
|
|
1992
1995
|
content: ':';
|
|
1993
|
-
color: ${
|
|
1996
|
+
color: ${y.secondary.alpha(0.5)};
|
|
1994
1997
|
}
|
|
1995
1998
|
}
|
|
1996
1999
|
}
|
|
@@ -2001,30 +2004,34 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2001
2004
|
|
|
2002
2005
|
.value {
|
|
2003
2006
|
word-wrap: break-word;
|
|
2004
|
-
${
|
|
2007
|
+
${Rr(5)};
|
|
2005
2008
|
}
|
|
2006
2009
|
|
|
2007
2010
|
[data-type='number'] {
|
|
2008
|
-
color: ${
|
|
2011
|
+
color: ${y.primary.var};
|
|
2009
2012
|
}
|
|
2010
2013
|
|
|
2011
2014
|
[data-type='boolean'] {
|
|
2012
|
-
color: ${
|
|
2015
|
+
color: ${y.warning.var};
|
|
2013
2016
|
}
|
|
2014
2017
|
|
|
2015
2018
|
[data-type='object'],
|
|
2016
2019
|
[data-type='undefined'] {
|
|
2017
|
-
color: ${
|
|
2020
|
+
color: ${y.white.alpha(0.6)};
|
|
2018
2021
|
}
|
|
2019
2022
|
|
|
2020
2023
|
.collapsed {
|
|
2021
|
-
color: ${
|
|
2024
|
+
color: ${y.white.alpha(0.5)};
|
|
2025
|
+
|
|
2026
|
+
> span {
|
|
2027
|
+
color: ${y.white.alpha(0.4)};
|
|
2028
|
+
}
|
|
2022
2029
|
}
|
|
2023
2030
|
}
|
|
2024
2031
|
`, te = 14, Ze = (e) => {
|
|
2025
2032
|
let [t, n] = oe(!(e.indent > 0 && e.compact)), [r, l] = oe(!e.compact);
|
|
2026
2033
|
return m(() => {
|
|
2027
|
-
const o = e.value, s = Array.isArray(o), i = !s &&
|
|
2034
|
+
const o = e.value, s = Array.isArray(o), i = !s && Fr(o), a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || i && Object.keys(o).length > 0, u = c && h(F, {
|
|
2028
2035
|
onClick: () => {
|
|
2029
2036
|
n(() => !t());
|
|
2030
2037
|
},
|
|
@@ -2042,9 +2049,9 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2042
2049
|
}
|
|
2043
2050
|
});
|
|
2044
2051
|
return [a && (() => {
|
|
2045
|
-
const p =
|
|
2052
|
+
const p = Br.cloneNode(!0), d = p.firstChild;
|
|
2046
2053
|
return p.$$click = (g) => {
|
|
2047
|
-
g.shiftKey &&
|
|
2054
|
+
g.shiftKey && $e(o);
|
|
2048
2055
|
}, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), _((g) => {
|
|
2049
2056
|
const v = `${e.key ? `${e.key}
|
|
2050
2057
|
` : ""}Shift + Click to copy value`, b = e.index !== void 0;
|
|
@@ -2056,22 +2063,22 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2056
2063
|
})(), m((() => {
|
|
2057
2064
|
const p = m(() => !!(a && c && !t()));
|
|
2058
2065
|
return () => p() ? (() => {
|
|
2059
|
-
const d =
|
|
2060
|
-
return f(d, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length}
|
|
2061
|
-
})() : (() => s && o.length === 0 ?
|
|
2062
|
-
const d =
|
|
2066
|
+
const d = Hr.cloneNode(!0);
|
|
2067
|
+
return f(d, () => s ? `[…] ${o.length} items` : [m(() => `{…} ${Object.keys(o).length} props`), m(() => Yr(o))]), d;
|
|
2068
|
+
})() : (() => s && o.length === 0 ? Vr.cloneNode(!0) : i && Object.keys(o).length === 0 ? Ur.cloneNode(!0) : s ? [(() => {
|
|
2069
|
+
const d = dt.cloneNode(!0);
|
|
2063
2070
|
return _e(d, "click", a ? void 0 : (g) => {
|
|
2064
|
-
g.shiftKey &&
|
|
2071
|
+
g.shiftKey && $e(o);
|
|
2065
2072
|
}, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, () => t() ? "[" : `[…] ${o.length} items`, null), d;
|
|
2066
2073
|
})(), m((() => {
|
|
2067
2074
|
const d = m(() => !!t());
|
|
2068
2075
|
return () => d() && [(() => {
|
|
2069
|
-
const g =
|
|
2076
|
+
const g = ft.cloneNode(!0);
|
|
2070
2077
|
return f(g, () => {
|
|
2071
2078
|
let v = o;
|
|
2072
2079
|
const b = v.length;
|
|
2073
2080
|
return r() || (v = v.slice(0, te)), [m(() => v.map((w, k) => (() => {
|
|
2074
|
-
const x =
|
|
2081
|
+
const x = pt.cloneNode(!0);
|
|
2075
2082
|
return f(x, h(Ze, {
|
|
2076
2083
|
value: w,
|
|
2077
2084
|
get indent() {
|
|
@@ -2095,11 +2102,11 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2095
2102
|
});
|
|
2096
2103
|
})())];
|
|
2097
2104
|
}), g;
|
|
2098
|
-
})(),
|
|
2105
|
+
})(), Wr.cloneNode(!0)];
|
|
2099
2106
|
})())] : i ? [(() => {
|
|
2100
|
-
const d =
|
|
2107
|
+
const d = dt.cloneNode(!0);
|
|
2101
2108
|
return _e(d, "click", a ? void 0 : (g) => {
|
|
2102
|
-
g.shiftKey &&
|
|
2109
|
+
g.shiftKey && $e(o);
|
|
2103
2110
|
}, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, (() => {
|
|
2104
2111
|
const g = m(() => !!t());
|
|
2105
2112
|
return () => g() ? "{" : `{…} ${Object.keys(o).length} properties`;
|
|
@@ -2107,12 +2114,12 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2107
2114
|
})(), m((() => {
|
|
2108
2115
|
const d = m(() => !!t());
|
|
2109
2116
|
return () => d() && [(() => {
|
|
2110
|
-
const g =
|
|
2117
|
+
const g = ft.cloneNode(!0);
|
|
2111
2118
|
return f(g, () => {
|
|
2112
2119
|
let v = Object.entries(o);
|
|
2113
2120
|
const b = v.length;
|
|
2114
2121
|
return r() || (v = v.slice(0, te)), [m(() => v.map(([w, k]) => (() => {
|
|
2115
|
-
const x =
|
|
2122
|
+
const x = pt.cloneNode(!0);
|
|
2116
2123
|
return f(x, h(Ze, {
|
|
2117
2124
|
value: k,
|
|
2118
2125
|
key: w,
|
|
@@ -2136,18 +2143,18 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2136
2143
|
});
|
|
2137
2144
|
})())];
|
|
2138
2145
|
}), g;
|
|
2139
|
-
})(),
|
|
2146
|
+
})(), Zr.cloneNode(!0)];
|
|
2140
2147
|
})())] : (() => {
|
|
2141
|
-
const d =
|
|
2148
|
+
const d = Kr.cloneNode(!0);
|
|
2142
2149
|
return d.$$click = (g) => {
|
|
2143
|
-
g.shiftKey &&
|
|
2144
|
-
}, j(d, "data-type", typeof o), f(d, typeof o == "string" &&
|
|
2150
|
+
g.shiftKey && $e(String(o));
|
|
2151
|
+
}, j(d, "data-type", typeof o), f(d, typeof o == "string" && ht.cloneNode(!0), null), f(d, () => typeof o == "number" ? We(o) : String(o), null), f(d, typeof o == "string" && ht.cloneNode(!0), null), d;
|
|
2145
2152
|
})())();
|
|
2146
2153
|
})())];
|
|
2147
2154
|
});
|
|
2148
|
-
},
|
|
2149
|
-
const t =
|
|
2150
|
-
return C(t,
|
|
2155
|
+
}, Z = (e) => (() => {
|
|
2156
|
+
const t = Jr.cloneNode(!0);
|
|
2157
|
+
return C(t, Xr), f(t, h(Ze, {
|
|
2151
2158
|
get value() {
|
|
2152
2159
|
return e.value;
|
|
2153
2160
|
},
|
|
@@ -2157,24 +2164,45 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @_
|
|
|
2157
2164
|
}
|
|
2158
2165
|
})), t;
|
|
2159
2166
|
})();
|
|
2160
|
-
|
|
2167
|
+
function Yr(e) {
|
|
2168
|
+
if ("id" in e)
|
|
2169
|
+
return (() => {
|
|
2170
|
+
const n = Me.cloneNode(!0);
|
|
2171
|
+
return n.firstChild, f(n, () => String(e.id), null), n;
|
|
2172
|
+
})();
|
|
2173
|
+
const t = Object.keys(e);
|
|
2174
|
+
for (const n of t)
|
|
2175
|
+
if (n.startsWith("id_")) {
|
|
2176
|
+
const r = e[n];
|
|
2177
|
+
if (typeof r == "string" || typeof r == "number")
|
|
2178
|
+
return (() => {
|
|
2179
|
+
const l = Me.cloneNode(!0);
|
|
2180
|
+
return l.firstChild, f(l, r, null), l;
|
|
2181
|
+
})();
|
|
2182
|
+
}
|
|
2183
|
+
return "key" in e ? (() => {
|
|
2184
|
+
const n = Me.cloneNode(!0);
|
|
2185
|
+
return n.firstChild, f(n, () => String(e.id), null), n;
|
|
2186
|
+
})() : "";
|
|
2187
|
+
}
|
|
2188
|
+
async function $e(e) {
|
|
2161
2189
|
await navigator.clipboard.writeText(typeof e == "object" ? JSON.stringify(e, null, 2) : String(e)), alert("Copied to clipboard");
|
|
2162
2190
|
}
|
|
2163
2191
|
Pe(["click"]);
|
|
2164
|
-
let
|
|
2165
|
-
function
|
|
2166
|
-
return
|
|
2192
|
+
let Gr = 0;
|
|
2193
|
+
function Qr() {
|
|
2194
|
+
return Gr++;
|
|
2167
2195
|
}
|
|
2168
|
-
const
|
|
2196
|
+
const qr = /* @__PURE__ */ $("<label></label>"), el = /* @__PURE__ */ $('<div><div class="inputContainer"><select></select></div></div>'), tl = /* @__PURE__ */ $('<option value="">-- select an option --</option>'), nl = /* @__PURE__ */ $("<option></option>"), rl = S`
|
|
2169
2197
|
&&& {
|
|
2170
|
-
${
|
|
2198
|
+
${O({
|
|
2171
2199
|
align: "left"
|
|
2172
2200
|
})};
|
|
2173
2201
|
width: 100%;
|
|
2174
2202
|
position: relative;
|
|
2175
2203
|
|
|
2176
2204
|
label {
|
|
2177
|
-
color: ${
|
|
2205
|
+
color: ${y.primary.var};
|
|
2178
2206
|
z-index: 1;
|
|
2179
2207
|
font-size: 13px;
|
|
2180
2208
|
letter-spacing: 0.08em;
|
|
@@ -2182,13 +2210,13 @@ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><d
|
|
|
2182
2210
|
}
|
|
2183
2211
|
|
|
2184
2212
|
.inputContainer {
|
|
2185
|
-
background: ${
|
|
2213
|
+
background: ${y.white.alpha(0.05)};
|
|
2186
2214
|
border-radius: 4px;
|
|
2187
2215
|
margin-top: 0px;
|
|
2188
2216
|
position: relative;
|
|
2189
2217
|
width: 100%;
|
|
2190
2218
|
overflow: hidden;
|
|
2191
|
-
${
|
|
2219
|
+
${O({
|
|
2192
2220
|
align: "left"
|
|
2193
2221
|
})};
|
|
2194
2222
|
}
|
|
@@ -2201,7 +2229,7 @@ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><d
|
|
|
2201
2229
|
padding-left: 10px;
|
|
2202
2230
|
font-size: 14px;
|
|
2203
2231
|
background: transparent;
|
|
2204
|
-
color: ${
|
|
2232
|
+
color: ${y.white.var};
|
|
2205
2233
|
|
|
2206
2234
|
&:focus {
|
|
2207
2235
|
outline: 0;
|
|
@@ -2217,72 +2245,72 @@ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><d
|
|
|
2217
2245
|
left: 0;
|
|
2218
2246
|
right: 8px;
|
|
2219
2247
|
height: 17px;
|
|
2220
|
-
background: ${
|
|
2248
|
+
background: ${y.white.var};
|
|
2221
2249
|
}
|
|
2222
2250
|
}
|
|
2223
|
-
`,
|
|
2224
|
-
const t = `input${
|
|
2251
|
+
`, ll = (e) => {
|
|
2252
|
+
const t = `input${Qr()}`;
|
|
2225
2253
|
return (() => {
|
|
2226
|
-
const n =
|
|
2254
|
+
const n = el.cloneNode(!0), r = n.firstChild, l = r.firstChild;
|
|
2227
2255
|
return f(n, h(Y, {
|
|
2228
2256
|
get when() {
|
|
2229
2257
|
return e.label;
|
|
2230
2258
|
},
|
|
2231
2259
|
get children() {
|
|
2232
|
-
const o =
|
|
2260
|
+
const o = qr.cloneNode(!0);
|
|
2233
2261
|
return j(o, "for", t), f(o, () => e.label), o;
|
|
2234
2262
|
}
|
|
2235
2263
|
}), r), l.addEventListener("change", (o) => {
|
|
2236
2264
|
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
2237
2265
|
}), j(l, "id", t), f(l, (() => {
|
|
2238
2266
|
const o = m(() => !e.value);
|
|
2239
|
-
return () => o() &&
|
|
2267
|
+
return () => o() && tl.cloneNode(!0);
|
|
2240
2268
|
})(), null), f(l, h(G, {
|
|
2241
2269
|
get each() {
|
|
2242
2270
|
return e.options;
|
|
2243
2271
|
},
|
|
2244
2272
|
children: (o) => (() => {
|
|
2245
|
-
const s =
|
|
2273
|
+
const s = nl.cloneNode(!0);
|
|
2246
2274
|
return f(s, () => o.label), _(() => s.value = o.value), s;
|
|
2247
2275
|
})()
|
|
2248
|
-
}), null), _(() => C(n,
|
|
2276
|
+
}), null), _(() => C(n, Vt(rl, e.class))), _(() => l.value = e.value ?? ""), n;
|
|
2249
2277
|
})();
|
|
2250
2278
|
};
|
|
2251
|
-
function
|
|
2279
|
+
function Ut(e) {
|
|
2252
2280
|
const t = e.alias || e.payload || e.searchParams;
|
|
2253
2281
|
return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
|
|
2254
2282
|
}
|
|
2255
|
-
function
|
|
2256
|
-
return
|
|
2283
|
+
function gt(e, t) {
|
|
2284
|
+
return xt(e, t) ? "no changes" : Yt.diffJson(
|
|
2257
2285
|
typeof e == "object" && e !== null ? e : String(e),
|
|
2258
2286
|
typeof t == "object" && t !== null ? t : String(t)
|
|
2259
2287
|
);
|
|
2260
2288
|
}
|
|
2261
|
-
function
|
|
2289
|
+
function ol(e, t) {
|
|
2262
2290
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
2263
2291
|
}
|
|
2264
|
-
const
|
|
2292
|
+
const il = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), De = /* @__PURE__ */ $("<div></div>"), mt = /* @__PURE__ */ $("<div>No changes</div>"), yt = /* @__PURE__ */ $('<div class="line"></div>'), sl = S`
|
|
2265
2293
|
&&& {
|
|
2266
|
-
${
|
|
2294
|
+
${O({
|
|
2267
2295
|
gap: 14
|
|
2268
2296
|
})};
|
|
2269
2297
|
|
|
2270
2298
|
.changes-count {
|
|
2271
|
-
color: ${
|
|
2299
|
+
color: ${y.white.alpha(0.5)};
|
|
2272
2300
|
font-size: 14px;
|
|
2273
2301
|
|
|
2274
2302
|
.additions {
|
|
2275
|
-
color: ${
|
|
2303
|
+
color: ${y.success.var};
|
|
2276
2304
|
}
|
|
2277
2305
|
|
|
2278
2306
|
.removals {
|
|
2279
|
-
color: ${
|
|
2307
|
+
color: ${y.error.var};
|
|
2280
2308
|
}
|
|
2281
2309
|
}
|
|
2282
2310
|
}
|
|
2283
2311
|
`, $t = S`
|
|
2284
2312
|
&&& {
|
|
2285
|
-
${
|
|
2313
|
+
${O({
|
|
2286
2314
|
gap: 0
|
|
2287
2315
|
})};
|
|
2288
2316
|
font-size: 14px;
|
|
@@ -2296,8 +2324,8 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2296
2324
|
|
|
2297
2325
|
&.added {
|
|
2298
2326
|
opacity: 1;
|
|
2299
|
-
color: ${
|
|
2300
|
-
background: ${
|
|
2327
|
+
color: ${y.success.var};
|
|
2328
|
+
background: ${y.success.alpha(0.1)};
|
|
2301
2329
|
|
|
2302
2330
|
&::before {
|
|
2303
2331
|
content: '+';
|
|
@@ -2308,8 +2336,8 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2308
2336
|
|
|
2309
2337
|
&.removed {
|
|
2310
2338
|
opacity: 1;
|
|
2311
|
-
color: ${
|
|
2312
|
-
background: ${
|
|
2339
|
+
color: ${y.error.var};
|
|
2340
|
+
background: ${y.error.alpha(0.1)};
|
|
2313
2341
|
|
|
2314
2342
|
&::before {
|
|
2315
2343
|
content: '-';
|
|
@@ -2319,32 +2347,32 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2319
2347
|
}
|
|
2320
2348
|
}
|
|
2321
2349
|
}
|
|
2322
|
-
`,
|
|
2350
|
+
`, al = () => {
|
|
2323
2351
|
const e = m(() => {
|
|
2324
2352
|
const {
|
|
2325
2353
|
selectedCall: a
|
|
2326
2354
|
} = I;
|
|
2327
|
-
return a ? Q.calls[a] : Q.calls[
|
|
2328
|
-
}), t =
|
|
2355
|
+
return a ? Q.calls[a] : Q.calls[Oe.value];
|
|
2356
|
+
}), t = Ve(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t.value?.id), r = Bt(() => {
|
|
2329
2357
|
const a = e();
|
|
2330
|
-
return a ?
|
|
2358
|
+
return a ? Ht(a.requests).map((c) => ({
|
|
2331
2359
|
value: c.id,
|
|
2332
|
-
label: `${ne(c.startTime).format("HH:mm:ss")} | ${
|
|
2360
|
+
label: `${ne(c.startTime).format("HH:mm:ss")} | ${ol(Ut(c), 50)}`
|
|
2333
2361
|
})).filter((c) => c.value !== n()) : [];
|
|
2334
2362
|
}, "value"), l = ge(null), o = m(() => l.value ? e()?.requests.find((a) => a.id === l.value) : null), s = m(() => {
|
|
2335
2363
|
if (!l.value || !n())
|
|
2336
2364
|
return [];
|
|
2337
|
-
const a = t.value?.response, c = o()?.response, u =
|
|
2365
|
+
const a = t.value?.response, c = o()?.response, u = gt(c, a);
|
|
2338
2366
|
return u === "no changes" ? [] : u;
|
|
2339
2367
|
}), i = m(() => {
|
|
2340
2368
|
if (!l.value || !n())
|
|
2341
2369
|
return [];
|
|
2342
|
-
const a =
|
|
2370
|
+
const a = vt(t.value), c = vt(o()), u = gt(c, a);
|
|
2343
2371
|
return u === "no changes" ? [] : u;
|
|
2344
2372
|
});
|
|
2345
2373
|
return (() => {
|
|
2346
|
-
const a =
|
|
2347
|
-
return C(a,
|
|
2374
|
+
const a = De.cloneNode(!0);
|
|
2375
|
+
return C(a, sl), f(a, h(ll, {
|
|
2348
2376
|
get value() {
|
|
2349
2377
|
return l.value;
|
|
2350
2378
|
},
|
|
@@ -2361,7 +2389,7 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2361
2389
|
},
|
|
2362
2390
|
get children() {
|
|
2363
2391
|
return [(() => {
|
|
2364
|
-
const c =
|
|
2392
|
+
const c = il.cloneNode(!0), u = c.firstChild, p = u.firstChild, d = p.nextSibling, g = u.nextSibling, v = g.nextSibling, b = v.firstChild, w = b.nextSibling;
|
|
2365
2393
|
return f(d, () => s().filter((k) => k.added).length), f(w, () => s().filter((k) => k.removed).length), c;
|
|
2366
2394
|
})(), h(Y, {
|
|
2367
2395
|
get when() {
|
|
@@ -2373,16 +2401,16 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2373
2401
|
return t.value?.payload ? "Payload Diff" : t.value?.searchParams ? "Search Params Diff" : t.value?.pathParams ? "Path Params Diff" : "Payload";
|
|
2374
2402
|
},
|
|
2375
2403
|
get children() {
|
|
2376
|
-
const c =
|
|
2404
|
+
const c = De.cloneNode(!0);
|
|
2377
2405
|
return C(c, $t), f(c, h(G, {
|
|
2378
2406
|
get each() {
|
|
2379
2407
|
return i();
|
|
2380
2408
|
},
|
|
2381
2409
|
get fallback() {
|
|
2382
|
-
return
|
|
2410
|
+
return mt.cloneNode(!0);
|
|
2383
2411
|
},
|
|
2384
2412
|
children: (u) => (() => {
|
|
2385
|
-
const p =
|
|
2413
|
+
const p = yt.cloneNode(!0);
|
|
2386
2414
|
return f(p, () => u.value), _((d) => {
|
|
2387
2415
|
const g = !!u.added, v = !!u.removed;
|
|
2388
2416
|
return g !== d._v$ && p.classList.toggle("added", d._v$ = g), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
|
|
@@ -2403,16 +2431,16 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2403
2431
|
return h(M, {
|
|
2404
2432
|
title: "Response Diff",
|
|
2405
2433
|
get children() {
|
|
2406
|
-
const c =
|
|
2434
|
+
const c = De.cloneNode(!0);
|
|
2407
2435
|
return C(c, $t), f(c, h(G, {
|
|
2408
2436
|
get each() {
|
|
2409
2437
|
return s();
|
|
2410
2438
|
},
|
|
2411
2439
|
get fallback() {
|
|
2412
|
-
return
|
|
2440
|
+
return mt.cloneNode(!0);
|
|
2413
2441
|
},
|
|
2414
2442
|
children: (u) => (() => {
|
|
2415
|
-
const p =
|
|
2443
|
+
const p = yt.cloneNode(!0);
|
|
2416
2444
|
return f(p, () => u.value), _((d) => {
|
|
2417
2445
|
const g = !!u.added, v = !!u.removed;
|
|
2418
2446
|
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;
|
|
@@ -2430,12 +2458,12 @@ const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2430
2458
|
}), null), a;
|
|
2431
2459
|
})();
|
|
2432
2460
|
};
|
|
2433
|
-
function
|
|
2461
|
+
function vt(e) {
|
|
2434
2462
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
2435
2463
|
}
|
|
2436
|
-
const
|
|
2464
|
+
const bt = /* @__PURE__ */ $("<div></div>"), cl = /* @__PURE__ */ $('<h1><span class="type"></span><span class="separator">|</span></h1>'), ul = /* @__PURE__ */ $('<div class="tags"></div>'), dl = /* @__PURE__ */ $('<div class="details"></div>'), fl = /* @__PURE__ */ $('<span class="separator">|</span>'), pl = /* @__PURE__ */ $("<h2></h2>"), hl = /* @__PURE__ */ $('<div class="method"></div>'), gl = /* @__PURE__ */ $('<div class="code"></div>'), ml = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), yl = /* @__PURE__ */ $('<div class="tag"></div>'), $l = /* @__PURE__ */ $("<span> ms</span>"), vl = /* @__PURE__ */ $("<span></span>"), bl = S`
|
|
2437
2465
|
&&& {
|
|
2438
|
-
${
|
|
2466
|
+
${O()};
|
|
2439
2467
|
padding-left: 10px;
|
|
2440
2468
|
|
|
2441
2469
|
> h1 {
|
|
@@ -2452,7 +2480,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2452
2480
|
|
|
2453
2481
|
span.type {
|
|
2454
2482
|
text-transform: capitalize;
|
|
2455
|
-
color: ${
|
|
2483
|
+
color: ${y.secondary.var};
|
|
2456
2484
|
}
|
|
2457
2485
|
}
|
|
2458
2486
|
|
|
@@ -2470,28 +2498,28 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2470
2498
|
margin-top: 8px;
|
|
2471
2499
|
|
|
2472
2500
|
.method {
|
|
2473
|
-
color: ${
|
|
2501
|
+
color: ${y.primary.var};
|
|
2474
2502
|
}
|
|
2475
2503
|
|
|
2476
2504
|
.code {
|
|
2477
|
-
color: ${
|
|
2505
|
+
color: ${y.success.var};
|
|
2478
2506
|
|
|
2479
2507
|
&.error {
|
|
2480
|
-
color: ${
|
|
2508
|
+
color: ${y.error.var};
|
|
2481
2509
|
}
|
|
2482
2510
|
}
|
|
2483
2511
|
|
|
2484
2512
|
.tag {
|
|
2485
2513
|
font-size: 11px;
|
|
2486
|
-
color: ${
|
|
2514
|
+
color: ${y.warning.var};
|
|
2487
2515
|
padding: 1px 3px;
|
|
2488
2516
|
border-radius: 4px;
|
|
2489
|
-
border: 1px solid ${
|
|
2517
|
+
border: 1px solid ${y.warning.alpha(0.6)};
|
|
2490
2518
|
|
|
2491
2519
|
&.error {
|
|
2492
|
-
color: ${
|
|
2520
|
+
color: ${y.error.var};
|
|
2493
2521
|
font-weight: 600;
|
|
2494
|
-
border-color: ${
|
|
2522
|
+
border-color: ${y.error.alpha(0.6)};
|
|
2495
2523
|
}
|
|
2496
2524
|
}
|
|
2497
2525
|
}
|
|
@@ -2499,7 +2527,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2499
2527
|
> .details {
|
|
2500
2528
|
margin-top: 14px;
|
|
2501
2529
|
padding-right: 10px;
|
|
2502
|
-
${
|
|
2530
|
+
${O({
|
|
2503
2531
|
gap: 8
|
|
2504
2532
|
})};
|
|
2505
2533
|
flex: 1 1;
|
|
@@ -2507,12 +2535,12 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2507
2535
|
padding-bottom: 20px;
|
|
2508
2536
|
}
|
|
2509
2537
|
}
|
|
2510
|
-
`,
|
|
2538
|
+
`, wl = S`
|
|
2511
2539
|
&&& {
|
|
2512
2540
|
${B({
|
|
2513
2541
|
gap: 20
|
|
2514
2542
|
})};
|
|
2515
|
-
color: ${
|
|
2543
|
+
color: ${y.secondary.var};
|
|
2516
2544
|
margin-top: 20px;
|
|
2517
2545
|
|
|
2518
2546
|
> button {
|
|
@@ -2529,10 +2557,10 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2529
2557
|
}
|
|
2530
2558
|
}
|
|
2531
2559
|
}
|
|
2532
|
-
`,
|
|
2533
|
-
const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r =
|
|
2560
|
+
`, xl = () => {
|
|
2561
|
+
const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = Ve(() => {
|
|
2534
2562
|
let s;
|
|
2535
|
-
e() ? s = Q.calls[e()] : s = Q.calls[
|
|
2563
|
+
e() ? s = Q.calls[e()] : s = Q.calls[Oe.value];
|
|
2536
2564
|
const i = t() && s?.requests.find((a) => a.id === t()) || s?.requests.at(-1);
|
|
2537
2565
|
return i && s ? {
|
|
2538
2566
|
...i,
|
|
@@ -2553,11 +2581,11 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2553
2581
|
children: i
|
|
2554
2582
|
});
|
|
2555
2583
|
}
|
|
2556
|
-
const o =
|
|
2584
|
+
const o = Ve(() => {
|
|
2557
2585
|
if (!r.value?.response)
|
|
2558
2586
|
return !1;
|
|
2559
2587
|
const s = JSON.stringify(r.value.response).length;
|
|
2560
|
-
return
|
|
2588
|
+
return We(s, {
|
|
2561
2589
|
unit: "byte",
|
|
2562
2590
|
style: "unit",
|
|
2563
2591
|
notation: "compact",
|
|
@@ -2565,53 +2593,53 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2565
2593
|
});
|
|
2566
2594
|
});
|
|
2567
2595
|
return (() => {
|
|
2568
|
-
const s =
|
|
2569
|
-
return C(s,
|
|
2596
|
+
const s = bt.cloneNode(!0);
|
|
2597
|
+
return C(s, bl), f(s, h(Y, {
|
|
2570
2598
|
get when() {
|
|
2571
2599
|
return r.value;
|
|
2572
2600
|
},
|
|
2573
2601
|
keyed: !0,
|
|
2574
2602
|
children: (i) => [(() => {
|
|
2575
|
-
const a =
|
|
2603
|
+
const a = cl.cloneNode(!0), c = a.firstChild;
|
|
2576
2604
|
return c.nextSibling, f(c, () => i.type === "ws" ? `WS ${i.subType}` : "API"), f(a, () => i.callName, null), f(a, (() => {
|
|
2577
2605
|
const u = m(() => !!i.alias);
|
|
2578
|
-
return () => u() &&
|
|
2606
|
+
return () => u() && fl.cloneNode(!0);
|
|
2579
2607
|
})(), null), f(a, () => i.alias, null), a;
|
|
2580
2608
|
})(), m((() => {
|
|
2581
2609
|
const a = m(() => i.callPath !== i.callName);
|
|
2582
2610
|
return () => a() && (() => {
|
|
2583
|
-
const c =
|
|
2611
|
+
const c = pl.cloneNode(!0);
|
|
2584
2612
|
return f(c, () => i.callPath), c;
|
|
2585
2613
|
})();
|
|
2586
2614
|
})()), (() => {
|
|
2587
|
-
const a =
|
|
2615
|
+
const a = ul.cloneNode(!0);
|
|
2588
2616
|
return f(a, (() => {
|
|
2589
2617
|
const c = m(() => !!i.method);
|
|
2590
2618
|
return () => c() && (() => {
|
|
2591
|
-
const u =
|
|
2619
|
+
const u = hl.cloneNode(!0);
|
|
2592
2620
|
return f(u, () => i.method), u;
|
|
2593
2621
|
})();
|
|
2594
2622
|
})(), null), f(a, (() => {
|
|
2595
2623
|
const c = m(() => !!i.code);
|
|
2596
2624
|
return () => c() && (() => {
|
|
2597
|
-
const u =
|
|
2625
|
+
const u = gl.cloneNode(!0);
|
|
2598
2626
|
return f(u, () => i.code), _(() => u.classList.toggle("error", i.code >= 400)), u;
|
|
2599
2627
|
})();
|
|
2600
2628
|
})(), null), f(a, (() => {
|
|
2601
2629
|
const c = m(() => !!i.isError);
|
|
2602
|
-
return () => c() &&
|
|
2630
|
+
return () => c() && ml.cloneNode(!0);
|
|
2603
2631
|
})(), null), f(a, h(G, {
|
|
2604
2632
|
get each() {
|
|
2605
2633
|
return i.tags;
|
|
2606
2634
|
},
|
|
2607
2635
|
children: (c) => (() => {
|
|
2608
|
-
const u =
|
|
2636
|
+
const u = yl.cloneNode(!0);
|
|
2609
2637
|
return f(u, c), u;
|
|
2610
2638
|
})()
|
|
2611
2639
|
}), null), a;
|
|
2612
2640
|
})(), (() => {
|
|
2613
|
-
const a =
|
|
2614
|
-
return C(a,
|
|
2641
|
+
const a = bt.cloneNode(!0);
|
|
2642
|
+
return C(a, wl), f(a, () => l("summary", "Summary"), null), f(a, (() => {
|
|
2615
2643
|
const c = m(() => !!i.payload);
|
|
2616
2644
|
return () => c() && l("payload", "Payload");
|
|
2617
2645
|
})(), null), f(a, (() => {
|
|
@@ -2619,8 +2647,8 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2619
2647
|
return () => c() && l("urlParams", "URL Params");
|
|
2620
2648
|
})(), null), f(a, () => l("response", "Response"), null), f(a, () => l("diff", "Diff"), null), a;
|
|
2621
2649
|
})(), (() => {
|
|
2622
|
-
const a =
|
|
2623
|
-
return f(a, h(
|
|
2650
|
+
const a = dl.cloneNode(!0);
|
|
2651
|
+
return f(a, h(dn, {
|
|
2624
2652
|
get children() {
|
|
2625
2653
|
return [h(de, {
|
|
2626
2654
|
get when() {
|
|
@@ -2630,7 +2658,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2630
2658
|
return [m(() => m(() => !!i.payload)() && h(M, {
|
|
2631
2659
|
title: "Payload",
|
|
2632
2660
|
get children() {
|
|
2633
|
-
return h(
|
|
2661
|
+
return h(Z, {
|
|
2634
2662
|
get value() {
|
|
2635
2663
|
return i.payload;
|
|
2636
2664
|
},
|
|
@@ -2640,7 +2668,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2640
2668
|
})), m(() => m(() => !!i.searchParams)() && h(M, {
|
|
2641
2669
|
title: "URL Params",
|
|
2642
2670
|
get children() {
|
|
2643
|
-
return h(
|
|
2671
|
+
return h(Z, {
|
|
2644
2672
|
get value() {
|
|
2645
2673
|
return i.searchParams;
|
|
2646
2674
|
},
|
|
@@ -2650,7 +2678,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2650
2678
|
})), m(() => m(() => !!i.response)() && h(M, {
|
|
2651
2679
|
title: "Response",
|
|
2652
2680
|
get children() {
|
|
2653
|
-
return h(
|
|
2681
|
+
return h(Z, {
|
|
2654
2682
|
get value() {
|
|
2655
2683
|
return i.response;
|
|
2656
2684
|
},
|
|
@@ -2660,20 +2688,20 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2660
2688
|
})), h(M, {
|
|
2661
2689
|
title: "Stats",
|
|
2662
2690
|
get children() {
|
|
2663
|
-
return h(
|
|
2691
|
+
return h(Dr, {
|
|
2664
2692
|
get rows() {
|
|
2665
2693
|
return [i.type !== "ws" && {
|
|
2666
2694
|
name: "Duration",
|
|
2667
2695
|
value: (() => {
|
|
2668
|
-
const c =
|
|
2669
|
-
return f(c, () =>
|
|
2696
|
+
const c = $l.cloneNode(!0), u = c.firstChild;
|
|
2697
|
+
return f(c, () => We(i.duration, {
|
|
2670
2698
|
maximumFractionDigits: 0
|
|
2671
|
-
}), u), _(() => c.style.setProperty("color", i.duration < 500 ?
|
|
2699
|
+
}), u), _(() => c.style.setProperty("color", i.duration < 500 ? y.success.var : i.duration > 1e3 ? y.error.var : void 0)), c;
|
|
2672
2700
|
})()
|
|
2673
2701
|
}, {
|
|
2674
2702
|
name: "Start Time",
|
|
2675
2703
|
value: (() => {
|
|
2676
|
-
const c =
|
|
2704
|
+
const c = vl.cloneNode(!0);
|
|
2677
2705
|
return f(c, () => `${ne(i.startTime).format("HH:mm:ss")} (${ne(i.startTime).fromNow()})`), _(() => j(c, "title", ne(i.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), c;
|
|
2678
2706
|
})()
|
|
2679
2707
|
}, !!o.value && {
|
|
@@ -2691,7 +2719,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2691
2719
|
return h(M, {
|
|
2692
2720
|
title: "Metadata",
|
|
2693
2721
|
get children() {
|
|
2694
|
-
return h(
|
|
2722
|
+
return h(Z, {
|
|
2695
2723
|
get value() {
|
|
2696
2724
|
return i.metadata;
|
|
2697
2725
|
}
|
|
@@ -2709,7 +2737,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2709
2737
|
return h(M, {
|
|
2710
2738
|
title: null,
|
|
2711
2739
|
get children() {
|
|
2712
|
-
return h(
|
|
2740
|
+
return h(Z, {
|
|
2713
2741
|
get value() {
|
|
2714
2742
|
return i.payload;
|
|
2715
2743
|
}
|
|
@@ -2725,7 +2753,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2725
2753
|
return h(M, {
|
|
2726
2754
|
title: null,
|
|
2727
2755
|
get children() {
|
|
2728
|
-
return h(
|
|
2756
|
+
return h(Z, {
|
|
2729
2757
|
get value() {
|
|
2730
2758
|
return i.response;
|
|
2731
2759
|
}
|
|
@@ -2741,7 +2769,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2741
2769
|
return h(M, {
|
|
2742
2770
|
title: null,
|
|
2743
2771
|
get children() {
|
|
2744
|
-
return h(
|
|
2772
|
+
return h(Z, {
|
|
2745
2773
|
get value() {
|
|
2746
2774
|
return i.searchParams;
|
|
2747
2775
|
}
|
|
@@ -2754,7 +2782,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2754
2782
|
return n() === "diff";
|
|
2755
2783
|
},
|
|
2756
2784
|
get children() {
|
|
2757
|
-
return h(
|
|
2785
|
+
return h(al, {});
|
|
2758
2786
|
}
|
|
2759
2787
|
})];
|
|
2760
2788
|
}
|
|
@@ -2762,33 +2790,33 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2762
2790
|
})()]
|
|
2763
2791
|
})), s;
|
|
2764
2792
|
})();
|
|
2765
|
-
},
|
|
2793
|
+
}, Cl = /* @__PURE__ */ $("<div><h1>timeline</h1><div></div></div>"), _l = /* @__PURE__ */ $("<div>no requests found</div>"), Sl = /* @__PURE__ */ $('<span class="start-time"></span>'), kl = /* @__PURE__ */ $("<div></div>"), Nl = /* @__PURE__ */ $('<span class="separator">|</span>'), Al = /* @__PURE__ */ $('<span class="payload"></span>'), Tl = S`
|
|
2766
2794
|
&&& {
|
|
2767
|
-
${
|
|
2768
|
-
border-right: 1px solid ${
|
|
2795
|
+
${O()};
|
|
2796
|
+
border-right: 1px solid ${y.white.alpha(0.1)};
|
|
2769
2797
|
|
|
2770
2798
|
> h1 {
|
|
2771
2799
|
font-size: 16px;
|
|
2772
2800
|
padding-left: 12px;
|
|
2773
2801
|
padding-top: 10px;
|
|
2774
2802
|
font-family: ${z.decorative};
|
|
2775
|
-
color: ${
|
|
2803
|
+
color: ${y.secondary.var};
|
|
2776
2804
|
padding-bottom: 16px;
|
|
2777
2805
|
}
|
|
2778
2806
|
}
|
|
2779
|
-
`,
|
|
2807
|
+
`, Pl = S`
|
|
2780
2808
|
&&& {
|
|
2781
|
-
${
|
|
2809
|
+
${O()};
|
|
2782
2810
|
flex: 1 1;
|
|
2783
2811
|
overflow-y: auto;
|
|
2784
2812
|
}
|
|
2785
|
-
`,
|
|
2813
|
+
`, El = S`
|
|
2786
2814
|
&&& {
|
|
2787
2815
|
font-size: 13px;
|
|
2788
|
-
${
|
|
2816
|
+
${O()};
|
|
2789
2817
|
|
|
2790
2818
|
&.error {
|
|
2791
|
-
color: ${
|
|
2819
|
+
color: ${y.error.var};
|
|
2792
2820
|
font-weight: 600;
|
|
2793
2821
|
}
|
|
2794
2822
|
|
|
@@ -2801,7 +2829,7 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2801
2829
|
|
|
2802
2830
|
&.selected {
|
|
2803
2831
|
opacity: 1;
|
|
2804
|
-
background-color: ${
|
|
2832
|
+
background-color: ${y.secondary.alpha(0.16)};
|
|
2805
2833
|
}
|
|
2806
2834
|
|
|
2807
2835
|
> .start-time {
|
|
@@ -2818,38 +2846,38 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2818
2846
|
}
|
|
2819
2847
|
}
|
|
2820
2848
|
}
|
|
2821
|
-
`,
|
|
2849
|
+
`, Ol = S`
|
|
2822
2850
|
&&& {
|
|
2823
2851
|
opacity: 0.4;
|
|
2824
2852
|
font-size: 14px;
|
|
2825
2853
|
padding: 12px;
|
|
2826
2854
|
padding-top: 0;
|
|
2827
2855
|
}
|
|
2828
|
-
`,
|
|
2856
|
+
`, Ll = () => {
|
|
2829
2857
|
const e = m(() => {
|
|
2830
2858
|
const l = I.selectedCall;
|
|
2831
|
-
return l ? l ? Q.calls[l] : null : Q.calls[
|
|
2859
|
+
return l ? l ? Q.calls[l] : null : Q.calls[Oe.value] || null;
|
|
2832
2860
|
}), t = m(() => {
|
|
2833
|
-
const l =
|
|
2861
|
+
const l = Ht(e()?.requests);
|
|
2834
2862
|
return l.length === 0 ? null : l;
|
|
2835
2863
|
}), n = m(() => I.selectedSubitem ? t()?.filter((l) => l.alias === I.selectedSubitem) : t()), r = m(() => I.selectedRequest || n()?.[0]?.id);
|
|
2836
2864
|
return (() => {
|
|
2837
|
-
const l =
|
|
2838
|
-
return C(l,
|
|
2865
|
+
const l = Cl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
|
|
2866
|
+
return C(l, Tl), C(s, Pl), f(s, h(G, {
|
|
2839
2867
|
get each() {
|
|
2840
2868
|
return n();
|
|
2841
2869
|
},
|
|
2842
2870
|
get fallback() {
|
|
2843
2871
|
return (() => {
|
|
2844
|
-
const i =
|
|
2845
|
-
return C(i,
|
|
2872
|
+
const i = _l.cloneNode(!0);
|
|
2873
|
+
return C(i, Ol), i;
|
|
2846
2874
|
})();
|
|
2847
2875
|
},
|
|
2848
2876
|
children: (i) => {
|
|
2849
|
-
const a = ne(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p =
|
|
2877
|
+
const a = ne(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ut(i);
|
|
2850
2878
|
return (() => {
|
|
2851
|
-
const d =
|
|
2852
|
-
return C(d,
|
|
2879
|
+
const d = kl.cloneNode(!0);
|
|
2880
|
+
return C(d, El), f(d, h(F, {
|
|
2853
2881
|
onClick: () => {
|
|
2854
2882
|
Ne("selectedRequest", i.id);
|
|
2855
2883
|
},
|
|
@@ -2860,10 +2888,10 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2860
2888
|
},
|
|
2861
2889
|
get children() {
|
|
2862
2890
|
return [(() => {
|
|
2863
|
-
const g = xl.cloneNode(!0);
|
|
2864
|
-
return j(g, "title", u), f(g, c), g;
|
|
2865
|
-
})(), m(() => !!p && [_l.cloneNode(!0), (() => {
|
|
2866
2891
|
const g = Sl.cloneNode(!0);
|
|
2892
|
+
return j(g, "title", u), f(g, c), g;
|
|
2893
|
+
})(), m(() => !!p && [Nl.cloneNode(!0), (() => {
|
|
2894
|
+
const g = Al.cloneNode(!0);
|
|
2867
2895
|
return j(g, "title", p), f(g, p), g;
|
|
2868
2896
|
})()])];
|
|
2869
2897
|
}
|
|
@@ -2872,17 +2900,17 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2872
2900
|
}
|
|
2873
2901
|
})), l;
|
|
2874
2902
|
})();
|
|
2875
|
-
},
|
|
2903
|
+
}, jl = /* @__PURE__ */ $("<div></div>"), Il = S`
|
|
2876
2904
|
&&& {
|
|
2877
2905
|
display: grid;
|
|
2878
2906
|
grid-template-columns: 1fr 1fr 3fr;
|
|
2879
2907
|
}
|
|
2880
|
-
`,
|
|
2881
|
-
const e =
|
|
2882
|
-
return C(e,
|
|
2883
|
-
})(),
|
|
2908
|
+
`, Ml = () => (() => {
|
|
2909
|
+
const e = jl.cloneNode(!0);
|
|
2910
|
+
return C(e, Il), f(e, h(Pr, {}), null), f(e, h(Ll, {}), null), f(e, h(xl, {}), null), e;
|
|
2911
|
+
})(), Dl = `
|
|
2884
2912
|
font-family: ${z.primary};
|
|
2885
|
-
color: ${
|
|
2913
|
+
color: ${y.textPrimary.var};
|
|
2886
2914
|
|
|
2887
2915
|
* {
|
|
2888
2916
|
user-select: none;
|
|
@@ -2931,11 +2959,11 @@ const vt = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span c
|
|
|
2931
2959
|
h3 {
|
|
2932
2960
|
font-weight: normal;
|
|
2933
2961
|
}
|
|
2934
|
-
`,
|
|
2962
|
+
`, zl = `
|
|
2935
2963
|
display: flex;
|
|
2936
2964
|
align-items: center;
|
|
2937
2965
|
justify-content: center;
|
|
2938
|
-
`,
|
|
2966
|
+
`, Rl = `
|
|
2939
2967
|
*,
|
|
2940
2968
|
*::before,
|
|
2941
2969
|
*::after {
|
|
@@ -3009,26 +3037,26 @@ button {
|
|
|
3009
3037
|
cursor: pointer;
|
|
3010
3038
|
-webkit-appearance: none;
|
|
3011
3039
|
}
|
|
3012
|
-
`,
|
|
3013
|
-
${
|
|
3014
|
-
${
|
|
3040
|
+
`, Fl = /* @__PURE__ */ $("<div></div>"), Bl = /* @__PURE__ */ $('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Hl = S`
|
|
3041
|
+
${Rl};
|
|
3042
|
+
${Dl};
|
|
3015
3043
|
|
|
3016
3044
|
position: fixed;
|
|
3017
3045
|
inset: 32px;
|
|
3018
3046
|
border-radius: 4px;
|
|
3019
|
-
background: ${
|
|
3047
|
+
background: ${y.bgPrimary.var};
|
|
3020
3048
|
display: grid;
|
|
3021
3049
|
grid-template-columns: 51px 1fr;
|
|
3022
3050
|
|
|
3023
3051
|
nav {
|
|
3024
|
-
${
|
|
3025
|
-
border-right: 1px solid ${
|
|
3052
|
+
${O()};
|
|
3053
|
+
border-right: 1px solid ${y.white.alpha(0.1)};
|
|
3026
3054
|
|
|
3027
3055
|
button {
|
|
3028
|
-
${
|
|
3056
|
+
${zl};
|
|
3029
3057
|
width: 100%;
|
|
3030
3058
|
aspect-ratio: 1 / 1;
|
|
3031
|
-
color: ${
|
|
3059
|
+
color: ${y.bgPrimary.var};
|
|
3032
3060
|
--icon-size: 30px;
|
|
3033
3061
|
|
|
3034
3062
|
&::before {
|
|
@@ -3036,36 +3064,36 @@ button {
|
|
|
3036
3064
|
inset: 6px;
|
|
3037
3065
|
border-radius: 3px;
|
|
3038
3066
|
position: absolute;
|
|
3039
|
-
background: ${
|
|
3067
|
+
background: ${y.primary.var};
|
|
3040
3068
|
}
|
|
3041
3069
|
}
|
|
3042
3070
|
}
|
|
3043
3071
|
|
|
3044
3072
|
> main > * {
|
|
3045
|
-
${
|
|
3073
|
+
${Xe};
|
|
3046
3074
|
}
|
|
3047
|
-
`,
|
|
3048
|
-
${
|
|
3075
|
+
`, Vl = S`
|
|
3076
|
+
${Xe};
|
|
3049
3077
|
position: fixed;
|
|
3050
3078
|
inset: 0;
|
|
3051
3079
|
backdrop-filter: blur(5px);
|
|
3052
|
-
`,
|
|
3053
|
-
const e =
|
|
3054
|
-
return _e(e, "click", Zt, !0), C(e,
|
|
3080
|
+
`, Ul = () => [(() => {
|
|
3081
|
+
const e = Fl.cloneNode(!0);
|
|
3082
|
+
return _e(e, "click", Zt, !0), C(e, Vl), e;
|
|
3055
3083
|
})(), (() => {
|
|
3056
|
-
const e =
|
|
3057
|
-
return C(e,
|
|
3084
|
+
const e = Bl.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
3085
|
+
return C(e, Hl), f(t, h(F, {
|
|
3058
3086
|
title: "API Explorer",
|
|
3059
3087
|
get children() {
|
|
3060
3088
|
return h(Ee, {
|
|
3061
3089
|
name: "network"
|
|
3062
3090
|
});
|
|
3063
3091
|
}
|
|
3064
|
-
})), f(n, h(
|
|
3092
|
+
})), f(n, h(Ml, {})), e;
|
|
3065
3093
|
})()];
|
|
3066
3094
|
Pe(["click"]);
|
|
3067
|
-
const
|
|
3068
|
-
function
|
|
3095
|
+
const Wl = () => h(Ul, {});
|
|
3096
|
+
function Zl(e) {
|
|
3069
3097
|
let t = "";
|
|
3070
3098
|
return e.forEach(({ family: n, weights: r, italics: l }) => {
|
|
3071
3099
|
t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((o, s) => {
|
|
@@ -3075,12 +3103,12 @@ function Vl(e) {
|
|
|
3075
3103
|
}));
|
|
3076
3104
|
}), `https://fonts.googleapis.com/css2?${t}&display=swap`;
|
|
3077
3105
|
}
|
|
3078
|
-
let
|
|
3079
|
-
function
|
|
3080
|
-
if (
|
|
3106
|
+
let wt = !1;
|
|
3107
|
+
function Kl() {
|
|
3108
|
+
if (wt)
|
|
3081
3109
|
return;
|
|
3082
|
-
|
|
3083
|
-
const e =
|
|
3110
|
+
wt = !0;
|
|
3111
|
+
const e = Zl([
|
|
3084
3112
|
{
|
|
3085
3113
|
family: "Work+Sans",
|
|
3086
3114
|
weights: [300, "..", 700]
|
|
@@ -3088,35 +3116,35 @@ function Ul() {
|
|
|
3088
3116
|
]), t = document.getElementsByTagName("head")[0], n = document.createElement("link");
|
|
3089
3117
|
n.type = "text/css", n.rel = "stylesheet", n.href = e, t?.appendChild(n);
|
|
3090
3118
|
}
|
|
3091
|
-
let
|
|
3092
|
-
},
|
|
3093
|
-
function
|
|
3094
|
-
if (ne.extend(
|
|
3119
|
+
let Wt = () => {
|
|
3120
|
+
}, Ke = !1;
|
|
3121
|
+
function Jl() {
|
|
3122
|
+
if (ne.extend(An), Ke) {
|
|
3095
3123
|
Zt();
|
|
3096
3124
|
return;
|
|
3097
3125
|
}
|
|
3098
|
-
|
|
3126
|
+
Ke = !0, Kl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
3099
3127
|
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
3100
|
-
e.id = "dev-tools-root", document.body.appendChild(e),
|
|
3128
|
+
e.id = "dev-tools-root", document.body.appendChild(e), Wt = vn(() => h(Wl, {}), e);
|
|
3101
3129
|
}
|
|
3102
3130
|
function Zt() {
|
|
3103
|
-
|
|
3131
|
+
Ke = !1, Wt();
|
|
3104
3132
|
}
|
|
3105
|
-
function
|
|
3133
|
+
function no({
|
|
3106
3134
|
callsProcessor: e,
|
|
3107
3135
|
shortcut: t
|
|
3108
3136
|
}) {
|
|
3109
|
-
|
|
3137
|
+
Gt(window, {
|
|
3110
3138
|
[t]: (n) => {
|
|
3111
3139
|
const r = document.activeElement;
|
|
3112
|
-
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(),
|
|
3140
|
+
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Jl());
|
|
3113
3141
|
}
|
|
3114
3142
|
}), $r({
|
|
3115
3143
|
callsProcessor: e
|
|
3116
3144
|
});
|
|
3117
3145
|
}
|
|
3118
3146
|
export {
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3147
|
+
vr as addCall,
|
|
3148
|
+
to as addWebsocketEvent,
|
|
3149
|
+
no as initializeDevTools
|
|
3122
3150
|
};
|