app-devtools 0.1.0 → 0.2.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 +62 -0
- package/dist/main.js +2396 -0
- package/dist/main.umd.cjs +753 -0
- package/package.json +7 -1
- package/.eslintignore +0 -3
- package/.eslintrc.cjs +0 -112
- package/.gitattributes +0 -22
- package/.prettierrc +0 -10
- package/.quokka.ts +0 -115
- package/.vscode/settings.json +0 -7
- package/.vscode/snippets.code-snippets +0 -75
- package/.vscode/tasks.json +0 -17
- package/index.html +0 -46
- package/pnpm-lock.yaml +0 -5313
- package/scripts/check-if-is-sync.sh +0 -6
- package/scripts/filterFetchRequests.ts +0 -60
- package/src/Root.tsx +0 -11
- package/src/assets/icons/caret-down.svg +0 -11
- package/src/assets/icons/network.svg +0 -6
- package/src/assets/icons/search.svg +0 -3
- package/src/assets/icons/send.svg +0 -3
- package/src/assets/icons/settings.svg +0 -3
- package/src/components/ButtonElement.tsx +0 -18
- package/src/components/Icon.tsx +0 -44
- package/src/components/Section.tsx +0 -57
- package/src/components/Select.tsx +0 -101
- package/src/components/ValueVisualizer.tsx +0 -397
- package/src/config/icons.tsx +0 -23
- package/src/initializeApp.tsx +0 -28
- package/src/initializeDevTools.ts +0 -33
- package/src/main.ts +0 -42
- package/src/mocks/mockedRequests.json +0 -28391
- package/src/pages/api-explorer/ApiExplorerMenu.tsx +0 -136
- package/src/pages/api-explorer/ApiExplorerMenuItem.tsx +0 -208
- package/src/pages/api-explorer/Diff.tsx +0 -223
- package/src/pages/api-explorer/RequestDetails.tsx +0 -264
- package/src/pages/api-explorer/Timeline.tsx +0 -174
- package/src/pages/api-explorer/api-explorer.tsx +0 -21
- package/src/pages/api-explorer/getRequestPayload.tsx +0 -15
- package/src/pages/app/App.tsx +0 -79
- package/src/stores/callsStore.ts +0 -267
- package/src/stores/uiStore.ts +0 -15
- package/src/style/globalStyle.ts +0 -54
- package/src/style/helpers/allowTextSelection.ts +0 -7
- package/src/style/helpers/anchorColor.ts +0 -9
- package/src/style/helpers/centerContent.ts +0 -5
- package/src/style/helpers/circle.ts +0 -7
- package/src/style/helpers/ellipsis.ts +0 -8
- package/src/style/helpers/fillContainer.ts +0 -7
- package/src/style/helpers/gradientBorder.ts +0 -28
- package/src/style/helpers/gradientText.ts +0 -8
- package/src/style/helpers/inline.ts +0 -34
- package/src/style/helpers/mountAnim.ts +0 -26
- package/src/style/helpers/multilineEllipsis.ts +0 -8
- package/src/style/helpers/outline.ts +0 -5
- package/src/style/helpers/responsiveSize.ts +0 -27
- package/src/style/helpers/stack.ts +0 -36
- package/src/style/helpers/transition.ts +0 -63
- package/src/style/mediaQueries.ts +0 -6
- package/src/style/reset.ts +0 -75
- package/src/style/scrollBar.ts +0 -37
- package/src/style/theme.ts +0 -35
- package/src/types/global.d.ts +0 -8
- package/src/utils/initializeScreenLogger.ts +0 -12
- package/tsconfig.json +0 -36
- package/tsconfig.prod.json +0 -10
- package/tsup.config.ts +0 -7
- package/utils/arrayUtils.ts +0 -29
- package/utils/assertions.ts +0 -7
- package/utils/autoIncrementId.ts +0 -5
- package/utils/createThemev2.ts +0 -64
- package/utils/cx.ts +0 -27
- package/utils/getDiff.ts +0 -15
- package/utils/hexToRgb.ts +0 -14
- package/utils/objectUtils.ts +0 -3
- package/utils/parseUnit.ts +0 -10
- package/utils/solid.ts +0 -76
- package/utils/truncateText.ts +0 -7
- package/utils/tryExpression.ts +0 -14
- package/utils/typed.ts +0 -23
- package/utils/typings.ts +0 -40
- package/utils/urlPattern.ts +0 -25
- package/vite.config.ts +0 -46
package/dist/main.js
ADDED
|
@@ -0,0 +1,2396 @@
|
|
|
1
|
+
import Q from "dayjs";
|
|
2
|
+
import { sharedConfig as M, createRoot as it, createRenderEffect as C, mergeProps as st, $PROXY as I, $TRACK as we, getListener as Ze, batch as at, createSignal as ne, createMemo as $, splitProps as ct, createComponent as p, Show as se, For as z, Switch as dt, Match as G } from "solid-js";
|
|
3
|
+
import { css as _ } from "solid-styled-components";
|
|
4
|
+
import { dequal as Ke } from "dequal";
|
|
5
|
+
import { nanoid as ut } from "nanoid";
|
|
6
|
+
import { parse as ft } from "regexparam";
|
|
7
|
+
import * as pt from "diff";
|
|
8
|
+
import gt from "tinykeys";
|
|
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
|
+
className: "class",
|
|
11
|
+
htmlFor: "for"
|
|
12
|
+
}), _e = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
13
|
+
class: "className",
|
|
14
|
+
formnovalidate: "formNoValidate",
|
|
15
|
+
ismap: "isMap",
|
|
16
|
+
nomodule: "noModule",
|
|
17
|
+
playsinline: "playsInline",
|
|
18
|
+
readonly: "readOnly"
|
|
19
|
+
}), vt = /* @__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"]), bt = {
|
|
20
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
21
|
+
xml: "http://www.w3.org/XML/1998/namespace"
|
|
22
|
+
};
|
|
23
|
+
function Ct(e, t, n) {
|
|
24
|
+
let l = n.length, i = t.length, o = l, s = 0, r = 0, a = t[i - 1].nextSibling, c = null;
|
|
25
|
+
for (; s < i || r < o; ) {
|
|
26
|
+
if (t[s] === n[r]) {
|
|
27
|
+
s++, r++;
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
for (; t[i - 1] === n[o - 1]; )
|
|
31
|
+
i--, o--;
|
|
32
|
+
if (i === s) {
|
|
33
|
+
const d = o < l ? r ? n[r - 1].nextSibling : n[o - r] : a;
|
|
34
|
+
for (; r < o; )
|
|
35
|
+
e.insertBefore(n[r++], d);
|
|
36
|
+
} else if (o === r)
|
|
37
|
+
for (; s < i; )
|
|
38
|
+
(!c || !c.has(t[s])) && t[s].remove(), s++;
|
|
39
|
+
else if (t[s] === n[o - 1] && n[r] === t[i - 1]) {
|
|
40
|
+
const d = t[--i].nextSibling;
|
|
41
|
+
e.insertBefore(n[r++], t[s++].nextSibling), e.insertBefore(n[--o], d), t[i] = n[o];
|
|
42
|
+
} else {
|
|
43
|
+
if (!c) {
|
|
44
|
+
c = /* @__PURE__ */ new Map();
|
|
45
|
+
let g = r;
|
|
46
|
+
for (; g < o; )
|
|
47
|
+
c.set(n[g], g++);
|
|
48
|
+
}
|
|
49
|
+
const d = c.get(t[s]);
|
|
50
|
+
if (d != null)
|
|
51
|
+
if (r < d && d < o) {
|
|
52
|
+
let g = s, f = 1, m;
|
|
53
|
+
for (; ++g < i && g < o && !((m = c.get(t[g])) == null || m !== d + f); )
|
|
54
|
+
f++;
|
|
55
|
+
if (f > d - r) {
|
|
56
|
+
const v = t[s];
|
|
57
|
+
for (; r < d; )
|
|
58
|
+
e.insertBefore(n[r++], v);
|
|
59
|
+
} else
|
|
60
|
+
e.replaceChild(n[r++], t[s++]);
|
|
61
|
+
} else
|
|
62
|
+
s++;
|
|
63
|
+
else
|
|
64
|
+
t[s++].remove();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const Se = "_$DX_DELEGATE";
|
|
69
|
+
function xt(e, t, n, l = {}) {
|
|
70
|
+
let i;
|
|
71
|
+
return it((o) => {
|
|
72
|
+
i = o, t === document ? e() : u(t, e(), t.firstChild ? null : void 0, n);
|
|
73
|
+
}, l.owner), () => {
|
|
74
|
+
i(), t.textContent = "";
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function y(e, t, n) {
|
|
78
|
+
const l = document.createElement("template");
|
|
79
|
+
l.innerHTML = e;
|
|
80
|
+
let i = l.content.firstChild;
|
|
81
|
+
return n && (i = i.firstChild), i;
|
|
82
|
+
}
|
|
83
|
+
function ae(e, t = window.document) {
|
|
84
|
+
const n = t[Se] || (t[Se] = /* @__PURE__ */ new Set());
|
|
85
|
+
for (let l = 0, i = e.length; l < i; l++) {
|
|
86
|
+
const o = e[l];
|
|
87
|
+
n.has(o) || (n.add(o), t.addEventListener(o, At));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function k(e, t, n) {
|
|
91
|
+
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
92
|
+
}
|
|
93
|
+
function wt(e, t, n, l) {
|
|
94
|
+
l == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, l);
|
|
95
|
+
}
|
|
96
|
+
function b(e, t) {
|
|
97
|
+
t == null ? e.removeAttribute("class") : e.className = t;
|
|
98
|
+
}
|
|
99
|
+
function re(e, t, n, l) {
|
|
100
|
+
if (l)
|
|
101
|
+
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
|
|
102
|
+
else if (Array.isArray(n)) {
|
|
103
|
+
const i = n[0];
|
|
104
|
+
e.addEventListener(t, n[0] = (o) => i.call(e, n[1], o));
|
|
105
|
+
} else
|
|
106
|
+
e.addEventListener(t, n);
|
|
107
|
+
}
|
|
108
|
+
function _t(e, t, n = {}) {
|
|
109
|
+
const l = Object.keys(t || {}), i = Object.keys(n);
|
|
110
|
+
let o, s;
|
|
111
|
+
for (o = 0, s = i.length; o < s; o++) {
|
|
112
|
+
const r = i[o];
|
|
113
|
+
!r || r === "undefined" || t[r] || (Ne(e, r, !1), delete n[r]);
|
|
114
|
+
}
|
|
115
|
+
for (o = 0, s = l.length; o < s; o++) {
|
|
116
|
+
const r = l[o], a = !!t[r];
|
|
117
|
+
!r || r === "undefined" || n[r] === a || !a || (Ne(e, r, !0), n[r] = a);
|
|
118
|
+
}
|
|
119
|
+
return n;
|
|
120
|
+
}
|
|
121
|
+
function Ue(e, t, n) {
|
|
122
|
+
if (!t)
|
|
123
|
+
return n ? k(e, "style") : t;
|
|
124
|
+
const l = e.style;
|
|
125
|
+
if (typeof t == "string")
|
|
126
|
+
return l.cssText = t;
|
|
127
|
+
typeof n == "string" && (l.cssText = n = void 0), n || (n = {}), t || (t = {});
|
|
128
|
+
let i, o;
|
|
129
|
+
for (o in n)
|
|
130
|
+
t[o] == null && l.removeProperty(o), delete n[o];
|
|
131
|
+
for (o in t)
|
|
132
|
+
i = t[o], i !== n[o] && (l.setProperty(o, i), n[o] = i);
|
|
133
|
+
return n;
|
|
134
|
+
}
|
|
135
|
+
function St(e, t = {}, n, l) {
|
|
136
|
+
const i = {};
|
|
137
|
+
return l || C(() => i.children = K(e, t.children, i.children)), C(() => t.ref && t.ref(e)), C(() => Nt(e, t, n, !0, i, !0)), i;
|
|
138
|
+
}
|
|
139
|
+
function u(e, t, n, l) {
|
|
140
|
+
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
141
|
+
return K(e, t, l, n);
|
|
142
|
+
C((i) => K(e, t(), i, n), l);
|
|
143
|
+
}
|
|
144
|
+
function Nt(e, t, n, l, i = {}, o = !1) {
|
|
145
|
+
t || (t = {});
|
|
146
|
+
for (const s in i)
|
|
147
|
+
if (!(s in t)) {
|
|
148
|
+
if (s === "children")
|
|
149
|
+
continue;
|
|
150
|
+
i[s] = ke(e, s, null, i[s], n, o);
|
|
151
|
+
}
|
|
152
|
+
for (const s in t) {
|
|
153
|
+
if (s === "children") {
|
|
154
|
+
l || K(e, t.children);
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
const r = t[s];
|
|
158
|
+
i[s] = ke(e, s, r, i[s], n, o);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function kt(e) {
|
|
162
|
+
return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
|
|
163
|
+
}
|
|
164
|
+
function Ne(e, t, n) {
|
|
165
|
+
const l = t.trim().split(/\s+/);
|
|
166
|
+
for (let i = 0, o = l.length; i < o; i++)
|
|
167
|
+
e.classList.toggle(l[i], n);
|
|
168
|
+
}
|
|
169
|
+
function ke(e, t, n, l, i, o) {
|
|
170
|
+
let s, r, a;
|
|
171
|
+
if (t === "style")
|
|
172
|
+
return Ue(e, n, l);
|
|
173
|
+
if (t === "classList")
|
|
174
|
+
return _t(e, n, l);
|
|
175
|
+
if (n === l)
|
|
176
|
+
return l;
|
|
177
|
+
if (t === "ref")
|
|
178
|
+
o || n(e);
|
|
179
|
+
else if (t.slice(0, 3) === "on:") {
|
|
180
|
+
const c = t.slice(3);
|
|
181
|
+
l && e.removeEventListener(c, l), n && e.addEventListener(c, n);
|
|
182
|
+
} else if (t.slice(0, 10) === "oncapture:") {
|
|
183
|
+
const c = t.slice(10);
|
|
184
|
+
l && e.removeEventListener(c, l, !0), n && e.addEventListener(c, n, !0);
|
|
185
|
+
} else if (t.slice(0, 2) === "on") {
|
|
186
|
+
const c = t.slice(2).toLowerCase(), d = vt.has(c);
|
|
187
|
+
if (!d && l) {
|
|
188
|
+
const g = Array.isArray(l) ? l[0] : l;
|
|
189
|
+
e.removeEventListener(c, g);
|
|
190
|
+
}
|
|
191
|
+
(d || n) && (re(e, c, n, d), d && ae([c]));
|
|
192
|
+
} else if ((a = $t.has(t)) || !i && (_e[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[_e[t] || t] = n;
|
|
194
|
+
else {
|
|
195
|
+
const c = i && t.indexOf(":") > -1 && bt[t.split(":")[0]];
|
|
196
|
+
c ? wt(e, c, t, n) : k(e, yt[t] || t, n);
|
|
197
|
+
}
|
|
198
|
+
return n;
|
|
199
|
+
}
|
|
200
|
+
function At(e) {
|
|
201
|
+
const t = `$$${e.type}`;
|
|
202
|
+
let n = e.composedPath && e.composedPath()[0] || e.target;
|
|
203
|
+
for (e.target !== n && Object.defineProperty(e, "target", {
|
|
204
|
+
configurable: !0,
|
|
205
|
+
value: n
|
|
206
|
+
}), Object.defineProperty(e, "currentTarget", {
|
|
207
|
+
configurable: !0,
|
|
208
|
+
get() {
|
|
209
|
+
return n || document;
|
|
210
|
+
}
|
|
211
|
+
}), M.registry && !M.done && (M.done = !0, document.querySelectorAll("[id^=pl-]").forEach((l) => {
|
|
212
|
+
for (; l && l.nodeType !== 8 && l.nodeValue !== "pl-" + e; ) {
|
|
213
|
+
let i = l.nextSibling;
|
|
214
|
+
l.remove(), l = i;
|
|
215
|
+
}
|
|
216
|
+
l && l.remove();
|
|
217
|
+
})); n; ) {
|
|
218
|
+
const l = n[t];
|
|
219
|
+
if (l && !n.disabled) {
|
|
220
|
+
const i = n[`${t}Data`];
|
|
221
|
+
if (i !== void 0 ? l.call(n, i, e) : l.call(n, e), e.cancelBubble)
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
n = n._$host || n.parentNode || n.host;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function K(e, t, n, l, i) {
|
|
228
|
+
for (M.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
229
|
+
n = n();
|
|
230
|
+
if (t === n)
|
|
231
|
+
return n;
|
|
232
|
+
const o = typeof t, s = l !== void 0;
|
|
233
|
+
if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
|
|
234
|
+
if (M.context)
|
|
235
|
+
return n;
|
|
236
|
+
if (o === "number" && (t = t.toString()), s) {
|
|
237
|
+
let r = n[0];
|
|
238
|
+
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = V(e, n, l, r);
|
|
239
|
+
} else
|
|
240
|
+
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
241
|
+
} else if (t == null || o === "boolean") {
|
|
242
|
+
if (M.context)
|
|
243
|
+
return n;
|
|
244
|
+
n = V(e, n, l);
|
|
245
|
+
} else {
|
|
246
|
+
if (o === "function")
|
|
247
|
+
return C(() => {
|
|
248
|
+
let r = t();
|
|
249
|
+
for (; typeof r == "function"; )
|
|
250
|
+
r = r();
|
|
251
|
+
n = K(e, r, n, l);
|
|
252
|
+
}), () => n;
|
|
253
|
+
if (Array.isArray(t)) {
|
|
254
|
+
const r = [], a = n && Array.isArray(n);
|
|
255
|
+
if (he(r, t, n, i))
|
|
256
|
+
return C(() => n = K(e, r, n, l, !0)), () => n;
|
|
257
|
+
if (M.context) {
|
|
258
|
+
if (!r.length)
|
|
259
|
+
return n;
|
|
260
|
+
for (let c = 0; c < r.length; c++)
|
|
261
|
+
if (r[c].parentNode)
|
|
262
|
+
return n = r;
|
|
263
|
+
}
|
|
264
|
+
if (r.length === 0) {
|
|
265
|
+
if (n = V(e, n, l), s)
|
|
266
|
+
return n;
|
|
267
|
+
} else
|
|
268
|
+
a ? n.length === 0 ? Ae(e, r, l) : Ct(e, n, r) : (n && V(e), Ae(e, r));
|
|
269
|
+
n = r;
|
|
270
|
+
} else if (t instanceof Node) {
|
|
271
|
+
if (M.context && t.parentNode)
|
|
272
|
+
return n = s ? [t] : t;
|
|
273
|
+
if (Array.isArray(n)) {
|
|
274
|
+
if (s)
|
|
275
|
+
return n = V(e, n, l, t);
|
|
276
|
+
V(e, n, null, t);
|
|
277
|
+
} else
|
|
278
|
+
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
279
|
+
n = t;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return n;
|
|
283
|
+
}
|
|
284
|
+
function he(e, t, n, l) {
|
|
285
|
+
let i = !1;
|
|
286
|
+
for (let o = 0, s = t.length; o < s; o++) {
|
|
287
|
+
let r = t[o], a = n && n[o];
|
|
288
|
+
if (r instanceof Node)
|
|
289
|
+
e.push(r);
|
|
290
|
+
else if (!(r == null || r === !0 || r === !1))
|
|
291
|
+
if (Array.isArray(r))
|
|
292
|
+
i = he(e, r, a) || i;
|
|
293
|
+
else if (typeof r == "function")
|
|
294
|
+
if (l) {
|
|
295
|
+
for (; typeof r == "function"; )
|
|
296
|
+
r = r();
|
|
297
|
+
i = he(e, Array.isArray(r) ? r : [r], Array.isArray(a) ? a : [a]) || i;
|
|
298
|
+
} else
|
|
299
|
+
e.push(r), i = !0;
|
|
300
|
+
else {
|
|
301
|
+
const c = String(r);
|
|
302
|
+
a && a.nodeType === 3 && a.data === c ? e.push(a) : e.push(document.createTextNode(c));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return i;
|
|
306
|
+
}
|
|
307
|
+
function Ae(e, t, n = null) {
|
|
308
|
+
for (let l = 0, i = t.length; l < i; l++)
|
|
309
|
+
e.insertBefore(t[l], n);
|
|
310
|
+
}
|
|
311
|
+
function V(e, t, n, l) {
|
|
312
|
+
if (n === void 0)
|
|
313
|
+
return e.textContent = "";
|
|
314
|
+
const i = l || document.createTextNode("");
|
|
315
|
+
if (t.length) {
|
|
316
|
+
let o = !1;
|
|
317
|
+
for (let s = t.length - 1; s >= 0; s--) {
|
|
318
|
+
const r = t[s];
|
|
319
|
+
if (i !== r) {
|
|
320
|
+
const a = r.parentNode === e;
|
|
321
|
+
!o && !s ? a ? e.replaceChild(i, r) : e.insertBefore(i, n) : a && r.remove();
|
|
322
|
+
} else
|
|
323
|
+
o = !0;
|
|
324
|
+
}
|
|
325
|
+
} else
|
|
326
|
+
e.insertBefore(i, n);
|
|
327
|
+
return [i];
|
|
328
|
+
}
|
|
329
|
+
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, me = {}, Tt = {
|
|
330
|
+
get exports() {
|
|
331
|
+
return me;
|
|
332
|
+
},
|
|
333
|
+
set exports(e) {
|
|
334
|
+
me = e;
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
(function(e, t) {
|
|
338
|
+
(function(n, l) {
|
|
339
|
+
e.exports = l();
|
|
340
|
+
})(Pt, function() {
|
|
341
|
+
return function(n, l, i) {
|
|
342
|
+
n = n || {};
|
|
343
|
+
var o = l.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" };
|
|
344
|
+
function r(c, d, g, f) {
|
|
345
|
+
return o.fromToBase(c, d, g, f);
|
|
346
|
+
}
|
|
347
|
+
i.en.relativeTime = s, o.fromToBase = function(c, d, g, f, m) {
|
|
348
|
+
for (var v, x, w, R = g.$locale().relativeTime || s, T = 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" }], lt = T.length, X = 0; X < lt; X += 1) {
|
|
349
|
+
var O = T[X];
|
|
350
|
+
O.d && (v = f ? i(c).diff(g, O.d, !0) : g.diff(c, O.d, !0));
|
|
351
|
+
var H = (n.rounding || Math.round)(Math.abs(v));
|
|
352
|
+
if (w = v > 0, H <= O.r || !O.r) {
|
|
353
|
+
H <= 1 && X > 0 && (O = T[X - 1]);
|
|
354
|
+
var fe = R[O.l];
|
|
355
|
+
m && (H = m("" + H)), x = typeof fe == "string" ? fe.replace("%d", H) : fe(H, d, O.l, w);
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if (d)
|
|
360
|
+
return x;
|
|
361
|
+
var pe = w ? R.future : R.past;
|
|
362
|
+
return typeof pe == "function" ? pe(x) : pe.replace("%s", x);
|
|
363
|
+
}, o.to = function(c, d) {
|
|
364
|
+
return r(c, d, this, !0);
|
|
365
|
+
}, o.from = function(c, d) {
|
|
366
|
+
return r(c, d, this);
|
|
367
|
+
};
|
|
368
|
+
var a = function(c) {
|
|
369
|
+
return c.$u ? i.utc() : i();
|
|
370
|
+
};
|
|
371
|
+
o.toNow = function(c) {
|
|
372
|
+
return this.to(a(this), c);
|
|
373
|
+
}, o.fromNow = function(c) {
|
|
374
|
+
return this.from(a(this), c);
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
});
|
|
378
|
+
})(Tt);
|
|
379
|
+
const Et = me, Lt = /* @__PURE__ */ y("<button></button>"), L = (e) => (() => {
|
|
380
|
+
const t = Lt.cloneNode(!0);
|
|
381
|
+
return St(t, st(e, {
|
|
382
|
+
onMouseDown: Ot
|
|
383
|
+
}), !1, !1), t;
|
|
384
|
+
})();
|
|
385
|
+
function Ot(e) {
|
|
386
|
+
e.preventDefault();
|
|
387
|
+
}
|
|
388
|
+
const jt = `<svg
|
|
389
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
390
|
+
width="32"
|
|
391
|
+
height="32"
|
|
392
|
+
viewBox="0 0 32 32"
|
|
393
|
+
>
|
|
394
|
+
<path
|
|
395
|
+
fill="currentColor"
|
|
396
|
+
d="m24 12l-8 10l-8-10z"
|
|
397
|
+
/>
|
|
398
|
+
</svg>
|
|
399
|
+
`, Mt = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
400
|
+
<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"/>
|
|
401
|
+
<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"/>
|
|
402
|
+
<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"/>
|
|
403
|
+
<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"/>
|
|
404
|
+
</svg>
|
|
405
|
+
`, Rt = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
406
|
+
<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"/>
|
|
407
|
+
</svg>
|
|
408
|
+
`, Dt = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
409
|
+
<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"/>
|
|
410
|
+
</svg>
|
|
411
|
+
`, It = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
412
|
+
<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"/>
|
|
413
|
+
</svg>
|
|
414
|
+
`, zt = /* @__PURE__ */ Object.assign({
|
|
415
|
+
"/src/assets/icons/caret-down.svg": jt,
|
|
416
|
+
"/src/assets/icons/network.svg": Mt,
|
|
417
|
+
"/src/assets/icons/search.svg": Rt,
|
|
418
|
+
"/src/assets/icons/send.svg": Dt,
|
|
419
|
+
"/src/assets/icons/settings.svg": It
|
|
420
|
+
});
|
|
421
|
+
function Ft(e) {
|
|
422
|
+
return zt[`/src/assets/icons/${e}.svg`];
|
|
423
|
+
}
|
|
424
|
+
const be = `
|
|
425
|
+
position: absolute;
|
|
426
|
+
width: 100%;
|
|
427
|
+
height: 100%;
|
|
428
|
+
top: 0;
|
|
429
|
+
left: 0;
|
|
430
|
+
`;
|
|
431
|
+
function Bt(e, t = "px") {
|
|
432
|
+
return typeof e == "string" ? String(e) : Array.isArray(e) ? e.map((n) => `${n}${t}`).join(" ") : `${e}${t}`;
|
|
433
|
+
}
|
|
434
|
+
const Ht = /* @__PURE__ */ y("<div></div>"), Vt = _`
|
|
435
|
+
&&& {
|
|
436
|
+
position: relative;
|
|
437
|
+
color: currentColor;
|
|
438
|
+
height: var(--icon-size, 24px);
|
|
439
|
+
width: var(--icon-size, 24px);
|
|
440
|
+
|
|
441
|
+
svg {
|
|
442
|
+
display: block;
|
|
443
|
+
${be};
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
`, ce = (e) => {
|
|
447
|
+
const t = Ft(e.name);
|
|
448
|
+
return (() => {
|
|
449
|
+
const n = Ht.cloneNode(!0);
|
|
450
|
+
return n.innerHTML = t, C((l) => {
|
|
451
|
+
const i = `icon ${e.class || ""} ${Vt}`, o = {
|
|
452
|
+
color: e.color,
|
|
453
|
+
"--icon-size": e.size && Bt(e.size)
|
|
454
|
+
};
|
|
455
|
+
return i !== l._v$ && b(n, l._v$ = i), l._v$2 = Ue(n, o, l._v$2), l;
|
|
456
|
+
}, {
|
|
457
|
+
_v$: void 0,
|
|
458
|
+
_v$2: void 0
|
|
459
|
+
}), n;
|
|
460
|
+
})();
|
|
461
|
+
}, oe = Symbol("store-raw"), q = Symbol("store-node"), Zt = Symbol("store-name");
|
|
462
|
+
function We(e, t) {
|
|
463
|
+
let n = e[I];
|
|
464
|
+
if (!n && (Object.defineProperty(e, I, {
|
|
465
|
+
value: n = new Proxy(e, Wt)
|
|
466
|
+
}), !Array.isArray(e))) {
|
|
467
|
+
const l = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
|
|
468
|
+
for (let o = 0, s = l.length; o < s; o++) {
|
|
469
|
+
const r = l[o];
|
|
470
|
+
i[r].get && Object.defineProperty(e, r, {
|
|
471
|
+
enumerable: i[r].enumerable,
|
|
472
|
+
get: i[r].get.bind(n)
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return n;
|
|
477
|
+
}
|
|
478
|
+
function U(e) {
|
|
479
|
+
let t;
|
|
480
|
+
return e != null && typeof e == "object" && (e[I] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
481
|
+
}
|
|
482
|
+
function W(e, t = /* @__PURE__ */ new Set()) {
|
|
483
|
+
let n, l, i, o;
|
|
484
|
+
if (n = e != null && e[oe])
|
|
485
|
+
return n;
|
|
486
|
+
if (!U(e) || t.has(e))
|
|
487
|
+
return e;
|
|
488
|
+
if (Array.isArray(e)) {
|
|
489
|
+
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
490
|
+
for (let s = 0, r = e.length; s < r; s++)
|
|
491
|
+
i = e[s], (l = W(i, t)) !== i && (e[s] = l);
|
|
492
|
+
} else {
|
|
493
|
+
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
494
|
+
const s = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
495
|
+
for (let a = 0, c = s.length; a < c; a++)
|
|
496
|
+
o = s[a], !r[o].get && (i = e[o], (l = W(i, t)) !== i && (e[o] = l));
|
|
497
|
+
}
|
|
498
|
+
return e;
|
|
499
|
+
}
|
|
500
|
+
function Ce(e) {
|
|
501
|
+
let t = e[q];
|
|
502
|
+
return t || Object.defineProperty(e, q, {
|
|
503
|
+
value: t = {}
|
|
504
|
+
}), t;
|
|
505
|
+
}
|
|
506
|
+
function $e(e, t, n) {
|
|
507
|
+
return e[t] || (e[t] = Xe(n));
|
|
508
|
+
}
|
|
509
|
+
function Kt(e, t) {
|
|
510
|
+
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
511
|
+
return !n || n.get || !n.configurable || t === I || t === q || t === Zt || (delete n.value, delete n.writable, n.get = () => e[I][t]), n;
|
|
512
|
+
}
|
|
513
|
+
function Je(e) {
|
|
514
|
+
if (Ze()) {
|
|
515
|
+
const t = Ce(e);
|
|
516
|
+
(t._ || (t._ = Xe()))();
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function Ut(e) {
|
|
520
|
+
return Je(e), Reflect.ownKeys(e);
|
|
521
|
+
}
|
|
522
|
+
function Xe(e) {
|
|
523
|
+
const [t, n] = ne(e, {
|
|
524
|
+
equals: !1,
|
|
525
|
+
internal: !0
|
|
526
|
+
});
|
|
527
|
+
return t.$ = n, t;
|
|
528
|
+
}
|
|
529
|
+
const Wt = {
|
|
530
|
+
get(e, t, n) {
|
|
531
|
+
if (t === oe)
|
|
532
|
+
return e;
|
|
533
|
+
if (t === I)
|
|
534
|
+
return n;
|
|
535
|
+
if (t === we)
|
|
536
|
+
return Je(e), n;
|
|
537
|
+
const l = Ce(e), i = l.hasOwnProperty(t);
|
|
538
|
+
let o = i ? l[t]() : e[t];
|
|
539
|
+
if (t === q || t === "__proto__")
|
|
540
|
+
return o;
|
|
541
|
+
if (!i) {
|
|
542
|
+
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
543
|
+
Ze() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = $e(l, t, o)());
|
|
544
|
+
}
|
|
545
|
+
return U(o) ? We(o) : o;
|
|
546
|
+
},
|
|
547
|
+
has(e, t) {
|
|
548
|
+
return t === oe || t === I || t === we || t === q || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
|
|
549
|
+
},
|
|
550
|
+
set() {
|
|
551
|
+
return !0;
|
|
552
|
+
},
|
|
553
|
+
deleteProperty() {
|
|
554
|
+
return !0;
|
|
555
|
+
},
|
|
556
|
+
ownKeys: Ut,
|
|
557
|
+
getOwnPropertyDescriptor: Kt
|
|
558
|
+
};
|
|
559
|
+
function J(e, t, n, l = !1) {
|
|
560
|
+
if (!l && e[t] === n)
|
|
561
|
+
return;
|
|
562
|
+
const i = e[t], o = e.length;
|
|
563
|
+
n === void 0 ? delete e[t] : e[t] = n;
|
|
564
|
+
let s = Ce(e), r;
|
|
565
|
+
(r = $e(s, t, i)) && r.$(() => n), Array.isArray(e) && e.length !== o && (r = $e(s, "length", o)) && r.$(e.length), (r = s._) && r.$();
|
|
566
|
+
}
|
|
567
|
+
function Ge(e, t) {
|
|
568
|
+
const n = Object.keys(t);
|
|
569
|
+
for (let l = 0; l < n.length; l += 1) {
|
|
570
|
+
const i = n[l];
|
|
571
|
+
J(e, i, t[i]);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
function Jt(e, t) {
|
|
575
|
+
if (typeof t == "function" && (t = t(e)), t = W(t), Array.isArray(t)) {
|
|
576
|
+
if (e === t)
|
|
577
|
+
return;
|
|
578
|
+
let n = 0, l = t.length;
|
|
579
|
+
for (; n < l; n++) {
|
|
580
|
+
const i = t[n];
|
|
581
|
+
e[n] !== i && J(e, n, i);
|
|
582
|
+
}
|
|
583
|
+
J(e, "length", l);
|
|
584
|
+
} else
|
|
585
|
+
Ge(e, t);
|
|
586
|
+
}
|
|
587
|
+
function Y(e, t, n = []) {
|
|
588
|
+
let l, i = e;
|
|
589
|
+
if (t.length > 1) {
|
|
590
|
+
l = t.shift();
|
|
591
|
+
const s = typeof l, r = Array.isArray(e);
|
|
592
|
+
if (Array.isArray(l)) {
|
|
593
|
+
for (let a = 0; a < l.length; a++)
|
|
594
|
+
Y(e, [l[a]].concat(t), n);
|
|
595
|
+
return;
|
|
596
|
+
} else if (r && s === "function") {
|
|
597
|
+
for (let a = 0; a < e.length; a++)
|
|
598
|
+
l(e[a], a) && Y(e, [a].concat(t), n);
|
|
599
|
+
return;
|
|
600
|
+
} else if (r && s === "object") {
|
|
601
|
+
const {
|
|
602
|
+
from: a = 0,
|
|
603
|
+
to: c = e.length - 1,
|
|
604
|
+
by: d = 1
|
|
605
|
+
} = l;
|
|
606
|
+
for (let g = a; g <= c; g += d)
|
|
607
|
+
Y(e, [g].concat(t), n);
|
|
608
|
+
return;
|
|
609
|
+
} else if (t.length > 1) {
|
|
610
|
+
Y(e[l], t, [l].concat(n));
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
i = e[l], n = [l].concat(n);
|
|
614
|
+
}
|
|
615
|
+
let o = t[0];
|
|
616
|
+
typeof o == "function" && (o = o(i, n), o === i) || l === void 0 && o == null || (o = W(o), l === void 0 || U(i) && U(o) && !Array.isArray(o) ? Ge(i, o) : J(e, l, o));
|
|
617
|
+
}
|
|
618
|
+
function Ye(...[e, t]) {
|
|
619
|
+
const n = W(e || {}), l = Array.isArray(n), i = We(n);
|
|
620
|
+
function o(...s) {
|
|
621
|
+
at(() => {
|
|
622
|
+
l && s.length === 1 ? Jt(n, s[0]) : Y(n, s);
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
return [i, o];
|
|
626
|
+
}
|
|
627
|
+
const le = /* @__PURE__ */ new WeakMap(), Qe = {
|
|
628
|
+
get(e, t) {
|
|
629
|
+
if (t === oe)
|
|
630
|
+
return e;
|
|
631
|
+
const n = e[t];
|
|
632
|
+
let l;
|
|
633
|
+
return U(n) ? le.get(n) || (le.set(n, l = new Proxy(n, Qe)), l) : n;
|
|
634
|
+
},
|
|
635
|
+
set(e, t, n) {
|
|
636
|
+
return J(e, t, W(n)), !0;
|
|
637
|
+
},
|
|
638
|
+
deleteProperty(e, t) {
|
|
639
|
+
return J(e, t, void 0, !0), !0;
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
function Xt(e) {
|
|
643
|
+
return (t) => {
|
|
644
|
+
if (U(t)) {
|
|
645
|
+
let n;
|
|
646
|
+
(n = le.get(t)) || le.set(t, n = new Proxy(t, Qe)), e(n);
|
|
647
|
+
}
|
|
648
|
+
return t;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
const [N, ie] = Ye({
|
|
652
|
+
selectedCall: null,
|
|
653
|
+
selectedRequest: null,
|
|
654
|
+
selectedTab: null,
|
|
655
|
+
selectedSubitem: null
|
|
656
|
+
}), de = `
|
|
657
|
+
display: inline-block;
|
|
658
|
+
overflow: hidden;
|
|
659
|
+
text-overflow: ellipsis;
|
|
660
|
+
white-space: nowrap;
|
|
661
|
+
word-wrap: norma;
|
|
662
|
+
max-width: 100%;
|
|
663
|
+
`, Gt = {
|
|
664
|
+
left: "flex-start",
|
|
665
|
+
center: "center",
|
|
666
|
+
right: "flex-end",
|
|
667
|
+
spaceBetween: "space-between",
|
|
668
|
+
spaceAround: "space-around",
|
|
669
|
+
spaceEvenly: "space-evenly"
|
|
670
|
+
}, Yt = {
|
|
671
|
+
top: "flex-start",
|
|
672
|
+
bottom: "flex-end",
|
|
673
|
+
center: "center",
|
|
674
|
+
stretch: "stretch"
|
|
675
|
+
}, F = ({
|
|
676
|
+
justify: e = "left",
|
|
677
|
+
align: t = "center",
|
|
678
|
+
gap: n
|
|
679
|
+
} = {}) => `
|
|
680
|
+
display: flex;
|
|
681
|
+
column-gap: ${n}px;
|
|
682
|
+
flex-direction: row;
|
|
683
|
+
justify-content: ${Gt[e]};
|
|
684
|
+
align-items: ${Yt[t]};
|
|
685
|
+
`, Qt = {
|
|
686
|
+
top: "flex-start",
|
|
687
|
+
center: "center",
|
|
688
|
+
bottom: "flex-end",
|
|
689
|
+
spaceBetween: "space-between",
|
|
690
|
+
spaceAround: "space-around",
|
|
691
|
+
spaceEvenly: "space-evenly"
|
|
692
|
+
}, qt = {
|
|
693
|
+
left: "flex-start",
|
|
694
|
+
right: "flex-end",
|
|
695
|
+
center: "center",
|
|
696
|
+
stretch: "stretch"
|
|
697
|
+
}, S = ({
|
|
698
|
+
justify: e = "top",
|
|
699
|
+
align: t = "stretch",
|
|
700
|
+
gap: n = 0
|
|
701
|
+
} = {}) => `
|
|
702
|
+
row-gap: ${n}px;
|
|
703
|
+
display: flex;
|
|
704
|
+
flex-direction: column;
|
|
705
|
+
justify-content: ${Qt[e]};
|
|
706
|
+
align-items: ${qt[t]};
|
|
707
|
+
`;
|
|
708
|
+
function en(e) {
|
|
709
|
+
if (e.length < 4)
|
|
710
|
+
throw new Error("Invalid hex value");
|
|
711
|
+
return (e.replace(
|
|
712
|
+
/^#?([a-f\d])([a-f\d])([a-f\d])$/i,
|
|
713
|
+
(t, n, l, i) => `#${n}${n}${l}${l}${i}${i}`
|
|
714
|
+
).substring(1).match(/.{2}/g) || []).map((t) => parseInt(t, 16));
|
|
715
|
+
}
|
|
716
|
+
function tn(e) {
|
|
717
|
+
return Object.entries(e);
|
|
718
|
+
}
|
|
719
|
+
const ee = document.documentElement.style;
|
|
720
|
+
let Pe = 1;
|
|
721
|
+
function nn(e) {
|
|
722
|
+
const t = {};
|
|
723
|
+
for (const [n, l] of tn(e)) {
|
|
724
|
+
const [i, o, s] = en(l), r = `c${Pe}`;
|
|
725
|
+
Pe++, ee.setProperty(`--${r}-r`, String(i)), ee.setProperty(`--${r}-g`, String(o)), ee.setProperty(`--${r}-b`, String(s)), ee.setProperty(`--${r}`, l), t[n] = {
|
|
726
|
+
red: i,
|
|
727
|
+
green: o,
|
|
728
|
+
blue: s,
|
|
729
|
+
var: `var(--${r})`,
|
|
730
|
+
raw: l,
|
|
731
|
+
alpha: (a) => `rgba(var(--${r}-r), var(--${r}-g), var(--${r}-b), ${a})`,
|
|
732
|
+
darker: (a, c) => {
|
|
733
|
+
const d = a / 100;
|
|
734
|
+
return `${c ? "rgba" : "rgb"}(${[
|
|
735
|
+
`calc(var(--${r}-r) - var(--${r}-r) * ${d})`,
|
|
736
|
+
`calc(var(--${r}-g) - var(--${r}-g) * ${d})`,
|
|
737
|
+
`calc(var(--${r}-b) - var(--${r}-b) * ${d})`
|
|
738
|
+
].join(",")}${c !== void 0 ? `, ${c}` : ""})`;
|
|
739
|
+
},
|
|
740
|
+
lighter: (a, c) => {
|
|
741
|
+
const d = a / 100;
|
|
742
|
+
return `${c ? "rgba" : "rgb"}(${[
|
|
743
|
+
`calc(var(--${r}-r) + (255 - var(--${r}-r)) * ${d})`,
|
|
744
|
+
`calc(var(--${r}-g) + (255 - var(--${r}-g)) * ${d})`,
|
|
745
|
+
`calc(var(--${r}-b) + (255 - var(--${r}-b)) * ${d})`
|
|
746
|
+
].join(",")}${c !== void 0 ? `, ${c}` : ""})`;
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
return t;
|
|
751
|
+
}
|
|
752
|
+
const h = nn({
|
|
753
|
+
bgPrimary: "#0F172A",
|
|
754
|
+
bgSecondary: "#1E293B",
|
|
755
|
+
textPrimary: "#fff",
|
|
756
|
+
primary: "#F472B6",
|
|
757
|
+
secondary: "#7DD3FC",
|
|
758
|
+
warning: "#FDE047",
|
|
759
|
+
error: "#f87171",
|
|
760
|
+
successDarker: "#0d9488",
|
|
761
|
+
success: "#4ADE80",
|
|
762
|
+
bg: "#EAEFFF",
|
|
763
|
+
white: "#fff",
|
|
764
|
+
black: "#000"
|
|
765
|
+
}), P = {
|
|
766
|
+
primary: "Work Sans, sans-serif",
|
|
767
|
+
decorative: '"Fira Code", monospaced'
|
|
768
|
+
};
|
|
769
|
+
function rn(e, t, n) {
|
|
770
|
+
if (!e)
|
|
771
|
+
return t;
|
|
772
|
+
const l = [], i = new Map(e.map((o) => [o[n], o]));
|
|
773
|
+
for (const o of t) {
|
|
774
|
+
const s = i.get(o[n]);
|
|
775
|
+
s && Ke(s, o) ? l.push(s) : l.push(o);
|
|
776
|
+
}
|
|
777
|
+
return l;
|
|
778
|
+
}
|
|
779
|
+
function qe(e, t) {
|
|
780
|
+
return $((n) => rn(n, typeof e == "function" ? e() : e, t));
|
|
781
|
+
}
|
|
782
|
+
function xe(e) {
|
|
783
|
+
const [t, n] = ne(e);
|
|
784
|
+
return {
|
|
785
|
+
get value() {
|
|
786
|
+
return t();
|
|
787
|
+
},
|
|
788
|
+
set value(l) {
|
|
789
|
+
n(() => l);
|
|
790
|
+
},
|
|
791
|
+
set(l) {
|
|
792
|
+
n(() => l);
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
const on = /* @__PURE__ */ y('<div class="tag"></div>'), Te = /* @__PURE__ */ y("<span></span>"), ln = /* @__PURE__ */ y('<div><div class="call"></div></div>'), sn = _`
|
|
797
|
+
&&& {
|
|
798
|
+
font-size: 14px;
|
|
799
|
+
${S()};
|
|
800
|
+
|
|
801
|
+
> .call {
|
|
802
|
+
padding: 4px 12px;
|
|
803
|
+
${F()};
|
|
804
|
+
opacity: 0.8;
|
|
805
|
+
|
|
806
|
+
&.selected {
|
|
807
|
+
opacity: 1;
|
|
808
|
+
background-color: ${h.secondary.alpha(0.16)};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
> button {
|
|
812
|
+
text-align: left;
|
|
813
|
+
${F({
|
|
814
|
+
gap: 8
|
|
815
|
+
})};
|
|
816
|
+
|
|
817
|
+
> .tag {
|
|
818
|
+
font-weight: 600;
|
|
819
|
+
font-family: ${P.decorative};
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
> span {
|
|
823
|
+
${de};
|
|
824
|
+
flex-shrink: 1;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.subitem {
|
|
830
|
+
text-align: left;
|
|
831
|
+
padding: 4px 12px;
|
|
832
|
+
padding-left: 14px;
|
|
833
|
+
margin-left: 16px;
|
|
834
|
+
border-left: 1px solid ${h.white.alpha(0.1)};
|
|
835
|
+
|
|
836
|
+
span {
|
|
837
|
+
opacity: 0.6;
|
|
838
|
+
padding: 4px 8px;
|
|
839
|
+
margin-left: -8px;
|
|
840
|
+
border-radius: 4px;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
&.selected span {
|
|
844
|
+
opacity: 1;
|
|
845
|
+
background-color: ${h.secondary.alpha(0.16)};
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
&:first-of-type {
|
|
849
|
+
margin-top: 2px;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
&:last-of-type {
|
|
853
|
+
border-radius: 0 0 0 10px;
|
|
854
|
+
border-bottom: 1px solid ${h.white.alpha(0.1)};
|
|
855
|
+
padding-bottom: 10px;
|
|
856
|
+
margin-bottom: 4px;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.expand-button {
|
|
861
|
+
margin-left: auto;
|
|
862
|
+
--icon-size: 16px;
|
|
863
|
+
|
|
864
|
+
&.expanded {
|
|
865
|
+
transform: rotate(180deg);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
`, an = (e) => {
|
|
870
|
+
const t = () => e.item, n = () => e.currentCallId;
|
|
871
|
+
ct(e, ["item", "currentCallId"])[1];
|
|
872
|
+
const l = xe(e.item.subitemsWithAlias.length < 4), i = cn(t().type, t().subType);
|
|
873
|
+
return (() => {
|
|
874
|
+
const o = ln.cloneNode(!0), s = o.firstChild;
|
|
875
|
+
return b(o, sn), u(s, p(L, {
|
|
876
|
+
onClick: () => {
|
|
877
|
+
ie({
|
|
878
|
+
selectedCall: t().id,
|
|
879
|
+
selectedSubitem: null
|
|
880
|
+
});
|
|
881
|
+
},
|
|
882
|
+
get children() {
|
|
883
|
+
return [(() => {
|
|
884
|
+
const r = on.cloneNode(!0);
|
|
885
|
+
return u(r, () => i.icon), C((a) => {
|
|
886
|
+
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, d = i.color;
|
|
887
|
+
return c !== a._v$ && k(r, "title", a._v$ = c), d !== a._v$2 && r.style.setProperty("color", a._v$2 = d), a;
|
|
888
|
+
}, {
|
|
889
|
+
_v$: void 0,
|
|
890
|
+
_v$2: void 0
|
|
891
|
+
}), r;
|
|
892
|
+
})(), (() => {
|
|
893
|
+
const r = Te.cloneNode(!0);
|
|
894
|
+
return u(r, () => t().name), C(() => k(r, "title", t().name)), r;
|
|
895
|
+
})()];
|
|
896
|
+
}
|
|
897
|
+
}), null), u(s, (() => {
|
|
898
|
+
const r = $(() => t().subitemsWithAlias.length > 0);
|
|
899
|
+
return () => r() && p(L, {
|
|
900
|
+
class: "expand-button",
|
|
901
|
+
get classList() {
|
|
902
|
+
return {
|
|
903
|
+
expanded: l.value
|
|
904
|
+
};
|
|
905
|
+
},
|
|
906
|
+
onClick: () => {
|
|
907
|
+
l.value = !l.value;
|
|
908
|
+
},
|
|
909
|
+
get children() {
|
|
910
|
+
return p(ce, {
|
|
911
|
+
name: "caret-down"
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
})(), null), u(o, p(se, {
|
|
916
|
+
get when() {
|
|
917
|
+
return l.value;
|
|
918
|
+
},
|
|
919
|
+
get children() {
|
|
920
|
+
return p(z, {
|
|
921
|
+
get each() {
|
|
922
|
+
return t().subitemsWithAlias;
|
|
923
|
+
},
|
|
924
|
+
children: (r) => p(L, {
|
|
925
|
+
class: "subitem",
|
|
926
|
+
get classList() {
|
|
927
|
+
return {
|
|
928
|
+
selected: n() === t().id && N.selectedSubitem === r
|
|
929
|
+
};
|
|
930
|
+
},
|
|
931
|
+
onClick: () => {
|
|
932
|
+
ie({
|
|
933
|
+
selectedCall: t().id,
|
|
934
|
+
selectedSubitem: r
|
|
935
|
+
});
|
|
936
|
+
},
|
|
937
|
+
get children() {
|
|
938
|
+
const a = Te.cloneNode(!0);
|
|
939
|
+
return u(a, r), a;
|
|
940
|
+
}
|
|
941
|
+
})
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}), null), C(() => s.classList.toggle("selected", n() ? n() === t().id : e.index === 0)), o;
|
|
945
|
+
})();
|
|
946
|
+
};
|
|
947
|
+
function cn(e, t) {
|
|
948
|
+
let n = "", l = "";
|
|
949
|
+
return e === "fetch" ? (n = "F", l = "#FDE047") : t ? t === "create" ? (n = "C", l = "#6EE7B7") : t === "update" ? (n = "U", l = "#A78BFA") : t === "delete" ? (n = "D", l = "#E53558") : (n = t[0]?.toUpperCase() || "?", l = "#FDE047") : (n = "M", l = "#A78BFA"), {
|
|
950
|
+
icon: n,
|
|
951
|
+
color: l
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
function Ee(e) {
|
|
955
|
+
if (e == null)
|
|
956
|
+
throw new Error("Value is null or undefined");
|
|
957
|
+
}
|
|
958
|
+
function Le(e, t) {
|
|
959
|
+
try {
|
|
960
|
+
return e();
|
|
961
|
+
} catch (n) {
|
|
962
|
+
return t && t(n), null;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
function dn(e, t) {
|
|
966
|
+
const n = ft(t);
|
|
967
|
+
return un(e, n);
|
|
968
|
+
}
|
|
969
|
+
function un(e, t) {
|
|
970
|
+
let n = 0;
|
|
971
|
+
const l = {}, i = t.pattern.exec(e);
|
|
972
|
+
if (!i)
|
|
973
|
+
return null;
|
|
974
|
+
for (; n < t.keys.length; )
|
|
975
|
+
l[t.keys[n]] = i[++n] || null;
|
|
976
|
+
return l;
|
|
977
|
+
}
|
|
978
|
+
const [B, fn] = Ye({
|
|
979
|
+
calls: {}
|
|
980
|
+
});
|
|
981
|
+
let ye = {
|
|
982
|
+
callsProcessor: []
|
|
983
|
+
};
|
|
984
|
+
function pn(e) {
|
|
985
|
+
ye = {
|
|
986
|
+
...ye,
|
|
987
|
+
...e
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
function Br(e) {
|
|
991
|
+
const t = e.startTime || Date.now();
|
|
992
|
+
return () => {
|
|
993
|
+
const n = e.duration || Date.now() - t;
|
|
994
|
+
fn(
|
|
995
|
+
Xt((l) => {
|
|
996
|
+
const i = Le(
|
|
997
|
+
() => new URL(e.path, "http://localhost")
|
|
998
|
+
);
|
|
999
|
+
Ee(i);
|
|
1000
|
+
const o = i.searchParams.toString() !== "" ? Object.fromEntries(i.searchParams.entries()) : null;
|
|
1001
|
+
let s = null;
|
|
1002
|
+
const r = ye.callsProcessor.find((x) => {
|
|
1003
|
+
if (typeof x.match == "string") {
|
|
1004
|
+
const w = dn(i.pathname, x.match);
|
|
1005
|
+
return w ? (s = w, !0) : !1;
|
|
1006
|
+
} else
|
|
1007
|
+
return x.match({
|
|
1008
|
+
url: i,
|
|
1009
|
+
type: e.type,
|
|
1010
|
+
subType: e.subType
|
|
1011
|
+
});
|
|
1012
|
+
}), a = r?.callID?.({
|
|
1013
|
+
url: i,
|
|
1014
|
+
type: e.type,
|
|
1015
|
+
subType: e.subType
|
|
1016
|
+
}) || typeof r?.match == "string" && r.match, c = btoa(
|
|
1017
|
+
a || `${i.pathname}|${e.type}${e.subType ? `|${e.subType}` : ""}`
|
|
1018
|
+
), d = r?.callName, g = typeof d == "function" ? d({
|
|
1019
|
+
url: i,
|
|
1020
|
+
type: e.type,
|
|
1021
|
+
subType: e.subType
|
|
1022
|
+
}) : d;
|
|
1023
|
+
l.calls[c] || (l.calls[c] = {
|
|
1024
|
+
name: g || typeof r?.match == "string" && r.match || i.pathname.replace(/^\//, ""),
|
|
1025
|
+
path: i.pathname.replace(/^\//, ""),
|
|
1026
|
+
lastRequestStartTime: t,
|
|
1027
|
+
requests: [],
|
|
1028
|
+
type: e.type,
|
|
1029
|
+
subType: e.subType
|
|
1030
|
+
});
|
|
1031
|
+
const f = l.calls[c];
|
|
1032
|
+
Ee(f), f.requests.length > 100 && f.requests.shift();
|
|
1033
|
+
const m = {
|
|
1034
|
+
id: ut(),
|
|
1035
|
+
duration: n,
|
|
1036
|
+
pathParams: s,
|
|
1037
|
+
isError: e.isError,
|
|
1038
|
+
metadata: e.metadata,
|
|
1039
|
+
path: e.path.replace(/^\//, ""),
|
|
1040
|
+
payload: e.payload,
|
|
1041
|
+
response: e.response,
|
|
1042
|
+
searchParams: o,
|
|
1043
|
+
status: e.status,
|
|
1044
|
+
startTime: t,
|
|
1045
|
+
type: e.type,
|
|
1046
|
+
method: e.method,
|
|
1047
|
+
subType: e.subType,
|
|
1048
|
+
code: e.status,
|
|
1049
|
+
tags: e.tags || []
|
|
1050
|
+
}, v = Le(
|
|
1051
|
+
() => r?.payloadAlias?.(m.payload, m)
|
|
1052
|
+
);
|
|
1053
|
+
v && (m.alias = v), f.requests.push(m);
|
|
1054
|
+
})
|
|
1055
|
+
);
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
const gn = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><label><input type="text" placeholder="Search"></label><div></div></div>'), hn = _`
|
|
1059
|
+
&&& {
|
|
1060
|
+
${S()};
|
|
1061
|
+
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
1062
|
+
|
|
1063
|
+
> h1 {
|
|
1064
|
+
font-size: 18px;
|
|
1065
|
+
padding-left: 12px;
|
|
1066
|
+
padding-top: 10px;
|
|
1067
|
+
font-family: ${P.decorative};
|
|
1068
|
+
color: ${h.secondary.var};
|
|
1069
|
+
padding-bottom: 16px;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
`, mn = _`
|
|
1073
|
+
&&& {
|
|
1074
|
+
${S()};
|
|
1075
|
+
flex: 1 1;
|
|
1076
|
+
overflow-y: auto;
|
|
1077
|
+
padding-bottom: 16px;
|
|
1078
|
+
}
|
|
1079
|
+
`, $n = _`
|
|
1080
|
+
&&& {
|
|
1081
|
+
${F({
|
|
1082
|
+
gap: 8
|
|
1083
|
+
})};
|
|
1084
|
+
margin: 0 10px;
|
|
1085
|
+
margin-bottom: 8px;
|
|
1086
|
+
|
|
1087
|
+
display: grid;
|
|
1088
|
+
grid-template-columns: 14px 1fr;
|
|
1089
|
+
background: ${h.white.alpha(0.05)};
|
|
1090
|
+
border-radius: 4px;
|
|
1091
|
+
--icon-size: 16px;
|
|
1092
|
+
padding: 4px 0;
|
|
1093
|
+
padding-left: 6px;
|
|
1094
|
+
|
|
1095
|
+
.icon {
|
|
1096
|
+
color: ${h.secondary.var};
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
input {
|
|
1100
|
+
border: none;
|
|
1101
|
+
background: transparent;
|
|
1102
|
+
color: ${h.white.var};
|
|
1103
|
+
|
|
1104
|
+
&:focus {
|
|
1105
|
+
outline: none;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
`, yn = () => {
|
|
1110
|
+
const e = xe(""), t = qe(() => {
|
|
1111
|
+
const l = Object.entries(B.calls), i = [];
|
|
1112
|
+
for (const [o, s] of l.reverse()) {
|
|
1113
|
+
if (e.value.trim() && !s.name.includes(e.value.toLowerCase()))
|
|
1114
|
+
continue;
|
|
1115
|
+
const r = /* @__PURE__ */ new Set();
|
|
1116
|
+
for (const a of s.requests)
|
|
1117
|
+
a.alias && r.add(a.alias);
|
|
1118
|
+
i.push({
|
|
1119
|
+
id: o,
|
|
1120
|
+
subitemsWithAlias: [...r],
|
|
1121
|
+
...s
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
return i;
|
|
1125
|
+
}, "id"), n = $(() => N.selectedCall);
|
|
1126
|
+
return (() => {
|
|
1127
|
+
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(ce, {
|
|
1129
|
+
name: "search"
|
|
1130
|
+
}), s), s.$$input = (a) => {
|
|
1131
|
+
e.value = a.currentTarget.value;
|
|
1132
|
+
}, b(r, mn), u(r, p(z, {
|
|
1133
|
+
get each() {
|
|
1134
|
+
return t();
|
|
1135
|
+
},
|
|
1136
|
+
children: (a, c) => p(an, {
|
|
1137
|
+
get index() {
|
|
1138
|
+
return c();
|
|
1139
|
+
},
|
|
1140
|
+
item: a,
|
|
1141
|
+
get currentCallId() {
|
|
1142
|
+
return n();
|
|
1143
|
+
}
|
|
1144
|
+
})
|
|
1145
|
+
})), C(() => s.value = e.value), l;
|
|
1146
|
+
})();
|
|
1147
|
+
};
|
|
1148
|
+
ae(["input"]);
|
|
1149
|
+
function et(...e) {
|
|
1150
|
+
const t = [];
|
|
1151
|
+
for (let n = 0; n < e.length; n++) {
|
|
1152
|
+
const l = e[n];
|
|
1153
|
+
if (!l)
|
|
1154
|
+
continue;
|
|
1155
|
+
const i = typeof l;
|
|
1156
|
+
if (i === "string" || i === "number")
|
|
1157
|
+
t.push(l);
|
|
1158
|
+
else if (i === "object")
|
|
1159
|
+
for (let o = 0, s = Object.keys(l); o < s.length; o++)
|
|
1160
|
+
l[s[o]] && t.push(s[o]);
|
|
1161
|
+
}
|
|
1162
|
+
return t.join(" ");
|
|
1163
|
+
}
|
|
1164
|
+
const vn = /* @__PURE__ */ y('<div><div class="content"></div></div>'), bn = /* @__PURE__ */ y("<h1></h1>"), Cn = _`
|
|
1165
|
+
&&& {
|
|
1166
|
+
${S()};
|
|
1167
|
+
|
|
1168
|
+
> h1 {
|
|
1169
|
+
font-size: 14px;
|
|
1170
|
+
color: ${h.secondary.var};
|
|
1171
|
+
letter-spacing: 0.08em;
|
|
1172
|
+
font-family: ${P.decorative};
|
|
1173
|
+
font-weight: 300;
|
|
1174
|
+
background: ${h.bgPrimary.var};
|
|
1175
|
+
z-index: 1;
|
|
1176
|
+
align-self: flex-start;
|
|
1177
|
+
position: sticky;
|
|
1178
|
+
padding-inline: 4px;
|
|
1179
|
+
border-radius: 0 0 4px 0;
|
|
1180
|
+
padding-bottom: 2px;
|
|
1181
|
+
top: 0;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
> .content {
|
|
1185
|
+
--padding-top: 0px;
|
|
1186
|
+
margin-top: calc(var(--padding-top) * -1);
|
|
1187
|
+
padding-top: calc(var(--padding-top) + 10px);
|
|
1188
|
+
padding-inline: 10px;
|
|
1189
|
+
padding-bottom: 10px;
|
|
1190
|
+
background: ${h.white.alpha(0.05)};
|
|
1191
|
+
border-radius: 4px;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
& + & {
|
|
1195
|
+
margin-top: 20px;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
`, A = (e) => (() => {
|
|
1199
|
+
const t = vn.cloneNode(!0), n = t.firstChild;
|
|
1200
|
+
return u(t, (() => {
|
|
1201
|
+
const l = $(() => !!e.title);
|
|
1202
|
+
return () => l() && (() => {
|
|
1203
|
+
const i = bn.cloneNode(!0);
|
|
1204
|
+
return u(i, () => e.title), i;
|
|
1205
|
+
})();
|
|
1206
|
+
})(), n), u(n, () => e.children), C(() => b(t, et(Cn, e.class))), t;
|
|
1207
|
+
})(), xn = `
|
|
1208
|
+
user-select: text;
|
|
1209
|
+
|
|
1210
|
+
*, *::before, *::after {
|
|
1211
|
+
user-select: text;
|
|
1212
|
+
}
|
|
1213
|
+
`;
|
|
1214
|
+
function wn(e) {
|
|
1215
|
+
return `
|
|
1216
|
+
display: -webkit-box;
|
|
1217
|
+
overflow: hidden;
|
|
1218
|
+
-webkit-line-clamp: ${e};
|
|
1219
|
+
-webkit-box-orient: vertical;
|
|
1220
|
+
`;
|
|
1221
|
+
}
|
|
1222
|
+
const _n = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Sn = /* @__PURE__ */ y('<div class="collapsed"></div>'), Nn = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), kn = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), Oe = /* @__PURE__ */ y('<div class="delimiter"></div>'), je = /* @__PURE__ */ y('<div class="childs"></div>'), An = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), Me = /* @__PURE__ */ y('<div class="child"></div>'), Pn = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Tn = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), Re = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), En = /* @__PURE__ */ y("<div></div>"), Ln = _`
|
|
1223
|
+
&&& {
|
|
1224
|
+
font-family: ${P.decorative};
|
|
1225
|
+
font-size: 13px;
|
|
1226
|
+
${xn};
|
|
1227
|
+
${S({
|
|
1228
|
+
gap: 2
|
|
1229
|
+
})};
|
|
1230
|
+
padding-left: 8px;
|
|
1231
|
+
|
|
1232
|
+
.expand-button {
|
|
1233
|
+
margin-left: -16px;
|
|
1234
|
+
width: 16px;
|
|
1235
|
+
display: inline-block;
|
|
1236
|
+
vertical-align: middle;
|
|
1237
|
+
color: ${h.white.alpha(0.5)};
|
|
1238
|
+
|
|
1239
|
+
&:not(.expanded) .icon {
|
|
1240
|
+
transform: rotate(-90deg);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
.show-all {
|
|
1245
|
+
color: ${h.white.alpha(0.5)};
|
|
1246
|
+
text-align: left;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.childs {
|
|
1250
|
+
${S({
|
|
1251
|
+
gap: 2
|
|
1252
|
+
})};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.delimiter {
|
|
1256
|
+
color: ${h.white.alpha(0.5)};
|
|
1257
|
+
margin-top: 1px;
|
|
1258
|
+
margin-bottom: 1px;
|
|
1259
|
+
|
|
1260
|
+
&.end {
|
|
1261
|
+
&::after {
|
|
1262
|
+
content: ',';
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
.childs {
|
|
1268
|
+
padding-left: 20px;
|
|
1269
|
+
grid-column: 1 / span 3;
|
|
1270
|
+
border-left: 1px solid ${h.white.alpha(0.05)};
|
|
1271
|
+
|
|
1272
|
+
> .value {
|
|
1273
|
+
&::after {
|
|
1274
|
+
content: ',';
|
|
1275
|
+
opacity: 0.5;
|
|
1276
|
+
color: ${h.white.var};
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.child {
|
|
1282
|
+
display: grid;
|
|
1283
|
+
grid-template-columns: auto auto 1fr;
|
|
1284
|
+
|
|
1285
|
+
.key {
|
|
1286
|
+
color: #a5d6ff;
|
|
1287
|
+
margin-right: 5px;
|
|
1288
|
+
${F({
|
|
1289
|
+
align: "top"
|
|
1290
|
+
})};
|
|
1291
|
+
|
|
1292
|
+
span {
|
|
1293
|
+
flex-shrink: 1;
|
|
1294
|
+
${de};
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
&.index {
|
|
1298
|
+
color: ${h.success.alpha(0.7)};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
&::after {
|
|
1302
|
+
content: ':';
|
|
1303
|
+
color: ${h.secondary.alpha(0.5)};
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.string-quotes {
|
|
1309
|
+
opacity: 0.7;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.value {
|
|
1313
|
+
word-wrap: break-word;
|
|
1314
|
+
${wn(5)};
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
[data-type='number'] {
|
|
1318
|
+
color: ${h.primary.var};
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
[data-type='boolean'] {
|
|
1322
|
+
color: ${h.warning.var};
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
[data-type='object'],
|
|
1326
|
+
[data-type='undefined'] {
|
|
1327
|
+
color: ${h.white.alpha(0.6)};
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.collapsed {
|
|
1331
|
+
color: ${h.white.alpha(0.5)};
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
`, On = new Intl.NumberFormat("en-US"), Z = 14, ve = (e) => {
|
|
1335
|
+
let [t, n] = ne(!(e.indent > 0 && e.compact)), [l, i] = ne(!e.compact);
|
|
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(L, {
|
|
1338
|
+
onClick: () => {
|
|
1339
|
+
n(() => !t());
|
|
1340
|
+
},
|
|
1341
|
+
get classList() {
|
|
1342
|
+
return {
|
|
1343
|
+
expanded: t()
|
|
1344
|
+
};
|
|
1345
|
+
},
|
|
1346
|
+
class: "expand-button",
|
|
1347
|
+
get children() {
|
|
1348
|
+
return p(ce, {
|
|
1349
|
+
name: "caret-down",
|
|
1350
|
+
size: 14
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
return [a && (() => {
|
|
1355
|
+
const g = _n.cloneNode(!0), f = g.firstChild;
|
|
1356
|
+
return g.$$click = (m) => {
|
|
1357
|
+
m.shiftKey && te(JSON.stringify(o));
|
|
1358
|
+
}, u(g, s || r ? d : null, f), u(f, () => e.key || e.index), C((m) => {
|
|
1359
|
+
const v = `${e.key ? `${e.key}
|
|
1360
|
+
` : ""}Shift + Click to copy value`, x = e.index !== void 0;
|
|
1361
|
+
return v !== m._v$ && k(g, "title", m._v$ = v), x !== m._v$2 && g.classList.toggle("index", m._v$2 = x), m;
|
|
1362
|
+
}, {
|
|
1363
|
+
_v$: void 0,
|
|
1364
|
+
_v$2: void 0
|
|
1365
|
+
}), g;
|
|
1366
|
+
})(), $((() => {
|
|
1367
|
+
const g = $(() => !!(a && c && !t()));
|
|
1368
|
+
return () => g() ? (() => {
|
|
1369
|
+
const f = Sn.cloneNode(!0);
|
|
1370
|
+
return u(f, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), f;
|
|
1371
|
+
})() : (() => s && o.length === 0 ? Nn.cloneNode(!0) : r && Object.keys(o).length === 0 ? kn.cloneNode(!0) : s ? [(() => {
|
|
1372
|
+
const f = Oe.cloneNode(!0);
|
|
1373
|
+
return re(f, "click", a ? void 0 : (m) => {
|
|
1374
|
+
m.shiftKey && te(JSON.stringify(o));
|
|
1375
|
+
}, !0), k(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, () => t() ? "[" : `[…] ${o.length} items`, null), f;
|
|
1376
|
+
})(), $((() => {
|
|
1377
|
+
const f = $(() => !!t());
|
|
1378
|
+
return () => f() && [(() => {
|
|
1379
|
+
const m = je.cloneNode(!0);
|
|
1380
|
+
return u(m, () => {
|
|
1381
|
+
let v = o;
|
|
1382
|
+
const x = v.length;
|
|
1383
|
+
return l() || (v = v.slice(0, Z)), [$(() => v.map((w, R) => (() => {
|
|
1384
|
+
const T = Me.cloneNode(!0);
|
|
1385
|
+
return u(T, p(ve, {
|
|
1386
|
+
value: w,
|
|
1387
|
+
get indent() {
|
|
1388
|
+
return e.indent + 1;
|
|
1389
|
+
},
|
|
1390
|
+
index: R,
|
|
1391
|
+
get compact() {
|
|
1392
|
+
return e.compact;
|
|
1393
|
+
}
|
|
1394
|
+
})), T;
|
|
1395
|
+
})())), $((() => {
|
|
1396
|
+
const w = $(() => !l() && x > Z);
|
|
1397
|
+
return () => w() && p(L, {
|
|
1398
|
+
onClick: () => {
|
|
1399
|
+
i(() => !0);
|
|
1400
|
+
},
|
|
1401
|
+
class: "show-all",
|
|
1402
|
+
get children() {
|
|
1403
|
+
return ["…show all (+", x - Z, ")"];
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
})())];
|
|
1407
|
+
}), m;
|
|
1408
|
+
})(), An.cloneNode(!0)];
|
|
1409
|
+
})())] : r ? [(() => {
|
|
1410
|
+
const f = Oe.cloneNode(!0);
|
|
1411
|
+
return re(f, "click", a ? void 0 : (m) => {
|
|
1412
|
+
m.shiftKey && te(JSON.stringify(o));
|
|
1413
|
+
}, !0), k(f, "title", a ? void 0 : "Shift + Click to copy value"), u(f, !a && d, null), u(f, (() => {
|
|
1414
|
+
const m = $(() => !!t());
|
|
1415
|
+
return () => m() ? "{" : `{…} ${Object.keys(o).length} properties`;
|
|
1416
|
+
})(), null), f;
|
|
1417
|
+
})(), $((() => {
|
|
1418
|
+
const f = $(() => !!t());
|
|
1419
|
+
return () => f() && [(() => {
|
|
1420
|
+
const m = je.cloneNode(!0);
|
|
1421
|
+
return u(m, () => {
|
|
1422
|
+
let v = Object.entries(o);
|
|
1423
|
+
const x = v.length;
|
|
1424
|
+
return l() || (v = v.slice(0, Z)), [$(() => v.map(([w, R]) => (() => {
|
|
1425
|
+
const T = Me.cloneNode(!0);
|
|
1426
|
+
return u(T, p(ve, {
|
|
1427
|
+
value: R,
|
|
1428
|
+
key: w,
|
|
1429
|
+
get indent() {
|
|
1430
|
+
return e.indent + 1;
|
|
1431
|
+
},
|
|
1432
|
+
get compact() {
|
|
1433
|
+
return e.compact;
|
|
1434
|
+
}
|
|
1435
|
+
})), T;
|
|
1436
|
+
})())), $((() => {
|
|
1437
|
+
const w = $(() => !l() && x > Z);
|
|
1438
|
+
return () => w() && p(L, {
|
|
1439
|
+
onClick: () => {
|
|
1440
|
+
i(() => !0);
|
|
1441
|
+
},
|
|
1442
|
+
class: "show-all",
|
|
1443
|
+
get children() {
|
|
1444
|
+
return ["…show all (+", x - Z, ")"];
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
})())];
|
|
1448
|
+
}), m;
|
|
1449
|
+
})(), Pn.cloneNode(!0)];
|
|
1450
|
+
})())] : (() => {
|
|
1451
|
+
const f = Tn.cloneNode(!0);
|
|
1452
|
+
return f.$$click = (m) => {
|
|
1453
|
+
m.shiftKey && te(String(o));
|
|
1454
|
+
}, k(f, "data-type", typeof o), u(f, typeof o == "string" && Re.cloneNode(!0), null), u(f, () => typeof o == "number" ? On.format(o) : String(o), null), u(f, typeof o == "string" && Re.cloneNode(!0), null), f;
|
|
1455
|
+
})())();
|
|
1456
|
+
})())];
|
|
1457
|
+
});
|
|
1458
|
+
}, j = (e) => (() => {
|
|
1459
|
+
const t = En.cloneNode(!0);
|
|
1460
|
+
return b(t, Ln), u(t, p(ve, {
|
|
1461
|
+
get value() {
|
|
1462
|
+
return e.value;
|
|
1463
|
+
},
|
|
1464
|
+
indent: 0,
|
|
1465
|
+
get compact() {
|
|
1466
|
+
return !!e.compact;
|
|
1467
|
+
}
|
|
1468
|
+
})), t;
|
|
1469
|
+
})();
|
|
1470
|
+
async function te(e) {
|
|
1471
|
+
await navigator.clipboard.writeText(e), alert("Copied to clipboard");
|
|
1472
|
+
}
|
|
1473
|
+
ae(["click"]);
|
|
1474
|
+
let jn = 0;
|
|
1475
|
+
function Mn() {
|
|
1476
|
+
return jn++;
|
|
1477
|
+
}
|
|
1478
|
+
const Rn = /* @__PURE__ */ y("<label></label>"), Dn = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), In = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), zn = /* @__PURE__ */ y("<option></option>"), Fn = _`
|
|
1479
|
+
&&& {
|
|
1480
|
+
${S({
|
|
1481
|
+
align: "left"
|
|
1482
|
+
})};
|
|
1483
|
+
width: 100%;
|
|
1484
|
+
position: relative;
|
|
1485
|
+
|
|
1486
|
+
label {
|
|
1487
|
+
color: ${h.primary.var};
|
|
1488
|
+
z-index: 1;
|
|
1489
|
+
font-size: 13px;
|
|
1490
|
+
letter-spacing: 0.08em;
|
|
1491
|
+
margin-left: 6px;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.inputContainer {
|
|
1495
|
+
background: ${h.white.alpha(0.05)};
|
|
1496
|
+
border-radius: 4px;
|
|
1497
|
+
margin-top: 0px;
|
|
1498
|
+
position: relative;
|
|
1499
|
+
width: 100%;
|
|
1500
|
+
overflow: hidden;
|
|
1501
|
+
${S({
|
|
1502
|
+
align: "left"
|
|
1503
|
+
})};
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
select {
|
|
1507
|
+
height: 32px;
|
|
1508
|
+
border: 0;
|
|
1509
|
+
width: 100%;
|
|
1510
|
+
padding-top: 2px;
|
|
1511
|
+
padding-left: 10px;
|
|
1512
|
+
font-size: 14px;
|
|
1513
|
+
background: transparent;
|
|
1514
|
+
color: ${h.white.var};
|
|
1515
|
+
|
|
1516
|
+
&:focus {
|
|
1517
|
+
outline: 0;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
option {
|
|
1521
|
+
font-size: 18px;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.label-background {
|
|
1526
|
+
position: absolute;
|
|
1527
|
+
left: 0;
|
|
1528
|
+
right: 8px;
|
|
1529
|
+
height: 17px;
|
|
1530
|
+
background: ${h.white.var};
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
`, Bn = (e) => {
|
|
1534
|
+
const t = `input${Mn()}`;
|
|
1535
|
+
return (() => {
|
|
1536
|
+
const n = Dn.cloneNode(!0), l = n.firstChild, i = l.firstChild;
|
|
1537
|
+
return u(n, p(se, {
|
|
1538
|
+
get when() {
|
|
1539
|
+
return e.label;
|
|
1540
|
+
},
|
|
1541
|
+
get children() {
|
|
1542
|
+
const o = Rn.cloneNode(!0);
|
|
1543
|
+
return k(o, "for", t), u(o, () => e.label), o;
|
|
1544
|
+
}
|
|
1545
|
+
}), l), i.addEventListener("change", (o) => {
|
|
1546
|
+
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
1547
|
+
}), k(i, "id", t), u(i, (() => {
|
|
1548
|
+
const o = $(() => !e.value);
|
|
1549
|
+
return () => o() && In.cloneNode(!0);
|
|
1550
|
+
})(), null), u(i, p(z, {
|
|
1551
|
+
get each() {
|
|
1552
|
+
return e.options;
|
|
1553
|
+
},
|
|
1554
|
+
children: (o) => (() => {
|
|
1555
|
+
const s = zn.cloneNode(!0);
|
|
1556
|
+
return u(s, () => o.label), C(() => s.value = o.value), s;
|
|
1557
|
+
})()
|
|
1558
|
+
}), null), C(() => b(n, et(Fn, e.class))), C(() => i.value = e.value ?? ""), n;
|
|
1559
|
+
})();
|
|
1560
|
+
};
|
|
1561
|
+
function tt(e) {
|
|
1562
|
+
const t = e.alias || e.payload || e.searchParams;
|
|
1563
|
+
return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
|
|
1564
|
+
}
|
|
1565
|
+
function nt(e) {
|
|
1566
|
+
return e ? e.slice().reverse() : [];
|
|
1567
|
+
}
|
|
1568
|
+
function De(e, t) {
|
|
1569
|
+
return Ke(e, t) ? "no changes" : pt.diffJson(
|
|
1570
|
+
typeof e == "object" && e !== null ? e : String(e),
|
|
1571
|
+
typeof t == "object" && t !== null ? t : String(t)
|
|
1572
|
+
);
|
|
1573
|
+
}
|
|
1574
|
+
function Hn(e, t) {
|
|
1575
|
+
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
1576
|
+
}
|
|
1577
|
+
const Vn = /* @__PURE__ */ y('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), ge = /* @__PURE__ */ y("<div></div>"), Ie = /* @__PURE__ */ y("<div>No changes</div>"), ze = /* @__PURE__ */ y('<div class="line"></div>'), Zn = _`
|
|
1578
|
+
&&& {
|
|
1579
|
+
${S({
|
|
1580
|
+
gap: 14
|
|
1581
|
+
})};
|
|
1582
|
+
|
|
1583
|
+
.changes-count {
|
|
1584
|
+
color: ${h.white.alpha(0.5)};
|
|
1585
|
+
font-size: 14px;
|
|
1586
|
+
|
|
1587
|
+
.additions {
|
|
1588
|
+
color: ${h.success.var};
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
.removals {
|
|
1592
|
+
color: ${h.error.var};
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
`, Fe = _`
|
|
1597
|
+
&&& {
|
|
1598
|
+
${S({
|
|
1599
|
+
gap: 0
|
|
1600
|
+
})};
|
|
1601
|
+
font-size: 14px;
|
|
1602
|
+
font-family: ${P.decorative};
|
|
1603
|
+
white-space: pre;
|
|
1604
|
+
overflow-x: auto;
|
|
1605
|
+
|
|
1606
|
+
.line {
|
|
1607
|
+
opacity: 0.7;
|
|
1608
|
+
padding-left: 10px;
|
|
1609
|
+
|
|
1610
|
+
&.added {
|
|
1611
|
+
opacity: 1;
|
|
1612
|
+
color: ${h.success.var};
|
|
1613
|
+
background: ${h.success.alpha(0.1)};
|
|
1614
|
+
|
|
1615
|
+
&::before {
|
|
1616
|
+
content: '+';
|
|
1617
|
+
position: absolute;
|
|
1618
|
+
left: 0;
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
&.removed {
|
|
1623
|
+
opacity: 1;
|
|
1624
|
+
color: ${h.error.var};
|
|
1625
|
+
background: ${h.error.alpha(0.1)};
|
|
1626
|
+
|
|
1627
|
+
&::before {
|
|
1628
|
+
content: '-';
|
|
1629
|
+
position: absolute;
|
|
1630
|
+
left: 0;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
`, Kn = () => {
|
|
1636
|
+
const e = $(() => {
|
|
1637
|
+
const {
|
|
1638
|
+
selectedCall: r
|
|
1639
|
+
} = N;
|
|
1640
|
+
return r ? B.calls[r] : Object.values(B.calls).at(-1);
|
|
1641
|
+
}), t = qe(() => {
|
|
1642
|
+
const r = e();
|
|
1643
|
+
return r ? nt(r.requests).map((a) => ({
|
|
1644
|
+
value: a.id,
|
|
1645
|
+
label: `${Q(a.startTime).format("HH:mm:ss")} | ${Hn(tt(a), 50)}`
|
|
1646
|
+
})).filter((a) => a.value !== N.selectedRequest) : [];
|
|
1647
|
+
}, "value"), n = xe(null), l = $(() => N.selectedRequest ? e()?.requests.find((r) => r.id === N.selectedRequest) : null), i = $(() => n.value ? e()?.requests.find((r) => r.id === n.value) : null), o = $(() => {
|
|
1648
|
+
if (!n.value || !N.selectedRequest)
|
|
1649
|
+
return [];
|
|
1650
|
+
const r = l()?.response, a = i()?.response, c = De(a, r);
|
|
1651
|
+
return c === "no changes" ? [] : c;
|
|
1652
|
+
}), s = $(() => {
|
|
1653
|
+
if (!n.value || !N.selectedRequest)
|
|
1654
|
+
return [];
|
|
1655
|
+
const r = Be(l()), a = Be(i()), c = De(a, r);
|
|
1656
|
+
return c === "no changes" ? [] : c;
|
|
1657
|
+
});
|
|
1658
|
+
return (() => {
|
|
1659
|
+
const r = ge.cloneNode(!0);
|
|
1660
|
+
return b(r, Zn), u(r, p(Bn, {
|
|
1661
|
+
get value() {
|
|
1662
|
+
return n.value;
|
|
1663
|
+
},
|
|
1664
|
+
label: "Select a request to compare with",
|
|
1665
|
+
get options() {
|
|
1666
|
+
return t();
|
|
1667
|
+
},
|
|
1668
|
+
onChange: (a) => {
|
|
1669
|
+
n.value = a;
|
|
1670
|
+
}
|
|
1671
|
+
}), null), u(r, p(se, {
|
|
1672
|
+
get when() {
|
|
1673
|
+
return n.value;
|
|
1674
|
+
},
|
|
1675
|
+
get children() {
|
|
1676
|
+
return [(() => {
|
|
1677
|
+
const a = Vn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling, m = f.nextSibling, v = m.firstChild, x = v.nextSibling;
|
|
1678
|
+
return u(g, () => o().filter((w) => w.added).length), u(x, () => o().filter((w) => w.removed).length), a;
|
|
1679
|
+
})(), p(A, {
|
|
1680
|
+
get title() {
|
|
1681
|
+
return $(() => !!l()?.payload)() ? "Payload Diff" : l()?.searchParams ? "Search Params Diff" : "Path Params Diff";
|
|
1682
|
+
},
|
|
1683
|
+
get children() {
|
|
1684
|
+
const a = ge.cloneNode(!0);
|
|
1685
|
+
return b(a, Fe), u(a, p(z, {
|
|
1686
|
+
get each() {
|
|
1687
|
+
return s();
|
|
1688
|
+
},
|
|
1689
|
+
get fallback() {
|
|
1690
|
+
return Ie.cloneNode(!0);
|
|
1691
|
+
},
|
|
1692
|
+
children: (c) => (() => {
|
|
1693
|
+
const d = ze.cloneNode(!0);
|
|
1694
|
+
return u(d, () => c.value), C((g) => {
|
|
1695
|
+
const f = !!c.added, m = !!c.removed;
|
|
1696
|
+
return f !== g._v$ && d.classList.toggle("added", g._v$ = f), m !== g._v$2 && d.classList.toggle("removed", g._v$2 = m), g;
|
|
1697
|
+
}, {
|
|
1698
|
+
_v$: void 0,
|
|
1699
|
+
_v$2: void 0
|
|
1700
|
+
}), d;
|
|
1701
|
+
})()
|
|
1702
|
+
})), a;
|
|
1703
|
+
}
|
|
1704
|
+
}), p(A, {
|
|
1705
|
+
title: "Response Diff",
|
|
1706
|
+
get children() {
|
|
1707
|
+
const a = ge.cloneNode(!0);
|
|
1708
|
+
return b(a, Fe), u(a, p(z, {
|
|
1709
|
+
get each() {
|
|
1710
|
+
return o();
|
|
1711
|
+
},
|
|
1712
|
+
get fallback() {
|
|
1713
|
+
return Ie.cloneNode(!0);
|
|
1714
|
+
},
|
|
1715
|
+
children: (c) => (() => {
|
|
1716
|
+
const d = ze.cloneNode(!0);
|
|
1717
|
+
return u(d, () => c.value), C((g) => {
|
|
1718
|
+
const f = !!c.added, m = !!c.removed;
|
|
1719
|
+
return f !== g._v$3 && d.classList.toggle("added", g._v$3 = f), m !== g._v$4 && d.classList.toggle("removed", g._v$4 = m), g;
|
|
1720
|
+
}, {
|
|
1721
|
+
_v$3: void 0,
|
|
1722
|
+
_v$4: void 0
|
|
1723
|
+
}), d;
|
|
1724
|
+
})()
|
|
1725
|
+
})), a;
|
|
1726
|
+
}
|
|
1727
|
+
})];
|
|
1728
|
+
}
|
|
1729
|
+
}), null), r;
|
|
1730
|
+
})();
|
|
1731
|
+
};
|
|
1732
|
+
function Be(e) {
|
|
1733
|
+
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
1734
|
+
}
|
|
1735
|
+
const He = /* @__PURE__ */ y("<div></div>"), Un = /* @__PURE__ */ y("<h1></h1>"), Wn = /* @__PURE__ */ y('<div class="tags"></div>'), Jn = /* @__PURE__ */ y('<div class="details"></div>'), Xn = /* @__PURE__ */ y("<h2></h2>"), Gn = /* @__PURE__ */ y('<div class="method"></div>'), Yn = /* @__PURE__ */ y('<div class="code"></div>'), Qn = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), qn = /* @__PURE__ */ y('<div class="tag"></div>'), er = _`
|
|
1736
|
+
&&& {
|
|
1737
|
+
${S()};
|
|
1738
|
+
padding-left: 10px;
|
|
1739
|
+
|
|
1740
|
+
> h1 {
|
|
1741
|
+
margin-top: 12px;
|
|
1742
|
+
font-family: ${P.decorative};
|
|
1743
|
+
${de};
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
> h2 {
|
|
1747
|
+
margin-top: 4px;
|
|
1748
|
+
font-family: ${P.decorative};
|
|
1749
|
+
font-size: 12px;
|
|
1750
|
+
opacity: 0.5;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
.tags {
|
|
1754
|
+
${F({
|
|
1755
|
+
gap: 8
|
|
1756
|
+
})};
|
|
1757
|
+
margin-top: 8px;
|
|
1758
|
+
|
|
1759
|
+
.method {
|
|
1760
|
+
color: ${h.primary.var};
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
.code {
|
|
1764
|
+
color: ${h.success.var};
|
|
1765
|
+
|
|
1766
|
+
&.error {
|
|
1767
|
+
color: ${h.error.var};
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
.tag {
|
|
1772
|
+
font-size: 11px;
|
|
1773
|
+
color: ${h.warning.var};
|
|
1774
|
+
padding: 1px 3px;
|
|
1775
|
+
border-radius: 4px;
|
|
1776
|
+
border: 1px solid ${h.warning.alpha(0.6)};
|
|
1777
|
+
|
|
1778
|
+
&.error {
|
|
1779
|
+
color: ${h.error.var};
|
|
1780
|
+
font-weight: 600;
|
|
1781
|
+
border-color: ${h.error.alpha(0.6)};
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
> .details {
|
|
1787
|
+
margin-top: 14px;
|
|
1788
|
+
padding-right: 10px;
|
|
1789
|
+
${S({
|
|
1790
|
+
gap: 8
|
|
1791
|
+
})};
|
|
1792
|
+
flex: 1 1;
|
|
1793
|
+
overflow-y: auto;
|
|
1794
|
+
padding-bottom: 20px;
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
`, tr = _`
|
|
1798
|
+
&&& {
|
|
1799
|
+
${F({
|
|
1800
|
+
gap: 20
|
|
1801
|
+
})};
|
|
1802
|
+
color: ${h.secondary.var};
|
|
1803
|
+
margin-top: 20px;
|
|
1804
|
+
|
|
1805
|
+
> button {
|
|
1806
|
+
opacity: 0.74;
|
|
1807
|
+
padding-bottom: 2px;
|
|
1808
|
+
|
|
1809
|
+
&.selected {
|
|
1810
|
+
border-bottom: 2px solid currentColor;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
&.selected,
|
|
1814
|
+
&:hover {
|
|
1815
|
+
opacity: 1;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
`, nr = () => {
|
|
1820
|
+
const e = $(() => N.selectedCall), t = $(() => N.selectedRequest), n = $(() => N.selectedTab || "summary"), l = $(() => {
|
|
1821
|
+
let o;
|
|
1822
|
+
e() ? o = B.calls[e()] : o = Object.values(B.calls).at(-1);
|
|
1823
|
+
const s = t() && o?.requests.find((r) => r.id === t()) || o?.requests.at(-1);
|
|
1824
|
+
return s && o ? {
|
|
1825
|
+
...s,
|
|
1826
|
+
callName: o.name,
|
|
1827
|
+
callPath: o.path
|
|
1828
|
+
} : null;
|
|
1829
|
+
});
|
|
1830
|
+
function i(o, s) {
|
|
1831
|
+
return p(L, {
|
|
1832
|
+
get classList() {
|
|
1833
|
+
return {
|
|
1834
|
+
selected: n() === o
|
|
1835
|
+
};
|
|
1836
|
+
},
|
|
1837
|
+
onClick: () => {
|
|
1838
|
+
ie("selectedTab", o);
|
|
1839
|
+
},
|
|
1840
|
+
children: s
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1843
|
+
return (() => {
|
|
1844
|
+
const o = He.cloneNode(!0);
|
|
1845
|
+
return b(o, er), u(o, p(se, {
|
|
1846
|
+
get when() {
|
|
1847
|
+
return l();
|
|
1848
|
+
},
|
|
1849
|
+
keyed: !0,
|
|
1850
|
+
children: (s) => [(() => {
|
|
1851
|
+
const r = Un.cloneNode(!0);
|
|
1852
|
+
return u(r, () => s.callName, null), u(r, () => s.alias && ` | ${s.alias}`, null), r;
|
|
1853
|
+
})(), $((() => {
|
|
1854
|
+
const r = $(() => s.callPath !== s.callName);
|
|
1855
|
+
return () => r() && (() => {
|
|
1856
|
+
const a = Xn.cloneNode(!0);
|
|
1857
|
+
return u(a, () => s.callPath), a;
|
|
1858
|
+
})();
|
|
1859
|
+
})()), (() => {
|
|
1860
|
+
const r = Wn.cloneNode(!0);
|
|
1861
|
+
return u(r, (() => {
|
|
1862
|
+
const a = $(() => !!s.method);
|
|
1863
|
+
return () => a() && (() => {
|
|
1864
|
+
const c = Gn.cloneNode(!0);
|
|
1865
|
+
return u(c, () => s.method), c;
|
|
1866
|
+
})();
|
|
1867
|
+
})(), null), u(r, (() => {
|
|
1868
|
+
const a = $(() => !!s.code);
|
|
1869
|
+
return () => a() && (() => {
|
|
1870
|
+
const c = Yn.cloneNode(!0);
|
|
1871
|
+
return u(c, () => s.code), C(() => c.classList.toggle("error", s.code >= 400)), c;
|
|
1872
|
+
})();
|
|
1873
|
+
})(), null), u(r, (() => {
|
|
1874
|
+
const a = $(() => !!s.isError);
|
|
1875
|
+
return () => a() && Qn.cloneNode(!0);
|
|
1876
|
+
})(), null), u(r, p(z, {
|
|
1877
|
+
get each() {
|
|
1878
|
+
return s.tags;
|
|
1879
|
+
},
|
|
1880
|
+
children: (a) => (() => {
|
|
1881
|
+
const c = qn.cloneNode(!0);
|
|
1882
|
+
return u(c, a), c;
|
|
1883
|
+
})()
|
|
1884
|
+
}), null), r;
|
|
1885
|
+
})(), (() => {
|
|
1886
|
+
const r = He.cloneNode(!0);
|
|
1887
|
+
return b(r, tr), u(r, () => i("summary", "Summary"), null), u(r, (() => {
|
|
1888
|
+
const a = $(() => !!s.payload);
|
|
1889
|
+
return () => a() && i("payload", "Payload");
|
|
1890
|
+
})(), null), u(r, (() => {
|
|
1891
|
+
const a = $(() => !!s.searchParams);
|
|
1892
|
+
return () => a() && i("urlParams", "URL Params");
|
|
1893
|
+
})(), null), u(r, () => i("response", "Response"), null), u(r, () => i("diff", "Diff"), null), r;
|
|
1894
|
+
})(), (() => {
|
|
1895
|
+
const r = Jn.cloneNode(!0);
|
|
1896
|
+
return u(r, p(dt, {
|
|
1897
|
+
get children() {
|
|
1898
|
+
return [p(G, {
|
|
1899
|
+
get when() {
|
|
1900
|
+
return n() === "summary";
|
|
1901
|
+
},
|
|
1902
|
+
get children() {
|
|
1903
|
+
return [$(() => $(() => !!s.payload)() && p(A, {
|
|
1904
|
+
title: "Payload",
|
|
1905
|
+
get children() {
|
|
1906
|
+
return p(j, {
|
|
1907
|
+
get value() {
|
|
1908
|
+
return s.payload;
|
|
1909
|
+
},
|
|
1910
|
+
compact: !0
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1913
|
+
})), $(() => $(() => !!s.searchParams)() && p(A, {
|
|
1914
|
+
title: "URL Params",
|
|
1915
|
+
get children() {
|
|
1916
|
+
return p(j, {
|
|
1917
|
+
get value() {
|
|
1918
|
+
return s.searchParams;
|
|
1919
|
+
},
|
|
1920
|
+
compact: !0
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
})), $(() => $(() => !!s.response)() && p(A, {
|
|
1924
|
+
title: "Response",
|
|
1925
|
+
get children() {
|
|
1926
|
+
return p(j, {
|
|
1927
|
+
get value() {
|
|
1928
|
+
return s.response;
|
|
1929
|
+
},
|
|
1930
|
+
compact: !0
|
|
1931
|
+
});
|
|
1932
|
+
}
|
|
1933
|
+
})), p(A, {
|
|
1934
|
+
title: "Stats",
|
|
1935
|
+
get children() {
|
|
1936
|
+
return p(j, {
|
|
1937
|
+
get value() {
|
|
1938
|
+
return {
|
|
1939
|
+
"Duration (ms)": Math.round(s.duration),
|
|
1940
|
+
"Start Time": `${Q(s.startTime).format("HH:mm:ss")} (${Q(s.startTime).fromNow()})`
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
}), p(A, {
|
|
1946
|
+
title: "Metadata",
|
|
1947
|
+
get children() {
|
|
1948
|
+
return p(j, {
|
|
1949
|
+
get value() {
|
|
1950
|
+
return s.metadata;
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
})];
|
|
1955
|
+
}
|
|
1956
|
+
}), p(G, {
|
|
1957
|
+
get when() {
|
|
1958
|
+
return n() === "payload";
|
|
1959
|
+
},
|
|
1960
|
+
get children() {
|
|
1961
|
+
return p(A, {
|
|
1962
|
+
title: null,
|
|
1963
|
+
get children() {
|
|
1964
|
+
return p(j, {
|
|
1965
|
+
get value() {
|
|
1966
|
+
return s.payload;
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
}), p(G, {
|
|
1973
|
+
get when() {
|
|
1974
|
+
return n() === "response";
|
|
1975
|
+
},
|
|
1976
|
+
get children() {
|
|
1977
|
+
return p(A, {
|
|
1978
|
+
title: null,
|
|
1979
|
+
get children() {
|
|
1980
|
+
return p(j, {
|
|
1981
|
+
get value() {
|
|
1982
|
+
return s.response;
|
|
1983
|
+
}
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
}), p(G, {
|
|
1989
|
+
get when() {
|
|
1990
|
+
return n() === "urlParams";
|
|
1991
|
+
},
|
|
1992
|
+
get children() {
|
|
1993
|
+
return p(A, {
|
|
1994
|
+
title: null,
|
|
1995
|
+
get children() {
|
|
1996
|
+
return p(j, {
|
|
1997
|
+
get value() {
|
|
1998
|
+
return s.searchParams;
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
}), p(G, {
|
|
2005
|
+
get when() {
|
|
2006
|
+
return n() === "diff";
|
|
2007
|
+
},
|
|
2008
|
+
get children() {
|
|
2009
|
+
return p(Kn, {});
|
|
2010
|
+
}
|
|
2011
|
+
})];
|
|
2012
|
+
}
|
|
2013
|
+
})), r;
|
|
2014
|
+
})()]
|
|
2015
|
+
})), o;
|
|
2016
|
+
})();
|
|
2017
|
+
}, rr = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), or = /* @__PURE__ */ y("<div>no requests found</div>"), lr = /* @__PURE__ */ y('<span class="start-time"></span>'), ir = /* @__PURE__ */ y("<div></div>"), sr = /* @__PURE__ */ y('<span class="separator">|</span>'), ar = /* @__PURE__ */ y('<span class="payload"></span>'), cr = _`
|
|
2018
|
+
&&& {
|
|
2019
|
+
${S()};
|
|
2020
|
+
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
2021
|
+
|
|
2022
|
+
> h1 {
|
|
2023
|
+
font-size: 16px;
|
|
2024
|
+
padding-left: 12px;
|
|
2025
|
+
padding-top: 10px;
|
|
2026
|
+
font-family: ${P.decorative};
|
|
2027
|
+
color: ${h.secondary.var};
|
|
2028
|
+
padding-bottom: 16px;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
`, dr = _`
|
|
2032
|
+
&&& {
|
|
2033
|
+
${S()};
|
|
2034
|
+
flex: 1 1;
|
|
2035
|
+
overflow-y: auto;
|
|
2036
|
+
}
|
|
2037
|
+
`, ur = _`
|
|
2038
|
+
&&& {
|
|
2039
|
+
font-size: 13px;
|
|
2040
|
+
${S()};
|
|
2041
|
+
|
|
2042
|
+
&.error {
|
|
2043
|
+
color: ${h.error.var};
|
|
2044
|
+
font-weight: 600;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
> button {
|
|
2048
|
+
padding: 4px 12px;
|
|
2049
|
+
${F({
|
|
2050
|
+
gap: 8
|
|
2051
|
+
})};
|
|
2052
|
+
opacity: 0.8;
|
|
2053
|
+
|
|
2054
|
+
&.selected {
|
|
2055
|
+
opacity: 1;
|
|
2056
|
+
background-color: ${h.secondary.alpha(0.16)};
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
> .start-time {
|
|
2060
|
+
font-family: ${P.decorative};
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
> .separator {
|
|
2064
|
+
opacity: 0.5;
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
> .payload {
|
|
2068
|
+
${de};
|
|
2069
|
+
flex-shrink: 1;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
`, fr = _`
|
|
2074
|
+
&&& {
|
|
2075
|
+
opacity: 0.4;
|
|
2076
|
+
font-size: 14px;
|
|
2077
|
+
padding: 12px;
|
|
2078
|
+
padding-top: 0;
|
|
2079
|
+
}
|
|
2080
|
+
`, pr = () => {
|
|
2081
|
+
const e = $(() => {
|
|
2082
|
+
const i = N.selectedCall;
|
|
2083
|
+
return i ? i ? B.calls[i] : null : Object.values(B.calls).at(-1) || null;
|
|
2084
|
+
}), t = $(() => {
|
|
2085
|
+
const i = nt(e()?.requests);
|
|
2086
|
+
return i.length === 0 ? null : i;
|
|
2087
|
+
}), n = $(() => N.selectedSubitem ? t()?.filter((i) => i.alias === N.selectedSubitem) : t()), l = $(() => N.selectedRequest || n()?.[0]?.id);
|
|
2088
|
+
return (() => {
|
|
2089
|
+
const i = rr.cloneNode(!0), o = i.firstChild, s = o.nextSibling;
|
|
2090
|
+
return b(i, cr), b(s, dr), u(s, p(z, {
|
|
2091
|
+
get each() {
|
|
2092
|
+
return n();
|
|
2093
|
+
},
|
|
2094
|
+
get fallback() {
|
|
2095
|
+
return (() => {
|
|
2096
|
+
const r = or.cloneNode(!0);
|
|
2097
|
+
return b(r, fr), r;
|
|
2098
|
+
})();
|
|
2099
|
+
},
|
|
2100
|
+
children: (r) => {
|
|
2101
|
+
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g = tt(r);
|
|
2102
|
+
return (() => {
|
|
2103
|
+
const f = ir.cloneNode(!0);
|
|
2104
|
+
return b(f, ur), u(f, p(L, {
|
|
2105
|
+
onClick: () => {
|
|
2106
|
+
ie("selectedRequest", r.id);
|
|
2107
|
+
},
|
|
2108
|
+
get classList() {
|
|
2109
|
+
return {
|
|
2110
|
+
selected: r.id === l()
|
|
2111
|
+
};
|
|
2112
|
+
},
|
|
2113
|
+
get children() {
|
|
2114
|
+
return [(() => {
|
|
2115
|
+
const m = lr.cloneNode(!0);
|
|
2116
|
+
return k(m, "title", d), u(m, c), m;
|
|
2117
|
+
})(), $(() => !!g && [sr.cloneNode(!0), (() => {
|
|
2118
|
+
const m = ar.cloneNode(!0);
|
|
2119
|
+
return k(m, "title", g), u(m, g), m;
|
|
2120
|
+
})()])];
|
|
2121
|
+
}
|
|
2122
|
+
})), C(() => f.classList.toggle("error", !!r.isError)), f;
|
|
2123
|
+
})();
|
|
2124
|
+
}
|
|
2125
|
+
})), i;
|
|
2126
|
+
})();
|
|
2127
|
+
}, gr = /* @__PURE__ */ y("<div></div>"), hr = _`
|
|
2128
|
+
&&& {
|
|
2129
|
+
display: grid;
|
|
2130
|
+
grid-template-columns: 1.5fr 1fr 3fr;
|
|
2131
|
+
}
|
|
2132
|
+
`, mr = () => (() => {
|
|
2133
|
+
const e = gr.cloneNode(!0);
|
|
2134
|
+
return b(e, hr), u(e, p(yn, {}), null), u(e, p(pr, {}), null), u(e, p(nr, {}), null), e;
|
|
2135
|
+
})(), $r = `
|
|
2136
|
+
font-family: ${P.primary};
|
|
2137
|
+
color: ${h.textPrimary.var};
|
|
2138
|
+
|
|
2139
|
+
* {
|
|
2140
|
+
user-select: none;
|
|
2141
|
+
position: relative;
|
|
2142
|
+
-webkit-tap-highlight-color: transparent;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
input,
|
|
2146
|
+
textarea,
|
|
2147
|
+
p,
|
|
2148
|
+
pre,
|
|
2149
|
+
h1,
|
|
2150
|
+
h2 {
|
|
2151
|
+
user-select: text;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
:is(input, textarea, p, pre, h1, h2) * {
|
|
2155
|
+
user-select: text;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
a {
|
|
2159
|
+
--anchor-color: inherit;
|
|
2160
|
+
color: var(---anchor-color);
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
a:visited {
|
|
2164
|
+
color: var(---anchor-color);
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
button {
|
|
2168
|
+
color: inherit;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
p,
|
|
2172
|
+
h1,
|
|
2173
|
+
h2,
|
|
2174
|
+
h3 {
|
|
2175
|
+
font-size: inherit;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
h1 {
|
|
2179
|
+
font-weight: normal;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
h2,
|
|
2183
|
+
h3 {
|
|
2184
|
+
font-weight: normal;
|
|
2185
|
+
}
|
|
2186
|
+
`, yr = `
|
|
2187
|
+
display: flex;
|
|
2188
|
+
align-items: center;
|
|
2189
|
+
justify-content: center;
|
|
2190
|
+
`, vr = `
|
|
2191
|
+
*,
|
|
2192
|
+
*::before,
|
|
2193
|
+
*::after {
|
|
2194
|
+
box-sizing: border-box;
|
|
2195
|
+
margin: 0;
|
|
2196
|
+
padding: 0;
|
|
2197
|
+
min-height: 0;
|
|
2198
|
+
min-width: 0;
|
|
2199
|
+
flex-shrink: 0;
|
|
2200
|
+
|
|
2201
|
+
-webkit-font-smoothing: antialiased;
|
|
2202
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
/* Remove default padding */
|
|
2206
|
+
ul[class],
|
|
2207
|
+
ol[class] {
|
|
2208
|
+
padding: 0;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
/* Remove default margin */
|
|
2212
|
+
body,
|
|
2213
|
+
h1,
|
|
2214
|
+
h2,
|
|
2215
|
+
h3,
|
|
2216
|
+
h4,
|
|
2217
|
+
p,
|
|
2218
|
+
ul[class],
|
|
2219
|
+
ol[class],
|
|
2220
|
+
li,
|
|
2221
|
+
figure,
|
|
2222
|
+
figcaption,
|
|
2223
|
+
blockquote,
|
|
2224
|
+
dl,
|
|
2225
|
+
dd {
|
|
2226
|
+
margin: 0;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
/* Set core body defaults */
|
|
2230
|
+
body {
|
|
2231
|
+
scroll-behavior: smooth;
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
/* Natural flow and rhythm in articles by default */
|
|
2235
|
+
article > * + * {
|
|
2236
|
+
margin-top: 1em;
|
|
2237
|
+
}
|
|
2238
|
+
|
|
2239
|
+
/* Inherit fonts for inputs and buttons */
|
|
2240
|
+
input,
|
|
2241
|
+
button,
|
|
2242
|
+
textarea,
|
|
2243
|
+
select {
|
|
2244
|
+
font: inherit;
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
a {
|
|
2248
|
+
color: inherit;
|
|
2249
|
+
text-decoration: inherit;
|
|
2250
|
+
cursor: pointer;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
a:visited {
|
|
2254
|
+
color: inherit;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
button {
|
|
2258
|
+
background: transparent;
|
|
2259
|
+
border: 0;
|
|
2260
|
+
outline: none;
|
|
2261
|
+
cursor: pointer;
|
|
2262
|
+
-webkit-appearance: none;
|
|
2263
|
+
}
|
|
2264
|
+
`;
|
|
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, Ve = /\n+/g, D = (e, t) => {
|
|
2266
|
+
let n = "", l = "", i = "";
|
|
2267
|
+
for (let o in e) {
|
|
2268
|
+
let s = e[o];
|
|
2269
|
+
o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : l += o[1] == "f" ? D(s, o) : o + "{" + D(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? l += D(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 += D.p ? D.p(o, s) : o + ":" + s + ";");
|
|
2270
|
+
}
|
|
2271
|
+
return n + (t && i ? t + "{" + i + "}" : i) + l;
|
|
2272
|
+
}, E = {}, rt = (e) => {
|
|
2273
|
+
if (typeof e == "object") {
|
|
2274
|
+
let t = "";
|
|
2275
|
+
for (let n in e)
|
|
2276
|
+
t += n + rt(e[n]);
|
|
2277
|
+
return t;
|
|
2278
|
+
}
|
|
2279
|
+
return e;
|
|
2280
|
+
}, _r = (e, t, n, l, i) => {
|
|
2281
|
+
let o = rt(e), s = E[o] || (E[o] = ((a) => {
|
|
2282
|
+
let c = 0, d = 11;
|
|
2283
|
+
for (; c < a.length; )
|
|
2284
|
+
d = 101 * d + a.charCodeAt(c++) >>> 0;
|
|
2285
|
+
return "go" + d;
|
|
2286
|
+
})(o));
|
|
2287
|
+
if (!E[s]) {
|
|
2288
|
+
let a = o !== e ? e : ((c) => {
|
|
2289
|
+
let d, g, f = [{}];
|
|
2290
|
+
for (; d = xr.exec(c.replace(wr, "")); )
|
|
2291
|
+
d[4] ? f.shift() : d[3] ? (g = d[3].replace(Ve, " ").trim(), f.unshift(f[0][g] = f[0][g] || {})) : f[0][d[1]] = d[2].replace(Ve, " ").trim();
|
|
2292
|
+
return f[0];
|
|
2293
|
+
})(e);
|
|
2294
|
+
E[s] = D(i ? { ["@keyframes " + s]: a } : a, n ? "" : "." + s);
|
|
2295
|
+
}
|
|
2296
|
+
let r = n && E.g ? E.g : null;
|
|
2297
|
+
return n && (E.g = E[s]), ((a, c, d, g) => {
|
|
2298
|
+
g ? c.data = c.data.replace(g, a) : c.data.indexOf(a) === -1 && (c.data = d ? a + c.data : c.data + a);
|
|
2299
|
+
})(E[s], t, l, r), s;
|
|
2300
|
+
}, Sr = (e, t, n) => e.reduce((l, i, o) => {
|
|
2301
|
+
let s = t[o];
|
|
2302
|
+
if (s && s.call) {
|
|
2303
|
+
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 ? "" : D(r, "") : r === !1 ? "" : r;
|
|
2305
|
+
}
|
|
2306
|
+
return l + i + (s ?? "");
|
|
2307
|
+
}, "");
|
|
2308
|
+
function ue(e) {
|
|
2309
|
+
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2310
|
+
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
|
+
}
|
|
2312
|
+
ue.bind({ g: 1 });
|
|
2313
|
+
ue.bind({ k: 1 });
|
|
2314
|
+
const Nr = /* @__PURE__ */ y("<div></div>"), kr = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Ar = ue`
|
|
2315
|
+
${vr};
|
|
2316
|
+
${$r};
|
|
2317
|
+
|
|
2318
|
+
position: fixed;
|
|
2319
|
+
inset: 32px;
|
|
2320
|
+
border-radius: 4px;
|
|
2321
|
+
background: ${h.bgPrimary.var};
|
|
2322
|
+
display: grid;
|
|
2323
|
+
grid-template-columns: 51px 1fr;
|
|
2324
|
+
|
|
2325
|
+
nav {
|
|
2326
|
+
${S()};
|
|
2327
|
+
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
2328
|
+
|
|
2329
|
+
button {
|
|
2330
|
+
${yr};
|
|
2331
|
+
width: 100%;
|
|
2332
|
+
aspect-ratio: 1 / 1;
|
|
2333
|
+
color: ${h.bgPrimary.var};
|
|
2334
|
+
--icon-size: 30px;
|
|
2335
|
+
|
|
2336
|
+
&::before {
|
|
2337
|
+
content: '';
|
|
2338
|
+
inset: 6px;
|
|
2339
|
+
border-radius: 3px;
|
|
2340
|
+
position: absolute;
|
|
2341
|
+
background: ${h.primary.var};
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
> main > * {
|
|
2347
|
+
${be};
|
|
2348
|
+
}
|
|
2349
|
+
`, Pr = ue`
|
|
2350
|
+
${be};
|
|
2351
|
+
position: fixed;
|
|
2352
|
+
inset: 0;
|
|
2353
|
+
`, Tr = () => [(() => {
|
|
2354
|
+
const e = Nr.cloneNode(!0);
|
|
2355
|
+
return re(e, "click", Or, !0), b(e, Pr), e;
|
|
2356
|
+
})(), (() => {
|
|
2357
|
+
const e = kr.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
2358
|
+
return b(e, Ar), u(t, p(L, {
|
|
2359
|
+
title: "API Explorer",
|
|
2360
|
+
get children() {
|
|
2361
|
+
return p(ce, {
|
|
2362
|
+
name: "network"
|
|
2363
|
+
});
|
|
2364
|
+
}
|
|
2365
|
+
})), u(n, p(mr, {})), e;
|
|
2366
|
+
})()];
|
|
2367
|
+
ae(["click"]);
|
|
2368
|
+
const Er = () => p(Tr, {});
|
|
2369
|
+
let ot = () => {
|
|
2370
|
+
};
|
|
2371
|
+
function Lr() {
|
|
2372
|
+
Q.extend(Et), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
2373
|
+
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
2374
|
+
e.id = "dev-tools-root", document.body.appendChild(e), ot = xt(() => p(Er, {}), e);
|
|
2375
|
+
}
|
|
2376
|
+
function Or() {
|
|
2377
|
+
ot();
|
|
2378
|
+
}
|
|
2379
|
+
function Hr({
|
|
2380
|
+
callsProcessor: e,
|
|
2381
|
+
shortcut: t = "$mod+D"
|
|
2382
|
+
}) {
|
|
2383
|
+
gt(window, {
|
|
2384
|
+
[t]: (n) => {
|
|
2385
|
+
n.preventDefault();
|
|
2386
|
+
const l = document.activeElement;
|
|
2387
|
+
l instanceof HTMLElement && (l.isContentEditable || l.tagName === "INPUT" || l.tagName === "TEXTAREA") || Lr();
|
|
2388
|
+
}
|
|
2389
|
+
}), pn({
|
|
2390
|
+
callsProcessor: e
|
|
2391
|
+
});
|
|
2392
|
+
}
|
|
2393
|
+
export {
|
|
2394
|
+
Br as addCall,
|
|
2395
|
+
Hr as initializeDevTools
|
|
2396
|
+
};
|