app-devtools 0.3.0 → 0.5.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 +8 -7
- package/dist/main.js +400 -395
- package/dist/main.umd.cjs +111 -111
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Q from "dayjs";
|
|
2
|
-
import { sharedConfig as
|
|
2
|
+
import { sharedConfig as D, createRoot as it, createRenderEffect as C, mergeProps as st, $PROXY as z, $TRACK as _e, getListener as Ke, batch as at, createSignal as re, createMemo as m, splitProps as ct, createComponent as p, Show as ae, For as F, Switch as dt, Match as G } from "solid-js";
|
|
3
3
|
import { css as _ } from "solid-styled-components";
|
|
4
|
-
import { dequal as
|
|
4
|
+
import { dequal as Ue } from "dequal";
|
|
5
5
|
import { nanoid as ut } from "nanoid";
|
|
6
6
|
import { parse as ft } from "regexparam";
|
|
7
7
|
import * as pt from "diff";
|
|
@@ -9,7 +9,7 @@ import gt from "tinykeys";
|
|
|
9
9
|
const ht = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], mt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...ht]), $t = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), yt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
10
10
|
className: "class",
|
|
11
11
|
htmlFor: "for"
|
|
12
|
-
}),
|
|
12
|
+
}), Se = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
13
13
|
class: "className",
|
|
14
14
|
formnovalidate: "formNoValidate",
|
|
15
15
|
ismap: "isMap",
|
|
@@ -49,8 +49,8 @@ function Ct(e, t, n) {
|
|
|
49
49
|
const d = c.get(t[s]);
|
|
50
50
|
if (d != null)
|
|
51
51
|
if (r < d && d < o) {
|
|
52
|
-
let g = s, f = 1,
|
|
53
|
-
for (; ++g < i && g < o && !((
|
|
52
|
+
let g = s, f = 1, y;
|
|
53
|
+
for (; ++g < i && g < o && !((y = c.get(t[g])) == null || y !== d + f); )
|
|
54
54
|
f++;
|
|
55
55
|
if (f > d - r) {
|
|
56
56
|
const v = t[s];
|
|
@@ -65,7 +65,7 @@ function Ct(e, t, n) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const Ne = "_$DX_DELEGATE";
|
|
69
69
|
function xt(e, t, n, l = {}) {
|
|
70
70
|
let i;
|
|
71
71
|
return it((o) => {
|
|
@@ -74,20 +74,20 @@ function xt(e, t, n, l = {}) {
|
|
|
74
74
|
i(), t.textContent = "";
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function $(e, t, n) {
|
|
78
78
|
const l = document.createElement("template");
|
|
79
79
|
l.innerHTML = e;
|
|
80
80
|
let i = l.content.firstChild;
|
|
81
81
|
return n && (i = i.firstChild), i;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n = t[
|
|
83
|
+
function ce(e, t = window.document) {
|
|
84
|
+
const n = t[Ne] || (t[Ne] = /* @__PURE__ */ new Set());
|
|
85
85
|
for (let l = 0, i = e.length; l < i; l++) {
|
|
86
86
|
const o = e[l];
|
|
87
87
|
n.has(o) || (n.add(o), t.addEventListener(o, At));
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function P(e, t, n) {
|
|
91
91
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
92
92
|
}
|
|
93
93
|
function wt(e, t, n, l) {
|
|
@@ -96,7 +96,7 @@ function wt(e, t, n, l) {
|
|
|
96
96
|
function b(e, t) {
|
|
97
97
|
t == null ? e.removeAttribute("class") : e.className = t;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function oe(e, t, n, l) {
|
|
100
100
|
if (l)
|
|
101
101
|
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
102
102
|
else if (Array.isArray(n)) {
|
|
@@ -110,17 +110,17 @@ function _t(e, t, n = {}) {
|
|
|
110
110
|
let o, s;
|
|
111
111
|
for (o = 0, s = i.length; o < s; o++) {
|
|
112
112
|
const r = i[o];
|
|
113
|
-
!r || r === "undefined" || t[r] || (
|
|
113
|
+
!r || r === "undefined" || t[r] || (ke(e, r, !1), delete n[r]);
|
|
114
114
|
}
|
|
115
115
|
for (o = 0, s = l.length; o < s; o++) {
|
|
116
116
|
const r = l[o], a = !!t[r];
|
|
117
|
-
!r || r === "undefined" || n[r] === a || !a || (
|
|
117
|
+
!r || r === "undefined" || n[r] === a || !a || (ke(e, r, !0), n[r] = a);
|
|
118
118
|
}
|
|
119
119
|
return n;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function We(e, t, n) {
|
|
122
122
|
if (!t)
|
|
123
|
-
return n ?
|
|
123
|
+
return n ? P(e, "style") : t;
|
|
124
124
|
const l = e.style;
|
|
125
125
|
if (typeof t == "string")
|
|
126
126
|
return l.cssText = t;
|
|
@@ -134,12 +134,12 @@ function Ue(e, t, n) {
|
|
|
134
134
|
}
|
|
135
135
|
function St(e, t = {}, n, l) {
|
|
136
136
|
const i = {};
|
|
137
|
-
return l || C(() => i.children =
|
|
137
|
+
return l || C(() => i.children = U(e, t.children, i.children)), C(() => t.ref && t.ref(e)), C(() => Nt(e, t, n, !0, i, !0)), i;
|
|
138
138
|
}
|
|
139
139
|
function u(e, t, n, l) {
|
|
140
140
|
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
141
|
-
return
|
|
142
|
-
C((i) =>
|
|
141
|
+
return U(e, t, l, n);
|
|
142
|
+
C((i) => U(e, t(), i, n), l);
|
|
143
143
|
}
|
|
144
144
|
function Nt(e, t, n, l, i = {}, o = !1) {
|
|
145
145
|
t || (t = {});
|
|
@@ -147,29 +147,29 @@ function Nt(e, t, n, l, i = {}, o = !1) {
|
|
|
147
147
|
if (!(s in t)) {
|
|
148
148
|
if (s === "children")
|
|
149
149
|
continue;
|
|
150
|
-
i[s] =
|
|
150
|
+
i[s] = Ae(e, s, null, i[s], n, o);
|
|
151
151
|
}
|
|
152
152
|
for (const s in t) {
|
|
153
153
|
if (s === "children") {
|
|
154
|
-
l ||
|
|
154
|
+
l || U(e, t.children);
|
|
155
155
|
continue;
|
|
156
156
|
}
|
|
157
157
|
const r = t[s];
|
|
158
|
-
i[s] =
|
|
158
|
+
i[s] = Ae(e, s, r, i[s], n, o);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function kt(e) {
|
|
162
162
|
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ke(e, t, n) {
|
|
165
165
|
const l = t.trim().split(/\s+/);
|
|
166
166
|
for (let i = 0, o = l.length; i < o; i++)
|
|
167
167
|
e.classList.toggle(l[i], n);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Ae(e, t, n, l, i, o) {
|
|
170
170
|
let s, r, a;
|
|
171
171
|
if (t === "style")
|
|
172
|
-
return
|
|
172
|
+
return We(e, n, l);
|
|
173
173
|
if (t === "classList")
|
|
174
174
|
return _t(e, n, l);
|
|
175
175
|
if (n === l)
|
|
@@ -188,12 +188,12 @@ function ke(e, t, n, l, i, o) {
|
|
|
188
188
|
const g = Array.isArray(l) ? l[0] : l;
|
|
189
189
|
e.removeEventListener(c, g);
|
|
190
190
|
}
|
|
191
|
-
(d || n) && (
|
|
192
|
-
} else if ((a = $t.has(t)) || !i && (
|
|
193
|
-
t === "class" || t === "className" ? b(e, n) : s && !r && !a ? e[kt(t)] = n : e[
|
|
191
|
+
(d || n) && (oe(e, c, n, d), d && ce([c]));
|
|
192
|
+
} else if ((a = $t.has(t)) || !i && (Se[t] || (r = mt.has(t))) || (s = e.nodeName.includes("-")))
|
|
193
|
+
t === "class" || t === "className" ? b(e, n) : s && !r && !a ? e[kt(t)] = n : e[Se[t] || t] = n;
|
|
194
194
|
else {
|
|
195
195
|
const c = i && t.indexOf(":") > -1 && bt[t.split(":")[0]];
|
|
196
|
-
c ? wt(e, c, t, n) :
|
|
196
|
+
c ? wt(e, c, t, n) : P(e, yt[t] || t, n);
|
|
197
197
|
}
|
|
198
198
|
return n;
|
|
199
199
|
}
|
|
@@ -208,7 +208,7 @@ function At(e) {
|
|
|
208
208
|
get() {
|
|
209
209
|
return n || document;
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), D.registry && !D.done && (D.done = !0, document.querySelectorAll("[id^=pl-]").forEach((l) => {
|
|
212
212
|
for (; l && l.nodeType !== 8 && l.nodeValue !== "pl-" + e; ) {
|
|
213
213
|
let i = l.nextSibling;
|
|
214
214
|
l.remove(), l = i;
|
|
@@ -224,37 +224,37 @@ function At(e) {
|
|
|
224
224
|
n = n._$host || n.parentNode || n.host;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
for (
|
|
227
|
+
function U(e, t, n, l, i) {
|
|
228
|
+
for (D.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
229
229
|
n = n();
|
|
230
230
|
if (t === n)
|
|
231
231
|
return n;
|
|
232
232
|
const o = typeof t, s = l !== void 0;
|
|
233
233
|
if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
|
|
234
|
-
if (
|
|
234
|
+
if (D.context)
|
|
235
235
|
return n;
|
|
236
236
|
if (o === "number" && (t = t.toString()), s) {
|
|
237
237
|
let r = n[0];
|
|
238
|
-
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n =
|
|
238
|
+
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = Z(e, n, l, r);
|
|
239
239
|
} else
|
|
240
240
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
241
241
|
} else if (t == null || o === "boolean") {
|
|
242
|
-
if (
|
|
242
|
+
if (D.context)
|
|
243
243
|
return n;
|
|
244
|
-
n =
|
|
244
|
+
n = Z(e, n, l);
|
|
245
245
|
} else {
|
|
246
246
|
if (o === "function")
|
|
247
247
|
return C(() => {
|
|
248
248
|
let r = t();
|
|
249
249
|
for (; typeof r == "function"; )
|
|
250
250
|
r = r();
|
|
251
|
-
n =
|
|
251
|
+
n = U(e, r, n, l);
|
|
252
252
|
}), () => n;
|
|
253
253
|
if (Array.isArray(t)) {
|
|
254
254
|
const r = [], a = n && Array.isArray(n);
|
|
255
|
-
if (
|
|
256
|
-
return C(() => n =
|
|
257
|
-
if (
|
|
255
|
+
if (me(r, t, n, i))
|
|
256
|
+
return C(() => n = U(e, r, n, l, !0)), () => n;
|
|
257
|
+
if (D.context) {
|
|
258
258
|
if (!r.length)
|
|
259
259
|
return n;
|
|
260
260
|
for (let c = 0; c < r.length; c++)
|
|
@@ -262,18 +262,18 @@ function K(e, t, n, l, i) {
|
|
|
262
262
|
return n = r;
|
|
263
263
|
}
|
|
264
264
|
if (r.length === 0) {
|
|
265
|
-
if (n =
|
|
265
|
+
if (n = Z(e, n, l), s)
|
|
266
266
|
return n;
|
|
267
267
|
} else
|
|
268
|
-
a ? n.length === 0 ?
|
|
268
|
+
a ? n.length === 0 ? Pe(e, r, l) : Ct(e, n, r) : (n && Z(e), Pe(e, r));
|
|
269
269
|
n = r;
|
|
270
270
|
} else if (t instanceof Node) {
|
|
271
|
-
if (
|
|
271
|
+
if (D.context && t.parentNode)
|
|
272
272
|
return n = s ? [t] : t;
|
|
273
273
|
if (Array.isArray(n)) {
|
|
274
274
|
if (s)
|
|
275
|
-
return n =
|
|
276
|
-
|
|
275
|
+
return n = Z(e, n, l, t);
|
|
276
|
+
Z(e, n, null, t);
|
|
277
277
|
} else
|
|
278
278
|
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
279
279
|
n = t;
|
|
@@ -281,7 +281,7 @@ function K(e, t, n, l, i) {
|
|
|
281
281
|
}
|
|
282
282
|
return n;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function me(e, t, n, l) {
|
|
285
285
|
let i = !1;
|
|
286
286
|
for (let o = 0, s = t.length; o < s; o++) {
|
|
287
287
|
let r = t[o], a = n && n[o];
|
|
@@ -289,12 +289,12 @@ function he(e, t, n, l) {
|
|
|
289
289
|
e.push(r);
|
|
290
290
|
else if (!(r == null || r === !0 || r === !1))
|
|
291
291
|
if (Array.isArray(r))
|
|
292
|
-
i =
|
|
292
|
+
i = me(e, r, a) || i;
|
|
293
293
|
else if (typeof r == "function")
|
|
294
294
|
if (l) {
|
|
295
295
|
for (; typeof r == "function"; )
|
|
296
296
|
r = r();
|
|
297
|
-
i =
|
|
297
|
+
i = me(e, Array.isArray(r) ? r : [r], Array.isArray(a) ? a : [a]) || i;
|
|
298
298
|
} else
|
|
299
299
|
e.push(r), i = !0;
|
|
300
300
|
else {
|
|
@@ -304,11 +304,11 @@ function he(e, t, n, l) {
|
|
|
304
304
|
}
|
|
305
305
|
return i;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Pe(e, t, n = null) {
|
|
308
308
|
for (let l = 0, i = t.length; l < i; l++)
|
|
309
309
|
e.insertBefore(t[l], n);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Z(e, t, n, l) {
|
|
312
312
|
if (n === void 0)
|
|
313
313
|
return e.textContent = "";
|
|
314
314
|
const i = l || document.createTextNode("");
|
|
@@ -326,12 +326,12 @@ function V(e, t, n, l) {
|
|
|
326
326
|
e.insertBefore(i, n);
|
|
327
327
|
return [i];
|
|
328
328
|
}
|
|
329
|
-
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
329
|
+
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $e = {}, Tt = {
|
|
330
330
|
get exports() {
|
|
331
|
-
return
|
|
331
|
+
return $e;
|
|
332
332
|
},
|
|
333
333
|
set exports(e) {
|
|
334
|
-
|
|
334
|
+
$e = e;
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
(function(e, t) {
|
|
@@ -344,22 +344,22 @@ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
344
344
|
function r(c, d, g, f) {
|
|
345
345
|
return o.fromToBase(c, d, g, f);
|
|
346
346
|
}
|
|
347
|
-
i.en.relativeTime = s, o.fromToBase = function(c, d, g, f,
|
|
348
|
-
for (var v, x, w,
|
|
349
|
-
var
|
|
350
|
-
|
|
351
|
-
var
|
|
352
|
-
if (w = v > 0,
|
|
353
|
-
|
|
354
|
-
var
|
|
355
|
-
|
|
347
|
+
i.en.relativeTime = s, o.fromToBase = function(c, d, g, f, y) {
|
|
348
|
+
for (var v, x, w, A = g.$locale().relativeTime || s, k = 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" }], ee = k.length, O = 0; O < ee; O += 1) {
|
|
349
|
+
var T = k[O];
|
|
350
|
+
T.d && (v = f ? i(c).diff(g, T.d, !0) : g.diff(c, T.d, !0));
|
|
351
|
+
var V = (n.rounding || Math.round)(Math.abs(v));
|
|
352
|
+
if (w = v > 0, V <= T.r || !T.r) {
|
|
353
|
+
V <= 1 && O > 0 && (T = k[O - 1]);
|
|
354
|
+
var pe = A[T.l];
|
|
355
|
+
y && (V = y("" + V)), x = typeof pe == "string" ? pe.replace("%d", V) : pe(V, d, T.l, w);
|
|
356
356
|
break;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
if (d)
|
|
360
360
|
return x;
|
|
361
|
-
var
|
|
362
|
-
return typeof
|
|
361
|
+
var ge = w ? A.future : A.past;
|
|
362
|
+
return typeof ge == "function" ? ge(x) : ge.replace("%s", x);
|
|
363
363
|
}, o.to = function(c, d) {
|
|
364
364
|
return r(c, d, this, !0);
|
|
365
365
|
}, o.from = function(c, d) {
|
|
@@ -376,7 +376,7 @@ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
376
376
|
};
|
|
377
377
|
});
|
|
378
378
|
})(Tt);
|
|
379
|
-
const Et =
|
|
379
|
+
const Et = $e, Lt = /* @__PURE__ */ $("<button></button>"), M = (e) => (() => {
|
|
380
380
|
const t = Lt.cloneNode(!0);
|
|
381
381
|
return St(t, st(e, {
|
|
382
382
|
onMouseDown: Ot
|
|
@@ -421,7 +421,7 @@ const jt = `<svg
|
|
|
421
421
|
function Ft(e) {
|
|
422
422
|
return zt[`/src/assets/icons/${e}.svg`];
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const Ce = `
|
|
425
425
|
position: absolute;
|
|
426
426
|
width: 100%;
|
|
427
427
|
height: 100%;
|
|
@@ -431,7 +431,7 @@ const be = `
|
|
|
431
431
|
function Bt(e, t = "px") {
|
|
432
432
|
return typeof e == "string" ? String(e) : Array.isArray(e) ? e.map((n) => `${n}${t}`).join(" ") : `${e}${t}`;
|
|
433
433
|
}
|
|
434
|
-
const Ht = /* @__PURE__ */
|
|
434
|
+
const Ht = /* @__PURE__ */ $("<div></div>"), Vt = _`
|
|
435
435
|
&&& {
|
|
436
436
|
position: relative;
|
|
437
437
|
color: currentColor;
|
|
@@ -440,10 +440,10 @@ const Ht = /* @__PURE__ */ y("<div></div>"), Vt = _`
|
|
|
440
440
|
|
|
441
441
|
svg {
|
|
442
442
|
display: block;
|
|
443
|
-
${
|
|
443
|
+
${Ce};
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
`,
|
|
446
|
+
`, de = (e) => {
|
|
447
447
|
const t = Ft(e.name);
|
|
448
448
|
return (() => {
|
|
449
449
|
const n = Ht.cloneNode(!0);
|
|
@@ -452,16 +452,16 @@ const Ht = /* @__PURE__ */ y("<div></div>"), Vt = _`
|
|
|
452
452
|
color: e.color,
|
|
453
453
|
"--icon-size": e.size && Bt(e.size)
|
|
454
454
|
};
|
|
455
|
-
return i !== l._v$ && b(n, l._v$ = i), l._v$2 =
|
|
455
|
+
return i !== l._v$ && b(n, l._v$ = i), l._v$2 = We(n, o, l._v$2), l;
|
|
456
456
|
}, {
|
|
457
457
|
_v$: void 0,
|
|
458
458
|
_v$2: void 0
|
|
459
459
|
}), n;
|
|
460
460
|
})();
|
|
461
|
-
},
|
|
462
|
-
function
|
|
463
|
-
let n = e[
|
|
464
|
-
if (!n && (Object.defineProperty(e,
|
|
461
|
+
}, le = Symbol("store-raw"), q = Symbol("store-node"), Zt = Symbol("store-name");
|
|
462
|
+
function Je(e, t) {
|
|
463
|
+
let n = e[z];
|
|
464
|
+
if (!n && (Object.defineProperty(e, z, {
|
|
465
465
|
value: n = new Proxy(e, Wt)
|
|
466
466
|
}), !Array.isArray(e))) {
|
|
467
467
|
const l = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
|
|
@@ -475,52 +475,52 @@ function We(e, t) {
|
|
|
475
475
|
}
|
|
476
476
|
return n;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function W(e) {
|
|
479
479
|
let t;
|
|
480
|
-
return e != null && typeof e == "object" && (e[
|
|
480
|
+
return e != null && typeof e == "object" && (e[z] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function J(e, t = /* @__PURE__ */ new Set()) {
|
|
483
483
|
let n, l, i, o;
|
|
484
|
-
if (n = e != null && e[
|
|
484
|
+
if (n = e != null && e[le])
|
|
485
485
|
return n;
|
|
486
|
-
if (!
|
|
486
|
+
if (!W(e) || t.has(e))
|
|
487
487
|
return e;
|
|
488
488
|
if (Array.isArray(e)) {
|
|
489
489
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
490
490
|
for (let s = 0, r = e.length; s < r; s++)
|
|
491
|
-
i = e[s], (l =
|
|
491
|
+
i = e[s], (l = J(i, t)) !== i && (e[s] = l);
|
|
492
492
|
} else {
|
|
493
493
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
494
494
|
const s = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
495
495
|
for (let a = 0, c = s.length; a < c; a++)
|
|
496
|
-
o = s[a], !r[o].get && (i = e[o], (l =
|
|
496
|
+
o = s[a], !r[o].get && (i = e[o], (l = J(i, t)) !== i && (e[o] = l));
|
|
497
497
|
}
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function xe(e) {
|
|
501
501
|
let t = e[q];
|
|
502
502
|
return t || Object.defineProperty(e, q, {
|
|
503
503
|
value: t = {}
|
|
504
504
|
}), t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
return e[t] || (e[t] =
|
|
506
|
+
function ye(e, t, n) {
|
|
507
|
+
return e[t] || (e[t] = Ge(n));
|
|
508
508
|
}
|
|
509
509
|
function Kt(e, t) {
|
|
510
510
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
511
|
-
return !n || n.get || !n.configurable || t ===
|
|
511
|
+
return !n || n.get || !n.configurable || t === z || t === q || t === Zt || (delete n.value, delete n.writable, n.get = () => e[z][t]), n;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
if (
|
|
515
|
-
const t =
|
|
516
|
-
(t._ || (t._ =
|
|
513
|
+
function Xe(e) {
|
|
514
|
+
if (Ke()) {
|
|
515
|
+
const t = xe(e);
|
|
516
|
+
(t._ || (t._ = Ge()))();
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Ut(e) {
|
|
520
|
-
return
|
|
520
|
+
return Xe(e), Reflect.ownKeys(e);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
const [t, n] =
|
|
522
|
+
function Ge(e) {
|
|
523
|
+
const [t, n] = re(e, {
|
|
524
524
|
equals: !1,
|
|
525
525
|
internal: !0
|
|
526
526
|
});
|
|
@@ -528,24 +528,24 @@ function Xe(e) {
|
|
|
528
528
|
}
|
|
529
529
|
const Wt = {
|
|
530
530
|
get(e, t, n) {
|
|
531
|
-
if (t ===
|
|
531
|
+
if (t === le)
|
|
532
532
|
return e;
|
|
533
|
-
if (t ===
|
|
533
|
+
if (t === z)
|
|
534
534
|
return n;
|
|
535
|
-
if (t ===
|
|
536
|
-
return
|
|
537
|
-
const l =
|
|
535
|
+
if (t === _e)
|
|
536
|
+
return Xe(e), n;
|
|
537
|
+
const l = xe(e), i = l.hasOwnProperty(t);
|
|
538
538
|
let o = i ? l[t]() : e[t];
|
|
539
539
|
if (t === q || t === "__proto__")
|
|
540
540
|
return o;
|
|
541
541
|
if (!i) {
|
|
542
542
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
543
|
-
|
|
543
|
+
Ke() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = ye(l, t, o)());
|
|
544
544
|
}
|
|
545
|
-
return
|
|
545
|
+
return W(o) ? Je(o) : o;
|
|
546
546
|
},
|
|
547
547
|
has(e, t) {
|
|
548
|
-
return t ===
|
|
548
|
+
return t === le || t === z || t === _e || t === q || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
|
|
549
549
|
},
|
|
550
550
|
set() {
|
|
551
551
|
return !0;
|
|
@@ -556,33 +556,33 @@ const Wt = {
|
|
|
556
556
|
ownKeys: Ut,
|
|
557
557
|
getOwnPropertyDescriptor: Kt
|
|
558
558
|
};
|
|
559
|
-
function
|
|
559
|
+
function X(e, t, n, l = !1) {
|
|
560
560
|
if (!l && e[t] === n)
|
|
561
561
|
return;
|
|
562
562
|
const i = e[t], o = e.length;
|
|
563
563
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
564
|
-
let s =
|
|
565
|
-
(r =
|
|
564
|
+
let s = xe(e), r;
|
|
565
|
+
(r = ye(s, t, i)) && r.$(() => n), Array.isArray(e) && e.length !== o && (r = ye(s, "length", o)) && r.$(e.length), (r = s._) && r.$();
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ye(e, t) {
|
|
568
568
|
const n = Object.keys(t);
|
|
569
569
|
for (let l = 0; l < n.length; l += 1) {
|
|
570
570
|
const i = n[l];
|
|
571
|
-
|
|
571
|
+
X(e, i, t[i]);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
function Jt(e, t) {
|
|
575
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
575
|
+
if (typeof t == "function" && (t = t(e)), t = J(t), Array.isArray(t)) {
|
|
576
576
|
if (e === t)
|
|
577
577
|
return;
|
|
578
578
|
let n = 0, l = t.length;
|
|
579
579
|
for (; n < l; n++) {
|
|
580
580
|
const i = t[n];
|
|
581
|
-
e[n] !== i &&
|
|
581
|
+
e[n] !== i && X(e, n, i);
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
X(e, "length", l);
|
|
584
584
|
} else
|
|
585
|
-
|
|
585
|
+
Ye(e, t);
|
|
586
586
|
}
|
|
587
587
|
function Y(e, t, n = []) {
|
|
588
588
|
let l, i = e;
|
|
@@ -613,10 +613,10 @@ function Y(e, t, n = []) {
|
|
|
613
613
|
i = e[l], n = [l].concat(n);
|
|
614
614
|
}
|
|
615
615
|
let o = t[0];
|
|
616
|
-
typeof o == "function" && (o = o(i, n), o === i) || l === void 0 && o == null || (o =
|
|
616
|
+
typeof o == "function" && (o = o(i, n), o === i) || l === void 0 && o == null || (o = J(o), l === void 0 || W(i) && W(o) && !Array.isArray(o) ? Ye(i, o) : X(e, l, o));
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
const n =
|
|
618
|
+
function Qe(...[e, t]) {
|
|
619
|
+
const n = J(e || {}), l = Array.isArray(n), i = Je(n);
|
|
620
620
|
function o(...s) {
|
|
621
621
|
at(() => {
|
|
622
622
|
l && s.length === 1 ? Jt(n, s[0]) : Y(n, s);
|
|
@@ -624,36 +624,36 @@ function Ye(...[e, t]) {
|
|
|
624
624
|
}
|
|
625
625
|
return [i, o];
|
|
626
626
|
}
|
|
627
|
-
const
|
|
627
|
+
const ie = /* @__PURE__ */ new WeakMap(), qe = {
|
|
628
628
|
get(e, t) {
|
|
629
|
-
if (t ===
|
|
629
|
+
if (t === le)
|
|
630
630
|
return e;
|
|
631
631
|
const n = e[t];
|
|
632
632
|
let l;
|
|
633
|
-
return
|
|
633
|
+
return W(n) ? ie.get(n) || (ie.set(n, l = new Proxy(n, qe)), l) : n;
|
|
634
634
|
},
|
|
635
635
|
set(e, t, n) {
|
|
636
|
-
return
|
|
636
|
+
return X(e, t, J(n)), !0;
|
|
637
637
|
},
|
|
638
638
|
deleteProperty(e, t) {
|
|
639
|
-
return
|
|
639
|
+
return X(e, t, void 0, !0), !0;
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
function Xt(e) {
|
|
643
643
|
return (t) => {
|
|
644
|
-
if (
|
|
644
|
+
if (W(t)) {
|
|
645
645
|
let n;
|
|
646
|
-
(n =
|
|
646
|
+
(n = ie.get(t)) || ie.set(t, n = new Proxy(t, qe)), e(n);
|
|
647
647
|
}
|
|
648
648
|
return t;
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
const [N,
|
|
651
|
+
const [N, se] = Qe({
|
|
652
652
|
selectedCall: null,
|
|
653
653
|
selectedRequest: null,
|
|
654
654
|
selectedTab: null,
|
|
655
655
|
selectedSubitem: null
|
|
656
|
-
}),
|
|
656
|
+
}), ue = `
|
|
657
657
|
display: inline-block;
|
|
658
658
|
overflow: hidden;
|
|
659
659
|
text-overflow: ellipsis;
|
|
@@ -672,7 +672,7 @@ const [N, ie] = Ye({
|
|
|
672
672
|
bottom: "flex-end",
|
|
673
673
|
center: "center",
|
|
674
674
|
stretch: "stretch"
|
|
675
|
-
},
|
|
675
|
+
}, B = ({
|
|
676
676
|
justify: e = "left",
|
|
677
677
|
align: t = "center",
|
|
678
678
|
gap: n
|
|
@@ -716,13 +716,13 @@ function en(e) {
|
|
|
716
716
|
function tn(e) {
|
|
717
717
|
return Object.entries(e);
|
|
718
718
|
}
|
|
719
|
-
const
|
|
720
|
-
let
|
|
719
|
+
const te = document.documentElement.style;
|
|
720
|
+
let Te = 1;
|
|
721
721
|
function nn(e) {
|
|
722
722
|
const t = {};
|
|
723
723
|
for (const [n, l] of tn(e)) {
|
|
724
|
-
const [i, o, s] = en(l), r = `c${
|
|
725
|
-
|
|
724
|
+
const [i, o, s] = en(l), r = `c${Te}`;
|
|
725
|
+
Te++, te.setProperty(`--${r}-r`, String(i)), te.setProperty(`--${r}-g`, String(o)), te.setProperty(`--${r}-b`, String(s)), te.setProperty(`--${r}`, l), t[n] = {
|
|
726
726
|
red: i,
|
|
727
727
|
green: o,
|
|
728
728
|
blue: s,
|
|
@@ -762,7 +762,7 @@ const h = nn({
|
|
|
762
762
|
bg: "#EAEFFF",
|
|
763
763
|
white: "#fff",
|
|
764
764
|
black: "#000"
|
|
765
|
-
}),
|
|
765
|
+
}), L = {
|
|
766
766
|
primary: "Work Sans, sans-serif",
|
|
767
767
|
decorative: '"Fira Code", monospaced'
|
|
768
768
|
};
|
|
@@ -772,15 +772,15 @@ function rn(e, t, n) {
|
|
|
772
772
|
const l = [], i = new Map(e.map((o) => [o[n], o]));
|
|
773
773
|
for (const o of t) {
|
|
774
774
|
const s = i.get(o[n]);
|
|
775
|
-
s &&
|
|
775
|
+
s && Ue(s, o) ? l.push(s) : l.push(o);
|
|
776
776
|
}
|
|
777
777
|
return l;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
779
|
+
function et(e, t) {
|
|
780
|
+
return m((n) => rn(n, typeof e == "function" ? e() : e, t));
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
const [t, n] =
|
|
782
|
+
function we(e) {
|
|
783
|
+
const [t, n] = re(e);
|
|
784
784
|
return {
|
|
785
785
|
get value() {
|
|
786
786
|
return t();
|
|
@@ -793,14 +793,14 @@ function xe(e) {
|
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
795
|
}
|
|
796
|
-
const on = /* @__PURE__ */
|
|
796
|
+
const on = /* @__PURE__ */ $('<div class="tag"></div>'), Ee = /* @__PURE__ */ $("<span></span>"), ln = /* @__PURE__ */ $('<div><div class="call"></div></div>'), sn = _`
|
|
797
797
|
&&& {
|
|
798
798
|
font-size: 14px;
|
|
799
799
|
${S()};
|
|
800
800
|
|
|
801
801
|
> .call {
|
|
802
802
|
padding: 4px 12px;
|
|
803
|
-
${
|
|
803
|
+
${B()};
|
|
804
804
|
opacity: 0.8;
|
|
805
805
|
|
|
806
806
|
&.selected {
|
|
@@ -810,17 +810,17 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
810
810
|
|
|
811
811
|
> button {
|
|
812
812
|
text-align: left;
|
|
813
|
-
${
|
|
813
|
+
${B({
|
|
814
814
|
gap: 8
|
|
815
815
|
})};
|
|
816
816
|
|
|
817
817
|
> .tag {
|
|
818
818
|
font-weight: 600;
|
|
819
|
-
font-family: ${
|
|
819
|
+
font-family: ${L.decorative};
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
> span {
|
|
823
|
-
${
|
|
823
|
+
${ue};
|
|
824
824
|
flex-shrink: 1;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -869,12 +869,12 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
869
869
|
`, an = (e) => {
|
|
870
870
|
const t = () => e.item, n = () => e.currentCallId;
|
|
871
871
|
ct(e, ["item", "currentCallId"])[1];
|
|
872
|
-
const l =
|
|
872
|
+
const l = we(e.item.subitemsWithAlias.length < 4), i = cn(t().type, t().subType);
|
|
873
873
|
return (() => {
|
|
874
874
|
const o = ln.cloneNode(!0), s = o.firstChild;
|
|
875
|
-
return b(o, sn), u(s, p(
|
|
875
|
+
return b(o, sn), u(s, p(M, {
|
|
876
876
|
onClick: () => {
|
|
877
|
-
|
|
877
|
+
se({
|
|
878
878
|
selectedCall: t().id,
|
|
879
879
|
selectedSubitem: null
|
|
880
880
|
});
|
|
@@ -884,19 +884,19 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
884
884
|
const r = on.cloneNode(!0);
|
|
885
885
|
return u(r, () => i.icon), C((a) => {
|
|
886
886
|
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, d = i.color;
|
|
887
|
-
return c !== a._v$ &&
|
|
887
|
+
return c !== a._v$ && P(r, "title", a._v$ = c), d !== a._v$2 && r.style.setProperty("color", a._v$2 = d), a;
|
|
888
888
|
}, {
|
|
889
889
|
_v$: void 0,
|
|
890
890
|
_v$2: void 0
|
|
891
891
|
}), r;
|
|
892
892
|
})(), (() => {
|
|
893
|
-
const r =
|
|
894
|
-
return u(r, () => t().name), C(() =>
|
|
893
|
+
const r = Ee.cloneNode(!0);
|
|
894
|
+
return u(r, () => t().name), C(() => P(r, "title", t().name)), r;
|
|
895
895
|
})()];
|
|
896
896
|
}
|
|
897
897
|
}), null), u(s, (() => {
|
|
898
|
-
const r =
|
|
899
|
-
return () => r() && p(
|
|
898
|
+
const r = m(() => t().subitemsWithAlias.length > 0);
|
|
899
|
+
return () => r() && p(M, {
|
|
900
900
|
class: "expand-button",
|
|
901
901
|
get classList() {
|
|
902
902
|
return {
|
|
@@ -907,21 +907,21 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
907
907
|
l.value = !l.value;
|
|
908
908
|
},
|
|
909
909
|
get children() {
|
|
910
|
-
return p(
|
|
910
|
+
return p(de, {
|
|
911
911
|
name: "caret-down"
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
914
|
});
|
|
915
|
-
})(), null), u(o, p(
|
|
915
|
+
})(), null), u(o, p(ae, {
|
|
916
916
|
get when() {
|
|
917
917
|
return l.value;
|
|
918
918
|
},
|
|
919
919
|
get children() {
|
|
920
|
-
return p(
|
|
920
|
+
return p(F, {
|
|
921
921
|
get each() {
|
|
922
922
|
return t().subitemsWithAlias;
|
|
923
923
|
},
|
|
924
|
-
children: (r) => p(
|
|
924
|
+
children: (r) => p(M, {
|
|
925
925
|
class: "subitem",
|
|
926
926
|
get classList() {
|
|
927
927
|
return {
|
|
@@ -929,13 +929,13 @@ const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y(
|
|
|
929
929
|
};
|
|
930
930
|
},
|
|
931
931
|
onClick: () => {
|
|
932
|
-
|
|
932
|
+
se({
|
|
933
933
|
selectedCall: t().id,
|
|
934
934
|
selectedSubitem: r
|
|
935
935
|
});
|
|
936
936
|
},
|
|
937
937
|
get children() {
|
|
938
|
-
const a =
|
|
938
|
+
const a = Ee.cloneNode(!0);
|
|
939
939
|
return u(a, r), a;
|
|
940
940
|
}
|
|
941
941
|
})
|
|
@@ -951,11 +951,11 @@ function cn(e, t) {
|
|
|
951
951
|
color: l
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function Le(e) {
|
|
955
955
|
if (e == null)
|
|
956
956
|
throw new Error("Value is null or undefined");
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Oe(e, t) {
|
|
959
959
|
try {
|
|
960
960
|
return e();
|
|
961
961
|
} catch (n) {
|
|
@@ -975,87 +975,92 @@ function un(e, t) {
|
|
|
975
975
|
l[t.keys[n]] = i[++n] || null;
|
|
976
976
|
return l;
|
|
977
977
|
}
|
|
978
|
-
const [
|
|
978
|
+
const [H, fn] = Qe({
|
|
979
979
|
calls: {}
|
|
980
980
|
});
|
|
981
|
-
let
|
|
981
|
+
let ve = {
|
|
982
982
|
callsProcessor: []
|
|
983
983
|
};
|
|
984
984
|
function pn(e) {
|
|
985
|
-
|
|
986
|
-
...
|
|
985
|
+
ve = {
|
|
986
|
+
...ve,
|
|
987
987
|
...e
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
990
|
function Br(e) {
|
|
991
991
|
const t = e.startTime || Date.now();
|
|
992
|
-
return (
|
|
993
|
-
|
|
992
|
+
return ({
|
|
993
|
+
isError: n,
|
|
994
|
+
status: l,
|
|
995
|
+
response: i,
|
|
996
|
+
metadata: o,
|
|
997
|
+
tags: s
|
|
998
|
+
}) => {
|
|
999
|
+
const r = e.duration || Date.now() - t;
|
|
994
1000
|
fn(
|
|
995
|
-
Xt((
|
|
996
|
-
const
|
|
1001
|
+
Xt((a) => {
|
|
1002
|
+
const c = Oe(
|
|
997
1003
|
() => new URL(e.path, "http://localhost")
|
|
998
1004
|
);
|
|
999
|
-
|
|
1000
|
-
const
|
|
1001
|
-
let
|
|
1002
|
-
const
|
|
1003
|
-
if (typeof
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1005
|
+
Le(c);
|
|
1006
|
+
const d = c.searchParams.toString() !== "" ? Object.fromEntries(c.searchParams.entries()) : null;
|
|
1007
|
+
let g = null;
|
|
1008
|
+
const f = ve.callsProcessor.find((O) => {
|
|
1009
|
+
if (typeof O.match == "string") {
|
|
1010
|
+
const T = dn(c.pathname, O.match);
|
|
1011
|
+
return T ? (g = T, !0) : !1;
|
|
1006
1012
|
} else
|
|
1007
|
-
return
|
|
1008
|
-
url:
|
|
1013
|
+
return O.match({
|
|
1014
|
+
url: c,
|
|
1009
1015
|
type: e.type,
|
|
1010
1016
|
subType: e.subType
|
|
1011
1017
|
});
|
|
1012
|
-
}),
|
|
1013
|
-
url:
|
|
1018
|
+
}), y = f?.callID?.({
|
|
1019
|
+
url: c,
|
|
1014
1020
|
type: e.type,
|
|
1015
1021
|
subType: e.subType
|
|
1016
|
-
}) || typeof
|
|
1017
|
-
|
|
1018
|
-
),
|
|
1019
|
-
url:
|
|
1022
|
+
}) || typeof f?.match == "string" && f.match, v = btoa(
|
|
1023
|
+
y || `${c.pathname}|${e.type}${e.subType ? `|${e.subType}` : ""}`
|
|
1024
|
+
), x = f?.callName, w = typeof x == "function" ? x({
|
|
1025
|
+
url: c,
|
|
1020
1026
|
type: e.type,
|
|
1021
1027
|
subType: e.subType
|
|
1022
|
-
}) :
|
|
1023
|
-
|
|
1024
|
-
name:
|
|
1025
|
-
path:
|
|
1028
|
+
}) : x;
|
|
1029
|
+
a.calls[v] || (a.calls[v] = {
|
|
1030
|
+
name: w || typeof f?.match == "string" && f.match || c.pathname.replace(/^\//, ""),
|
|
1031
|
+
path: c.pathname.replace(/^\//, ""),
|
|
1026
1032
|
lastRequestStartTime: t,
|
|
1027
1033
|
requests: [],
|
|
1028
1034
|
type: e.type,
|
|
1029
1035
|
subType: e.subType
|
|
1030
1036
|
});
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1033
|
-
const
|
|
1037
|
+
const A = a.calls[v];
|
|
1038
|
+
Le(A), A.requests.length > 100 && A.requests.shift();
|
|
1039
|
+
const k = {
|
|
1034
1040
|
id: ut(),
|
|
1035
|
-
duration:
|
|
1036
|
-
pathParams:
|
|
1037
|
-
isError:
|
|
1038
|
-
metadata:
|
|
1041
|
+
duration: r,
|
|
1042
|
+
pathParams: g,
|
|
1043
|
+
isError: n,
|
|
1044
|
+
metadata: o,
|
|
1039
1045
|
path: e.path.replace(/^\//, ""),
|
|
1040
1046
|
payload: e.payload,
|
|
1041
|
-
response:
|
|
1042
|
-
searchParams:
|
|
1043
|
-
status: e.status,
|
|
1047
|
+
response: i,
|
|
1048
|
+
searchParams: d,
|
|
1044
1049
|
startTime: t,
|
|
1045
1050
|
type: e.type,
|
|
1046
1051
|
method: e.method,
|
|
1047
1052
|
subType: e.subType,
|
|
1048
|
-
code:
|
|
1049
|
-
tags: e.tags || []
|
|
1050
|
-
},
|
|
1051
|
-
() =>
|
|
1053
|
+
code: l,
|
|
1054
|
+
tags: [...e.tags || [], ...s || []]
|
|
1055
|
+
}, ee = Oe(
|
|
1056
|
+
() => f?.payloadAlias?.(k.payload, k)
|
|
1052
1057
|
);
|
|
1053
|
-
|
|
1058
|
+
ee && (k.alias = ee), A.requests.push(k);
|
|
1054
1059
|
})
|
|
1055
1060
|
);
|
|
1056
1061
|
};
|
|
1057
1062
|
}
|
|
1058
|
-
const gn = /* @__PURE__ */
|
|
1063
|
+
const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text" placeholder="Search"></label><div></div></div>'), hn = _`
|
|
1059
1064
|
&&& {
|
|
1060
1065
|
${S()};
|
|
1061
1066
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
@@ -1064,7 +1069,7 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1064
1069
|
font-size: 18px;
|
|
1065
1070
|
padding-left: 12px;
|
|
1066
1071
|
padding-top: 10px;
|
|
1067
|
-
font-family: ${
|
|
1072
|
+
font-family: ${L.decorative};
|
|
1068
1073
|
color: ${h.secondary.var};
|
|
1069
1074
|
padding-bottom: 16px;
|
|
1070
1075
|
}
|
|
@@ -1078,7 +1083,7 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1078
1083
|
}
|
|
1079
1084
|
`, $n = _`
|
|
1080
1085
|
&&& {
|
|
1081
|
-
${
|
|
1086
|
+
${B({
|
|
1082
1087
|
gap: 8
|
|
1083
1088
|
})};
|
|
1084
1089
|
margin: 0 10px;
|
|
@@ -1107,8 +1112,8 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1107
1112
|
}
|
|
1108
1113
|
}
|
|
1109
1114
|
`, yn = () => {
|
|
1110
|
-
const e =
|
|
1111
|
-
const l = Object.entries(
|
|
1115
|
+
const e = we(""), t = et(() => {
|
|
1116
|
+
const l = Object.entries(H.calls), i = [];
|
|
1112
1117
|
for (const [o, s] of l.reverse()) {
|
|
1113
1118
|
if (e.value.trim() && !s.name.includes(e.value.toLowerCase()))
|
|
1114
1119
|
continue;
|
|
@@ -1122,14 +1127,14 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1122
1127
|
});
|
|
1123
1128
|
}
|
|
1124
1129
|
return i;
|
|
1125
|
-
}, "id"), n =
|
|
1130
|
+
}, "id"), n = m(() => N.selectedCall);
|
|
1126
1131
|
return (() => {
|
|
1127
1132
|
const l = gn.cloneNode(!0), i = l.firstChild, o = i.nextSibling, s = o.firstChild, r = o.nextSibling;
|
|
1128
|
-
return b(l, hn), b(o, $n), u(o, p(
|
|
1133
|
+
return b(l, hn), b(o, $n), u(o, p(de, {
|
|
1129
1134
|
name: "search"
|
|
1130
1135
|
}), s), s.$$input = (a) => {
|
|
1131
1136
|
e.value = a.currentTarget.value;
|
|
1132
|
-
}, b(r, mn), u(r, p(
|
|
1137
|
+
}, b(r, mn), u(r, p(F, {
|
|
1133
1138
|
get each() {
|
|
1134
1139
|
return t();
|
|
1135
1140
|
},
|
|
@@ -1145,8 +1150,8 @@ const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1145
1150
|
})), C(() => s.value = e.value), l;
|
|
1146
1151
|
})();
|
|
1147
1152
|
};
|
|
1148
|
-
|
|
1149
|
-
function
|
|
1153
|
+
ce(["input"]);
|
|
1154
|
+
function tt(...e) {
|
|
1150
1155
|
const t = [];
|
|
1151
1156
|
for (let n = 0; n < e.length; n++) {
|
|
1152
1157
|
const l = e[n];
|
|
@@ -1161,7 +1166,7 @@ function et(...e) {
|
|
|
1161
1166
|
}
|
|
1162
1167
|
return t.join(" ");
|
|
1163
1168
|
}
|
|
1164
|
-
const vn = /* @__PURE__ */
|
|
1169
|
+
const vn = /* @__PURE__ */ $('<div><div class="content"></div></div>'), bn = /* @__PURE__ */ $("<h1></h1>"), Cn = _`
|
|
1165
1170
|
&&& {
|
|
1166
1171
|
${S()};
|
|
1167
1172
|
|
|
@@ -1169,7 +1174,7 @@ const vn = /* @__PURE__ */ y('<div><div class="content"></div></div>'), bn = /*
|
|
|
1169
1174
|
font-size: 14px;
|
|
1170
1175
|
color: ${h.secondary.var};
|
|
1171
1176
|
letter-spacing: 0.08em;
|
|
1172
|
-
font-family: ${
|
|
1177
|
+
font-family: ${L.decorative};
|
|
1173
1178
|
font-weight: 300;
|
|
1174
1179
|
background: ${h.bgPrimary.var};
|
|
1175
1180
|
z-index: 1;
|
|
@@ -1195,15 +1200,15 @@ const vn = /* @__PURE__ */ y('<div><div class="content"></div></div>'), bn = /*
|
|
|
1195
1200
|
margin-top: 20px;
|
|
1196
1201
|
}
|
|
1197
1202
|
}
|
|
1198
|
-
`,
|
|
1203
|
+
`, E = (e) => (() => {
|
|
1199
1204
|
const t = vn.cloneNode(!0), n = t.firstChild;
|
|
1200
1205
|
return u(t, (() => {
|
|
1201
|
-
const l =
|
|
1206
|
+
const l = m(() => !!e.title);
|
|
1202
1207
|
return () => l() && (() => {
|
|
1203
1208
|
const i = bn.cloneNode(!0);
|
|
1204
1209
|
return u(i, () => e.title), i;
|
|
1205
1210
|
})();
|
|
1206
|
-
})(), n), u(n, () => e.children), C(() => b(t,
|
|
1211
|
+
})(), n), u(n, () => e.children), C(() => b(t, tt(Cn, e.class))), t;
|
|
1207
1212
|
})(), xn = `
|
|
1208
1213
|
user-select: text;
|
|
1209
1214
|
|
|
@@ -1219,9 +1224,9 @@ function wn(e) {
|
|
|
1219
1224
|
-webkit-box-orient: vertical;
|
|
1220
1225
|
`;
|
|
1221
1226
|
}
|
|
1222
|
-
const _n = /* @__PURE__ */
|
|
1227
|
+
const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @__PURE__ */ $('<div class="collapsed"></div>'), Nn = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), kn = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), je = /* @__PURE__ */ $('<div class="delimiter"></div>'), Me = /* @__PURE__ */ $('<div class="childs"></div>'), An = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), Re = /* @__PURE__ */ $('<div class="child"></div>'), Pn = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Tn = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), De = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), En = /* @__PURE__ */ $("<div></div>"), Ln = _`
|
|
1223
1228
|
&&& {
|
|
1224
|
-
font-family: ${
|
|
1229
|
+
font-family: ${L.decorative};
|
|
1225
1230
|
font-size: 13px;
|
|
1226
1231
|
${xn};
|
|
1227
1232
|
${S({
|
|
@@ -1285,13 +1290,13 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1285
1290
|
.key {
|
|
1286
1291
|
color: #a5d6ff;
|
|
1287
1292
|
margin-right: 5px;
|
|
1288
|
-
${
|
|
1293
|
+
${B({
|
|
1289
1294
|
align: "top"
|
|
1290
1295
|
})};
|
|
1291
1296
|
|
|
1292
1297
|
span {
|
|
1293
1298
|
flex-shrink: 1;
|
|
1294
|
-
${
|
|
1299
|
+
${ue};
|
|
1295
1300
|
}
|
|
1296
1301
|
|
|
1297
1302
|
&.index {
|
|
@@ -1331,10 +1336,10 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1331
1336
|
color: ${h.white.alpha(0.5)};
|
|
1332
1337
|
}
|
|
1333
1338
|
}
|
|
1334
|
-
`, On = new Intl.NumberFormat("en-US"),
|
|
1335
|
-
let [t, n] =
|
|
1336
|
-
return
|
|
1337
|
-
const o = e.value, s = Array.isArray(o), r = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || r && Object.keys(o).length > 0, d = c && p(
|
|
1339
|
+
`, On = new Intl.NumberFormat("en-US"), K = 14, be = (e) => {
|
|
1340
|
+
let [t, n] = re(!(e.indent > 0 && e.compact)), [l, i] = re(!e.compact);
|
|
1341
|
+
return m(() => {
|
|
1342
|
+
const o = e.value, s = Array.isArray(o), r = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || r && Object.keys(o).length > 0, d = c && p(M, {
|
|
1338
1343
|
onClick: () => {
|
|
1339
1344
|
n(() => !t());
|
|
1340
1345
|
},
|
|
@@ -1345,7 +1350,7 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1345
1350
|
},
|
|
1346
1351
|
class: "expand-button",
|
|
1347
1352
|
get children() {
|
|
1348
|
-
return p(
|
|
1353
|
+
return p(de, {
|
|
1349
1354
|
name: "caret-down",
|
|
1350
1355
|
size: 14
|
|
1351
1356
|
});
|
|
@@ -1353,78 +1358,78 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1353
1358
|
});
|
|
1354
1359
|
return [a && (() => {
|
|
1355
1360
|
const g = _n.cloneNode(!0), f = g.firstChild;
|
|
1356
|
-
return g.$$click = (
|
|
1357
|
-
|
|
1358
|
-
}, u(g, s || r ? d : null, f), u(f, () => e.key || e.index), C((
|
|
1361
|
+
return g.$$click = (y) => {
|
|
1362
|
+
y.shiftKey && ne(JSON.stringify(o));
|
|
1363
|
+
}, u(g, s || r ? d : null, f), u(f, () => e.key || e.index), C((y) => {
|
|
1359
1364
|
const v = `${e.key ? `${e.key}
|
|
1360
1365
|
` : ""}Shift + Click to copy value`, x = e.index !== void 0;
|
|
1361
|
-
return v !==
|
|
1366
|
+
return v !== y._v$ && P(g, "title", y._v$ = v), x !== y._v$2 && g.classList.toggle("index", y._v$2 = x), y;
|
|
1362
1367
|
}, {
|
|
1363
1368
|
_v$: void 0,
|
|
1364
1369
|
_v$2: void 0
|
|
1365
1370
|
}), g;
|
|
1366
|
-
})(),
|
|
1367
|
-
const g =
|
|
1371
|
+
})(), m((() => {
|
|
1372
|
+
const g = m(() => !!(a && c && !t()));
|
|
1368
1373
|
return () => g() ? (() => {
|
|
1369
1374
|
const f = Sn.cloneNode(!0);
|
|
1370
1375
|
return u(f, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), f;
|
|
1371
1376
|
})() : (() => s && o.length === 0 ? Nn.cloneNode(!0) : r && Object.keys(o).length === 0 ? kn.cloneNode(!0) : s ? [(() => {
|
|
1372
|
-
const f =
|
|
1373
|
-
return
|
|
1374
|
-
|
|
1375
|
-
}, !0),
|
|
1376
|
-
})(),
|
|
1377
|
-
const f =
|
|
1377
|
+
const f = je.cloneNode(!0);
|
|
1378
|
+
return oe(f, "click", a ? void 0 : (y) => {
|
|
1379
|
+
y.shiftKey && ne(JSON.stringify(o));
|
|
1380
|
+
}, !0), P(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, () => t() ? "[" : `[…] ${o.length} items`, null), f;
|
|
1381
|
+
})(), m((() => {
|
|
1382
|
+
const f = m(() => !!t());
|
|
1378
1383
|
return () => f() && [(() => {
|
|
1379
|
-
const
|
|
1380
|
-
return u(
|
|
1384
|
+
const y = Me.cloneNode(!0);
|
|
1385
|
+
return u(y, () => {
|
|
1381
1386
|
let v = o;
|
|
1382
1387
|
const x = v.length;
|
|
1383
|
-
return l() || (v = v.slice(0,
|
|
1384
|
-
const
|
|
1385
|
-
return u(
|
|
1388
|
+
return l() || (v = v.slice(0, K)), [m(() => v.map((w, A) => (() => {
|
|
1389
|
+
const k = Re.cloneNode(!0);
|
|
1390
|
+
return u(k, p(be, {
|
|
1386
1391
|
value: w,
|
|
1387
1392
|
get indent() {
|
|
1388
1393
|
return e.indent + 1;
|
|
1389
1394
|
},
|
|
1390
|
-
index:
|
|
1395
|
+
index: A,
|
|
1391
1396
|
get compact() {
|
|
1392
1397
|
return e.compact;
|
|
1393
1398
|
}
|
|
1394
|
-
})),
|
|
1395
|
-
})())),
|
|
1396
|
-
const w =
|
|
1397
|
-
return () => w() && p(
|
|
1399
|
+
})), k;
|
|
1400
|
+
})())), m((() => {
|
|
1401
|
+
const w = m(() => !l() && x > K);
|
|
1402
|
+
return () => w() && p(M, {
|
|
1398
1403
|
onClick: () => {
|
|
1399
1404
|
i(() => !0);
|
|
1400
1405
|
},
|
|
1401
1406
|
class: "show-all",
|
|
1402
1407
|
get children() {
|
|
1403
|
-
return ["…show all (+", x -
|
|
1408
|
+
return ["…show all (+", x - K, ")"];
|
|
1404
1409
|
}
|
|
1405
1410
|
});
|
|
1406
1411
|
})())];
|
|
1407
|
-
}),
|
|
1412
|
+
}), y;
|
|
1408
1413
|
})(), An.cloneNode(!0)];
|
|
1409
1414
|
})())] : r ? [(() => {
|
|
1410
|
-
const f =
|
|
1411
|
-
return
|
|
1412
|
-
|
|
1413
|
-
}, !0),
|
|
1414
|
-
const
|
|
1415
|
-
return () =>
|
|
1415
|
+
const f = je.cloneNode(!0);
|
|
1416
|
+
return oe(f, "click", a ? void 0 : (y) => {
|
|
1417
|
+
y.shiftKey && ne(JSON.stringify(o));
|
|
1418
|
+
}, !0), P(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, (() => {
|
|
1419
|
+
const y = m(() => !!t());
|
|
1420
|
+
return () => y() ? "{" : `{…} ${Object.keys(o).length} properties`;
|
|
1416
1421
|
})(), null), f;
|
|
1417
|
-
})(),
|
|
1418
|
-
const f =
|
|
1422
|
+
})(), m((() => {
|
|
1423
|
+
const f = m(() => !!t());
|
|
1419
1424
|
return () => f() && [(() => {
|
|
1420
|
-
const
|
|
1421
|
-
return u(
|
|
1425
|
+
const y = Me.cloneNode(!0);
|
|
1426
|
+
return u(y, () => {
|
|
1422
1427
|
let v = Object.entries(o);
|
|
1423
1428
|
const x = v.length;
|
|
1424
|
-
return l() || (v = v.slice(0,
|
|
1425
|
-
const
|
|
1426
|
-
return u(
|
|
1427
|
-
value:
|
|
1429
|
+
return l() || (v = v.slice(0, K)), [m(() => v.map(([w, A]) => (() => {
|
|
1430
|
+
const k = Re.cloneNode(!0);
|
|
1431
|
+
return u(k, p(be, {
|
|
1432
|
+
value: A,
|
|
1428
1433
|
key: w,
|
|
1429
1434
|
get indent() {
|
|
1430
1435
|
return e.indent + 1;
|
|
@@ -1432,32 +1437,32 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1432
1437
|
get compact() {
|
|
1433
1438
|
return e.compact;
|
|
1434
1439
|
}
|
|
1435
|
-
})),
|
|
1436
|
-
})())),
|
|
1437
|
-
const w =
|
|
1438
|
-
return () => w() && p(
|
|
1440
|
+
})), k;
|
|
1441
|
+
})())), m((() => {
|
|
1442
|
+
const w = m(() => !l() && x > K);
|
|
1443
|
+
return () => w() && p(M, {
|
|
1439
1444
|
onClick: () => {
|
|
1440
1445
|
i(() => !0);
|
|
1441
1446
|
},
|
|
1442
1447
|
class: "show-all",
|
|
1443
1448
|
get children() {
|
|
1444
|
-
return ["…show all (+", x -
|
|
1449
|
+
return ["…show all (+", x - K, ")"];
|
|
1445
1450
|
}
|
|
1446
1451
|
});
|
|
1447
1452
|
})())];
|
|
1448
|
-
}),
|
|
1453
|
+
}), y;
|
|
1449
1454
|
})(), Pn.cloneNode(!0)];
|
|
1450
1455
|
})())] : (() => {
|
|
1451
1456
|
const f = Tn.cloneNode(!0);
|
|
1452
|
-
return f.$$click = (
|
|
1453
|
-
|
|
1454
|
-
},
|
|
1457
|
+
return f.$$click = (y) => {
|
|
1458
|
+
y.shiftKey && ne(String(o));
|
|
1459
|
+
}, P(f, "data-type", typeof o), u(f, typeof o == "string" && De.cloneNode(!0), null), u(f, () => typeof o == "number" ? On.format(o) : String(o), null), u(f, typeof o == "string" && De.cloneNode(!0), null), f;
|
|
1455
1460
|
})())();
|
|
1456
1461
|
})())];
|
|
1457
1462
|
});
|
|
1458
|
-
},
|
|
1463
|
+
}, R = (e) => (() => {
|
|
1459
1464
|
const t = En.cloneNode(!0);
|
|
1460
|
-
return b(t, Ln), u(t, p(
|
|
1465
|
+
return b(t, Ln), u(t, p(be, {
|
|
1461
1466
|
get value() {
|
|
1462
1467
|
return e.value;
|
|
1463
1468
|
},
|
|
@@ -1467,15 +1472,15 @@ const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1467
1472
|
}
|
|
1468
1473
|
})), t;
|
|
1469
1474
|
})();
|
|
1470
|
-
async function
|
|
1475
|
+
async function ne(e) {
|
|
1471
1476
|
await navigator.clipboard.writeText(e), alert("Copied to clipboard");
|
|
1472
1477
|
}
|
|
1473
|
-
|
|
1478
|
+
ce(["click"]);
|
|
1474
1479
|
let jn = 0;
|
|
1475
1480
|
function Mn() {
|
|
1476
1481
|
return jn++;
|
|
1477
1482
|
}
|
|
1478
|
-
const Rn = /* @__PURE__ */
|
|
1483
|
+
const Rn = /* @__PURE__ */ $("<label></label>"), Dn = /* @__PURE__ */ $('<div><div class="inputContainer"><select></select></div></div>'), In = /* @__PURE__ */ $('<option value="">-- select an option --</option>'), zn = /* @__PURE__ */ $("<option></option>"), Fn = _`
|
|
1479
1484
|
&&& {
|
|
1480
1485
|
${S({
|
|
1481
1486
|
align: "left"
|
|
@@ -1534,20 +1539,20 @@ const Rn = /* @__PURE__ */ y("<label></label>"), Dn = /* @__PURE__ */ y('<div><d
|
|
|
1534
1539
|
const t = `input${Mn()}`;
|
|
1535
1540
|
return (() => {
|
|
1536
1541
|
const n = Dn.cloneNode(!0), l = n.firstChild, i = l.firstChild;
|
|
1537
|
-
return u(n, p(
|
|
1542
|
+
return u(n, p(ae, {
|
|
1538
1543
|
get when() {
|
|
1539
1544
|
return e.label;
|
|
1540
1545
|
},
|
|
1541
1546
|
get children() {
|
|
1542
1547
|
const o = Rn.cloneNode(!0);
|
|
1543
|
-
return
|
|
1548
|
+
return P(o, "for", t), u(o, () => e.label), o;
|
|
1544
1549
|
}
|
|
1545
1550
|
}), l), i.addEventListener("change", (o) => {
|
|
1546
1551
|
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
1547
|
-
}),
|
|
1548
|
-
const o =
|
|
1552
|
+
}), P(i, "id", t), u(i, (() => {
|
|
1553
|
+
const o = m(() => !e.value);
|
|
1549
1554
|
return () => o() && In.cloneNode(!0);
|
|
1550
|
-
})(), null), u(i, p(
|
|
1555
|
+
})(), null), u(i, p(F, {
|
|
1551
1556
|
get each() {
|
|
1552
1557
|
return e.options;
|
|
1553
1558
|
},
|
|
@@ -1555,18 +1560,18 @@ const Rn = /* @__PURE__ */ y("<label></label>"), Dn = /* @__PURE__ */ y('<div><d
|
|
|
1555
1560
|
const s = zn.cloneNode(!0);
|
|
1556
1561
|
return u(s, () => o.label), C(() => s.value = o.value), s;
|
|
1557
1562
|
})()
|
|
1558
|
-
}), null), C(() => b(n,
|
|
1563
|
+
}), null), C(() => b(n, tt(Fn, e.class))), C(() => i.value = e.value ?? ""), n;
|
|
1559
1564
|
})();
|
|
1560
1565
|
};
|
|
1561
|
-
function
|
|
1566
|
+
function nt(e) {
|
|
1562
1567
|
const t = e.alias || e.payload || e.searchParams;
|
|
1563
1568
|
return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
|
|
1564
1569
|
}
|
|
1565
|
-
function
|
|
1570
|
+
function rt(e) {
|
|
1566
1571
|
return e ? e.slice().reverse() : [];
|
|
1567
1572
|
}
|
|
1568
|
-
function
|
|
1569
|
-
return
|
|
1573
|
+
function Ie(e, t) {
|
|
1574
|
+
return Ue(e, t) ? "no changes" : pt.diffJson(
|
|
1570
1575
|
typeof e == "object" && e !== null ? e : String(e),
|
|
1571
1576
|
typeof t == "object" && t !== null ? t : String(t)
|
|
1572
1577
|
);
|
|
@@ -1574,7 +1579,7 @@ function De(e, t) {
|
|
|
1574
1579
|
function Hn(e, t) {
|
|
1575
1580
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
1576
1581
|
}
|
|
1577
|
-
const Vn = /* @__PURE__ */
|
|
1582
|
+
const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), he = /* @__PURE__ */ $("<div></div>"), ze = /* @__PURE__ */ $("<div>No changes</div>"), Fe = /* @__PURE__ */ $('<div class="line"></div>'), Zn = _`
|
|
1578
1583
|
&&& {
|
|
1579
1584
|
${S({
|
|
1580
1585
|
gap: 14
|
|
@@ -1593,13 +1598,13 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1593
1598
|
}
|
|
1594
1599
|
}
|
|
1595
1600
|
}
|
|
1596
|
-
`,
|
|
1601
|
+
`, Be = _`
|
|
1597
1602
|
&&& {
|
|
1598
1603
|
${S({
|
|
1599
1604
|
gap: 0
|
|
1600
1605
|
})};
|
|
1601
1606
|
font-size: 14px;
|
|
1602
|
-
font-family: ${
|
|
1607
|
+
font-family: ${L.decorative};
|
|
1603
1608
|
white-space: pre;
|
|
1604
1609
|
overflow-x: auto;
|
|
1605
1610
|
|
|
@@ -1633,30 +1638,30 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1633
1638
|
}
|
|
1634
1639
|
}
|
|
1635
1640
|
`, Kn = () => {
|
|
1636
|
-
const e =
|
|
1641
|
+
const e = m(() => {
|
|
1637
1642
|
const {
|
|
1638
1643
|
selectedCall: r
|
|
1639
1644
|
} = N;
|
|
1640
|
-
return r ?
|
|
1641
|
-
}), t =
|
|
1645
|
+
return r ? H.calls[r] : Object.values(H.calls).at(-1);
|
|
1646
|
+
}), t = et(() => {
|
|
1642
1647
|
const r = e();
|
|
1643
|
-
return r ?
|
|
1648
|
+
return r ? rt(r.requests).map((a) => ({
|
|
1644
1649
|
value: a.id,
|
|
1645
|
-
label: `${Q(a.startTime).format("HH:mm:ss")} | ${Hn(
|
|
1650
|
+
label: `${Q(a.startTime).format("HH:mm:ss")} | ${Hn(nt(a), 50)}`
|
|
1646
1651
|
})).filter((a) => a.value !== N.selectedRequest) : [];
|
|
1647
|
-
}, "value"), n =
|
|
1652
|
+
}, "value"), n = we(null), l = m(() => N.selectedRequest ? e()?.requests.find((r) => r.id === N.selectedRequest) : null), i = m(() => n.value ? e()?.requests.find((r) => r.id === n.value) : null), o = m(() => {
|
|
1648
1653
|
if (!n.value || !N.selectedRequest)
|
|
1649
1654
|
return [];
|
|
1650
|
-
const r = l()?.response, a = i()?.response, c =
|
|
1655
|
+
const r = l()?.response, a = i()?.response, c = Ie(a, r);
|
|
1651
1656
|
return c === "no changes" ? [] : c;
|
|
1652
|
-
}), s =
|
|
1657
|
+
}), s = m(() => {
|
|
1653
1658
|
if (!n.value || !N.selectedRequest)
|
|
1654
1659
|
return [];
|
|
1655
|
-
const r =
|
|
1660
|
+
const r = He(l()), a = He(i()), c = Ie(a, r);
|
|
1656
1661
|
return c === "no changes" ? [] : c;
|
|
1657
1662
|
});
|
|
1658
1663
|
return (() => {
|
|
1659
|
-
const r =
|
|
1664
|
+
const r = he.cloneNode(!0);
|
|
1660
1665
|
return b(r, Zn), u(r, p(Bn, {
|
|
1661
1666
|
get value() {
|
|
1662
1667
|
return n.value;
|
|
@@ -1668,32 +1673,32 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1668
1673
|
onChange: (a) => {
|
|
1669
1674
|
n.value = a;
|
|
1670
1675
|
}
|
|
1671
|
-
}), null), u(r, p(
|
|
1676
|
+
}), null), u(r, p(ae, {
|
|
1672
1677
|
get when() {
|
|
1673
1678
|
return n.value;
|
|
1674
1679
|
},
|
|
1675
1680
|
get children() {
|
|
1676
1681
|
return [(() => {
|
|
1677
|
-
const a = Vn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling,
|
|
1682
|
+
const a = Vn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling, y = f.nextSibling, v = y.firstChild, x = v.nextSibling;
|
|
1678
1683
|
return u(g, () => o().filter((w) => w.added).length), u(x, () => o().filter((w) => w.removed).length), a;
|
|
1679
|
-
})(), p(
|
|
1684
|
+
})(), p(E, {
|
|
1680
1685
|
get title() {
|
|
1681
|
-
return
|
|
1686
|
+
return m(() => !!l()?.payload)() ? "Payload Diff" : l()?.searchParams ? "Search Params Diff" : "Path Params Diff";
|
|
1682
1687
|
},
|
|
1683
1688
|
get children() {
|
|
1684
|
-
const a =
|
|
1685
|
-
return b(a,
|
|
1689
|
+
const a = he.cloneNode(!0);
|
|
1690
|
+
return b(a, Be), u(a, p(F, {
|
|
1686
1691
|
get each() {
|
|
1687
1692
|
return s();
|
|
1688
1693
|
},
|
|
1689
1694
|
get fallback() {
|
|
1690
|
-
return
|
|
1695
|
+
return ze.cloneNode(!0);
|
|
1691
1696
|
},
|
|
1692
1697
|
children: (c) => (() => {
|
|
1693
|
-
const d =
|
|
1698
|
+
const d = Fe.cloneNode(!0);
|
|
1694
1699
|
return u(d, () => c.value), C((g) => {
|
|
1695
|
-
const f = !!c.added,
|
|
1696
|
-
return f !== g._v$ && d.classList.toggle("added", g._v$ = f),
|
|
1700
|
+
const f = !!c.added, y = !!c.removed;
|
|
1701
|
+
return f !== g._v$ && d.classList.toggle("added", g._v$ = f), y !== g._v$2 && d.classList.toggle("removed", g._v$2 = y), g;
|
|
1697
1702
|
}, {
|
|
1698
1703
|
_v$: void 0,
|
|
1699
1704
|
_v$2: void 0
|
|
@@ -1701,22 +1706,22 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1701
1706
|
})()
|
|
1702
1707
|
})), a;
|
|
1703
1708
|
}
|
|
1704
|
-
}), p(
|
|
1709
|
+
}), p(E, {
|
|
1705
1710
|
title: "Response Diff",
|
|
1706
1711
|
get children() {
|
|
1707
|
-
const a =
|
|
1708
|
-
return b(a,
|
|
1712
|
+
const a = he.cloneNode(!0);
|
|
1713
|
+
return b(a, Be), u(a, p(F, {
|
|
1709
1714
|
get each() {
|
|
1710
1715
|
return o();
|
|
1711
1716
|
},
|
|
1712
1717
|
get fallback() {
|
|
1713
|
-
return
|
|
1718
|
+
return ze.cloneNode(!0);
|
|
1714
1719
|
},
|
|
1715
1720
|
children: (c) => (() => {
|
|
1716
|
-
const d =
|
|
1721
|
+
const d = Fe.cloneNode(!0);
|
|
1717
1722
|
return u(d, () => c.value), C((g) => {
|
|
1718
|
-
const f = !!c.added,
|
|
1719
|
-
return f !== g._v$3 && d.classList.toggle("added", g._v$3 = f),
|
|
1723
|
+
const f = !!c.added, y = !!c.removed;
|
|
1724
|
+
return f !== g._v$3 && d.classList.toggle("added", g._v$3 = f), y !== g._v$4 && d.classList.toggle("removed", g._v$4 = y), g;
|
|
1720
1725
|
}, {
|
|
1721
1726
|
_v$3: void 0,
|
|
1722
1727
|
_v$4: void 0
|
|
@@ -1729,29 +1734,29 @@ const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
1729
1734
|
}), null), r;
|
|
1730
1735
|
})();
|
|
1731
1736
|
};
|
|
1732
|
-
function
|
|
1737
|
+
function He(e) {
|
|
1733
1738
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
1734
1739
|
}
|
|
1735
|
-
const
|
|
1740
|
+
const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>"), Wn = /* @__PURE__ */ $('<div class="tags"></div>'), Jn = /* @__PURE__ */ $('<div class="details"></div>'), Xn = /* @__PURE__ */ $("<h2></h2>"), Gn = /* @__PURE__ */ $('<div class="method"></div>'), Yn = /* @__PURE__ */ $('<div class="code"></div>'), Qn = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), qn = /* @__PURE__ */ $('<div class="tag"></div>'), er = _`
|
|
1736
1741
|
&&& {
|
|
1737
1742
|
${S()};
|
|
1738
1743
|
padding-left: 10px;
|
|
1739
1744
|
|
|
1740
1745
|
> h1 {
|
|
1741
1746
|
margin-top: 12px;
|
|
1742
|
-
font-family: ${
|
|
1743
|
-
${
|
|
1747
|
+
font-family: ${L.decorative};
|
|
1748
|
+
${ue};
|
|
1744
1749
|
}
|
|
1745
1750
|
|
|
1746
1751
|
> h2 {
|
|
1747
1752
|
margin-top: 4px;
|
|
1748
|
-
font-family: ${
|
|
1753
|
+
font-family: ${L.decorative};
|
|
1749
1754
|
font-size: 12px;
|
|
1750
1755
|
opacity: 0.5;
|
|
1751
1756
|
}
|
|
1752
1757
|
|
|
1753
1758
|
.tags {
|
|
1754
|
-
${
|
|
1759
|
+
${B({
|
|
1755
1760
|
gap: 8
|
|
1756
1761
|
})};
|
|
1757
1762
|
margin-top: 8px;
|
|
@@ -1796,7 +1801,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1796
1801
|
}
|
|
1797
1802
|
`, tr = _`
|
|
1798
1803
|
&&& {
|
|
1799
|
-
${
|
|
1804
|
+
${B({
|
|
1800
1805
|
gap: 20
|
|
1801
1806
|
})};
|
|
1802
1807
|
color: ${h.secondary.var};
|
|
@@ -1817,9 +1822,9 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1817
1822
|
}
|
|
1818
1823
|
}
|
|
1819
1824
|
`, nr = () => {
|
|
1820
|
-
const e =
|
|
1825
|
+
const e = m(() => N.selectedCall), t = m(() => N.selectedRequest), n = m(() => N.selectedTab || "summary"), l = m(() => {
|
|
1821
1826
|
let o;
|
|
1822
|
-
e() ? o =
|
|
1827
|
+
e() ? o = H.calls[e()] : o = Object.values(H.calls).at(-1);
|
|
1823
1828
|
const s = t() && o?.requests.find((r) => r.id === t()) || o?.requests.at(-1);
|
|
1824
1829
|
return s && o ? {
|
|
1825
1830
|
...s,
|
|
@@ -1828,21 +1833,21 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1828
1833
|
} : null;
|
|
1829
1834
|
});
|
|
1830
1835
|
function i(o, s) {
|
|
1831
|
-
return p(
|
|
1836
|
+
return p(M, {
|
|
1832
1837
|
get classList() {
|
|
1833
1838
|
return {
|
|
1834
1839
|
selected: n() === o
|
|
1835
1840
|
};
|
|
1836
1841
|
},
|
|
1837
1842
|
onClick: () => {
|
|
1838
|
-
|
|
1843
|
+
se("selectedTab", o);
|
|
1839
1844
|
},
|
|
1840
1845
|
children: s
|
|
1841
1846
|
});
|
|
1842
1847
|
}
|
|
1843
1848
|
return (() => {
|
|
1844
|
-
const o =
|
|
1845
|
-
return b(o, er), u(o, p(
|
|
1849
|
+
const o = Ve.cloneNode(!0);
|
|
1850
|
+
return b(o, er), u(o, p(ae, {
|
|
1846
1851
|
get when() {
|
|
1847
1852
|
return l();
|
|
1848
1853
|
},
|
|
@@ -1850,8 +1855,8 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1850
1855
|
children: (s) => [(() => {
|
|
1851
1856
|
const r = Un.cloneNode(!0);
|
|
1852
1857
|
return u(r, () => s.callName, null), u(r, () => s.alias && ` | ${s.alias}`, null), r;
|
|
1853
|
-
})(),
|
|
1854
|
-
const r =
|
|
1858
|
+
})(), m((() => {
|
|
1859
|
+
const r = m(() => s.callPath !== s.callName);
|
|
1855
1860
|
return () => r() && (() => {
|
|
1856
1861
|
const a = Xn.cloneNode(!0);
|
|
1857
1862
|
return u(a, () => s.callPath), a;
|
|
@@ -1859,21 +1864,21 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1859
1864
|
})()), (() => {
|
|
1860
1865
|
const r = Wn.cloneNode(!0);
|
|
1861
1866
|
return u(r, (() => {
|
|
1862
|
-
const a =
|
|
1867
|
+
const a = m(() => !!s.method);
|
|
1863
1868
|
return () => a() && (() => {
|
|
1864
1869
|
const c = Gn.cloneNode(!0);
|
|
1865
1870
|
return u(c, () => s.method), c;
|
|
1866
1871
|
})();
|
|
1867
1872
|
})(), null), u(r, (() => {
|
|
1868
|
-
const a =
|
|
1873
|
+
const a = m(() => !!s.code);
|
|
1869
1874
|
return () => a() && (() => {
|
|
1870
1875
|
const c = Yn.cloneNode(!0);
|
|
1871
1876
|
return u(c, () => s.code), C(() => c.classList.toggle("error", s.code >= 400)), c;
|
|
1872
1877
|
})();
|
|
1873
1878
|
})(), null), u(r, (() => {
|
|
1874
|
-
const a =
|
|
1879
|
+
const a = m(() => !!s.isError);
|
|
1875
1880
|
return () => a() && Qn.cloneNode(!0);
|
|
1876
|
-
})(), null), u(r, p(
|
|
1881
|
+
})(), null), u(r, p(F, {
|
|
1877
1882
|
get each() {
|
|
1878
1883
|
return s.tags;
|
|
1879
1884
|
},
|
|
@@ -1883,12 +1888,12 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1883
1888
|
})()
|
|
1884
1889
|
}), null), r;
|
|
1885
1890
|
})(), (() => {
|
|
1886
|
-
const r =
|
|
1891
|
+
const r = Ve.cloneNode(!0);
|
|
1887
1892
|
return b(r, tr), u(r, () => i("summary", "Summary"), null), u(r, (() => {
|
|
1888
|
-
const a =
|
|
1893
|
+
const a = m(() => !!s.payload);
|
|
1889
1894
|
return () => a() && i("payload", "Payload");
|
|
1890
1895
|
})(), null), u(r, (() => {
|
|
1891
|
-
const a =
|
|
1896
|
+
const a = m(() => !!s.searchParams);
|
|
1892
1897
|
return () => a() && i("urlParams", "URL Params");
|
|
1893
1898
|
})(), null), u(r, () => i("response", "Response"), null), u(r, () => i("diff", "Diff"), null), r;
|
|
1894
1899
|
})(), (() => {
|
|
@@ -1900,40 +1905,40 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1900
1905
|
return n() === "summary";
|
|
1901
1906
|
},
|
|
1902
1907
|
get children() {
|
|
1903
|
-
return [
|
|
1908
|
+
return [m(() => m(() => !!s.payload)() && p(E, {
|
|
1904
1909
|
title: "Payload",
|
|
1905
1910
|
get children() {
|
|
1906
|
-
return p(
|
|
1911
|
+
return p(R, {
|
|
1907
1912
|
get value() {
|
|
1908
1913
|
return s.payload;
|
|
1909
1914
|
},
|
|
1910
1915
|
compact: !0
|
|
1911
1916
|
});
|
|
1912
1917
|
}
|
|
1913
|
-
})),
|
|
1918
|
+
})), m(() => m(() => !!s.searchParams)() && p(E, {
|
|
1914
1919
|
title: "URL Params",
|
|
1915
1920
|
get children() {
|
|
1916
|
-
return p(
|
|
1921
|
+
return p(R, {
|
|
1917
1922
|
get value() {
|
|
1918
1923
|
return s.searchParams;
|
|
1919
1924
|
},
|
|
1920
1925
|
compact: !0
|
|
1921
1926
|
});
|
|
1922
1927
|
}
|
|
1923
|
-
})),
|
|
1928
|
+
})), m(() => m(() => !!s.response)() && p(E, {
|
|
1924
1929
|
title: "Response",
|
|
1925
1930
|
get children() {
|
|
1926
|
-
return p(
|
|
1931
|
+
return p(R, {
|
|
1927
1932
|
get value() {
|
|
1928
1933
|
return s.response;
|
|
1929
1934
|
},
|
|
1930
1935
|
compact: !0
|
|
1931
1936
|
});
|
|
1932
1937
|
}
|
|
1933
|
-
})), p(
|
|
1938
|
+
})), p(E, {
|
|
1934
1939
|
title: "Stats",
|
|
1935
1940
|
get children() {
|
|
1936
|
-
return p(
|
|
1941
|
+
return p(R, {
|
|
1937
1942
|
get value() {
|
|
1938
1943
|
return {
|
|
1939
1944
|
"Duration (ms)": Math.round(s.duration),
|
|
@@ -1942,10 +1947,10 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1942
1947
|
}
|
|
1943
1948
|
});
|
|
1944
1949
|
}
|
|
1945
|
-
}), p(
|
|
1950
|
+
}), p(E, {
|
|
1946
1951
|
title: "Metadata",
|
|
1947
1952
|
get children() {
|
|
1948
|
-
return p(
|
|
1953
|
+
return p(R, {
|
|
1949
1954
|
get value() {
|
|
1950
1955
|
return s.metadata;
|
|
1951
1956
|
}
|
|
@@ -1958,10 +1963,10 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1958
1963
|
return n() === "payload";
|
|
1959
1964
|
},
|
|
1960
1965
|
get children() {
|
|
1961
|
-
return p(
|
|
1966
|
+
return p(E, {
|
|
1962
1967
|
title: null,
|
|
1963
1968
|
get children() {
|
|
1964
|
-
return p(
|
|
1969
|
+
return p(R, {
|
|
1965
1970
|
get value() {
|
|
1966
1971
|
return s.payload;
|
|
1967
1972
|
}
|
|
@@ -1974,10 +1979,10 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1974
1979
|
return n() === "response";
|
|
1975
1980
|
},
|
|
1976
1981
|
get children() {
|
|
1977
|
-
return p(
|
|
1982
|
+
return p(E, {
|
|
1978
1983
|
title: null,
|
|
1979
1984
|
get children() {
|
|
1980
|
-
return p(
|
|
1985
|
+
return p(R, {
|
|
1981
1986
|
get value() {
|
|
1982
1987
|
return s.response;
|
|
1983
1988
|
}
|
|
@@ -1990,10 +1995,10 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
1990
1995
|
return n() === "urlParams";
|
|
1991
1996
|
},
|
|
1992
1997
|
get children() {
|
|
1993
|
-
return p(
|
|
1998
|
+
return p(E, {
|
|
1994
1999
|
title: null,
|
|
1995
2000
|
get children() {
|
|
1996
|
-
return p(
|
|
2001
|
+
return p(R, {
|
|
1997
2002
|
get value() {
|
|
1998
2003
|
return s.searchParams;
|
|
1999
2004
|
}
|
|
@@ -2014,7 +2019,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2014
2019
|
})()]
|
|
2015
2020
|
})), o;
|
|
2016
2021
|
})();
|
|
2017
|
-
}, rr = /* @__PURE__ */
|
|
2022
|
+
}, rr = /* @__PURE__ */ $("<div><h1>timeline</h1><div></div></div>"), or = /* @__PURE__ */ $("<div>no requests found</div>"), lr = /* @__PURE__ */ $('<span class="start-time"></span>'), ir = /* @__PURE__ */ $("<div></div>"), sr = /* @__PURE__ */ $('<span class="separator">|</span>'), ar = /* @__PURE__ */ $('<span class="payload"></span>'), cr = _`
|
|
2018
2023
|
&&& {
|
|
2019
2024
|
${S()};
|
|
2020
2025
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
@@ -2023,7 +2028,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2023
2028
|
font-size: 16px;
|
|
2024
2029
|
padding-left: 12px;
|
|
2025
2030
|
padding-top: 10px;
|
|
2026
|
-
font-family: ${
|
|
2031
|
+
font-family: ${L.decorative};
|
|
2027
2032
|
color: ${h.secondary.var};
|
|
2028
2033
|
padding-bottom: 16px;
|
|
2029
2034
|
}
|
|
@@ -2046,7 +2051,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2046
2051
|
|
|
2047
2052
|
> button {
|
|
2048
2053
|
padding: 4px 12px;
|
|
2049
|
-
${
|
|
2054
|
+
${B({
|
|
2050
2055
|
gap: 8
|
|
2051
2056
|
})};
|
|
2052
2057
|
opacity: 0.8;
|
|
@@ -2057,7 +2062,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2057
2062
|
}
|
|
2058
2063
|
|
|
2059
2064
|
> .start-time {
|
|
2060
|
-
font-family: ${
|
|
2065
|
+
font-family: ${L.decorative};
|
|
2061
2066
|
}
|
|
2062
2067
|
|
|
2063
2068
|
> .separator {
|
|
@@ -2065,7 +2070,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2065
2070
|
}
|
|
2066
2071
|
|
|
2067
2072
|
> .payload {
|
|
2068
|
-
${
|
|
2073
|
+
${ue};
|
|
2069
2074
|
flex-shrink: 1;
|
|
2070
2075
|
}
|
|
2071
2076
|
}
|
|
@@ -2078,16 +2083,16 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2078
2083
|
padding-top: 0;
|
|
2079
2084
|
}
|
|
2080
2085
|
`, pr = () => {
|
|
2081
|
-
const e =
|
|
2086
|
+
const e = m(() => {
|
|
2082
2087
|
const i = N.selectedCall;
|
|
2083
|
-
return i ? i ?
|
|
2084
|
-
}), t =
|
|
2085
|
-
const i =
|
|
2088
|
+
return i ? i ? H.calls[i] : null : Object.values(H.calls).at(-1) || null;
|
|
2089
|
+
}), t = m(() => {
|
|
2090
|
+
const i = rt(e()?.requests);
|
|
2086
2091
|
return i.length === 0 ? null : i;
|
|
2087
|
-
}), n =
|
|
2092
|
+
}), n = m(() => N.selectedSubitem ? t()?.filter((i) => i.alias === N.selectedSubitem) : t()), l = m(() => N.selectedRequest || n()?.[0]?.id);
|
|
2088
2093
|
return (() => {
|
|
2089
2094
|
const i = rr.cloneNode(!0), o = i.firstChild, s = o.nextSibling;
|
|
2090
|
-
return b(i, cr), b(s, dr), u(s, p(
|
|
2095
|
+
return b(i, cr), b(s, dr), u(s, p(F, {
|
|
2091
2096
|
get each() {
|
|
2092
2097
|
return n();
|
|
2093
2098
|
},
|
|
@@ -2098,12 +2103,12 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2098
2103
|
})();
|
|
2099
2104
|
},
|
|
2100
2105
|
children: (r) => {
|
|
2101
|
-
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g =
|
|
2106
|
+
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g = nt(r);
|
|
2102
2107
|
return (() => {
|
|
2103
2108
|
const f = ir.cloneNode(!0);
|
|
2104
|
-
return b(f, ur), u(f, p(
|
|
2109
|
+
return b(f, ur), u(f, p(M, {
|
|
2105
2110
|
onClick: () => {
|
|
2106
|
-
|
|
2111
|
+
se("selectedRequest", r.id);
|
|
2107
2112
|
},
|
|
2108
2113
|
get classList() {
|
|
2109
2114
|
return {
|
|
@@ -2112,11 +2117,11 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2112
2117
|
},
|
|
2113
2118
|
get children() {
|
|
2114
2119
|
return [(() => {
|
|
2115
|
-
const
|
|
2116
|
-
return
|
|
2117
|
-
})(),
|
|
2118
|
-
const
|
|
2119
|
-
return
|
|
2120
|
+
const y = lr.cloneNode(!0);
|
|
2121
|
+
return P(y, "title", d), u(y, c), y;
|
|
2122
|
+
})(), m(() => !!g && [sr.cloneNode(!0), (() => {
|
|
2123
|
+
const y = ar.cloneNode(!0);
|
|
2124
|
+
return P(y, "title", g), u(y, g), y;
|
|
2120
2125
|
})()])];
|
|
2121
2126
|
}
|
|
2122
2127
|
})), C(() => f.classList.toggle("error", !!r.isError)), f;
|
|
@@ -2124,7 +2129,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2124
2129
|
}
|
|
2125
2130
|
})), i;
|
|
2126
2131
|
})();
|
|
2127
|
-
}, gr = /* @__PURE__ */
|
|
2132
|
+
}, gr = /* @__PURE__ */ $("<div></div>"), hr = _`
|
|
2128
2133
|
&&& {
|
|
2129
2134
|
display: grid;
|
|
2130
2135
|
grid-template-columns: 1.5fr 1fr 3fr;
|
|
@@ -2133,7 +2138,7 @@ const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>")
|
|
|
2133
2138
|
const e = gr.cloneNode(!0);
|
|
2134
2139
|
return b(e, hr), u(e, p(yn, {}), null), u(e, p(pr, {}), null), u(e, p(nr, {}), null), e;
|
|
2135
2140
|
})(), $r = `
|
|
2136
|
-
font-family: ${
|
|
2141
|
+
font-family: ${L.primary};
|
|
2137
2142
|
color: ${h.textPrimary.var};
|
|
2138
2143
|
|
|
2139
2144
|
* {
|
|
@@ -2262,56 +2267,56 @@ button {
|
|
|
2262
2267
|
-webkit-appearance: none;
|
|
2263
2268
|
}
|
|
2264
2269
|
`;
|
|
2265
|
-
let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || br, xr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, wr = /\/\*[^]*?\*\/| +/g,
|
|
2270
|
+
let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || br, xr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, wr = /\/\*[^]*?\*\/| +/g, Ze = /\n+/g, I = (e, t) => {
|
|
2266
2271
|
let n = "", l = "", i = "";
|
|
2267
2272
|
for (let o in e) {
|
|
2268
2273
|
let s = e[o];
|
|
2269
|
-
o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : l += o[1] == "f" ?
|
|
2274
|
+
o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : l += o[1] == "f" ? I(s, o) : o + "{" + I(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? l += I(s, t ? t.replace(/([^,])+/g, (r) => o.replace(/(^:.*)|([^,])+/g, (a) => /&/.test(a) ? a.replace(/&/g, r) : r ? r + " " + a : a)) : o) : s != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), i += I.p ? I.p(o, s) : o + ":" + s + ";");
|
|
2270
2275
|
}
|
|
2271
2276
|
return n + (t && i ? t + "{" + i + "}" : i) + l;
|
|
2272
|
-
},
|
|
2277
|
+
}, j = {}, ot = (e) => {
|
|
2273
2278
|
if (typeof e == "object") {
|
|
2274
2279
|
let t = "";
|
|
2275
2280
|
for (let n in e)
|
|
2276
|
-
t += n +
|
|
2281
|
+
t += n + ot(e[n]);
|
|
2277
2282
|
return t;
|
|
2278
2283
|
}
|
|
2279
2284
|
return e;
|
|
2280
2285
|
}, _r = (e, t, n, l, i) => {
|
|
2281
|
-
let o =
|
|
2286
|
+
let o = ot(e), s = j[o] || (j[o] = ((a) => {
|
|
2282
2287
|
let c = 0, d = 11;
|
|
2283
2288
|
for (; c < a.length; )
|
|
2284
2289
|
d = 101 * d + a.charCodeAt(c++) >>> 0;
|
|
2285
2290
|
return "go" + d;
|
|
2286
2291
|
})(o));
|
|
2287
|
-
if (!
|
|
2292
|
+
if (!j[s]) {
|
|
2288
2293
|
let a = o !== e ? e : ((c) => {
|
|
2289
2294
|
let d, g, f = [{}];
|
|
2290
2295
|
for (; d = xr.exec(c.replace(wr, "")); )
|
|
2291
|
-
d[4] ? f.shift() : d[3] ? (g = d[3].replace(
|
|
2296
|
+
d[4] ? f.shift() : d[3] ? (g = d[3].replace(Ze, " ").trim(), f.unshift(f[0][g] = f[0][g] || {})) : f[0][d[1]] = d[2].replace(Ze, " ").trim();
|
|
2292
2297
|
return f[0];
|
|
2293
2298
|
})(e);
|
|
2294
|
-
|
|
2299
|
+
j[s] = I(i ? { ["@keyframes " + s]: a } : a, n ? "" : "." + s);
|
|
2295
2300
|
}
|
|
2296
|
-
let r = n &&
|
|
2297
|
-
return n && (
|
|
2301
|
+
let r = n && j.g ? j.g : null;
|
|
2302
|
+
return n && (j.g = j[s]), ((a, c, d, g) => {
|
|
2298
2303
|
g ? c.data = c.data.replace(g, a) : c.data.indexOf(a) === -1 && (c.data = d ? a + c.data : c.data + a);
|
|
2299
|
-
})(
|
|
2304
|
+
})(j[s], t, l, r), s;
|
|
2300
2305
|
}, Sr = (e, t, n) => e.reduce((l, i, o) => {
|
|
2301
2306
|
let s = t[o];
|
|
2302
2307
|
if (s && s.call) {
|
|
2303
2308
|
let r = s(n), a = r && r.props && r.props.className || /^go/.test(r) && r;
|
|
2304
|
-
s = a ? "." + a : r && typeof r == "object" ? r.props ? "" :
|
|
2309
|
+
s = a ? "." + a : r && typeof r == "object" ? r.props ? "" : I(r, "") : r === !1 ? "" : r;
|
|
2305
2310
|
}
|
|
2306
2311
|
return l + i + (s ?? "");
|
|
2307
2312
|
}, "");
|
|
2308
|
-
function
|
|
2313
|
+
function fe(e) {
|
|
2309
2314
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2310
2315
|
return _r(n.unshift ? n.raw ? Sr(n, [].slice.call(arguments, 1), t.p) : n.reduce((l, i) => Object.assign(l, i && i.call ? i(t.p) : i), {}) : n, Cr(t.target), t.g, t.o, t.k);
|
|
2311
2316
|
}
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
const Nr = /* @__PURE__ */
|
|
2317
|
+
fe.bind({ g: 1 });
|
|
2318
|
+
fe.bind({ k: 1 });
|
|
2319
|
+
const Nr = /* @__PURE__ */ $("<div></div>"), kr = /* @__PURE__ */ $('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Ar = fe`
|
|
2315
2320
|
${vr};
|
|
2316
2321
|
${$r};
|
|
2317
2322
|
|
|
@@ -2344,37 +2349,37 @@ const Nr = /* @__PURE__ */ y("<div></div>"), kr = /* @__PURE__ */ y('<div id="de
|
|
|
2344
2349
|
}
|
|
2345
2350
|
|
|
2346
2351
|
> main > * {
|
|
2347
|
-
${
|
|
2352
|
+
${Ce};
|
|
2348
2353
|
}
|
|
2349
|
-
`, Pr =
|
|
2350
|
-
${
|
|
2354
|
+
`, Pr = fe`
|
|
2355
|
+
${Ce};
|
|
2351
2356
|
position: fixed;
|
|
2352
2357
|
inset: 0;
|
|
2353
2358
|
`, Tr = () => [(() => {
|
|
2354
2359
|
const e = Nr.cloneNode(!0);
|
|
2355
|
-
return
|
|
2360
|
+
return oe(e, "click", Or, !0), b(e, Pr), e;
|
|
2356
2361
|
})(), (() => {
|
|
2357
2362
|
const e = kr.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
2358
|
-
return b(e, Ar), u(t, p(
|
|
2363
|
+
return b(e, Ar), u(t, p(M, {
|
|
2359
2364
|
title: "API Explorer",
|
|
2360
2365
|
get children() {
|
|
2361
|
-
return p(
|
|
2366
|
+
return p(de, {
|
|
2362
2367
|
name: "network"
|
|
2363
2368
|
});
|
|
2364
2369
|
}
|
|
2365
2370
|
})), u(n, p(mr, {})), e;
|
|
2366
2371
|
})()];
|
|
2367
|
-
|
|
2372
|
+
ce(["click"]);
|
|
2368
2373
|
const Er = () => p(Tr, {});
|
|
2369
|
-
let
|
|
2374
|
+
let lt = () => {
|
|
2370
2375
|
};
|
|
2371
2376
|
function Lr() {
|
|
2372
2377
|
Q.extend(Et), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
2373
2378
|
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
2374
|
-
e.id = "dev-tools-root", document.body.appendChild(e),
|
|
2379
|
+
e.id = "dev-tools-root", document.body.appendChild(e), lt = xt(() => p(Er, {}), e);
|
|
2375
2380
|
}
|
|
2376
2381
|
function Or() {
|
|
2377
|
-
|
|
2382
|
+
lt();
|
|
2378
2383
|
}
|
|
2379
2384
|
function Hr({
|
|
2380
2385
|
callsProcessor: e,
|