app-devtools 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +852 -851
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1304,7 +1304,7 @@ function Qt(e, t, n) {
|
|
|
1304
1304
|
function $t(e, t) {
|
|
1305
1305
|
return k((n) => Qt(n, typeof e == "function" ? e() : e, t));
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function H(e) {
|
|
1308
1308
|
let [n, r] = D(e);
|
|
1309
1309
|
return {
|
|
1310
1310
|
get value() {
|
|
@@ -1324,7 +1324,7 @@ function en(e) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
};
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function en(e) {
|
|
1328
1328
|
let t = k(e);
|
|
1329
1329
|
return { get value() {
|
|
1330
1330
|
return t();
|
|
@@ -1332,7 +1332,7 @@ function tn(e) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region utils/tryExpression.ts
|
|
1335
|
-
function
|
|
1335
|
+
function tn(e, t) {
|
|
1336
1336
|
try {
|
|
1337
1337
|
return e();
|
|
1338
1338
|
} catch (e) {
|
|
@@ -1341,10 +1341,10 @@ function nn(e, t) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
//#endregion
|
|
1343
1343
|
//#region utils/urlPattern.ts
|
|
1344
|
-
function
|
|
1345
|
-
return
|
|
1344
|
+
function nn(e, t) {
|
|
1345
|
+
return rn(e, n(t));
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function rn(e, t) {
|
|
1348
1348
|
let n = 0, r = {}, i = t.pattern.exec(e);
|
|
1349
1349
|
if (!i) return null;
|
|
1350
1350
|
for (; n < t.keys.length;) r[t.keys[n]] = i[++n] || null;
|
|
@@ -1352,29 +1352,29 @@ function an(e, t) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
//#endregion
|
|
1354
1354
|
//#region node_modules/.pnpm/klona@2.0.6/node_modules/klona/json/index.mjs
|
|
1355
|
-
function
|
|
1355
|
+
function an(e) {
|
|
1356
1356
|
var t, n, r;
|
|
1357
1357
|
if (Array.isArray(e)) {
|
|
1358
|
-
for (n = Array(t = e.length); t--;) n[t] = (r = e[t]) && typeof r == "object" ?
|
|
1358
|
+
for (n = Array(t = e.length); t--;) n[t] = (r = e[t]) && typeof r == "object" ? an(r) : r;
|
|
1359
1359
|
return n;
|
|
1360
1360
|
}
|
|
1361
1361
|
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
1362
1362
|
for (t in n = {}, e) t === "__proto__" ? Object.defineProperty(n, t, {
|
|
1363
|
-
value:
|
|
1363
|
+
value: an(e[t]),
|
|
1364
1364
|
configurable: !0,
|
|
1365
1365
|
enumerable: !0,
|
|
1366
1366
|
writable: !0
|
|
1367
|
-
}) : n[t] = (r = e[t]) && typeof r == "object" ?
|
|
1367
|
+
}) : n[t] = (r = e[t]) && typeof r == "object" ? an(r) : r;
|
|
1368
1368
|
return n;
|
|
1369
1369
|
}
|
|
1370
1370
|
return e;
|
|
1371
1371
|
}
|
|
1372
1372
|
//#endregion
|
|
1373
1373
|
//#region node_modules/.pnpm/solid-js@1.9.14/node_modules/solid-js/store/dist/store.js
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1374
|
+
var on = Symbol("store-raw"), sn = Symbol("store-node"), cn = Symbol("store-has"), ln = Symbol("store-self");
|
|
1375
|
+
function un(e) {
|
|
1376
1376
|
let t = e[v];
|
|
1377
|
-
if (!t && (Object.defineProperty(e, v, { value: t = new Proxy(e,
|
|
1377
|
+
if (!t && (Object.defineProperty(e, v, { value: t = new Proxy(e, vn) }), !Array.isArray(e))) {
|
|
1378
1378
|
let n = Object.keys(e), r = Object.getOwnPropertyDescriptors(e), i = Object.getPrototypeOf(e), a = i !== null && typeof e == "object" && !!e && !Array.isArray(e) && i !== Object.prototype;
|
|
1379
1379
|
if (a) {
|
|
1380
1380
|
let e = Object.getOwnPropertyDescriptors(i);
|
|
@@ -1391,29 +1391,29 @@ function dn(e) {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
return t;
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function dn(e) {
|
|
1395
1395
|
let t;
|
|
1396
1396
|
return typeof e == "object" && !!e && (e[v] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function fn(e, t = /* @__PURE__ */ new Set()) {
|
|
1399
1399
|
let n, r, i, a;
|
|
1400
|
-
if (n = e != null && e[
|
|
1401
|
-
if (!
|
|
1400
|
+
if (n = e != null && e[on]) return n;
|
|
1401
|
+
if (!dn(e) || t.has(e)) return e;
|
|
1402
1402
|
if (Array.isArray(e)) {
|
|
1403
1403
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
1404
|
-
for (let n = 0, a = e.length; n < a; n++) i = e[n], (r =
|
|
1404
|
+
for (let n = 0, a = e.length; n < a; n++) i = e[n], (r = fn(i, t)) !== i && (e[n] = r);
|
|
1405
1405
|
} else {
|
|
1406
1406
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
1407
1407
|
let n = Object.keys(e), o = Object.getOwnPropertyDescriptors(e);
|
|
1408
|
-
for (let s = 0, c = n.length; s < c; s++) a = n[s], !o[a].get && (i = e[a], (r =
|
|
1408
|
+
for (let s = 0, c = n.length; s < c; s++) a = n[s], !o[a].get && (i = e[a], (r = fn(i, t)) !== i && (e[a] = r));
|
|
1409
1409
|
}
|
|
1410
1410
|
return e;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function pn(e, t) {
|
|
1413
1413
|
let n = e[t];
|
|
1414
1414
|
return n || Object.defineProperty(e, t, { value: n = Object.create(null) }), n;
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function mn(e, t, n) {
|
|
1417
1417
|
if (e[t]) return e[t];
|
|
1418
1418
|
let [r, i] = D(n, {
|
|
1419
1419
|
equals: !1,
|
|
@@ -1421,31 +1421,31 @@ function hn(e, t, n) {
|
|
|
1421
1421
|
});
|
|
1422
1422
|
return r.$ = i, e[t] = r;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function hn(e, t) {
|
|
1425
1425
|
let n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1426
|
-
return !n || n.get || !n.configurable || t === v || t ===
|
|
1426
|
+
return !n || n.get || !n.configurable || t === v || t === sn ? n : (delete n.value, delete n.writable, n.get = () => e[v][t], n);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
de() &&
|
|
1428
|
+
function gn(e) {
|
|
1429
|
+
de() && mn(pn(e, sn), ln)();
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1432
|
-
return
|
|
1431
|
+
function _n(e) {
|
|
1432
|
+
return gn(e), Reflect.ownKeys(e);
|
|
1433
1433
|
}
|
|
1434
|
-
var
|
|
1434
|
+
var vn = {
|
|
1435
1435
|
get(e, t, n) {
|
|
1436
|
-
if (t ===
|
|
1436
|
+
if (t === on) return e;
|
|
1437
1437
|
if (t === v) return n;
|
|
1438
|
-
if (t === ee) return
|
|
1439
|
-
let r =
|
|
1440
|
-
if (t ===
|
|
1438
|
+
if (t === ee) return gn(e), n;
|
|
1439
|
+
let r = pn(e, sn), i = r[t], a = i ? i() : e[t];
|
|
1440
|
+
if (t === sn || t === cn || t === "__proto__") return a;
|
|
1441
1441
|
if (!i) {
|
|
1442
1442
|
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
1443
|
-
de() && (typeof a != "function" || Object.prototype.hasOwnProperty.call(e, t)) && !(n && n.get) && (a =
|
|
1443
|
+
de() && (typeof a != "function" || Object.prototype.hasOwnProperty.call(e, t)) && !(n && n.get) && (a = mn(r, t, a)());
|
|
1444
1444
|
}
|
|
1445
|
-
return
|
|
1445
|
+
return dn(a) ? un(a) : a;
|
|
1446
1446
|
},
|
|
1447
1447
|
has(e, t) {
|
|
1448
|
-
return t ===
|
|
1448
|
+
return t === on || t === v || t === ee || t === sn || t === cn || t === "__proto__" ? !0 : (de() && mn(pn(e, cn), t)(), t in e);
|
|
1449
1449
|
},
|
|
1450
1450
|
set() {
|
|
1451
1451
|
return !0;
|
|
@@ -1453,107 +1453,107 @@ var yn = {
|
|
|
1453
1453
|
deleteProperty() {
|
|
1454
1454
|
return !0;
|
|
1455
1455
|
},
|
|
1456
|
-
ownKeys:
|
|
1457
|
-
getOwnPropertyDescriptor:
|
|
1456
|
+
ownKeys: _n,
|
|
1457
|
+
getOwnPropertyDescriptor: hn
|
|
1458
1458
|
};
|
|
1459
|
-
function
|
|
1459
|
+
function yn(e, t, n, r = !1) {
|
|
1460
1460
|
if (t === "__proto__" || !r && e[t] === n) return;
|
|
1461
1461
|
let i = e[t], a = e.length;
|
|
1462
|
-
n === void 0 ? (delete e[t], e[
|
|
1463
|
-
let o =
|
|
1464
|
-
if ((s =
|
|
1462
|
+
n === void 0 ? (delete e[t], e[cn] && e[cn][t] && i !== void 0 && e[cn][t].$()) : (e[t] = n, e[cn] && e[cn][t] && i === void 0 && e[cn][t].$());
|
|
1463
|
+
let o = pn(e, sn), s;
|
|
1464
|
+
if ((s = mn(o, t, i)) && s.$(() => n), Array.isArray(e) && e.length !== a) {
|
|
1465
1465
|
for (let t = e.length; t < a; t++) (s = o[t]) && s.$();
|
|
1466
|
-
(s =
|
|
1466
|
+
(s = mn(o, "length", a)) && s.$(e.length);
|
|
1467
1467
|
}
|
|
1468
|
-
(s = o[
|
|
1468
|
+
(s = o[ln]) && s.$();
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function bn(e, t) {
|
|
1471
1471
|
let n = Object.keys(t);
|
|
1472
1472
|
for (let r = 0; r < n.length; r += 1) {
|
|
1473
1473
|
let i = n[r];
|
|
1474
|
-
|
|
1474
|
+
xn(i) || yn(e, i, t[i]);
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function xn(e) {
|
|
1478
1478
|
return e === "__proto__" || e === "constructor" || e === "prototype";
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
1480
|
+
function Sn(e, t) {
|
|
1481
|
+
if (typeof t == "function" && (t = t(e)), t = fn(t), Array.isArray(t)) {
|
|
1482
1482
|
if (e === t) return;
|
|
1483
1483
|
let n = 0, r = t.length;
|
|
1484
1484
|
for (; n < r; n++) {
|
|
1485
1485
|
let r = t[n];
|
|
1486
|
-
e[n] !== r &&
|
|
1486
|
+
e[n] !== r && yn(e, n, r);
|
|
1487
1487
|
}
|
|
1488
|
-
|
|
1489
|
-
} else
|
|
1488
|
+
yn(e, "length", r);
|
|
1489
|
+
} else bn(e, t);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Cn(e, t, n = []) {
|
|
1492
1492
|
let r, i = e;
|
|
1493
1493
|
if (t.length > 1) {
|
|
1494
1494
|
r = t.shift();
|
|
1495
1495
|
let a = typeof r, o = Array.isArray(e);
|
|
1496
|
-
if (a === "string" && (r === "__proto__" || t.length > 1 &&
|
|
1496
|
+
if (a === "string" && (r === "__proto__" || t.length > 1 && xn(r))) return;
|
|
1497
1497
|
if (Array.isArray(r)) {
|
|
1498
|
-
for (let i = 0; i < r.length; i++)
|
|
1498
|
+
for (let i = 0; i < r.length; i++) Cn(e, [r[i]].concat(t), n);
|
|
1499
1499
|
return;
|
|
1500
1500
|
} else if (o && a === "function") {
|
|
1501
|
-
for (let i = 0; i < e.length; i++) r(e[i], i) &&
|
|
1501
|
+
for (let i = 0; i < e.length; i++) r(e[i], i) && Cn(e, [i].concat(t), n);
|
|
1502
1502
|
return;
|
|
1503
1503
|
} else if (o && a === "object") {
|
|
1504
1504
|
let { from: i = 0, to: a = e.length - 1, by: o = 1 } = r;
|
|
1505
|
-
for (let r = i; r <= a; r += o)
|
|
1505
|
+
for (let r = i; r <= a; r += o) Cn(e, [r].concat(t), n);
|
|
1506
1506
|
return;
|
|
1507
1507
|
} else if (t.length > 1) {
|
|
1508
|
-
|
|
1508
|
+
Cn(e[r], t, [r].concat(n));
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
1511
|
i = e[r], n = [r].concat(n);
|
|
1512
1512
|
}
|
|
1513
1513
|
let a = t[0];
|
|
1514
|
-
typeof a == "function" && (a = a(i, n), a === i) || r === void 0 && a == null || (a =
|
|
1514
|
+
typeof a == "function" && (a = a(i, n), a === i) || r === void 0 && a == null || (a = fn(a), r === void 0 || dn(i) && dn(a) && !Array.isArray(a) ? bn(i, a) : yn(e, r, a));
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
let n =
|
|
1516
|
+
function wn(...[e, t]) {
|
|
1517
|
+
let n = fn(e || {}), r = Array.isArray(n), i = un(n);
|
|
1518
1518
|
function a(...e) {
|
|
1519
1519
|
ce(() => {
|
|
1520
|
-
r && e.length === 1 ?
|
|
1520
|
+
r && e.length === 1 ? Sn(n, e[0]) : Cn(n, e);
|
|
1521
1521
|
});
|
|
1522
1522
|
}
|
|
1523
1523
|
return [i, a];
|
|
1524
1524
|
}
|
|
1525
|
-
var
|
|
1525
|
+
var Tn = /* @__PURE__ */ new WeakMap(), En = {
|
|
1526
1526
|
get(e, t) {
|
|
1527
|
-
if (t ===
|
|
1527
|
+
if (t === on) return e;
|
|
1528
1528
|
let n = e[t];
|
|
1529
|
-
if (t === v || t === ee || t ===
|
|
1529
|
+
if (t === v || t === ee || t === sn || t === cn || t === "__proto__") return n;
|
|
1530
1530
|
let r;
|
|
1531
|
-
return
|
|
1531
|
+
return dn(n) ? Tn.get(n) || (Tn.set(n, r = new Proxy(n, En)), r) : n;
|
|
1532
1532
|
},
|
|
1533
1533
|
set(e, t, n) {
|
|
1534
|
-
return
|
|
1534
|
+
return yn(e, t, fn(n)), !0;
|
|
1535
1535
|
},
|
|
1536
1536
|
deleteProperty(e, t) {
|
|
1537
|
-
return
|
|
1537
|
+
return yn(e, t, void 0, !0), !0;
|
|
1538
1538
|
}
|
|
1539
1539
|
};
|
|
1540
|
-
function
|
|
1540
|
+
function Dn(e) {
|
|
1541
1541
|
return (t) => {
|
|
1542
|
-
if (
|
|
1542
|
+
if (dn(t)) {
|
|
1543
1543
|
let n;
|
|
1544
|
-
(n =
|
|
1544
|
+
(n = Tn.get(t)) || Tn.set(t, n = new Proxy(t, En)), e(n);
|
|
1545
1545
|
}
|
|
1546
1546
|
return t;
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
1549
|
//#endregion
|
|
1550
1550
|
//#region src/stores/callsStore.ts
|
|
1551
|
-
var [
|
|
1551
|
+
var [U, On] = wn({
|
|
1552
1552
|
calls: {},
|
|
1553
1553
|
markers: []
|
|
1554
1554
|
});
|
|
1555
|
-
function
|
|
1556
|
-
|
|
1555
|
+
function kn(e, t) {
|
|
1556
|
+
On(Dn((n) => {
|
|
1557
1557
|
n.markers.push({
|
|
1558
1558
|
id: r(),
|
|
1559
1559
|
label: e || `Marker ${n.markers.length + 1}`,
|
|
@@ -1561,68 +1561,68 @@ function An(e, t) {
|
|
|
1561
1561
|
});
|
|
1562
1562
|
}));
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1564
|
+
function An(e) {
|
|
1565
|
+
On(Dn((t) => {
|
|
1566
1566
|
t.markers = t.markers.filter((t) => t.id !== e);
|
|
1567
1567
|
}));
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function jn() {
|
|
1570
1570
|
ce(() => {
|
|
1571
|
-
|
|
1571
|
+
On({
|
|
1572
1572
|
calls: {},
|
|
1573
1573
|
markers: []
|
|
1574
|
-
}),
|
|
1574
|
+
}), qn.value = "";
|
|
1575
1575
|
});
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function Mn(e) {
|
|
1578
1578
|
return e.status === "pending" ? Infinity : e.startTime + e.duration;
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function Nn(e) {
|
|
1581
1581
|
ce(() => {
|
|
1582
|
-
|
|
1582
|
+
On(Dn((t) => {
|
|
1583
1583
|
for (let [n, r] of Object.entries(t.calls)) r.requests = r.requests.filter((t) => !e(t)), r.requests.length === 0 && delete t.calls[n];
|
|
1584
|
-
})),
|
|
1584
|
+
})), U.calls[qn.value] || (qn.value = "");
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1587
|
+
function Pn(e) {
|
|
1588
|
+
Nn((t) => Mn(t) < e);
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1591
|
-
|
|
1590
|
+
function Fn(e) {
|
|
1591
|
+
Nn((t) => t.startTime > e);
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1594
|
-
|
|
1593
|
+
function In(e, t) {
|
|
1594
|
+
Nn((n) => n.startTime <= t && Mn(n) >= e);
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function Ln(e) {
|
|
1597
1597
|
if (!e.headers) return null;
|
|
1598
|
-
let t = new Set(
|
|
1598
|
+
let t = new Set(Jn.visibleRequestHeaders.map((e) => e.toLowerCase())), n = {};
|
|
1599
1599
|
for (let [r, i] of Object.entries(e.headers)) n[r] = t.has(r.toLowerCase()) ? i : Ht(i);
|
|
1600
1600
|
return n;
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return
|
|
1602
|
+
function Rn(e) {
|
|
1603
|
+
return Jn.visibleRequestHeaders.some((t) => t.toLowerCase() === e.toLowerCase());
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function zn(e) {
|
|
1606
1606
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function Bn(e) {
|
|
1609
1609
|
return Array.isArray(e);
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Vn(e) {
|
|
1612
1612
|
return e.toLowerCase().replaceAll("_", "").replaceAll("-", "");
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1615
|
-
let t = new Set(
|
|
1614
|
+
function Hn(e) {
|
|
1615
|
+
let t = new Set(Jn.sensitiveDataFields.map(Vn));
|
|
1616
1616
|
if (t.size === 0) return {
|
|
1617
1617
|
value: e,
|
|
1618
1618
|
hasMaskedFields: !1
|
|
1619
1619
|
};
|
|
1620
1620
|
let n = { maskedFields: 0 };
|
|
1621
1621
|
function r(e) {
|
|
1622
|
-
if (
|
|
1623
|
-
if (
|
|
1622
|
+
if (Bn(e)) return e.map(r);
|
|
1623
|
+
if (zn(e)) {
|
|
1624
1624
|
let i = {};
|
|
1625
|
-
for (let [a, o] of Object.entries(e)) t.has(
|
|
1625
|
+
for (let [a, o] of Object.entries(e)) t.has(Vn(a)) ? (n.maskedFields++, i[a] = Ht(o)) : i[a] = r(o);
|
|
1626
1626
|
return i;
|
|
1627
1627
|
}
|
|
1628
1628
|
return e;
|
|
@@ -1636,24 +1636,24 @@ function Un(e) {
|
|
|
1636
1636
|
hasMaskedFields: !1
|
|
1637
1637
|
};
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Un(e) {
|
|
1640
1640
|
if (!e) return;
|
|
1641
1641
|
let t = {}, n = !1;
|
|
1642
1642
|
for (let [r, i] of Object.entries(e)) typeof i == "string" && (t[r] = i, n = !0);
|
|
1643
1643
|
return n ? t : void 0;
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1645
|
+
function Wn(e) {
|
|
1646
1646
|
if (!e) return;
|
|
1647
1647
|
let t = [];
|
|
1648
1648
|
for (let n of e) n && (typeof n == "string" ? t.push({ message: n }) : t.push({
|
|
1649
1649
|
message: n.message,
|
|
1650
|
-
details: n.details === void 0 ? void 0 :
|
|
1650
|
+
details: n.details === void 0 ? void 0 : an(n.details)
|
|
1651
1651
|
}));
|
|
1652
1652
|
return t.length > 0 ? t : void 0;
|
|
1653
1653
|
}
|
|
1654
|
-
var
|
|
1655
|
-
function
|
|
1656
|
-
let t =
|
|
1654
|
+
var Gn = 500;
|
|
1655
|
+
function Kn(e) {
|
|
1656
|
+
let t = Jn.maxRequestsSizeMb * 1024 * 1024, n = 0, r = 0;
|
|
1657
1657
|
for (let t of Object.values(e.calls)) {
|
|
1658
1658
|
n += t.requests.length;
|
|
1659
1659
|
for (let e of t.requests) r += e.approxSize;
|
|
@@ -1671,7 +1671,7 @@ function qn(e) {
|
|
|
1671
1671
|
n--, r -= o ? o.approxSize : 0, a.requests.length === 0 && delete e.calls[t];
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1674
|
+
var qn = H(""), Jn = {
|
|
1675
1675
|
callsProcessor: [],
|
|
1676
1676
|
visibleRequestHeaders: [],
|
|
1677
1677
|
sensitiveDataFields: [
|
|
@@ -1688,14 +1688,14 @@ var Jn = en(""), Yn = {
|
|
|
1688
1688
|
],
|
|
1689
1689
|
maxRequestsSizeMb: 30
|
|
1690
1690
|
};
|
|
1691
|
-
function
|
|
1692
|
-
|
|
1693
|
-
...
|
|
1691
|
+
function Yn(e) {
|
|
1692
|
+
Jn = {
|
|
1693
|
+
...Jn,
|
|
1694
1694
|
...e
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1698
|
-
|
|
1697
|
+
function Xn({ type: e, response: t, payload: n, event: r, startTime: i }) {
|
|
1698
|
+
Zn({
|
|
1699
1699
|
type: "ws",
|
|
1700
1700
|
path: r,
|
|
1701
1701
|
payload: n,
|
|
@@ -1707,15 +1707,15 @@ function Zn({ type: e, response: t, payload: n, event: r, startTime: i }) {
|
|
|
1707
1707
|
response: t
|
|
1708
1708
|
});
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Zn(e) {
|
|
1711
1711
|
let t = e.startTime || Date.now(), n = r(), i = null;
|
|
1712
|
-
return
|
|
1713
|
-
let a =
|
|
1712
|
+
return On(Dn((r) => {
|
|
1713
|
+
let a = tn(() => new URL(e.path, "http://localhost"));
|
|
1714
1714
|
Jt(a);
|
|
1715
|
-
let o = a.searchParams.toString() === "" ? null : Object.fromEntries(a.searchParams.entries()), s = null, c =
|
|
1715
|
+
let o = a.searchParams.toString() === "" ? null : Object.fromEntries(a.searchParams.entries()), s = null, c = Jn.callsProcessor.find((t) => {
|
|
1716
1716
|
if (typeof t.match == "string") {
|
|
1717
1717
|
if (t.matchType && t.matchType !== e.type || t.matchSubType && e.subType && t.matchSubType.includes(e.subType)) return !1;
|
|
1718
|
-
let n =
|
|
1718
|
+
let n = nn(a.pathname, t.match);
|
|
1719
1719
|
return n ? (s = n, !0) : !1;
|
|
1720
1720
|
} else return t.match({
|
|
1721
1721
|
url: a,
|
|
@@ -1736,7 +1736,7 @@ function Qn(e) {
|
|
|
1736
1736
|
requests: [],
|
|
1737
1737
|
type: e.type,
|
|
1738
1738
|
subType: e.subType
|
|
1739
|
-
},
|
|
1739
|
+
}, qn.value = u);
|
|
1740
1740
|
let f = r.calls[u];
|
|
1741
1741
|
Jt(f), f.lastRequestStartTime = t;
|
|
1742
1742
|
let p = {
|
|
@@ -1748,7 +1748,7 @@ function Qn(e) {
|
|
|
1748
1748
|
metadata: void 0,
|
|
1749
1749
|
response: void 0,
|
|
1750
1750
|
path: e.path.replace(/^\//, ""),
|
|
1751
|
-
payload:
|
|
1751
|
+
payload: an(e.payload),
|
|
1752
1752
|
searchParams: o,
|
|
1753
1753
|
startTime: t,
|
|
1754
1754
|
type: e.type,
|
|
@@ -1756,84 +1756,84 @@ function Qn(e) {
|
|
|
1756
1756
|
subType: e.subType,
|
|
1757
1757
|
code: void 0,
|
|
1758
1758
|
tags: Kt(Gt(e.tags, [])),
|
|
1759
|
-
warnings:
|
|
1760
|
-
headers:
|
|
1759
|
+
warnings: Wn(e.warnings),
|
|
1760
|
+
headers: Un(e.headers),
|
|
1761
1761
|
unusedResponseData: void 0,
|
|
1762
|
-
approxSize:
|
|
1763
|
-
}, m =
|
|
1764
|
-
m && (p.alias = m), f.requests.push(p),
|
|
1762
|
+
approxSize: Gn + Ut(e.payload)
|
|
1763
|
+
}, m = tn(() => c?.payloadAlias?.(p.payload, p));
|
|
1764
|
+
m && (p.alias = m), f.requests.push(p), Kn(r);
|
|
1765
1765
|
})), ({ isError: r, status: a, response: o, metadata: s, tags: c, warnings: l, unusedResponseData: u }) => {
|
|
1766
1766
|
let d = e.duration || Date.now() - t;
|
|
1767
|
-
|
|
1767
|
+
On(Dn((e) => {
|
|
1768
1768
|
let t = (i ? e.calls[i] : void 0)?.requests.find((e) => e.id === n);
|
|
1769
1769
|
if (t) {
|
|
1770
|
-
if (t.status = r ? "error" : "success", t.isError = r, t.duration = d, t.code = a, t.response =
|
|
1770
|
+
if (t.status = r ? "error" : "success", t.isError = r, t.duration = d, t.code = a, t.response = an(o), t.metadata = an(s), t.approxSize += Ut(o) + Ut(s), t.tags = Kt(Gt(t.tags, c)), t.warnings = Wn(Gt(t.warnings, l)), u) {
|
|
1771
1771
|
let e = Kt(Gt(u, []));
|
|
1772
1772
|
t.unusedResponseData = e.length > 0 ? e : void 0;
|
|
1773
1773
|
}
|
|
1774
|
-
|
|
1774
|
+
Kn(e);
|
|
1775
1775
|
}
|
|
1776
1776
|
}));
|
|
1777
1777
|
};
|
|
1778
1778
|
}
|
|
1779
1779
|
//#endregion
|
|
1780
1780
|
//#region src/style/helpers/inline.ts
|
|
1781
|
-
var
|
|
1781
|
+
var Qn = {
|
|
1782
1782
|
left: "flex-start",
|
|
1783
1783
|
center: "center",
|
|
1784
1784
|
right: "flex-end",
|
|
1785
1785
|
spaceBetween: "space-between",
|
|
1786
1786
|
spaceAround: "space-around",
|
|
1787
1787
|
spaceEvenly: "space-evenly"
|
|
1788
|
-
},
|
|
1788
|
+
}, $n = {
|
|
1789
1789
|
top: "flex-start",
|
|
1790
1790
|
bottom: "flex-end",
|
|
1791
1791
|
center: "center",
|
|
1792
1792
|
stretch: "stretch"
|
|
1793
|
-
},
|
|
1793
|
+
}, W = ({ justify: e = "left", align: t = "center", gap: n } = {}) => `
|
|
1794
1794
|
display: flex;
|
|
1795
1795
|
column-gap: ${n}px;
|
|
1796
1796
|
flex-direction: row;
|
|
1797
|
-
justify-content: ${
|
|
1798
|
-
align-items: ${
|
|
1799
|
-
`,
|
|
1797
|
+
justify-content: ${Qn[e]};
|
|
1798
|
+
align-items: ${$n[t]};
|
|
1799
|
+
`, er = {
|
|
1800
1800
|
top: "flex-start",
|
|
1801
1801
|
center: "center",
|
|
1802
1802
|
bottom: "flex-end",
|
|
1803
1803
|
spaceBetween: "space-between",
|
|
1804
1804
|
spaceAround: "space-around",
|
|
1805
1805
|
spaceEvenly: "space-evenly"
|
|
1806
|
-
},
|
|
1806
|
+
}, tr = {
|
|
1807
1807
|
left: "flex-start",
|
|
1808
1808
|
right: "flex-end",
|
|
1809
1809
|
center: "center",
|
|
1810
1810
|
stretch: "stretch"
|
|
1811
|
-
},
|
|
1811
|
+
}, G = ({ justify: e = "top", align: t = "stretch", gap: n = 0 } = {}) => `
|
|
1812
1812
|
row-gap: ${n}px;
|
|
1813
1813
|
display: flex;
|
|
1814
1814
|
flex-direction: column;
|
|
1815
|
-
justify-content: ${
|
|
1816
|
-
align-items: ${
|
|
1815
|
+
justify-content: ${er[e]};
|
|
1816
|
+
align-items: ${tr[t]};
|
|
1817
1817
|
`;
|
|
1818
1818
|
//#endregion
|
|
1819
1819
|
//#region utils/hexToRgb.ts
|
|
1820
|
-
function
|
|
1820
|
+
function nr(e) {
|
|
1821
1821
|
if (e.length < 4) throw Error("Invalid hex value");
|
|
1822
1822
|
return (e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, (e, t, n, r) => `#${t}${t}${n}${n}${r}${r}`).substring(1).match(/.{2}/g) || []).map((e) => parseInt(e, 16));
|
|
1823
1823
|
}
|
|
1824
1824
|
//#endregion
|
|
1825
1825
|
//#region utils/typed.ts
|
|
1826
|
-
function
|
|
1826
|
+
function rr(e) {
|
|
1827
1827
|
return Object.entries(e);
|
|
1828
1828
|
}
|
|
1829
1829
|
//#endregion
|
|
1830
1830
|
//#region utils/createThemev2.ts
|
|
1831
|
-
var
|
|
1832
|
-
function
|
|
1831
|
+
var ir = document.documentElement.style, ar = 1;
|
|
1832
|
+
function or(e) {
|
|
1833
1833
|
let t = {};
|
|
1834
|
-
for (let [n, r] of
|
|
1835
|
-
let [e, i, a] =
|
|
1836
|
-
|
|
1834
|
+
for (let [n, r] of rr(e)) {
|
|
1835
|
+
let [e, i, a] = nr(r), o = `c${ar}`;
|
|
1836
|
+
ar++, ir.setProperty(`--${o}-r`, String(e)), ir.setProperty(`--${o}-g`, String(i)), ir.setProperty(`--${o}-b`, String(a)), ir.setProperty(`--${o}`, r), t[n] = {
|
|
1837
1837
|
red: e,
|
|
1838
1838
|
green: i,
|
|
1839
1839
|
blue: a,
|
|
@@ -1862,7 +1862,7 @@ function sr(e) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
//#endregion
|
|
1864
1864
|
//#region src/style/theme.ts
|
|
1865
|
-
var
|
|
1865
|
+
var K = or({
|
|
1866
1866
|
bgPrimary: "#0F172A",
|
|
1867
1867
|
bgSecondary: "#1E293B",
|
|
1868
1868
|
textPrimary: "#fff",
|
|
@@ -1875,116 +1875,116 @@ var G = sr({
|
|
|
1875
1875
|
bg: "#EAEFFF",
|
|
1876
1876
|
white: "#fff",
|
|
1877
1877
|
black: "#000"
|
|
1878
|
-
}),
|
|
1878
|
+
}), sr = {
|
|
1879
1879
|
modal: "0px 8px 16px rgba(26, 34, 46, 0.04)",
|
|
1880
1880
|
button: "0px 1px 8px rgba(26, 34, 46, 0.06)",
|
|
1881
1881
|
hardShadow: "0px 1px 8px rgba(26, 34, 46, 0.16)"
|
|
1882
|
-
},
|
|
1882
|
+
}, q = {
|
|
1883
1883
|
primary: "\"Work Sans\", sans-serif",
|
|
1884
1884
|
decorative: "\"Fira Code\", monospace"
|
|
1885
|
-
},
|
|
1886
|
-
function
|
|
1887
|
-
|
|
1888
|
-
|
|
1885
|
+
}, cr = H(null), lr;
|
|
1886
|
+
function ur(e) {
|
|
1887
|
+
cr.value = e, clearTimeout(lr), lr = window.setTimeout(() => {
|
|
1888
|
+
cr.value = null;
|
|
1889
1889
|
}, 2e3);
|
|
1890
1890
|
}
|
|
1891
1891
|
//#endregion
|
|
1892
1892
|
//#region src/components/AddMarkerDialog.tsx
|
|
1893
|
-
var
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1893
|
+
var dr = /*#__PURE__*/ P("<div><div><h1>add marker</h1><input type=text placeholder=\"Marker label (optional)\"><div class=actions>"), fr = /*#__PURE__*/ P("<span class=time>at "), pr = H(null);
|
|
1894
|
+
function mr(e) {
|
|
1895
|
+
pr.value = { time: e };
|
|
1896
1896
|
}
|
|
1897
|
-
var
|
|
1897
|
+
var hr = B`
|
|
1898
1898
|
&&& {
|
|
1899
1899
|
position: absolute;
|
|
1900
1900
|
inset: 0;
|
|
1901
1901
|
z-index: 50;
|
|
1902
|
-
background: ${
|
|
1903
|
-
${
|
|
1902
|
+
background: ${K.black.alpha(.5)};
|
|
1903
|
+
${W({ justify: "center" })};
|
|
1904
1904
|
}
|
|
1905
|
-
`,
|
|
1905
|
+
`, gr = B`
|
|
1906
1906
|
&&& {
|
|
1907
|
-
${
|
|
1907
|
+
${G({ align: "stretch" })};
|
|
1908
1908
|
width: 360px;
|
|
1909
1909
|
max-width: calc(100% - 48px);
|
|
1910
|
-
background: ${
|
|
1911
|
-
border: 1px solid ${
|
|
1910
|
+
background: ${K.bgSecondary.var};
|
|
1911
|
+
border: 1px solid ${K.white.alpha(.1)};
|
|
1912
1912
|
border-radius: 8px;
|
|
1913
|
-
box-shadow: ${
|
|
1913
|
+
box-shadow: ${sr.modal};
|
|
1914
1914
|
padding: 16px;
|
|
1915
1915
|
gap: 12px;
|
|
1916
1916
|
|
|
1917
1917
|
> h1 {
|
|
1918
1918
|
font-size: 16px;
|
|
1919
|
-
font-family: ${
|
|
1920
|
-
color: ${
|
|
1919
|
+
font-family: ${q.decorative};
|
|
1920
|
+
color: ${K.secondary.var};
|
|
1921
1921
|
|
|
1922
1922
|
> .time {
|
|
1923
1923
|
font-size: 11px;
|
|
1924
|
-
color: ${
|
|
1924
|
+
color: ${K.white.alpha(.5)};
|
|
1925
1925
|
margin-left: 8px;
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
1929
|
> input {
|
|
1930
|
-
background: ${
|
|
1931
|
-
border: 1px solid ${
|
|
1930
|
+
background: ${K.white.alpha(.05)};
|
|
1931
|
+
border: 1px solid ${K.white.alpha(.1)};
|
|
1932
1932
|
border-radius: 4px;
|
|
1933
|
-
color: ${
|
|
1933
|
+
color: ${K.white.var};
|
|
1934
1934
|
font-size: 13px;
|
|
1935
1935
|
padding: 7px 10px;
|
|
1936
1936
|
|
|
1937
1937
|
&:focus {
|
|
1938
1938
|
outline: 0;
|
|
1939
|
-
border-color: ${
|
|
1939
|
+
border-color: ${K.primary.alpha(.6)};
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
1943
1943
|
> .actions {
|
|
1944
|
-
${
|
|
1944
|
+
${W({
|
|
1945
1945
|
gap: 8,
|
|
1946
1946
|
justify: "right"
|
|
1947
1947
|
})};
|
|
1948
1948
|
padding-top: 4px;
|
|
1949
1949
|
|
|
1950
1950
|
button {
|
|
1951
|
-
${
|
|
1951
|
+
${W({ gap: 6 })};
|
|
1952
1952
|
font-size: 13px;
|
|
1953
1953
|
border-radius: 4px;
|
|
1954
1954
|
padding: 6px 12px;
|
|
1955
|
-
background: ${
|
|
1955
|
+
background: ${K.white.alpha(.06)};
|
|
1956
1956
|
--icon-size: 15px;
|
|
1957
1957
|
|
|
1958
1958
|
&:hover {
|
|
1959
|
-
background: ${
|
|
1959
|
+
background: ${K.white.alpha(.12)};
|
|
1960
1960
|
}
|
|
1961
1961
|
|
|
1962
1962
|
&.primary {
|
|
1963
|
-
background: ${
|
|
1964
|
-
color: ${
|
|
1963
|
+
background: ${K.primary.var};
|
|
1964
|
+
color: ${K.bgPrimary.var};
|
|
1965
1965
|
font-weight: 600;
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
`,
|
|
1971
|
-
let [t, n] = D(""), r = k(() =>
|
|
1970
|
+
`, _r = () => {
|
|
1971
|
+
let [t, n] = D(""), r = k(() => pr.value?.time);
|
|
1972
1972
|
function i() {
|
|
1973
|
-
|
|
1973
|
+
pr.value = null;
|
|
1974
1974
|
}
|
|
1975
1975
|
function a() {
|
|
1976
|
-
|
|
1976
|
+
kn(t().trim() || void 0, r()), ur("Marker added"), i();
|
|
1977
1977
|
}
|
|
1978
1978
|
return (() => {
|
|
1979
|
-
var o =
|
|
1979
|
+
var o = dr(), s = o.firstChild, c = s.firstChild;
|
|
1980
1980
|
c.firstChild;
|
|
1981
1981
|
var l = c.nextSibling, u = l.nextSibling;
|
|
1982
1982
|
return o.$$click = (e) => {
|
|
1983
1983
|
e.target === e.currentTarget && i();
|
|
1984
|
-
}, I(o,
|
|
1984
|
+
}, I(o, hr), I(s, gr), R(c, (() => {
|
|
1985
1985
|
var t = N(() => r() !== void 0);
|
|
1986
1986
|
return () => t() && (() => {
|
|
1987
|
-
var t =
|
|
1987
|
+
var t = fr();
|
|
1988
1988
|
return t.firstChild, R(t, () => e(r()).format("HH:mm:ss.SSS"), null), t;
|
|
1989
1989
|
})();
|
|
1990
1990
|
})(), null), l.$$keydown = (e) => {
|
|
@@ -2012,12 +2012,12 @@ it([
|
|
|
2012
2012
|
]);
|
|
2013
2013
|
//#endregion
|
|
2014
2014
|
//#region src/stores/logsStore.ts
|
|
2015
|
-
var
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2015
|
+
var vr = 100, yr = 10;
|
|
2016
|
+
function br(e) {
|
|
2017
|
+
yr = e, Cr(Dn(xr));
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
let t =
|
|
2019
|
+
function xr(e) {
|
|
2020
|
+
let t = yr * 1024 * 1024, n = 0;
|
|
2021
2021
|
for (let t of e.logs) n += t.approxSize;
|
|
2022
2022
|
let r = 0;
|
|
2023
2023
|
for (; n > t && r < e.logs.length - 1;) {
|
|
@@ -2027,27 +2027,27 @@ function Sr(e) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
r > 0 && e.logs.splice(0, r);
|
|
2029
2029
|
}
|
|
2030
|
-
var [
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2030
|
+
var [Sr, Cr] = wn({ logs: [] });
|
|
2031
|
+
function wr(e) {
|
|
2032
|
+
Cr(Dn((t) => {
|
|
2033
2033
|
t.logs.push({
|
|
2034
2034
|
id: r(),
|
|
2035
2035
|
severity: e.severity || "info",
|
|
2036
2036
|
message: e.message,
|
|
2037
2037
|
category: e.category,
|
|
2038
|
-
details: e.details === void 0 ? void 0 :
|
|
2038
|
+
details: e.details === void 0 ? void 0 : an(e.details),
|
|
2039
2039
|
time: e.time || Date.now(),
|
|
2040
|
-
approxSize:
|
|
2041
|
-
}),
|
|
2040
|
+
approxSize: vr + e.message.length + Ut(e.details)
|
|
2041
|
+
}), xr(t);
|
|
2042
2042
|
}));
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2045
|
-
|
|
2044
|
+
function Tr() {
|
|
2045
|
+
Cr({ logs: [] });
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2048
|
-
|
|
2047
|
+
function Er(e) {
|
|
2048
|
+
Cr("logs", (t) => t.filter((t) => t.id !== e));
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Dr(e, t = (e) => e) {
|
|
2051
2051
|
return {
|
|
2052
2052
|
time: e.time,
|
|
2053
2053
|
timeISO: new Date(e.time).toISOString(),
|
|
@@ -2059,59 +2059,59 @@ function Or(e, t = (e) => e) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
//#endregion
|
|
2061
2061
|
//#region src/utils/copyToClipboard.ts
|
|
2062
|
-
async function
|
|
2062
|
+
async function Or(e) {
|
|
2063
2063
|
let t = typeof e == "string" ? e : typeof e == "object" && e ? JSON.stringify(e, null, 2) : String(e);
|
|
2064
|
-
await navigator.clipboard.writeText(t),
|
|
2064
|
+
await navigator.clipboard.writeText(t), ur("Copied to clipboard");
|
|
2065
2065
|
}
|
|
2066
2066
|
//#endregion
|
|
2067
2067
|
//#region src/utils/downloadJson.ts
|
|
2068
|
-
function
|
|
2068
|
+
function kr(e, t) {
|
|
2069
2069
|
let n = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2070
2070
|
i.href = r, i.download = `${t}-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.json`, i.click(), URL.revokeObjectURL(r);
|
|
2071
2071
|
}
|
|
2072
2072
|
//#endregion
|
|
2073
2073
|
//#region src/components/ExportHistoryDialog.tsx
|
|
2074
|
-
var
|
|
2074
|
+
var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("<div class=empty>no requests to export"), Mr = /*#__PURE__*/ P("<h2>Calls to include"), Nr = /*#__PURE__*/ P("<div class=select-buttons>"), Pr = /*#__PURE__*/ P("<div class=calls-list>"), Fr = /*#__PURE__*/ P("<div class=options><label><input type=checkbox><span>Include responses</span></label><label><input type=checkbox><span>Privacy mode</span><span class=description>values are replaced by type descriptions"), Ir = /*#__PURE__*/ P("<div class=actions>"), Lr = /*#__PURE__*/ P("<label><input type=checkbox><span></span><span class=count> request"), Rr = /*#__PURE__*/ P("<label><input type=checkbox><span>Include logs</span><span class=count> logs"), zr = H(!1), Br = B`
|
|
2075
2075
|
&&& {
|
|
2076
2076
|
position: absolute;
|
|
2077
2077
|
inset: 0;
|
|
2078
2078
|
z-index: 50;
|
|
2079
|
-
background: ${
|
|
2080
|
-
${
|
|
2079
|
+
background: ${K.black.alpha(.5)};
|
|
2080
|
+
${W({ justify: "center" })};
|
|
2081
2081
|
}
|
|
2082
|
-
`,
|
|
2082
|
+
`, Vr = B`
|
|
2083
2083
|
&&& {
|
|
2084
|
-
${
|
|
2084
|
+
${G({ align: "stretch" })};
|
|
2085
2085
|
width: 480px;
|
|
2086
2086
|
max-width: calc(100% - 48px);
|
|
2087
2087
|
max-height: calc(100% - 48px);
|
|
2088
|
-
background: ${
|
|
2089
|
-
border: 1px solid ${
|
|
2088
|
+
background: ${K.bgSecondary.var};
|
|
2089
|
+
border: 1px solid ${K.white.alpha(.1)};
|
|
2090
2090
|
border-radius: 8px;
|
|
2091
|
-
box-shadow: ${
|
|
2091
|
+
box-shadow: ${sr.modal};
|
|
2092
2092
|
padding: 16px;
|
|
2093
2093
|
gap: 12px;
|
|
2094
2094
|
|
|
2095
2095
|
> h1 {
|
|
2096
2096
|
font-size: 16px;
|
|
2097
|
-
font-family: ${
|
|
2098
|
-
color: ${
|
|
2097
|
+
font-family: ${q.decorative};
|
|
2098
|
+
color: ${K.secondary.var};
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
2101
|
> h2 {
|
|
2102
2102
|
font-size: 12px;
|
|
2103
2103
|
letter-spacing: 0.08em;
|
|
2104
2104
|
text-transform: uppercase;
|
|
2105
|
-
color: ${
|
|
2105
|
+
color: ${K.primary.var};
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
2108
|
label {
|
|
2109
|
-
${
|
|
2109
|
+
${W({ gap: 8 })};
|
|
2110
2110
|
font-size: 13px;
|
|
2111
2111
|
cursor: pointer;
|
|
2112
2112
|
|
|
2113
2113
|
input {
|
|
2114
|
-
accent-color: ${
|
|
2114
|
+
accent-color: ${K.primary.var};
|
|
2115
2115
|
}
|
|
2116
2116
|
|
|
2117
2117
|
.count {
|
|
@@ -2126,7 +2126,7 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2126
2126
|
}
|
|
2127
2127
|
|
|
2128
2128
|
> .calls-list {
|
|
2129
|
-
${
|
|
2129
|
+
${G({ align: "left" })};
|
|
2130
2130
|
gap: 6px;
|
|
2131
2131
|
overflow-y: auto;
|
|
2132
2132
|
max-height: 260px;
|
|
@@ -2134,11 +2134,11 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
> .select-buttons {
|
|
2137
|
-
${
|
|
2137
|
+
${W({ gap: 8 })};
|
|
2138
2138
|
|
|
2139
2139
|
button {
|
|
2140
2140
|
font-size: 12px;
|
|
2141
|
-
color: ${
|
|
2141
|
+
color: ${K.secondary.var};
|
|
2142
2142
|
|
|
2143
2143
|
&:hover {
|
|
2144
2144
|
text-decoration: underline;
|
|
@@ -2147,34 +2147,34 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
2149
|
> .options {
|
|
2150
|
-
${
|
|
2150
|
+
${G({ align: "left" })};
|
|
2151
2151
|
gap: 6px;
|
|
2152
|
-
border-top: 1px solid ${
|
|
2152
|
+
border-top: 1px solid ${K.white.alpha(.1)};
|
|
2153
2153
|
padding-top: 12px;
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
2156
|
> .actions {
|
|
2157
|
-
${
|
|
2157
|
+
${W({
|
|
2158
2158
|
gap: 8,
|
|
2159
2159
|
justify: "right"
|
|
2160
2160
|
})};
|
|
2161
2161
|
padding-top: 4px;
|
|
2162
2162
|
|
|
2163
2163
|
button {
|
|
2164
|
-
${
|
|
2164
|
+
${W({ gap: 6 })};
|
|
2165
2165
|
font-size: 13px;
|
|
2166
2166
|
border-radius: 4px;
|
|
2167
2167
|
padding: 6px 12px;
|
|
2168
|
-
background: ${
|
|
2168
|
+
background: ${K.white.alpha(.06)};
|
|
2169
2169
|
--icon-size: 15px;
|
|
2170
2170
|
|
|
2171
2171
|
&:hover {
|
|
2172
|
-
background: ${
|
|
2172
|
+
background: ${K.white.alpha(.12)};
|
|
2173
2173
|
}
|
|
2174
2174
|
|
|
2175
2175
|
&.primary {
|
|
2176
|
-
background: ${
|
|
2177
|
-
color: ${
|
|
2176
|
+
background: ${K.primary.var};
|
|
2177
|
+
color: ${K.bgPrimary.var};
|
|
2178
2178
|
font-weight: 600;
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
@@ -2185,17 +2185,17 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2185
2185
|
font-size: 13px;
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
`,
|
|
2188
|
+
`, Hr = () => {
|
|
2189
2189
|
let e = {};
|
|
2190
|
-
for (let t of Object.keys(
|
|
2191
|
-
let [t, n] =
|
|
2190
|
+
for (let t of Object.keys(U.calls)) e[t] = !0;
|
|
2191
|
+
let [t, n] = wn(e), [r, i] = D(!0), [a, o] = D(!0), [s, c] = D(!1), l = k(() => Object.entries(U.calls));
|
|
2192
2192
|
function u(e) {
|
|
2193
2193
|
return s() ? Ht(e) : e;
|
|
2194
2194
|
}
|
|
2195
2195
|
function d() {
|
|
2196
2196
|
return {
|
|
2197
2197
|
exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2198
|
-
markers:
|
|
2198
|
+
markers: U.markers.map((e) => ({
|
|
2199
2199
|
label: e.label,
|
|
2200
2200
|
time: e.time,
|
|
2201
2201
|
timeISO: new Date(e.time).toISOString()
|
|
@@ -2224,26 +2224,26 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2224
2224
|
alias: e.alias,
|
|
2225
2225
|
payload: u(e.payload),
|
|
2226
2226
|
searchParams: e.searchParams,
|
|
2227
|
-
headers: e.headers ? u(
|
|
2227
|
+
headers: e.headers ? u(Ln(e)) : void 0,
|
|
2228
2228
|
...r() ? { response: u(e.response) } : {}
|
|
2229
2229
|
}))
|
|
2230
2230
|
})),
|
|
2231
|
-
...a() &&
|
|
2231
|
+
...a() && Sr.logs.length > 0 ? { logs: Sr.logs.map((e) => Dr(e, u)) } : {}
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
2234
2234
|
function f() {
|
|
2235
|
-
|
|
2235
|
+
kr(d(), "devtools-history"), ur("History downloaded"), zr.value = !1;
|
|
2236
2236
|
}
|
|
2237
2237
|
return (() => {
|
|
2238
|
-
var e =
|
|
2238
|
+
var e = Ar(), u = e.firstChild;
|
|
2239
2239
|
return u.firstChild, e.$$click = (e) => {
|
|
2240
|
-
e.target === e.currentTarget && (
|
|
2241
|
-
}, I(e,
|
|
2240
|
+
e.target === e.currentTarget && (zr.value = !1);
|
|
2241
|
+
}, I(e, Br), I(u, Vr), R(u, (() => {
|
|
2242
2242
|
var e = N(() => l().length === 0);
|
|
2243
|
-
return () => e() ?
|
|
2244
|
-
|
|
2243
|
+
return () => e() ? jr() : [
|
|
2244
|
+
Mr(),
|
|
2245
2245
|
(() => {
|
|
2246
|
-
var e =
|
|
2246
|
+
var e = Nr();
|
|
2247
2247
|
return R(e, A(z, {
|
|
2248
2248
|
onClick: () => {
|
|
2249
2249
|
for (let [e] of l()) n(e, !0);
|
|
@@ -2257,13 +2257,13 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2257
2257
|
}), null), e;
|
|
2258
2258
|
})(),
|
|
2259
2259
|
(() => {
|
|
2260
|
-
var e =
|
|
2260
|
+
var e = Pr();
|
|
2261
2261
|
return R(e, A(j, {
|
|
2262
2262
|
get each() {
|
|
2263
2263
|
return l();
|
|
2264
2264
|
},
|
|
2265
2265
|
children: ([e, r]) => (() => {
|
|
2266
|
-
var i =
|
|
2266
|
+
var i = Lr(), a = i.firstChild, o = a.nextSibling, s = o.nextSibling, c = s.firstChild;
|
|
2267
2267
|
return a.addEventListener("change", (t) => {
|
|
2268
2268
|
n(e, t.currentTarget.checked);
|
|
2269
2269
|
}), R(o, () => r.name), R(s, () => r.requests.length, c), R(s, () => r.requests.length === 1 ? "" : "s", null), O(() => a.checked = !!t[e]), i;
|
|
@@ -2271,26 +2271,26 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2271
2271
|
})), e;
|
|
2272
2272
|
})(),
|
|
2273
2273
|
(() => {
|
|
2274
|
-
var e =
|
|
2274
|
+
var e = Fr(), t = e.firstChild, n = t.firstChild, l = t.nextSibling, u = l.firstChild;
|
|
2275
2275
|
return n.addEventListener("change", (e) => {
|
|
2276
2276
|
i(() => e.currentTarget.checked);
|
|
2277
2277
|
}), R(e, (() => {
|
|
2278
|
-
var e = N(() =>
|
|
2278
|
+
var e = N(() => Sr.logs.length > 0);
|
|
2279
2279
|
return () => e() && (() => {
|
|
2280
|
-
var e =
|
|
2280
|
+
var e = Rr(), t = e.firstChild, n = t.nextSibling.nextSibling, r = n.firstChild;
|
|
2281
2281
|
return t.addEventListener("change", (e) => {
|
|
2282
2282
|
o(() => e.currentTarget.checked);
|
|
2283
|
-
}), R(n, () =>
|
|
2283
|
+
}), R(n, () => Sr.logs.length, r), O(() => t.checked = a()), e;
|
|
2284
2284
|
})();
|
|
2285
2285
|
})(), l), u.addEventListener("change", (e) => {
|
|
2286
2286
|
c(() => e.currentTarget.checked);
|
|
2287
2287
|
}), O(() => n.checked = r()), O(() => u.checked = s()), e;
|
|
2288
2288
|
})(),
|
|
2289
2289
|
(() => {
|
|
2290
|
-
var e =
|
|
2290
|
+
var e = Ir();
|
|
2291
2291
|
return R(e, A(z, {
|
|
2292
2292
|
onClick: () => {
|
|
2293
|
-
|
|
2293
|
+
zr.value = !1;
|
|
2294
2294
|
},
|
|
2295
2295
|
children: "Cancel"
|
|
2296
2296
|
}), null), R(e, A(z, {
|
|
@@ -2301,8 +2301,8 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2301
2301
|
}), null), R(e, A(z, {
|
|
2302
2302
|
class: "primary",
|
|
2303
2303
|
onClick: () => {
|
|
2304
|
-
|
|
2305
|
-
|
|
2304
|
+
Or(JSON.stringify(d(), null, 2)).then(() => {
|
|
2305
|
+
zr.value = !1;
|
|
2306
2306
|
});
|
|
2307
2307
|
},
|
|
2308
2308
|
get children() {
|
|
@@ -2317,32 +2317,32 @@ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("
|
|
|
2317
2317
|
it(["click"]);
|
|
2318
2318
|
//#endregion
|
|
2319
2319
|
//#region src/components/Toast.tsx
|
|
2320
|
-
var
|
|
2320
|
+
var Ur = /*#__PURE__*/ P("<div>"), Wr = B`
|
|
2321
2321
|
&&& {
|
|
2322
2322
|
position: absolute;
|
|
2323
2323
|
bottom: 16px;
|
|
2324
2324
|
left: 50%;
|
|
2325
2325
|
transform: translateX(-50%);
|
|
2326
2326
|
z-index: 100;
|
|
2327
|
-
background: ${
|
|
2328
|
-
color: ${
|
|
2329
|
-
border: 1px solid ${
|
|
2327
|
+
background: ${K.bgSecondary.var};
|
|
2328
|
+
color: ${K.white.var};
|
|
2329
|
+
border: 1px solid ${K.secondary.alpha(.4)};
|
|
2330
2330
|
border-radius: 6px;
|
|
2331
2331
|
padding: 8px 16px;
|
|
2332
2332
|
font-size: 13px;
|
|
2333
|
-
font-family: ${
|
|
2334
|
-
box-shadow: ${
|
|
2333
|
+
font-family: ${q.decorative};
|
|
2334
|
+
box-shadow: ${sr.hardShadow};
|
|
2335
2335
|
pointer-events: none;
|
|
2336
2336
|
}
|
|
2337
|
-
`,
|
|
2337
|
+
`, Gr = () => A(M, {
|
|
2338
2338
|
get when() {
|
|
2339
|
-
return
|
|
2339
|
+
return cr.value;
|
|
2340
2340
|
},
|
|
2341
2341
|
get children() {
|
|
2342
|
-
var e =
|
|
2343
|
-
return I(e,
|
|
2342
|
+
var e = Ur();
|
|
2343
|
+
return I(e, Wr), R(e, () => cr.value), e;
|
|
2344
2344
|
}
|
|
2345
|
-
}),
|
|
2345
|
+
}), Kr = /*#__PURE__*/ P("<div>"), qr = B`
|
|
2346
2346
|
&&& {
|
|
2347
2347
|
position: relative;
|
|
2348
2348
|
z-index: 10;
|
|
@@ -2361,17 +2361,17 @@ var Wr = /*#__PURE__*/ P("<div>"), Gr = B`
|
|
|
2361
2361
|
|
|
2362
2362
|
&:hover::before,
|
|
2363
2363
|
&.dragging::before {
|
|
2364
|
-
background: ${
|
|
2364
|
+
background: ${K.secondary.alpha(.5)};
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
`;
|
|
2368
|
-
function
|
|
2368
|
+
function Jr(e) {
|
|
2369
2369
|
return Array.isArray(e);
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2372
|
-
return
|
|
2371
|
+
function Yr(e) {
|
|
2372
|
+
return Jr(e) && e.every((e) => typeof e == "number" && Number.isFinite(e));
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2374
|
+
function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
|
|
2375
2375
|
let r = `app-devtools-panels-${e}`;
|
|
2376
2376
|
function i(e) {
|
|
2377
2377
|
let t = e.reduce((e, t) => e + t, 0);
|
|
@@ -2382,7 +2382,7 @@ function Zr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
|
|
|
2382
2382
|
let e = window.localStorage.getItem(r);
|
|
2383
2383
|
if (!e) return null;
|
|
2384
2384
|
let n = JSON.parse(e);
|
|
2385
|
-
return !
|
|
2385
|
+
return !Yr(n) || n.length !== t.length ? null : i(n);
|
|
2386
2386
|
} catch {
|
|
2387
2387
|
return null;
|
|
2388
2388
|
}
|
|
@@ -2392,14 +2392,14 @@ function Zr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
|
|
|
2392
2392
|
window.localStorage.setItem(r, JSON.stringify(e));
|
|
2393
2393
|
} catch {}
|
|
2394
2394
|
}
|
|
2395
|
-
let s =
|
|
2395
|
+
let s = H(a() ?? i(t));
|
|
2396
2396
|
function c() {
|
|
2397
2397
|
return s.value.map((e) => `minmax(0, ${e}fr)`).join(" 0px ");
|
|
2398
2398
|
}
|
|
2399
2399
|
function l(e) {
|
|
2400
|
-
let r =
|
|
2400
|
+
let r = H(!1);
|
|
2401
2401
|
return (() => {
|
|
2402
|
-
var a =
|
|
2402
|
+
var a = Kr();
|
|
2403
2403
|
return a.$$pointerdown = (t) => {
|
|
2404
2404
|
let i = t.currentTarget.parentElement;
|
|
2405
2405
|
if (!i) return;
|
|
@@ -2419,7 +2419,7 @@ function Zr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
|
|
|
2419
2419
|
a.addEventListener("pointermove", d), a.addEventListener("pointerup", f), a.addEventListener("pointercancel", f);
|
|
2420
2420
|
}, a.$$dblclick = () => {
|
|
2421
2421
|
s.value = i(t), o(s.value);
|
|
2422
|
-
}, I(a,
|
|
2422
|
+
}, I(a, qr), O(() => a.classList.toggle("dragging", !!r.value)), a;
|
|
2423
2423
|
})();
|
|
2424
2424
|
}
|
|
2425
2425
|
return {
|
|
@@ -2430,42 +2430,42 @@ function Zr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
|
|
|
2430
2430
|
it(["dblclick", "pointerdown"]);
|
|
2431
2431
|
//#endregion
|
|
2432
2432
|
//#region src/stores/uiStore.ts
|
|
2433
|
-
var
|
|
2433
|
+
var Zr = H(!1), [J, Qr] = wn({
|
|
2434
2434
|
selectedPage: "explorer",
|
|
2435
2435
|
selectedCall: null,
|
|
2436
2436
|
selectedRequest: null,
|
|
2437
2437
|
selectedTab: null,
|
|
2438
2438
|
selectedSubitem: null
|
|
2439
|
-
}),
|
|
2439
|
+
}), Y = "\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: norma;\n max-width: 100%;\n", $r = B`
|
|
2440
2440
|
font-size: 10px;
|
|
2441
|
-
font-family: ${
|
|
2441
|
+
font-family: ${q.decorative};
|
|
2442
2442
|
font-weight: 600;
|
|
2443
2443
|
text-transform: uppercase;
|
|
2444
2444
|
border-radius: 4px;
|
|
2445
2445
|
padding: 1px 4px;
|
|
2446
2446
|
flex-shrink: 0;
|
|
2447
|
-
color: ${
|
|
2448
|
-
background: ${
|
|
2447
|
+
color: ${K.white.alpha(.85)};
|
|
2448
|
+
background: ${K.white.alpha(.12)};
|
|
2449
2449
|
|
|
2450
2450
|
&.get {
|
|
2451
|
-
color: ${
|
|
2452
|
-
background: ${
|
|
2451
|
+
color: ${K.secondary.var};
|
|
2452
|
+
background: ${K.secondary.alpha(.14)};
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
2455
|
&.post {
|
|
2456
|
-
color: ${
|
|
2457
|
-
background: ${
|
|
2456
|
+
color: ${K.success.var};
|
|
2457
|
+
background: ${K.success.alpha(.14)};
|
|
2458
2458
|
}
|
|
2459
2459
|
|
|
2460
2460
|
&.put,
|
|
2461
2461
|
&.patch {
|
|
2462
|
-
color: ${
|
|
2463
|
-
background: ${
|
|
2462
|
+
color: ${K.warning.var};
|
|
2463
|
+
background: ${K.warning.alpha(.14)};
|
|
2464
2464
|
}
|
|
2465
2465
|
|
|
2466
2466
|
&.delete {
|
|
2467
|
-
color: ${
|
|
2468
|
-
background: ${
|
|
2467
|
+
color: ${K.error.var};
|
|
2468
|
+
background: ${K.error.alpha(.14)};
|
|
2469
2469
|
}
|
|
2470
2470
|
|
|
2471
2471
|
&.mutation {
|
|
@@ -2474,22 +2474,22 @@ var Qr = en(!1), [q, $r] = Tn({
|
|
|
2474
2474
|
}
|
|
2475
2475
|
|
|
2476
2476
|
&.ws-send {
|
|
2477
|
-
color: ${
|
|
2478
|
-
background: ${
|
|
2477
|
+
color: ${K.primary.var};
|
|
2478
|
+
background: ${K.primary.alpha(.14)};
|
|
2479
2479
|
}
|
|
2480
2480
|
|
|
2481
2481
|
&.ws-receive {
|
|
2482
|
-
color: ${
|
|
2483
|
-
background: ${
|
|
2482
|
+
color: ${K.secondary.var};
|
|
2483
|
+
background: ${K.secondary.alpha(.14)};
|
|
2484
2484
|
}
|
|
2485
|
-
`,
|
|
2485
|
+
`, ei = [
|
|
2486
2486
|
"get",
|
|
2487
2487
|
"post",
|
|
2488
2488
|
"put",
|
|
2489
2489
|
"patch",
|
|
2490
2490
|
"delete"
|
|
2491
2491
|
];
|
|
2492
|
-
function
|
|
2492
|
+
function ti({ type: e, subType: t, method: n }) {
|
|
2493
2493
|
if (e === "ws") return t === "send" ? {
|
|
2494
2494
|
label: "↑ send",
|
|
2495
2495
|
class: "ws-send",
|
|
@@ -2503,7 +2503,7 @@ function ni({ type: e, subType: t, method: n }) {
|
|
|
2503
2503
|
let t = n.toLowerCase();
|
|
2504
2504
|
return {
|
|
2505
2505
|
label: n,
|
|
2506
|
-
class:
|
|
2506
|
+
class: ei.includes(t) ? t : "",
|
|
2507
2507
|
description: `${e} (${n})`
|
|
2508
2508
|
};
|
|
2509
2509
|
}
|
|
@@ -2531,28 +2531,28 @@ function ni({ type: e, subType: t, method: n }) {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
//#endregion
|
|
2533
2533
|
//#region src/pages/api-explorer/ApiExplorerMenuItem.tsx
|
|
2534
|
-
var
|
|
2534
|
+
var ni = /*#__PURE__*/ P("<div>"), ri = /*#__PURE__*/ P("<span>"), ii = /*#__PURE__*/ P("<div><div class=call>"), ai = B`
|
|
2535
2535
|
&&& {
|
|
2536
2536
|
font-size: 14px;
|
|
2537
|
-
${
|
|
2537
|
+
${G()};
|
|
2538
2538
|
|
|
2539
2539
|
> .call {
|
|
2540
2540
|
padding: 4px 12px;
|
|
2541
|
-
${
|
|
2541
|
+
${W()};
|
|
2542
2542
|
opacity: 0.8;
|
|
2543
2543
|
|
|
2544
2544
|
&.selected {
|
|
2545
2545
|
opacity: 1;
|
|
2546
|
-
background-color: ${
|
|
2546
|
+
background-color: ${K.secondary.alpha(.16)};
|
|
2547
2547
|
}
|
|
2548
2548
|
|
|
2549
2549
|
> .call-button {
|
|
2550
2550
|
text-align: left;
|
|
2551
|
-
${
|
|
2551
|
+
${W({ gap: 8 })};
|
|
2552
2552
|
flex: 1 1;
|
|
2553
2553
|
|
|
2554
2554
|
> span {
|
|
2555
|
-
${
|
|
2555
|
+
${Y};
|
|
2556
2556
|
flex-shrink: 1;
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
@@ -2564,11 +2564,11 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2564
2564
|
padding-left: 14px;
|
|
2565
2565
|
margin-left: 16px;
|
|
2566
2566
|
padding-right: 0;
|
|
2567
|
-
border-left: 1px solid ${
|
|
2568
|
-
${
|
|
2567
|
+
border-left: 1px solid ${K.white.alpha(.1)};
|
|
2568
|
+
${W()};
|
|
2569
2569
|
|
|
2570
2570
|
span {
|
|
2571
|
-
${
|
|
2571
|
+
${Y};
|
|
2572
2572
|
opacity: 0.6;
|
|
2573
2573
|
padding: 0 8px;
|
|
2574
2574
|
padding-right: 0;
|
|
@@ -2578,7 +2578,7 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2578
2578
|
|
|
2579
2579
|
&.selected span {
|
|
2580
2580
|
opacity: 1;
|
|
2581
|
-
background-color: ${
|
|
2581
|
+
background-color: ${K.secondary.alpha(.16)};
|
|
2582
2582
|
}
|
|
2583
2583
|
|
|
2584
2584
|
&:first-of-type {
|
|
@@ -2587,7 +2587,7 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2587
2587
|
|
|
2588
2588
|
&:last-of-type {
|
|
2589
2589
|
border-radius: 0 0 0 10px;
|
|
2590
|
-
border-bottom: 1px solid ${
|
|
2590
|
+
border-bottom: 1px solid ${K.white.alpha(.1)};
|
|
2591
2591
|
padding-bottom: 10px;
|
|
2592
2592
|
margin-bottom: 4px;
|
|
2593
2593
|
}
|
|
@@ -2601,35 +2601,35 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2601
2601
|
}
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
|
-
`,
|
|
2605
|
-
let t = k(() => e.item), n = k(() => e.currentCallId), r =
|
|
2604
|
+
`, oi = (e) => {
|
|
2605
|
+
let t = k(() => e.item), n = k(() => e.currentCallId), r = H(e.item.subitemsWithAlias.length < 4), i = ti({
|
|
2606
2606
|
type: e.item.type,
|
|
2607
2607
|
subType: e.item.subType,
|
|
2608
2608
|
method: e.item.requests.at(-1)?.method
|
|
2609
2609
|
});
|
|
2610
2610
|
return (() => {
|
|
2611
|
-
var e =
|
|
2612
|
-
return I(e,
|
|
2611
|
+
var e = ii(), a = e.firstChild;
|
|
2612
|
+
return I(e, ai), R(a, A(z, {
|
|
2613
2613
|
onClick: () => {
|
|
2614
|
-
|
|
2614
|
+
Qr({
|
|
2615
2615
|
selectedCall: t().id,
|
|
2616
2616
|
selectedSubitem: null,
|
|
2617
|
-
selectedRequest:
|
|
2617
|
+
selectedRequest: si(t())
|
|
2618
2618
|
});
|
|
2619
2619
|
},
|
|
2620
2620
|
class: "call-button",
|
|
2621
2621
|
get children() {
|
|
2622
2622
|
return [(() => {
|
|
2623
|
-
var e =
|
|
2623
|
+
var e = ni();
|
|
2624
2624
|
return R(e, () => i.label), O((t) => {
|
|
2625
|
-
var n = `${
|
|
2625
|
+
var n = `${$r} ${i.class}`, r = i.description;
|
|
2626
2626
|
return n !== t.e && I(e, t.e = n), r !== t.t && F(e, "title", t.t = r), t;
|
|
2627
2627
|
}, {
|
|
2628
2628
|
e: void 0,
|
|
2629
2629
|
t: void 0
|
|
2630
2630
|
}), e;
|
|
2631
2631
|
})(), (() => {
|
|
2632
|
-
var e =
|
|
2632
|
+
var e = ri();
|
|
2633
2633
|
return R(e, () => t().name), O(() => F(e, "title", t().name)), e;
|
|
2634
2634
|
})()];
|
|
2635
2635
|
}
|
|
@@ -2659,17 +2659,17 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2659
2659
|
children: (e) => A(z, {
|
|
2660
2660
|
class: "subitem",
|
|
2661
2661
|
get classList() {
|
|
2662
|
-
return { selected: n() === t().id &&
|
|
2662
|
+
return { selected: n() === t().id && J.selectedSubitem === e };
|
|
2663
2663
|
},
|
|
2664
2664
|
onClick: () => {
|
|
2665
|
-
|
|
2665
|
+
Qr({
|
|
2666
2666
|
selectedCall: t().id,
|
|
2667
2667
|
selectedSubitem: e,
|
|
2668
|
-
selectedRequest:
|
|
2668
|
+
selectedRequest: si(t(), e)
|
|
2669
2669
|
});
|
|
2670
2670
|
},
|
|
2671
2671
|
get children() {
|
|
2672
|
-
var t =
|
|
2672
|
+
var t = ri();
|
|
2673
2673
|
return R(t, e), t;
|
|
2674
2674
|
}
|
|
2675
2675
|
})
|
|
@@ -2678,26 +2678,26 @@ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PUR
|
|
|
2678
2678
|
}), null), O(() => a.classList.toggle("selected", n() === t().id)), e;
|
|
2679
2679
|
})();
|
|
2680
2680
|
};
|
|
2681
|
-
function
|
|
2681
|
+
function si(e, t) {
|
|
2682
2682
|
let n = t ? e.requests.filter((e) => e.alias === t) : e.requests;
|
|
2683
2683
|
return (n.findLast((e) => e.status !== "pending") || n.at(-1))?.id ?? null;
|
|
2684
2684
|
}
|
|
2685
2685
|
//#endregion
|
|
2686
2686
|
//#region src/style/helpers/transition.ts
|
|
2687
|
-
var
|
|
2687
|
+
var ci = {
|
|
2688
2688
|
short: 160,
|
|
2689
2689
|
medium: 240,
|
|
2690
2690
|
long: 360
|
|
2691
|
-
},
|
|
2691
|
+
}, li = {
|
|
2692
2692
|
inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
2693
2693
|
out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
|
|
2694
2694
|
in: "cubic-bezier(0.4, 0.0, 1, 1)",
|
|
2695
2695
|
linear: "linear"
|
|
2696
|
-
},
|
|
2697
|
-
function
|
|
2696
|
+
}, ui = (e) => e === void 0 ? "" : `${e}ms`;
|
|
2697
|
+
function di(e = {}) {
|
|
2698
2698
|
let { properties: t, duration: n, ease: r, delay: i } = e;
|
|
2699
2699
|
return `
|
|
2700
|
-
transition: ${
|
|
2700
|
+
transition: ${ui(typeof n == "number" ? n : ci[n || "medium"])} ${li[r || "inOut"]} ${ui(i)};
|
|
2701
2701
|
${t ? `
|
|
2702
2702
|
transition-property: ${t.join(", ") || ""};
|
|
2703
2703
|
` : ""}
|
|
@@ -2705,11 +2705,11 @@ function fi(e = {}) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
//#endregion
|
|
2707
2707
|
//#region utils/normalizeString.ts
|
|
2708
|
-
var
|
|
2708
|
+
var fi = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
|
|
2709
2709
|
//#endregion
|
|
2710
2710
|
//#region utils/searchQueryMatch.ts
|
|
2711
|
-
function
|
|
2712
|
-
let n =
|
|
2711
|
+
function pi(e, t) {
|
|
2712
|
+
let n = fi(String(t)).indexOf(fi(String(e)));
|
|
2713
2713
|
return {
|
|
2714
2714
|
matched: n !== -1,
|
|
2715
2715
|
matchedIndex: n
|
|
@@ -2717,7 +2717,7 @@ function mi(e, t) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
//#endregion
|
|
2719
2719
|
//#region utils/sortBy.ts
|
|
2720
|
-
function
|
|
2720
|
+
function mi(e, t, { lowerFirst: n } = {}) {
|
|
2721
2721
|
return [...e].sort((e, r) => {
|
|
2722
2722
|
let i = t(e), a = t(r);
|
|
2723
2723
|
return i < a ? n ? -1 : 1 : i > a ? n ? 1 : -1 : 0;
|
|
@@ -2725,78 +2725,78 @@ function hi(e, t, { lowerFirst: n } = {}) {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
//#endregion
|
|
2727
2727
|
//#region utils/searchItems.ts
|
|
2728
|
-
function
|
|
2728
|
+
function hi({ items: e, searchQuery: t, getStringToMatch: n }) {
|
|
2729
2729
|
let r = [];
|
|
2730
2730
|
for (let i of e) {
|
|
2731
|
-
let e =
|
|
2731
|
+
let e = pi(t, n(i));
|
|
2732
2732
|
e.matched && r.push({
|
|
2733
2733
|
item: i,
|
|
2734
2734
|
matchedIndex: e.matchedIndex
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
2737
|
-
return
|
|
2737
|
+
return mi(r, (e) => e.matchedIndex, { lowerFirst: !0 }).map(({ item: e }) => e);
|
|
2738
2738
|
}
|
|
2739
2739
|
//#endregion
|
|
2740
2740
|
//#region src/pages/api-explorer/ApiExplorerMenu.tsx
|
|
2741
|
-
var
|
|
2741
|
+
var gi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type=text placeholder=Search></label><div>"), _i = B`
|
|
2742
2742
|
&&& {
|
|
2743
|
-
${
|
|
2744
|
-
border-right: 1px solid ${
|
|
2743
|
+
${G()};
|
|
2744
|
+
border-right: 1px solid ${K.white.alpha(.1)};
|
|
2745
2745
|
|
|
2746
2746
|
> h1 {
|
|
2747
2747
|
font-size: 18px;
|
|
2748
2748
|
padding-left: 12px;
|
|
2749
2749
|
padding-top: 10px;
|
|
2750
|
-
font-family: ${
|
|
2751
|
-
color: ${
|
|
2750
|
+
font-family: ${q.decorative};
|
|
2751
|
+
color: ${K.secondary.var};
|
|
2752
2752
|
padding-bottom: 12px;
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
`,
|
|
2755
|
+
`, vi = B`
|
|
2756
2756
|
&&& {
|
|
2757
|
-
${
|
|
2757
|
+
${G()};
|
|
2758
2758
|
flex: 1 1;
|
|
2759
2759
|
overflow-y: auto;
|
|
2760
2760
|
padding-bottom: 16px;
|
|
2761
2761
|
}
|
|
2762
|
-
`,
|
|
2762
|
+
`, yi = B`
|
|
2763
2763
|
&&& {
|
|
2764
|
-
${
|
|
2764
|
+
${W({ gap: 8 })};
|
|
2765
2765
|
margin: 0 10px;
|
|
2766
2766
|
margin-bottom: 12px;
|
|
2767
2767
|
|
|
2768
2768
|
display: grid;
|
|
2769
2769
|
grid-template-columns: 14px 1fr;
|
|
2770
|
-
background: ${
|
|
2770
|
+
background: ${K.white.alpha(.05)};
|
|
2771
2771
|
border-radius: 4px;
|
|
2772
2772
|
--icon-size: 16px;
|
|
2773
2773
|
padding: 4px 0;
|
|
2774
2774
|
padding-left: 6px;
|
|
2775
2775
|
|
|
2776
2776
|
.icon {
|
|
2777
|
-
color: ${
|
|
2777
|
+
color: ${K.secondary.var};
|
|
2778
2778
|
}
|
|
2779
2779
|
|
|
2780
2780
|
input {
|
|
2781
2781
|
border: none;
|
|
2782
2782
|
background: transparent;
|
|
2783
|
-
color: ${
|
|
2783
|
+
color: ${K.white.var};
|
|
2784
2784
|
|
|
2785
2785
|
&:focus {
|
|
2786
2786
|
outline: none;
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
`,
|
|
2790
|
+
`, bi = B`
|
|
2791
2791
|
&&& {
|
|
2792
|
-
${
|
|
2792
|
+
${W({ gap: 16 })};
|
|
2793
2793
|
padding-left: 15px;
|
|
2794
2794
|
margin-bottom: 10px;
|
|
2795
2795
|
|
|
2796
2796
|
> button {
|
|
2797
2797
|
font-size: 14px;
|
|
2798
2798
|
opacity: 0.5;
|
|
2799
|
-
${
|
|
2799
|
+
${di()};
|
|
2800
2800
|
|
|
2801
2801
|
&:hover {
|
|
2802
2802
|
opacity: 1;
|
|
@@ -2804,20 +2804,20 @@ var _i = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
|
|
|
2804
2804
|
|
|
2805
2805
|
&.active {
|
|
2806
2806
|
opacity: 1;
|
|
2807
|
-
color: ${
|
|
2807
|
+
color: ${K.primary.var};
|
|
2808
2808
|
}
|
|
2809
2809
|
}
|
|
2810
2810
|
}
|
|
2811
|
-
`,
|
|
2812
|
-
let e =
|
|
2813
|
-
let [r = "", i = ""] = e.value.split(">"), a = Object.entries(
|
|
2811
|
+
`, xi = H("api"), Si = () => {
|
|
2812
|
+
let e = H(""), t = H(!1), n = /* @__PURE__ */ new Map(), r = $t(() => {
|
|
2813
|
+
let [r = "", i = ""] = e.value.split(">"), a = Object.entries(U.calls), o = [];
|
|
2814
2814
|
for (let [e, t] of a) {
|
|
2815
2815
|
let n = /* @__PURE__ */ new Set();
|
|
2816
|
-
if (!(
|
|
2816
|
+
if (!(xi.value === "api" && t.type !== "fetch" && t.type !== "mutation") && !(xi.value === "ws" && t.type !== "ws")) {
|
|
2817
2817
|
for (let e of t.requests) e.alias && n.add(e.alias);
|
|
2818
2818
|
o.push({
|
|
2819
2819
|
id: e,
|
|
2820
|
-
subitemsWithAlias:
|
|
2820
|
+
subitemsWithAlias: hi({
|
|
2821
2821
|
items: [...n],
|
|
2822
2822
|
searchQuery: i.trim(),
|
|
2823
2823
|
getStringToMatch(e) {
|
|
@@ -2831,27 +2831,27 @@ var _i = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
|
|
|
2831
2831
|
return t.value ? o.sort((e, t) => {
|
|
2832
2832
|
let r = n.get(e.id), i = n.get(t.id);
|
|
2833
2833
|
return r !== void 0 && i !== void 0 ? r - i : r === void 0 && i === void 0 ? t.lastRequestStartTime - e.lastRequestStartTime : r === void 0 ? 1 : -1;
|
|
2834
|
-
}) : (o.sort((e, t) => t.lastRequestStartTime - e.lastRequestStartTime), n = new Map(o.map((e, t) => [e.id, t]))),
|
|
2834
|
+
}) : (o.sort((e, t) => t.lastRequestStartTime - e.lastRequestStartTime), n = new Map(o.map((e, t) => [e.id, t]))), hi({
|
|
2835
2835
|
items: o,
|
|
2836
2836
|
searchQuery: r.trim(),
|
|
2837
2837
|
getStringToMatch(e) {
|
|
2838
2838
|
return e.name;
|
|
2839
2839
|
}
|
|
2840
2840
|
});
|
|
2841
|
-
}, "id"), i = k(() =>
|
|
2841
|
+
}, "id"), i = k(() => J.selectedCall);
|
|
2842
2842
|
return (() => {
|
|
2843
|
-
var n =
|
|
2844
|
-
return I(n,
|
|
2843
|
+
var n = gi(), a = n.firstChild.nextSibling, o = a.firstChild, s = o.nextSibling, c = s.nextSibling, l = a.nextSibling, u = l.firstChild, d = l.nextSibling;
|
|
2844
|
+
return I(n, _i), I(a, bi), o.$$click = () => xi.set("api"), s.$$click = () => xi.set("ws"), c.$$click = () => xi.set("all"), I(l, yi), R(l, A(V, { name: "search" }), u), u.$$input = (t) => {
|
|
2845
2845
|
e.value = t.currentTarget.value;
|
|
2846
2846
|
}, d.addEventListener("mouseleave", () => {
|
|
2847
2847
|
t.value = !1;
|
|
2848
2848
|
}), d.addEventListener("mouseenter", () => {
|
|
2849
2849
|
t.value = !0;
|
|
2850
|
-
}), I(d,
|
|
2850
|
+
}), I(d, vi), R(d, A(j, {
|
|
2851
2851
|
get each() {
|
|
2852
2852
|
return r();
|
|
2853
2853
|
},
|
|
2854
|
-
children: (e, t) => A(
|
|
2854
|
+
children: (e, t) => A(oi, {
|
|
2855
2855
|
get index() {
|
|
2856
2856
|
return t();
|
|
2857
2857
|
},
|
|
@@ -2861,7 +2861,7 @@ var _i = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
|
|
|
2861
2861
|
}
|
|
2862
2862
|
})
|
|
2863
2863
|
})), O((e) => {
|
|
2864
|
-
var t =
|
|
2864
|
+
var t = xi.value === "api", n = xi.value === "ws", r = xi.value === "all";
|
|
2865
2865
|
return t !== e.e && o.classList.toggle("active", e.e = t), n !== e.t && s.classList.toggle("active", e.t = n), r !== e.a && c.classList.toggle("active", e.a = r), e;
|
|
2866
2866
|
}, {
|
|
2867
2867
|
e: void 0,
|
|
@@ -2873,10 +2873,10 @@ var _i = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
|
|
|
2873
2873
|
it(["click", "input"]);
|
|
2874
2874
|
//#endregion
|
|
2875
2875
|
//#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/typeGuards-CjiEoecn.mjs
|
|
2876
|
-
function
|
|
2876
|
+
function Ci(e) {
|
|
2877
2877
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function wi(e) {
|
|
2880
2880
|
if (!e || typeof e != "object") return !1;
|
|
2881
2881
|
let t = Object.getPrototypeOf(e);
|
|
2882
2882
|
if (t === null) return !0;
|
|
@@ -2887,10 +2887,10 @@ function Ti(e) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
//#endregion
|
|
2889
2889
|
//#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/assertions--46HN4J7.mjs
|
|
2890
|
-
var
|
|
2890
|
+
var Ti = Ci;
|
|
2891
2891
|
//#endregion
|
|
2892
2892
|
//#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/arrayUtils.mjs
|
|
2893
|
-
function
|
|
2893
|
+
function Ei(e, t, n = "asc") {
|
|
2894
2894
|
let r = Array.isArray(n) || typeof n == "string" ? n : n.order ?? "asc";
|
|
2895
2895
|
return [...e].sort((e, n) => {
|
|
2896
2896
|
let i = t(e), a = t(n), o = Array.isArray(i) ? i : [i], s = Array.isArray(a) ? a : [a];
|
|
@@ -2906,8 +2906,8 @@ function Di(e, t, n = "asc") {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
//#endregion
|
|
2908
2908
|
//#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/filterObjectOrArrayKeys.mjs
|
|
2909
|
-
var
|
|
2910
|
-
function
|
|
2909
|
+
var Di = /^(id_|key_|id-|key-)|(_id|_key|-id|-key)$/i;
|
|
2910
|
+
function Oi(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0, sortKeys: i = "simpleValuesFirst", sortPatterns: a }) {
|
|
2911
2911
|
function o(e, t) {
|
|
2912
2912
|
let n = t.split("."), r = e;
|
|
2913
2913
|
for (let e of n) {
|
|
@@ -2932,13 +2932,13 @@ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
|
|
|
2932
2932
|
default: return !1;
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
|
-
let c = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], l = c(t), u = c(n), d = l.length > 0, f = u.length > 0, p = l.flatMap(
|
|
2935
|
+
let c = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], l = c(t), u = c(n), d = l.length > 0, f = u.length > 0, p = l.flatMap(Mi), m = u.flatMap(Mi), { filterOnlyPatterns: h, combinedPatterns: g } = ji(p), _ = h.map(Ni), v = m.map(Ni), y = c(a).flatMap(Mi).map(Ni), ee = e;
|
|
2936
2936
|
if (g.length > 0) {
|
|
2937
2937
|
let t = /* @__PURE__ */ new Map();
|
|
2938
2938
|
for (let { filterPart: e, fieldPart: n } of g) t.has(e) || t.set(e, []), t.get(e).push(n);
|
|
2939
2939
|
let i = Array.isArray(e) ? [] : {};
|
|
2940
2940
|
for (let [a, o] of t) {
|
|
2941
|
-
let t =
|
|
2941
|
+
let t = Oi(Oi(e, {
|
|
2942
2942
|
filterKeys: [a],
|
|
2943
2943
|
rejectKeys: n,
|
|
2944
2944
|
rejectEmptyObjectsInArray: r
|
|
@@ -2992,9 +2992,9 @@ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
|
|
|
2992
2992
|
return y.length;
|
|
2993
2993
|
}
|
|
2994
2994
|
function re(e, t, n) {
|
|
2995
|
-
return n === "asc" ? [...e].sort() : n === "desc" ? [...e].sort().reverse() :
|
|
2995
|
+
return n === "asc" ? [...e].sort() : n === "desc" ? [...e].sort().reverse() : Ei(Ei(e, (e) => e), (e) => {
|
|
2996
2996
|
let n = t[e];
|
|
2997
|
-
return n == null || Array.isArray(n) && n.length === 0 ? 0 :
|
|
2997
|
+
return n == null || Array.isArray(n) && n.length === 0 ? 0 : wi(n) ? 1.99 + Object.keys(n).length * -.001 : Array.isArray(n) ? n.every((e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e == null) ? 1.9 + n.length * -.001 : 1.5 + n.length * -.01 : e === "id" || e === "key" ? 5 : Di.test(e) ? 4.5 : typeof n == "boolean" ? 4 : typeof n == "number" ? 3.5 : typeof n == "string" && n.length < 20 ? 3 : 2;
|
|
2998
2998
|
}, "desc");
|
|
2999
2999
|
}
|
|
3000
3000
|
function ie(e, t, n) {
|
|
@@ -3023,16 +3023,16 @@ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
|
|
|
3023
3023
|
}), a = e[n];
|
|
3024
3024
|
if (f && ne(r, a)) continue;
|
|
3025
3025
|
let c = d ? te(r, a) : !0, l = s || c;
|
|
3026
|
-
if (
|
|
3026
|
+
if (wi(a) || Array.isArray(a)) {
|
|
3027
3027
|
let e = S(a, r, l, i, !1, !0);
|
|
3028
3028
|
e !== void 0 && o.push(e);
|
|
3029
3029
|
} else l && o.push(a);
|
|
3030
3030
|
}
|
|
3031
3031
|
i.delete(e);
|
|
3032
|
-
let c = r ? o.filter((e) => !(
|
|
3032
|
+
let c = r ? o.filter((e) => !(wi(e) && Object.keys(e).length === 0)) : o;
|
|
3033
3033
|
return c.length === 0 && !n && !a ? void 0 : c;
|
|
3034
3034
|
}
|
|
3035
|
-
if (
|
|
3035
|
+
if (wi(e)) {
|
|
3036
3036
|
if (i.has(e)) throw TypeError("Circular references are not supported");
|
|
3037
3037
|
i.add(e);
|
|
3038
3038
|
let s = {}, c = n || !d, l = ie(Object.keys(e), e, t);
|
|
@@ -3043,9 +3043,9 @@ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
|
|
|
3043
3043
|
});
|
|
3044
3044
|
if (f && ne(r)) continue;
|
|
3045
3045
|
let a = e[n], o = d ? te(r) : !0, l = c || o;
|
|
3046
|
-
if (
|
|
3046
|
+
if (wi(a) || Array.isArray(a)) {
|
|
3047
3047
|
let e = S(a, r, l, i, !1, !1);
|
|
3048
|
-
if (e === void 0 || Array.isArray(e) && e.length === 0 && !l ||
|
|
3048
|
+
if (e === void 0 || Array.isArray(e) && e.length === 0 && !l || wi(e) && Object.keys(e).length === 0 && !l) continue;
|
|
3049
3049
|
s[n] = e;
|
|
3050
3050
|
} else l && (s[n] = a);
|
|
3051
3051
|
}
|
|
@@ -3055,7 +3055,7 @@ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
|
|
|
3055
3055
|
}, C = S(ee, [], !d, /* @__PURE__ */ new WeakSet(), !0, !1);
|
|
3056
3056
|
return C === void 0 ? Array.isArray(ee) ? [] : {} : C;
|
|
3057
3057
|
}
|
|
3058
|
-
function
|
|
3058
|
+
function ki(e) {
|
|
3059
3059
|
let t = [], n = "AND", r = e.startsWith("i"), i = r ? e.slice(1) : e, a = i.includes("&&"), o = i.includes(" || ");
|
|
3060
3060
|
if (a && o) throw Error("Mixing && and || operators in the same filter is not supported. Use separate filter patterns instead.");
|
|
3061
3061
|
let s = i.split("&&").map((e) => e.trim());
|
|
@@ -3063,11 +3063,11 @@ function Ai(e) {
|
|
|
3063
3063
|
n = "OR";
|
|
3064
3064
|
let i = e.split(" || ").map((e) => e.trim());
|
|
3065
3065
|
for (let e of i) {
|
|
3066
|
-
let n =
|
|
3066
|
+
let n = Ai(e, r);
|
|
3067
3067
|
n && t.push(n);
|
|
3068
3068
|
}
|
|
3069
3069
|
} else {
|
|
3070
|
-
let n =
|
|
3070
|
+
let n = Ai(e, r);
|
|
3071
3071
|
n && t.push(n);
|
|
3072
3072
|
}
|
|
3073
3073
|
return t.length === 0 ? null : {
|
|
@@ -3076,7 +3076,7 @@ function Ai(e) {
|
|
|
3076
3076
|
logic: n
|
|
3077
3077
|
};
|
|
3078
3078
|
}
|
|
3079
|
-
function
|
|
3079
|
+
function Ai(e, t = !1) {
|
|
3080
3080
|
let n = e.startsWith("%") ? e.slice(1) : e, r = null, i = -1, a = 0;
|
|
3081
3081
|
for (let [e, t] of [
|
|
3082
3082
|
["!*=", "!*="],
|
|
@@ -3113,7 +3113,7 @@ function ji(e, t = !1) {
|
|
|
3113
3113
|
caseInsensitive: t
|
|
3114
3114
|
};
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function ji(e) {
|
|
3117
3117
|
let t = [], n = [];
|
|
3118
3118
|
for (let r of e) {
|
|
3119
3119
|
let e = r.match(/^(.+\[[i%][^[\]]*\])\.(.+)$/);
|
|
@@ -3130,7 +3130,7 @@ function Mi(e) {
|
|
|
3130
3130
|
combinedPatterns: n
|
|
3131
3131
|
};
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function Mi(e) {
|
|
3134
3134
|
function t(e) {
|
|
3135
3135
|
let n = e.indexOf("(");
|
|
3136
3136
|
if (n === -1) return [e];
|
|
@@ -3147,7 +3147,7 @@ function Ni(e) {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
return t(e);
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function Ni(e) {
|
|
3151
3151
|
let t = [], n = 0, r = e.length, i = (e) => {
|
|
3152
3152
|
e.length !== 0 && t.push({
|
|
3153
3153
|
type: "KEY",
|
|
@@ -3165,7 +3165,7 @@ function Pi(e) {
|
|
|
3165
3165
|
if (a.startsWith("%") || a.startsWith("i%")) {
|
|
3166
3166
|
let e;
|
|
3167
3167
|
e = a.startsWith("i%") ? `i${a.slice(2)}` : a.startsWith("%") ? a.slice(1) : a;
|
|
3168
|
-
let n =
|
|
3168
|
+
let n = ki(e);
|
|
3169
3169
|
n && t.push(n);
|
|
3170
3170
|
} else if (a === "*") t.push({ type: "INDEX_ANY" });
|
|
3171
3171
|
else if (a.includes("-")) {
|
|
@@ -3211,74 +3211,74 @@ function Pi(e) {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
//#endregion
|
|
3213
3213
|
//#region src/components/JsonViewer/jsonSearch.ts
|
|
3214
|
-
function
|
|
3214
|
+
function Pi(e) {
|
|
3215
3215
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
3216
3216
|
}
|
|
3217
|
-
var
|
|
3218
|
-
function
|
|
3217
|
+
var Fi = "Key filter syntax:\nSeparate patterns with commas or new lines.\n\nRoot key: prop\nAny depth: **prop\nExact path: prop.nested\nSecond level: *.prop\n\nArrays:\nprop[0]\nprop[*].nested\nprop[0-2]\nprop[4-*]\n\nGroups:\nprop.(id|name|status)\n(users|admins)[*].name\n\nArray value filters:\nusers[%name=\"John\"]\nusers[%name*=\"oh\"]\nusers[i%name=\"john\"]\nusers[%age=30 && %role=\"admin\"]", Ii = /[\n,]/, Li = "__original_index", Ri = { matched: !1 };
|
|
3218
|
+
function zi(e) {
|
|
3219
3219
|
return e === null ? "null" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "bigint" ? `${e.toString()}n` : e === void 0 ? "undefined" : typeof e == "symbol" ? e.toString() : typeof e == "function" ? "[Function]" : "[Object]";
|
|
3220
3220
|
}
|
|
3221
|
+
function Bi(e) {
|
|
3222
|
+
return Pi(e) || Array.isArray(e) && e.every(Pi);
|
|
3223
|
+
}
|
|
3221
3224
|
function Vi(e) {
|
|
3222
|
-
return
|
|
3225
|
+
return e.split(Ii).map((e) => e.trim()).filter((e) => e.length > 0);
|
|
3223
3226
|
}
|
|
3224
3227
|
function Hi(e) {
|
|
3225
|
-
return
|
|
3228
|
+
return Pi(e) && Object.keys(e).length === 0;
|
|
3226
3229
|
}
|
|
3227
3230
|
function Ui(e) {
|
|
3228
|
-
return Fi(e) && Object.keys(e).length === 0;
|
|
3229
|
-
}
|
|
3230
|
-
function Wi(e) {
|
|
3231
3231
|
return e.match.matched;
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3234
|
-
return
|
|
3235
|
-
[
|
|
3233
|
+
function Wi(e, t) {
|
|
3234
|
+
return Pi(e) ? {
|
|
3235
|
+
[Li]: t,
|
|
3236
3236
|
...e
|
|
3237
3237
|
} : {
|
|
3238
|
-
[
|
|
3238
|
+
[Li]: t,
|
|
3239
3239
|
value: e
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3243
|
-
return n ?
|
|
3242
|
+
function Gi(e, t, n) {
|
|
3243
|
+
return n ? Wi(e, t) : e;
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3245
|
+
function Ki(e, t) {
|
|
3246
3246
|
if (Array.isArray(e)) {
|
|
3247
3247
|
let n = [];
|
|
3248
3248
|
for (let [r, i] of e.entries()) {
|
|
3249
|
-
let e =
|
|
3250
|
-
|
|
3249
|
+
let e = Ki(i, t);
|
|
3250
|
+
Hi(e) || n.push({
|
|
3251
3251
|
index: r,
|
|
3252
3252
|
value: e
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
3255
|
let r = n.length !== e.length;
|
|
3256
|
-
return n.map((e) => r ?
|
|
3256
|
+
return n.map((e) => r ? Gi(e.value, e.index, t) : e.value);
|
|
3257
3257
|
}
|
|
3258
|
-
if (
|
|
3258
|
+
if (Pi(e)) {
|
|
3259
3259
|
let n = {};
|
|
3260
3260
|
for (let [r, i] of Object.entries(e)) {
|
|
3261
|
-
let e =
|
|
3262
|
-
|
|
3261
|
+
let e = Ki(i, t);
|
|
3262
|
+
Hi(e) || (n[r] = e);
|
|
3263
3263
|
}
|
|
3264
3264
|
return n;
|
|
3265
3265
|
}
|
|
3266
3266
|
return e;
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function qi(e, t, n) {
|
|
3269
3269
|
let r = t.toLowerCase();
|
|
3270
3270
|
function i(e, t) {
|
|
3271
3271
|
if (Array.isArray(e)) {
|
|
3272
3272
|
let r = e.map((e, n) => ({
|
|
3273
3273
|
index: n,
|
|
3274
3274
|
match: i(e, [...t, `[${n}]`])
|
|
3275
|
-
})).filter(
|
|
3275
|
+
})).filter(Ui), a = r.length !== e.length, o = r.map((e) => a ? Gi(e.match.value, e.index, n) : e.match.value);
|
|
3276
3276
|
return r.length > 0 ? {
|
|
3277
3277
|
matched: !0,
|
|
3278
3278
|
value: o
|
|
3279
|
-
} :
|
|
3279
|
+
} : Ri;
|
|
3280
3280
|
}
|
|
3281
|
-
if (
|
|
3281
|
+
if (Pi(e)) {
|
|
3282
3282
|
let n = {};
|
|
3283
3283
|
for (let [a, o] of Object.entries(e)) {
|
|
3284
3284
|
let e = [...t, a];
|
|
@@ -3292,16 +3292,16 @@ function Ji(e, t, n) {
|
|
|
3292
3292
|
return Object.keys(n).length > 0 ? {
|
|
3293
3293
|
matched: !0,
|
|
3294
3294
|
value: n
|
|
3295
|
-
} :
|
|
3295
|
+
} : Ri;
|
|
3296
3296
|
}
|
|
3297
|
-
return
|
|
3297
|
+
return zi(e).toLowerCase().includes(r) ? {
|
|
3298
3298
|
matched: !0,
|
|
3299
3299
|
value: e
|
|
3300
|
-
} :
|
|
3300
|
+
} : Ri;
|
|
3301
3301
|
}
|
|
3302
3302
|
return i(e, []);
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Ji(e, t, n, r) {
|
|
3305
3305
|
let i = t.trim();
|
|
3306
3306
|
if (!i) return {
|
|
3307
3307
|
value: e,
|
|
@@ -3309,7 +3309,7 @@ function Yi(e, t, n, r) {
|
|
|
3309
3309
|
message: void 0
|
|
3310
3310
|
};
|
|
3311
3311
|
if (n === "text") {
|
|
3312
|
-
let t =
|
|
3312
|
+
let t = qi(e, i, r);
|
|
3313
3313
|
return t.matched ? {
|
|
3314
3314
|
value: t.value,
|
|
3315
3315
|
isEmpty: !1,
|
|
@@ -3320,14 +3320,14 @@ function Yi(e, t, n, r) {
|
|
|
3320
3320
|
message: void 0
|
|
3321
3321
|
};
|
|
3322
3322
|
}
|
|
3323
|
-
if (!
|
|
3323
|
+
if (!Bi(e)) return {
|
|
3324
3324
|
value: void 0,
|
|
3325
3325
|
isEmpty: !0,
|
|
3326
3326
|
message: "Key filters support objects and arrays of objects."
|
|
3327
3327
|
};
|
|
3328
|
-
let a =
|
|
3328
|
+
let a = Vi(i), o;
|
|
3329
3329
|
try {
|
|
3330
|
-
o =
|
|
3330
|
+
o = Oi(e, {
|
|
3331
3331
|
filterKeys: a,
|
|
3332
3332
|
rejectEmptyObjectsInArray: !1,
|
|
3333
3333
|
sortKeys: !1
|
|
@@ -3339,19 +3339,19 @@ function Yi(e, t, n, r) {
|
|
|
3339
3339
|
message: e instanceof Error ? e.message : "Invalid key filter"
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
3342
|
-
let s =
|
|
3342
|
+
let s = Ki(o, r);
|
|
3343
3343
|
return {
|
|
3344
3344
|
value: s,
|
|
3345
|
-
isEmpty: Array.isArray(s) && s.length === 0 ||
|
|
3345
|
+
isEmpty: Array.isArray(s) && s.length === 0 || Pi(s) && Object.keys(s).length === 0,
|
|
3346
3346
|
message: void 0
|
|
3347
3347
|
};
|
|
3348
3348
|
}
|
|
3349
3349
|
//#endregion
|
|
3350
3350
|
//#region src/style/helpers/allowTextSelection.ts
|
|
3351
|
-
var
|
|
3352
|
-
function
|
|
3351
|
+
var Yi = "\n user-select: text;\n\n *, *::before, *::after {\n user-select: text;\n }\n", Xi = /* @__PURE__ */ new Map();
|
|
3352
|
+
function Zi(e, t) {
|
|
3353
3353
|
let n = JSON.stringify(t);
|
|
3354
|
-
return (
|
|
3354
|
+
return (Xi.get(n) ?? Xi.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
|
|
3355
3355
|
}
|
|
3356
3356
|
//#endregion
|
|
3357
3357
|
//#region utils/objectUtils.ts
|
|
@@ -3362,15 +3362,15 @@ function Qi(e) {
|
|
|
3362
3362
|
//#region src/components/JsonViewer/JsonViewer.tsx
|
|
3363
3363
|
var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div class=collapsed>"), ta = /*#__PURE__*/ P("<div class=delimiter>[]"), na = /*#__PURE__*/ P("<div class=delimiter>{}"), ra = /*#__PURE__*/ P("<div class=delimiter>"), ia = /*#__PURE__*/ P("<div class=childs>"), aa = /*#__PURE__*/ P("<div class=\"delimiter end\">"), oa = /*#__PURE__*/ P("<div class=child>"), sa = /*#__PURE__*/ P("<div class=value>"), ca = /*#__PURE__*/ P("<span class=string-quotes>\""), la = /*#__PURE__*/ P("<div>"), ua = /*#__PURE__*/ P("<div><label><input type=text>"), da = /*#__PURE__*/ P("<div>No matches"), fa = /*#__PURE__*/ P("<span> · id: "), pa = B`
|
|
3364
3364
|
&&& {
|
|
3365
|
-
${
|
|
3365
|
+
${G({ gap: 4 })};
|
|
3366
3366
|
}
|
|
3367
3367
|
`, ma = B`
|
|
3368
3368
|
&&& {
|
|
3369
|
-
${
|
|
3369
|
+
${W({ gap: 6 })};
|
|
3370
3370
|
position: sticky;
|
|
3371
3371
|
top: 0;
|
|
3372
3372
|
z-index: 2;
|
|
3373
|
-
background: ${
|
|
3373
|
+
background: ${K.bgPrimary.var};
|
|
3374
3374
|
/* set --json-toolbar-bleed to the container padding to make the toolbar
|
|
3375
3375
|
stretch flush to the container edges */
|
|
3376
3376
|
margin: calc(-1 * var(--json-toolbar-bleed, 0px));
|
|
@@ -3380,22 +3380,22 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3380
3380
|
border-radius: 4px 4px 0 0;
|
|
3381
3381
|
|
|
3382
3382
|
> label {
|
|
3383
|
-
${
|
|
3383
|
+
${W({ gap: 6 })};
|
|
3384
3384
|
flex: 1 1;
|
|
3385
|
-
background: ${
|
|
3385
|
+
background: ${K.white.alpha(.05)};
|
|
3386
3386
|
border-radius: 4px;
|
|
3387
3387
|
padding: 3px 8px;
|
|
3388
3388
|
--icon-size: 13px;
|
|
3389
3389
|
|
|
3390
3390
|
.icon {
|
|
3391
|
-
color: ${
|
|
3391
|
+
color: ${K.secondary.var};
|
|
3392
3392
|
flex-shrink: 0;
|
|
3393
3393
|
}
|
|
3394
3394
|
|
|
3395
3395
|
input {
|
|
3396
3396
|
border: none;
|
|
3397
3397
|
background: transparent;
|
|
3398
|
-
color: ${
|
|
3398
|
+
color: ${K.white.var};
|
|
3399
3399
|
font-size: 12px;
|
|
3400
3400
|
width: 100%;
|
|
3401
3401
|
|
|
@@ -3406,30 +3406,30 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3406
3406
|
}
|
|
3407
3407
|
|
|
3408
3408
|
> .toolbar-button {
|
|
3409
|
-
${
|
|
3409
|
+
${W()};
|
|
3410
3410
|
padding: 4px;
|
|
3411
3411
|
border-radius: 4px;
|
|
3412
|
-
color: ${
|
|
3412
|
+
color: ${K.white.alpha(.6)};
|
|
3413
3413
|
--icon-size: 14px;
|
|
3414
3414
|
font-size: 12px;
|
|
3415
3415
|
white-space: nowrap;
|
|
3416
|
-
${
|
|
3416
|
+
${di()};
|
|
3417
3417
|
|
|
3418
3418
|
&:hover {
|
|
3419
|
-
background: ${
|
|
3420
|
-
color: ${
|
|
3419
|
+
background: ${K.white.alpha(.08)};
|
|
3420
|
+
color: ${K.white.var};
|
|
3421
3421
|
}
|
|
3422
3422
|
|
|
3423
3423
|
&.active {
|
|
3424
|
-
color: ${
|
|
3425
|
-
background: ${
|
|
3424
|
+
color: ${K.secondary.var};
|
|
3425
|
+
background: ${K.secondary.alpha(.16)};
|
|
3426
3426
|
}
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
3429
3429
|
`, ha = B`
|
|
3430
3430
|
&&& {
|
|
3431
3431
|
font-size: 12px;
|
|
3432
|
-
color: ${
|
|
3432
|
+
color: ${K.warning.var};
|
|
3433
3433
|
padding: 2px 0;
|
|
3434
3434
|
}
|
|
3435
3435
|
`, ga = B`
|
|
@@ -3440,10 +3440,10 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3440
3440
|
}
|
|
3441
3441
|
`, _a = B`
|
|
3442
3442
|
&&& {
|
|
3443
|
-
font-family: ${
|
|
3443
|
+
font-family: ${q.decorative};
|
|
3444
3444
|
font-size: 13px;
|
|
3445
|
-
${
|
|
3446
|
-
${
|
|
3445
|
+
${Yi};
|
|
3446
|
+
${G({ gap: 2 })};
|
|
3447
3447
|
padding-left: 8px;
|
|
3448
3448
|
|
|
3449
3449
|
.expand-button {
|
|
@@ -3451,7 +3451,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3451
3451
|
width: 16px;
|
|
3452
3452
|
display: inline-block;
|
|
3453
3453
|
vertical-align: middle;
|
|
3454
|
-
color: ${
|
|
3454
|
+
color: ${K.white.alpha(.5)};
|
|
3455
3455
|
|
|
3456
3456
|
&:not(.expanded) .icon {
|
|
3457
3457
|
transform: rotate(-90deg);
|
|
@@ -3459,16 +3459,16 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3459
3459
|
}
|
|
3460
3460
|
|
|
3461
3461
|
.show-all {
|
|
3462
|
-
color: ${
|
|
3462
|
+
color: ${K.white.alpha(.5)};
|
|
3463
3463
|
text-align: left;
|
|
3464
3464
|
}
|
|
3465
3465
|
|
|
3466
3466
|
.childs {
|
|
3467
|
-
${
|
|
3467
|
+
${G({ gap: 2 })};
|
|
3468
3468
|
}
|
|
3469
3469
|
|
|
3470
3470
|
.delimiter {
|
|
3471
|
-
color: ${
|
|
3471
|
+
color: ${K.white.alpha(.5)};
|
|
3472
3472
|
margin-top: 1px;
|
|
3473
3473
|
margin-bottom: 1px;
|
|
3474
3474
|
|
|
@@ -3482,13 +3482,13 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3482
3482
|
.childs {
|
|
3483
3483
|
padding-left: 20px;
|
|
3484
3484
|
grid-column: 1 / span 3;
|
|
3485
|
-
border-left: 1px solid ${
|
|
3485
|
+
border-left: 1px solid ${K.white.alpha(.05)};
|
|
3486
3486
|
|
|
3487
3487
|
> .value {
|
|
3488
3488
|
&::after {
|
|
3489
3489
|
content: ',';
|
|
3490
3490
|
opacity: 0.5;
|
|
3491
|
-
color: ${
|
|
3491
|
+
color: ${K.white.var};
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
@@ -3500,20 +3500,20 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3500
3500
|
.key {
|
|
3501
3501
|
color: #a5d6ff;
|
|
3502
3502
|
margin-right: 5px;
|
|
3503
|
-
${
|
|
3503
|
+
${W({ align: "top" })};
|
|
3504
3504
|
|
|
3505
3505
|
span {
|
|
3506
3506
|
flex-shrink: 1;
|
|
3507
|
-
${
|
|
3507
|
+
${Y};
|
|
3508
3508
|
}
|
|
3509
3509
|
|
|
3510
3510
|
&.index {
|
|
3511
|
-
color: ${
|
|
3511
|
+
color: ${K.success.alpha(.7)};
|
|
3512
3512
|
}
|
|
3513
3513
|
|
|
3514
3514
|
&::after {
|
|
3515
3515
|
content: ':';
|
|
3516
|
-
color: ${
|
|
3516
|
+
color: ${K.secondary.alpha(.5)};
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
3519
|
}
|
|
@@ -3536,24 +3536,24 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3536
3536
|
}
|
|
3537
3537
|
|
|
3538
3538
|
[data-type='number'] {
|
|
3539
|
-
color: ${
|
|
3539
|
+
color: ${K.primary.var};
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
3542
|
[data-type='boolean'] {
|
|
3543
|
-
color: ${
|
|
3543
|
+
color: ${K.warning.var};
|
|
3544
3544
|
}
|
|
3545
3545
|
|
|
3546
3546
|
[data-type='object'],
|
|
3547
3547
|
[data-type='undefined'] {
|
|
3548
|
-
color: ${
|
|
3548
|
+
color: ${K.white.alpha(.6)};
|
|
3549
3549
|
}
|
|
3550
3550
|
|
|
3551
3551
|
.collapsed {
|
|
3552
|
-
color: ${
|
|
3552
|
+
color: ${K.white.alpha(.5)};
|
|
3553
3553
|
cursor: pointer;
|
|
3554
3554
|
|
|
3555
3555
|
> span {
|
|
3556
|
-
color: ${
|
|
3556
|
+
color: ${K.white.alpha(.4)};
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
3559
|
|
|
@@ -3563,12 +3563,12 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3563
3563
|
margin-left: 6px;
|
|
3564
3564
|
padding: 1px 2px;
|
|
3565
3565
|
border-radius: 3px;
|
|
3566
|
-
color: ${
|
|
3566
|
+
color: ${K.white.alpha(.55)};
|
|
3567
3567
|
--icon-size: 12px;
|
|
3568
3568
|
|
|
3569
3569
|
&:hover {
|
|
3570
|
-
color: ${
|
|
3571
|
-
background: ${
|
|
3570
|
+
color: ${K.white.var};
|
|
3571
|
+
background: ${K.white.alpha(.08)};
|
|
3572
3572
|
}
|
|
3573
3573
|
}
|
|
3574
3574
|
|
|
@@ -3582,7 +3582,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3582
3582
|
class: "copy-value",
|
|
3583
3583
|
title: "Copy value",
|
|
3584
3584
|
onClick: (t) => {
|
|
3585
|
-
t.stopPropagation(),
|
|
3585
|
+
t.stopPropagation(), Or(e.value);
|
|
3586
3586
|
},
|
|
3587
3587
|
get children() {
|
|
3588
3588
|
return A(V, { name: "copy" });
|
|
@@ -3608,7 +3608,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3608
3608
|
return [l && (() => {
|
|
3609
3609
|
var t = $i(), n = t.firstChild;
|
|
3610
3610
|
return t.$$click = (e) => {
|
|
3611
|
-
e.shiftKey &&
|
|
3611
|
+
e.shiftKey && Or(o);
|
|
3612
3612
|
}, R(t, s || c ? d : null, n), R(n, () => e.key || e.index), O((n) => {
|
|
3613
3613
|
var r = `${e.key ? `${e.key}\n` : ""}Shift + Click to copy value`, i = e.index !== void 0;
|
|
3614
3614
|
return r !== n.e && F(t, "title", n.e = r), i !== n.t && t.classList.toggle("index", n.t = i), n;
|
|
@@ -3629,7 +3629,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3629
3629
|
return [(() => {
|
|
3630
3630
|
var e = ra();
|
|
3631
3631
|
return st(e, "click", l ? void 0 : (e) => {
|
|
3632
|
-
e.shiftKey ?
|
|
3632
|
+
e.shiftKey ? Or(o) : t() || n(() => !0);
|
|
3633
3633
|
}, !0), F(e, "title", l ? void 0 : "Shift + Click to copy value"), R(e, !l && d, null), R(e, (() => {
|
|
3634
3634
|
var e = N(() => !!t());
|
|
3635
3635
|
return () => e() ? u[0] : f;
|
|
@@ -3678,13 +3678,13 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3678
3678
|
return (() => {
|
|
3679
3679
|
var r = sa();
|
|
3680
3680
|
return r.$$click = (r) => {
|
|
3681
|
-
r.shiftKey ?
|
|
3681
|
+
r.shiftKey ? Or(typeof e.value == "string" ? e.value : String(e.value)) : t() && n(() => !1);
|
|
3682
3682
|
}, R(r, (() => {
|
|
3683
3683
|
var t = N(() => typeof e.value == "string");
|
|
3684
3684
|
return () => t() && ca();
|
|
3685
3685
|
})(), null), R(r, (() => {
|
|
3686
3686
|
var t = N(() => typeof e.value == "number");
|
|
3687
|
-
return () => t() ?
|
|
3687
|
+
return () => t() ? Zi(e.value) : N(() => typeof e.value == "string")() ? e.value : zi(e.value);
|
|
3688
3688
|
})(), null), R(r, (() => {
|
|
3689
3689
|
var t = N(() => typeof e.value == "string");
|
|
3690
3690
|
return () => t() && ca();
|
|
@@ -3710,7 +3710,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3710
3710
|
function _(e) {
|
|
3711
3711
|
u(() => e), f(() => !0), m(() => p() + 1);
|
|
3712
3712
|
}
|
|
3713
|
-
let v = k(() =>
|
|
3713
|
+
let v = k(() => Ji(e.value, e.search ? r() : "", a(), s())), y = k(() => Ta(v().value)), ee = k(() => {
|
|
3714
3714
|
let t = r().trim() !== "", n = l(), i = !!e.compact, a = d() ? null : y();
|
|
3715
3715
|
return {
|
|
3716
3716
|
compact: i,
|
|
@@ -3730,7 +3730,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3730
3730
|
get classList() {
|
|
3731
3731
|
return { active: a() === "keys" };
|
|
3732
3732
|
},
|
|
3733
|
-
title:
|
|
3733
|
+
title: Fi,
|
|
3734
3734
|
onClick: () => {
|
|
3735
3735
|
o(() => a() === "keys" ? "text" : "keys");
|
|
3736
3736
|
},
|
|
@@ -3786,7 +3786,7 @@ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div cl
|
|
|
3786
3786
|
class: "toolbar-button",
|
|
3787
3787
|
title: "Copy visible value as JSON",
|
|
3788
3788
|
onClick: () => {
|
|
3789
|
-
|
|
3789
|
+
Or(v().value);
|
|
3790
3790
|
},
|
|
3791
3791
|
get children() {
|
|
3792
3792
|
return A(V, { name: "copy" });
|
|
@@ -3877,15 +3877,15 @@ function Da(...e) {
|
|
|
3877
3877
|
//#region src/components/Section.tsx
|
|
3878
3878
|
var Oa = /*#__PURE__*/ P("<div><div class=content>"), ka = /*#__PURE__*/ P("<h1>"), Aa = B`
|
|
3879
3879
|
&&& {
|
|
3880
|
-
${
|
|
3880
|
+
${G()};
|
|
3881
3881
|
|
|
3882
3882
|
> h1 {
|
|
3883
3883
|
font-size: 14px;
|
|
3884
|
-
color: ${
|
|
3884
|
+
color: ${K.secondary.var};
|
|
3885
3885
|
letter-spacing: 0.08em;
|
|
3886
|
-
font-family: ${
|
|
3886
|
+
font-family: ${q.decorative};
|
|
3887
3887
|
font-weight: 300;
|
|
3888
|
-
background: ${
|
|
3888
|
+
background: ${K.bgPrimary.var};
|
|
3889
3889
|
z-index: 1;
|
|
3890
3890
|
align-self: flex-start;
|
|
3891
3891
|
position: sticky;
|
|
@@ -3901,7 +3901,7 @@ var Oa = /*#__PURE__*/ P("<div><div class=content>"), ka = /*#__PURE__*/ P("<h1>
|
|
|
3901
3901
|
padding-top: calc(var(--padding-top) + 10px);
|
|
3902
3902
|
padding-inline: 10px;
|
|
3903
3903
|
padding-bottom: 10px;
|
|
3904
|
-
background: ${
|
|
3904
|
+
background: ${K.white.alpha(.05)};
|
|
3905
3905
|
border-radius: 4px;
|
|
3906
3906
|
}
|
|
3907
3907
|
|
|
@@ -3934,12 +3934,12 @@ var Oa = /*#__PURE__*/ P("<div><div class=content>"), ka = /*#__PURE__*/ P("<h1>
|
|
|
3934
3934
|
}
|
|
3935
3935
|
|
|
3936
3936
|
.row:not(:last-child) > div {
|
|
3937
|
-
border-bottom: 1px solid ${
|
|
3937
|
+
border-bottom: 1px solid ${K.white.alpha(.1)};
|
|
3938
3938
|
}
|
|
3939
3939
|
|
|
3940
3940
|
.value {
|
|
3941
3941
|
padding-left: 16px;
|
|
3942
|
-
color: ${
|
|
3942
|
+
color: ${K.white.var};
|
|
3943
3943
|
}
|
|
3944
3944
|
|
|
3945
3945
|
.name {
|
|
@@ -4012,7 +4012,7 @@ function Va(e) {
|
|
|
4012
4012
|
function Ha(e) {
|
|
4013
4013
|
return Array.isArray(e);
|
|
4014
4014
|
}
|
|
4015
|
-
var [Q, $] =
|
|
4015
|
+
var [Q, $] = wn({
|
|
4016
4016
|
callers: [],
|
|
4017
4017
|
selectedCallerIdx: 0,
|
|
4018
4018
|
method: "GET",
|
|
@@ -4159,7 +4159,7 @@ function to(e) {
|
|
|
4159
4159
|
payload: e.payload
|
|
4160
4160
|
}) : e.payload === void 0 || e.payload === null ? {} : { payload: JSON.stringify(e.payload, null, 2) },
|
|
4161
4161
|
sendError: null
|
|
4162
|
-
}),
|
|
4162
|
+
}), Qr("selectedPage", "caller");
|
|
4163
4163
|
}
|
|
4164
4164
|
//#endregion
|
|
4165
4165
|
//#region src/utils/getUnusedResponseData.ts
|
|
@@ -4201,7 +4201,7 @@ function lo(e, t) {
|
|
|
4201
4201
|
let n = 0;
|
|
4202
4202
|
for (let r of t) {
|
|
4203
4203
|
let t = so(e, r);
|
|
4204
|
-
t !== void 0 && (n +=
|
|
4204
|
+
t !== void 0 && (n += tn(() => JSON.stringify(t).length) || 0);
|
|
4205
4205
|
}
|
|
4206
4206
|
return n;
|
|
4207
4207
|
}
|
|
@@ -4215,12 +4215,12 @@ function fo(e, t = {}) {
|
|
|
4215
4215
|
r !== "GET" && i.push(`-X ${r}`);
|
|
4216
4216
|
let a = Object.entries(e.headers || {});
|
|
4217
4217
|
for (let [e, n] of a) {
|
|
4218
|
-
let r = t.maskSensitiveData && !
|
|
4218
|
+
let r = t.maskSensitiveData && !Rn(e) ? "<masked>" : n;
|
|
4219
4219
|
i.push(`-H ${uo(`${e}: ${r}`)}`);
|
|
4220
4220
|
}
|
|
4221
4221
|
if (e.payload !== void 0 && e.payload !== null && r !== "GET") {
|
|
4222
4222
|
a.some(([e]) => e.toLowerCase() === "content-type") || i.push(`-H ${uo("Content-Type: application/json")}`);
|
|
4223
|
-
let n = t.maskSensitiveData ?
|
|
4223
|
+
let n = t.maskSensitiveData ? Hn(e.payload).value : e.payload;
|
|
4224
4224
|
i.push(`--data ${uo(JSON.stringify(n))}`);
|
|
4225
4225
|
}
|
|
4226
4226
|
return i.join(" \\\n ");
|
|
@@ -4229,13 +4229,13 @@ function fo(e, t = {}) {
|
|
|
4229
4229
|
//#region src/pages/api-explorer/RequestDetails.tsx
|
|
4230
4230
|
var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item><div class=warning-content><span>"), ho = /*#__PURE__*/ P("<h1><span class=type></span><span class=separator>|"), go = /*#__PURE__*/ P("<div class=tags><div class=actions>"), _o = /*#__PURE__*/ P("<div class=details>"), vo = /*#__PURE__*/ P("<span class=separator>|"), yo = /*#__PURE__*/ P("<h2>"), bo = /*#__PURE__*/ P("<div class=method>"), xo = /*#__PURE__*/ P("<div class=code>"), So = /*#__PURE__*/ P("<div class=\"tag error\">Has Error"), Co = /*#__PURE__*/ P("<div class=\"tag warning\">"), wo = /*#__PURE__*/ P("<div class=\"tag pending\">Pending"), To = /*#__PURE__*/ P("<div class=tag>"), Eo = /*#__PURE__*/ P("<div class=backdrop>"), Do = /*#__PURE__*/ P("<div class=menu>"), Oo = /*#__PURE__*/ P("<span>pending…"), ko = /*#__PURE__*/ P("<span> ms"), Ao = /*#__PURE__*/ P("<span>"), jo = B`
|
|
4231
4231
|
&&& {
|
|
4232
|
-
${
|
|
4232
|
+
${G()};
|
|
4233
4233
|
padding-left: 10px;
|
|
4234
4234
|
|
|
4235
4235
|
> h1 {
|
|
4236
4236
|
margin-top: 12px;
|
|
4237
|
-
font-family: ${
|
|
4238
|
-
${
|
|
4237
|
+
font-family: ${q.decorative};
|
|
4238
|
+
${Y};
|
|
4239
4239
|
|
|
4240
4240
|
span.separator {
|
|
4241
4241
|
font-size: 14px;
|
|
@@ -4246,75 +4246,75 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4246
4246
|
|
|
4247
4247
|
span.type {
|
|
4248
4248
|
text-transform: capitalize;
|
|
4249
|
-
color: ${
|
|
4249
|
+
color: ${K.secondary.var};
|
|
4250
4250
|
}
|
|
4251
4251
|
}
|
|
4252
4252
|
|
|
4253
4253
|
> h2 {
|
|
4254
4254
|
margin-top: 4px;
|
|
4255
|
-
font-family: ${
|
|
4255
|
+
font-family: ${q.decorative};
|
|
4256
4256
|
font-size: 12px;
|
|
4257
4257
|
opacity: 0.5;
|
|
4258
4258
|
}
|
|
4259
4259
|
|
|
4260
4260
|
.tags {
|
|
4261
|
-
${
|
|
4261
|
+
${W({ gap: 8 })};
|
|
4262
4262
|
margin-top: 8px;
|
|
4263
4263
|
padding-right: 10px;
|
|
4264
4264
|
|
|
4265
4265
|
.method {
|
|
4266
|
-
color: ${
|
|
4266
|
+
color: ${K.primary.var};
|
|
4267
4267
|
}
|
|
4268
4268
|
|
|
4269
4269
|
.code {
|
|
4270
|
-
color: ${
|
|
4270
|
+
color: ${K.success.var};
|
|
4271
4271
|
|
|
4272
4272
|
&.error {
|
|
4273
|
-
color: ${
|
|
4273
|
+
color: ${K.error.var};
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
4276
|
|
|
4277
4277
|
.tag {
|
|
4278
4278
|
font-size: 11px;
|
|
4279
|
-
color: ${
|
|
4279
|
+
color: ${K.warning.var};
|
|
4280
4280
|
padding: 1px 3px;
|
|
4281
4281
|
border-radius: 4px;
|
|
4282
|
-
border: 1px solid ${
|
|
4282
|
+
border: 1px solid ${K.warning.alpha(.6)};
|
|
4283
4283
|
|
|
4284
4284
|
&.error {
|
|
4285
|
-
color: ${
|
|
4285
|
+
color: ${K.error.var};
|
|
4286
4286
|
font-weight: 600;
|
|
4287
|
-
border-color: ${
|
|
4287
|
+
border-color: ${K.error.alpha(.6)};
|
|
4288
4288
|
}
|
|
4289
4289
|
|
|
4290
4290
|
&.warning {
|
|
4291
|
-
${
|
|
4291
|
+
${W({ gap: 4 })};
|
|
4292
4292
|
font-weight: 600;
|
|
4293
4293
|
--icon-size: 12px;
|
|
4294
4294
|
}
|
|
4295
4295
|
|
|
4296
4296
|
&.pending {
|
|
4297
|
-
color: ${
|
|
4298
|
-
border-color: ${
|
|
4297
|
+
color: ${K.secondary.var};
|
|
4298
|
+
border-color: ${K.secondary.alpha(.6)};
|
|
4299
4299
|
}
|
|
4300
4300
|
}
|
|
4301
4301
|
|
|
4302
4302
|
.actions {
|
|
4303
4303
|
margin-left: auto;
|
|
4304
|
-
${
|
|
4304
|
+
${W({ gap: 8 })};
|
|
4305
4305
|
|
|
4306
4306
|
button.action-button {
|
|
4307
|
-
${
|
|
4307
|
+
${W({ gap: 4 })};
|
|
4308
4308
|
font-size: 12px;
|
|
4309
|
-
color: ${
|
|
4309
|
+
color: ${K.white.alpha(.7)};
|
|
4310
4310
|
padding: 2px 6px;
|
|
4311
4311
|
border-radius: 4px;
|
|
4312
|
-
background: ${
|
|
4312
|
+
background: ${K.white.alpha(.05)};
|
|
4313
4313
|
--icon-size: 13px;
|
|
4314
4314
|
|
|
4315
4315
|
&:hover {
|
|
4316
|
-
color: ${
|
|
4317
|
-
background: ${
|
|
4316
|
+
color: ${K.white.var};
|
|
4317
|
+
background: ${K.white.alpha(.1)};
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
4320
|
}
|
|
@@ -4323,7 +4323,7 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4323
4323
|
> .details {
|
|
4324
4324
|
margin-top: 14px;
|
|
4325
4325
|
padding-right: 10px;
|
|
4326
|
-
${
|
|
4326
|
+
${G({ gap: 8 })};
|
|
4327
4327
|
flex: 1 1;
|
|
4328
4328
|
overflow-y: auto;
|
|
4329
4329
|
padding-bottom: 20px;
|
|
@@ -4331,14 +4331,14 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4331
4331
|
}
|
|
4332
4332
|
`, Mo = B`
|
|
4333
4333
|
&&& {
|
|
4334
|
-
${
|
|
4334
|
+
${G({ align: "left" })};
|
|
4335
4335
|
gap: 6px;
|
|
4336
4336
|
|
|
4337
4337
|
> .warning-item {
|
|
4338
|
-
${
|
|
4338
|
+
${W({ gap: 8 })};
|
|
4339
4339
|
align-items: flex-start;
|
|
4340
4340
|
font-size: 13px;
|
|
4341
|
-
color: ${
|
|
4341
|
+
color: ${K.warning.var};
|
|
4342
4342
|
--icon-size: 14px;
|
|
4343
4343
|
align-self: stretch;
|
|
4344
4344
|
|
|
@@ -4348,7 +4348,7 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4348
4348
|
}
|
|
4349
4349
|
|
|
4350
4350
|
> .warning-content {
|
|
4351
|
-
${
|
|
4351
|
+
${G({ align: "left" })};
|
|
4352
4352
|
gap: 4px;
|
|
4353
4353
|
flex: 1 1;
|
|
4354
4354
|
}
|
|
@@ -4369,24 +4369,24 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4369
4369
|
top: calc(100% + 4px);
|
|
4370
4370
|
right: 0;
|
|
4371
4371
|
z-index: 20;
|
|
4372
|
-
${
|
|
4372
|
+
${G({ align: "stretch" })};
|
|
4373
4373
|
min-width: 170px;
|
|
4374
4374
|
padding: 4px;
|
|
4375
|
-
background: ${
|
|
4376
|
-
border: 1px solid ${
|
|
4375
|
+
background: ${K.bgSecondary.var};
|
|
4376
|
+
border: 1px solid ${K.white.alpha(.1)};
|
|
4377
4377
|
border-radius: 4px;
|
|
4378
4378
|
|
|
4379
4379
|
> button {
|
|
4380
4380
|
text-align: left;
|
|
4381
4381
|
font-size: 12px;
|
|
4382
4382
|
white-space: nowrap;
|
|
4383
|
-
color: ${
|
|
4383
|
+
color: ${K.white.alpha(.8)};
|
|
4384
4384
|
padding: 6px 8px;
|
|
4385
4385
|
border-radius: 4px;
|
|
4386
4386
|
|
|
4387
4387
|
&:hover {
|
|
4388
|
-
color: ${
|
|
4389
|
-
background: ${
|
|
4388
|
+
color: ${K.white.var};
|
|
4389
|
+
background: ${K.white.alpha(.08)};
|
|
4390
4390
|
}
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
@@ -4397,8 +4397,8 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4397
4397
|
}
|
|
4398
4398
|
`, Fo = B`
|
|
4399
4399
|
&&& {
|
|
4400
|
-
${
|
|
4401
|
-
color: ${
|
|
4400
|
+
${W({ gap: 20 })};
|
|
4401
|
+
color: ${K.secondary.var};
|
|
4402
4402
|
margin-top: 20px;
|
|
4403
4403
|
|
|
4404
4404
|
> button {
|
|
@@ -4416,9 +4416,9 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4416
4416
|
}
|
|
4417
4417
|
}
|
|
4418
4418
|
`, Io = () => {
|
|
4419
|
-
let t = k(() =>
|
|
4419
|
+
let t = k(() => J.selectedCall), n = k(() => J.selectedRequest), r = k(() => J.selectedTab || "summary"), i = en(() => {
|
|
4420
4420
|
let e;
|
|
4421
|
-
e = t() ?
|
|
4421
|
+
e = t() ? U.calls[t()] : U.calls[qn.value];
|
|
4422
4422
|
let r = n() && e?.requests.find((e) => e.id === n()) || e?.requests.at(-1);
|
|
4423
4423
|
return r && e ? {
|
|
4424
4424
|
...r,
|
|
@@ -4432,34 +4432,34 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4432
4432
|
return { selected: _.value === e };
|
|
4433
4433
|
},
|
|
4434
4434
|
onClick: () => {
|
|
4435
|
-
|
|
4435
|
+
Qr("selectedTab", e);
|
|
4436
4436
|
},
|
|
4437
4437
|
children: t
|
|
4438
4438
|
});
|
|
4439
4439
|
}
|
|
4440
|
-
let o =
|
|
4440
|
+
let o = en(() => {
|
|
4441
4441
|
let e = i.value;
|
|
4442
|
-
return e ?
|
|
4443
|
-
}), s =
|
|
4442
|
+
return e ? Zr.value ? e.headers ?? null : Ln(e) : null;
|
|
4443
|
+
}), s = en(() => {
|
|
4444
4444
|
let e = i.value;
|
|
4445
|
-
return e?.payload ?
|
|
4446
|
-
}), c =
|
|
4445
|
+
return e?.payload ? Hn(e.payload) : null;
|
|
4446
|
+
}), c = en(() => Zr.value ? i.value?.payload : s.value?.value), l = H(!1);
|
|
4447
4447
|
function u(e) {
|
|
4448
4448
|
let t = i.value;
|
|
4449
|
-
t &&
|
|
4449
|
+
t && Or(fo(t, { maskSensitiveData: e })), l.value = !1;
|
|
4450
4450
|
}
|
|
4451
4451
|
function d(e) {
|
|
4452
|
-
return
|
|
4452
|
+
return Zi(e, {
|
|
4453
4453
|
unit: "byte",
|
|
4454
4454
|
style: "unit",
|
|
4455
4455
|
notation: "compact",
|
|
4456
4456
|
unitDisplay: "narrow"
|
|
4457
4457
|
});
|
|
4458
4458
|
}
|
|
4459
|
-
let f =
|
|
4459
|
+
let f = en(() => i.value?.response ? d(JSON.stringify(i.value.response).length) : !1);
|
|
4460
4460
|
function p() {
|
|
4461
4461
|
let e = i.value;
|
|
4462
|
-
e &&
|
|
4462
|
+
e && Or({
|
|
4463
4463
|
call: e.callName,
|
|
4464
4464
|
path: e.path,
|
|
4465
4465
|
method: e.method,
|
|
@@ -4474,9 +4474,9 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4474
4474
|
duration: e.duration,
|
|
4475
4475
|
tags: e.tags,
|
|
4476
4476
|
warnings: e.warnings,
|
|
4477
|
-
payload:
|
|
4477
|
+
payload: Zr.value ? e.payload : Hn(e.payload).value,
|
|
4478
4478
|
searchParams: e.searchParams,
|
|
4479
|
-
headers: (
|
|
4479
|
+
headers: (Zr.value ? e.headers : Ln(e)) ?? void 0,
|
|
4480
4480
|
response: e.response,
|
|
4481
4481
|
unusedResponseData: e.unusedResponseData,
|
|
4482
4482
|
metadata: e.metadata
|
|
@@ -4502,17 +4502,17 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4502
4502
|
})), t;
|
|
4503
4503
|
})();
|
|
4504
4504
|
}
|
|
4505
|
-
let h =
|
|
4505
|
+
let h = en(() => {
|
|
4506
4506
|
let e = i.value;
|
|
4507
4507
|
return e?.unusedResponseData?.length ? co(e.response, e.unusedResponseData) : null;
|
|
4508
|
-
}), g =
|
|
4508
|
+
}), g = en(() => {
|
|
4509
4509
|
let e = i.value;
|
|
4510
4510
|
if (!e?.unusedResponseData?.length || !e.response) return !1;
|
|
4511
4511
|
let t = lo(e.response, e.unusedResponseData);
|
|
4512
4512
|
if (t === 0) return !1;
|
|
4513
4513
|
let n = JSON.stringify(e.response).length, r = n > 0 ? Math.round(t / n * 100) : 0;
|
|
4514
4514
|
return `${d(t)} (${r}% of response)`;
|
|
4515
|
-
}), _ =
|
|
4515
|
+
}), _ = en(() => {
|
|
4516
4516
|
let e = i.value;
|
|
4517
4517
|
return !e || r() === "payload" && !e.payload || r() === "urlParams" && !e.searchParams || r() === "unusedData" && !h.value || r() === "warnings" && !e.warnings?.length || r() === "metadata" && !e.metadata || r() === "headers" && !o.value ? "summary" : r();
|
|
4518
4518
|
});
|
|
@@ -4723,10 +4723,10 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4723
4723
|
name: "Duration",
|
|
4724
4724
|
value: i.value.status === "pending" ? (() => {
|
|
4725
4725
|
var e = Oo();
|
|
4726
|
-
return O((t) => L(e, "color",
|
|
4726
|
+
return O((t) => L(e, "color", K.secondary.var)), e;
|
|
4727
4727
|
})() : (() => {
|
|
4728
4728
|
var e = ko(), t = e.firstChild;
|
|
4729
|
-
return R(e, () =>
|
|
4729
|
+
return R(e, () => Zi(i.value.duration, { maximumFractionDigits: 0 }), t), O((t) => L(e, "color", i.value.duration < 500 ? K.success.var : i.value.duration > 1e3 ? K.error.var : void 0)), e;
|
|
4730
4730
|
})()
|
|
4731
4731
|
},
|
|
4732
4732
|
{
|
|
@@ -4744,7 +4744,7 @@ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item
|
|
|
4744
4744
|
name: "Unused Data Size",
|
|
4745
4745
|
value: (() => {
|
|
4746
4746
|
var e = Ao();
|
|
4747
|
-
return R(e, () => g.value), O((t) => L(e, "color",
|
|
4747
|
+
return R(e, () => g.value), O((t) => L(e, "color", K.warning.var)), e;
|
|
4748
4748
|
})()
|
|
4749
4749
|
}
|
|
4750
4750
|
];
|
|
@@ -4926,40 +4926,40 @@ function Lo(e) {
|
|
|
4926
4926
|
//#region src/pages/api-explorer/Timeline.tsx
|
|
4927
4927
|
var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<div>no requests found"), Bo = /*#__PURE__*/ P("<div><span> · "), Vo = /*#__PURE__*/ P("<span class=start-time>"), Ho = /*#__PURE__*/ P("<span>"), Uo = /*#__PURE__*/ P("<div>"), Wo = /*#__PURE__*/ P("<span class=pending-indicator>pending"), Go = /*#__PURE__*/ P("<span class=separator>|"), Ko = /*#__PURE__*/ P("<span class=payload>"), qo = B`
|
|
4928
4928
|
&&& {
|
|
4929
|
-
${
|
|
4930
|
-
border-right: 1px solid ${
|
|
4929
|
+
${G()};
|
|
4930
|
+
border-right: 1px solid ${K.white.alpha(.1)};
|
|
4931
4931
|
|
|
4932
4932
|
> h1 {
|
|
4933
4933
|
font-size: 16px;
|
|
4934
4934
|
padding-left: 12px;
|
|
4935
4935
|
padding-top: 10px;
|
|
4936
|
-
font-family: ${
|
|
4937
|
-
color: ${
|
|
4936
|
+
font-family: ${q.decorative};
|
|
4937
|
+
color: ${K.secondary.var};
|
|
4938
4938
|
padding-bottom: 16px;
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
`, Jo = B`
|
|
4942
4942
|
&&& {
|
|
4943
|
-
${
|
|
4943
|
+
${G()};
|
|
4944
4944
|
flex: 1 1;
|
|
4945
4945
|
overflow-y: auto;
|
|
4946
4946
|
}
|
|
4947
4947
|
`, Yo = B`
|
|
4948
4948
|
&&& {
|
|
4949
4949
|
font-size: 13px;
|
|
4950
|
-
${
|
|
4950
|
+
${G()};
|
|
4951
4951
|
|
|
4952
4952
|
&.warning {
|
|
4953
|
-
color: ${
|
|
4953
|
+
color: ${K.warning.var};
|
|
4954
4954
|
}
|
|
4955
4955
|
|
|
4956
4956
|
&.error {
|
|
4957
|
-
color: ${
|
|
4957
|
+
color: ${K.error.var};
|
|
4958
4958
|
font-weight: 600;
|
|
4959
4959
|
}
|
|
4960
4960
|
|
|
4961
4961
|
&.pending {
|
|
4962
|
-
color: ${
|
|
4962
|
+
color: ${K.secondary.var};
|
|
4963
4963
|
|
|
4964
4964
|
.payload {
|
|
4965
4965
|
opacity: 0.7;
|
|
@@ -4968,16 +4968,16 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
4968
4968
|
|
|
4969
4969
|
> button {
|
|
4970
4970
|
padding: 4px 12px;
|
|
4971
|
-
${
|
|
4971
|
+
${W({ gap: 8 })};
|
|
4972
4972
|
opacity: 0.8;
|
|
4973
4973
|
|
|
4974
4974
|
&.selected {
|
|
4975
4975
|
opacity: 1;
|
|
4976
|
-
background-color: ${
|
|
4976
|
+
background-color: ${K.secondary.alpha(.16)};
|
|
4977
4977
|
}
|
|
4978
4978
|
|
|
4979
4979
|
> .start-time {
|
|
4980
|
-
font-family: ${
|
|
4980
|
+
font-family: ${q.decorative};
|
|
4981
4981
|
}
|
|
4982
4982
|
|
|
4983
4983
|
> .separator {
|
|
@@ -4985,13 +4985,13 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
4985
4985
|
}
|
|
4986
4986
|
|
|
4987
4987
|
> .payload {
|
|
4988
|
-
${
|
|
4988
|
+
${Y};
|
|
4989
4989
|
flex-shrink: 1;
|
|
4990
4990
|
}
|
|
4991
4991
|
|
|
4992
4992
|
> .pending-indicator {
|
|
4993
4993
|
font-size: 11px;
|
|
4994
|
-
border: 1px solid ${
|
|
4994
|
+
border: 1px solid ${K.secondary.alpha(.6)};
|
|
4995
4995
|
border-radius: 4px;
|
|
4996
4996
|
padding: 0 3px;
|
|
4997
4997
|
flex-shrink: 0;
|
|
@@ -5000,21 +5000,21 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5000
5000
|
}
|
|
5001
5001
|
`, Xo = B`
|
|
5002
5002
|
&&& {
|
|
5003
|
-
${
|
|
5003
|
+
${W({ gap: 8 })};
|
|
5004
5004
|
padding: 2px 12px;
|
|
5005
5005
|
font-size: 12px;
|
|
5006
|
-
color: ${
|
|
5007
|
-
font-family: ${
|
|
5006
|
+
color: ${K.warning.var};
|
|
5007
|
+
font-family: ${q.decorative};
|
|
5008
5008
|
|
|
5009
5009
|
&::before,
|
|
5010
5010
|
&::after {
|
|
5011
5011
|
content: '';
|
|
5012
5012
|
flex: 1 1;
|
|
5013
|
-
border-top: 1px dashed ${
|
|
5013
|
+
border-top: 1px dashed ${K.warning.alpha(.5)};
|
|
5014
5014
|
}
|
|
5015
5015
|
|
|
5016
5016
|
> span {
|
|
5017
|
-
${
|
|
5017
|
+
${Y};
|
|
5018
5018
|
flex-shrink: 1;
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
@@ -5027,12 +5027,12 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5027
5027
|
}
|
|
5028
5028
|
`, Qo = () => {
|
|
5029
5029
|
let t = k(() => {
|
|
5030
|
-
let e =
|
|
5031
|
-
return e ? e ?
|
|
5030
|
+
let e = J.selectedCall;
|
|
5031
|
+
return e ? e ? U.calls[e] : null : U.calls[qn.value] || null;
|
|
5032
5032
|
}), n = k(() => {
|
|
5033
5033
|
let e = Wt(t()?.requests);
|
|
5034
5034
|
return e.length === 0 ? null : e;
|
|
5035
|
-
}), r = k(() =>
|
|
5035
|
+
}), r = k(() => J.selectedSubitem ? n()?.filter((e) => e.alias === J.selectedSubitem) : n()), i = k(() => {
|
|
5036
5036
|
let e = r();
|
|
5037
5037
|
if (!e || e.length === 0) return null;
|
|
5038
5038
|
let t = e.map((e) => ({
|
|
@@ -5040,13 +5040,13 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5040
5040
|
request: e,
|
|
5041
5041
|
time: e.startTime
|
|
5042
5042
|
}));
|
|
5043
|
-
for (let e of
|
|
5043
|
+
for (let e of U.markers) t.push({
|
|
5044
5044
|
itemType: "marker",
|
|
5045
5045
|
marker: e,
|
|
5046
5046
|
time: e.time
|
|
5047
5047
|
});
|
|
5048
5048
|
return t.sort((e, t) => t.time - e.time);
|
|
5049
|
-
}), a = k(() =>
|
|
5049
|
+
}), a = k(() => J.selectedRequest || r()?.[0]?.id);
|
|
5050
5050
|
return (() => {
|
|
5051
5051
|
var t = Ro(), n = t.firstChild.nextSibling;
|
|
5052
5052
|
return I(t, qo), I(n, Jo), R(n, A(j, {
|
|
@@ -5064,12 +5064,12 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5064
5064
|
var n = Bo(), r = n.firstChild, i = r.firstChild;
|
|
5065
5065
|
return I(n, Xo), R(r, () => t.marker.label, i), R(r, () => e(t.marker.time).format("HH:mm:ss"), null), O(() => F(n, "title", e(t.marker.time).format("HH:mm:ss.SSS"))), n;
|
|
5066
5066
|
})();
|
|
5067
|
-
let n = t.request, r = e(n.startTime), i = r.format("HH:mm:ss"), o = r.fromNow(), s = Lo(n), c =
|
|
5067
|
+
let n = t.request, r = e(n.startTime), i = r.format("HH:mm:ss"), o = r.fromNow(), s = Lo(n), c = ti(n);
|
|
5068
5068
|
return (() => {
|
|
5069
5069
|
var e = Uo();
|
|
5070
5070
|
return I(e, Yo), R(e, A(z, {
|
|
5071
5071
|
onClick: () => {
|
|
5072
|
-
|
|
5072
|
+
Qr("selectedRequest", n.id);
|
|
5073
5073
|
},
|
|
5074
5074
|
get classList() {
|
|
5075
5075
|
return { selected: n.id === a() };
|
|
@@ -5083,7 +5083,7 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5083
5083
|
(() => {
|
|
5084
5084
|
var e = Ho();
|
|
5085
5085
|
return R(e, () => c.label), O((t) => {
|
|
5086
|
-
var n = `${
|
|
5086
|
+
var n = `${$r} ${c.class}`, r = c.description;
|
|
5087
5087
|
return n !== t.e && I(e, t.e = n), r !== t.t && F(e, "title", t.t = r), t;
|
|
5088
5088
|
}, {
|
|
5089
5089
|
e: void 0,
|
|
@@ -5114,7 +5114,7 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5114
5114
|
display: grid;
|
|
5115
5115
|
}
|
|
5116
5116
|
`, ts = () => {
|
|
5117
|
-
let e =
|
|
5117
|
+
let e = Xr({
|
|
5118
5118
|
storageKey: "api-explorer",
|
|
5119
5119
|
initialSizes: [
|
|
5120
5120
|
1,
|
|
@@ -5123,9 +5123,9 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5123
5123
|
]
|
|
5124
5124
|
});
|
|
5125
5125
|
return se(() => {
|
|
5126
|
-
if (
|
|
5126
|
+
if (J.selectedCall) return;
|
|
5127
5127
|
let e = null;
|
|
5128
|
-
for (let [t, n] of Object.entries(
|
|
5128
|
+
for (let [t, n] of Object.entries(U.calls)) if (n.type !== "ws") for (let r of n.requests) {
|
|
5129
5129
|
if (r.status === "pending") continue;
|
|
5130
5130
|
let n = r.startTime + r.duration;
|
|
5131
5131
|
(!e || n > e.loadedTime) && (e = {
|
|
@@ -5134,13 +5134,13 @@ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<
|
|
|
5134
5134
|
loadedTime: n
|
|
5135
5135
|
});
|
|
5136
5136
|
}
|
|
5137
|
-
e &&
|
|
5137
|
+
e && Qr({
|
|
5138
5138
|
selectedCall: e.callID,
|
|
5139
5139
|
selectedRequest: e.requestID
|
|
5140
5140
|
});
|
|
5141
5141
|
}), (() => {
|
|
5142
5142
|
var t = $o();
|
|
5143
|
-
return I(t, es), R(t, A(
|
|
5143
|
+
return I(t, es), R(t, A(Si, {}), null), R(t, A(e.Handle, { index: 0 }), null), R(t, A(Qo, {}), null), R(t, A(e.Handle, { index: 1 }), null), R(t, A(Io, {}), null), O((n) => L(t, "grid-template-columns", e.gridTemplateColumns())), t;
|
|
5144
5144
|
})();
|
|
5145
5145
|
}, ns = 0;
|
|
5146
5146
|
function rs() {
|
|
@@ -5150,12 +5150,12 @@ function rs() {
|
|
|
5150
5150
|
//#region src/components/Select.tsx
|
|
5151
5151
|
var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=inputContainer><select>"), os = /*#__PURE__*/ P("<option value>-- select an option --"), ss = /*#__PURE__*/ P("<option>"), cs = B`
|
|
5152
5152
|
&&& {
|
|
5153
|
-
${
|
|
5153
|
+
${G({ align: "left" })};
|
|
5154
5154
|
width: 100%;
|
|
5155
5155
|
position: relative;
|
|
5156
5156
|
|
|
5157
5157
|
label {
|
|
5158
|
-
color: ${
|
|
5158
|
+
color: ${K.primary.var};
|
|
5159
5159
|
z-index: 1;
|
|
5160
5160
|
font-size: 13px;
|
|
5161
5161
|
letter-spacing: 0.08em;
|
|
@@ -5163,13 +5163,13 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5163
5163
|
}
|
|
5164
5164
|
|
|
5165
5165
|
.inputContainer {
|
|
5166
|
-
background: ${
|
|
5166
|
+
background: ${K.white.alpha(.05)};
|
|
5167
5167
|
border-radius: 4px;
|
|
5168
5168
|
margin-top: 0px;
|
|
5169
5169
|
position: relative;
|
|
5170
5170
|
width: 100%;
|
|
5171
5171
|
overflow: hidden;
|
|
5172
|
-
${
|
|
5172
|
+
${G({ align: "left" })};
|
|
5173
5173
|
}
|
|
5174
5174
|
|
|
5175
5175
|
select {
|
|
@@ -5180,7 +5180,7 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5180
5180
|
padding-left: 10px;
|
|
5181
5181
|
font-size: 14px;
|
|
5182
5182
|
background: transparent;
|
|
5183
|
-
color: ${
|
|
5183
|
+
color: ${K.white.var};
|
|
5184
5184
|
|
|
5185
5185
|
&:focus {
|
|
5186
5186
|
outline: 0;
|
|
@@ -5196,7 +5196,7 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5196
5196
|
left: 0;
|
|
5197
5197
|
right: 8px;
|
|
5198
5198
|
height: 17px;
|
|
5199
|
-
background: ${
|
|
5199
|
+
background: ${K.white.var};
|
|
5200
5200
|
}
|
|
5201
5201
|
}
|
|
5202
5202
|
`, ls = (e) => {
|
|
@@ -5233,19 +5233,19 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5233
5233
|
}
|
|
5234
5234
|
`, As = B`
|
|
5235
5235
|
&&& {
|
|
5236
|
-
${
|
|
5237
|
-
border-right: 1px solid ${
|
|
5236
|
+
${G()};
|
|
5237
|
+
border-right: 1px solid ${K.white.alpha(.1)};
|
|
5238
5238
|
overflow: hidden;
|
|
5239
5239
|
|
|
5240
5240
|
> h1 {
|
|
5241
5241
|
font-size: 16px;
|
|
5242
5242
|
padding: 10px 12px 16px;
|
|
5243
|
-
font-family: ${
|
|
5244
|
-
color: ${
|
|
5243
|
+
font-family: ${q.decorative};
|
|
5244
|
+
color: ${K.secondary.var};
|
|
5245
5245
|
}
|
|
5246
5246
|
|
|
5247
5247
|
> .entries {
|
|
5248
|
-
${
|
|
5248
|
+
${G()};
|
|
5249
5249
|
flex: 1 1;
|
|
5250
5250
|
overflow-y: auto;
|
|
5251
5251
|
}
|
|
@@ -5257,39 +5257,39 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5257
5257
|
}
|
|
5258
5258
|
|
|
5259
5259
|
button {
|
|
5260
|
-
${
|
|
5260
|
+
${G({ align: "left" })};
|
|
5261
5261
|
padding: 6px 12px;
|
|
5262
5262
|
gap: 2px;
|
|
5263
5263
|
width: 100%;
|
|
5264
5264
|
text-align: left;
|
|
5265
5265
|
|
|
5266
5266
|
&:hover {
|
|
5267
|
-
background: ${
|
|
5267
|
+
background: ${K.white.alpha(.05)};
|
|
5268
5268
|
}
|
|
5269
5269
|
|
|
5270
5270
|
&.selected {
|
|
5271
|
-
background: ${
|
|
5271
|
+
background: ${K.secondary.alpha(.12)};
|
|
5272
5272
|
}
|
|
5273
5273
|
|
|
5274
5274
|
.method-row {
|
|
5275
|
-
${
|
|
5275
|
+
${W({ gap: 6 })};
|
|
5276
5276
|
max-width: 100%;
|
|
5277
5277
|
}
|
|
5278
5278
|
|
|
5279
5279
|
.method {
|
|
5280
5280
|
font-size: 11px;
|
|
5281
|
-
font-family: ${
|
|
5282
|
-
color: ${
|
|
5281
|
+
font-family: ${q.decorative};
|
|
5282
|
+
color: ${K.primary.var};
|
|
5283
5283
|
}
|
|
5284
5284
|
|
|
5285
5285
|
.sender {
|
|
5286
|
-
${
|
|
5286
|
+
${Y};
|
|
5287
5287
|
font-size: 11px;
|
|
5288
|
-
color: ${
|
|
5288
|
+
color: ${K.secondary.alpha(.8)};
|
|
5289
5289
|
}
|
|
5290
5290
|
|
|
5291
5291
|
.path {
|
|
5292
|
-
${
|
|
5292
|
+
${Y};
|
|
5293
5293
|
font-size: 13px;
|
|
5294
5294
|
max-width: 100%;
|
|
5295
5295
|
}
|
|
@@ -5297,13 +5297,13 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5297
5297
|
}
|
|
5298
5298
|
`, js = B`
|
|
5299
5299
|
&&& {
|
|
5300
|
-
${
|
|
5300
|
+
${G({ align: "stretch" })};
|
|
5301
5301
|
padding: 12px 16px 0;
|
|
5302
5302
|
gap: 12px;
|
|
5303
5303
|
overflow: hidden;
|
|
5304
5304
|
|
|
5305
5305
|
.form-row {
|
|
5306
|
-
${
|
|
5306
|
+
${W({ gap: 8 })};
|
|
5307
5307
|
flex-shrink: 0;
|
|
5308
5308
|
}
|
|
5309
5309
|
|
|
@@ -5320,47 +5320,47 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5320
5320
|
|
|
5321
5321
|
input,
|
|
5322
5322
|
textarea {
|
|
5323
|
-
background: ${
|
|
5324
|
-
border: 1px solid ${
|
|
5323
|
+
background: ${K.white.alpha(.05)};
|
|
5324
|
+
border: 1px solid ${K.white.alpha(.08)};
|
|
5325
5325
|
border-radius: 4px;
|
|
5326
|
-
color: ${
|
|
5326
|
+
color: ${K.white.var};
|
|
5327
5327
|
font-size: 14px;
|
|
5328
5328
|
padding: 6px 10px;
|
|
5329
5329
|
|
|
5330
5330
|
&:focus {
|
|
5331
5331
|
outline: 0;
|
|
5332
|
-
border-color: ${
|
|
5332
|
+
border-color: ${K.secondary.alpha(.6)};
|
|
5333
5333
|
}
|
|
5334
5334
|
}
|
|
5335
5335
|
|
|
5336
5336
|
input.path-input {
|
|
5337
5337
|
flex: 1 1;
|
|
5338
5338
|
height: 32px;
|
|
5339
|
-
font-family: ${
|
|
5339
|
+
font-family: ${q.decorative};
|
|
5340
5340
|
font-size: 13px;
|
|
5341
5341
|
}
|
|
5342
5342
|
|
|
5343
5343
|
input.text-input {
|
|
5344
5344
|
height: 32px;
|
|
5345
|
-
font-family: ${
|
|
5345
|
+
font-family: ${q.decorative};
|
|
5346
5346
|
font-size: 13px;
|
|
5347
5347
|
flex-shrink: 0;
|
|
5348
5348
|
}
|
|
5349
5349
|
|
|
5350
5350
|
textarea {
|
|
5351
|
-
font-family: ${
|
|
5351
|
+
font-family: ${q.decorative};
|
|
5352
5352
|
font-size: 13px;
|
|
5353
5353
|
min-height: 120px;
|
|
5354
5354
|
resize: vertical;
|
|
5355
5355
|
flex-shrink: 0;
|
|
5356
5356
|
|
|
5357
5357
|
&.invalid {
|
|
5358
|
-
border-color: ${
|
|
5358
|
+
border-color: ${K.error.alpha(.6)};
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
5361
|
|
|
5362
5362
|
.input-error {
|
|
5363
|
-
color: ${
|
|
5363
|
+
color: ${K.error.var};
|
|
5364
5364
|
font-size: 12px;
|
|
5365
5365
|
margin-top: -6px;
|
|
5366
5366
|
flex-shrink: 0;
|
|
@@ -5368,18 +5368,18 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5368
5368
|
|
|
5369
5369
|
.input-label {
|
|
5370
5370
|
font-size: 12px;
|
|
5371
|
-
color: ${
|
|
5371
|
+
color: ${K.secondary.var};
|
|
5372
5372
|
margin-bottom: -6px;
|
|
5373
5373
|
flex-shrink: 0;
|
|
5374
5374
|
}
|
|
5375
5375
|
|
|
5376
5376
|
.send-button {
|
|
5377
|
-
${
|
|
5377
|
+
${W({
|
|
5378
5378
|
gap: 6,
|
|
5379
5379
|
justify: "center"
|
|
5380
5380
|
})};
|
|
5381
|
-
background: ${
|
|
5382
|
-
color: ${
|
|
5381
|
+
background: ${K.primary.var};
|
|
5382
|
+
color: ${K.bgPrimary.var};
|
|
5383
5383
|
font-weight: 600;
|
|
5384
5384
|
font-size: 14px;
|
|
5385
5385
|
border-radius: 4px;
|
|
@@ -5394,15 +5394,15 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5394
5394
|
}
|
|
5395
5395
|
|
|
5396
5396
|
.empty-state {
|
|
5397
|
-
${
|
|
5397
|
+
${G({ align: "center" })};
|
|
5398
5398
|
padding-top: 60px;
|
|
5399
5399
|
gap: 8px;
|
|
5400
5400
|
opacity: 0.6;
|
|
5401
5401
|
text-align: center;
|
|
5402
5402
|
|
|
5403
5403
|
code {
|
|
5404
|
-
font-family: ${
|
|
5405
|
-
color: ${
|
|
5404
|
+
font-family: ${q.decorative};
|
|
5405
|
+
color: ${K.secondary.var};
|
|
5406
5406
|
}
|
|
5407
5407
|
}
|
|
5408
5408
|
}
|
|
@@ -5412,45 +5412,45 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5412
5412
|
flex: 1 1 0;
|
|
5413
5413
|
min-height: 0;
|
|
5414
5414
|
margin: 0 -16px;
|
|
5415
|
-
border-top: 1px solid ${
|
|
5415
|
+
border-top: 1px solid ${K.white.alpha(.1)};
|
|
5416
5416
|
|
|
5417
5417
|
.results-list {
|
|
5418
|
-
${
|
|
5418
|
+
${G({ align: "stretch" })};
|
|
5419
5419
|
overflow: hidden;
|
|
5420
|
-
border-right: 1px solid ${
|
|
5420
|
+
border-right: 1px solid ${K.white.alpha(.1)};
|
|
5421
5421
|
|
|
5422
5422
|
> .title {
|
|
5423
5423
|
font-size: 12px;
|
|
5424
|
-
color: ${
|
|
5424
|
+
color: ${K.secondary.var};
|
|
5425
5425
|
padding: 10px 12px 6px;
|
|
5426
5426
|
flex-shrink: 0;
|
|
5427
5427
|
}
|
|
5428
5428
|
|
|
5429
5429
|
> .entries {
|
|
5430
|
-
${
|
|
5430
|
+
${G({ align: "stretch" })};
|
|
5431
5431
|
flex: 1 1;
|
|
5432
5432
|
overflow-y: auto;
|
|
5433
5433
|
}
|
|
5434
5434
|
|
|
5435
5435
|
.result-row {
|
|
5436
|
-
${
|
|
5436
|
+
${G({ align: "left" })};
|
|
5437
5437
|
gap: 2px;
|
|
5438
5438
|
padding: 6px 12px;
|
|
5439
5439
|
width: 100%;
|
|
5440
5440
|
text-align: left;
|
|
5441
5441
|
font-size: 12px;
|
|
5442
|
-
font-family: ${
|
|
5442
|
+
font-family: ${q.decorative};
|
|
5443
5443
|
|
|
5444
5444
|
&:hover {
|
|
5445
|
-
background: ${
|
|
5445
|
+
background: ${K.white.alpha(.05)};
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
5448
|
&.selected {
|
|
5449
|
-
background: ${
|
|
5449
|
+
background: ${K.secondary.alpha(.12)};
|
|
5450
5450
|
}
|
|
5451
5451
|
|
|
5452
5452
|
.row-meta {
|
|
5453
|
-
${
|
|
5453
|
+
${W({ gap: 8 })};
|
|
5454
5454
|
max-width: 100%;
|
|
5455
5455
|
|
|
5456
5456
|
.time {
|
|
@@ -5459,70 +5459,70 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5459
5459
|
}
|
|
5460
5460
|
|
|
5461
5461
|
.row-sender {
|
|
5462
|
-
${
|
|
5462
|
+
${Y};
|
|
5463
5463
|
max-width: 100%;
|
|
5464
5464
|
font-size: 11px;
|
|
5465
|
-
color: ${
|
|
5465
|
+
color: ${K.secondary.alpha(.8)};
|
|
5466
5466
|
}
|
|
5467
5467
|
}
|
|
5468
5468
|
}
|
|
5469
5469
|
|
|
5470
5470
|
.status {
|
|
5471
|
-
color: ${
|
|
5471
|
+
color: ${K.success.var};
|
|
5472
5472
|
|
|
5473
5473
|
&.error {
|
|
5474
|
-
color: ${
|
|
5474
|
+
color: ${K.error.var};
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
5477
5477
|
|
|
5478
5478
|
.result-detail {
|
|
5479
|
-
${
|
|
5479
|
+
${G({ align: "stretch" })};
|
|
5480
5480
|
gap: 10px;
|
|
5481
5481
|
padding: 10px 16px 12px;
|
|
5482
5482
|
overflow-y: auto;
|
|
5483
5483
|
|
|
5484
5484
|
.detail-header {
|
|
5485
|
-
${
|
|
5485
|
+
${W({ gap: 8 })};
|
|
5486
5486
|
flex-shrink: 0;
|
|
5487
|
-
font-family: ${
|
|
5487
|
+
font-family: ${q.decorative};
|
|
5488
5488
|
font-size: 13px;
|
|
5489
5489
|
|
|
5490
5490
|
.method {
|
|
5491
|
-
color: ${
|
|
5491
|
+
color: ${K.primary.var};
|
|
5492
5492
|
font-size: 12px;
|
|
5493
5493
|
flex-shrink: 0;
|
|
5494
5494
|
}
|
|
5495
5495
|
|
|
5496
5496
|
.path {
|
|
5497
|
-
${
|
|
5497
|
+
${Y};
|
|
5498
5498
|
flex: 1 1;
|
|
5499
5499
|
}
|
|
5500
5500
|
|
|
5501
5501
|
.modify-button {
|
|
5502
|
-
${
|
|
5502
|
+
${W({ gap: 4 })};
|
|
5503
5503
|
flex-shrink: 0;
|
|
5504
5504
|
font-size: 12px;
|
|
5505
|
-
font-family: ${
|
|
5506
|
-
color: ${
|
|
5507
|
-
border: 1px solid ${
|
|
5505
|
+
font-family: ${q.decorative};
|
|
5506
|
+
color: ${K.secondary.var};
|
|
5507
|
+
border: 1px solid ${K.secondary.alpha(.4)};
|
|
5508
5508
|
border-radius: 4px;
|
|
5509
5509
|
padding: 3px 10px;
|
|
5510
5510
|
--icon-size: 13px;
|
|
5511
5511
|
|
|
5512
5512
|
&:hover {
|
|
5513
|
-
background: ${
|
|
5513
|
+
background: ${K.secondary.alpha(.15)};
|
|
5514
5514
|
}
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
5517
|
|
|
5518
5518
|
.detail-meta {
|
|
5519
|
-
${
|
|
5519
|
+
${W({ gap: 12 })};
|
|
5520
5520
|
flex-shrink: 0;
|
|
5521
5521
|
font-size: 13px;
|
|
5522
|
-
font-family: ${
|
|
5522
|
+
font-family: ${q.decorative};
|
|
5523
5523
|
|
|
5524
5524
|
.sender {
|
|
5525
|
-
color: ${
|
|
5525
|
+
color: ${K.secondary.alpha(.8)};
|
|
5526
5526
|
}
|
|
5527
5527
|
|
|
5528
5528
|
.time {
|
|
@@ -5532,35 +5532,35 @@ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=input
|
|
|
5532
5532
|
|
|
5533
5533
|
.detail-label {
|
|
5534
5534
|
font-size: 12px;
|
|
5535
|
-
color: ${
|
|
5535
|
+
color: ${K.secondary.var};
|
|
5536
5536
|
margin-bottom: -4px;
|
|
5537
5537
|
flex-shrink: 0;
|
|
5538
5538
|
}
|
|
5539
5539
|
|
|
5540
5540
|
.input-value {
|
|
5541
|
-
font-family: ${
|
|
5541
|
+
font-family: ${q.decorative};
|
|
5542
5542
|
font-size: 12px;
|
|
5543
5543
|
opacity: 0.8;
|
|
5544
5544
|
white-space: pre-wrap;
|
|
5545
5545
|
word-break: break-word;
|
|
5546
|
-
background: ${
|
|
5546
|
+
background: ${K.white.alpha(.04)};
|
|
5547
5547
|
border-radius: 4px;
|
|
5548
5548
|
padding: 8px 10px;
|
|
5549
5549
|
flex-shrink: 0;
|
|
5550
5550
|
}
|
|
5551
5551
|
|
|
5552
5552
|
.result-error {
|
|
5553
|
-
color: ${
|
|
5553
|
+
color: ${K.error.var};
|
|
5554
5554
|
font-size: 13px;
|
|
5555
5555
|
white-space: pre-wrap;
|
|
5556
5556
|
}
|
|
5557
5557
|
}
|
|
5558
5558
|
}
|
|
5559
5559
|
`, Ns = () => {
|
|
5560
|
-
let t = k(() => Q.callers[Q.selectedCallerIdx]), n = k(() => t()?.methods || Wa), r = k(() => t()?.inputs ?? Fa), i =
|
|
5560
|
+
let t = k(() => Q.callers[Q.selectedCallerIdx]), n = k(() => t()?.methods || Wa), r = k(() => t()?.inputs ?? Fa), i = Xr({
|
|
5561
5561
|
storageKey: "caller",
|
|
5562
5562
|
initialSizes: [1, 4]
|
|
5563
|
-
}), a =
|
|
5563
|
+
}), a = Xr({
|
|
5564
5564
|
storageKey: "caller-results",
|
|
5565
5565
|
initialSizes: [1, 2.5]
|
|
5566
5566
|
}), o = k(() => {
|
|
@@ -5854,51 +5854,51 @@ it(["input", "keydown"]);
|
|
|
5854
5854
|
//#region src/pages/logs/LogsPage.tsx
|
|
5855
5855
|
var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=search><input type=text placeholder=\"Search logs\"></label></div><div class=list>"), Is = /*#__PURE__*/ P("<div class=empty>"), Ls = /*#__PURE__*/ P("<div class=marker><span class=time></span><span class=label></span><div class=line>"), Rs = /*#__PURE__*/ P("<span class=time>"), zs = /*#__PURE__*/ P("<span class=badge>"), Bs = /*#__PURE__*/ P("<span class=message>"), Vs = /*#__PURE__*/ P("<span class=copy title=\"Copy log as JSON\">"), Hs = /*#__PURE__*/ P("<span class=delete title=\"Delete log\">"), Us = /*#__PURE__*/ P("<div class=log>"), Ws = /*#__PURE__*/ P("<span class=category>"), Gs = /*#__PURE__*/ P("<div class=details>"), Ks = /*#__PURE__*/ P("<div class=no-details>no details attached"), qs = B`
|
|
5856
5856
|
&&& {
|
|
5857
|
-
${
|
|
5857
|
+
${G({ align: "stretch" })};
|
|
5858
5858
|
padding: 12px 16px;
|
|
5859
5859
|
gap: 12px;
|
|
5860
5860
|
overflow: hidden;
|
|
5861
5861
|
|
|
5862
5862
|
> h1 {
|
|
5863
5863
|
font-size: 16px;
|
|
5864
|
-
font-family: ${
|
|
5865
|
-
color: ${
|
|
5864
|
+
font-family: ${q.decorative};
|
|
5865
|
+
color: ${K.secondary.var};
|
|
5866
5866
|
flex-shrink: 0;
|
|
5867
5867
|
}
|
|
5868
5868
|
|
|
5869
5869
|
> .toolbar {
|
|
5870
|
-
${
|
|
5870
|
+
${W({ gap: 8 })};
|
|
5871
5871
|
flex-shrink: 0;
|
|
5872
5872
|
|
|
5873
5873
|
.severity {
|
|
5874
5874
|
font-size: 12px;
|
|
5875
|
-
font-family: ${
|
|
5875
|
+
font-family: ${q.decorative};
|
|
5876
5876
|
padding: 4px 8px;
|
|
5877
5877
|
border-radius: 4px;
|
|
5878
|
-
border: 1px solid ${
|
|
5879
|
-
color: ${
|
|
5878
|
+
border: 1px solid ${K.white.alpha(.15)};
|
|
5879
|
+
color: ${K.white.alpha(.7)};
|
|
5880
5880
|
|
|
5881
5881
|
&.error {
|
|
5882
|
-
border-color: ${
|
|
5883
|
-
color: ${
|
|
5882
|
+
border-color: ${K.error.alpha(.5)};
|
|
5883
|
+
color: ${K.error.var};
|
|
5884
5884
|
}
|
|
5885
5885
|
|
|
5886
5886
|
&.warning {
|
|
5887
|
-
border-color: ${
|
|
5888
|
-
color: ${
|
|
5887
|
+
border-color: ${K.warning.alpha(.5)};
|
|
5888
|
+
color: ${K.warning.var};
|
|
5889
5889
|
}
|
|
5890
5890
|
|
|
5891
5891
|
&.info {
|
|
5892
|
-
border-color: ${
|
|
5893
|
-
color: ${
|
|
5892
|
+
border-color: ${K.secondary.alpha(.5)};
|
|
5893
|
+
color: ${K.secondary.var};
|
|
5894
5894
|
}
|
|
5895
5895
|
|
|
5896
5896
|
&:hover {
|
|
5897
|
-
background: ${
|
|
5897
|
+
background: ${K.white.alpha(.05)};
|
|
5898
5898
|
}
|
|
5899
5899
|
|
|
5900
5900
|
&.active {
|
|
5901
|
-
background: ${
|
|
5901
|
+
background: ${K.white.alpha(.12)};
|
|
5902
5902
|
border-color: currentColor;
|
|
5903
5903
|
}
|
|
5904
5904
|
}
|
|
@@ -5909,22 +5909,22 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
5909
5909
|
}
|
|
5910
5910
|
|
|
5911
5911
|
> .search {
|
|
5912
|
-
${
|
|
5912
|
+
${W({ gap: 6 })};
|
|
5913
5913
|
flex: 1 1;
|
|
5914
|
-
background: ${
|
|
5914
|
+
background: ${K.white.alpha(.05)};
|
|
5915
5915
|
border-radius: 4px;
|
|
5916
5916
|
padding: 5px 8px;
|
|
5917
5917
|
--icon-size: 13px;
|
|
5918
5918
|
|
|
5919
5919
|
.icon {
|
|
5920
|
-
color: ${
|
|
5920
|
+
color: ${K.secondary.var};
|
|
5921
5921
|
flex-shrink: 0;
|
|
5922
5922
|
}
|
|
5923
5923
|
|
|
5924
5924
|
input {
|
|
5925
5925
|
border: none;
|
|
5926
5926
|
background: transparent;
|
|
5927
|
-
color: ${
|
|
5927
|
+
color: ${K.white.var};
|
|
5928
5928
|
font-size: 12px;
|
|
5929
5929
|
width: 100%;
|
|
5930
5930
|
|
|
@@ -5935,24 +5935,24 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
5935
5935
|
}
|
|
5936
5936
|
|
|
5937
5937
|
> .action {
|
|
5938
|
-
${
|
|
5938
|
+
${W({ gap: 5 })};
|
|
5939
5939
|
font-size: 12px;
|
|
5940
|
-
color: ${
|
|
5940
|
+
color: ${K.white.alpha(.7)};
|
|
5941
5941
|
padding: 5px 8px;
|
|
5942
5942
|
border-radius: 4px;
|
|
5943
|
-
background: ${
|
|
5943
|
+
background: ${K.white.alpha(.05)};
|
|
5944
5944
|
flex-shrink: 0;
|
|
5945
5945
|
--icon-size: 13px;
|
|
5946
5946
|
|
|
5947
5947
|
&:hover {
|
|
5948
|
-
color: ${
|
|
5949
|
-
background: ${
|
|
5948
|
+
color: ${K.white.var};
|
|
5949
|
+
background: ${K.white.alpha(.1)};
|
|
5950
5950
|
}
|
|
5951
5951
|
}
|
|
5952
5952
|
}
|
|
5953
5953
|
|
|
5954
5954
|
> .list {
|
|
5955
|
-
${
|
|
5955
|
+
${G({ align: "stretch" })};
|
|
5956
5956
|
flex: 1 1;
|
|
5957
5957
|
gap: 2px;
|
|
5958
5958
|
overflow-y: auto;
|
|
@@ -5965,15 +5965,15 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
5965
5965
|
}
|
|
5966
5966
|
|
|
5967
5967
|
.marker {
|
|
5968
|
-
${
|
|
5968
|
+
${W({ gap: 8 })};
|
|
5969
5969
|
padding: 3px 10px 3px 12px;
|
|
5970
|
-
color: ${
|
|
5970
|
+
color: ${K.warning.var};
|
|
5971
5971
|
--icon-size: 12px;
|
|
5972
5972
|
|
|
5973
5973
|
.time {
|
|
5974
|
-
font-family: ${
|
|
5974
|
+
font-family: ${q.decorative};
|
|
5975
5975
|
font-size: 12px;
|
|
5976
|
-
color: ${
|
|
5976
|
+
color: ${K.warning.alpha(.6)};
|
|
5977
5977
|
flex-shrink: 0;
|
|
5978
5978
|
}
|
|
5979
5979
|
|
|
@@ -5982,58 +5982,58 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
5982
5982
|
}
|
|
5983
5983
|
|
|
5984
5984
|
.label {
|
|
5985
|
-
font-family: ${
|
|
5985
|
+
font-family: ${q.decorative};
|
|
5986
5986
|
font-size: 11px;
|
|
5987
5987
|
flex-shrink: 0;
|
|
5988
5988
|
}
|
|
5989
5989
|
|
|
5990
5990
|
.line {
|
|
5991
5991
|
flex: 1 1;
|
|
5992
|
-
border-top: 1px dashed ${
|
|
5992
|
+
border-top: 1px dashed ${K.warning.alpha(.4)};
|
|
5993
5993
|
}
|
|
5994
5994
|
}
|
|
5995
5995
|
|
|
5996
5996
|
.log {
|
|
5997
|
-
${
|
|
5997
|
+
${G({ align: "stretch" })};
|
|
5998
5998
|
border-radius: 4px;
|
|
5999
5999
|
|
|
6000
6000
|
&.expanded {
|
|
6001
|
-
background: ${
|
|
6001
|
+
background: ${K.white.alpha(.03)};
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
6004
|
&.error > .row {
|
|
6005
|
-
border-left-color: ${
|
|
6005
|
+
border-left-color: ${K.error.var};
|
|
6006
6006
|
|
|
6007
6007
|
.badge {
|
|
6008
|
-
color: ${
|
|
6008
|
+
color: ${K.error.var};
|
|
6009
6009
|
}
|
|
6010
6010
|
}
|
|
6011
6011
|
|
|
6012
6012
|
&.warning > .row {
|
|
6013
|
-
border-left-color: ${
|
|
6013
|
+
border-left-color: ${K.warning.var};
|
|
6014
6014
|
|
|
6015
6015
|
.badge {
|
|
6016
|
-
color: ${
|
|
6016
|
+
color: ${K.warning.var};
|
|
6017
6017
|
}
|
|
6018
6018
|
}
|
|
6019
6019
|
|
|
6020
6020
|
&.info > .row {
|
|
6021
|
-
border-left-color: ${
|
|
6021
|
+
border-left-color: ${K.secondary.alpha(.7)};
|
|
6022
6022
|
|
|
6023
6023
|
.badge {
|
|
6024
|
-
color: ${
|
|
6024
|
+
color: ${K.secondary.var};
|
|
6025
6025
|
}
|
|
6026
6026
|
}
|
|
6027
6027
|
|
|
6028
6028
|
> .row {
|
|
6029
|
-
${
|
|
6029
|
+
${W({ gap: 10 })};
|
|
6030
6030
|
padding: 5px 10px;
|
|
6031
6031
|
border-left: 2px solid transparent;
|
|
6032
6032
|
text-align: left;
|
|
6033
6033
|
width: 100%;
|
|
6034
6034
|
|
|
6035
6035
|
&:hover {
|
|
6036
|
-
background: ${
|
|
6036
|
+
background: ${K.white.alpha(.05)};
|
|
6037
6037
|
|
|
6038
6038
|
.copy,
|
|
6039
6039
|
.delete {
|
|
@@ -6042,14 +6042,14 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6042
6042
|
}
|
|
6043
6043
|
|
|
6044
6044
|
.time {
|
|
6045
|
-
font-family: ${
|
|
6045
|
+
font-family: ${q.decorative};
|
|
6046
6046
|
font-size: 12px;
|
|
6047
|
-
color: ${
|
|
6047
|
+
color: ${K.white.alpha(.5)};
|
|
6048
6048
|
flex-shrink: 0;
|
|
6049
6049
|
}
|
|
6050
6050
|
|
|
6051
6051
|
.badge {
|
|
6052
|
-
font-family: ${
|
|
6052
|
+
font-family: ${q.decorative};
|
|
6053
6053
|
font-size: 11px;
|
|
6054
6054
|
text-transform: uppercase;
|
|
6055
6055
|
letter-spacing: 0.06em;
|
|
@@ -6059,38 +6059,38 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6059
6059
|
|
|
6060
6060
|
.category {
|
|
6061
6061
|
font-size: 11px;
|
|
6062
|
-
color: ${
|
|
6062
|
+
color: ${K.white.alpha(.65)};
|
|
6063
6063
|
padding: 1px 5px;
|
|
6064
6064
|
border-radius: 4px;
|
|
6065
|
-
background: ${
|
|
6065
|
+
background: ${K.white.alpha(.08)};
|
|
6066
6066
|
flex-shrink: 0;
|
|
6067
6067
|
}
|
|
6068
6068
|
|
|
6069
6069
|
.message {
|
|
6070
6070
|
font-size: 13px;
|
|
6071
6071
|
flex: 1 1;
|
|
6072
|
-
${
|
|
6072
|
+
${Y};
|
|
6073
6073
|
}
|
|
6074
6074
|
|
|
6075
6075
|
.copy,
|
|
6076
6076
|
.delete {
|
|
6077
|
-
${
|
|
6077
|
+
${W()};
|
|
6078
6078
|
flex-shrink: 0;
|
|
6079
6079
|
padding: 2px;
|
|
6080
6080
|
border-radius: 3px;
|
|
6081
|
-
color: ${
|
|
6081
|
+
color: ${K.white.alpha(.6)};
|
|
6082
6082
|
opacity: 0;
|
|
6083
6083
|
--icon-size: 13px;
|
|
6084
6084
|
|
|
6085
6085
|
&:hover {
|
|
6086
|
-
color: ${
|
|
6087
|
-
background: ${
|
|
6086
|
+
color: ${K.white.var};
|
|
6087
|
+
background: ${K.white.alpha(.1)};
|
|
6088
6088
|
}
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
.delete:hover {
|
|
6092
|
-
color: ${
|
|
6093
|
-
background: ${
|
|
6092
|
+
color: ${K.error.var};
|
|
6093
|
+
background: ${K.error.alpha(.12)};
|
|
6094
6094
|
}
|
|
6095
6095
|
}
|
|
6096
6096
|
|
|
@@ -6116,7 +6116,7 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6116
6116
|
], Ys = "__all-categories__", Xs = () => {
|
|
6117
6117
|
let [t, n] = D(null), [r, i] = D(""), [a, o] = D(""), [s, c] = D(null), l = k(() => {
|
|
6118
6118
|
let e = /* @__PURE__ */ new Set();
|
|
6119
|
-
for (let t of
|
|
6119
|
+
for (let t of Sr.logs) t.category && e.add(t.category);
|
|
6120
6120
|
return [...e].sort();
|
|
6121
6121
|
}), u = k(() => {
|
|
6122
6122
|
let e = {
|
|
@@ -6124,18 +6124,18 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6124
6124
|
warning: 0,
|
|
6125
6125
|
info: 0
|
|
6126
6126
|
};
|
|
6127
|
-
for (let t of
|
|
6127
|
+
for (let t of Sr.logs) e[t.severity]++;
|
|
6128
6128
|
return e;
|
|
6129
6129
|
}), d = k(() => {
|
|
6130
6130
|
let e = a().trim().toLowerCase(), n = t(), i = r();
|
|
6131
|
-
return
|
|
6131
|
+
return Sr.logs.filter((t) => (!n || t.severity === n) && (!i || t.category === i) && (!e || t.message.toLowerCase().includes(e) || (t.category ? t.category.toLowerCase().includes(e) : !1)));
|
|
6132
6132
|
}), f = k(() => {
|
|
6133
6133
|
let e = d().map((e) => ({
|
|
6134
6134
|
itemType: "log",
|
|
6135
6135
|
time: e.time,
|
|
6136
6136
|
log: e
|
|
6137
6137
|
}));
|
|
6138
|
-
for (let t of
|
|
6138
|
+
for (let t of U.markers) e.push({
|
|
6139
6139
|
itemType: "marker",
|
|
6140
6140
|
time: t.time,
|
|
6141
6141
|
marker: t
|
|
@@ -6145,12 +6145,12 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6145
6145
|
function p() {
|
|
6146
6146
|
return {
|
|
6147
6147
|
exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6148
|
-
...
|
|
6148
|
+
...U.markers.length > 0 ? { markers: U.markers.map((e) => ({
|
|
6149
6149
|
label: e.label,
|
|
6150
6150
|
time: e.time,
|
|
6151
6151
|
timeISO: new Date(e.time).toISOString()
|
|
6152
6152
|
})) } : {},
|
|
6153
|
-
logs: d().map((e) =>
|
|
6153
|
+
logs: d().map((e) => Dr(e))
|
|
6154
6154
|
};
|
|
6155
6155
|
}
|
|
6156
6156
|
return (() => {
|
|
@@ -6166,7 +6166,7 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6166
6166
|
get children() {
|
|
6167
6167
|
return [
|
|
6168
6168
|
"all (",
|
|
6169
|
-
N(() =>
|
|
6169
|
+
N(() => Sr.logs.length),
|
|
6170
6170
|
")"
|
|
6171
6171
|
];
|
|
6172
6172
|
}
|
|
@@ -6215,7 +6215,7 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6215
6215
|
class: "action",
|
|
6216
6216
|
title: "Copy visible logs as JSON",
|
|
6217
6217
|
onClick: () => {
|
|
6218
|
-
|
|
6218
|
+
Or(JSON.stringify(p(), null, 2));
|
|
6219
6219
|
},
|
|
6220
6220
|
get children() {
|
|
6221
6221
|
return [A(V, { name: "copy" }), "Copy JSON"];
|
|
@@ -6224,7 +6224,7 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6224
6224
|
class: "action",
|
|
6225
6225
|
title: "Save visible logs to a .json file",
|
|
6226
6226
|
onClick: () => {
|
|
6227
|
-
|
|
6227
|
+
kr(p(), "devtools-logs"), ur("Logs downloaded");
|
|
6228
6228
|
},
|
|
6229
6229
|
get children() {
|
|
6230
6230
|
return [A(V, { name: "download" }), "Save .json"];
|
|
@@ -6236,7 +6236,7 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6236
6236
|
get fallback() {
|
|
6237
6237
|
return (() => {
|
|
6238
6238
|
var e = Is();
|
|
6239
|
-
return R(e, () =>
|
|
6239
|
+
return R(e, () => Sr.logs.length > 0 ? "no logs matching the filters" : "no logs registered yet, use the addLog() export to collect logs here"), e;
|
|
6240
6240
|
})();
|
|
6241
6241
|
},
|
|
6242
6242
|
children: (t) => t.itemType === "marker" ? (() => {
|
|
@@ -6281,13 +6281,13 @@ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
|
|
|
6281
6281
|
(() => {
|
|
6282
6282
|
var e = Vs();
|
|
6283
6283
|
return e.$$click = (e) => {
|
|
6284
|
-
e.stopPropagation(),
|
|
6284
|
+
e.stopPropagation(), Or(Dr(t.log));
|
|
6285
6285
|
}, R(e, A(V, { name: "copy" })), e;
|
|
6286
6286
|
})(),
|
|
6287
6287
|
(() => {
|
|
6288
6288
|
var e = Hs();
|
|
6289
6289
|
return e.$$click = (e) => {
|
|
6290
|
-
e.stopPropagation(),
|
|
6290
|
+
e.stopPropagation(), Er(t.log.id);
|
|
6291
6291
|
}, R(e, A(V, { name: "trash" })), e;
|
|
6292
6292
|
})()
|
|
6293
6293
|
];
|
|
@@ -6341,7 +6341,7 @@ function ec(e, t, n, r) {
|
|
|
6341
6341
|
o = "[";
|
|
6342
6342
|
for (let i of e) o.length > 1 && (o += ","), o += ec(i, t, n + 1, r);
|
|
6343
6343
|
o += "]";
|
|
6344
|
-
} else if (
|
|
6344
|
+
} else if (Ti(e)) {
|
|
6345
6345
|
let i = Object.entries(e);
|
|
6346
6346
|
if (i.length === 0) o = "{}";
|
|
6347
6347
|
else {
|
|
@@ -6354,29 +6354,29 @@ function ec(e, t, n, r) {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
//#endregion
|
|
6356
6356
|
//#region src/pages/stats/StatsPage.tsx
|
|
6357
|
-
var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>requests</span><span class=value></span></div><div><span class=label>errors</span><span class=value></span></div><div><span class=label>warnings</span><span class=value></span></div><div><span class=label>pending</span><span class=value></span></div><div><span class=label>avg duration</span><span class=value> ms</span></div></div><div><h2>Slowest requests</h2></div><div><h2>Heaviest responses</h2></div><div><h2>Duplicated requests</h2><div class=hint>requests with the same payload and url params repeated within 10s</div></div><div><h2>Unused response data</h2><div class=hint>response fields reported as not used by the app, an opportunity to reduce payload sizes"), nc = /*#__PURE__*/ P("<div class=empty>no completed requests"), rc = /*#__PURE__*/ P("<div class=bar>"), ic = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric> ms"), ac = /*#__PURE__*/ P("<div class=empty>no responses received"), oc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric>"), sc = /*#__PURE__*/ P("<div class=empty>no duplicated requests detected"), cc = /*#__PURE__*/ P("<div class=\"bar warning\">"), lc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\">x in <!>s"), uc = /*#__PURE__*/ P("<span class=detail>same response"), dc = /*#__PURE__*/ P("<div class=empty>no unused response data reported"), fc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\"> field"), pc = B`
|
|
6357
|
+
var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>requests</span><span class=value></span></div><div><span class=label>errors</span><span class=value></span></div><div><span class=label>warnings</span><span class=value></span></div><div><span class=label>pending</span><span class=value></span></div><div><span class=label>avg duration</span><span class=value> ms</span></div><div><span class=label>data used</span><span class=value></span></div></div><div><h2>Slowest requests</h2></div><div><h2>Heaviest responses</h2></div><div><h2>Duplicated requests</h2><div class=hint>requests with the same payload and url params repeated within 10s</div></div><div><h2>Unused response data</h2><div class=hint>response fields reported as not used by the app, an opportunity to reduce payload sizes"), nc = /*#__PURE__*/ P("<div class=empty>no completed requests"), rc = /*#__PURE__*/ P("<div class=bar>"), ic = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric> ms"), ac = /*#__PURE__*/ P("<div class=empty>no responses received"), oc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric>"), sc = /*#__PURE__*/ P("<div class=empty>no duplicated requests detected"), cc = /*#__PURE__*/ P("<div class=\"bar warning\">"), lc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\">x in <!>s"), uc = /*#__PURE__*/ P("<span class=detail>same response"), dc = /*#__PURE__*/ P("<div class=empty>no unused response data reported"), fc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\"> field"), pc = B`
|
|
6358
6358
|
&&& {
|
|
6359
|
-
${
|
|
6359
|
+
${G({ align: "stretch" })};
|
|
6360
6360
|
overflow-y: auto;
|
|
6361
6361
|
padding: 12px 16px 24px;
|
|
6362
6362
|
gap: 20px;
|
|
6363
6363
|
|
|
6364
6364
|
> h1 {
|
|
6365
6365
|
font-size: 16px;
|
|
6366
|
-
font-family: ${
|
|
6367
|
-
color: ${
|
|
6366
|
+
font-family: ${q.decorative};
|
|
6367
|
+
color: ${K.secondary.var};
|
|
6368
6368
|
padding-bottom: 4px;
|
|
6369
6369
|
}
|
|
6370
6370
|
}
|
|
6371
6371
|
`, mc = B`
|
|
6372
6372
|
&&& {
|
|
6373
|
-
${
|
|
6373
|
+
${W({ gap: 12 })};
|
|
6374
6374
|
flex-wrap: wrap;
|
|
6375
6375
|
|
|
6376
6376
|
> div {
|
|
6377
|
-
${
|
|
6378
|
-
background: ${
|
|
6379
|
-
border: 1px solid ${
|
|
6377
|
+
${G({ align: "left" })};
|
|
6378
|
+
background: ${K.white.alpha(.04)};
|
|
6379
|
+
border: 1px solid ${K.white.alpha(.08)};
|
|
6380
6380
|
border-radius: 6px;
|
|
6381
6381
|
padding: 10px 14px;
|
|
6382
6382
|
min-width: 120px;
|
|
@@ -6386,37 +6386,37 @@ var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
|
|
|
6386
6386
|
font-size: 11px;
|
|
6387
6387
|
letter-spacing: 0.08em;
|
|
6388
6388
|
text-transform: uppercase;
|
|
6389
|
-
color: ${
|
|
6389
|
+
color: ${K.white.alpha(.5)};
|
|
6390
6390
|
}
|
|
6391
6391
|
|
|
6392
6392
|
> .value {
|
|
6393
6393
|
font-size: 20px;
|
|
6394
|
-
font-family: ${
|
|
6394
|
+
font-family: ${q.decorative};
|
|
6395
6395
|
|
|
6396
6396
|
&.error {
|
|
6397
|
-
color: ${
|
|
6397
|
+
color: ${K.error.var};
|
|
6398
6398
|
}
|
|
6399
6399
|
|
|
6400
6400
|
&.warning {
|
|
6401
|
-
color: ${
|
|
6401
|
+
color: ${K.warning.var};
|
|
6402
6402
|
}
|
|
6403
6403
|
|
|
6404
6404
|
&.pending {
|
|
6405
|
-
color: ${
|
|
6405
|
+
color: ${K.secondary.var};
|
|
6406
6406
|
}
|
|
6407
6407
|
}
|
|
6408
6408
|
}
|
|
6409
6409
|
}
|
|
6410
6410
|
`, hc = B`
|
|
6411
6411
|
&&& {
|
|
6412
|
-
${
|
|
6412
|
+
${G({ align: "stretch" })};
|
|
6413
6413
|
gap: 6px;
|
|
6414
6414
|
|
|
6415
6415
|
> h2 {
|
|
6416
6416
|
font-size: 13px;
|
|
6417
6417
|
letter-spacing: 0.08em;
|
|
6418
6418
|
text-transform: uppercase;
|
|
6419
|
-
color: ${
|
|
6419
|
+
color: ${K.primary.var};
|
|
6420
6420
|
}
|
|
6421
6421
|
|
|
6422
6422
|
> .empty {
|
|
@@ -6426,13 +6426,13 @@ var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
|
|
|
6426
6426
|
|
|
6427
6427
|
> .hint {
|
|
6428
6428
|
font-size: 11px;
|
|
6429
|
-
color: ${
|
|
6429
|
+
color: ${K.white.alpha(.4)};
|
|
6430
6430
|
margin-top: -4px;
|
|
6431
6431
|
}
|
|
6432
6432
|
}
|
|
6433
6433
|
`, gc = B`
|
|
6434
6434
|
&&& {
|
|
6435
|
-
${
|
|
6435
|
+
${G({ align: "stretch" })};
|
|
6436
6436
|
position: relative;
|
|
6437
6437
|
padding: 5px 10px;
|
|
6438
6438
|
border-radius: 4px;
|
|
@@ -6440,37 +6440,37 @@ var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
|
|
|
6440
6440
|
gap: 2px;
|
|
6441
6441
|
|
|
6442
6442
|
&:hover {
|
|
6443
|
-
background: ${
|
|
6443
|
+
background: ${K.white.alpha(.06)};
|
|
6444
6444
|
}
|
|
6445
6445
|
|
|
6446
6446
|
> .bar {
|
|
6447
6447
|
position: absolute;
|
|
6448
6448
|
inset: 0 auto 0 0;
|
|
6449
|
-
background: ${
|
|
6449
|
+
background: ${K.secondary.alpha(.12)};
|
|
6450
6450
|
pointer-events: none;
|
|
6451
6451
|
|
|
6452
6452
|
&.error {
|
|
6453
|
-
background: ${
|
|
6453
|
+
background: ${K.error.alpha(.15)};
|
|
6454
6454
|
}
|
|
6455
6455
|
|
|
6456
6456
|
&.warning {
|
|
6457
|
-
background: ${
|
|
6457
|
+
background: ${K.warning.alpha(.12)};
|
|
6458
6458
|
}
|
|
6459
6459
|
}
|
|
6460
6460
|
|
|
6461
6461
|
> .row {
|
|
6462
|
-
${
|
|
6462
|
+
${W({ gap: 8 })};
|
|
6463
6463
|
position: relative;
|
|
6464
6464
|
font-size: 13px;
|
|
6465
6465
|
max-width: 100%;
|
|
6466
6466
|
|
|
6467
6467
|
> .name {
|
|
6468
|
-
${
|
|
6468
|
+
${Y};
|
|
6469
6469
|
flex-shrink: 1;
|
|
6470
6470
|
}
|
|
6471
6471
|
|
|
6472
6472
|
> .detail {
|
|
6473
|
-
${
|
|
6473
|
+
${Y};
|
|
6474
6474
|
flex-shrink: 4;
|
|
6475
6475
|
opacity: 0.55;
|
|
6476
6476
|
font-size: 12px;
|
|
@@ -6478,26 +6478,26 @@ var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
|
|
|
6478
6478
|
|
|
6479
6479
|
> .metric {
|
|
6480
6480
|
margin-left: auto;
|
|
6481
|
-
font-family: ${
|
|
6481
|
+
font-family: ${q.decorative};
|
|
6482
6482
|
flex-shrink: 0;
|
|
6483
|
-
color: ${
|
|
6483
|
+
color: ${K.secondary.var};
|
|
6484
6484
|
|
|
6485
6485
|
&.error {
|
|
6486
|
-
color: ${
|
|
6486
|
+
color: ${K.error.var};
|
|
6487
6487
|
}
|
|
6488
6488
|
|
|
6489
6489
|
&.warning {
|
|
6490
|
-
color: ${
|
|
6490
|
+
color: ${K.warning.var};
|
|
6491
6491
|
}
|
|
6492
6492
|
}
|
|
6493
6493
|
}
|
|
6494
6494
|
}
|
|
6495
6495
|
`, _c = 1e4;
|
|
6496
6496
|
function vc(e) {
|
|
6497
|
-
return
|
|
6497
|
+
return tn(() => e.response === void 0 ? 0 : JSON.stringify(e.response).length) || 0;
|
|
6498
6498
|
}
|
|
6499
6499
|
function yc(e) {
|
|
6500
|
-
return
|
|
6500
|
+
return Zi(e, {
|
|
6501
6501
|
unit: "byte",
|
|
6502
6502
|
style: "unit",
|
|
6503
6503
|
notation: "compact",
|
|
@@ -6508,7 +6508,7 @@ function bc(e) {
|
|
|
6508
6508
|
return e.request.alias || (e.request.payload ? JSON.stringify(e.request.payload) : "");
|
|
6509
6509
|
}
|
|
6510
6510
|
function xc(e) {
|
|
6511
|
-
|
|
6511
|
+
Qr({
|
|
6512
6512
|
selectedPage: "explorer",
|
|
6513
6513
|
selectedCall: e.callID,
|
|
6514
6514
|
selectedRequest: e.request.id,
|
|
@@ -6518,29 +6518,30 @@ function xc(e) {
|
|
|
6518
6518
|
var Sc = () => {
|
|
6519
6519
|
let e = k(() => {
|
|
6520
6520
|
let e = [];
|
|
6521
|
-
for (let [t, n] of Object.entries(
|
|
6521
|
+
for (let [t, n] of Object.entries(U.calls)) for (let r of n.requests) e.push({
|
|
6522
6522
|
request: r,
|
|
6523
6523
|
callID: t,
|
|
6524
6524
|
callName: n.name
|
|
6525
6525
|
});
|
|
6526
6526
|
return e;
|
|
6527
6527
|
}), t = k(() => e().filter((e) => e.request.type !== "ws")), n = k(() => {
|
|
6528
|
-
let e = t(), n = 0, r = 0, i = 0, a = 0, o = 0;
|
|
6529
|
-
for (let { request: t } of e) t.warnings?.length && r++, t.status === "pending" ? i++ : (o++, a += t.duration, t.isError && n++);
|
|
6528
|
+
let e = t(), n = 0, r = 0, i = 0, a = 0, o = 0, s = 0;
|
|
6529
|
+
for (let { request: t } of e) t.warnings?.length && r++, s += vc(t), t.status === "pending" ? i++ : (t.duration > 0 && (o++, a += t.duration), t.isError && n++);
|
|
6530
6530
|
return {
|
|
6531
6531
|
total: e.length,
|
|
6532
6532
|
errors: n,
|
|
6533
6533
|
warnings: r,
|
|
6534
6534
|
pending: i,
|
|
6535
|
-
avgDuration: o === 0 ? 0 : a / o
|
|
6535
|
+
avgDuration: o === 0 ? 0 : a / o,
|
|
6536
|
+
totalSize: s
|
|
6536
6537
|
};
|
|
6537
|
-
}), r = k(() => t().filter((e) => e.request.status !== "pending").sort((e, t) => t.request.duration - e.request.duration).slice(0, 10)), i = k(() => t().map((e) => ({
|
|
6538
|
+
}), r = k(() => t().filter((e) => e.request.status !== "pending" && e.request.duration > 0).sort((e, t) => t.request.duration - e.request.duration).slice(0, 10)), i = k(() => t().map((e) => ({
|
|
6538
6539
|
...e,
|
|
6539
6540
|
size: vc(e.request)
|
|
6540
6541
|
})).filter((e) => e.size > 0).sort((e, t) => t.size - e.size).slice(0, 10)), a = k(() => {
|
|
6541
6542
|
let e = /* @__PURE__ */ new Map();
|
|
6542
6543
|
for (let n of t()) {
|
|
6543
|
-
let t =
|
|
6544
|
+
let t = tn(() => Qs({
|
|
6544
6545
|
callID: n.callID,
|
|
6545
6546
|
searchParams: n.request.searchParams,
|
|
6546
6547
|
payload: n.request.payload
|
|
@@ -6560,7 +6561,7 @@ var Sc = () => {
|
|
|
6560
6561
|
if (o < 2) continue;
|
|
6561
6562
|
let s = e.slice(r, i + 1), c = s[0], l = s[s.length - 1];
|
|
6562
6563
|
if (!c || !l) continue;
|
|
6563
|
-
let u = new Set(s.map((e) =>
|
|
6564
|
+
let u = new Set(s.map((e) => tn(() => JSON.stringify(e.request.response)) || ""));
|
|
6564
6565
|
n.push({
|
|
6565
6566
|
item: l,
|
|
6566
6567
|
count: o,
|
|
@@ -6587,14 +6588,14 @@ var Sc = () => {
|
|
|
6587
6588
|
return [...t.values()].sort((e, t) => t.unusedBytes - e.unusedBytes || t.fields.size - e.fields.size);
|
|
6588
6589
|
}), s = k(() => r()[0]?.request.duration || 1), c = k(() => i()[0]?.size || 1);
|
|
6589
6590
|
return (() => {
|
|
6590
|
-
var e = tc(), t = e.firstChild.nextSibling, l = t.firstChild, u = l.firstChild.nextSibling, d = l.nextSibling, f = d.firstChild.nextSibling, p = d.nextSibling, m = p.firstChild.nextSibling, h = p.nextSibling, g = h.firstChild.nextSibling, _ = h.nextSibling.firstChild.nextSibling, v = _.firstChild,
|
|
6591
|
-
|
|
6592
|
-
var ee = y.nextSibling;
|
|
6593
|
-
ee.firstChild;
|
|
6594
|
-
var b = ee.nextSibling;
|
|
6595
|
-
b.firstChild.nextSibling;
|
|
6591
|
+
var e = tc(), t = e.firstChild.nextSibling, l = t.firstChild, u = l.firstChild.nextSibling, d = l.nextSibling, f = d.firstChild.nextSibling, p = d.nextSibling, m = p.firstChild.nextSibling, h = p.nextSibling, g = h.firstChild.nextSibling, _ = h.nextSibling, v = _.firstChild.nextSibling, y = v.firstChild, ee = _.nextSibling.firstChild.nextSibling, b = t.nextSibling;
|
|
6592
|
+
b.firstChild;
|
|
6596
6593
|
var te = b.nextSibling;
|
|
6597
|
-
|
|
6594
|
+
te.firstChild;
|
|
6595
|
+
var ne = te.nextSibling;
|
|
6596
|
+
ne.firstChild.nextSibling;
|
|
6597
|
+
var x = ne.nextSibling;
|
|
6598
|
+
return x.firstChild.nextSibling, I(e, pc), I(t, mc), R(u, () => Zi(n().total)), R(f, () => Zi(n().errors)), R(m, () => Zi(n().warnings)), R(g, () => Zi(n().pending)), R(v, () => Zi(n().avgDuration, { maximumFractionDigits: 0 }), y), R(ee, () => yc(n().totalSize)), I(b, hc), R(b, A(j, {
|
|
6598
6599
|
get each() {
|
|
6599
6600
|
return r();
|
|
6600
6601
|
},
|
|
@@ -6616,11 +6617,11 @@ var Sc = () => {
|
|
|
6616
6617
|
}), t;
|
|
6617
6618
|
})(), (() => {
|
|
6618
6619
|
var t = ic(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
|
|
6619
|
-
return R(n, () => e.callName), R(r, () => bc(e)), R(i, () =>
|
|
6620
|
+
return R(n, () => e.callName), R(r, () => bc(e)), R(i, () => Zi(e.request.duration, { maximumFractionDigits: 0 }), a), O(() => i.classList.toggle("error", e.request.duration > 1e3)), t;
|
|
6620
6621
|
})()];
|
|
6621
6622
|
}
|
|
6622
6623
|
})
|
|
6623
|
-
}), null), I(
|
|
6624
|
+
}), null), I(te, hc), R(te, A(j, {
|
|
6624
6625
|
get each() {
|
|
6625
6626
|
return i();
|
|
6626
6627
|
},
|
|
@@ -6640,7 +6641,7 @@ var Sc = () => {
|
|
|
6640
6641
|
})()];
|
|
6641
6642
|
}
|
|
6642
6643
|
})
|
|
6643
|
-
}), null), I(
|
|
6644
|
+
}), null), I(ne, hc), R(ne, A(j, {
|
|
6644
6645
|
get each() {
|
|
6645
6646
|
return a();
|
|
6646
6647
|
},
|
|
@@ -6659,11 +6660,11 @@ var Sc = () => {
|
|
|
6659
6660
|
return o.nextSibling, R(n, () => e.item.callName), R(r, () => bc(e.item)), R(t, (() => {
|
|
6660
6661
|
var t = N(() => !!e.sameResponse);
|
|
6661
6662
|
return () => t() && uc();
|
|
6662
|
-
})(), i), R(i, () => e.count, a), R(i, () =>
|
|
6663
|
+
})(), i), R(i, () => e.count, a), R(i, () => Zi(e.windowMs / 1e3, { maximumFractionDigits: 1 }), o), t;
|
|
6663
6664
|
})()];
|
|
6664
6665
|
}
|
|
6665
6666
|
})
|
|
6666
|
-
}), null), I(
|
|
6667
|
+
}), null), I(x, hc), R(x, A(j, {
|
|
6667
6668
|
get each() {
|
|
6668
6669
|
return o();
|
|
6669
6670
|
},
|
|
@@ -6681,7 +6682,7 @@ var Sc = () => {
|
|
|
6681
6682
|
var t = fc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
|
|
6682
6683
|
return R(n, () => e.item.callName), R(r, () => [...e.fields].join(", ")), R(i, () => e.fields.size, a), R(i, () => e.fields.size === 1 ? "" : "s", null), R(i, (() => {
|
|
6683
6684
|
var t = N(() => e.unusedBytes > 0);
|
|
6684
|
-
return () => t() && ` · ${
|
|
6685
|
+
return () => t() && ` · ${Zi(e.unusedBytes, {
|
|
6685
6686
|
unit: "byte",
|
|
6686
6687
|
style: "unit",
|
|
6687
6688
|
notation: "compact",
|
|
@@ -6702,20 +6703,20 @@ var Sc = () => {
|
|
|
6702
6703
|
})();
|
|
6703
6704
|
}, Cc = /*#__PURE__*/ P("<div><h1>timeline"), wc = /*#__PURE__*/ P("<div class=empty>no requests tracked yet"), Tc = /*#__PURE__*/ P("<div><label class=search><input type=text placeholder=Search>"), Ec = /*#__PURE__*/ P("<div title=\"Drag to filter a time range, click to reset\">"), Dc = /*#__PURE__*/ P("<div><span></span><span> requests</span><span>"), Oc = /*#__PURE__*/ P("<div><div class=content>"), kc = /*#__PURE__*/ P("<div class=tick>"), Ac = /*#__PURE__*/ P("<div class=\"tick marker\">"), jc = /*#__PURE__*/ P("<div class=shade style=left:0>"), Mc = /*#__PURE__*/ P("<div class=shade style=right:0>"), Nc = /*#__PURE__*/ P("<div class=handle data-handle=start>"), Pc = /*#__PURE__*/ P("<div class=handle data-handle=end>"), Fc = /*#__PURE__*/ P("<div>"), Ic = /*#__PURE__*/ P("<div class=marker-line><button>"), Lc = /*#__PURE__*/ P("<div class=row role=button tabindex=0><div class=label><span></span><span class=name></span></div><div class=track><div class=bar></div><span class=duration>"), Rc = /*#__PURE__*/ P("<span class=alias>"), zc = 220, Bc = B`
|
|
6704
6705
|
&&& {
|
|
6705
|
-
${
|
|
6706
|
+
${G({ align: "stretch" })};
|
|
6706
6707
|
overflow: hidden;
|
|
6707
6708
|
padding: 12px 16px 0;
|
|
6708
6709
|
gap: 8px;
|
|
6709
6710
|
|
|
6710
6711
|
> h1 {
|
|
6711
6712
|
font-size: 16px;
|
|
6712
|
-
font-family: ${
|
|
6713
|
-
color: ${
|
|
6713
|
+
font-family: ${q.decorative};
|
|
6714
|
+
color: ${K.secondary.var};
|
|
6714
6715
|
}
|
|
6715
6716
|
|
|
6716
6717
|
> .hint {
|
|
6717
6718
|
font-size: 11px;
|
|
6718
|
-
color: ${
|
|
6719
|
+
color: ${K.white.alpha(.4)};
|
|
6719
6720
|
}
|
|
6720
6721
|
|
|
6721
6722
|
> .empty {
|
|
@@ -6726,28 +6727,28 @@ var Sc = () => {
|
|
|
6726
6727
|
}
|
|
6727
6728
|
`, Vc = B`
|
|
6728
6729
|
&&& {
|
|
6729
|
-
${
|
|
6730
|
+
${W({ gap: 12 })};
|
|
6730
6731
|
flex-shrink: 0;
|
|
6731
6732
|
|
|
6732
6733
|
> .search {
|
|
6733
|
-
${
|
|
6734
|
+
${W({ gap: 8 })};
|
|
6734
6735
|
display: grid;
|
|
6735
6736
|
grid-template-columns: 14px 1fr;
|
|
6736
6737
|
width: 220px;
|
|
6737
|
-
background: ${
|
|
6738
|
+
background: ${K.white.alpha(.05)};
|
|
6738
6739
|
border-radius: 4px;
|
|
6739
6740
|
--icon-size: 16px;
|
|
6740
6741
|
padding: 4px 0;
|
|
6741
6742
|
padding-left: 6px;
|
|
6742
6743
|
|
|
6743
6744
|
.icon {
|
|
6744
|
-
color: ${
|
|
6745
|
+
color: ${K.secondary.var};
|
|
6745
6746
|
}
|
|
6746
6747
|
|
|
6747
6748
|
input {
|
|
6748
6749
|
border: none;
|
|
6749
6750
|
background: transparent;
|
|
6750
|
-
color: ${
|
|
6751
|
+
color: ${K.white.var};
|
|
6751
6752
|
font-size: 13px;
|
|
6752
6753
|
|
|
6753
6754
|
&:focus {
|
|
@@ -6759,7 +6760,7 @@ var Sc = () => {
|
|
|
6759
6760
|
> button {
|
|
6760
6761
|
font-size: 12px;
|
|
6761
6762
|
opacity: 0.5;
|
|
6762
|
-
${
|
|
6763
|
+
${di()};
|
|
6763
6764
|
|
|
6764
6765
|
&:hover {
|
|
6765
6766
|
opacity: 1;
|
|
@@ -6767,7 +6768,7 @@ var Sc = () => {
|
|
|
6767
6768
|
|
|
6768
6769
|
&.active {
|
|
6769
6770
|
opacity: 1;
|
|
6770
|
-
color: ${
|
|
6771
|
+
color: ${K.primary.var};
|
|
6771
6772
|
}
|
|
6772
6773
|
}
|
|
6773
6774
|
}
|
|
@@ -6776,8 +6777,8 @@ var Sc = () => {
|
|
|
6776
6777
|
position: relative;
|
|
6777
6778
|
height: 44px;
|
|
6778
6779
|
flex-shrink: 0;
|
|
6779
|
-
background: ${
|
|
6780
|
-
border: 1px solid ${
|
|
6780
|
+
background: ${K.white.alpha(.04)};
|
|
6781
|
+
border: 1px solid ${K.white.alpha(.1)};
|
|
6781
6782
|
border-radius: 4px;
|
|
6782
6783
|
cursor: crosshair;
|
|
6783
6784
|
touch-action: none;
|
|
@@ -6788,25 +6789,25 @@ var Sc = () => {
|
|
|
6788
6789
|
top: 8px;
|
|
6789
6790
|
bottom: 8px;
|
|
6790
6791
|
width: 2px;
|
|
6791
|
-
background: ${
|
|
6792
|
+
background: ${K.secondary.alpha(.6)};
|
|
6792
6793
|
pointer-events: none;
|
|
6793
6794
|
|
|
6794
6795
|
&.warning {
|
|
6795
|
-
background: ${
|
|
6796
|
+
background: ${K.warning.alpha(.8)};
|
|
6796
6797
|
}
|
|
6797
6798
|
|
|
6798
6799
|
&.error {
|
|
6799
|
-
background: ${
|
|
6800
|
+
background: ${K.error.alpha(.8)};
|
|
6800
6801
|
}
|
|
6801
6802
|
|
|
6802
6803
|
&.pending {
|
|
6803
|
-
background: ${
|
|
6804
|
+
background: ${K.white.alpha(.4)};
|
|
6804
6805
|
}
|
|
6805
6806
|
|
|
6806
6807
|
&.marker {
|
|
6807
6808
|
top: 2px;
|
|
6808
6809
|
bottom: 2px;
|
|
6809
|
-
background: ${
|
|
6810
|
+
background: ${K.warning.var};
|
|
6810
6811
|
}
|
|
6811
6812
|
}
|
|
6812
6813
|
|
|
@@ -6814,7 +6815,7 @@ var Sc = () => {
|
|
|
6814
6815
|
position: absolute;
|
|
6815
6816
|
top: 0;
|
|
6816
6817
|
bottom: 0;
|
|
6817
|
-
background: ${
|
|
6818
|
+
background: ${K.black.alpha(.5)};
|
|
6818
6819
|
pointer-events: none;
|
|
6819
6820
|
}
|
|
6820
6821
|
|
|
@@ -6825,55 +6826,55 @@ var Sc = () => {
|
|
|
6825
6826
|
width: 12px;
|
|
6826
6827
|
transform: translateX(-50%);
|
|
6827
6828
|
cursor: ew-resize;
|
|
6828
|
-
${
|
|
6829
|
+
${W({ justify: "center" })};
|
|
6829
6830
|
|
|
6830
6831
|
&::before {
|
|
6831
6832
|
content: '';
|
|
6832
6833
|
width: 4px;
|
|
6833
6834
|
height: 100%;
|
|
6834
6835
|
border-radius: 2px;
|
|
6835
|
-
background: ${
|
|
6836
|
+
background: ${K.primary.var};
|
|
6836
6837
|
}
|
|
6837
6838
|
}
|
|
6838
6839
|
}
|
|
6839
6840
|
`, Uc = B`
|
|
6840
6841
|
&&& {
|
|
6841
|
-
${
|
|
6842
|
+
${W({ gap: 6 })};
|
|
6842
6843
|
flex-wrap: wrap;
|
|
6843
6844
|
flex-shrink: 0;
|
|
6844
6845
|
|
|
6845
6846
|
> button {
|
|
6846
6847
|
font-size: 11px;
|
|
6847
|
-
font-family: ${
|
|
6848
|
-
color: ${
|
|
6849
|
-
border: 1px solid ${
|
|
6848
|
+
font-family: ${q.decorative};
|
|
6849
|
+
color: ${K.white.alpha(.7)};
|
|
6850
|
+
border: 1px solid ${K.white.alpha(.15)};
|
|
6850
6851
|
border-radius: 4px;
|
|
6851
6852
|
padding: 3px 8px;
|
|
6852
6853
|
white-space: nowrap;
|
|
6853
6854
|
|
|
6854
6855
|
&:hover {
|
|
6855
|
-
color: ${
|
|
6856
|
-
border-color: ${
|
|
6856
|
+
color: ${K.white.var};
|
|
6857
|
+
border-color: ${K.white.alpha(.35)};
|
|
6857
6858
|
}
|
|
6858
6859
|
|
|
6859
6860
|
&.danger:hover {
|
|
6860
|
-
color: ${
|
|
6861
|
-
border-color: ${
|
|
6861
|
+
color: ${K.error.var};
|
|
6862
|
+
border-color: ${K.error.alpha(.5)};
|
|
6862
6863
|
}
|
|
6863
6864
|
|
|
6864
6865
|
&.marker:hover {
|
|
6865
|
-
color: ${
|
|
6866
|
-
border-color: ${
|
|
6866
|
+
color: ${K.warning.var};
|
|
6867
|
+
border-color: ${K.warning.alpha(.5)};
|
|
6867
6868
|
}
|
|
6868
6869
|
}
|
|
6869
6870
|
}
|
|
6870
6871
|
`, Wc = B`
|
|
6871
6872
|
&&& {
|
|
6872
|
-
${
|
|
6873
|
+
${W()};
|
|
6873
6874
|
justify-content: space-between;
|
|
6874
6875
|
font-size: 11px;
|
|
6875
|
-
font-family: ${
|
|
6876
|
-
color: ${
|
|
6876
|
+
font-family: ${q.decorative};
|
|
6877
|
+
color: ${K.white.alpha(.5)};
|
|
6877
6878
|
flex-shrink: 0;
|
|
6878
6879
|
}
|
|
6879
6880
|
`, Gc = B`
|
|
@@ -6891,17 +6892,17 @@ var Sc = () => {
|
|
|
6891
6892
|
top: 0;
|
|
6892
6893
|
bottom: 0;
|
|
6893
6894
|
width: 0;
|
|
6894
|
-
border-left: 1px dashed ${
|
|
6895
|
+
border-left: 1px dashed ${K.warning.alpha(.7)};
|
|
6895
6896
|
z-index: 1;
|
|
6896
6897
|
|
|
6897
6898
|
> button {
|
|
6898
6899
|
position: sticky;
|
|
6899
6900
|
top: 0;
|
|
6900
6901
|
font-size: 10px;
|
|
6901
|
-
font-family: ${
|
|
6902
|
-
color: ${
|
|
6903
|
-
background: ${
|
|
6904
|
-
border: 1px solid ${
|
|
6902
|
+
font-family: ${q.decorative};
|
|
6903
|
+
color: ${K.warning.var};
|
|
6904
|
+
background: ${K.bgPrimary.var};
|
|
6905
|
+
border: 1px solid ${K.warning.alpha(.5)};
|
|
6905
6906
|
border-radius: 3px;
|
|
6906
6907
|
padding: 0 4px;
|
|
6907
6908
|
margin-left: 2px;
|
|
@@ -6919,22 +6920,22 @@ var Sc = () => {
|
|
|
6919
6920
|
width: 100%;
|
|
6920
6921
|
|
|
6921
6922
|
&:hover {
|
|
6922
|
-
background: ${
|
|
6923
|
+
background: ${K.white.alpha(.05)};
|
|
6923
6924
|
}
|
|
6924
6925
|
|
|
6925
6926
|
> .label {
|
|
6926
|
-
${
|
|
6927
|
+
${W({ gap: 6 })};
|
|
6927
6928
|
font-size: 12px;
|
|
6928
6929
|
padding-right: 10px;
|
|
6929
6930
|
overflow: hidden;
|
|
6930
6931
|
|
|
6931
6932
|
> .name {
|
|
6932
|
-
${
|
|
6933
|
+
${Y};
|
|
6933
6934
|
flex-shrink: 1;
|
|
6934
6935
|
}
|
|
6935
6936
|
|
|
6936
6937
|
> .alias {
|
|
6937
|
-
${
|
|
6938
|
+
${Y};
|
|
6938
6939
|
flex-shrink: 4;
|
|
6939
6940
|
opacity: 0.5;
|
|
6940
6941
|
font-size: 11px;
|
|
@@ -6950,24 +6951,24 @@ var Sc = () => {
|
|
|
6950
6951
|
top: 5px;
|
|
6951
6952
|
bottom: 5px;
|
|
6952
6953
|
border-radius: 2px;
|
|
6953
|
-
background: ${
|
|
6954
|
+
background: ${K.success.alpha(.8)};
|
|
6954
6955
|
min-width: 3px;
|
|
6955
6956
|
|
|
6956
6957
|
&.warning {
|
|
6957
|
-
background: ${
|
|
6958
|
+
background: ${K.warning.alpha(.85)};
|
|
6958
6959
|
}
|
|
6959
6960
|
|
|
6960
6961
|
&.error {
|
|
6961
|
-
background: ${
|
|
6962
|
+
background: ${K.error.alpha(.9)};
|
|
6962
6963
|
}
|
|
6963
6964
|
|
|
6964
6965
|
&.pending {
|
|
6965
|
-
background: ${
|
|
6966
|
+
background: ${K.secondary.alpha(.7)};
|
|
6966
6967
|
animation: devtoolsPendingPulse 1.2s ease-in-out infinite;
|
|
6967
6968
|
}
|
|
6968
6969
|
|
|
6969
6970
|
&.ws {
|
|
6970
|
-
background: ${
|
|
6971
|
+
background: ${K.primary.alpha(.8)};
|
|
6971
6972
|
}
|
|
6972
6973
|
}
|
|
6973
6974
|
|
|
@@ -6975,10 +6976,10 @@ var Sc = () => {
|
|
|
6975
6976
|
position: absolute;
|
|
6976
6977
|
top: 0;
|
|
6977
6978
|
bottom: 0;
|
|
6978
|
-
${
|
|
6979
|
+
${W()};
|
|
6979
6980
|
font-size: 10px;
|
|
6980
|
-
font-family: ${
|
|
6981
|
-
color: ${
|
|
6981
|
+
font-family: ${q.decorative};
|
|
6982
|
+
color: ${K.white.alpha(.6)};
|
|
6982
6983
|
padding-left: 5px;
|
|
6983
6984
|
pointer-events: none;
|
|
6984
6985
|
}
|
|
@@ -7001,13 +7002,13 @@ function Kc(e, t, n) {
|
|
|
7001
7002
|
return Math.min(Math.max(e, t), n);
|
|
7002
7003
|
}
|
|
7003
7004
|
var qc = 400, Jc = () => {
|
|
7004
|
-
let t =
|
|
7005
|
+
let t = H(""), n = H("all"), [r, i] = D(Date.now()), a = window.setInterval(() => {
|
|
7005
7006
|
i(() => Date.now());
|
|
7006
7007
|
}, 1e3);
|
|
7007
7008
|
ue(() => window.clearInterval(a));
|
|
7008
7009
|
let o = k(() => {
|
|
7009
7010
|
let e = [];
|
|
7010
|
-
for (let [t, n] of Object.entries(
|
|
7011
|
+
for (let [t, n] of Object.entries(U.calls)) for (let r of n.requests) e.push({
|
|
7011
7012
|
request: r,
|
|
7012
7013
|
callID: t,
|
|
7013
7014
|
callName: n.name
|
|
@@ -7019,7 +7020,7 @@ var qc = 400, Jc = () => {
|
|
|
7019
7020
|
if (e === "api" && t.request.type === "ws" || e === "ws" && t.request.type !== "ws" || e === "error" && !t.request.isError) return !1;
|
|
7020
7021
|
if (r) {
|
|
7021
7022
|
let e = `${t.callName} ${t.request.alias || ""} ${t.request.method || ""} ${t.request.subType || ""}`;
|
|
7022
|
-
if (!
|
|
7023
|
+
if (!pi(r, e).matched) return !1;
|
|
7023
7024
|
}
|
|
7024
7025
|
return !0;
|
|
7025
7026
|
});
|
|
@@ -7028,7 +7029,7 @@ var qc = 400, Jc = () => {
|
|
|
7028
7029
|
return e.status === "pending" ? r() : e.startTime + e.duration;
|
|
7029
7030
|
}
|
|
7030
7031
|
let l = k(() => {
|
|
7031
|
-
let e = o(), t =
|
|
7032
|
+
let e = o(), t = U.markers, n = Infinity, r = -Infinity;
|
|
7032
7033
|
for (let t of e) n = Math.min(n, t.request.startTime), r = Math.max(r, c(t.request));
|
|
7033
7034
|
for (let e of t) n = Math.min(n, e.time), r = Math.max(r, e.time);
|
|
7034
7035
|
return n === Infinity ? null : {
|
|
@@ -7089,7 +7090,7 @@ var qc = 400, Jc = () => {
|
|
|
7089
7090
|
return e ? s().filter((t) => t.request.startTime <= e.end && c(t.request) >= e.start) : [];
|
|
7090
7091
|
}), ne = k(() => te().slice(-400)), x = k(() => {
|
|
7091
7092
|
let e = b();
|
|
7092
|
-
return e ?
|
|
7093
|
+
return e ? U.markers.filter((t) => t.time >= e.start && t.time <= e.end) : [];
|
|
7093
7094
|
});
|
|
7094
7095
|
function re(e) {
|
|
7095
7096
|
let t = b();
|
|
@@ -7159,7 +7160,7 @@ var qc = 400, Jc = () => {
|
|
|
7159
7160
|
})()
|
|
7160
7161
|
}), null), R(e, A(j, {
|
|
7161
7162
|
get each() {
|
|
7162
|
-
return
|
|
7163
|
+
return U.markers;
|
|
7163
7164
|
},
|
|
7164
7165
|
children: (e) => (() => {
|
|
7165
7166
|
var t = Ac();
|
|
@@ -7202,7 +7203,7 @@ var qc = 400, Jc = () => {
|
|
|
7202
7203
|
return I(t, Uc), R(t, A(z, {
|
|
7203
7204
|
class: "danger",
|
|
7204
7205
|
title: "Remove all requests that ended before the selection",
|
|
7205
|
-
onClick: () =>
|
|
7206
|
+
onClick: () => Pn(e().start),
|
|
7206
7207
|
children: "clear requests before"
|
|
7207
7208
|
}), null), R(t, A(z, {
|
|
7208
7209
|
title: "Reset the selected time range",
|
|
@@ -7213,24 +7214,24 @@ var qc = 400, Jc = () => {
|
|
|
7213
7214
|
}), null), R(t, A(z, {
|
|
7214
7215
|
class: "danger",
|
|
7215
7216
|
title: "Remove all requests that started after the selection",
|
|
7216
|
-
onClick: () =>
|
|
7217
|
+
onClick: () => Fn(e().end),
|
|
7217
7218
|
children: "clear requests after"
|
|
7218
7219
|
}), null), R(t, A(z, {
|
|
7219
7220
|
class: "danger",
|
|
7220
7221
|
title: "Remove the requests inside the selection",
|
|
7221
7222
|
onClick: () => {
|
|
7222
|
-
|
|
7223
|
+
In(e().start, e().end), d(() => null);
|
|
7223
7224
|
},
|
|
7224
7225
|
children: "clear selected requests"
|
|
7225
7226
|
}), null), R(t, A(z, {
|
|
7226
7227
|
class: "marker",
|
|
7227
7228
|
title: "Add a marker at the selection start",
|
|
7228
|
-
onClick: () =>
|
|
7229
|
+
onClick: () => mr(e().start),
|
|
7229
7230
|
children: "add marker before"
|
|
7230
7231
|
}), null), R(t, A(z, {
|
|
7231
7232
|
class: "marker",
|
|
7232
7233
|
title: "Add a marker at the selection end",
|
|
7233
|
-
onClick: () =>
|
|
7234
|
+
onClick: () => mr(e().end),
|
|
7234
7235
|
children: "add marker after"
|
|
7235
7236
|
}), null), t;
|
|
7236
7237
|
})()
|
|
@@ -7243,7 +7244,7 @@ var qc = 400, Jc = () => {
|
|
|
7243
7244
|
},
|
|
7244
7245
|
children: (t) => (() => {
|
|
7245
7246
|
var n = Ic(), r = n.firstChild;
|
|
7246
|
-
return r.$$click = () =>
|
|
7247
|
+
return r.$$click = () => An(t.id), R(r, () => t.label), O((i) => {
|
|
7247
7248
|
var a = S(t), o = `${t.label} · ${e(t.time).format("HH:mm:ss.SSS")} · click to remove`;
|
|
7248
7249
|
return a !== i.e && L(n, "left", i.e = a), o !== i.t && F(r, "title", i.t = o), i;
|
|
7249
7250
|
}, {
|
|
@@ -7260,13 +7261,13 @@ var qc = 400, Jc = () => {
|
|
|
7260
7261
|
return (() => {
|
|
7261
7262
|
var r = Lc(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling.firstChild, c = s.nextSibling;
|
|
7262
7263
|
return r.$$click = () => {
|
|
7263
|
-
|
|
7264
|
+
Qr({
|
|
7264
7265
|
selectedPage: "explorer",
|
|
7265
7266
|
selectedCall: e.callID,
|
|
7266
7267
|
selectedRequest: e.request.id,
|
|
7267
7268
|
selectedSubitem: null
|
|
7268
7269
|
});
|
|
7269
|
-
}, R(a, () =>
|
|
7270
|
+
}, R(a, () => ti(e.request).label), R(o, () => e.callName), R(i, (() => {
|
|
7270
7271
|
var t = N(() => !!e.request.alias);
|
|
7271
7272
|
return () => t() && (() => {
|
|
7272
7273
|
var t = Rc();
|
|
@@ -7274,9 +7275,9 @@ var qc = 400, Jc = () => {
|
|
|
7274
7275
|
})();
|
|
7275
7276
|
})(), null), R(c, (() => {
|
|
7276
7277
|
var t = N(() => e.request.status === "pending");
|
|
7277
|
-
return () => t() ? "pending…" : `${
|
|
7278
|
+
return () => t() ? "pending…" : `${Zi(e.request.duration, { maximumFractionDigits: 0 })}ms`;
|
|
7278
7279
|
})()), O((i) => {
|
|
7279
|
-
var o = `${e.callName} · ${e.request.status === "pending" ? "pending" : `${
|
|
7280
|
+
var o = `${e.callName} · ${e.request.status === "pending" ? "pending" : `${Zi(e.request.duration, { maximumFractionDigits: 0 })}ms`}`, l = `${$r} ${ti(e.request).class}`, u = !!e.request.isError, d = !!(!e.request.isError && e.request.warnings?.length), f = e.request.status === "pending", p = e.request.type === "ws", m = `${t()}%`, h = `${Math.max(n() - t(), .2)}%`, g = `${Math.min(n(), 88)}%`;
|
|
7280
7281
|
return o !== i.e && F(r, "title", i.e = o), l !== i.t && I(a, i.t = l), u !== i.a && s.classList.toggle("error", i.a = u), d !== i.o && s.classList.toggle("warning", i.o = d), f !== i.i && s.classList.toggle("pending", i.i = f), p !== i.n && s.classList.toggle("ws", i.n = p), m !== i.s && L(s, "left", i.s = m), h !== i.h && L(s, "width", i.h = h), g !== i.r && L(c, "left", i.r = g), i;
|
|
7281
7282
|
}, {
|
|
7282
7283
|
e: void 0,
|
|
@@ -7307,8 +7308,8 @@ it([
|
|
|
7307
7308
|
//#endregion
|
|
7308
7309
|
//#region src/style/globalStyle.ts
|
|
7309
7310
|
var Yc = `
|
|
7310
|
-
font-family: ${
|
|
7311
|
-
color: ${
|
|
7311
|
+
font-family: ${q.primary};
|
|
7312
|
+
color: ${K.textPrimary.var};
|
|
7312
7313
|
|
|
7313
7314
|
* {
|
|
7314
7315
|
user-select: none;
|
|
@@ -7391,7 +7392,7 @@ function tl() {
|
|
|
7391
7392
|
}
|
|
7392
7393
|
let e = window.open("", "app-devtools-window", "width=1400,height=900,popup=yes");
|
|
7393
7394
|
if (!e) {
|
|
7394
|
-
|
|
7395
|
+
ur("The popup was blocked by the browser");
|
|
7395
7396
|
return;
|
|
7396
7397
|
}
|
|
7397
7398
|
$c = e;
|
|
@@ -7431,20 +7432,20 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7431
7432
|
position: fixed;
|
|
7432
7433
|
inset: 32px;
|
|
7433
7434
|
border-radius: 4px;
|
|
7434
|
-
background: ${
|
|
7435
|
+
background: ${K.bgPrimary.var};
|
|
7435
7436
|
display: grid;
|
|
7436
7437
|
grid-template-columns: 51px 1fr;
|
|
7437
7438
|
|
|
7438
7439
|
nav {
|
|
7439
|
-
${
|
|
7440
|
-
border-right: 1px solid ${
|
|
7440
|
+
${G()};
|
|
7441
|
+
border-right: 1px solid ${K.white.alpha(.1)};
|
|
7441
7442
|
padding-bottom: 8px;
|
|
7442
7443
|
|
|
7443
7444
|
button {
|
|
7444
7445
|
${Xc};
|
|
7445
7446
|
width: 100%;
|
|
7446
7447
|
aspect-ratio: 1 / 1;
|
|
7447
|
-
color: ${
|
|
7448
|
+
color: ${K.white.alpha(.55)};
|
|
7448
7449
|
--icon-size: 24px;
|
|
7449
7450
|
position: relative;
|
|
7450
7451
|
|
|
@@ -7453,43 +7454,43 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7453
7454
|
}
|
|
7454
7455
|
|
|
7455
7456
|
&:hover {
|
|
7456
|
-
color: ${
|
|
7457
|
+
color: ${K.white.var};
|
|
7457
7458
|
}
|
|
7458
7459
|
|
|
7459
7460
|
&.active {
|
|
7460
|
-
color: ${
|
|
7461
|
+
color: ${K.bgPrimary.var};
|
|
7461
7462
|
|
|
7462
7463
|
&::before {
|
|
7463
7464
|
content: '';
|
|
7464
7465
|
inset: 6px;
|
|
7465
7466
|
border-radius: 3px;
|
|
7466
7467
|
position: absolute;
|
|
7467
|
-
background: ${
|
|
7468
|
+
background: ${K.primary.var};
|
|
7468
7469
|
}
|
|
7469
7470
|
}
|
|
7470
7471
|
}
|
|
7471
7472
|
|
|
7472
7473
|
.nav-actions {
|
|
7473
7474
|
margin-top: auto;
|
|
7474
|
-
${
|
|
7475
|
-
border-top: 1px solid ${
|
|
7475
|
+
${G()};
|
|
7476
|
+
border-top: 1px solid ${K.white.alpha(.1)};
|
|
7476
7477
|
|
|
7477
7478
|
button {
|
|
7478
7479
|
aspect-ratio: 1 / 0.8;
|
|
7479
7480
|
--icon-size: 19px;
|
|
7480
|
-
color: ${
|
|
7481
|
+
color: ${K.white.alpha(.45)};
|
|
7481
7482
|
|
|
7482
7483
|
&:hover {
|
|
7483
|
-
color: ${
|
|
7484
|
+
color: ${K.white.var};
|
|
7484
7485
|
|
|
7485
7486
|
&.danger {
|
|
7486
|
-
color: ${
|
|
7487
|
+
color: ${K.error.var};
|
|
7487
7488
|
}
|
|
7488
7489
|
}
|
|
7489
7490
|
|
|
7490
7491
|
&.toggle-on,
|
|
7491
7492
|
&.toggle-on:hover {
|
|
7492
|
-
color: ${
|
|
7493
|
+
color: ${K.secondary.var};
|
|
7493
7494
|
}
|
|
7494
7495
|
}
|
|
7495
7496
|
}
|
|
@@ -7550,10 +7551,10 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7550
7551
|
return e.title;
|
|
7551
7552
|
},
|
|
7552
7553
|
get classList() {
|
|
7553
|
-
return { active:
|
|
7554
|
+
return { active: J.selectedPage === e.id };
|
|
7554
7555
|
},
|
|
7555
7556
|
onClick: () => {
|
|
7556
|
-
|
|
7557
|
+
Qr("selectedPage", e.id);
|
|
7557
7558
|
},
|
|
7558
7559
|
get children() {
|
|
7559
7560
|
return A(V, { get name() {
|
|
@@ -7563,23 +7564,23 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7563
7564
|
})
|
|
7564
7565
|
}), r), R(r, A(z, {
|
|
7565
7566
|
get classList() {
|
|
7566
|
-
return { "toggle-on":
|
|
7567
|
+
return { "toggle-on": Zr.value };
|
|
7567
7568
|
},
|
|
7568
7569
|
get title() {
|
|
7569
|
-
return
|
|
7570
|
+
return Zr.value ? "Hide sensitive values" : "Show sensitive values";
|
|
7570
7571
|
},
|
|
7571
7572
|
onClick: () => {
|
|
7572
|
-
|
|
7573
|
+
Zr.value = !Zr.value;
|
|
7573
7574
|
},
|
|
7574
7575
|
get children() {
|
|
7575
7576
|
return A(V, { get name() {
|
|
7576
|
-
return
|
|
7577
|
+
return Zr.value ? "eye-off" : "eye";
|
|
7577
7578
|
} });
|
|
7578
7579
|
}
|
|
7579
7580
|
}), null), R(r, A(z, {
|
|
7580
7581
|
title: "Add a marker to the timeline",
|
|
7581
7582
|
onClick: () => {
|
|
7582
|
-
|
|
7583
|
+
mr();
|
|
7583
7584
|
},
|
|
7584
7585
|
get children() {
|
|
7585
7586
|
return A(V, { name: "flag" });
|
|
@@ -7587,7 +7588,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7587
7588
|
}), null), R(r, A(z, {
|
|
7588
7589
|
title: "Export history",
|
|
7589
7590
|
onClick: () => {
|
|
7590
|
-
|
|
7591
|
+
zr.value = !0;
|
|
7591
7592
|
},
|
|
7592
7593
|
get children() {
|
|
7593
7594
|
return A(V, { name: "download" });
|
|
@@ -7611,7 +7612,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7611
7612
|
class: "danger",
|
|
7612
7613
|
title: "Clear history",
|
|
7613
7614
|
onClick: () => {
|
|
7614
|
-
|
|
7615
|
+
jn(), Tr(), ur("History cleared");
|
|
7615
7616
|
},
|
|
7616
7617
|
get children() {
|
|
7617
7618
|
return A(V, { name: "trash" });
|
|
@@ -7620,7 +7621,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7620
7621
|
return [
|
|
7621
7622
|
A(qe, {
|
|
7622
7623
|
get when() {
|
|
7623
|
-
return
|
|
7624
|
+
return J.selectedPage === "explorer";
|
|
7624
7625
|
},
|
|
7625
7626
|
get children() {
|
|
7626
7627
|
return A(ts, {});
|
|
@@ -7628,7 +7629,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7628
7629
|
}),
|
|
7629
7630
|
A(qe, {
|
|
7630
7631
|
get when() {
|
|
7631
|
-
return
|
|
7632
|
+
return J.selectedPage === "timeline";
|
|
7632
7633
|
},
|
|
7633
7634
|
get children() {
|
|
7634
7635
|
return A(Jc, {});
|
|
@@ -7636,7 +7637,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7636
7637
|
}),
|
|
7637
7638
|
A(qe, {
|
|
7638
7639
|
get when() {
|
|
7639
|
-
return
|
|
7640
|
+
return J.selectedPage === "stats";
|
|
7640
7641
|
},
|
|
7641
7642
|
get children() {
|
|
7642
7643
|
return A(Sc, {});
|
|
@@ -7644,7 +7645,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7644
7645
|
}),
|
|
7645
7646
|
A(qe, {
|
|
7646
7647
|
get when() {
|
|
7647
|
-
return
|
|
7648
|
+
return J.selectedPage === "logs";
|
|
7648
7649
|
},
|
|
7649
7650
|
get children() {
|
|
7650
7651
|
return A(Xs, {});
|
|
@@ -7652,7 +7653,7 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7652
7653
|
}),
|
|
7653
7654
|
A(qe, {
|
|
7654
7655
|
get when() {
|
|
7655
|
-
return
|
|
7656
|
+
return J.selectedPage === "caller";
|
|
7656
7657
|
},
|
|
7657
7658
|
get children() {
|
|
7658
7659
|
return A(Ns, {});
|
|
@@ -7661,19 +7662,19 @@ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
|
|
|
7661
7662
|
];
|
|
7662
7663
|
} })), R(t, A(M, {
|
|
7663
7664
|
get when() {
|
|
7664
|
-
return
|
|
7665
|
+
return zr.value;
|
|
7665
7666
|
},
|
|
7666
7667
|
get children() {
|
|
7667
|
-
return A(
|
|
7668
|
+
return A(Hr, {});
|
|
7668
7669
|
}
|
|
7669
7670
|
}), null), R(t, A(M, {
|
|
7670
7671
|
get when() {
|
|
7671
|
-
return
|
|
7672
|
+
return pr.value;
|
|
7672
7673
|
},
|
|
7673
7674
|
get children() {
|
|
7674
|
-
return A(
|
|
7675
|
+
return A(_r, {});
|
|
7675
7676
|
}
|
|
7676
|
-
}), null), R(t, A(
|
|
7677
|
+
}), null), R(t, A(Gr, {}), null), O(() => I(t, Da(il, e.standalone && al))), t;
|
|
7677
7678
|
})()];
|
|
7678
7679
|
it(["click"]);
|
|
7679
7680
|
//#endregion
|
|
@@ -7709,12 +7710,12 @@ function vl({ callsProcessor: e, shortcut: t, requestCallers: n, visibleRequestH
|
|
|
7709
7710
|
i(window, { [t]: (e) => {
|
|
7710
7711
|
let t = document.activeElement;
|
|
7711
7712
|
t instanceof HTMLElement && (t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA") || (e.preventDefault(), gl());
|
|
7712
|
-
} }),
|
|
7713
|
+
} }), Yn({
|
|
7713
7714
|
...e ? { callsProcessor: e } : {},
|
|
7714
7715
|
...r ? { visibleRequestHeaders: r } : {},
|
|
7715
7716
|
...a ? { sensitiveDataFields: a } : {},
|
|
7716
7717
|
...o === void 0 ? {} : { maxRequestsSizeMb: o }
|
|
7717
|
-
}), s !== void 0 &&
|
|
7718
|
+
}), s !== void 0 && br(s), n && Ua(n);
|
|
7718
7719
|
}
|
|
7719
7720
|
//#endregion
|
|
7720
|
-
export {
|
|
7721
|
+
export { Zn as addCall, wr as addLog, kn as addMarker, Xn as addWebsocketEvent, jn as clearHistory, Tr as clearLogs, hl as closeDevTools, _l as devToolsIsOpen, vl as initializeDevTools, ml as openDevTools, gl as toggleDevTools };
|