app-devtools 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.d.ts +10 -3
- package/dist/main.js +1035 -925
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
import ue from "dayjs";
|
|
2
2
|
import { dequal as yt } from "dequal";
|
|
3
|
-
import { produce as
|
|
4
|
-
import { parse as
|
|
5
|
-
import { nanoid as
|
|
3
|
+
import { produce as Ut } from "immer";
|
|
4
|
+
import { parse as Zt } from "regexparam";
|
|
5
|
+
import { nanoid as Wt } from "nanoid";
|
|
6
6
|
import * as Kt from "diff";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
equals:
|
|
7
|
+
import Xt from "tinykeys";
|
|
8
|
+
const V = {}, Gt = (e, t) => e === t, D = Symbol("solid-proxy"), ye = Symbol("solid-track"), ve = {
|
|
9
|
+
equals: Gt
|
|
10
10
|
};
|
|
11
|
-
let
|
|
12
|
-
const
|
|
11
|
+
let Qt = kt;
|
|
12
|
+
const J = 1, be = 2, vt = {
|
|
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
|
|
19
|
+
let K = null, A = null, E = null, X = null, Ue = 0;
|
|
20
20
|
function ee(e, t) {
|
|
21
|
-
const n =
|
|
21
|
+
const n = A, r = P, l = e.length === 0, o = l ? vt : {
|
|
22
22
|
owned: null,
|
|
23
23
|
cleanups: null,
|
|
24
24
|
context: null,
|
|
25
25
|
owner: t === void 0 ? r : t
|
|
26
|
-
}, s =
|
|
27
|
-
P =
|
|
26
|
+
}, s = l ? e : () => e(() => U(() => Ne(o)));
|
|
27
|
+
P = o, A = null;
|
|
28
28
|
try {
|
|
29
29
|
return se(s, !0);
|
|
30
30
|
} finally {
|
|
31
|
-
|
|
31
|
+
A = n, P = r;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function ne(e, t) {
|
|
35
|
-
t = t ? Object.assign({},
|
|
35
|
+
t = t ? Object.assign({}, ve, t) : ve;
|
|
36
36
|
const n = {
|
|
37
37
|
value: e,
|
|
38
38
|
observers: null,
|
|
39
39
|
observerSlots: null,
|
|
40
40
|
comparator: t.equals || void 0
|
|
41
|
-
}, r = (
|
|
42
|
-
return [
|
|
41
|
+
}, r = (l) => (typeof l == "function" && (l = l(n.value)), Ct(n, l));
|
|
42
|
+
return [xt.bind(n), r];
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
const r =
|
|
46
|
-
|
|
44
|
+
function S(e, t, n) {
|
|
45
|
+
const r = _t(e, t, !1, J);
|
|
46
|
+
Ae(r);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
n = n ? Object.assign({},
|
|
50
|
-
const r =
|
|
51
|
-
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0,
|
|
48
|
+
function m(e, t, n) {
|
|
49
|
+
n = n ? Object.assign({}, ve, n) : ve;
|
|
50
|
+
const r = _t(e, t, !0, 0);
|
|
51
|
+
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ae(r), xt.bind(r);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Jt(e) {
|
|
54
54
|
return se(e, !1);
|
|
55
55
|
}
|
|
56
56
|
function U(e) {
|
|
57
|
-
if (
|
|
57
|
+
if (A === null)
|
|
58
58
|
return e();
|
|
59
|
-
const t =
|
|
60
|
-
|
|
59
|
+
const t = A;
|
|
60
|
+
A = null;
|
|
61
61
|
try {
|
|
62
62
|
return e();
|
|
63
63
|
} finally {
|
|
64
|
-
|
|
64
|
+
A = t;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
function bt(e) {
|
|
68
68
|
return P === null || (P.cleanups === null ? P.cleanups = [e] : P.cleanups.push(e)), e;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
70
|
+
function wt() {
|
|
71
|
+
return A;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const t =
|
|
73
|
+
function Yt(e) {
|
|
74
|
+
const t = m(e), n = m(() => Me(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
|
|
81
|
-
const e =
|
|
80
|
+
function xt() {
|
|
81
|
+
const e = K;
|
|
82
82
|
if (this.sources && (this.state || e))
|
|
83
|
-
if (this.state ===
|
|
84
|
-
|
|
83
|
+
if (this.state === J || e)
|
|
84
|
+
Ae(this);
|
|
85
85
|
else {
|
|
86
86
|
const t = E;
|
|
87
|
-
E = null, se(() =>
|
|
87
|
+
E = null, se(() => we(this), !1), E = t;
|
|
88
88
|
}
|
|
89
|
-
if (
|
|
89
|
+
if (A) {
|
|
90
90
|
const t = this.observers ? this.observers.length : 0;
|
|
91
|
-
|
|
91
|
+
A.sources ? (A.sources.push(this), A.sourceSlots.push(t)) : (A.sources = [this], A.sourceSlots = [t]), this.observers ? (this.observers.push(A), this.observerSlots.push(A.sources.length - 1)) : (this.observers = [A], this.observerSlots = [A.sources.length - 1]);
|
|
92
92
|
}
|
|
93
93
|
return this.value;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ct(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 && se(() => {
|
|
98
|
-
for (let
|
|
99
|
-
const
|
|
100
|
-
s &&
|
|
98
|
+
for (let l = 0; l < e.observers.length; l += 1) {
|
|
99
|
+
const o = e.observers[l], s = K && K.running;
|
|
100
|
+
s && K.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : X.push(o), o.observers && At(o)), s || (o.state = J);
|
|
101
101
|
}
|
|
102
102
|
if (E.length > 1e6)
|
|
103
103
|
throw E = [], new Error();
|
|
104
104
|
}, !1)), t;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ae(e) {
|
|
107
107
|
if (!e.fn)
|
|
108
108
|
return;
|
|
109
|
-
|
|
110
|
-
const t = P, n =
|
|
111
|
-
|
|
109
|
+
Ne(e);
|
|
110
|
+
const t = P, n = A, r = Ue;
|
|
111
|
+
A = P = e, qt(e, e.value, r), A = n, P = t;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function qt(e, t, n) {
|
|
114
114
|
let r;
|
|
115
115
|
try {
|
|
116
116
|
r = e.fn(t);
|
|
117
|
-
} catch (
|
|
118
|
-
e.pure && (e.state =
|
|
117
|
+
} catch (l) {
|
|
118
|
+
e.pure && (e.state = J, e.owned && e.owned.forEach(Ne), e.owned = null), Nt(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 ? Ct(e, r) : e.value = r, e.updatedAt = n);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
const
|
|
122
|
+
function _t(e, t, n, r = J, l) {
|
|
123
|
+
const o = {
|
|
124
124
|
fn: e,
|
|
125
125
|
state: r,
|
|
126
126
|
updatedAt: null,
|
|
@@ -133,77 +133,77 @@ function Ct(e, t, n, r = Q, o) {
|
|
|
133
133
|
context: null,
|
|
134
134
|
pure: n
|
|
135
135
|
};
|
|
136
|
-
return P === null || P !==
|
|
136
|
+
return P === null || P !== vt && (P.owned ? P.owned.push(o) : P.owned = [o]), o;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const t =
|
|
138
|
+
function St(e) {
|
|
139
|
+
const t = K;
|
|
140
140
|
if (e.state === 0 || t)
|
|
141
141
|
return;
|
|
142
|
-
if (e.state ===
|
|
143
|
-
return
|
|
142
|
+
if (e.state === be || t)
|
|
143
|
+
return we(e);
|
|
144
144
|
if (e.suspense && U(e.suspense.inFallback))
|
|
145
145
|
return e.suspense.effects.push(e);
|
|
146
146
|
const n = [e];
|
|
147
147
|
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ue); )
|
|
148
148
|
(e.state || t) && n.push(e);
|
|
149
149
|
for (let r = n.length - 1; r >= 0; r--)
|
|
150
|
-
if (e = n[r], e.state ===
|
|
151
|
-
|
|
152
|
-
else if (e.state ===
|
|
153
|
-
const
|
|
154
|
-
E = null, se(() =>
|
|
150
|
+
if (e = n[r], e.state === J || t)
|
|
151
|
+
Ae(e);
|
|
152
|
+
else if (e.state === be || t) {
|
|
153
|
+
const l = E;
|
|
154
|
+
E = null, se(() => we(e, n[0]), !1), E = l;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function se(e, t) {
|
|
158
158
|
if (E)
|
|
159
159
|
return e();
|
|
160
160
|
let n = !1;
|
|
161
|
-
t || (E = []),
|
|
161
|
+
t || (E = []), X ? n = !0 : X = [], Ue++;
|
|
162
162
|
try {
|
|
163
163
|
const r = e();
|
|
164
|
-
return
|
|
164
|
+
return en(n), r;
|
|
165
165
|
} catch (r) {
|
|
166
|
-
n || (
|
|
166
|
+
n || (X = null), E = null, Nt(r);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
if (E && (
|
|
169
|
+
function en(e) {
|
|
170
|
+
if (E && (kt(E), E = null), e)
|
|
171
171
|
return;
|
|
172
|
-
const t =
|
|
173
|
-
|
|
172
|
+
const t = X;
|
|
173
|
+
X = null, t.length && se(() => Qt(t), !1);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function kt(e) {
|
|
176
176
|
for (let t = 0; t < e.length; t++)
|
|
177
|
-
|
|
177
|
+
St(e[t]);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
const n =
|
|
179
|
+
function we(e, t) {
|
|
180
|
+
const n = K;
|
|
181
181
|
e.state = 0;
|
|
182
182
|
for (let r = 0; r < e.sources.length; r += 1) {
|
|
183
|
-
const
|
|
184
|
-
|
|
183
|
+
const l = e.sources[r];
|
|
184
|
+
l.sources && (l.state === J || n ? l !== t && St(l) : (l.state === be || n) && we(l, t));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
const t =
|
|
187
|
+
function At(e) {
|
|
188
|
+
const t = K;
|
|
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 =
|
|
191
|
+
(!r.state || t) && (r.state = be, r.pure ? E.push(r) : X.push(r), r.observers && At(r));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ne(e) {
|
|
195
195
|
let t;
|
|
196
196
|
if (e.sources)
|
|
197
197
|
for (; e.sources.length; ) {
|
|
198
|
-
const n = e.sources.pop(), r = e.sourceSlots.pop(),
|
|
199
|
-
if (
|
|
200
|
-
const
|
|
201
|
-
r <
|
|
198
|
+
const n = e.sources.pop(), r = e.sourceSlots.pop(), l = n.observers;
|
|
199
|
+
if (l && l.length) {
|
|
200
|
+
const o = l.pop(), s = n.observerSlots.pop();
|
|
201
|
+
r < l.length && (o.sourceSlots[s] = r, l[r] = o, n.observerSlots[r] = s);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
if (e.owned) {
|
|
205
205
|
for (t = 0; t < e.owned.length; t++)
|
|
206
|
-
|
|
206
|
+
Ne(e.owned[t]);
|
|
207
207
|
e.owned = null;
|
|
208
208
|
}
|
|
209
209
|
if (e.cleanups) {
|
|
@@ -213,11 +213,11 @@ function ke(e) {
|
|
|
213
213
|
}
|
|
214
214
|
e.state = 0, e.context = null;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function tn(e) {
|
|
217
217
|
return e instanceof Error || typeof e == "string" ? e : new Error("Unknown error");
|
|
218
218
|
}
|
|
219
219
|
function Nt(e) {
|
|
220
|
-
throw e =
|
|
220
|
+
throw e = tn(e), e;
|
|
221
221
|
}
|
|
222
222
|
function Me(e) {
|
|
223
223
|
if (typeof e == "function" && !e.length)
|
|
@@ -233,81 +233,81 @@ function Me(e) {
|
|
|
233
233
|
return e;
|
|
234
234
|
}
|
|
235
235
|
const De = Symbol("fallback");
|
|
236
|
-
function
|
|
236
|
+
function xe(e) {
|
|
237
237
|
for (let t = 0; t < e.length; t++)
|
|
238
238
|
e[t]();
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
let r = [],
|
|
242
|
-
return bt(() =>
|
|
240
|
+
function nn(e, t, n = {}) {
|
|
241
|
+
let r = [], l = [], o = [], s = 0, i = t.length > 1 ? [] : null;
|
|
242
|
+
return bt(() => xe(o)), () => {
|
|
243
243
|
let a = e() || [], c, u;
|
|
244
|
-
return a[
|
|
245
|
-
let d = a.length,
|
|
244
|
+
return a[ye], U(() => {
|
|
245
|
+
let d = a.length, h, v, b, w, k, x, N, T, O;
|
|
246
246
|
if (d === 0)
|
|
247
|
-
s !== 0 && (
|
|
247
|
+
s !== 0 && (xe(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [De], l[0] = ee((H) => (o[0] = H, n.fallback())), s = 1);
|
|
248
248
|
else if (s === 0) {
|
|
249
|
-
for (
|
|
250
|
-
r[u] = a[u],
|
|
249
|
+
for (l = new Array(d), u = 0; u < d; u++)
|
|
250
|
+
r[u] = a[u], l[u] = ee(p);
|
|
251
251
|
s = d;
|
|
252
252
|
} else {
|
|
253
|
-
for (
|
|
253
|
+
for (b = new Array(d), w = new Array(d), i && (k = new Array(d)), x = 0, N = Math.min(s, d); x < N && r[x] === a[x]; x++)
|
|
254
254
|
;
|
|
255
|
-
for (
|
|
256
|
-
|
|
257
|
-
for (
|
|
258
|
-
|
|
259
|
-
for (c = x; c <=
|
|
260
|
-
|
|
255
|
+
for (N = s - 1, T = d - 1; N >= x && T >= x && r[N] === a[T]; N--, T--)
|
|
256
|
+
b[T] = l[N], w[T] = o[N], i && (k[T] = i[N]);
|
|
257
|
+
for (h = /* @__PURE__ */ new Map(), v = new Array(T + 1), u = T; u >= x; u--)
|
|
258
|
+
O = a[u], c = h.get(O), v[u] = c === void 0 ? -1 : c, h.set(O, u);
|
|
259
|
+
for (c = x; c <= N; c++)
|
|
260
|
+
O = r[c], u = h.get(O), u !== void 0 && u !== -1 ? (b[u] = l[c], w[u] = o[c], i && (k[u] = i[c]), u = v[u], h.set(O, u)) : o[c]();
|
|
261
261
|
for (u = x; u < d; u++)
|
|
262
|
-
u in
|
|
263
|
-
|
|
262
|
+
u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] = ee(p);
|
|
263
|
+
l = l.slice(0, s = d), r = a.slice(0);
|
|
264
264
|
}
|
|
265
|
-
return
|
|
265
|
+
return l;
|
|
266
266
|
});
|
|
267
267
|
function p(d) {
|
|
268
|
-
if (
|
|
269
|
-
const [
|
|
270
|
-
return i[u] =
|
|
268
|
+
if (o[u] = d, i) {
|
|
269
|
+
const [h, v] = ne(u);
|
|
270
|
+
return i[u] = v, t(a[u], h);
|
|
271
271
|
}
|
|
272
272
|
return t(a[u]);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
let r = [],
|
|
278
|
-
return bt(() =>
|
|
276
|
+
function rn(e, t, n = {}) {
|
|
277
|
+
let r = [], l = [], o = [], s = [], i = 0, a;
|
|
278
|
+
return bt(() => xe(o)), () => {
|
|
279
279
|
const c = e() || [];
|
|
280
|
-
return c[
|
|
280
|
+
return c[ye], U(() => {
|
|
281
281
|
if (c.length === 0)
|
|
282
|
-
return i !== 0 && (
|
|
283
|
-
for (r[0] === De && (
|
|
284
|
-
a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (
|
|
282
|
+
return i !== 0 && (xe(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [De], l[0] = ee((p) => (o[0] = p, n.fallback())), i = 1), l;
|
|
283
|
+
for (r[0] === De && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
|
|
284
|
+
a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = ee(u));
|
|
285
285
|
for (; a < r.length; a++)
|
|
286
|
-
|
|
287
|
-
return i = s.length =
|
|
286
|
+
o[a]();
|
|
287
|
+
return i = s.length = o.length = c.length, r = c.slice(0), l = l.slice(0, i);
|
|
288
288
|
});
|
|
289
289
|
function u(p) {
|
|
290
|
-
|
|
291
|
-
const [d,
|
|
292
|
-
return s[a] =
|
|
290
|
+
o[a] = p;
|
|
291
|
+
const [d, h] = ne(c[a]);
|
|
292
|
+
return s[a] = h, t(d, a);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function g(e, t) {
|
|
297
297
|
return U(() => e(t || {}));
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function ge() {
|
|
300
300
|
return !0;
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const ln = {
|
|
303
303
|
get(e, t, n) {
|
|
304
304
|
return t === D ? n : e.get(t);
|
|
305
305
|
},
|
|
306
306
|
has(e, t) {
|
|
307
307
|
return t === D ? !0 : e.has(t);
|
|
308
308
|
},
|
|
309
|
-
set:
|
|
310
|
-
deleteProperty:
|
|
309
|
+
set: ge,
|
|
310
|
+
deleteProperty: ge,
|
|
311
311
|
getOwnPropertyDescriptor(e, t) {
|
|
312
312
|
return {
|
|
313
313
|
configurable: !0,
|
|
@@ -315,8 +315,8 @@ const rn = {
|
|
|
315
315
|
get() {
|
|
316
316
|
return e.get(t);
|
|
317
317
|
},
|
|
318
|
-
set:
|
|
319
|
-
deleteProperty:
|
|
318
|
+
set: ge,
|
|
319
|
+
deleteProperty: ge
|
|
320
320
|
};
|
|
321
321
|
},
|
|
322
322
|
ownKeys(e) {
|
|
@@ -326,44 +326,44 @@ const rn = {
|
|
|
326
326
|
function je(e) {
|
|
327
327
|
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function on(...e) {
|
|
330
330
|
let t = !1;
|
|
331
331
|
for (let r = 0; r < e.length; r++) {
|
|
332
|
-
const
|
|
333
|
-
t = t || !!
|
|
332
|
+
const l = e[r];
|
|
333
|
+
t = t || !!l && D in l, e[r] = typeof l == "function" ? (t = !0, m(l)) : l;
|
|
334
334
|
}
|
|
335
335
|
if (t)
|
|
336
336
|
return new Proxy({
|
|
337
337
|
get(r) {
|
|
338
|
-
for (let
|
|
339
|
-
const
|
|
340
|
-
if (
|
|
341
|
-
return
|
|
338
|
+
for (let l = e.length - 1; l >= 0; l--) {
|
|
339
|
+
const o = je(e[l])[r];
|
|
340
|
+
if (o !== void 0)
|
|
341
|
+
return o;
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
has(r) {
|
|
345
|
-
for (let
|
|
346
|
-
if (r in je(e[
|
|
345
|
+
for (let l = e.length - 1; l >= 0; l--)
|
|
346
|
+
if (r in je(e[l]))
|
|
347
347
|
return !0;
|
|
348
348
|
return !1;
|
|
349
349
|
},
|
|
350
350
|
keys() {
|
|
351
351
|
const r = [];
|
|
352
|
-
for (let
|
|
353
|
-
r.push(...Object.keys(je(e[
|
|
352
|
+
for (let l = 0; l < e.length; l++)
|
|
353
|
+
r.push(...Object.keys(je(e[l])));
|
|
354
354
|
return [...new Set(r)];
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, ln);
|
|
357
357
|
const n = {};
|
|
358
358
|
for (let r = e.length - 1; r >= 0; r--)
|
|
359
359
|
if (e[r]) {
|
|
360
|
-
const
|
|
361
|
-
for (const
|
|
362
|
-
|
|
360
|
+
const l = Object.getOwnPropertyDescriptors(e[r]);
|
|
361
|
+
for (const o in l)
|
|
362
|
+
o in n || Object.defineProperty(n, o, {
|
|
363
363
|
enumerable: !0,
|
|
364
364
|
get() {
|
|
365
365
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
366
|
-
const i = (e[s] || {})[
|
|
366
|
+
const i = (e[s] || {})[o];
|
|
367
367
|
if (i !== void 0)
|
|
368
368
|
return i;
|
|
369
369
|
}
|
|
@@ -372,36 +372,36 @@ function ln(...e) {
|
|
|
372
372
|
}
|
|
373
373
|
return n;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function G(e) {
|
|
376
376
|
const t = "fallback" in e && {
|
|
377
377
|
fallback: () => e.fallback
|
|
378
378
|
};
|
|
379
|
-
return
|
|
379
|
+
return m(nn(() => e.each, e.children, t || void 0));
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function sn(e) {
|
|
382
382
|
const t = "fallback" in e && {
|
|
383
383
|
fallback: () => e.fallback
|
|
384
384
|
};
|
|
385
|
-
return
|
|
385
|
+
return m(rn(() => e.each, e.children, t || void 0));
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function de(e) {
|
|
388
388
|
let t = !1;
|
|
389
|
-
const n = e.keyed, r =
|
|
390
|
-
equals: (
|
|
389
|
+
const n = e.keyed, r = m(() => e.when, void 0, {
|
|
390
|
+
equals: (l, o) => t ? l === o : !l == !o
|
|
391
391
|
});
|
|
392
|
-
return
|
|
393
|
-
const
|
|
394
|
-
if (
|
|
395
|
-
const
|
|
396
|
-
return t = n || s, s ? U(() => l
|
|
392
|
+
return m(() => {
|
|
393
|
+
const l = r();
|
|
394
|
+
if (l) {
|
|
395
|
+
const o = e.children, s = typeof o == "function" && o.length > 0;
|
|
396
|
+
return t = n || s, s ? U(() => o(l)) : o;
|
|
397
397
|
}
|
|
398
398
|
return e.fallback;
|
|
399
399
|
}, void 0, void 0);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function an(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],
|
|
404
|
-
let s =
|
|
403
|
+
const r = (s, i) => s[0] === i[0] && (t ? s[1] === i[1] : !s[1] == !i[1]) && s[2] === i[2], l = Yt(() => e.children), o = m(() => {
|
|
404
|
+
let s = l();
|
|
405
405
|
Array.isArray(s) || (s = [s]);
|
|
406
406
|
for (let i = 0; i < s.length; i++) {
|
|
407
407
|
const a = s[i].when;
|
|
@@ -412,8 +412,8 @@ function sn(e) {
|
|
|
412
412
|
}, void 0, {
|
|
413
413
|
equals: r
|
|
414
414
|
});
|
|
415
|
-
return
|
|
416
|
-
const [s, i, a] =
|
|
415
|
+
return m(() => {
|
|
416
|
+
const [s, i, a] = o();
|
|
417
417
|
if (s < 0)
|
|
418
418
|
return e.fallback;
|
|
419
419
|
const c = a.children, u = typeof c == "function" && c.length > 0;
|
|
@@ -423,56 +423,56 @@ function sn(e) {
|
|
|
423
423
|
function ae(e) {
|
|
424
424
|
return e;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const cn = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], un = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...cn]), dn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), fn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
427
427
|
className: "class",
|
|
428
428
|
htmlFor: "for"
|
|
429
|
-
}),
|
|
429
|
+
}), Ke = /* @__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
|
+
}), pn = /* @__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"]), hn = {
|
|
437
437
|
xlink: "http://www.w3.org/1999/xlink",
|
|
438
438
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
439
439
|
};
|
|
440
|
-
function
|
|
441
|
-
let r = n.length,
|
|
442
|
-
for (; s <
|
|
440
|
+
function gn(e, t, n) {
|
|
441
|
+
let r = n.length, l = t.length, o = r, s = 0, i = 0, a = t[l - 1].nextSibling, c = null;
|
|
442
|
+
for (; s < l || i < o; ) {
|
|
443
443
|
if (t[s] === n[i]) {
|
|
444
444
|
s++, i++;
|
|
445
445
|
continue;
|
|
446
446
|
}
|
|
447
|
-
for (; t[
|
|
448
|
-
|
|
449
|
-
if (
|
|
450
|
-
const u =
|
|
451
|
-
for (; i <
|
|
447
|
+
for (; t[l - 1] === n[o - 1]; )
|
|
448
|
+
l--, o--;
|
|
449
|
+
if (l === s) {
|
|
450
|
+
const u = o < r ? i ? n[i - 1].nextSibling : n[o - i] : a;
|
|
451
|
+
for (; i < o; )
|
|
452
452
|
e.insertBefore(n[i++], u);
|
|
453
|
-
} else if (
|
|
454
|
-
for (; s <
|
|
453
|
+
} else if (o === i)
|
|
454
|
+
for (; s < l; )
|
|
455
455
|
(!c || !c.has(t[s])) && t[s].remove(), s++;
|
|
456
|
-
else if (t[s] === n[
|
|
457
|
-
const u = t[--
|
|
458
|
-
e.insertBefore(n[i++], t[s++].nextSibling), e.insertBefore(n[--
|
|
456
|
+
else if (t[s] === n[o - 1] && n[i] === t[l - 1]) {
|
|
457
|
+
const u = t[--l].nextSibling;
|
|
458
|
+
e.insertBefore(n[i++], t[s++].nextSibling), e.insertBefore(n[--o], u), t[l] = n[o];
|
|
459
459
|
} else {
|
|
460
460
|
if (!c) {
|
|
461
461
|
c = /* @__PURE__ */ new Map();
|
|
462
462
|
let p = i;
|
|
463
|
-
for (; p <
|
|
463
|
+
for (; p < o; )
|
|
464
464
|
c.set(n[p], p++);
|
|
465
465
|
}
|
|
466
466
|
const u = c.get(t[s]);
|
|
467
467
|
if (u != null)
|
|
468
|
-
if (i < u && u <
|
|
469
|
-
let p = s, d = 1,
|
|
470
|
-
for (; ++p <
|
|
468
|
+
if (i < u && u < o) {
|
|
469
|
+
let p = s, d = 1, h;
|
|
470
|
+
for (; ++p < l && p < o && !((h = c.get(t[p])) == null || h !== u + d); )
|
|
471
471
|
d++;
|
|
472
472
|
if (d > u - i) {
|
|
473
|
-
const
|
|
473
|
+
const v = t[s];
|
|
474
474
|
for (; i < u; )
|
|
475
|
-
e.insertBefore(n[i++],
|
|
475
|
+
e.insertBefore(n[i++], v);
|
|
476
476
|
} else
|
|
477
477
|
e.replaceChild(n[i++], t[s++]);
|
|
478
478
|
} else
|
|
@@ -482,89 +482,89 @@ function hn(e, t, n) {
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
let
|
|
488
|
-
return ee((
|
|
489
|
-
|
|
485
|
+
const Xe = "_$DX_DELEGATE";
|
|
486
|
+
function mn(e, t, n, r = {}) {
|
|
487
|
+
let l;
|
|
488
|
+
return ee((o) => {
|
|
489
|
+
l = o, t === document ? e() : f(t, e(), t.firstChild ? null : void 0, n);
|
|
490
490
|
}, r.owner), () => {
|
|
491
|
-
|
|
491
|
+
l(), t.textContent = "";
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function y(e, t, n) {
|
|
495
495
|
const r = document.createElement("template");
|
|
496
496
|
r.innerHTML = e;
|
|
497
|
-
let
|
|
498
|
-
return n && (
|
|
497
|
+
let l = r.content.firstChild;
|
|
498
|
+
return n && (l = l.firstChild), l;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
const n = t[
|
|
502
|
-
for (let r = 0,
|
|
503
|
-
const
|
|
504
|
-
n.has(
|
|
500
|
+
function Te(e, t = window.document) {
|
|
501
|
+
const n = t[Xe] || (t[Xe] = /* @__PURE__ */ new Set());
|
|
502
|
+
for (let r = 0, l = e.length; r < l; r++) {
|
|
503
|
+
const o = e[r];
|
|
504
|
+
n.has(o) || (n.add(o), t.addEventListener(o, xn));
|
|
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 $n(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) {
|
|
514
514
|
t == null ? e.removeAttribute("class") : e.className = t;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ce(e, t, n, r) {
|
|
517
517
|
if (r)
|
|
518
518
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
519
519
|
else if (Array.isArray(n)) {
|
|
520
|
-
const
|
|
521
|
-
e.addEventListener(t, n[0] = (
|
|
520
|
+
const l = n[0];
|
|
521
|
+
e.addEventListener(t, n[0] = (o) => l.call(e, n[1], o));
|
|
522
522
|
} else
|
|
523
523
|
e.addEventListener(t, n);
|
|
524
524
|
}
|
|
525
525
|
function yn(e, t, n = {}) {
|
|
526
|
-
const r = Object.keys(t || {}),
|
|
527
|
-
let
|
|
528
|
-
for (
|
|
529
|
-
const i = o
|
|
530
|
-
!i || i === "undefined" || t[i] || (
|
|
526
|
+
const r = Object.keys(t || {}), l = Object.keys(n);
|
|
527
|
+
let o, s;
|
|
528
|
+
for (o = 0, s = l.length; o < s; o++) {
|
|
529
|
+
const i = l[o];
|
|
530
|
+
!i || i === "undefined" || t[i] || (Ge(e, i, !1), delete n[i]);
|
|
531
531
|
}
|
|
532
|
-
for (
|
|
533
|
-
const i = r[
|
|
534
|
-
!i || i === "undefined" || n[i] === a || !a || (
|
|
532
|
+
for (o = 0, s = r.length; o < s; o++) {
|
|
533
|
+
const i = r[o], a = !!t[i];
|
|
534
|
+
!i || i === "undefined" || n[i] === a || !a || (Ge(e, i, !0), n[i] = a);
|
|
535
535
|
}
|
|
536
536
|
return n;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Tt(e, t, n) {
|
|
539
539
|
if (!t)
|
|
540
540
|
return n ? j(e, "style") : t;
|
|
541
541
|
const r = e.style;
|
|
542
542
|
if (typeof t == "string")
|
|
543
543
|
return r.cssText = t;
|
|
544
544
|
typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
545
|
-
let
|
|
546
|
-
for (
|
|
547
|
-
t[
|
|
548
|
-
for (
|
|
549
|
-
|
|
545
|
+
let l, o;
|
|
546
|
+
for (o in n)
|
|
547
|
+
t[o] == null && r.removeProperty(o), delete n[o];
|
|
548
|
+
for (o in t)
|
|
549
|
+
l = t[o], l !== n[o] && (r.setProperty(o, l), n[o] = l);
|
|
550
550
|
return n;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
const
|
|
554
|
-
return r ||
|
|
552
|
+
function vn(e, t = {}, n, r) {
|
|
553
|
+
const l = {};
|
|
554
|
+
return r || S(() => l.children = re(e, t.children, l.children)), S(() => t.ref && t.ref(e)), S(() => bn(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 re(e, t, r, n);
|
|
559
|
-
|
|
559
|
+
S((l) => re(e, t(), l, n), r);
|
|
560
560
|
}
|
|
561
|
-
function bn(e, t, n, r,
|
|
561
|
+
function bn(e, t, n, r, l = {}, o = !1) {
|
|
562
562
|
t || (t = {});
|
|
563
|
-
for (const s in
|
|
563
|
+
for (const s in l)
|
|
564
564
|
if (!(s in t)) {
|
|
565
565
|
if (s === "children")
|
|
566
566
|
continue;
|
|
567
|
-
|
|
567
|
+
l[s] = Qe(e, s, null, l[s], n, o);
|
|
568
568
|
}
|
|
569
569
|
for (const s in t) {
|
|
570
570
|
if (s === "children") {
|
|
@@ -572,27 +572,27 @@ function bn(e, t, n, r, o = {}, l = !1) {
|
|
|
572
572
|
continue;
|
|
573
573
|
}
|
|
574
574
|
const i = t[s];
|
|
575
|
-
|
|
575
|
+
l[s] = Qe(e, s, i, l[s], n, o);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function wn(e) {
|
|
579
579
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Ge(e, t, n) {
|
|
582
582
|
const r = t.trim().split(/\s+/);
|
|
583
|
-
for (let
|
|
584
|
-
e.classList.toggle(r[
|
|
583
|
+
for (let l = 0, o = r.length; l < o; l++)
|
|
584
|
+
e.classList.toggle(r[l], n);
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Qe(e, t, n, r, l, o) {
|
|
587
587
|
let s, i, a;
|
|
588
588
|
if (t === "style")
|
|
589
|
-
return
|
|
589
|
+
return Tt(e, n, r);
|
|
590
590
|
if (t === "classList")
|
|
591
591
|
return yn(e, n, r);
|
|
592
592
|
if (n === r)
|
|
593
593
|
return r;
|
|
594
594
|
if (t === "ref")
|
|
595
|
-
|
|
595
|
+
o || n(e);
|
|
596
596
|
else if (t.slice(0, 3) === "on:") {
|
|
597
597
|
const c = t.slice(3);
|
|
598
598
|
r && e.removeEventListener(c, r), n && e.addEventListener(c, n);
|
|
@@ -600,21 +600,21 @@ function Ge(e, t, n, r, o, l) {
|
|
|
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 = pn.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
|
-
(u || n) && (
|
|
609
|
-
} else if ((a =
|
|
610
|
-
t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[
|
|
608
|
+
(u || n) && (Ce(e, c, n, u), u && Te([c]));
|
|
609
|
+
} else if ((a = dn.has(t)) || !l && (Ke[t] || (i = un.has(t))) || (s = e.nodeName.includes("-")))
|
|
610
|
+
t === "class" || t === "className" ? C(e, n) : s && !i && !a ? e[wn(t)] = n : e[Ke[t] || t] = n;
|
|
611
611
|
else {
|
|
612
|
-
const c =
|
|
613
|
-
c ?
|
|
612
|
+
const c = l && t.indexOf(":") > -1 && hn[t.split(":")[0]];
|
|
613
|
+
c ? $n(e, c, t, n) : j(e, fn[t] || t, n);
|
|
614
614
|
}
|
|
615
615
|
return n;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function xn(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", {
|
|
@@ -625,43 +625,43 @@ function wn(e) {
|
|
|
625
625
|
get() {
|
|
626
626
|
return n || document;
|
|
627
627
|
}
|
|
628
|
-
}),
|
|
628
|
+
}), V.registry && !V.done && (V.done = !0, document.querySelectorAll("[id^=pl-]").forEach((r) => {
|
|
629
629
|
for (; r && r.nodeType !== 8 && r.nodeValue !== "pl-" + e; ) {
|
|
630
|
-
let
|
|
631
|
-
r.remove(), r =
|
|
630
|
+
let l = r.nextSibling;
|
|
631
|
+
r.remove(), r = l;
|
|
632
632
|
}
|
|
633
633
|
r && r.remove();
|
|
634
634
|
})); n; ) {
|
|
635
635
|
const r = n[t];
|
|
636
636
|
if (r && !n.disabled) {
|
|
637
|
-
const
|
|
638
|
-
if (
|
|
637
|
+
const l = n[`${t}Data`];
|
|
638
|
+
if (l !== void 0 ? r.call(n, l, e) : r.call(n, e), e.cancelBubble)
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
641
|
n = n._$host || n.parentNode || n.host;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function re(e, t, n, r,
|
|
645
|
-
for (
|
|
644
|
+
function re(e, t, n, r, l) {
|
|
645
|
+
for (V.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
646
646
|
n = n();
|
|
647
647
|
if (t === n)
|
|
648
648
|
return n;
|
|
649
|
-
const
|
|
650
|
-
if (e = s && n[0] && n[0].parentNode || e,
|
|
651
|
-
if (
|
|
649
|
+
const o = typeof t, s = r !== void 0;
|
|
650
|
+
if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
|
|
651
|
+
if (V.context)
|
|
652
652
|
return n;
|
|
653
|
-
if (
|
|
653
|
+
if (o === "number" && (t = t.toString()), s) {
|
|
654
654
|
let i = n[0];
|
|
655
655
|
i && i.nodeType === 3 ? i.data = t : i = document.createTextNode(t), n = Y(e, n, r, i);
|
|
656
656
|
} else
|
|
657
657
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
658
|
-
} else if (t == null ||
|
|
659
|
-
if (
|
|
658
|
+
} else if (t == null || o === "boolean") {
|
|
659
|
+
if (V.context)
|
|
660
660
|
return n;
|
|
661
661
|
n = Y(e, n, r);
|
|
662
662
|
} else {
|
|
663
|
-
if (
|
|
664
|
-
return
|
|
663
|
+
if (o === "function")
|
|
664
|
+
return S(() => {
|
|
665
665
|
let i = t();
|
|
666
666
|
for (; typeof i == "function"; )
|
|
667
667
|
i = i();
|
|
@@ -669,9 +669,9 @@ function re(e, t, n, r, o) {
|
|
|
669
669
|
}), () => n;
|
|
670
670
|
if (Array.isArray(t)) {
|
|
671
671
|
const i = [], a = n && Array.isArray(n);
|
|
672
|
-
if (Re(i, t, n,
|
|
673
|
-
return
|
|
674
|
-
if (
|
|
672
|
+
if (Re(i, t, n, l))
|
|
673
|
+
return S(() => n = re(e, i, n, r, !0)), () => n;
|
|
674
|
+
if (V.context) {
|
|
675
675
|
if (!i.length)
|
|
676
676
|
return n;
|
|
677
677
|
for (let c = 0; c < i.length; c++)
|
|
@@ -682,10 +682,10 @@ function re(e, t, n, r, o) {
|
|
|
682
682
|
if (n = Y(e, n, r), s)
|
|
683
683
|
return n;
|
|
684
684
|
} else
|
|
685
|
-
a ? n.length === 0 ?
|
|
685
|
+
a ? n.length === 0 ? Je(e, i, r) : gn(e, n, i) : (n && Y(e), Je(e, i));
|
|
686
686
|
n = i;
|
|
687
687
|
} else if (t instanceof Node) {
|
|
688
|
-
if (
|
|
688
|
+
if (V.context && t.parentNode)
|
|
689
689
|
return n = s ? [t] : t;
|
|
690
690
|
if (Array.isArray(n)) {
|
|
691
691
|
if (s)
|
|
@@ -699,51 +699,51 @@ function re(e, t, n, r, o) {
|
|
|
699
699
|
return n;
|
|
700
700
|
}
|
|
701
701
|
function Re(e, t, n, r) {
|
|
702
|
-
let
|
|
703
|
-
for (let
|
|
704
|
-
let i = t[
|
|
702
|
+
let l = !1;
|
|
703
|
+
for (let o = 0, s = t.length; o < s; o++) {
|
|
704
|
+
let i = t[o], a = n && n[o];
|
|
705
705
|
if (i instanceof Node)
|
|
706
706
|
e.push(i);
|
|
707
707
|
else if (!(i == null || i === !0 || i === !1))
|
|
708
708
|
if (Array.isArray(i))
|
|
709
|
-
|
|
709
|
+
l = Re(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
|
-
|
|
714
|
+
l = Re(e, Array.isArray(i) ? i : [i], Array.isArray(a) ? a : [a]) || l;
|
|
715
715
|
} else
|
|
716
|
-
e.push(i),
|
|
716
|
+
e.push(i), l = !0;
|
|
717
717
|
else {
|
|
718
718
|
const c = String(i);
|
|
719
719
|
a && a.nodeType === 3 && a.data === c ? e.push(a) : e.push(document.createTextNode(c));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
return
|
|
722
|
+
return l;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
for (let r = 0,
|
|
724
|
+
function Je(e, t, n = null) {
|
|
725
|
+
for (let r = 0, l = t.length; r < l; r++)
|
|
726
726
|
e.insertBefore(t[r], n);
|
|
727
727
|
}
|
|
728
728
|
function Y(e, t, n, r) {
|
|
729
729
|
if (n === void 0)
|
|
730
730
|
return e.textContent = "";
|
|
731
|
-
const
|
|
731
|
+
const l = r || document.createTextNode("");
|
|
732
732
|
if (t.length) {
|
|
733
|
-
let
|
|
733
|
+
let o = !1;
|
|
734
734
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
735
735
|
const i = t[s];
|
|
736
|
-
if (
|
|
736
|
+
if (l !== i) {
|
|
737
737
|
const a = i.parentNode === e;
|
|
738
|
-
!
|
|
738
|
+
!o && !s ? a ? e.replaceChild(l, i) : e.insertBefore(l, n) : a && i.remove();
|
|
739
739
|
} else
|
|
740
|
-
|
|
740
|
+
o = !0;
|
|
741
741
|
}
|
|
742
742
|
} else
|
|
743
|
-
e.insertBefore(
|
|
744
|
-
return [
|
|
743
|
+
e.insertBefore(l, n);
|
|
744
|
+
return [l];
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var Cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ze = {}, _n = {
|
|
747
747
|
get exports() {
|
|
748
748
|
return ze;
|
|
749
749
|
},
|
|
@@ -754,52 +754,52 @@ var xn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
754
754
|
(function(e, t) {
|
|
755
755
|
(function(n, r) {
|
|
756
756
|
e.exports = r();
|
|
757
|
-
})(
|
|
758
|
-
return function(n, r,
|
|
757
|
+
})(Cn, function() {
|
|
758
|
+
return function(n, r, l) {
|
|
759
759
|
n = n || {};
|
|
760
|
-
var
|
|
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" };
|
|
761
761
|
function i(c, u, p, d) {
|
|
762
|
-
return
|
|
762
|
+
return o.fromToBase(c, u, p, d);
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
for (var
|
|
766
|
-
var
|
|
767
|
-
|
|
768
|
-
var
|
|
769
|
-
if (w =
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
|
|
764
|
+
l.en.relativeTime = s, o.fromToBase = function(c, u, p, d, h) {
|
|
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" }], N = x.length, T = 0; T < N; T += 1) {
|
|
766
|
+
var O = x[T];
|
|
767
|
+
O.d && (v = d ? l(c).diff(p, O.d, !0) : p.diff(c, O.d, !0));
|
|
768
|
+
var H = (n.rounding || Math.round)(Math.abs(v));
|
|
769
|
+
if (w = v > 0, H <= O.r || !O.r) {
|
|
770
|
+
H <= 1 && T > 0 && (O = x[T - 1]);
|
|
771
|
+
var Le = k[O.l];
|
|
772
|
+
h && (H = h("" + H)), b = typeof Le == "string" ? Le.replace("%d", H) : Le(H, u, O.l, w);
|
|
773
773
|
break;
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
if (u)
|
|
777
|
-
return
|
|
778
|
-
var
|
|
779
|
-
return typeof
|
|
780
|
-
},
|
|
777
|
+
return b;
|
|
778
|
+
var Oe = w ? k.future : k.past;
|
|
779
|
+
return typeof Oe == "function" ? Oe(b) : Oe.replace("%s", b);
|
|
780
|
+
}, o.to = function(c, u) {
|
|
781
781
|
return i(c, u, this, !0);
|
|
782
|
-
},
|
|
782
|
+
}, o.from = function(c, u) {
|
|
783
783
|
return i(c, u, this);
|
|
784
784
|
};
|
|
785
785
|
var a = function(c) {
|
|
786
|
-
return c.$u ?
|
|
786
|
+
return c.$u ? l.utc() : l();
|
|
787
787
|
};
|
|
788
|
-
|
|
788
|
+
o.toNow = function(c) {
|
|
789
789
|
return this.to(a(this), c);
|
|
790
|
-
},
|
|
790
|
+
}, o.fromNow = function(c) {
|
|
791
791
|
return this.from(a(this), c);
|
|
792
792
|
};
|
|
793
793
|
};
|
|
794
794
|
});
|
|
795
|
-
})(
|
|
796
|
-
const
|
|
797
|
-
const t =
|
|
798
|
-
return
|
|
799
|
-
onMouseDown:
|
|
795
|
+
})(_n);
|
|
796
|
+
const Sn = ze, kn = /* @__PURE__ */ y("<button></button>"), F = (e) => (() => {
|
|
797
|
+
const t = kn.cloneNode(!0);
|
|
798
|
+
return vn(t, on(e, {
|
|
799
|
+
onMouseDown: An
|
|
800
800
|
}), !1, !1), t;
|
|
801
801
|
})();
|
|
802
|
-
function
|
|
802
|
+
function An(e) {
|
|
803
803
|
e.preventDefault();
|
|
804
804
|
}
|
|
805
805
|
const Nn = `<svg
|
|
@@ -813,29 +813,29 @@ const Nn = `<svg
|
|
|
813
813
|
d="m24 12l-8 10l-8-10z"
|
|
814
814
|
/>
|
|
815
815
|
</svg>
|
|
816
|
-
`,
|
|
816
|
+
`, Tn = `<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"/>
|
|
820
820
|
<path d="M28 12C27.1156 12.0026 26.2571 12.2986 25.5589 12.8415C24.8608 13.3844 24.3624 14.1435 24.142 15H19.858C19.7164 14.4361 19.4525 13.9101 19.085 13.4595C18.7175 13.0089 18.2555 12.6446 17.7315 12.3924C17.2076 12.1402 16.6346 12.0064 16.0532 12.0002C15.4718 11.9941 14.8961 12.1159 14.367 12.357L11.19 8.387C11.7126 7.7007 11.997 6.86262 12 6C12 5.20887 11.7654 4.43552 11.3259 3.77772C10.8864 3.11992 10.2616 2.60723 9.53073 2.30448C8.79983 2.00173 7.99556 1.92252 7.21964 2.07686C6.44371 2.2312 5.73098 2.61216 5.17157 3.17157C4.61216 3.73098 4.2312 4.44371 4.07686 5.21964C3.92252 5.99556 4.00173 6.79983 4.30448 7.53073C4.60723 8.26164 5.11992 8.88635 5.77772 9.32588C6.43552 9.7654 7.20887 10 8 10C8.56387 9.99869 9.12096 9.87698 9.634 9.643L12.81 13.613C12.285 14.298 12.0005 15.137 12.0005 16C12.0005 16.863 12.285 17.702 12.81 18.387L9.634 22.357C9.12096 22.123 8.56387 22.0013 8 22C7.20887 22 6.43552 22.2346 5.77772 22.6741C5.11992 23.1136 4.60723 23.7384 4.30448 24.4693C4.00173 25.2002 3.92252 26.0044 4.07686 26.7804C4.2312 27.5563 4.61216 28.269 5.17157 28.8284C5.73098 29.3878 6.44371 29.7688 7.21964 29.9231C7.99556 30.0775 8.79983 29.9983 9.53073 29.6955C10.2616 29.3928 10.8864 28.8801 11.3259 28.2223C11.7654 27.5645 12 26.7911 12 26C11.9971 25.1374 11.7127 24.2993 11.19 23.613L14.366 19.643C14.8952 19.8843 15.4709 20.0062 16.0525 20.0002C16.634 19.9942 17.2071 19.8603 17.7312 19.6081C18.2552 19.3559 18.7174 18.9915 19.0849 18.5408C19.4525 18.0901 19.7164 17.5641 19.858 17H24.142C24.3303 17.7226 24.7175 18.3778 25.2595 18.8914C25.8015 19.405 26.4766 19.7563 27.2083 19.9055C27.9399 20.0547 28.6987 19.9957 29.3985 19.7353C30.0983 19.4749 30.7111 19.0234 31.1673 18.4323C31.6234 17.8411 31.9047 17.1339 31.9791 16.3909C32.0535 15.6479 31.9181 14.899 31.5882 14.2291C31.2584 13.5592 30.7473 12.9952 30.113 12.6012C29.4787 12.2072 28.7467 11.9989 28 12ZM6 6C6 5.60444 6.1173 5.21776 6.33706 4.88886C6.55682 4.55996 6.86918 4.30362 7.23463 4.15224C7.60009 4.00087 8.00222 3.96126 8.39018 4.03843C8.77814 4.1156 9.13451 4.30608 9.41421 4.58579C9.69392 4.86549 9.8844 5.22186 9.96157 5.60982C10.0387 5.99778 9.99913 6.39991 9.84776 6.76537C9.69638 7.13082 9.44004 7.44318 9.11114 7.66294C8.78224 7.8827 8.39556 8 8 8C7.46973 7.99947 6.96133 7.78859 6.58637 7.41363C6.21141 7.03867 6.00053 6.53027 6 6ZM8 28C7.60444 28 7.21776 27.8827 6.88886 27.6629C6.55996 27.4432 6.30362 27.1308 6.15224 26.7654C6.00087 26.3999 5.96126 25.9978 6.03843 25.6098C6.1156 25.2219 6.30608 24.8655 6.58579 24.5858C6.86549 24.3061 7.22186 24.1156 7.60982 24.0384C7.99778 23.9613 8.39991 24.0009 8.76537 24.1522C9.13082 24.3036 9.44318 24.56 9.66294 24.8889C9.8827 25.2178 10 25.6044 10 26C9.99947 26.5303 9.78859 27.0387 9.41363 27.4136C9.03867 27.7886 8.53027 27.9995 8 28ZM16 18C15.6044 18 15.2178 17.8827 14.8889 17.6629C14.56 17.4432 14.3036 17.1308 14.1522 16.7654C14.0009 16.3999 13.9613 15.9978 14.0384 15.6098C14.1156 15.2219 14.3061 14.8655 14.5858 14.5858C14.8655 14.3061 15.2219 14.1156 15.6098 14.0384C15.9978 13.9613 16.3999 14.0009 16.7654 14.1522C17.1308 14.3036 17.4432 14.56 17.6629 14.8889C17.8827 15.2178 18 15.6044 18 16C17.9995 16.5303 17.7886 17.0387 17.4136 17.4136C17.0387 17.7886 16.5303 17.9995 16 18ZM28 18C27.6044 18 27.2178 17.8827 26.8889 17.6629C26.56 17.4432 26.3036 17.1308 26.1522 16.7654C26.0009 16.3999 25.9613 15.9978 26.0384 15.6098C26.1156 15.2219 26.3061 14.8655 26.5858 14.5858C26.8655 14.3061 27.2219 14.1156 27.6098 14.0384C27.9978 13.9613 28.3999 14.0009 28.7654 14.1522C29.1308 14.3036 29.4432 14.56 29.6629 14.8889C29.8827 15.2178 30 15.6044 30 16C29.9995 16.5303 29.7886 17.0387 29.4136 17.4136C29.0387 17.7886 28.5303 17.9995 28 18Z" fill="currentColor"/>
|
|
821
821
|
</svg>
|
|
822
|
-
`,
|
|
822
|
+
`, Pn = `<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
|
+
`, En = `<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
|
+
`, Ln = `<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
831
|
`, On = /* @__PURE__ */ Object.assign({
|
|
832
832
|
"/src/assets/icons/caret-down.svg": Nn,
|
|
833
|
-
"/src/assets/icons/network.svg":
|
|
834
|
-
"/src/assets/icons/search.svg":
|
|
835
|
-
"/src/assets/icons/send.svg":
|
|
836
|
-
"/src/assets/icons/settings.svg":
|
|
833
|
+
"/src/assets/icons/network.svg": Tn,
|
|
834
|
+
"/src/assets/icons/search.svg": Pn,
|
|
835
|
+
"/src/assets/icons/send.svg": En,
|
|
836
|
+
"/src/assets/icons/settings.svg": Ln
|
|
837
837
|
});
|
|
838
|
-
function
|
|
838
|
+
function jn(e) {
|
|
839
839
|
return On[`/src/assets/icons/${e}.svg`];
|
|
840
840
|
}
|
|
841
841
|
const Ze = `
|
|
@@ -845,59 +845,59 @@ const Ze = `
|
|
|
845
845
|
top: 0;
|
|
846
846
|
left: 0;
|
|
847
847
|
`;
|
|
848
|
-
function
|
|
848
|
+
function In(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
|
|
852
|
-
let n = "", r = "",
|
|
853
|
-
for (let
|
|
854
|
-
let s = e[
|
|
855
|
-
|
|
851
|
+
let Mn = { data: "" }, Dn = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Mn, Rn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, zn = /\/\*[^]*?\*\/| +/g, Ye = /\n+/g, W = (e, t) => {
|
|
852
|
+
let n = "", r = "", l = "";
|
|
853
|
+
for (let o in e) {
|
|
854
|
+
let s = e[o];
|
|
855
|
+
o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : r += o[1] == "f" ? W(s, o) : o + "{" + W(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? r += W(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 += W.p ? W.p(o, s) : o + ":" + s + ";");
|
|
856
856
|
}
|
|
857
|
-
return n + (t &&
|
|
858
|
-
}, z = {},
|
|
857
|
+
return n + (t && l ? t + "{" + l + "}" : l) + r;
|
|
858
|
+
}, z = {}, Pt = (e) => {
|
|
859
859
|
if (typeof e == "object") {
|
|
860
860
|
let t = "";
|
|
861
861
|
for (let n in e)
|
|
862
|
-
t += n +
|
|
862
|
+
t += n + Pt(e[n]);
|
|
863
863
|
return t;
|
|
864
864
|
}
|
|
865
865
|
return e;
|
|
866
|
-
},
|
|
867
|
-
let
|
|
866
|
+
}, Fn = (e, t, n, r, l) => {
|
|
867
|
+
let o = Pt(e), s = z[o] || (z[o] = ((a) => {
|
|
868
868
|
let c = 0, u = 11;
|
|
869
869
|
for (; c < a.length; )
|
|
870
870
|
u = 101 * u + a.charCodeAt(c++) >>> 0;
|
|
871
871
|
return "go" + u;
|
|
872
|
-
})(
|
|
872
|
+
})(o));
|
|
873
873
|
if (!z[s]) {
|
|
874
|
-
let a =
|
|
874
|
+
let a = o !== e ? e : ((c) => {
|
|
875
875
|
let u, p, d = [{}];
|
|
876
|
-
for (; u =
|
|
876
|
+
for (; u = Rn.exec(c.replace(zn, "")); )
|
|
877
877
|
u[4] ? d.shift() : u[3] ? (p = u[3].replace(Ye, " ").trim(), d.unshift(d[0][p] = d[0][p] || {})) : d[0][u[1]] = u[2].replace(Ye, " ").trim();
|
|
878
878
|
return d[0];
|
|
879
879
|
})(e);
|
|
880
|
-
z[s] =
|
|
880
|
+
z[s] = W(l ? { ["@keyframes " + s]: a } : a, n ? "" : "." + s);
|
|
881
881
|
}
|
|
882
882
|
let i = n && z.g ? z.g : null;
|
|
883
883
|
return n && (z.g = z[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
|
})(z[s], t, r, i), s;
|
|
886
|
-
},
|
|
887
|
-
let s = t[
|
|
886
|
+
}, Bn = (e, t, n) => e.reduce((r, l, o) => {
|
|
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;
|
|
890
|
-
s = a ? "." + a : i && typeof i == "object" ? i.props ? "" :
|
|
890
|
+
s = a ? "." + a : i && typeof i == "object" ? i.props ? "" : W(i, "") : i === !1 ? "" : i;
|
|
891
891
|
}
|
|
892
|
-
return r +
|
|
892
|
+
return r + l + (s ?? "");
|
|
893
893
|
}, "");
|
|
894
894
|
function _(e) {
|
|
895
895
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
896
|
-
return
|
|
896
|
+
return Fn(n.unshift ? n.raw ? Bn(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, l) => Object.assign(r, l && l.call ? l(t.p) : l), {}) : n, Dn(t.target), t.g, t.o, t.k);
|
|
897
897
|
}
|
|
898
898
|
_.bind({ g: 1 });
|
|
899
899
|
_.bind({ k: 1 });
|
|
900
|
-
const
|
|
900
|
+
const Hn = /* @__PURE__ */ y("<div></div>"), Vn = _`
|
|
901
901
|
&&& {
|
|
902
902
|
position: relative;
|
|
903
903
|
color: currentColor;
|
|
@@ -909,33 +909,33 @@ const Bn = /* @__PURE__ */ $("<div></div>"), Hn = _`
|
|
|
909
909
|
${Ze};
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
`,
|
|
913
|
-
const t =
|
|
912
|
+
`, Pe = (e) => {
|
|
913
|
+
const t = jn(e.name);
|
|
914
914
|
return (() => {
|
|
915
|
-
const n =
|
|
916
|
-
return n.innerHTML = t,
|
|
917
|
-
const
|
|
915
|
+
const n = Hn.cloneNode(!0);
|
|
916
|
+
return n.innerHTML = t, S((r) => {
|
|
917
|
+
const l = `icon ${e.class || ""} ${Vn}`, o = {
|
|
918
918
|
color: e.color,
|
|
919
|
-
"--icon-size": e.size &&
|
|
919
|
+
"--icon-size": e.size && In(e.size)
|
|
920
920
|
};
|
|
921
|
-
return
|
|
921
|
+
return l !== r._v$ && C(n, r._v$ = l), r._v$2 = Tt(n, o, r._v$2), r;
|
|
922
922
|
}, {
|
|
923
923
|
_v$: void 0,
|
|
924
924
|
_v$2: void 0
|
|
925
925
|
}), n;
|
|
926
926
|
})();
|
|
927
|
-
},
|
|
928
|
-
function
|
|
927
|
+
}, _e = Symbol("store-raw"), fe = Symbol("store-node"), Un = Symbol("store-name");
|
|
928
|
+
function Et(e, t) {
|
|
929
929
|
let n = e[D];
|
|
930
930
|
if (!n && (Object.defineProperty(e, D, {
|
|
931
931
|
value: n = new Proxy(e, Kn)
|
|
932
932
|
}), !Array.isArray(e))) {
|
|
933
|
-
const r = Object.keys(e),
|
|
934
|
-
for (let
|
|
935
|
-
const i = r[
|
|
936
|
-
|
|
937
|
-
enumerable:
|
|
938
|
-
get:
|
|
933
|
+
const r = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
934
|
+
for (let o = 0, s = r.length; o < s; o++) {
|
|
935
|
+
const i = r[o];
|
|
936
|
+
l[i].get && Object.defineProperty(e, i, {
|
|
937
|
+
enumerable: l[i].enumerable,
|
|
938
|
+
get: l[i].get.bind(n)
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
941
|
}
|
|
@@ -946,44 +946,44 @@ function le(e) {
|
|
|
946
946
|
return e != null && typeof e == "object" && (e[D] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
947
947
|
}
|
|
948
948
|
function oe(e, t = /* @__PURE__ */ new Set()) {
|
|
949
|
-
let n, r,
|
|
950
|
-
if (n = e != null && e[
|
|
949
|
+
let n, r, l, o;
|
|
950
|
+
if (n = e != null && e[_e])
|
|
951
951
|
return n;
|
|
952
952
|
if (!le(e) || t.has(e))
|
|
953
953
|
return e;
|
|
954
954
|
if (Array.isArray(e)) {
|
|
955
955
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
956
956
|
for (let s = 0, i = e.length; s < i; s++)
|
|
957
|
-
|
|
957
|
+
l = e[s], (r = oe(l, t)) !== l && (e[s] = r);
|
|
958
958
|
} else {
|
|
959
959
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
960
960
|
const s = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
|
|
961
961
|
for (let a = 0, c = s.length; a < c; a++)
|
|
962
|
-
|
|
962
|
+
o = s[a], !i[o].get && (l = e[o], (r = oe(l, t)) !== l && (e[o] = r));
|
|
963
963
|
}
|
|
964
964
|
return e;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
let t = e[
|
|
968
|
-
return t || Object.defineProperty(e,
|
|
966
|
+
function We(e) {
|
|
967
|
+
let t = e[fe];
|
|
968
|
+
return t || Object.defineProperty(e, fe, {
|
|
969
969
|
value: t = {}
|
|
970
970
|
}), t;
|
|
971
971
|
}
|
|
972
972
|
function Fe(e, t, n) {
|
|
973
973
|
return e[t] || (e[t] = Ot(n));
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Zn(e, t) {
|
|
976
976
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
977
|
-
return !n || n.get || !n.configurable || t === D || t ===
|
|
977
|
+
return !n || n.get || !n.configurable || t === D || t === fe || t === Un || (delete n.value, delete n.writable, n.get = () => e[D][t]), n;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
if (
|
|
981
|
-
const t =
|
|
979
|
+
function Lt(e) {
|
|
980
|
+
if (wt()) {
|
|
981
|
+
const t = We(e);
|
|
982
982
|
(t._ || (t._ = Ot()))();
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
985
|
+
function Wn(e) {
|
|
986
|
+
return Lt(e), Reflect.ownKeys(e);
|
|
987
987
|
}
|
|
988
988
|
function Ot(e) {
|
|
989
989
|
const [t, n] = ne(e, {
|
|
@@ -994,24 +994,24 @@ function Ot(e) {
|
|
|
994
994
|
}
|
|
995
995
|
const Kn = {
|
|
996
996
|
get(e, t, n) {
|
|
997
|
-
if (t ===
|
|
997
|
+
if (t === _e)
|
|
998
998
|
return e;
|
|
999
999
|
if (t === D)
|
|
1000
1000
|
return n;
|
|
1001
|
-
if (t ===
|
|
1002
|
-
return
|
|
1003
|
-
const r =
|
|
1004
|
-
let
|
|
1005
|
-
if (t ===
|
|
1006
|
-
return
|
|
1007
|
-
if (!
|
|
1001
|
+
if (t === ye)
|
|
1002
|
+
return Lt(e), n;
|
|
1003
|
+
const r = We(e), l = r.hasOwnProperty(t);
|
|
1004
|
+
let o = l ? r[t]() : e[t];
|
|
1005
|
+
if (t === fe || t === "__proto__")
|
|
1006
|
+
return o;
|
|
1007
|
+
if (!l) {
|
|
1008
1008
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
1009
|
-
|
|
1009
|
+
wt() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Fe(r, t, o)());
|
|
1010
1010
|
}
|
|
1011
|
-
return le(
|
|
1011
|
+
return le(o) ? Et(o) : o;
|
|
1012
1012
|
},
|
|
1013
1013
|
has(e, t) {
|
|
1014
|
-
return t ===
|
|
1014
|
+
return t === _e || t === D || t === ye || t === fe || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
|
|
1015
1015
|
},
|
|
1016
1016
|
set() {
|
|
1017
1017
|
return !0;
|
|
@@ -1019,39 +1019,39 @@ const Kn = {
|
|
|
1019
1019
|
deleteProperty() {
|
|
1020
1020
|
return !0;
|
|
1021
1021
|
},
|
|
1022
|
-
ownKeys:
|
|
1023
|
-
getOwnPropertyDescriptor:
|
|
1022
|
+
ownKeys: Wn,
|
|
1023
|
+
getOwnPropertyDescriptor: Zn
|
|
1024
1024
|
};
|
|
1025
1025
|
function ie(e, t, n, r = !1) {
|
|
1026
1026
|
if (!r && e[t] === n)
|
|
1027
1027
|
return;
|
|
1028
|
-
const
|
|
1028
|
+
const l = e[t], o = e.length;
|
|
1029
1029
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
1030
|
-
let s =
|
|
1031
|
-
(i = Fe(s, t,
|
|
1030
|
+
let s = We(e), i;
|
|
1031
|
+
(i = Fe(s, t, l)) && i.$(() => n), Array.isArray(e) && e.length !== o && (i = Fe(s, "length", o)) && i.$(e.length), (i = s._) && i.$();
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function jt(e, t) {
|
|
1034
1034
|
const n = Object.keys(t);
|
|
1035
1035
|
for (let r = 0; r < n.length; r += 1) {
|
|
1036
|
-
const
|
|
1037
|
-
ie(e,
|
|
1036
|
+
const l = n[r];
|
|
1037
|
+
ie(e, l, t[l]);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Xn(e, t) {
|
|
1041
1041
|
if (typeof t == "function" && (t = t(e)), t = oe(t), Array.isArray(t)) {
|
|
1042
1042
|
if (e === t)
|
|
1043
1043
|
return;
|
|
1044
1044
|
let n = 0, r = t.length;
|
|
1045
1045
|
for (; n < r; n++) {
|
|
1046
|
-
const
|
|
1047
|
-
e[n] !==
|
|
1046
|
+
const l = t[n];
|
|
1047
|
+
e[n] !== l && ie(e, n, l);
|
|
1048
1048
|
}
|
|
1049
1049
|
ie(e, "length", r);
|
|
1050
1050
|
} else
|
|
1051
|
-
|
|
1051
|
+
jt(e, t);
|
|
1052
1052
|
}
|
|
1053
1053
|
function ce(e, t, n = []) {
|
|
1054
|
-
let r,
|
|
1054
|
+
let r, l = e;
|
|
1055
1055
|
if (t.length > 1) {
|
|
1056
1056
|
r = t.shift();
|
|
1057
1057
|
const s = typeof r, i = Array.isArray(e);
|
|
@@ -1076,27 +1076,27 @@ function ce(e, t, n = []) {
|
|
|
1076
1076
|
ce(e[r], t, [r].concat(n));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
|
|
1079
|
+
l = e[r], n = [r].concat(n);
|
|
1080
1080
|
}
|
|
1081
|
-
let
|
|
1082
|
-
typeof
|
|
1081
|
+
let o = t[0];
|
|
1082
|
+
typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o = oe(o), r === void 0 || le(l) && le(o) && !Array.isArray(o) ? jt(l, o) : ie(e, r, o));
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const n = oe(e || {}), r = Array.isArray(n),
|
|
1086
|
-
function
|
|
1087
|
-
|
|
1088
|
-
r && s.length === 1 ?
|
|
1084
|
+
function It(...[e, t]) {
|
|
1085
|
+
const n = oe(e || {}), r = Array.isArray(n), l = Et(n);
|
|
1086
|
+
function o(...s) {
|
|
1087
|
+
Jt(() => {
|
|
1088
|
+
r && s.length === 1 ? Xn(n, s[0]) : ce(n, s);
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
|
-
return [
|
|
1091
|
+
return [l, o];
|
|
1092
1092
|
}
|
|
1093
|
-
const
|
|
1093
|
+
const Se = /* @__PURE__ */ new WeakMap(), Mt = {
|
|
1094
1094
|
get(e, t) {
|
|
1095
|
-
if (t ===
|
|
1095
|
+
if (t === _e)
|
|
1096
1096
|
return e;
|
|
1097
1097
|
const n = e[t];
|
|
1098
1098
|
let r;
|
|
1099
|
-
return le(n) ?
|
|
1099
|
+
return le(n) ? Se.get(n) || (Se.set(n, r = new Proxy(n, Mt)), r) : n;
|
|
1100
1100
|
},
|
|
1101
1101
|
set(e, t, n) {
|
|
1102
1102
|
return ie(e, t, oe(n)), !0;
|
|
@@ -1105,40 +1105,40 @@ const Ce = /* @__PURE__ */ new WeakMap(), It = {
|
|
|
1105
1105
|
return ie(e, t, void 0, !0), !0;
|
|
1106
1106
|
}
|
|
1107
1107
|
};
|
|
1108
|
-
function
|
|
1108
|
+
function Gn(e) {
|
|
1109
1109
|
return (t) => {
|
|
1110
1110
|
if (le(t)) {
|
|
1111
1111
|
let n;
|
|
1112
|
-
(n =
|
|
1112
|
+
(n = Se.get(t)) || Se.set(t, n = new Proxy(t, Mt)), e(n);
|
|
1113
1113
|
}
|
|
1114
1114
|
return t;
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
|
-
const [I,
|
|
1117
|
+
const [I, ke] = It({
|
|
1118
1118
|
selectedCall: null,
|
|
1119
1119
|
selectedRequest: null,
|
|
1120
1120
|
selectedTab: null,
|
|
1121
1121
|
selectedSubitem: null
|
|
1122
|
-
}),
|
|
1122
|
+
}), pe = `
|
|
1123
1123
|
display: inline-block;
|
|
1124
1124
|
overflow: hidden;
|
|
1125
1125
|
text-overflow: ellipsis;
|
|
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
|
+
}, Jn = {
|
|
1137
1137
|
top: "flex-start",
|
|
1138
1138
|
bottom: "flex-end",
|
|
1139
1139
|
center: "center",
|
|
1140
1140
|
stretch: "stretch"
|
|
1141
|
-
},
|
|
1141
|
+
}, B = ({
|
|
1142
1142
|
justify: e = "left",
|
|
1143
1143
|
align: t = "center",
|
|
1144
1144
|
gap: n
|
|
@@ -1146,21 +1146,21 @@ const [I, _e] = jt({
|
|
|
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: ${Jn[t]};
|
|
1151
|
+
`, Yn = {
|
|
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
|
+
}, qn = {
|
|
1159
1159
|
left: "flex-start",
|
|
1160
1160
|
right: "flex-end",
|
|
1161
1161
|
center: "center",
|
|
1162
1162
|
stretch: "stretch"
|
|
1163
|
-
},
|
|
1163
|
+
}, L = ({
|
|
1164
1164
|
justify: e = "top",
|
|
1165
1165
|
align: t = "stretch",
|
|
1166
1166
|
gap: n = 0
|
|
@@ -1168,29 +1168,29 @@ const [I, _e] = jt({
|
|
|
1168
1168
|
row-gap: ${n}px;
|
|
1169
1169
|
display: flex;
|
|
1170
1170
|
flex-direction: column;
|
|
1171
|
-
justify-content: ${
|
|
1172
|
-
align-items: ${
|
|
1171
|
+
justify-content: ${Yn[e]};
|
|
1172
|
+
align-items: ${qn[t]};
|
|
1173
1173
|
`;
|
|
1174
|
-
function
|
|
1174
|
+
function er(e) {
|
|
1175
1175
|
if (e.length < 4)
|
|
1176
1176
|
throw new Error("Invalid hex value");
|
|
1177
1177
|
return (e.replace(
|
|
1178
1178
|
/^#?([a-f\d])([a-f\d])([a-f\d])$/i,
|
|
1179
|
-
(t, n, r,
|
|
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 tr(e) {
|
|
1183
1183
|
return Object.entries(e);
|
|
1184
1184
|
}
|
|
1185
|
-
const
|
|
1185
|
+
const me = document.documentElement.style;
|
|
1186
1186
|
let qe = 1;
|
|
1187
|
-
function
|
|
1187
|
+
function nr(e) {
|
|
1188
1188
|
const t = {};
|
|
1189
|
-
for (const [n, r] of
|
|
1190
|
-
const [
|
|
1191
|
-
qe++,
|
|
1192
|
-
red:
|
|
1193
|
-
green:
|
|
1189
|
+
for (const [n, r] of tr(e)) {
|
|
1190
|
+
const [l, o, s] = er(r), i = `c${qe}`;
|
|
1191
|
+
qe++, me.setProperty(`--${i}-r`, String(l)), me.setProperty(`--${i}-g`, String(o)), me.setProperty(`--${i}-b`, String(s)), me.setProperty(`--${i}`, r), t[n] = {
|
|
1192
|
+
red: l,
|
|
1193
|
+
green: o,
|
|
1194
1194
|
blue: s,
|
|
1195
1195
|
var: `var(--${i})`,
|
|
1196
1196
|
raw: r,
|
|
@@ -1215,7 +1215,7 @@ function tr(e) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
return t;
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const $ = nr({
|
|
1219
1219
|
bgPrimary: "#0F172A",
|
|
1220
1220
|
bgSecondary: "#1E293B",
|
|
1221
1221
|
textPrimary: "#fff",
|
|
@@ -1232,20 +1232,20 @@ const y = tr({
|
|
|
1232
1232
|
primary: '"Work Sans", sans-serif',
|
|
1233
1233
|
decorative: '"Fira Code", monospaced'
|
|
1234
1234
|
};
|
|
1235
|
-
function
|
|
1235
|
+
function rr(e, t, n) {
|
|
1236
1236
|
if (!e)
|
|
1237
1237
|
return t;
|
|
1238
|
-
const r = [],
|
|
1239
|
-
for (const
|
|
1240
|
-
const s =
|
|
1241
|
-
s && yt(s,
|
|
1238
|
+
const r = [], l = new Map(e.map((o) => [o[n], o]));
|
|
1239
|
+
for (const o of t) {
|
|
1240
|
+
const s = l.get(o[n]);
|
|
1241
|
+
s && yt(s, o) ? r.push(s) : r.push(o);
|
|
1242
1242
|
}
|
|
1243
1243
|
return r;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1245
|
+
function Dt(e, t) {
|
|
1246
|
+
return m((n) => rr(n, typeof e == "function" ? e() : e, t));
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function he(e) {
|
|
1249
1249
|
const [t, n] = ne(e);
|
|
1250
1250
|
return {
|
|
1251
1251
|
get value() {
|
|
@@ -1254,32 +1254,35 @@ function Pe(e) {
|
|
|
1254
1254
|
set value(r) {
|
|
1255
1255
|
n(() => r);
|
|
1256
1256
|
},
|
|
1257
|
+
set(r) {
|
|
1258
|
+
n(() => r);
|
|
1259
|
+
},
|
|
1257
1260
|
produce(r) {
|
|
1258
|
-
n((
|
|
1261
|
+
n((l) => Ut(l, r));
|
|
1259
1262
|
},
|
|
1260
1263
|
peek() {
|
|
1261
1264
|
return U(t);
|
|
1262
1265
|
}
|
|
1263
1266
|
};
|
|
1264
1267
|
}
|
|
1265
|
-
const
|
|
1268
|
+
const lr = /* @__PURE__ */ y('<div class="tag"></div>'), et = /* @__PURE__ */ y("<span></span>"), or = /* @__PURE__ */ y('<div><div class="call"></div></div>'), ir = _`
|
|
1266
1269
|
&&& {
|
|
1267
1270
|
font-size: 14px;
|
|
1268
|
-
${
|
|
1271
|
+
${L()};
|
|
1269
1272
|
|
|
1270
1273
|
> .call {
|
|
1271
1274
|
padding: 4px 12px;
|
|
1272
|
-
${
|
|
1275
|
+
${B()};
|
|
1273
1276
|
opacity: 0.8;
|
|
1274
1277
|
|
|
1275
1278
|
&.selected {
|
|
1276
1279
|
opacity: 1;
|
|
1277
|
-
background-color: ${
|
|
1280
|
+
background-color: ${$.secondary.alpha(0.16)};
|
|
1278
1281
|
}
|
|
1279
1282
|
|
|
1280
1283
|
> .call-button {
|
|
1281
1284
|
text-align: left;
|
|
1282
|
-
${
|
|
1285
|
+
${B({
|
|
1283
1286
|
gap: 8
|
|
1284
1287
|
})};
|
|
1285
1288
|
flex: 1 1;
|
|
@@ -1290,7 +1293,7 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1290
1293
|
}
|
|
1291
1294
|
|
|
1292
1295
|
> span {
|
|
1293
|
-
${
|
|
1296
|
+
${pe};
|
|
1294
1297
|
flex-shrink: 1;
|
|
1295
1298
|
}
|
|
1296
1299
|
}
|
|
@@ -1302,11 +1305,11 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1302
1305
|
padding-left: 14px;
|
|
1303
1306
|
margin-left: 16px;
|
|
1304
1307
|
padding-right: 0;
|
|
1305
|
-
border-left: 1px solid ${
|
|
1306
|
-
${
|
|
1308
|
+
border-left: 1px solid ${$.white.alpha(0.1)};
|
|
1309
|
+
${B()};
|
|
1307
1310
|
|
|
1308
1311
|
span {
|
|
1309
|
-
${
|
|
1312
|
+
${pe};
|
|
1310
1313
|
opacity: 0.6;
|
|
1311
1314
|
padding: 0 8px;
|
|
1312
1315
|
padding-right: 0;
|
|
@@ -1316,7 +1319,7 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1316
1319
|
|
|
1317
1320
|
&.selected span {
|
|
1318
1321
|
opacity: 1;
|
|
1319
|
-
background-color: ${
|
|
1322
|
+
background-color: ${$.secondary.alpha(0.16)};
|
|
1320
1323
|
}
|
|
1321
1324
|
|
|
1322
1325
|
&:first-of-type {
|
|
@@ -1325,7 +1328,7 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1325
1328
|
|
|
1326
1329
|
&:last-of-type {
|
|
1327
1330
|
border-radius: 0 0 0 10px;
|
|
1328
|
-
border-bottom: 1px solid ${
|
|
1331
|
+
border-bottom: 1px solid ${$.white.alpha(0.1)};
|
|
1329
1332
|
padding-bottom: 10px;
|
|
1330
1333
|
margin-bottom: 4px;
|
|
1331
1334
|
}
|
|
@@ -1339,13 +1342,13 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1339
1342
|
}
|
|
1340
1343
|
}
|
|
1341
1344
|
}
|
|
1342
|
-
`,
|
|
1343
|
-
const t =
|
|
1345
|
+
`, sr = (e) => {
|
|
1346
|
+
const t = m(() => e.item), n = m(() => e.currentCallId), r = he(e.item.subitemsWithAlias.length < 4), l = ar(t().type, t().subType);
|
|
1344
1347
|
return (() => {
|
|
1345
|
-
const
|
|
1346
|
-
return C(
|
|
1348
|
+
const o = or.cloneNode(!0), s = o.firstChild;
|
|
1349
|
+
return C(o, ir), f(s, g(F, {
|
|
1347
1350
|
onClick: () => {
|
|
1348
|
-
|
|
1351
|
+
ke({
|
|
1349
1352
|
selectedCall: t().id,
|
|
1350
1353
|
selectedSubitem: null
|
|
1351
1354
|
});
|
|
@@ -1353,9 +1356,9 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1353
1356
|
class: "call-button",
|
|
1354
1357
|
get children() {
|
|
1355
1358
|
return [(() => {
|
|
1356
|
-
const i =
|
|
1357
|
-
return f(i, () =>
|
|
1358
|
-
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u =
|
|
1359
|
+
const i = lr.cloneNode(!0);
|
|
1360
|
+
return f(i, () => l.icon), S((a) => {
|
|
1361
|
+
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u = l.color;
|
|
1359
1362
|
return c !== a._v$ && j(i, "title", a._v$ = c), u !== a._v$2 && i.style.setProperty("color", a._v$2 = u), a;
|
|
1360
1363
|
}, {
|
|
1361
1364
|
_v$: void 0,
|
|
@@ -1363,12 +1366,12 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1363
1366
|
}), i;
|
|
1364
1367
|
})(), (() => {
|
|
1365
1368
|
const i = et.cloneNode(!0);
|
|
1366
|
-
return f(i, () => t().name),
|
|
1369
|
+
return f(i, () => t().name), S(() => j(i, "title", t().name)), i;
|
|
1367
1370
|
})()];
|
|
1368
1371
|
}
|
|
1369
1372
|
}), null), f(s, (() => {
|
|
1370
|
-
const i =
|
|
1371
|
-
return () => i() &&
|
|
1373
|
+
const i = m(() => t().subitemsWithAlias.length > 0);
|
|
1374
|
+
return () => i() && g(F, {
|
|
1372
1375
|
class: "expand-button",
|
|
1373
1376
|
get classList() {
|
|
1374
1377
|
return {
|
|
@@ -1379,21 +1382,21 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1379
1382
|
r.value = !r.value;
|
|
1380
1383
|
},
|
|
1381
1384
|
get children() {
|
|
1382
|
-
return
|
|
1385
|
+
return g(Pe, {
|
|
1383
1386
|
name: "caret-down"
|
|
1384
1387
|
});
|
|
1385
1388
|
}
|
|
1386
1389
|
});
|
|
1387
|
-
})(), null), f(
|
|
1390
|
+
})(), null), f(o, g(de, {
|
|
1388
1391
|
get when() {
|
|
1389
1392
|
return r.value;
|
|
1390
1393
|
},
|
|
1391
1394
|
get children() {
|
|
1392
|
-
return
|
|
1395
|
+
return g(G, {
|
|
1393
1396
|
get each() {
|
|
1394
1397
|
return t().subitemsWithAlias;
|
|
1395
1398
|
},
|
|
1396
|
-
children: (i) =>
|
|
1399
|
+
children: (i) => g(F, {
|
|
1397
1400
|
class: "subitem",
|
|
1398
1401
|
get classList() {
|
|
1399
1402
|
return {
|
|
@@ -1401,7 +1404,7 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1401
1404
|
};
|
|
1402
1405
|
},
|
|
1403
1406
|
onClick: () => {
|
|
1404
|
-
|
|
1407
|
+
ke({
|
|
1405
1408
|
selectedCall: t().id,
|
|
1406
1409
|
selectedSubitem: i
|
|
1407
1410
|
});
|
|
@@ -1413,28 +1416,42 @@ const rr = /* @__PURE__ */ $('<div class="tag"></div>'), et = /* @__PURE__ */ $(
|
|
|
1413
1416
|
})
|
|
1414
1417
|
});
|
|
1415
1418
|
}
|
|
1416
|
-
}), null),
|
|
1419
|
+
}), null), S(() => s.classList.toggle("selected", n() === t().id)), o;
|
|
1417
1420
|
})();
|
|
1418
1421
|
};
|
|
1419
|
-
function
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
+
function ar(e, t) {
|
|
1423
|
+
if (e === "ws")
|
|
1424
|
+
return {
|
|
1425
|
+
icon: t === "send" ? "S" : "R",
|
|
1426
|
+
color: "#6EE7B7"
|
|
1427
|
+
};
|
|
1428
|
+
if (e === "fetch")
|
|
1429
|
+
return {
|
|
1430
|
+
icon: "F",
|
|
1431
|
+
color: "#FDE047"
|
|
1432
|
+
};
|
|
1433
|
+
let n = "";
|
|
1434
|
+
const r = "#A78BFA";
|
|
1435
|
+
return t ? t === "create" ? n = "C" : t === "update" ? n = "U" : t === "delete" ? n = "D" : n = t[0]?.toUpperCase() || "?" : n = "M", {
|
|
1422
1436
|
icon: n,
|
|
1423
1437
|
color: r
|
|
1424
1438
|
};
|
|
1425
1439
|
}
|
|
1426
|
-
function
|
|
1440
|
+
function Rt(e) {
|
|
1427
1441
|
return e ? e.slice().reverse() : [];
|
|
1428
1442
|
}
|
|
1429
|
-
function
|
|
1443
|
+
function cr(...e) {
|
|
1430
1444
|
const t = [];
|
|
1431
1445
|
for (const n of e)
|
|
1432
1446
|
n != null && t.push(...n);
|
|
1433
1447
|
return t;
|
|
1434
1448
|
}
|
|
1435
|
-
function
|
|
1449
|
+
function ur(e) {
|
|
1436
1450
|
return e.filter((t) => t != null);
|
|
1437
1451
|
}
|
|
1452
|
+
function dr(e) {
|
|
1453
|
+
return e.filter((t) => t !== !1);
|
|
1454
|
+
}
|
|
1438
1455
|
function tt(e) {
|
|
1439
1456
|
if (e == null)
|
|
1440
1457
|
throw new Error("Value is null or undefined");
|
|
@@ -1446,17 +1463,17 @@ function nt(e, t) {
|
|
|
1446
1463
|
return t && t(n), null;
|
|
1447
1464
|
}
|
|
1448
1465
|
}
|
|
1449
|
-
function
|
|
1450
|
-
const n =
|
|
1451
|
-
return
|
|
1466
|
+
function fr(e, t) {
|
|
1467
|
+
const n = Zt(t);
|
|
1468
|
+
return pr(e, n);
|
|
1452
1469
|
}
|
|
1453
|
-
function
|
|
1470
|
+
function pr(e, t) {
|
|
1454
1471
|
let n = 0;
|
|
1455
|
-
const r = {},
|
|
1456
|
-
if (!
|
|
1472
|
+
const r = {}, l = t.pattern.exec(e);
|
|
1473
|
+
if (!l)
|
|
1457
1474
|
return null;
|
|
1458
1475
|
for (; n < t.keys.length; )
|
|
1459
|
-
r[t.keys[n]] =
|
|
1476
|
+
r[t.keys[n]] = l[++n] || null;
|
|
1460
1477
|
return r;
|
|
1461
1478
|
}
|
|
1462
1479
|
function te(e) {
|
|
@@ -1479,72 +1496,91 @@ function te(e) {
|
|
|
1479
1496
|
}
|
|
1480
1497
|
return e;
|
|
1481
1498
|
}
|
|
1482
|
-
const [
|
|
1499
|
+
const [Q, hr] = It({
|
|
1483
1500
|
calls: {}
|
|
1484
|
-
}), Ee =
|
|
1501
|
+
}), Ee = he("");
|
|
1485
1502
|
let Be = {
|
|
1486
1503
|
callsProcessor: []
|
|
1487
1504
|
};
|
|
1488
|
-
function
|
|
1505
|
+
function gr(e) {
|
|
1489
1506
|
Be = {
|
|
1490
1507
|
...Be,
|
|
1491
1508
|
...e
|
|
1492
1509
|
};
|
|
1493
1510
|
}
|
|
1494
|
-
function
|
|
1511
|
+
function Gl({
|
|
1512
|
+
type: e,
|
|
1513
|
+
response: t,
|
|
1514
|
+
payload: n,
|
|
1515
|
+
event: r,
|
|
1516
|
+
startTime: l
|
|
1517
|
+
}) {
|
|
1518
|
+
mr({
|
|
1519
|
+
type: "ws",
|
|
1520
|
+
path: r,
|
|
1521
|
+
payload: n,
|
|
1522
|
+
startTime: l,
|
|
1523
|
+
duration: 0,
|
|
1524
|
+
subType: e
|
|
1525
|
+
})({
|
|
1526
|
+
isError: !1,
|
|
1527
|
+
response: t
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
function mr(e) {
|
|
1495
1531
|
const t = e.startTime || Date.now();
|
|
1496
1532
|
return ({
|
|
1497
1533
|
isError: n,
|
|
1498
1534
|
status: r,
|
|
1499
|
-
response:
|
|
1500
|
-
metadata:
|
|
1535
|
+
response: l,
|
|
1536
|
+
metadata: o,
|
|
1501
1537
|
tags: s
|
|
1502
1538
|
}) => {
|
|
1503
1539
|
const i = e.duration || Date.now() - t;
|
|
1504
|
-
|
|
1505
|
-
|
|
1540
|
+
hr(
|
|
1541
|
+
Gn((a) => {
|
|
1506
1542
|
const c = nt(
|
|
1507
1543
|
() => new URL(e.path, "http://localhost")
|
|
1508
1544
|
);
|
|
1509
1545
|
tt(c);
|
|
1510
1546
|
const u = c.searchParams.toString() !== "" ? Object.fromEntries(c.searchParams.entries()) : null;
|
|
1511
1547
|
let p = null;
|
|
1512
|
-
const d = Be.callsProcessor.find((
|
|
1513
|
-
if (typeof
|
|
1514
|
-
if (
|
|
1548
|
+
const d = Be.callsProcessor.find((N) => {
|
|
1549
|
+
if (typeof N.match == "string") {
|
|
1550
|
+
if (N.matchType && N.matchType !== e.type || N.matchSubType && e.subType && N.matchSubType.includes(e.subType))
|
|
1515
1551
|
return !1;
|
|
1516
|
-
const T =
|
|
1552
|
+
const T = fr(c.pathname, N.match);
|
|
1517
1553
|
return T ? (p = T, !0) : !1;
|
|
1518
1554
|
} else
|
|
1519
|
-
return
|
|
1555
|
+
return N.match({
|
|
1520
1556
|
url: c,
|
|
1521
1557
|
type: e.type,
|
|
1522
1558
|
subType: e.subType
|
|
1523
1559
|
});
|
|
1524
|
-
}),
|
|
1560
|
+
}), h = d?.callID?.({
|
|
1525
1561
|
url: c,
|
|
1526
1562
|
type: e.type,
|
|
1527
1563
|
subType: e.subType
|
|
1528
|
-
}) || typeof d?.match == "string" && `${e.type}${e.subType || ""}${d.match}`,
|
|
1529
|
-
|
|
1530
|
-
),
|
|
1531
|
-
a.calls[
|
|
1532
|
-
name: (
|
|
1564
|
+
}) || typeof d?.match == "string" && `${e.type}${e.subType || ""}${d.match}`, v = btoa(
|
|
1565
|
+
h || `${c.pathname}|${e.type}${e.subType ? `|${e.subType}` : ""}`
|
|
1566
|
+
), b = d?.callName;
|
|
1567
|
+
a.calls[v] || (a.calls[v] = {
|
|
1568
|
+
name: (b || typeof d?.match == "string" && d.match || c.pathname).replace(/^\//, ""),
|
|
1533
1569
|
path: c.pathname.replace(/^\//, ""),
|
|
1534
1570
|
lastRequestStartTime: t,
|
|
1535
1571
|
requests: [],
|
|
1536
1572
|
type: e.type,
|
|
1537
1573
|
subType: e.subType
|
|
1538
|
-
}, Ee.value =
|
|
1539
|
-
const w = a.calls[
|
|
1574
|
+
}, Ee.value = v);
|
|
1575
|
+
const w = a.calls[v];
|
|
1540
1576
|
tt(w), w.requests.length > 100 && w.requests.shift();
|
|
1541
|
-
const
|
|
1542
|
-
id:
|
|
1577
|
+
const k = {
|
|
1578
|
+
id: Wt(),
|
|
1543
1579
|
duration: i,
|
|
1544
1580
|
pathParams: p,
|
|
1545
1581
|
isError: n,
|
|
1546
|
-
metadata: te(
|
|
1547
|
-
response: te(
|
|
1582
|
+
metadata: te(o),
|
|
1583
|
+
response: te(l),
|
|
1548
1584
|
path: e.path.replace(/^\//, ""),
|
|
1549
1585
|
payload: te(e.payload),
|
|
1550
1586
|
searchParams: u,
|
|
@@ -1553,174 +1589,227 @@ function Bl(e) {
|
|
|
1553
1589
|
method: e.method,
|
|
1554
1590
|
subType: e.subType,
|
|
1555
1591
|
code: r,
|
|
1556
|
-
tags:
|
|
1557
|
-
|
|
1592
|
+
tags: ur(
|
|
1593
|
+
cr(e.tags, s)
|
|
1558
1594
|
)
|
|
1559
1595
|
}, x = nt(
|
|
1560
|
-
() => d?.payloadAlias?.(
|
|
1596
|
+
() => d?.payloadAlias?.(k.payload, k)
|
|
1561
1597
|
);
|
|
1562
|
-
x && (
|
|
1598
|
+
x && (k.alias = x), w.requests.push(k);
|
|
1563
1599
|
})
|
|
1564
1600
|
);
|
|
1565
1601
|
};
|
|
1566
1602
|
}
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1603
|
+
const $r = {
|
|
1604
|
+
short: 160,
|
|
1605
|
+
medium: 240,
|
|
1606
|
+
long: 360
|
|
1607
|
+
}, yr = {
|
|
1608
|
+
inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
1609
|
+
out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
|
|
1610
|
+
in: "cubic-bezier(0.4, 0.0, 1, 1)",
|
|
1611
|
+
linear: "linear"
|
|
1612
|
+
}, rt = (e) => e !== void 0 ? `${e}ms` : "";
|
|
1613
|
+
function vr(e = {}) {
|
|
1614
|
+
const { properties: t, duration: n, ease: r, delay: l } = e;
|
|
1615
|
+
return `
|
|
1616
|
+
transition: ${rt(
|
|
1617
|
+
typeof n == "number" ? n : $r[n || "medium"]
|
|
1618
|
+
)} ${yr[r || "inOut"]} ${rt(l)};
|
|
1619
|
+
${t ? `
|
|
1620
|
+
transition-property: ${t.join(", ") || ""};
|
|
1621
|
+
` : ""}
|
|
1622
|
+
`;
|
|
1623
|
+
}
|
|
1624
|
+
const lt = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
|
|
1625
|
+
function br(e, t) {
|
|
1626
|
+
const n = lt(String(t)).indexOf(
|
|
1627
|
+
lt(String(e))
|
|
1571
1628
|
);
|
|
1572
1629
|
return {
|
|
1573
1630
|
matched: n !== -1,
|
|
1574
1631
|
matchedIndex: n
|
|
1575
1632
|
};
|
|
1576
1633
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return [...e].sort((r,
|
|
1579
|
-
const
|
|
1580
|
-
return
|
|
1634
|
+
function wr(e, t, { lowerFirst: n } = {}) {
|
|
1635
|
+
return [...e].sort((r, l) => {
|
|
1636
|
+
const o = t(r), s = t(l);
|
|
1637
|
+
return o < s ? n ? -1 : 1 : o > s ? n ? 1 : -1 : 0;
|
|
1581
1638
|
});
|
|
1582
1639
|
}
|
|
1583
|
-
function
|
|
1640
|
+
function ot({
|
|
1584
1641
|
items: e,
|
|
1585
1642
|
searchQuery: t,
|
|
1586
1643
|
getStringToMatch: n
|
|
1587
1644
|
}) {
|
|
1588
1645
|
const r = [];
|
|
1589
|
-
for (const
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1646
|
+
for (const l of e) {
|
|
1647
|
+
const o = br(t, n(l));
|
|
1648
|
+
o.matched && r.push({ item: l, matchedIndex: o.matchedIndex });
|
|
1592
1649
|
}
|
|
1593
|
-
return
|
|
1650
|
+
return wr(r, (l) => l.matchedIndex, {
|
|
1594
1651
|
lowerFirst: !0
|
|
1595
|
-
}).map(({ item:
|
|
1652
|
+
}).map(({ item: l }) => l);
|
|
1596
1653
|
}
|
|
1597
|
-
const
|
|
1654
|
+
const xr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type="text" placeholder="Search"></label><div></div></div>'), Cr = _`
|
|
1598
1655
|
&&& {
|
|
1599
|
-
${
|
|
1600
|
-
border-right: 1px solid ${
|
|
1656
|
+
${L()};
|
|
1657
|
+
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
1601
1658
|
|
|
1602
1659
|
> h1 {
|
|
1603
1660
|
font-size: 18px;
|
|
1604
1661
|
padding-left: 12px;
|
|
1605
1662
|
padding-top: 10px;
|
|
1606
1663
|
font-family: ${R.decorative};
|
|
1607
|
-
color: ${
|
|
1608
|
-
padding-bottom:
|
|
1664
|
+
color: ${$.secondary.var};
|
|
1665
|
+
padding-bottom: 12px;
|
|
1609
1666
|
}
|
|
1610
1667
|
}
|
|
1611
|
-
`,
|
|
1668
|
+
`, _r = _`
|
|
1612
1669
|
&&& {
|
|
1613
|
-
${
|
|
1670
|
+
${L()};
|
|
1614
1671
|
flex: 1 1;
|
|
1615
1672
|
overflow-y: auto;
|
|
1616
1673
|
padding-bottom: 16px;
|
|
1617
1674
|
}
|
|
1618
|
-
`,
|
|
1675
|
+
`, Sr = _`
|
|
1619
1676
|
&&& {
|
|
1620
|
-
${
|
|
1677
|
+
${B({
|
|
1621
1678
|
gap: 8
|
|
1622
1679
|
})};
|
|
1623
1680
|
margin: 0 10px;
|
|
1624
|
-
margin-bottom:
|
|
1681
|
+
margin-bottom: 12px;
|
|
1625
1682
|
|
|
1626
1683
|
display: grid;
|
|
1627
1684
|
grid-template-columns: 14px 1fr;
|
|
1628
|
-
background: ${
|
|
1685
|
+
background: ${$.white.alpha(0.05)};
|
|
1629
1686
|
border-radius: 4px;
|
|
1630
1687
|
--icon-size: 16px;
|
|
1631
1688
|
padding: 4px 0;
|
|
1632
1689
|
padding-left: 6px;
|
|
1633
1690
|
|
|
1634
1691
|
.icon {
|
|
1635
|
-
color: ${
|
|
1692
|
+
color: ${$.secondary.var};
|
|
1636
1693
|
}
|
|
1637
1694
|
|
|
1638
1695
|
input {
|
|
1639
1696
|
border: none;
|
|
1640
1697
|
background: transparent;
|
|
1641
|
-
color: ${
|
|
1698
|
+
color: ${$.white.var};
|
|
1642
1699
|
|
|
1643
1700
|
&:focus {
|
|
1644
1701
|
outline: none;
|
|
1645
1702
|
}
|
|
1646
1703
|
}
|
|
1647
1704
|
}
|
|
1648
|
-
`,
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1705
|
+
`, kr = _`
|
|
1706
|
+
&&& {
|
|
1707
|
+
${B({
|
|
1708
|
+
gap: 16
|
|
1709
|
+
})};
|
|
1710
|
+
padding-left: 15px;
|
|
1711
|
+
margin-bottom: 10px;
|
|
1712
|
+
|
|
1713
|
+
> button {
|
|
1714
|
+
font-size: 14px;
|
|
1715
|
+
opacity: 0.5;
|
|
1716
|
+
${vr()};
|
|
1717
|
+
|
|
1718
|
+
&:hover {
|
|
1719
|
+
opacity: 1;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
&.active {
|
|
1723
|
+
opacity: 1;
|
|
1724
|
+
color: ${$.primary.var};
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
`, Ar = () => {
|
|
1729
|
+
const e = he(""), t = he("api"), n = Dt(() => {
|
|
1730
|
+
const [l = "", o = ""] = e.value.split(">"), s = Object.entries(Q.calls), i = [];
|
|
1731
|
+
for (const [c, u] of s.reverse()) {
|
|
1732
|
+
const p = /* @__PURE__ */ new Set();
|
|
1733
|
+
if (!(t.value === "api" && u.type !== "fetch" && u.type !== "mutation") && !(t.value === "ws" && u.type !== "ws")) {
|
|
1734
|
+
for (const d of u.requests)
|
|
1735
|
+
d.alias && p.add(d.alias);
|
|
1736
|
+
i.push({
|
|
1737
|
+
id: c,
|
|
1738
|
+
subitemsWithAlias: ot({
|
|
1739
|
+
items: [...p],
|
|
1740
|
+
searchQuery: o.trim(),
|
|
1741
|
+
getStringToMatch(d) {
|
|
1742
|
+
return d;
|
|
1743
|
+
}
|
|
1744
|
+
}),
|
|
1745
|
+
...u
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1666
1748
|
}
|
|
1667
|
-
return
|
|
1668
|
-
items:
|
|
1669
|
-
searchQuery:
|
|
1670
|
-
getStringToMatch(
|
|
1671
|
-
return
|
|
1749
|
+
return ot({
|
|
1750
|
+
items: i,
|
|
1751
|
+
searchQuery: l.trim(),
|
|
1752
|
+
getStringToMatch(c) {
|
|
1753
|
+
return c.name;
|
|
1672
1754
|
}
|
|
1673
1755
|
});
|
|
1674
|
-
}, "id"),
|
|
1756
|
+
}, "id"), r = m(() => I.selectedCall);
|
|
1675
1757
|
return (() => {
|
|
1676
|
-
const
|
|
1677
|
-
return C(
|
|
1758
|
+
const l = xr.cloneNode(!0), o = l.firstChild, s = o.nextSibling, i = s.firstChild, a = i.nextSibling, c = a.nextSibling, u = s.nextSibling, p = u.firstChild, d = u.nextSibling;
|
|
1759
|
+
return C(l, Cr), C(s, kr), i.$$click = () => t.set("api"), a.$$click = () => t.set("ws"), c.$$click = () => t.set("all"), C(u, Sr), f(u, g(Pe, {
|
|
1678
1760
|
name: "search"
|
|
1679
|
-
}),
|
|
1680
|
-
e.value =
|
|
1681
|
-
}, C(
|
|
1761
|
+
}), p), p.$$input = (h) => {
|
|
1762
|
+
e.value = h.currentTarget.value;
|
|
1763
|
+
}, C(d, _r), f(d, g(G, {
|
|
1682
1764
|
get each() {
|
|
1683
|
-
return
|
|
1765
|
+
return n();
|
|
1684
1766
|
},
|
|
1685
|
-
children: (
|
|
1767
|
+
children: (h, v) => g(sr, {
|
|
1686
1768
|
get index() {
|
|
1687
|
-
return
|
|
1769
|
+
return v();
|
|
1688
1770
|
},
|
|
1689
|
-
item:
|
|
1771
|
+
item: h,
|
|
1690
1772
|
get currentCallId() {
|
|
1691
|
-
return
|
|
1773
|
+
return r();
|
|
1692
1774
|
}
|
|
1693
1775
|
})
|
|
1694
|
-
})),
|
|
1776
|
+
})), S((h) => {
|
|
1777
|
+
const v = t.value === "api", b = t.value === "ws", w = t.value === "all";
|
|
1778
|
+
return v !== h._v$ && i.classList.toggle("active", h._v$ = v), b !== h._v$2 && a.classList.toggle("active", h._v$2 = b), w !== h._v$3 && c.classList.toggle("active", h._v$3 = w), h;
|
|
1779
|
+
}, {
|
|
1780
|
+
_v$: void 0,
|
|
1781
|
+
_v$2: void 0,
|
|
1782
|
+
_v$3: void 0
|
|
1783
|
+
}), S(() => p.value = e.value), l;
|
|
1695
1784
|
})();
|
|
1696
1785
|
};
|
|
1697
|
-
|
|
1698
|
-
function
|
|
1786
|
+
Te(["click", "input"]);
|
|
1787
|
+
function zt(...e) {
|
|
1699
1788
|
const t = [];
|
|
1700
1789
|
for (let n = 0; n < e.length; n++) {
|
|
1701
1790
|
const r = e[n];
|
|
1702
1791
|
if (!r)
|
|
1703
1792
|
continue;
|
|
1704
|
-
const
|
|
1705
|
-
if (
|
|
1793
|
+
const l = typeof r;
|
|
1794
|
+
if (l === "string" || l === "number")
|
|
1706
1795
|
t.push(r);
|
|
1707
|
-
else if (
|
|
1708
|
-
for (let
|
|
1709
|
-
r[s[
|
|
1796
|
+
else if (l === "object")
|
|
1797
|
+
for (let o = 0, s = Object.keys(r); o < s.length; o++)
|
|
1798
|
+
r[s[o]] && t.push(s[o]);
|
|
1710
1799
|
}
|
|
1711
1800
|
return t.join(" ");
|
|
1712
1801
|
}
|
|
1713
|
-
const
|
|
1802
|
+
const Nr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Tr = /* @__PURE__ */ y("<h1></h1>"), Pr = _`
|
|
1714
1803
|
&&& {
|
|
1715
|
-
${
|
|
1804
|
+
${L()};
|
|
1716
1805
|
|
|
1717
1806
|
> h1 {
|
|
1718
1807
|
font-size: 14px;
|
|
1719
|
-
color: ${
|
|
1808
|
+
color: ${$.secondary.var};
|
|
1720
1809
|
letter-spacing: 0.08em;
|
|
1721
1810
|
font-family: ${R.decorative};
|
|
1722
1811
|
font-weight: 300;
|
|
1723
|
-
background: ${
|
|
1812
|
+
background: ${$.bgPrimary.var};
|
|
1724
1813
|
z-index: 1;
|
|
1725
1814
|
align-self: flex-start;
|
|
1726
1815
|
position: sticky;
|
|
@@ -1736,7 +1825,7 @@ const wr = /* @__PURE__ */ $('<div><div class="content"></div></div>'), xr = /*
|
|
|
1736
1825
|
padding-top: calc(var(--padding-top) + 10px);
|
|
1737
1826
|
padding-inline: 10px;
|
|
1738
1827
|
padding-bottom: 10px;
|
|
1739
|
-
background: ${
|
|
1828
|
+
background: ${$.white.alpha(0.05)};
|
|
1740
1829
|
border-radius: 4px;
|
|
1741
1830
|
}
|
|
1742
1831
|
|
|
@@ -1745,22 +1834,21 @@ const wr = /* @__PURE__ */ $('<div><div class="content"></div></div>'), xr = /*
|
|
|
1745
1834
|
}
|
|
1746
1835
|
}
|
|
1747
1836
|
`, M = (e) => (() => {
|
|
1748
|
-
const t =
|
|
1837
|
+
const t = Nr.cloneNode(!0), n = t.firstChild;
|
|
1749
1838
|
return f(t, (() => {
|
|
1750
|
-
const r =
|
|
1839
|
+
const r = m(() => !!e.title);
|
|
1751
1840
|
return () => r() && (() => {
|
|
1752
|
-
const
|
|
1753
|
-
return f(
|
|
1841
|
+
const l = Tr.cloneNode(!0);
|
|
1842
|
+
return f(l, () => e.title), l;
|
|
1754
1843
|
})();
|
|
1755
|
-
})(), n), f(n, () => e.children),
|
|
1756
|
-
})(),
|
|
1844
|
+
})(), n), f(n, () => e.children), S(() => C(t, zt(Pr, e.class))), t;
|
|
1845
|
+
})(), Er = /* @__PURE__ */ y("<div></div>"), Lr = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), Or = _`
|
|
1757
1846
|
&&& {
|
|
1758
1847
|
display: grid;
|
|
1759
1848
|
grid-template-columns: auto 1fr;
|
|
1760
1849
|
font-size: 14px;
|
|
1761
1850
|
margin-block: -4px;
|
|
1762
1851
|
|
|
1763
|
-
|
|
1764
1852
|
.row {
|
|
1765
1853
|
display: contents;
|
|
1766
1854
|
}
|
|
@@ -1770,37 +1858,37 @@ const wr = /* @__PURE__ */ $('<div><div class="content"></div></div>'), xr = /*
|
|
|
1770
1858
|
}
|
|
1771
1859
|
|
|
1772
1860
|
.row:not(:last-child) > div {
|
|
1773
|
-
border-bottom: 1px solid ${
|
|
1861
|
+
border-bottom: 1px solid ${$.white.alpha(0.1)};
|
|
1774
1862
|
}
|
|
1775
1863
|
|
|
1776
1864
|
.value {
|
|
1777
1865
|
padding-left: 16px;
|
|
1778
|
-
color: ${
|
|
1866
|
+
color: ${$.white.var};
|
|
1779
1867
|
}
|
|
1780
1868
|
|
|
1781
1869
|
.name {
|
|
1782
1870
|
opacity: 0.7;
|
|
1783
1871
|
}
|
|
1784
1872
|
}
|
|
1785
|
-
`,
|
|
1786
|
-
const t =
|
|
1787
|
-
return C(t,
|
|
1873
|
+
`, jr = (e) => (() => {
|
|
1874
|
+
const t = Er.cloneNode(!0);
|
|
1875
|
+
return C(t, Or), f(t, g(sn, {
|
|
1788
1876
|
get each() {
|
|
1789
|
-
return e.rows;
|
|
1877
|
+
return dr(e.rows);
|
|
1790
1878
|
},
|
|
1791
1879
|
children: (n) => (() => {
|
|
1792
|
-
const r =
|
|
1793
|
-
return f(
|
|
1880
|
+
const r = Lr.cloneNode(!0), l = r.firstChild, o = l.nextSibling;
|
|
1881
|
+
return f(l, () => n().name), f(o, () => n().value), r;
|
|
1794
1882
|
})()
|
|
1795
1883
|
})), t;
|
|
1796
|
-
})(),
|
|
1884
|
+
})(), Ir = `
|
|
1797
1885
|
user-select: text;
|
|
1798
1886
|
|
|
1799
1887
|
*, *::before, *::after {
|
|
1800
1888
|
user-select: text;
|
|
1801
1889
|
}
|
|
1802
1890
|
`;
|
|
1803
|
-
function
|
|
1891
|
+
function Mr(e) {
|
|
1804
1892
|
return `
|
|
1805
1893
|
display: -webkit-box;
|
|
1806
1894
|
overflow: hidden;
|
|
@@ -1808,21 +1896,21 @@ function Tr(e) {
|
|
|
1808
1896
|
-webkit-box-orient: vertical;
|
|
1809
1897
|
`;
|
|
1810
1898
|
}
|
|
1811
|
-
const
|
|
1812
|
-
function
|
|
1813
|
-
return (
|
|
1899
|
+
const it = /* @__PURE__ */ new Map();
|
|
1900
|
+
function Ft(e, t) {
|
|
1901
|
+
return (it.get(t) ?? it.set(
|
|
1814
1902
|
t,
|
|
1815
1903
|
new Intl.NumberFormat("en-US", {
|
|
1816
1904
|
maximumFractionDigits: t
|
|
1817
1905
|
})
|
|
1818
1906
|
).get(t)).format(e);
|
|
1819
1907
|
}
|
|
1820
|
-
const
|
|
1908
|
+
const Dr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Rr = /* @__PURE__ */ y('<div class="collapsed"></div>'), zr = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Fr = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), st = /* @__PURE__ */ y('<div class="delimiter"></div>'), at = /* @__PURE__ */ y('<div class="childs"></div>'), Br = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ct = /* @__PURE__ */ y('<div class="child"></div>'), Hr = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Vr = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), ut = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Ur = /* @__PURE__ */ y("<div></div>"), Zr = _`
|
|
1821
1909
|
&&& {
|
|
1822
1910
|
font-family: ${R.decorative};
|
|
1823
1911
|
font-size: 13px;
|
|
1824
|
-
${
|
|
1825
|
-
${
|
|
1912
|
+
${Ir};
|
|
1913
|
+
${L({
|
|
1826
1914
|
gap: 2
|
|
1827
1915
|
})};
|
|
1828
1916
|
padding-left: 8px;
|
|
@@ -1832,7 +1920,7 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1832
1920
|
width: 16px;
|
|
1833
1921
|
display: inline-block;
|
|
1834
1922
|
vertical-align: middle;
|
|
1835
|
-
color: ${
|
|
1923
|
+
color: ${$.white.alpha(0.5)};
|
|
1836
1924
|
|
|
1837
1925
|
&:not(.expanded) .icon {
|
|
1838
1926
|
transform: rotate(-90deg);
|
|
@@ -1840,18 +1928,18 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1840
1928
|
}
|
|
1841
1929
|
|
|
1842
1930
|
.show-all {
|
|
1843
|
-
color: ${
|
|
1931
|
+
color: ${$.white.alpha(0.5)};
|
|
1844
1932
|
text-align: left;
|
|
1845
1933
|
}
|
|
1846
1934
|
|
|
1847
1935
|
.childs {
|
|
1848
|
-
${
|
|
1936
|
+
${L({
|
|
1849
1937
|
gap: 2
|
|
1850
1938
|
})};
|
|
1851
1939
|
}
|
|
1852
1940
|
|
|
1853
1941
|
.delimiter {
|
|
1854
|
-
color: ${
|
|
1942
|
+
color: ${$.white.alpha(0.5)};
|
|
1855
1943
|
margin-top: 1px;
|
|
1856
1944
|
margin-bottom: 1px;
|
|
1857
1945
|
|
|
@@ -1865,13 +1953,13 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1865
1953
|
.childs {
|
|
1866
1954
|
padding-left: 20px;
|
|
1867
1955
|
grid-column: 1 / span 3;
|
|
1868
|
-
border-left: 1px solid ${
|
|
1956
|
+
border-left: 1px solid ${$.white.alpha(0.05)};
|
|
1869
1957
|
|
|
1870
1958
|
> .value {
|
|
1871
1959
|
&::after {
|
|
1872
1960
|
content: ',';
|
|
1873
1961
|
opacity: 0.5;
|
|
1874
|
-
color: ${
|
|
1962
|
+
color: ${$.white.var};
|
|
1875
1963
|
}
|
|
1876
1964
|
}
|
|
1877
1965
|
}
|
|
@@ -1883,22 +1971,22 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1883
1971
|
.key {
|
|
1884
1972
|
color: #a5d6ff;
|
|
1885
1973
|
margin-right: 5px;
|
|
1886
|
-
${
|
|
1974
|
+
${B({
|
|
1887
1975
|
align: "top"
|
|
1888
1976
|
})};
|
|
1889
1977
|
|
|
1890
1978
|
span {
|
|
1891
1979
|
flex-shrink: 1;
|
|
1892
|
-
${
|
|
1980
|
+
${pe};
|
|
1893
1981
|
}
|
|
1894
1982
|
|
|
1895
1983
|
&.index {
|
|
1896
|
-
color: ${
|
|
1984
|
+
color: ${$.success.alpha(0.7)};
|
|
1897
1985
|
}
|
|
1898
1986
|
|
|
1899
1987
|
&::after {
|
|
1900
1988
|
content: ':';
|
|
1901
|
-
color: ${
|
|
1989
|
+
color: ${$.secondary.alpha(0.5)};
|
|
1902
1990
|
}
|
|
1903
1991
|
}
|
|
1904
1992
|
}
|
|
@@ -1909,30 +1997,30 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1909
1997
|
|
|
1910
1998
|
.value {
|
|
1911
1999
|
word-wrap: break-word;
|
|
1912
|
-
${
|
|
2000
|
+
${Mr(5)};
|
|
1913
2001
|
}
|
|
1914
2002
|
|
|
1915
2003
|
[data-type='number'] {
|
|
1916
|
-
color: ${
|
|
2004
|
+
color: ${$.primary.var};
|
|
1917
2005
|
}
|
|
1918
2006
|
|
|
1919
2007
|
[data-type='boolean'] {
|
|
1920
|
-
color: ${
|
|
2008
|
+
color: ${$.warning.var};
|
|
1921
2009
|
}
|
|
1922
2010
|
|
|
1923
2011
|
[data-type='object'],
|
|
1924
2012
|
[data-type='undefined'] {
|
|
1925
|
-
color: ${
|
|
2013
|
+
color: ${$.white.alpha(0.6)};
|
|
1926
2014
|
}
|
|
1927
2015
|
|
|
1928
2016
|
.collapsed {
|
|
1929
|
-
color: ${
|
|
2017
|
+
color: ${$.white.alpha(0.5)};
|
|
1930
2018
|
}
|
|
1931
2019
|
}
|
|
1932
2020
|
`, q = 14, He = (e) => {
|
|
1933
|
-
let [t, n] = ne(!(e.indent > 0 && e.compact)), [r,
|
|
1934
|
-
return
|
|
1935
|
-
const
|
|
2021
|
+
let [t, n] = ne(!(e.indent > 0 && e.compact)), [r, l] = ne(!e.compact);
|
|
2022
|
+
return m(() => {
|
|
2023
|
+
const o = e.value, s = Array.isArray(o), i = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || i && Object.keys(o).length > 0, u = c && g(F, {
|
|
1936
2024
|
onClick: () => {
|
|
1937
2025
|
n(() => !t());
|
|
1938
2026
|
},
|
|
@@ -1943,86 +2031,86 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
1943
2031
|
},
|
|
1944
2032
|
class: "expand-button",
|
|
1945
2033
|
get children() {
|
|
1946
|
-
return
|
|
2034
|
+
return g(Pe, {
|
|
1947
2035
|
name: "caret-down",
|
|
1948
2036
|
size: 14
|
|
1949
2037
|
});
|
|
1950
2038
|
}
|
|
1951
2039
|
});
|
|
1952
2040
|
return [a && (() => {
|
|
1953
|
-
const p =
|
|
1954
|
-
return p.$$click = (
|
|
1955
|
-
|
|
1956
|
-
}, f(p, s || i ? u : null, d), f(d, () => e.key || e.index),
|
|
1957
|
-
const
|
|
1958
|
-
` : ""}Shift + Click to copy value`,
|
|
1959
|
-
return
|
|
2041
|
+
const p = Dr.cloneNode(!0), d = p.firstChild;
|
|
2042
|
+
return p.$$click = (h) => {
|
|
2043
|
+
h.shiftKey && $e(o);
|
|
2044
|
+
}, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), S((h) => {
|
|
2045
|
+
const v = `${e.key ? `${e.key}
|
|
2046
|
+
` : ""}Shift + Click to copy value`, b = e.index !== void 0;
|
|
2047
|
+
return v !== h._v$ && j(p, "title", h._v$ = v), b !== h._v$2 && p.classList.toggle("index", h._v$2 = b), h;
|
|
1960
2048
|
}, {
|
|
1961
2049
|
_v$: void 0,
|
|
1962
2050
|
_v$2: void 0
|
|
1963
2051
|
}), p;
|
|
1964
|
-
})(),
|
|
1965
|
-
const p =
|
|
2052
|
+
})(), m((() => {
|
|
2053
|
+
const p = m(() => !!(a && c && !t()));
|
|
1966
2054
|
return () => p() ? (() => {
|
|
1967
|
-
const d =
|
|
1968
|
-
return f(d, () => s ? `[…] ${
|
|
1969
|
-
})() : (() => s &&
|
|
1970
|
-
const d =
|
|
1971
|
-
return
|
|
1972
|
-
|
|
1973
|
-
}, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, () => t() ? "[" : `[…] ${
|
|
1974
|
-
})(),
|
|
1975
|
-
const d =
|
|
2055
|
+
const d = Rr.cloneNode(!0);
|
|
2056
|
+
return f(d, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), d;
|
|
2057
|
+
})() : (() => s && o.length === 0 ? zr.cloneNode(!0) : i && Object.keys(o).length === 0 ? Fr.cloneNode(!0) : s ? [(() => {
|
|
2058
|
+
const d = st.cloneNode(!0);
|
|
2059
|
+
return Ce(d, "click", a ? void 0 : (h) => {
|
|
2060
|
+
h.shiftKey && $e(o);
|
|
2061
|
+
}, !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;
|
|
2062
|
+
})(), m((() => {
|
|
2063
|
+
const d = m(() => !!t());
|
|
1976
2064
|
return () => d() && [(() => {
|
|
1977
|
-
const
|
|
1978
|
-
return f(
|
|
1979
|
-
let
|
|
1980
|
-
const
|
|
1981
|
-
return r() || (
|
|
1982
|
-
const x =
|
|
1983
|
-
return f(x,
|
|
2065
|
+
const h = at.cloneNode(!0);
|
|
2066
|
+
return f(h, () => {
|
|
2067
|
+
let v = o;
|
|
2068
|
+
const b = v.length;
|
|
2069
|
+
return r() || (v = v.slice(0, q)), [m(() => v.map((w, k) => (() => {
|
|
2070
|
+
const x = ct.cloneNode(!0);
|
|
2071
|
+
return f(x, g(He, {
|
|
1984
2072
|
value: w,
|
|
1985
2073
|
get indent() {
|
|
1986
2074
|
return e.indent + 1;
|
|
1987
2075
|
},
|
|
1988
|
-
index:
|
|
2076
|
+
index: k,
|
|
1989
2077
|
get compact() {
|
|
1990
2078
|
return e.compact;
|
|
1991
2079
|
}
|
|
1992
2080
|
})), x;
|
|
1993
|
-
})())),
|
|
1994
|
-
const w =
|
|
1995
|
-
return () => w() &&
|
|
2081
|
+
})())), m((() => {
|
|
2082
|
+
const w = m(() => !r() && b > q);
|
|
2083
|
+
return () => w() && g(F, {
|
|
1996
2084
|
onClick: () => {
|
|
1997
|
-
|
|
2085
|
+
l(() => !0);
|
|
1998
2086
|
},
|
|
1999
2087
|
class: "show-all",
|
|
2000
2088
|
get children() {
|
|
2001
|
-
return ["…show all (+",
|
|
2089
|
+
return ["…show all (+", b - q, ")"];
|
|
2002
2090
|
}
|
|
2003
2091
|
});
|
|
2004
2092
|
})())];
|
|
2005
|
-
}),
|
|
2006
|
-
})(),
|
|
2093
|
+
}), h;
|
|
2094
|
+
})(), Br.cloneNode(!0)];
|
|
2007
2095
|
})())] : i ? [(() => {
|
|
2008
|
-
const d =
|
|
2009
|
-
return
|
|
2010
|
-
|
|
2096
|
+
const d = st.cloneNode(!0);
|
|
2097
|
+
return Ce(d, "click", a ? void 0 : (h) => {
|
|
2098
|
+
h.shiftKey && $e(o);
|
|
2011
2099
|
}, !0), j(d, "title", a ? void 0 : "Shift + Click to copy value"), f(d, !a && u, null), f(d, (() => {
|
|
2012
|
-
const
|
|
2013
|
-
return () =>
|
|
2100
|
+
const h = m(() => !!t());
|
|
2101
|
+
return () => h() ? "{" : `{…} ${Object.keys(o).length} properties`;
|
|
2014
2102
|
})(), null), d;
|
|
2015
|
-
})(),
|
|
2016
|
-
const d =
|
|
2103
|
+
})(), m((() => {
|
|
2104
|
+
const d = m(() => !!t());
|
|
2017
2105
|
return () => d() && [(() => {
|
|
2018
|
-
const
|
|
2019
|
-
return f(
|
|
2020
|
-
let
|
|
2021
|
-
const
|
|
2022
|
-
return r() || (
|
|
2023
|
-
const x =
|
|
2024
|
-
return f(x,
|
|
2025
|
-
value:
|
|
2106
|
+
const h = at.cloneNode(!0);
|
|
2107
|
+
return f(h, () => {
|
|
2108
|
+
let v = Object.entries(o);
|
|
2109
|
+
const b = v.length;
|
|
2110
|
+
return r() || (v = v.slice(0, q)), [m(() => v.map(([w, k]) => (() => {
|
|
2111
|
+
const x = ct.cloneNode(!0);
|
|
2112
|
+
return f(x, g(He, {
|
|
2113
|
+
value: k,
|
|
2026
2114
|
key: w,
|
|
2027
2115
|
get indent() {
|
|
2028
2116
|
return e.indent + 1;
|
|
@@ -2031,31 +2119,31 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
2031
2119
|
return e.compact;
|
|
2032
2120
|
}
|
|
2033
2121
|
})), x;
|
|
2034
|
-
})())),
|
|
2035
|
-
const w =
|
|
2036
|
-
return () => w() &&
|
|
2122
|
+
})())), m((() => {
|
|
2123
|
+
const w = m(() => !r() && b > q);
|
|
2124
|
+
return () => w() && g(F, {
|
|
2037
2125
|
onClick: () => {
|
|
2038
|
-
|
|
2126
|
+
l(() => !0);
|
|
2039
2127
|
},
|
|
2040
2128
|
class: "show-all",
|
|
2041
2129
|
get children() {
|
|
2042
|
-
return ["…show all (+",
|
|
2130
|
+
return ["…show all (+", b - q, ")"];
|
|
2043
2131
|
}
|
|
2044
2132
|
});
|
|
2045
2133
|
})())];
|
|
2046
|
-
}),
|
|
2047
|
-
})(),
|
|
2134
|
+
}), h;
|
|
2135
|
+
})(), Hr.cloneNode(!0)];
|
|
2048
2136
|
})())] : (() => {
|
|
2049
|
-
const d =
|
|
2050
|
-
return d.$$click = (
|
|
2051
|
-
|
|
2052
|
-
}, j(d, "data-type", typeof
|
|
2137
|
+
const d = Vr.cloneNode(!0);
|
|
2138
|
+
return d.$$click = (h) => {
|
|
2139
|
+
h.shiftKey && $e(String(o));
|
|
2140
|
+
}, j(d, "data-type", typeof o), f(d, typeof o == "string" && ut.cloneNode(!0), null), f(d, () => typeof o == "number" ? Ft(o) : String(o), null), f(d, typeof o == "string" && ut.cloneNode(!0), null), d;
|
|
2053
2141
|
})())();
|
|
2054
2142
|
})())];
|
|
2055
2143
|
});
|
|
2056
2144
|
}, Z = (e) => (() => {
|
|
2057
|
-
const t =
|
|
2058
|
-
return C(t,
|
|
2145
|
+
const t = Ur.cloneNode(!0);
|
|
2146
|
+
return C(t, Zr), f(t, g(He, {
|
|
2059
2147
|
get value() {
|
|
2060
2148
|
return e.value;
|
|
2061
2149
|
},
|
|
@@ -2065,24 +2153,24 @@ const Pr = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Er = /* @_
|
|
|
2065
2153
|
}
|
|
2066
2154
|
})), t;
|
|
2067
2155
|
})();
|
|
2068
|
-
async function
|
|
2069
|
-
await navigator.clipboard.writeText(e), alert("Copied to clipboard");
|
|
2156
|
+
async function $e(e) {
|
|
2157
|
+
await navigator.clipboard.writeText(typeof e == "object" ? JSON.stringify(e, null, 2) : String(e)), alert("Copied to clipboard");
|
|
2070
2158
|
}
|
|
2071
|
-
|
|
2072
|
-
let
|
|
2073
|
-
function
|
|
2074
|
-
return
|
|
2159
|
+
Te(["click"]);
|
|
2160
|
+
let Wr = 0;
|
|
2161
|
+
function Kr() {
|
|
2162
|
+
return Wr++;
|
|
2075
2163
|
}
|
|
2076
|
-
const
|
|
2164
|
+
const Xr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), Qr = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), Jr = /* @__PURE__ */ y("<option></option>"), Yr = _`
|
|
2077
2165
|
&&& {
|
|
2078
|
-
${
|
|
2166
|
+
${L({
|
|
2079
2167
|
align: "left"
|
|
2080
2168
|
})};
|
|
2081
2169
|
width: 100%;
|
|
2082
2170
|
position: relative;
|
|
2083
2171
|
|
|
2084
2172
|
label {
|
|
2085
|
-
color: ${
|
|
2173
|
+
color: ${$.primary.var};
|
|
2086
2174
|
z-index: 1;
|
|
2087
2175
|
font-size: 13px;
|
|
2088
2176
|
letter-spacing: 0.08em;
|
|
@@ -2090,13 +2178,13 @@ const Br = /* @__PURE__ */ $("<label></label>"), Hr = /* @__PURE__ */ $('<div><d
|
|
|
2090
2178
|
}
|
|
2091
2179
|
|
|
2092
2180
|
.inputContainer {
|
|
2093
|
-
background: ${
|
|
2181
|
+
background: ${$.white.alpha(0.05)};
|
|
2094
2182
|
border-radius: 4px;
|
|
2095
2183
|
margin-top: 0px;
|
|
2096
2184
|
position: relative;
|
|
2097
2185
|
width: 100%;
|
|
2098
2186
|
overflow: hidden;
|
|
2099
|
-
${
|
|
2187
|
+
${L({
|
|
2100
2188
|
align: "left"
|
|
2101
2189
|
})};
|
|
2102
2190
|
}
|
|
@@ -2109,7 +2197,7 @@ const Br = /* @__PURE__ */ $("<label></label>"), Hr = /* @__PURE__ */ $('<div><d
|
|
|
2109
2197
|
padding-left: 10px;
|
|
2110
2198
|
font-size: 14px;
|
|
2111
2199
|
background: transparent;
|
|
2112
|
-
color: ${
|
|
2200
|
+
color: ${$.white.var};
|
|
2113
2201
|
|
|
2114
2202
|
&:focus {
|
|
2115
2203
|
outline: 0;
|
|
@@ -2125,72 +2213,72 @@ const Br = /* @__PURE__ */ $("<label></label>"), Hr = /* @__PURE__ */ $('<div><d
|
|
|
2125
2213
|
left: 0;
|
|
2126
2214
|
right: 8px;
|
|
2127
2215
|
height: 17px;
|
|
2128
|
-
background: ${
|
|
2216
|
+
background: ${$.white.var};
|
|
2129
2217
|
}
|
|
2130
2218
|
}
|
|
2131
|
-
`,
|
|
2132
|
-
const t = `input${
|
|
2219
|
+
`, qr = (e) => {
|
|
2220
|
+
const t = `input${Kr()}`;
|
|
2133
2221
|
return (() => {
|
|
2134
|
-
const n =
|
|
2135
|
-
return f(n,
|
|
2222
|
+
const n = Gr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
|
|
2223
|
+
return f(n, g(de, {
|
|
2136
2224
|
get when() {
|
|
2137
2225
|
return e.label;
|
|
2138
2226
|
},
|
|
2139
2227
|
get children() {
|
|
2140
|
-
const
|
|
2141
|
-
return j(
|
|
2228
|
+
const o = Xr.cloneNode(!0);
|
|
2229
|
+
return j(o, "for", t), f(o, () => e.label), o;
|
|
2142
2230
|
}
|
|
2143
|
-
}), r),
|
|
2144
|
-
|
|
2145
|
-
}), j(
|
|
2146
|
-
const
|
|
2147
|
-
return () =>
|
|
2148
|
-
})(), null), f(
|
|
2231
|
+
}), r), l.addEventListener("change", (o) => {
|
|
2232
|
+
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
2233
|
+
}), j(l, "id", t), f(l, (() => {
|
|
2234
|
+
const o = m(() => !e.value);
|
|
2235
|
+
return () => o() && Qr.cloneNode(!0);
|
|
2236
|
+
})(), null), f(l, g(G, {
|
|
2149
2237
|
get each() {
|
|
2150
2238
|
return e.options;
|
|
2151
2239
|
},
|
|
2152
|
-
children: (
|
|
2153
|
-
const s =
|
|
2154
|
-
return f(s, () =>
|
|
2240
|
+
children: (o) => (() => {
|
|
2241
|
+
const s = Jr.cloneNode(!0);
|
|
2242
|
+
return f(s, () => o.label), S(() => s.value = o.value), s;
|
|
2155
2243
|
})()
|
|
2156
|
-
}), null),
|
|
2244
|
+
}), null), S(() => C(n, zt(Yr, e.class))), S(() => l.value = e.value ?? ""), n;
|
|
2157
2245
|
})();
|
|
2158
2246
|
};
|
|
2159
|
-
function
|
|
2247
|
+
function Bt(e) {
|
|
2160
2248
|
const t = e.alias || e.payload || e.searchParams;
|
|
2161
2249
|
return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
|
|
2162
2250
|
}
|
|
2163
|
-
function
|
|
2251
|
+
function dt(e, t) {
|
|
2164
2252
|
return yt(e, t) ? "no changes" : Kt.diffJson(
|
|
2165
2253
|
typeof e == "object" && e !== null ? e : String(e),
|
|
2166
2254
|
typeof t == "object" && t !== null ? t : String(t)
|
|
2167
2255
|
);
|
|
2168
2256
|
}
|
|
2169
|
-
function
|
|
2257
|
+
function el(e, t) {
|
|
2170
2258
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
2171
2259
|
}
|
|
2172
|
-
const
|
|
2260
|
+
const tl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), Ie = /* @__PURE__ */ y("<div></div>"), ft = /* @__PURE__ */ y("<div>No changes</div>"), pt = /* @__PURE__ */ y('<div class="line"></div>'), nl = _`
|
|
2173
2261
|
&&& {
|
|
2174
|
-
${
|
|
2262
|
+
${L({
|
|
2175
2263
|
gap: 14
|
|
2176
2264
|
})};
|
|
2177
2265
|
|
|
2178
2266
|
.changes-count {
|
|
2179
|
-
color: ${
|
|
2267
|
+
color: ${$.white.alpha(0.5)};
|
|
2180
2268
|
font-size: 14px;
|
|
2181
2269
|
|
|
2182
2270
|
.additions {
|
|
2183
|
-
color: ${
|
|
2271
|
+
color: ${$.success.var};
|
|
2184
2272
|
}
|
|
2185
2273
|
|
|
2186
2274
|
.removals {
|
|
2187
|
-
color: ${
|
|
2275
|
+
color: ${$.error.var};
|
|
2188
2276
|
}
|
|
2189
2277
|
}
|
|
2190
2278
|
}
|
|
2191
|
-
`,
|
|
2279
|
+
`, ht = _`
|
|
2192
2280
|
&&& {
|
|
2193
|
-
${
|
|
2281
|
+
${L({
|
|
2194
2282
|
gap: 0
|
|
2195
2283
|
})};
|
|
2196
2284
|
font-size: 14px;
|
|
@@ -2204,8 +2292,8 @@ const Jr = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
2204
2292
|
|
|
2205
2293
|
&.added {
|
|
2206
2294
|
opacity: 1;
|
|
2207
|
-
color: ${
|
|
2208
|
-
background: ${
|
|
2295
|
+
color: ${$.success.var};
|
|
2296
|
+
background: ${$.success.alpha(0.1)};
|
|
2209
2297
|
|
|
2210
2298
|
&::before {
|
|
2211
2299
|
content: '+';
|
|
@@ -2216,8 +2304,8 @@ const Jr = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
2216
2304
|
|
|
2217
2305
|
&.removed {
|
|
2218
2306
|
opacity: 1;
|
|
2219
|
-
color: ${
|
|
2220
|
-
background: ${
|
|
2307
|
+
color: ${$.error.var};
|
|
2308
|
+
background: ${$.error.alpha(0.1)};
|
|
2221
2309
|
|
|
2222
2310
|
&::before {
|
|
2223
2311
|
content: '-';
|
|
@@ -2227,68 +2315,68 @@ const Jr = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
2227
2315
|
}
|
|
2228
2316
|
}
|
|
2229
2317
|
}
|
|
2230
|
-
`,
|
|
2231
|
-
const e =
|
|
2318
|
+
`, rl = () => {
|
|
2319
|
+
const e = m(() => {
|
|
2232
2320
|
const {
|
|
2233
2321
|
selectedCall: a
|
|
2234
2322
|
} = I;
|
|
2235
|
-
return a ?
|
|
2236
|
-
}), t =
|
|
2323
|
+
return a ? Q.calls[a] : Q.calls[Ee.value];
|
|
2324
|
+
}), t = m(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t()?.id), r = Dt(() => {
|
|
2237
2325
|
const a = e();
|
|
2238
|
-
return a ?
|
|
2326
|
+
return a ? Rt(a.requests).map((c) => ({
|
|
2239
2327
|
value: c.id,
|
|
2240
|
-
label: `${ue(c.startTime).format("HH:mm:ss")} | ${
|
|
2328
|
+
label: `${ue(c.startTime).format("HH:mm:ss")} | ${el(Bt(c), 50)}`
|
|
2241
2329
|
})).filter((c) => c.value !== n()) : [];
|
|
2242
|
-
}, "value"),
|
|
2243
|
-
if (!
|
|
2330
|
+
}, "value"), l = he(null), o = m(() => l.value ? e()?.requests.find((a) => a.id === l.value) : null), s = m(() => {
|
|
2331
|
+
if (!l.value || !n())
|
|
2244
2332
|
return [];
|
|
2245
|
-
const a = t()?.response, c =
|
|
2333
|
+
const a = t()?.response, c = o()?.response, u = dt(c, a);
|
|
2246
2334
|
return u === "no changes" ? [] : u;
|
|
2247
|
-
}), i =
|
|
2248
|
-
if (!
|
|
2335
|
+
}), i = m(() => {
|
|
2336
|
+
if (!l.value || !n())
|
|
2249
2337
|
return [];
|
|
2250
|
-
const a =
|
|
2338
|
+
const a = gt(t()), c = gt(o()), u = dt(c, a);
|
|
2251
2339
|
return u === "no changes" ? [] : u;
|
|
2252
2340
|
});
|
|
2253
2341
|
return (() => {
|
|
2254
2342
|
const a = Ie.cloneNode(!0);
|
|
2255
|
-
return C(a,
|
|
2343
|
+
return C(a, nl), f(a, g(qr, {
|
|
2256
2344
|
get value() {
|
|
2257
|
-
return
|
|
2345
|
+
return l.value;
|
|
2258
2346
|
},
|
|
2259
2347
|
label: "Select a request to compare with",
|
|
2260
2348
|
get options() {
|
|
2261
2349
|
return r();
|
|
2262
2350
|
},
|
|
2263
2351
|
onChange: (c) => {
|
|
2264
|
-
|
|
2352
|
+
l.value = c;
|
|
2265
2353
|
}
|
|
2266
|
-
}), null), f(a,
|
|
2354
|
+
}), null), f(a, g(de, {
|
|
2267
2355
|
get when() {
|
|
2268
|
-
return
|
|
2356
|
+
return l.value;
|
|
2269
2357
|
},
|
|
2270
2358
|
get children() {
|
|
2271
2359
|
return [(() => {
|
|
2272
|
-
const c =
|
|
2273
|
-
return f(d, () => s().filter((
|
|
2274
|
-
})(),
|
|
2360
|
+
const c = tl.cloneNode(!0), u = c.firstChild, p = u.firstChild, d = p.nextSibling, h = u.nextSibling, v = h.nextSibling, b = v.firstChild, w = b.nextSibling;
|
|
2361
|
+
return f(d, () => s().filter((k) => k.added).length), f(w, () => s().filter((k) => k.removed).length), c;
|
|
2362
|
+
})(), g(M, {
|
|
2275
2363
|
get title() {
|
|
2276
|
-
return
|
|
2364
|
+
return m(() => !!t()?.payload)() ? "Payload Diff" : t()?.searchParams ? "Search Params Diff" : "Path Params Diff";
|
|
2277
2365
|
},
|
|
2278
2366
|
get children() {
|
|
2279
2367
|
const c = Ie.cloneNode(!0);
|
|
2280
|
-
return C(c,
|
|
2368
|
+
return C(c, ht), f(c, g(G, {
|
|
2281
2369
|
get each() {
|
|
2282
2370
|
return i();
|
|
2283
2371
|
},
|
|
2284
2372
|
get fallback() {
|
|
2285
|
-
return
|
|
2373
|
+
return ft.cloneNode(!0);
|
|
2286
2374
|
},
|
|
2287
2375
|
children: (u) => (() => {
|
|
2288
|
-
const p =
|
|
2289
|
-
return f(p, () => u.value),
|
|
2290
|
-
const
|
|
2291
|
-
return
|
|
2376
|
+
const p = pt.cloneNode(!0);
|
|
2377
|
+
return f(p, () => u.value), S((d) => {
|
|
2378
|
+
const h = !!u.added, v = !!u.removed;
|
|
2379
|
+
return h !== d._v$ && p.classList.toggle("added", d._v$ = h), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
|
|
2292
2380
|
}, {
|
|
2293
2381
|
_v$: void 0,
|
|
2294
2382
|
_v$2: void 0
|
|
@@ -2296,22 +2384,22 @@ const Jr = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
2296
2384
|
})()
|
|
2297
2385
|
})), c;
|
|
2298
2386
|
}
|
|
2299
|
-
}),
|
|
2387
|
+
}), g(M, {
|
|
2300
2388
|
title: "Response Diff",
|
|
2301
2389
|
get children() {
|
|
2302
2390
|
const c = Ie.cloneNode(!0);
|
|
2303
|
-
return C(c,
|
|
2391
|
+
return C(c, ht), f(c, g(G, {
|
|
2304
2392
|
get each() {
|
|
2305
2393
|
return s();
|
|
2306
2394
|
},
|
|
2307
2395
|
get fallback() {
|
|
2308
|
-
return
|
|
2396
|
+
return ft.cloneNode(!0);
|
|
2309
2397
|
},
|
|
2310
2398
|
children: (u) => (() => {
|
|
2311
|
-
const p =
|
|
2312
|
-
return f(p, () => u.value),
|
|
2313
|
-
const
|
|
2314
|
-
return
|
|
2399
|
+
const p = pt.cloneNode(!0);
|
|
2400
|
+
return f(p, () => u.value), S((d) => {
|
|
2401
|
+
const h = !!u.added, v = !!u.removed;
|
|
2402
|
+
return h !== d._v$3 && p.classList.toggle("added", d._v$3 = h), v !== d._v$4 && p.classList.toggle("removed", d._v$4 = v), d;
|
|
2315
2403
|
}, {
|
|
2316
2404
|
_v$3: void 0,
|
|
2317
2405
|
_v$4: void 0
|
|
@@ -2324,18 +2412,29 @@ const Jr = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
2324
2412
|
}), null), a;
|
|
2325
2413
|
})();
|
|
2326
2414
|
};
|
|
2327
|
-
function
|
|
2415
|
+
function gt(e) {
|
|
2328
2416
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
2329
2417
|
}
|
|
2330
|
-
const
|
|
2418
|
+
const mt = /* @__PURE__ */ y("<div></div>"), ll = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), ol = /* @__PURE__ */ y('<div class="tags"></div>'), il = /* @__PURE__ */ y('<div class="details"></div>'), sl = /* @__PURE__ */ y("<span>|</span>"), al = /* @__PURE__ */ y("<h2></h2>"), cl = /* @__PURE__ */ y('<div class="method"></div>'), ul = /* @__PURE__ */ y('<div class="code"></div>'), dl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), fl = /* @__PURE__ */ y('<div class="tag"></div>'), pl = /* @__PURE__ */ y("<span> ms</span>"), hl = _`
|
|
2331
2419
|
&&& {
|
|
2332
|
-
${
|
|
2420
|
+
${L()};
|
|
2333
2421
|
padding-left: 10px;
|
|
2334
2422
|
|
|
2335
2423
|
> h1 {
|
|
2336
2424
|
margin-top: 12px;
|
|
2337
2425
|
font-family: ${R.decorative};
|
|
2338
|
-
${
|
|
2426
|
+
${pe};
|
|
2427
|
+
|
|
2428
|
+
span.separator {
|
|
2429
|
+
font-size: 14px;
|
|
2430
|
+
font-weight: 300;
|
|
2431
|
+
opacity: 0.4;
|
|
2432
|
+
margin: 0 4px;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
span.type {
|
|
2436
|
+
color: ${$.secondary.var};
|
|
2437
|
+
}
|
|
2339
2438
|
}
|
|
2340
2439
|
|
|
2341
2440
|
> h2 {
|
|
@@ -2346,34 +2445,34 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2346
2445
|
}
|
|
2347
2446
|
|
|
2348
2447
|
.tags {
|
|
2349
|
-
${
|
|
2448
|
+
${B({
|
|
2350
2449
|
gap: 8
|
|
2351
2450
|
})};
|
|
2352
2451
|
margin-top: 8px;
|
|
2353
2452
|
|
|
2354
2453
|
.method {
|
|
2355
|
-
color: ${
|
|
2454
|
+
color: ${$.primary.var};
|
|
2356
2455
|
}
|
|
2357
2456
|
|
|
2358
2457
|
.code {
|
|
2359
|
-
color: ${
|
|
2458
|
+
color: ${$.success.var};
|
|
2360
2459
|
|
|
2361
2460
|
&.error {
|
|
2362
|
-
color: ${
|
|
2461
|
+
color: ${$.error.var};
|
|
2363
2462
|
}
|
|
2364
2463
|
}
|
|
2365
2464
|
|
|
2366
2465
|
.tag {
|
|
2367
2466
|
font-size: 11px;
|
|
2368
|
-
color: ${
|
|
2467
|
+
color: ${$.warning.var};
|
|
2369
2468
|
padding: 1px 3px;
|
|
2370
2469
|
border-radius: 4px;
|
|
2371
|
-
border: 1px solid ${
|
|
2470
|
+
border: 1px solid ${$.warning.alpha(0.6)};
|
|
2372
2471
|
|
|
2373
2472
|
&.error {
|
|
2374
|
-
color: ${
|
|
2473
|
+
color: ${$.error.var};
|
|
2375
2474
|
font-weight: 600;
|
|
2376
|
-
border-color: ${
|
|
2475
|
+
border-color: ${$.error.alpha(0.6)};
|
|
2377
2476
|
}
|
|
2378
2477
|
}
|
|
2379
2478
|
}
|
|
@@ -2381,7 +2480,7 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2381
2480
|
> .details {
|
|
2382
2481
|
margin-top: 14px;
|
|
2383
2482
|
padding-right: 10px;
|
|
2384
|
-
${
|
|
2483
|
+
${L({
|
|
2385
2484
|
gap: 8
|
|
2386
2485
|
})};
|
|
2387
2486
|
flex: 1 1;
|
|
@@ -2389,12 +2488,12 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2389
2488
|
padding-bottom: 20px;
|
|
2390
2489
|
}
|
|
2391
2490
|
}
|
|
2392
|
-
`,
|
|
2491
|
+
`, gl = _`
|
|
2393
2492
|
&&& {
|
|
2394
|
-
${
|
|
2493
|
+
${B({
|
|
2395
2494
|
gap: 20
|
|
2396
2495
|
})};
|
|
2397
|
-
color: ${
|
|
2496
|
+
color: ${$.secondary.var};
|
|
2398
2497
|
margin-top: 20px;
|
|
2399
2498
|
|
|
2400
2499
|
> button {
|
|
@@ -2411,130 +2510,133 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2411
2510
|
}
|
|
2412
2511
|
}
|
|
2413
2512
|
}
|
|
2414
|
-
`,
|
|
2415
|
-
const e =
|
|
2416
|
-
let
|
|
2417
|
-
e() ?
|
|
2418
|
-
const s = t() &&
|
|
2419
|
-
return s &&
|
|
2513
|
+
`, ml = () => {
|
|
2514
|
+
const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = m(() => {
|
|
2515
|
+
let o;
|
|
2516
|
+
e() ? o = Q.calls[e()] : o = Q.calls[Ee.value];
|
|
2517
|
+
const s = t() && o?.requests.find((i) => i.id === t()) || o?.requests.at(-1);
|
|
2518
|
+
return s && o ? {
|
|
2420
2519
|
...s,
|
|
2421
|
-
callName:
|
|
2422
|
-
callPath:
|
|
2520
|
+
callName: o.name,
|
|
2521
|
+
callPath: o.path
|
|
2423
2522
|
} : null;
|
|
2424
2523
|
});
|
|
2425
|
-
function o
|
|
2426
|
-
return
|
|
2524
|
+
function l(o, s) {
|
|
2525
|
+
return g(F, {
|
|
2427
2526
|
get classList() {
|
|
2428
2527
|
return {
|
|
2429
|
-
selected: n() ===
|
|
2528
|
+
selected: n() === o
|
|
2430
2529
|
};
|
|
2431
2530
|
},
|
|
2432
2531
|
onClick: () => {
|
|
2433
|
-
|
|
2532
|
+
ke("selectedTab", o);
|
|
2434
2533
|
},
|
|
2435
2534
|
children: s
|
|
2436
2535
|
});
|
|
2437
2536
|
}
|
|
2438
2537
|
return (() => {
|
|
2439
|
-
const
|
|
2440
|
-
return C(
|
|
2538
|
+
const o = mt.cloneNode(!0);
|
|
2539
|
+
return C(o, hl), f(o, g(de, {
|
|
2441
2540
|
get when() {
|
|
2442
2541
|
return r();
|
|
2443
2542
|
},
|
|
2444
2543
|
keyed: !0,
|
|
2445
2544
|
children: (s) => [(() => {
|
|
2446
|
-
const i =
|
|
2447
|
-
return f(
|
|
2448
|
-
|
|
2449
|
-
|
|
2545
|
+
const i = ll.cloneNode(!0), a = i.firstChild;
|
|
2546
|
+
return a.nextSibling, f(a, () => s.type === "ws" ? "WS" : "API"), f(i, () => s.callName, null), f(i, (() => {
|
|
2547
|
+
const c = m(() => !!s.alias);
|
|
2548
|
+
return () => c() && sl.cloneNode(!0);
|
|
2549
|
+
})(), null), f(i, () => s.alias, null), i;
|
|
2550
|
+
})(), m((() => {
|
|
2551
|
+
const i = m(() => s.callPath !== s.callName);
|
|
2450
2552
|
return () => i() && (() => {
|
|
2451
|
-
const a =
|
|
2553
|
+
const a = al.cloneNode(!0);
|
|
2452
2554
|
return f(a, () => s.callPath), a;
|
|
2453
2555
|
})();
|
|
2454
2556
|
})()), (() => {
|
|
2455
|
-
const i =
|
|
2557
|
+
const i = ol.cloneNode(!0);
|
|
2456
2558
|
return f(i, (() => {
|
|
2457
|
-
const a =
|
|
2559
|
+
const a = m(() => !!s.method);
|
|
2458
2560
|
return () => a() && (() => {
|
|
2459
|
-
const c =
|
|
2561
|
+
const c = cl.cloneNode(!0);
|
|
2460
2562
|
return f(c, () => s.method), c;
|
|
2461
2563
|
})();
|
|
2462
2564
|
})(), null), f(i, (() => {
|
|
2463
|
-
const a =
|
|
2565
|
+
const a = m(() => !!s.code);
|
|
2464
2566
|
return () => a() && (() => {
|
|
2465
|
-
const c =
|
|
2466
|
-
return f(c, () => s.code),
|
|
2567
|
+
const c = ul.cloneNode(!0);
|
|
2568
|
+
return f(c, () => s.code), S(() => c.classList.toggle("error", s.code >= 400)), c;
|
|
2467
2569
|
})();
|
|
2468
2570
|
})(), null), f(i, (() => {
|
|
2469
|
-
const a =
|
|
2470
|
-
return () => a() &&
|
|
2471
|
-
})(), null), f(i,
|
|
2571
|
+
const a = m(() => !!s.isError);
|
|
2572
|
+
return () => a() && dl.cloneNode(!0);
|
|
2573
|
+
})(), null), f(i, g(G, {
|
|
2472
2574
|
get each() {
|
|
2473
2575
|
return s.tags;
|
|
2474
2576
|
},
|
|
2475
2577
|
children: (a) => (() => {
|
|
2476
|
-
const c =
|
|
2578
|
+
const c = fl.cloneNode(!0);
|
|
2477
2579
|
return f(c, a), c;
|
|
2478
2580
|
})()
|
|
2479
2581
|
}), null), i;
|
|
2480
2582
|
})(), (() => {
|
|
2481
|
-
const i =
|
|
2482
|
-
return C(i,
|
|
2483
|
-
const a =
|
|
2484
|
-
return () => a() &&
|
|
2583
|
+
const i = mt.cloneNode(!0);
|
|
2584
|
+
return C(i, gl), f(i, () => l("summary", "Summary"), null), f(i, (() => {
|
|
2585
|
+
const a = m(() => !!s.payload);
|
|
2586
|
+
return () => a() && l("payload", "Payload");
|
|
2485
2587
|
})(), null), f(i, (() => {
|
|
2486
|
-
const a =
|
|
2487
|
-
return () => a() &&
|
|
2488
|
-
})(), null), f(i, () =>
|
|
2588
|
+
const a = m(() => !!s.searchParams);
|
|
2589
|
+
return () => a() && l("urlParams", "URL Params");
|
|
2590
|
+
})(), null), f(i, () => l("response", "Response"), null), f(i, () => l("diff", "Diff"), null), i;
|
|
2489
2591
|
})(), (() => {
|
|
2490
|
-
const i =
|
|
2491
|
-
return f(i,
|
|
2592
|
+
const i = il.cloneNode(!0);
|
|
2593
|
+
return f(i, g(an, {
|
|
2492
2594
|
get children() {
|
|
2493
|
-
return [
|
|
2595
|
+
return [g(ae, {
|
|
2494
2596
|
get when() {
|
|
2495
2597
|
return n() === "summary";
|
|
2496
2598
|
},
|
|
2497
2599
|
get children() {
|
|
2498
|
-
return [
|
|
2600
|
+
return [m(() => m(() => !!s.payload)() && g(M, {
|
|
2499
2601
|
title: "Payload",
|
|
2500
2602
|
get children() {
|
|
2501
|
-
return
|
|
2603
|
+
return g(Z, {
|
|
2502
2604
|
get value() {
|
|
2503
2605
|
return s.payload;
|
|
2504
2606
|
},
|
|
2505
2607
|
compact: !0
|
|
2506
2608
|
});
|
|
2507
2609
|
}
|
|
2508
|
-
})),
|
|
2610
|
+
})), m(() => m(() => !!s.searchParams)() && g(M, {
|
|
2509
2611
|
title: "URL Params",
|
|
2510
2612
|
get children() {
|
|
2511
|
-
return
|
|
2613
|
+
return g(Z, {
|
|
2512
2614
|
get value() {
|
|
2513
2615
|
return s.searchParams;
|
|
2514
2616
|
},
|
|
2515
2617
|
compact: !0
|
|
2516
2618
|
});
|
|
2517
2619
|
}
|
|
2518
|
-
})),
|
|
2620
|
+
})), m(() => m(() => !!s.response)() && g(M, {
|
|
2519
2621
|
title: "Response",
|
|
2520
2622
|
get children() {
|
|
2521
|
-
return
|
|
2623
|
+
return g(Z, {
|
|
2522
2624
|
get value() {
|
|
2523
2625
|
return s.response;
|
|
2524
2626
|
},
|
|
2525
2627
|
compact: !0
|
|
2526
2628
|
});
|
|
2527
2629
|
}
|
|
2528
|
-
})),
|
|
2630
|
+
})), g(M, {
|
|
2529
2631
|
title: "Stats",
|
|
2530
2632
|
get children() {
|
|
2531
|
-
return
|
|
2633
|
+
return g(jr, {
|
|
2532
2634
|
get rows() {
|
|
2533
|
-
return [{
|
|
2635
|
+
return [s.type !== "ws" && {
|
|
2534
2636
|
name: "Duration",
|
|
2535
2637
|
value: (() => {
|
|
2536
|
-
const a =
|
|
2537
|
-
return f(a, () =>
|
|
2638
|
+
const a = pl.cloneNode(!0), c = a.firstChild;
|
|
2639
|
+
return f(a, () => Ft(s.duration, 0), c), S(() => a.style.setProperty("color", s.duration < 500 ? $.success.var : s.duration > 1e3 ? $.error.var : void 0)), a;
|
|
2538
2640
|
})()
|
|
2539
2641
|
}, {
|
|
2540
2642
|
name: "Start Time",
|
|
@@ -2543,26 +2645,33 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2543
2645
|
}
|
|
2544
2646
|
});
|
|
2545
2647
|
}
|
|
2546
|
-
}),
|
|
2547
|
-
|
|
2648
|
+
}), g(de, {
|
|
2649
|
+
get when() {
|
|
2650
|
+
return s.type !== "ws";
|
|
2651
|
+
},
|
|
2548
2652
|
get children() {
|
|
2549
|
-
return
|
|
2550
|
-
|
|
2551
|
-
|
|
2653
|
+
return g(M, {
|
|
2654
|
+
title: "Metadata",
|
|
2655
|
+
get children() {
|
|
2656
|
+
return g(Z, {
|
|
2657
|
+
get value() {
|
|
2658
|
+
return s.metadata;
|
|
2659
|
+
}
|
|
2660
|
+
});
|
|
2552
2661
|
}
|
|
2553
2662
|
});
|
|
2554
2663
|
}
|
|
2555
2664
|
})];
|
|
2556
2665
|
}
|
|
2557
|
-
}),
|
|
2666
|
+
}), g(ae, {
|
|
2558
2667
|
get when() {
|
|
2559
2668
|
return n() === "payload";
|
|
2560
2669
|
},
|
|
2561
2670
|
get children() {
|
|
2562
|
-
return
|
|
2671
|
+
return g(M, {
|
|
2563
2672
|
title: null,
|
|
2564
2673
|
get children() {
|
|
2565
|
-
return
|
|
2674
|
+
return g(Z, {
|
|
2566
2675
|
get value() {
|
|
2567
2676
|
return s.payload;
|
|
2568
2677
|
}
|
|
@@ -2570,15 +2679,15 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2570
2679
|
}
|
|
2571
2680
|
});
|
|
2572
2681
|
}
|
|
2573
|
-
}),
|
|
2682
|
+
}), g(ae, {
|
|
2574
2683
|
get when() {
|
|
2575
2684
|
return n() === "response";
|
|
2576
2685
|
},
|
|
2577
2686
|
get children() {
|
|
2578
|
-
return
|
|
2687
|
+
return g(M, {
|
|
2579
2688
|
title: null,
|
|
2580
2689
|
get children() {
|
|
2581
|
-
return
|
|
2690
|
+
return g(Z, {
|
|
2582
2691
|
get value() {
|
|
2583
2692
|
return s.response;
|
|
2584
2693
|
}
|
|
@@ -2586,15 +2695,15 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2586
2695
|
}
|
|
2587
2696
|
});
|
|
2588
2697
|
}
|
|
2589
|
-
}),
|
|
2698
|
+
}), g(ae, {
|
|
2590
2699
|
get when() {
|
|
2591
2700
|
return n() === "urlParams";
|
|
2592
2701
|
},
|
|
2593
2702
|
get children() {
|
|
2594
|
-
return
|
|
2703
|
+
return g(M, {
|
|
2595
2704
|
title: null,
|
|
2596
2705
|
get children() {
|
|
2597
|
-
return
|
|
2706
|
+
return g(Z, {
|
|
2598
2707
|
get value() {
|
|
2599
2708
|
return s.searchParams;
|
|
2600
2709
|
}
|
|
@@ -2602,59 +2711,59 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2602
2711
|
}
|
|
2603
2712
|
});
|
|
2604
2713
|
}
|
|
2605
|
-
}),
|
|
2714
|
+
}), g(ae, {
|
|
2606
2715
|
get when() {
|
|
2607
2716
|
return n() === "diff";
|
|
2608
2717
|
},
|
|
2609
2718
|
get children() {
|
|
2610
|
-
return
|
|
2719
|
+
return g(rl, {});
|
|
2611
2720
|
}
|
|
2612
2721
|
})];
|
|
2613
2722
|
}
|
|
2614
2723
|
})), i;
|
|
2615
2724
|
})()]
|
|
2616
|
-
})),
|
|
2725
|
+
})), o;
|
|
2617
2726
|
})();
|
|
2618
|
-
},
|
|
2727
|
+
}, $l = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), yl = /* @__PURE__ */ y("<div>no requests found</div>"), vl = /* @__PURE__ */ y('<span class="start-time"></span>'), bl = /* @__PURE__ */ y("<div></div>"), wl = /* @__PURE__ */ y('<span class="separator">|</span>'), xl = /* @__PURE__ */ y('<span class="payload"></span>'), Cl = _`
|
|
2619
2728
|
&&& {
|
|
2620
|
-
${
|
|
2621
|
-
border-right: 1px solid ${
|
|
2729
|
+
${L()};
|
|
2730
|
+
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
2622
2731
|
|
|
2623
2732
|
> h1 {
|
|
2624
2733
|
font-size: 16px;
|
|
2625
2734
|
padding-left: 12px;
|
|
2626
2735
|
padding-top: 10px;
|
|
2627
2736
|
font-family: ${R.decorative};
|
|
2628
|
-
color: ${
|
|
2737
|
+
color: ${$.secondary.var};
|
|
2629
2738
|
padding-bottom: 16px;
|
|
2630
2739
|
}
|
|
2631
2740
|
}
|
|
2632
|
-
`,
|
|
2741
|
+
`, _l = _`
|
|
2633
2742
|
&&& {
|
|
2634
|
-
${
|
|
2743
|
+
${L()};
|
|
2635
2744
|
flex: 1 1;
|
|
2636
2745
|
overflow-y: auto;
|
|
2637
2746
|
}
|
|
2638
|
-
`,
|
|
2747
|
+
`, Sl = _`
|
|
2639
2748
|
&&& {
|
|
2640
2749
|
font-size: 13px;
|
|
2641
|
-
${
|
|
2750
|
+
${L()};
|
|
2642
2751
|
|
|
2643
2752
|
&.error {
|
|
2644
|
-
color: ${
|
|
2753
|
+
color: ${$.error.var};
|
|
2645
2754
|
font-weight: 600;
|
|
2646
2755
|
}
|
|
2647
2756
|
|
|
2648
2757
|
> button {
|
|
2649
2758
|
padding: 4px 12px;
|
|
2650
|
-
${
|
|
2759
|
+
${B({
|
|
2651
2760
|
gap: 8
|
|
2652
2761
|
})};
|
|
2653
2762
|
opacity: 0.8;
|
|
2654
2763
|
|
|
2655
2764
|
&.selected {
|
|
2656
2765
|
opacity: 1;
|
|
2657
|
-
background-color: ${
|
|
2766
|
+
background-color: ${$.secondary.alpha(0.16)};
|
|
2658
2767
|
}
|
|
2659
2768
|
|
|
2660
2769
|
> .start-time {
|
|
@@ -2666,45 +2775,45 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2666
2775
|
}
|
|
2667
2776
|
|
|
2668
2777
|
> .payload {
|
|
2669
|
-
${
|
|
2778
|
+
${pe};
|
|
2670
2779
|
flex-shrink: 1;
|
|
2671
2780
|
}
|
|
2672
2781
|
}
|
|
2673
2782
|
}
|
|
2674
|
-
`,
|
|
2783
|
+
`, kl = _`
|
|
2675
2784
|
&&& {
|
|
2676
2785
|
opacity: 0.4;
|
|
2677
2786
|
font-size: 14px;
|
|
2678
2787
|
padding: 12px;
|
|
2679
2788
|
padding-top: 0;
|
|
2680
2789
|
}
|
|
2681
|
-
`,
|
|
2682
|
-
const e =
|
|
2683
|
-
const
|
|
2684
|
-
return
|
|
2685
|
-
}), t =
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2688
|
-
}), n =
|
|
2790
|
+
`, Al = () => {
|
|
2791
|
+
const e = m(() => {
|
|
2792
|
+
const l = I.selectedCall;
|
|
2793
|
+
return l ? l ? Q.calls[l] : null : Q.calls[Ee.value] || null;
|
|
2794
|
+
}), t = m(() => {
|
|
2795
|
+
const l = Rt(e()?.requests);
|
|
2796
|
+
return l.length === 0 ? null : l;
|
|
2797
|
+
}), n = m(() => I.selectedSubitem ? t()?.filter((l) => l.alias === I.selectedSubitem) : t()), r = m(() => I.selectedRequest || n()?.[0]?.id);
|
|
2689
2798
|
return (() => {
|
|
2690
|
-
const
|
|
2691
|
-
return C(
|
|
2799
|
+
const l = $l.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
|
|
2800
|
+
return C(l, Cl), C(s, _l), f(s, g(G, {
|
|
2692
2801
|
get each() {
|
|
2693
2802
|
return n();
|
|
2694
2803
|
},
|
|
2695
2804
|
get fallback() {
|
|
2696
2805
|
return (() => {
|
|
2697
|
-
const i =
|
|
2698
|
-
return C(i,
|
|
2806
|
+
const i = yl.cloneNode(!0);
|
|
2807
|
+
return C(i, kl), i;
|
|
2699
2808
|
})();
|
|
2700
2809
|
},
|
|
2701
2810
|
children: (i) => {
|
|
2702
|
-
const a = ue(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p =
|
|
2811
|
+
const a = ue(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Bt(i);
|
|
2703
2812
|
return (() => {
|
|
2704
|
-
const d =
|
|
2705
|
-
return C(d,
|
|
2813
|
+
const d = bl.cloneNode(!0);
|
|
2814
|
+
return C(d, Sl), f(d, g(F, {
|
|
2706
2815
|
onClick: () => {
|
|
2707
|
-
|
|
2816
|
+
ke("selectedRequest", i.id);
|
|
2708
2817
|
},
|
|
2709
2818
|
get classList() {
|
|
2710
2819
|
return {
|
|
@@ -2713,29 +2822,29 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2713
2822
|
},
|
|
2714
2823
|
get children() {
|
|
2715
2824
|
return [(() => {
|
|
2716
|
-
const
|
|
2717
|
-
return j(
|
|
2718
|
-
})(),
|
|
2719
|
-
const
|
|
2720
|
-
return j(
|
|
2825
|
+
const h = vl.cloneNode(!0);
|
|
2826
|
+
return j(h, "title", u), f(h, c), h;
|
|
2827
|
+
})(), m(() => !!p && [wl.cloneNode(!0), (() => {
|
|
2828
|
+
const h = xl.cloneNode(!0);
|
|
2829
|
+
return j(h, "title", p), f(h, p), h;
|
|
2721
2830
|
})()])];
|
|
2722
2831
|
}
|
|
2723
|
-
})),
|
|
2832
|
+
})), S(() => d.classList.toggle("error", !!i.isError)), d;
|
|
2724
2833
|
})();
|
|
2725
2834
|
}
|
|
2726
|
-
})),
|
|
2835
|
+
})), l;
|
|
2727
2836
|
})();
|
|
2728
|
-
},
|
|
2837
|
+
}, Nl = /* @__PURE__ */ y("<div></div>"), Tl = _`
|
|
2729
2838
|
&&& {
|
|
2730
2839
|
display: grid;
|
|
2731
2840
|
grid-template-columns: 1fr 1fr 3fr;
|
|
2732
2841
|
}
|
|
2733
|
-
`,
|
|
2734
|
-
const e =
|
|
2735
|
-
return C(e,
|
|
2736
|
-
})(),
|
|
2842
|
+
`, Pl = () => (() => {
|
|
2843
|
+
const e = Nl.cloneNode(!0);
|
|
2844
|
+
return C(e, Tl), f(e, g(Ar, {}), null), f(e, g(Al, {}), null), f(e, g(ml, {}), null), e;
|
|
2845
|
+
})(), El = `
|
|
2737
2846
|
font-family: ${R.primary};
|
|
2738
|
-
color: ${
|
|
2847
|
+
color: ${$.textPrimary.var};
|
|
2739
2848
|
|
|
2740
2849
|
* {
|
|
2741
2850
|
user-select: none;
|
|
@@ -2784,11 +2893,11 @@ const gt = /* @__PURE__ */ $("<div></div>"), Qr = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2784
2893
|
h3 {
|
|
2785
2894
|
font-weight: normal;
|
|
2786
2895
|
}
|
|
2787
|
-
`,
|
|
2896
|
+
`, Ll = `
|
|
2788
2897
|
display: flex;
|
|
2789
2898
|
align-items: center;
|
|
2790
2899
|
justify-content: center;
|
|
2791
|
-
`,
|
|
2900
|
+
`, Ol = `
|
|
2792
2901
|
*,
|
|
2793
2902
|
*::before,
|
|
2794
2903
|
*::after {
|
|
@@ -2862,26 +2971,26 @@ button {
|
|
|
2862
2971
|
cursor: pointer;
|
|
2863
2972
|
-webkit-appearance: none;
|
|
2864
2973
|
}
|
|
2865
|
-
`,
|
|
2866
|
-
${
|
|
2867
|
-
${
|
|
2974
|
+
`, jl = /* @__PURE__ */ y("<div></div>"), Il = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Ml = _`
|
|
2975
|
+
${Ol};
|
|
2976
|
+
${El};
|
|
2868
2977
|
|
|
2869
2978
|
position: fixed;
|
|
2870
2979
|
inset: 32px;
|
|
2871
2980
|
border-radius: 4px;
|
|
2872
|
-
background: ${
|
|
2981
|
+
background: ${$.bgPrimary.var};
|
|
2873
2982
|
display: grid;
|
|
2874
2983
|
grid-template-columns: 51px 1fr;
|
|
2875
2984
|
|
|
2876
2985
|
nav {
|
|
2877
|
-
${
|
|
2878
|
-
border-right: 1px solid ${
|
|
2986
|
+
${L()};
|
|
2987
|
+
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
2879
2988
|
|
|
2880
2989
|
button {
|
|
2881
|
-
${
|
|
2990
|
+
${Ll};
|
|
2882
2991
|
width: 100%;
|
|
2883
2992
|
aspect-ratio: 1 / 1;
|
|
2884
|
-
color: ${
|
|
2993
|
+
color: ${$.bgPrimary.var};
|
|
2885
2994
|
--icon-size: 30px;
|
|
2886
2995
|
|
|
2887
2996
|
&::before {
|
|
@@ -2889,7 +2998,7 @@ button {
|
|
|
2889
2998
|
inset: 6px;
|
|
2890
2999
|
border-radius: 3px;
|
|
2891
3000
|
position: absolute;
|
|
2892
|
-
background: ${
|
|
3001
|
+
background: ${$.primary.var};
|
|
2893
3002
|
}
|
|
2894
3003
|
}
|
|
2895
3004
|
}
|
|
@@ -2897,43 +3006,43 @@ button {
|
|
|
2897
3006
|
> main > * {
|
|
2898
3007
|
${Ze};
|
|
2899
3008
|
}
|
|
2900
|
-
`,
|
|
3009
|
+
`, Dl = _`
|
|
2901
3010
|
${Ze};
|
|
2902
3011
|
position: fixed;
|
|
2903
3012
|
inset: 0;
|
|
2904
3013
|
backdrop-filter: blur(5px);
|
|
2905
|
-
`,
|
|
2906
|
-
const e =
|
|
2907
|
-
return
|
|
3014
|
+
`, Rl = () => [(() => {
|
|
3015
|
+
const e = jl.cloneNode(!0);
|
|
3016
|
+
return Ce(e, "click", Vt, !0), C(e, Dl), e;
|
|
2908
3017
|
})(), (() => {
|
|
2909
|
-
const e =
|
|
2910
|
-
return C(e,
|
|
3018
|
+
const e = Il.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
3019
|
+
return C(e, Ml), f(t, g(F, {
|
|
2911
3020
|
title: "API Explorer",
|
|
2912
3021
|
get children() {
|
|
2913
|
-
return
|
|
3022
|
+
return g(Pe, {
|
|
2914
3023
|
name: "network"
|
|
2915
3024
|
});
|
|
2916
3025
|
}
|
|
2917
|
-
})), f(n,
|
|
3026
|
+
})), f(n, g(Pl, {})), e;
|
|
2918
3027
|
})()];
|
|
2919
|
-
|
|
2920
|
-
const
|
|
2921
|
-
function
|
|
3028
|
+
Te(["click"]);
|
|
3029
|
+
const zl = () => g(Rl, {});
|
|
3030
|
+
function Fl(e) {
|
|
2922
3031
|
let t = "";
|
|
2923
|
-
return e.forEach(({ family: n, weights: r, italics:
|
|
2924
|
-
t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((
|
|
2925
|
-
s !== 0 && (t += ";"), t += `0,${
|
|
2926
|
-
}),
|
|
2927
|
-
t += `;1,${
|
|
3032
|
+
return e.forEach(({ family: n, weights: r, italics: l }) => {
|
|
3033
|
+
t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((o, s) => {
|
|
3034
|
+
s !== 0 && (t += ";"), t += `0,${o}`;
|
|
3035
|
+
}), l?.forEach((o) => {
|
|
3036
|
+
t += `;1,${o}`;
|
|
2928
3037
|
}));
|
|
2929
3038
|
}), `https://fonts.googleapis.com/css2?${t}&display=swap`;
|
|
2930
3039
|
}
|
|
2931
|
-
let
|
|
2932
|
-
function
|
|
2933
|
-
if (
|
|
3040
|
+
let $t = !1;
|
|
3041
|
+
function Bl() {
|
|
3042
|
+
if ($t)
|
|
2934
3043
|
return;
|
|
2935
|
-
|
|
2936
|
-
const e =
|
|
3044
|
+
$t = !0;
|
|
3045
|
+
const e = Fl([
|
|
2937
3046
|
{
|
|
2938
3047
|
family: "Work+Sans",
|
|
2939
3048
|
weights: [300, "..", 700]
|
|
@@ -2941,34 +3050,35 @@ function Ll() {
|
|
|
2941
3050
|
]), t = document.getElementsByTagName("head")[0], n = document.createElement("link");
|
|
2942
3051
|
n.type = "text/css", n.rel = "stylesheet", n.href = e, t?.appendChild(n);
|
|
2943
3052
|
}
|
|
2944
|
-
let
|
|
3053
|
+
let Ht = () => {
|
|
2945
3054
|
}, Ve = !1;
|
|
2946
|
-
function
|
|
2947
|
-
if (ue.extend(
|
|
2948
|
-
|
|
3055
|
+
function Hl() {
|
|
3056
|
+
if (ue.extend(Sn), Ve) {
|
|
3057
|
+
Vt();
|
|
2949
3058
|
return;
|
|
2950
3059
|
}
|
|
2951
|
-
Ve = !0,
|
|
3060
|
+
Ve = !0, Bl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
2952
3061
|
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
2953
|
-
e.id = "dev-tools-root", document.body.appendChild(e),
|
|
3062
|
+
e.id = "dev-tools-root", document.body.appendChild(e), Ht = mn(() => g(zl, {}), e);
|
|
2954
3063
|
}
|
|
2955
|
-
function
|
|
2956
|
-
Ve = !1,
|
|
3064
|
+
function Vt() {
|
|
3065
|
+
Ve = !1, Ht();
|
|
2957
3066
|
}
|
|
2958
|
-
function
|
|
3067
|
+
function Ql({
|
|
2959
3068
|
callsProcessor: e,
|
|
2960
3069
|
shortcut: t
|
|
2961
3070
|
}) {
|
|
2962
|
-
|
|
3071
|
+
Xt(window, {
|
|
2963
3072
|
[t]: (n) => {
|
|
2964
3073
|
const r = document.activeElement;
|
|
2965
|
-
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(),
|
|
3074
|
+
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Hl());
|
|
2966
3075
|
}
|
|
2967
|
-
}),
|
|
3076
|
+
}), gr({
|
|
2968
3077
|
callsProcessor: e
|
|
2969
3078
|
});
|
|
2970
3079
|
}
|
|
2971
3080
|
export {
|
|
2972
|
-
|
|
2973
|
-
|
|
3081
|
+
mr as addCall,
|
|
3082
|
+
Gl as addWebsocketEvent,
|
|
3083
|
+
Ql as initializeDevTools
|
|
2974
3084
|
};
|