mates-devtools 0.1.0-beta.5 → 0.1.0-beta.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { keyframes as
|
|
2
|
-
const
|
|
1
|
+
import { keyframes as Ce, globalCSS as Te, event as Me, html as a, nothing as k, repeat as T, atom as qt, effect as Ie, x as Be, render as Jt, isDevToolsInstalled as Le, installDevToolsHooks as Ee, interceptBefore as Ae, interceptAfter as Re, interceptError as ze } from "mates";
|
|
2
|
+
const Kt = "selected", Pe = "selected", He = Ce("mates-dt-flash", {
|
|
3
3
|
"0%": { background: "var(--dt-flash-bg)", color: "#fff" },
|
|
4
4
|
"100%": { background: "transparent", color: "var(--dt-text-muted)" }
|
|
5
5
|
}), ot = {
|
|
@@ -12,7 +12,7 @@ const te = "selected", Fe = "selected", Oe = Ie("mates-dt-flash", {
|
|
|
12
12
|
"&::-webkit-scrollbar-thumb:hover": {
|
|
13
13
|
background: "var(--dt-scrollbar-hover)"
|
|
14
14
|
}
|
|
15
|
-
}, r =
|
|
15
|
+
}, r = Te({
|
|
16
16
|
// ─── Floating Action Button ───────────────────────────────────────────────
|
|
17
17
|
fab: {
|
|
18
18
|
position: "fixed",
|
|
@@ -600,7 +600,7 @@ const te = "selected", Fe = "selected", Oe = Ie("mates-dt-flash", {
|
|
|
600
600
|
transition: "background 0.1s, color 0.1s"
|
|
601
601
|
},
|
|
602
602
|
highlightFlash: {
|
|
603
|
-
animation: `${
|
|
603
|
+
animation: `${He} 0.6s ease forwards`
|
|
604
604
|
},
|
|
605
605
|
// ─── Logs tab ─────────────────────────────────────────────────────────────
|
|
606
606
|
logsPanel: {
|
|
@@ -808,33 +808,33 @@ const te = "selected", Fe = "selected", Oe = Ie("mates-dt-flash", {
|
|
|
808
808
|
color: "var(--dt-text-dim)",
|
|
809
809
|
marginLeft: "5px"
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
812
|
-
function
|
|
811
|
+
}), At = /* @__PURE__ */ new Set(), lt = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), bt = Me("devtools");
|
|
812
|
+
function Fe(t, e) {
|
|
813
813
|
try {
|
|
814
|
-
|
|
814
|
+
At.add(t);
|
|
815
815
|
let n = lt.get(e);
|
|
816
|
-
n || (n = /* @__PURE__ */ new Set(), lt.set(e, n)), n.add(t), dt.set(t, 1),
|
|
816
|
+
n || (n = /* @__PURE__ */ new Set(), lt.set(e, n)), n.add(t), dt.set(t, 1), bt.trigger({ type: "mount", component: t });
|
|
817
817
|
} catch {
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Oe(t, e) {
|
|
821
821
|
try {
|
|
822
|
-
if (
|
|
822
|
+
if (At.delete(t), e) {
|
|
823
823
|
const n = lt.get(e);
|
|
824
824
|
n && n.delete(t);
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
bt.trigger({ type: "unmount", component: t });
|
|
827
827
|
} catch {
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function De(t) {
|
|
831
831
|
try {
|
|
832
832
|
const e = dt.get(t) ?? 0;
|
|
833
|
-
dt.set(t, e + 1),
|
|
833
|
+
dt.set(t, e + 1), bt.trigger({ type: "render", component: t });
|
|
834
834
|
} catch {
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function xt(t) {
|
|
838
838
|
try {
|
|
839
839
|
return dt.get(t) ?? 0;
|
|
840
840
|
} catch {
|
|
@@ -848,16 +848,16 @@ function Z(t) {
|
|
|
848
848
|
}
|
|
849
849
|
return 0;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Tt(t) {
|
|
852
852
|
try {
|
|
853
853
|
return t._parentComponent ?? null;
|
|
854
854
|
} catch {
|
|
855
855
|
}
|
|
856
856
|
return null;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Qt() {
|
|
859
859
|
try {
|
|
860
|
-
return Array.from(
|
|
860
|
+
return Array.from(At).filter((t) => {
|
|
861
861
|
const e = t._view || t.oldView;
|
|
862
862
|
return !e?.__devtools__ && !e?.skipDevToolsRender;
|
|
863
863
|
});
|
|
@@ -865,7 +865,7 @@ function ee() {
|
|
|
865
865
|
}
|
|
866
866
|
return [];
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function $r(t) {
|
|
869
869
|
try {
|
|
870
870
|
const e = lt.get(t);
|
|
871
871
|
return e ? Array.from(e) : [];
|
|
@@ -880,18 +880,18 @@ function tt(t) {
|
|
|
880
880
|
}
|
|
881
881
|
return "";
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function Ne(t) {
|
|
884
884
|
try {
|
|
885
885
|
return t._view || t.oldView || null;
|
|
886
886
|
} catch {
|
|
887
887
|
}
|
|
888
888
|
return null;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function je() {
|
|
891
891
|
try {
|
|
892
|
-
const t =
|
|
892
|
+
const t = Qt(), e = /* @__PURE__ */ new Map();
|
|
893
893
|
for (const o of t) {
|
|
894
|
-
const i =
|
|
894
|
+
const i = Ne(o);
|
|
895
895
|
if (!i) continue;
|
|
896
896
|
let c = e.get(i);
|
|
897
897
|
c || (c = [], e.set(i, c)), c.push(o);
|
|
@@ -933,61 +933,61 @@ const f = {
|
|
|
933
933
|
preview: "color:#888;font-style:italic;",
|
|
934
934
|
children: "margin-left:14px;padding-left:6px;border-left:1px solid #333;",
|
|
935
935
|
badge: "color:#777;font-size:11px;margin-left:4px;background:#2a2a2a;padding:0 4px;border-radius:3px;"
|
|
936
|
-
},
|
|
937
|
-
let
|
|
938
|
-
function
|
|
936
|
+
}, jt = /* @__PURE__ */ new WeakMap();
|
|
937
|
+
let Zt = null;
|
|
938
|
+
function te(t) {
|
|
939
939
|
try {
|
|
940
|
-
|
|
940
|
+
Zt = t;
|
|
941
941
|
} catch {
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function ee(t) {
|
|
945
945
|
try {
|
|
946
|
-
let e =
|
|
947
|
-
return e || (e = /* @__PURE__ */ new Set(),
|
|
946
|
+
let e = jt.get(t);
|
|
947
|
+
return e || (e = /* @__PURE__ */ new Set(), jt.set(t, e)), e;
|
|
948
948
|
} catch {
|
|
949
949
|
return /* @__PURE__ */ new Set();
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function Ve(t, e) {
|
|
953
953
|
try {
|
|
954
|
-
return
|
|
954
|
+
return ee(t).has(e);
|
|
955
955
|
} catch {
|
|
956
956
|
return !1;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function We(t, e) {
|
|
960
960
|
try {
|
|
961
|
-
const n =
|
|
961
|
+
const n = ee(t);
|
|
962
962
|
n.has(e) ? n.delete(e) : n.add(e);
|
|
963
963
|
try {
|
|
964
|
-
|
|
964
|
+
Zt?.();
|
|
965
965
|
} catch {
|
|
966
966
|
}
|
|
967
967
|
} catch {
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Ge(t) {
|
|
971
971
|
try {
|
|
972
972
|
return t == null ? !1 : typeof t == "object";
|
|
973
973
|
} catch {
|
|
974
974
|
return !1;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function vt(t) {
|
|
978
978
|
try {
|
|
979
979
|
return t === null ? "null" : t === void 0 ? "undefined" : Array.isArray(t) ? "array" : t instanceof Date ? "date" : t instanceof RegExp ? "regexp" : t instanceof Map ? "map" : t instanceof Set ? "set" : typeof t;
|
|
980
980
|
} catch {
|
|
981
981
|
return "";
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function Vt(t, e = 60) {
|
|
985
985
|
try {
|
|
986
|
-
const n =
|
|
986
|
+
const n = vt(t);
|
|
987
987
|
if (n === "array") {
|
|
988
988
|
const o = t;
|
|
989
989
|
if (o.length === 0) return "[]";
|
|
990
|
-
const i = o.slice(0, 5).map((s) =>
|
|
990
|
+
const i = o.slice(0, 5).map((s) => Wt(s)).join(", "), c = o.length > 5 ? ", …" : "";
|
|
991
991
|
return `[${i}${c}] (${o.length})`;
|
|
992
992
|
}
|
|
993
993
|
if (n === "map")
|
|
@@ -1001,7 +1001,7 @@ function Gt(t, e = 60) {
|
|
|
1001
1001
|
if (n === "object") {
|
|
1002
1002
|
const o = t, i = Object.keys(o);
|
|
1003
1003
|
if (i.length === 0) return "{}";
|
|
1004
|
-
const c = i.slice(0, 4).map((l) => `${l}: ${
|
|
1004
|
+
const c = i.slice(0, 4).map((l) => `${l}: ${Wt(o[l])}`).join(", "), s = i.length > 4 ? ", …" : "", d = `{${c}${s}}`;
|
|
1005
1005
|
return d.length > e ? d.slice(0, e - 1) + "…}" : d;
|
|
1006
1006
|
}
|
|
1007
1007
|
return String(t);
|
|
@@ -1009,9 +1009,9 @@ function Gt(t, e = 60) {
|
|
|
1009
1009
|
return "";
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Wt(t) {
|
|
1013
1013
|
try {
|
|
1014
|
-
switch (
|
|
1014
|
+
switch (vt(t)) {
|
|
1015
1015
|
case "string": {
|
|
1016
1016
|
const n = t;
|
|
1017
1017
|
return n.length > 30 ? `"${n.slice(0, 27)}…"` : `"${n}"`;
|
|
@@ -1044,9 +1044,9 @@ function Yt(t) {
|
|
|
1044
1044
|
return "";
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Ye(t) {
|
|
1048
1048
|
try {
|
|
1049
|
-
switch (
|
|
1049
|
+
switch (vt(t)) {
|
|
1050
1050
|
case "string":
|
|
1051
1051
|
return a`<span style="${f.string}">"${String(t)}"</span>`;
|
|
1052
1052
|
case "number":
|
|
@@ -1076,7 +1076,7 @@ function Xe(t) {
|
|
|
1076
1076
|
return a``;
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Ue(t) {
|
|
1080
1080
|
try {
|
|
1081
1081
|
if (t instanceof Map)
|
|
1082
1082
|
return Array.from(t.entries()).map(([e, n]) => ({
|
|
@@ -1135,24 +1135,24 @@ function O(t, e, n, o = "root", i = 0) {
|
|
|
1135
1135
|
<span style="${f.preview}">[max depth]</span>
|
|
1136
1136
|
</div>
|
|
1137
1137
|
`;
|
|
1138
|
-
const c =
|
|
1138
|
+
const c = Ge(n), s = c && Ve(t, o);
|
|
1139
1139
|
if (!c)
|
|
1140
1140
|
return a`
|
|
1141
1141
|
<div style="${f.row}">
|
|
1142
1142
|
<span style="${f.toggle}"></span>
|
|
1143
1143
|
${e != null ? a`<span style="${f.key}">${e}</span
|
|
1144
1144
|
><span style="${f.colon}">:</span>` : k}
|
|
1145
|
-
${
|
|
1145
|
+
${Ye(n)}
|
|
1146
1146
|
</div>
|
|
1147
1147
|
`;
|
|
1148
|
-
const d = s ?
|
|
1148
|
+
const d = s ? Ue(n) : [], l = vt(n);
|
|
1149
1149
|
return a`
|
|
1150
1150
|
<div>
|
|
1151
1151
|
<div
|
|
1152
1152
|
style="${f.row}cursor:pointer;user-select:none;"
|
|
1153
1153
|
@click=${(u) => {
|
|
1154
1154
|
try {
|
|
1155
|
-
u.stopPropagation(),
|
|
1155
|
+
u.stopPropagation(), We(t, o);
|
|
1156
1156
|
} catch {
|
|
1157
1157
|
}
|
|
1158
1158
|
}}
|
|
@@ -1161,8 +1161,8 @@ function O(t, e, n, o = "root", i = 0) {
|
|
|
1161
1161
|
${e != null ? a`<span style="${f.key}">${e}</span
|
|
1162
1162
|
><span style="${f.colon}">:</span>` : k}
|
|
1163
1163
|
${s ? a`<span style="${f.preview}"
|
|
1164
|
-
>${l === "array" ? `Array(${n.length})` : l === "object" ? "{" :
|
|
1165
|
-
>` : a`<span style="${f.preview}">${
|
|
1164
|
+
>${l === "array" ? `Array(${n.length})` : l === "object" ? "{" : Vt(n)}</span
|
|
1165
|
+
>` : a`<span style="${f.preview}">${Vt(n)}</span>`}
|
|
1166
1166
|
</div>
|
|
1167
1167
|
${s ? a`
|
|
1168
1168
|
<div style="${f.children}">
|
|
@@ -1189,7 +1189,7 @@ function O(t, e, n, o = "root", i = 0) {
|
|
|
1189
1189
|
return a``;
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function _r(t, e, n = "root") {
|
|
1193
1193
|
try {
|
|
1194
1194
|
const o = Object.keys(e);
|
|
1195
1195
|
return o.length === 0 ? a`<div style="color:#777;font-size:13px;padding:2px 0;">
|
|
@@ -1203,7 +1203,7 @@ function Tr(t, e, n = "root") {
|
|
|
1203
1203
|
return a``;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Xe(t) {
|
|
1207
1207
|
try {
|
|
1208
1208
|
const e = Object.keys(t);
|
|
1209
1209
|
return e.length === 0 ? a`<div style="color: #777; font-size: 13px;">No props</div>` : a`
|
|
@@ -1217,7 +1217,7 @@ function Je(t) {
|
|
|
1217
1217
|
return a``;
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function qe(t) {
|
|
1221
1221
|
try {
|
|
1222
1222
|
return !t || t.size === 0 ? a`<div style="color: #777; font-size: 13px;">No scopes</div>` : a`
|
|
1223
1223
|
${[...t?.entries() || []].map(
|
|
@@ -1285,7 +1285,7 @@ function Ke(t) {
|
|
|
1285
1285
|
return a``;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Je(t) {
|
|
1289
1289
|
try {
|
|
1290
1290
|
if (!t) return [];
|
|
1291
1291
|
const e = [];
|
|
@@ -1304,9 +1304,9 @@ function Qe(t) {
|
|
|
1304
1304
|
return [];
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Ke(t) {
|
|
1308
1308
|
try {
|
|
1309
|
-
const e =
|
|
1309
|
+
const e = Je(t);
|
|
1310
1310
|
return e.length === 0 ? a`<div style="color: #777; font-size: 13px;">No atoms</div>` : a`
|
|
1311
1311
|
${T(
|
|
1312
1312
|
e,
|
|
@@ -1321,7 +1321,7 @@ function Ze(t) {
|
|
|
1321
1321
|
return a``;
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Qe(t) {
|
|
1325
1325
|
try {
|
|
1326
1326
|
return !t || t.length === 0 ? a`<div style="color: #777; font-size: 13px;">No state</div>` : a`
|
|
1327
1327
|
${t.map((e, n) => {
|
|
@@ -1339,7 +1339,7 @@ function tn(t) {
|
|
|
1339
1339
|
return a``;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Ze(t) {
|
|
1343
1343
|
try {
|
|
1344
1344
|
const e = {
|
|
1345
1345
|
onMount: 0,
|
|
@@ -1421,7 +1421,7 @@ function en(t) {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function tn(t, e) {
|
|
1425
1425
|
try {
|
|
1426
1426
|
return a`
|
|
1427
1427
|
<span class="${r.hookPill}">
|
|
@@ -1433,38 +1433,38 @@ function nn(t, e) {
|
|
|
1433
1433
|
return a``;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function ne(t) {
|
|
1437
1437
|
try {
|
|
1438
|
-
const e =
|
|
1438
|
+
const e = Ze(t), n = [];
|
|
1439
1439
|
return e.onMount > 0 && n.push({ label: "onMount", count: e.onMount }), e.onCleanup > 0 && n.push({ label: "onCleanup", count: e.onCleanup }), e.onPaint > 0 && n.push({ label: "onPaint", count: e.onPaint }), e.onAllMount > 0 && n.push({ label: "onAllMount", count: e.onAllMount }), e.effects > 0 && n.push({ label: "effect", count: e.effects }), e.on > 0 && n.push({ label: "on", count: e.on }), e.setters > 0 && n.push({ label: "setter", count: e.setters }), e.useState > 0 && n.push({ label: "useState", count: e.useState }), e.atoms > 0 && n.push({ label: "atom", count: e.atoms }), e.events > 0 && n.push({ label: "event", count: e.events }), e.channels > 0 && n.push({ label: "channel", count: e.channels }), n.length === 0 ? k : a`
|
|
1440
1440
|
<div class="${r.hooksSummary}">
|
|
1441
|
-
${n.map((o) =>
|
|
1441
|
+
${n.map((o) => tn(o.label, o.count))}
|
|
1442
1442
|
</div>
|
|
1443
1443
|
`;
|
|
1444
1444
|
} catch {
|
|
1445
1445
|
return a``;
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function en(t, e) {
|
|
1449
1449
|
try {
|
|
1450
1450
|
t.stopPropagation(), at(e);
|
|
1451
1451
|
} catch {
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function nn(t) {
|
|
1455
1455
|
try {
|
|
1456
1456
|
const e = [];
|
|
1457
|
-
let n =
|
|
1457
|
+
let n = Tt(t);
|
|
1458
1458
|
for (; n; )
|
|
1459
|
-
e.push(tt(n)), n =
|
|
1459
|
+
e.push(tt(n)), n = Tt(n);
|
|
1460
1460
|
return e.reverse(), e;
|
|
1461
1461
|
} catch {
|
|
1462
1462
|
return [];
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function re(t) {
|
|
1466
1466
|
try {
|
|
1467
|
-
const e =
|
|
1467
|
+
const e = nn(t), n = tt(t);
|
|
1468
1468
|
if (e.length === 0)
|
|
1469
1469
|
return a`
|
|
1470
1470
|
<div class="${r.inspectorBreadcrumb}">
|
|
@@ -1489,28 +1489,28 @@ function ce(t) {
|
|
|
1489
1489
|
return a``;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function oe(t) {
|
|
1493
1493
|
try {
|
|
1494
1494
|
return a`
|
|
1495
1495
|
<div class="${r.instanceDetails}">
|
|
1496
1496
|
<div class="${r.sectionHeader}">Props</div>
|
|
1497
|
-
${
|
|
1497
|
+
${Xe(t._props || {})}
|
|
1498
1498
|
|
|
1499
1499
|
<div class="${r.sectionHeader}">State</div>
|
|
1500
|
-
${
|
|
1500
|
+
${Qe(t._useStates)}
|
|
1501
1501
|
|
|
1502
1502
|
<div class="${r.sectionHeader}">Atoms</div>
|
|
1503
|
-
${
|
|
1503
|
+
${Ke(t.cleanups)}
|
|
1504
1504
|
|
|
1505
1505
|
<div class="${r.sectionHeader}">Scopes</div>
|
|
1506
|
-
${
|
|
1506
|
+
${qe(t.scopes)}
|
|
1507
1507
|
</div>
|
|
1508
1508
|
`;
|
|
1509
1509
|
} catch {
|
|
1510
1510
|
return a``;
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Gt() {
|
|
1514
1514
|
try {
|
|
1515
1515
|
return a`
|
|
1516
1516
|
<div class="${r.inspector}">
|
|
@@ -1521,12 +1521,12 @@ function Ut() {
|
|
|
1521
1521
|
return a``;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Yt(t) {
|
|
1525
1525
|
try {
|
|
1526
|
-
const e = tt(t), n = t.componentId, o = Z(t), i =
|
|
1526
|
+
const e = tt(t), n = t.componentId, o = Z(t), i = xt(t);
|
|
1527
1527
|
return a`
|
|
1528
1528
|
<div class="${r.inspector}">
|
|
1529
|
-
${
|
|
1529
|
+
${re(t)}
|
|
1530
1530
|
<div class="${r.inspectorTitle}">
|
|
1531
1531
|
<span>${e}</span>
|
|
1532
1532
|
<span class="${r.instanceCount}">
|
|
@@ -1537,7 +1537,7 @@ function Xt(t) {
|
|
|
1537
1537
|
style="opacity: 1;"
|
|
1538
1538
|
@click=${(c) => {
|
|
1539
1539
|
try {
|
|
1540
|
-
|
|
1540
|
+
en(c, t);
|
|
1541
1541
|
} catch {
|
|
1542
1542
|
}
|
|
1543
1543
|
}}
|
|
@@ -1560,14 +1560,14 @@ function Xt(t) {
|
|
|
1560
1560
|
</button>
|
|
1561
1561
|
</div>
|
|
1562
1562
|
|
|
1563
|
-
${
|
|
1563
|
+
${ne(t)} ${oe(t)}
|
|
1564
1564
|
</div>
|
|
1565
1565
|
`;
|
|
1566
1566
|
} catch {
|
|
1567
1567
|
return a``;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function rn(t, e, n, o) {
|
|
1571
1571
|
try {
|
|
1572
1572
|
const { name: i, instances: c } = t;
|
|
1573
1573
|
return a`
|
|
@@ -1584,11 +1584,11 @@ function cn(t, e, n, o) {
|
|
|
1584
1584
|
c,
|
|
1585
1585
|
(s) => s.componentId,
|
|
1586
1586
|
(s) => {
|
|
1587
|
-
const d = s.componentId, l = Z(s), u =
|
|
1587
|
+
const d = s.componentId, l = Z(s), u = xt(s), y = e === d;
|
|
1588
1588
|
return a`
|
|
1589
1589
|
<li class="${r.instanceGroup}">
|
|
1590
1590
|
<div
|
|
1591
|
-
class="${r.instanceItem} ${y ?
|
|
1591
|
+
class="${r.instanceItem} ${y ? Pe : ""}"
|
|
1592
1592
|
@click=${() => {
|
|
1593
1593
|
try {
|
|
1594
1594
|
n(d);
|
|
@@ -1634,8 +1634,8 @@ function cn(t, e, n, o) {
|
|
|
1634
1634
|
</button>
|
|
1635
1635
|
</div>
|
|
1636
1636
|
${y ? a`
|
|
1637
|
-
${
|
|
1638
|
-
${
|
|
1637
|
+
${re(s)} ${ne(s)}
|
|
1638
|
+
${oe(s)}
|
|
1639
1639
|
` : k}
|
|
1640
1640
|
</li>
|
|
1641
1641
|
`;
|
|
@@ -1648,24 +1648,24 @@ function cn(t, e, n, o) {
|
|
|
1648
1648
|
return a``;
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function Ut(t) {
|
|
1652
1652
|
try {
|
|
1653
1653
|
if ("selectedComponent" in t && t.selectedComponent !== void 0)
|
|
1654
|
-
return t.selectedComponent ?
|
|
1654
|
+
return t.selectedComponent ? Yt(t.selectedComponent) : Gt();
|
|
1655
1655
|
const { selectedGroup: e, selectedInstanceId: n, onSelectInstance: o, onHighlight: i } = t;
|
|
1656
|
-
return e ? e.instances.length === 1 ?
|
|
1656
|
+
return e ? e.instances.length === 1 ? Yt(e.instances[0]) : rn(
|
|
1657
1657
|
e,
|
|
1658
1658
|
n,
|
|
1659
1659
|
o,
|
|
1660
1660
|
i
|
|
1661
|
-
) :
|
|
1661
|
+
) : Gt();
|
|
1662
1662
|
} catch {
|
|
1663
1663
|
return a``;
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
const I = /* @__PURE__ */ new Set();
|
|
1667
1667
|
let V = null, W = null, G = null, Y = null, ut = !1, pt = !1;
|
|
1668
|
-
const ft =
|
|
1668
|
+
const ft = qt(0);
|
|
1669
1669
|
ft.skipDevToolsLog = !0;
|
|
1670
1670
|
function A() {
|
|
1671
1671
|
try {
|
|
@@ -1681,7 +1681,7 @@ function U(t) {
|
|
|
1681
1681
|
pt = !1;
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function on() {
|
|
1685
1685
|
try {
|
|
1686
1686
|
if (ut) return;
|
|
1687
1687
|
ut = !0, V = window.setTimeout, W = window.setInterval, G = window.clearTimeout, Y = window.clearInterval;
|
|
@@ -1734,23 +1734,23 @@ function an() {
|
|
|
1734
1734
|
} catch {
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function cn() {
|
|
1738
1738
|
try {
|
|
1739
1739
|
if (!ut) return;
|
|
1740
1740
|
ut = !1, V && (window.setTimeout = V), W && (window.setInterval = W), G && (window.clearTimeout = G), Y && (window.clearInterval = Y), V = null, W = null, G = null, Y = null, I.clear(), A();
|
|
1741
1741
|
} catch {
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1745
|
-
let
|
|
1746
|
-
function
|
|
1747
|
-
return
|
|
1744
|
+
const wt = /* @__PURE__ */ new WeakMap();
|
|
1745
|
+
let an = 0;
|
|
1746
|
+
function sn(t) {
|
|
1747
|
+
return wt.has(t) || wt.set(t, `mdt-hl-${++an}`), wt.get(t);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function ie(t, e, n) {
|
|
1750
1750
|
try {
|
|
1751
1751
|
const o = n.get(e), i = o !== void 0 && o !== t;
|
|
1752
1752
|
n.set(e, t);
|
|
1753
|
-
const c =
|
|
1753
|
+
const c = sn(e);
|
|
1754
1754
|
return i && U(
|
|
1755
1755
|
() => setTimeout(() => {
|
|
1756
1756
|
try {
|
|
@@ -1770,13 +1770,13 @@ function se(t, e, n) {
|
|
|
1770
1770
|
return a``;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
const
|
|
1774
|
-
let
|
|
1775
|
-
function
|
|
1773
|
+
const ln = /* @__PURE__ */ new WeakMap();
|
|
1774
|
+
let kt = "";
|
|
1775
|
+
function dn(t) {
|
|
1776
1776
|
try {
|
|
1777
1777
|
let e = 0;
|
|
1778
1778
|
for (const n of t.instances) {
|
|
1779
|
-
const o =
|
|
1779
|
+
const o = xt(n);
|
|
1780
1780
|
o > e && (e = o);
|
|
1781
1781
|
}
|
|
1782
1782
|
return e;
|
|
@@ -1784,7 +1784,7 @@ function pn(t) {
|
|
|
1784
1784
|
return 0;
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function St(t) {
|
|
1788
1788
|
try {
|
|
1789
1789
|
let e = 1 / 0;
|
|
1790
1790
|
for (const n of t.instances) {
|
|
@@ -1796,7 +1796,7 @@ function Tt(t) {
|
|
|
1796
1796
|
return 0;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function un({
|
|
1800
1800
|
groups: t,
|
|
1801
1801
|
selectedViewFn: e,
|
|
1802
1802
|
onSelectGroup: n,
|
|
@@ -1804,12 +1804,12 @@ function fn({
|
|
|
1804
1804
|
renderCallback: i
|
|
1805
1805
|
}) {
|
|
1806
1806
|
try {
|
|
1807
|
-
const c =
|
|
1808
|
-
const g =
|
|
1809
|
-
return g -
|
|
1807
|
+
const c = kt.trim().toLowerCase(), d = [...c ? t.filter((u) => u.name.toLowerCase().includes(c)) : t].sort((u, y) => {
|
|
1808
|
+
const g = St(u), b = St(y);
|
|
1809
|
+
return g - b || u.name.localeCompare(y.name);
|
|
1810
1810
|
}), l = (u) => {
|
|
1811
1811
|
try {
|
|
1812
|
-
|
|
1812
|
+
kt = u.target.value, i();
|
|
1813
1813
|
} catch {
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
@@ -1820,7 +1820,7 @@ function fn({
|
|
|
1820
1820
|
class="${r.componentSearch}"
|
|
1821
1821
|
type="text"
|
|
1822
1822
|
placeholder="Search components…"
|
|
1823
|
-
.value=${
|
|
1823
|
+
.value=${kt}
|
|
1824
1824
|
@input=${l}
|
|
1825
1825
|
/>
|
|
1826
1826
|
</div>
|
|
@@ -1832,10 +1832,10 @@ function fn({
|
|
|
1832
1832
|
d,
|
|
1833
1833
|
(u) => u.viewFn,
|
|
1834
1834
|
(u) => {
|
|
1835
|
-
const y =
|
|
1835
|
+
const y = dn(u), g = e === u.viewFn, b = St(u), rt = u.instances.length, Dt = u.instances[0];
|
|
1836
1836
|
return a`
|
|
1837
1837
|
<li
|
|
1838
|
-
class="${r.componentItem} ${g ?
|
|
1838
|
+
class="${r.componentItem} ${g ? Kt : ""}"
|
|
1839
1839
|
@click=${() => {
|
|
1840
1840
|
try {
|
|
1841
1841
|
n(u.viewFn);
|
|
@@ -1843,10 +1843,10 @@ function fn({
|
|
|
1843
1843
|
}
|
|
1844
1844
|
}}
|
|
1845
1845
|
>
|
|
1846
|
-
${
|
|
1846
|
+
${ie(
|
|
1847
1847
|
y,
|
|
1848
|
-
|
|
1849
|
-
|
|
1848
|
+
Dt,
|
|
1849
|
+
ln
|
|
1850
1850
|
)}
|
|
1851
1851
|
<span class="${r.componentName}"
|
|
1852
1852
|
>${u.name}</span
|
|
@@ -1857,13 +1857,13 @@ function fn({
|
|
|
1857
1857
|
>` : ""}
|
|
1858
1858
|
<span
|
|
1859
1859
|
class="${r.componentBadge} ${g ? r.componentBadgeSelected : ""}"
|
|
1860
|
-
>depth ${
|
|
1860
|
+
>depth ${b}</span
|
|
1861
1861
|
>
|
|
1862
1862
|
<button
|
|
1863
1863
|
class="${r.componentHighlightBtn} ${g ? r.componentHighlightBtnSelected : ""}"
|
|
1864
|
-
@click=${(
|
|
1864
|
+
@click=${(Nt) => {
|
|
1865
1865
|
try {
|
|
1866
|
-
|
|
1866
|
+
Nt.stopPropagation(), o(Dt);
|
|
1867
1867
|
} catch {
|
|
1868
1868
|
}
|
|
1869
1869
|
}}
|
|
@@ -1898,8 +1898,8 @@ function fn({
|
|
|
1898
1898
|
return a``;
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
|
-
const
|
|
1902
|
-
function
|
|
1901
|
+
const pn = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakSet();
|
|
1902
|
+
function fn(t) {
|
|
1903
1903
|
try {
|
|
1904
1904
|
const e = new Set(t), n = /* @__PURE__ */ new Map();
|
|
1905
1905
|
for (const c of t)
|
|
@@ -1912,7 +1912,7 @@ function gn(t) {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
const o = [];
|
|
1914
1914
|
for (const c of t) {
|
|
1915
|
-
const s = n.get(c), d =
|
|
1915
|
+
const s = n.get(c), d = Tt(c);
|
|
1916
1916
|
if (d && e.has(d)) {
|
|
1917
1917
|
const l = n.get(d);
|
|
1918
1918
|
if (l) {
|
|
@@ -1935,11 +1935,11 @@ function gn(t) {
|
|
|
1935
1935
|
return [];
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function ce(t, e, n, o, i) {
|
|
1939
1939
|
try {
|
|
1940
|
-
const c = t.children.length > 0, s =
|
|
1940
|
+
const c = t.children.length > 0, s = Ct.has(t.component), d = xt(t.component), l = e === t.id, u = t.depth * 16, y = (b) => {
|
|
1941
1941
|
try {
|
|
1942
|
-
|
|
1942
|
+
b.stopPropagation(), s ? Ct.delete(t.component) : Ct.add(t.component), i();
|
|
1943
1943
|
} catch {
|
|
1944
1944
|
}
|
|
1945
1945
|
}, g = () => {
|
|
@@ -1950,23 +1950,23 @@ function le(t, e, n, o, i) {
|
|
|
1950
1950
|
};
|
|
1951
1951
|
return a`
|
|
1952
1952
|
<li
|
|
1953
|
-
class="${r.componentItem} ${l ?
|
|
1953
|
+
class="${r.componentItem} ${l ? Kt : ""}"
|
|
1954
1954
|
style="margin-left: ${u}px;"
|
|
1955
1955
|
@click=${g}
|
|
1956
1956
|
>
|
|
1957
1957
|
${c ? a`<span class="${r.treeToggle}" @click=${y}
|
|
1958
1958
|
>${s ? "▶" : "▼"}</span
|
|
1959
1959
|
>` : a`<span class="${r.treeLeaf}">·</span>`}
|
|
1960
|
-
${
|
|
1960
|
+
${ie(d, t.component, pn)}
|
|
1961
1961
|
<span class="${r.componentName}">${t.name}</span>
|
|
1962
1962
|
<span class="${r.componentBadge}"
|
|
1963
1963
|
>#${t.id.toString().slice(2, 6)}</span
|
|
1964
1964
|
>
|
|
1965
1965
|
<button
|
|
1966
1966
|
class="${r.componentHighlightBtn}"
|
|
1967
|
-
@click=${(
|
|
1967
|
+
@click=${(b) => {
|
|
1968
1968
|
try {
|
|
1969
|
-
|
|
1969
|
+
b.stopPropagation(), o(t.component);
|
|
1970
1970
|
} catch {
|
|
1971
1971
|
}
|
|
1972
1972
|
}}
|
|
@@ -1992,9 +1992,9 @@ function le(t, e, n, o, i) {
|
|
|
1992
1992
|
</li>
|
|
1993
1993
|
${c && !s ? T(
|
|
1994
1994
|
t.children,
|
|
1995
|
-
(
|
|
1996
|
-
(
|
|
1997
|
-
|
|
1995
|
+
(b) => b.component,
|
|
1996
|
+
(b) => ce(
|
|
1997
|
+
b,
|
|
1998
1998
|
e,
|
|
1999
1999
|
n,
|
|
2000
2000
|
o,
|
|
@@ -2006,14 +2006,14 @@ function le(t, e, n, o, i) {
|
|
|
2006
2006
|
return a``;
|
|
2007
2007
|
}
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function hn({
|
|
2010
2010
|
selectedComponentId: t,
|
|
2011
2011
|
onSelectComponent: e,
|
|
2012
2012
|
onHighlight: n,
|
|
2013
2013
|
renderCallback: o
|
|
2014
2014
|
}) {
|
|
2015
2015
|
try {
|
|
2016
|
-
const i =
|
|
2016
|
+
const i = Qt(), c = fn(i);
|
|
2017
2017
|
return a`
|
|
2018
2018
|
<div class="${r.content}">
|
|
2019
2019
|
${c.length === 0 ? a`<div class="${r.empty}">No components mounted</div>` : a`
|
|
@@ -2021,7 +2021,7 @@ function mn({
|
|
|
2021
2021
|
${T(
|
|
2022
2022
|
c,
|
|
2023
2023
|
(s) => s.component,
|
|
2024
|
-
(s) =>
|
|
2024
|
+
(s) => ce(
|
|
2025
2025
|
s,
|
|
2026
2026
|
t,
|
|
2027
2027
|
e,
|
|
@@ -2037,7 +2037,7 @@ function mn({
|
|
|
2037
2037
|
return a``;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const ae = () => (Ie(() => {
|
|
2041
2041
|
try {
|
|
2042
2042
|
console.log(ft());
|
|
2043
2043
|
} catch {
|
|
@@ -2049,8 +2049,8 @@ const de = () => (Qt(() => {
|
|
|
2049
2049
|
return a``;
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
2052
|
-
|
|
2053
|
-
function
|
|
2052
|
+
ae.skipDevToolsRender = !0;
|
|
2053
|
+
function gn({
|
|
2054
2054
|
activeTab: t,
|
|
2055
2055
|
onTabChange: e,
|
|
2056
2056
|
onMinimise: n,
|
|
@@ -2102,7 +2102,7 @@ function bn({
|
|
|
2102
2102
|
</nav>
|
|
2103
2103
|
</div>
|
|
2104
2104
|
<div>
|
|
2105
|
-
<button style="margin-left: 10px">${
|
|
2105
|
+
<button style="margin-left: 10px">${Be(ae)}</button>
|
|
2106
2106
|
</div>
|
|
2107
2107
|
<div class="${r.controls}">
|
|
2108
2108
|
<button
|
|
@@ -2137,7 +2137,7 @@ function bn({
|
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
let it = null;
|
|
2140
|
-
function
|
|
2140
|
+
function mn(t) {
|
|
2141
2141
|
try {
|
|
2142
2142
|
return it = t, () => {
|
|
2143
2143
|
it === t && (it = null);
|
|
@@ -2147,28 +2147,28 @@ function yn(t) {
|
|
|
2147
2147
|
return () => {
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
|
-
let
|
|
2151
|
-
function
|
|
2152
|
-
|
|
2150
|
+
let v = !1;
|
|
2151
|
+
function yn() {
|
|
2152
|
+
v = !0;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
|
|
2154
|
+
function bn() {
|
|
2155
|
+
v = !1;
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2158
|
-
return
|
|
2157
|
+
function wr() {
|
|
2158
|
+
return v;
|
|
2159
2159
|
}
|
|
2160
|
-
const
|
|
2161
|
-
let
|
|
2162
|
-
const
|
|
2160
|
+
const xn = 100, R = [];
|
|
2161
|
+
let se = 1, $t = 0;
|
|
2162
|
+
const le = /* @__PURE__ */ new Set(["devtools", "DOMReady", "Paint"]);
|
|
2163
2163
|
function S(t, e, n) {
|
|
2164
2164
|
try {
|
|
2165
|
-
R.length >=
|
|
2166
|
-
id:
|
|
2165
|
+
R.length >= xn && R.shift(), R.push({
|
|
2166
|
+
id: se++,
|
|
2167
2167
|
ts: performance.now(),
|
|
2168
2168
|
category: t,
|
|
2169
2169
|
label: e,
|
|
2170
2170
|
detail: n
|
|
2171
|
-
}),
|
|
2171
|
+
}), $t++;
|
|
2172
2172
|
try {
|
|
2173
2173
|
it?.();
|
|
2174
2174
|
} catch {
|
|
@@ -2176,7 +2176,7 @@ function S(t, e, n) {
|
|
|
2176
2176
|
} catch {
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Rt(t) {
|
|
2180
2180
|
try {
|
|
2181
2181
|
if (t === void 0) return "undefined";
|
|
2182
2182
|
if (t === null) return "null";
|
|
@@ -2191,70 +2191,70 @@ function Pt(t) {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
return "";
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function vn() {
|
|
2195
2195
|
return R;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function kr() {
|
|
2198
2198
|
return R.length;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2200
|
+
function $n() {
|
|
2201
|
+
return $t;
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function _n() {
|
|
2204
2204
|
try {
|
|
2205
|
-
|
|
2205
|
+
$t = 0;
|
|
2206
2206
|
} catch {
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function wn() {
|
|
2210
2210
|
try {
|
|
2211
|
-
R.length = 0,
|
|
2211
|
+
R.length = 0, $t = 0, se = 1;
|
|
2212
2212
|
} catch {
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function kn(t) {
|
|
2216
2216
|
try {
|
|
2217
|
-
if (
|
|
2217
|
+
if (!v) return;
|
|
2218
2218
|
S("mount", t, "mounted");
|
|
2219
2219
|
} catch {
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function Sn(t, e) {
|
|
2223
2223
|
try {
|
|
2224
|
-
if (
|
|
2224
|
+
if (!v) return;
|
|
2225
2225
|
S("update", t, `updated (${e.toFixed(2)}ms)`);
|
|
2226
2226
|
} catch {
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Cn(t) {
|
|
2230
2230
|
try {
|
|
2231
|
-
if (
|
|
2231
|
+
if (!v) return;
|
|
2232
2232
|
S("cleanup", t, "cleaned up");
|
|
2233
2233
|
} catch {
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function Tn(t, e) {
|
|
2237
2237
|
try {
|
|
2238
|
-
if (
|
|
2239
|
-
S("setter", t,
|
|
2238
|
+
if (!v) return;
|
|
2239
|
+
S("setter", t, Rt(e));
|
|
2240
2240
|
} catch {
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Mn(t) {
|
|
2244
2244
|
try {
|
|
2245
|
-
if (
|
|
2245
|
+
if (!v) return;
|
|
2246
2246
|
S("action", t);
|
|
2247
2247
|
} catch {
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function In(t, e) {
|
|
2251
2251
|
try {
|
|
2252
|
-
if (
|
|
2253
|
-
S("event", t, e !== void 0 ?
|
|
2252
|
+
if (!v || le.has(t)) return;
|
|
2253
|
+
S("event", t, e !== void 0 ? Rt(e) : void 0);
|
|
2254
2254
|
} catch {
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
|
-
const
|
|
2257
|
+
const zt = 80, de = 120;
|
|
2258
2258
|
function F(t, e) {
|
|
2259
2259
|
try {
|
|
2260
2260
|
return t.length > e ? t.slice(0, e - 1) + "…" : t;
|
|
@@ -2262,46 +2262,46 @@ function F(t, e) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
return "";
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function Bn(t, e, n) {
|
|
2266
2266
|
try {
|
|
2267
|
-
if (
|
|
2267
|
+
if (!v) return;
|
|
2268
2268
|
const o = n ? `pending · ${F(n, 50)}` : "pending";
|
|
2269
|
-
S("fetch", F(`${t} ${e}`,
|
|
2269
|
+
S("fetch", F(`${t} ${e}`, zt), o);
|
|
2270
2270
|
} catch {
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function ue(t, e, n, o) {
|
|
2274
2274
|
try {
|
|
2275
|
-
if (
|
|
2275
|
+
if (!v) return;
|
|
2276
2276
|
S(
|
|
2277
2277
|
"fetch",
|
|
2278
|
-
F(`${t} ${e}`,
|
|
2279
|
-
F(`${n} · ${o.toFixed(0)}ms`,
|
|
2278
|
+
F(`${t} ${e}`, zt),
|
|
2279
|
+
F(`${n} · ${o.toFixed(0)}ms`, de)
|
|
2280
2280
|
);
|
|
2281
2281
|
} catch {
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function pe(t, e, n, o) {
|
|
2285
2285
|
try {
|
|
2286
|
-
if (
|
|
2286
|
+
if (!v) return;
|
|
2287
2287
|
S(
|
|
2288
2288
|
"fetch",
|
|
2289
|
-
F(`${t} ${e}`,
|
|
2289
|
+
F(`${t} ${e}`, zt),
|
|
2290
2290
|
F(
|
|
2291
2291
|
`error · ${o.toFixed(0)}ms · ${n}`,
|
|
2292
|
-
|
|
2292
|
+
de
|
|
2293
2293
|
)
|
|
2294
2294
|
);
|
|
2295
2295
|
} catch {
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function Ln(t, e) {
|
|
2299
2299
|
try {
|
|
2300
|
-
if (
|
|
2300
|
+
if (!v || le.has(t)) return;
|
|
2301
2301
|
S(
|
|
2302
2302
|
"event",
|
|
2303
2303
|
`${t} (cleanup)`,
|
|
2304
|
-
e !== void 0 ?
|
|
2304
|
+
e !== void 0 ? Rt(e) : void 0
|
|
2305
2305
|
);
|
|
2306
2306
|
} catch {
|
|
2307
2307
|
}
|
|
@@ -2314,7 +2314,7 @@ const E = {
|
|
|
2314
2314
|
action: "#81c784",
|
|
2315
2315
|
event: "#ffb74d",
|
|
2316
2316
|
fetch: "#ce93d8"
|
|
2317
|
-
},
|
|
2317
|
+
}, En = {
|
|
2318
2318
|
mount: "MNT",
|
|
2319
2319
|
update: "UPD",
|
|
2320
2320
|
cleanup: "CLN",
|
|
@@ -2323,14 +2323,14 @@ const E = {
|
|
|
2323
2323
|
event: "EVT",
|
|
2324
2324
|
fetch: "NET"
|
|
2325
2325
|
};
|
|
2326
|
-
let
|
|
2327
|
-
const
|
|
2326
|
+
let $ = "all";
|
|
2327
|
+
const An = {
|
|
2328
2328
|
all: null,
|
|
2329
2329
|
lifecycle: ["mount", "update", "cleanup"],
|
|
2330
2330
|
logs: ["setter", "action", "event"],
|
|
2331
2331
|
network: ["fetch"]
|
|
2332
2332
|
};
|
|
2333
|
-
function
|
|
2333
|
+
function Rn(t) {
|
|
2334
2334
|
try {
|
|
2335
2335
|
const e = t / 1e3 | 0, n = t % 1e3, o = e / 60 | 0, i = e % 60;
|
|
2336
2336
|
return `${String(o).padStart(2, "0")}:${String(i).padStart(2, "0")}.${String(n | 0).padStart(3, "0")}`;
|
|
@@ -2338,9 +2338,9 @@ function Pn(t) {
|
|
|
2338
2338
|
return "";
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function zn() {
|
|
2342
2342
|
try {
|
|
2343
|
-
const t =
|
|
2343
|
+
const t = vn(), e = An[$];
|
|
2344
2344
|
if (!e) return t;
|
|
2345
2345
|
const n = new Set(e);
|
|
2346
2346
|
return t.filter((o) => n.has(o.category));
|
|
@@ -2348,19 +2348,19 @@ function Hn() {
|
|
|
2348
2348
|
return [];
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Pn({ onClear: t, renderCallback: e }) {
|
|
2352
2352
|
try {
|
|
2353
|
-
|
|
2354
|
-
const n =
|
|
2353
|
+
_n();
|
|
2354
|
+
const n = zn();
|
|
2355
2355
|
return a`
|
|
2356
2356
|
<div class="${r.logsPanel}">
|
|
2357
2357
|
<div class="${r.logsToolbar}">
|
|
2358
2358
|
<div class="${r.logsFilterRow}">
|
|
2359
2359
|
<button
|
|
2360
|
-
class="${r.logsFilterBtn} ${
|
|
2360
|
+
class="${r.logsFilterBtn} ${$ === "all" ? "active" : ""}"
|
|
2361
2361
|
@click=${() => {
|
|
2362
2362
|
try {
|
|
2363
|
-
|
|
2363
|
+
$ = "all", e();
|
|
2364
2364
|
} catch {
|
|
2365
2365
|
}
|
|
2366
2366
|
}}
|
|
@@ -2368,11 +2368,11 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2368
2368
|
All
|
|
2369
2369
|
</button>
|
|
2370
2370
|
<button
|
|
2371
|
-
class="${r.logsFilterBtn} ${
|
|
2371
|
+
class="${r.logsFilterBtn} ${$ === "lifecycle" ? "active" : ""}"
|
|
2372
2372
|
style="--mdt-filter-color: ${E.mount}"
|
|
2373
2373
|
@click=${() => {
|
|
2374
2374
|
try {
|
|
2375
|
-
|
|
2375
|
+
$ = $ === "lifecycle" ? "all" : "lifecycle", e();
|
|
2376
2376
|
} catch {
|
|
2377
2377
|
}
|
|
2378
2378
|
}}
|
|
@@ -2380,11 +2380,11 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2380
2380
|
Mounts / Updates
|
|
2381
2381
|
</button>
|
|
2382
2382
|
<button
|
|
2383
|
-
class="${r.logsFilterBtn} ${
|
|
2383
|
+
class="${r.logsFilterBtn} ${$ === "logs" ? "active" : ""}"
|
|
2384
2384
|
style="--mdt-filter-color: ${E.setter}"
|
|
2385
2385
|
@click=${() => {
|
|
2386
2386
|
try {
|
|
2387
|
-
|
|
2387
|
+
$ = $ === "logs" ? "all" : "logs", e();
|
|
2388
2388
|
} catch {
|
|
2389
2389
|
}
|
|
2390
2390
|
}}
|
|
@@ -2392,11 +2392,11 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2392
2392
|
Logs
|
|
2393
2393
|
</button>
|
|
2394
2394
|
<button
|
|
2395
|
-
class="${r.logsFilterBtn} ${
|
|
2395
|
+
class="${r.logsFilterBtn} ${$ === "network" ? "active" : ""}"
|
|
2396
2396
|
style="--mdt-filter-color: ${E.fetch}"
|
|
2397
2397
|
@click=${() => {
|
|
2398
2398
|
try {
|
|
2399
|
-
|
|
2399
|
+
$ = $ === "network" ? "all" : "network", e();
|
|
2400
2400
|
} catch {
|
|
2401
2401
|
}
|
|
2402
2402
|
}}
|
|
@@ -2410,7 +2410,7 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2410
2410
|
class="${r.button}"
|
|
2411
2411
|
@click=${() => {
|
|
2412
2412
|
try {
|
|
2413
|
-
|
|
2413
|
+
wn(), t();
|
|
2414
2414
|
} catch {
|
|
2415
2415
|
}
|
|
2416
2416
|
}}
|
|
@@ -2429,11 +2429,11 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2429
2429
|
(o) => o.id,
|
|
2430
2430
|
(o) => a`
|
|
2431
2431
|
<div class="${r.logEntry}">
|
|
2432
|
-
<span class="${r.logTs}">${
|
|
2432
|
+
<span class="${r.logTs}">${Rn(o.ts)}</span>
|
|
2433
2433
|
<span
|
|
2434
2434
|
class="${r.logBadge}"
|
|
2435
2435
|
style="background: ${E[o.category]}22; color: ${E[o.category]}; border-color: ${E[o.category]}44;"
|
|
2436
|
-
>${
|
|
2436
|
+
>${En[o.category]}</span
|
|
2437
2437
|
>
|
|
2438
2438
|
<span class="${r.logLabel}">${o.label}</span>
|
|
2439
2439
|
${o.detail ? a`<span class="${r.logDetail}"
|
|
@@ -2450,24 +2450,24 @@ function Fn({ onClear: t, renderCallback: e }) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
let et = !1;
|
|
2453
|
-
function
|
|
2453
|
+
function Hn() {
|
|
2454
2454
|
try {
|
|
2455
2455
|
et = !0;
|
|
2456
2456
|
} catch {
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Fn() {
|
|
2460
2460
|
try {
|
|
2461
2461
|
et = !1;
|
|
2462
2462
|
} catch {
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Sr() {
|
|
2466
2466
|
return et;
|
|
2467
2467
|
}
|
|
2468
|
-
const
|
|
2469
|
-
let
|
|
2470
|
-
function
|
|
2468
|
+
const On = 100, Q = /* @__PURE__ */ new Map();
|
|
2469
|
+
let fe = 1, ct = null;
|
|
2470
|
+
function Dn(t) {
|
|
2471
2471
|
try {
|
|
2472
2472
|
return ct = t, () => {
|
|
2473
2473
|
try {
|
|
@@ -2480,18 +2480,18 @@ function jn(t) {
|
|
|
2480
2480
|
return () => {
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function he(t, e, n) {
|
|
2484
2484
|
try {
|
|
2485
2485
|
if (!et) return;
|
|
2486
2486
|
const o = {
|
|
2487
|
-
id:
|
|
2487
|
+
id: fe++,
|
|
2488
2488
|
ts: performance.now(),
|
|
2489
2489
|
durationMs: n,
|
|
2490
2490
|
componentName: t,
|
|
2491
2491
|
instanceId: e
|
|
2492
2492
|
};
|
|
2493
2493
|
let i = Q.get(t);
|
|
2494
|
-
i || (i = [], Q.set(t, i)), i.length >=
|
|
2494
|
+
i || (i = [], Q.set(t, i)), i.length >= On && i.shift(), i.push(o);
|
|
2495
2495
|
try {
|
|
2496
2496
|
ct?.();
|
|
2497
2497
|
} catch {
|
|
@@ -2499,18 +2499,18 @@ function be(t, e, n) {
|
|
|
2499
2499
|
} catch {
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function Cr(t, e) {
|
|
2503
2503
|
try {
|
|
2504
|
-
if (!et) return
|
|
2504
|
+
if (!et) return Xt;
|
|
2505
2505
|
const n = performance.now();
|
|
2506
|
-
return () =>
|
|
2506
|
+
return () => he(t, e, performance.now() - n);
|
|
2507
2507
|
} catch {
|
|
2508
2508
|
}
|
|
2509
|
-
return
|
|
2509
|
+
return Xt;
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Xt() {
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Nn() {
|
|
2514
2514
|
try {
|
|
2515
2515
|
const t = [];
|
|
2516
2516
|
for (const [e, n] of Q) {
|
|
@@ -2534,7 +2534,7 @@ function Vn() {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
return [];
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function ge() {
|
|
2538
2538
|
try {
|
|
2539
2539
|
const t = [];
|
|
2540
2540
|
for (const e of Q.values())
|
|
@@ -2544,29 +2544,29 @@ function ye() {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
return [];
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function Tr(t = 50) {
|
|
2548
2548
|
try {
|
|
2549
|
-
const e =
|
|
2549
|
+
const e = ge();
|
|
2550
2550
|
return e.sort((n, o) => o.ts - n.ts), e.length > t ? e.slice(0, t) : e;
|
|
2551
2551
|
} catch {
|
|
2552
2552
|
}
|
|
2553
2553
|
return [];
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function jn(t = 20) {
|
|
2556
2556
|
try {
|
|
2557
|
-
const e =
|
|
2557
|
+
const e = ge();
|
|
2558
2558
|
return e.sort((n, o) => o.durationMs - n.durationMs), e.length > t ? e.slice(0, t) : e;
|
|
2559
2559
|
} catch {
|
|
2560
2560
|
}
|
|
2561
2561
|
return [];
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function Vn() {
|
|
2564
2564
|
try {
|
|
2565
|
-
Q.clear(),
|
|
2565
|
+
Q.clear(), fe = 1;
|
|
2566
2566
|
} catch {
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
|
-
|
|
2569
|
+
qt(0);
|
|
2570
2570
|
function j(t) {
|
|
2571
2571
|
try {
|
|
2572
2572
|
return t < 0.01 ? "<0.01ms" : t < 1 ? `${t.toFixed(2)}ms` : t < 10 ? `${t.toFixed(1)}ms` : `${t.toFixed(0)}ms`;
|
|
@@ -2574,14 +2574,14 @@ function j(t) {
|
|
|
2574
2574
|
return "";
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function me(t, e) {
|
|
2578
2578
|
try {
|
|
2579
2579
|
return e <= 0 ? 0 : Math.max(2, Math.min(100, t / e * 100));
|
|
2580
2580
|
} catch {
|
|
2581
2581
|
return 0;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function ye(t) {
|
|
2585
2585
|
try {
|
|
2586
2586
|
return t < 16 ? "#66bb6a" : t <= 20 ? "#ffb74d" : "#ef5350";
|
|
2587
2587
|
} catch {
|
|
@@ -2589,7 +2589,7 @@ function ve(t) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
let N = "summary";
|
|
2592
|
-
function
|
|
2592
|
+
function Wn(t) {
|
|
2593
2593
|
try {
|
|
2594
2594
|
if (t.length === 0)
|
|
2595
2595
|
return a`<div class="${r.empty}">
|
|
@@ -2613,7 +2613,7 @@ function Yn(t) {
|
|
|
2613
2613
|
t,
|
|
2614
2614
|
(n) => n.name,
|
|
2615
2615
|
(n) => {
|
|
2616
|
-
const o =
|
|
2616
|
+
const o = ye(n.lastMs);
|
|
2617
2617
|
return a`
|
|
2618
2618
|
<tr class="${r.perfRow}">
|
|
2619
2619
|
<td class="${r.perfCell} ${r.perfName}">
|
|
@@ -2635,7 +2635,7 @@ function Yn(t) {
|
|
|
2635
2635
|
<div class="${r.perfBarWrap}">
|
|
2636
2636
|
<div
|
|
2637
2637
|
class="${r.perfBar}"
|
|
2638
|
-
style="width: ${
|
|
2638
|
+
style="width: ${me(
|
|
2639
2639
|
n.totalMs,
|
|
2640
2640
|
e
|
|
2641
2641
|
)}%; background: ${o};"
|
|
@@ -2656,7 +2656,7 @@ function Yn(t) {
|
|
|
2656
2656
|
return a``;
|
|
2657
2657
|
}
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Gn(t, e) {
|
|
2660
2660
|
try {
|
|
2661
2661
|
if (t.length === 0)
|
|
2662
2662
|
return a`<div class="${r.empty}">
|
|
@@ -2677,7 +2677,7 @@ function Un(t, e) {
|
|
|
2677
2677
|
t,
|
|
2678
2678
|
(i) => i.id,
|
|
2679
2679
|
(i) => {
|
|
2680
|
-
const c =
|
|
2680
|
+
const c = ye(i.durationMs), s = o ? () => {
|
|
2681
2681
|
try {
|
|
2682
2682
|
e(i.instanceId);
|
|
2683
2683
|
} catch {
|
|
@@ -2699,7 +2699,7 @@ function Un(t, e) {
|
|
|
2699
2699
|
<div class="${r.perfBarWrap}">
|
|
2700
2700
|
<div
|
|
2701
2701
|
class="${r.perfBar}"
|
|
2702
|
-
style="width: ${
|
|
2702
|
+
style="width: ${me(
|
|
2703
2703
|
i.durationMs,
|
|
2704
2704
|
n
|
|
2705
2705
|
)}%; background: ${c};"
|
|
@@ -2717,13 +2717,13 @@ function Un(t, e) {
|
|
|
2717
2717
|
return a``;
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function Yn({
|
|
2721
2721
|
onClear: t,
|
|
2722
2722
|
renderCallback: e,
|
|
2723
2723
|
onNavigateToComponent: n
|
|
2724
2724
|
}) {
|
|
2725
2725
|
try {
|
|
2726
|
-
const o =
|
|
2726
|
+
const o = Nn(), i = jn(30);
|
|
2727
2727
|
return a`
|
|
2728
2728
|
<div class="${r.perfPanel}">
|
|
2729
2729
|
<div class="${r.perfToolbar}">
|
|
@@ -2756,7 +2756,7 @@ function Xn({
|
|
|
2756
2756
|
class="${r.button}"
|
|
2757
2757
|
@click=${() => {
|
|
2758
2758
|
try {
|
|
2759
|
-
|
|
2759
|
+
Vn(), t();
|
|
2760
2760
|
} catch {
|
|
2761
2761
|
}
|
|
2762
2762
|
}}
|
|
@@ -2768,7 +2768,7 @@ function Xn({
|
|
|
2768
2768
|
</div>
|
|
2769
2769
|
|
|
2770
2770
|
<div class="${r.perfContent}">
|
|
2771
|
-
${N === "summary" ?
|
|
2771
|
+
${N === "summary" ? Wn(o) : Gn(i, n ?? null)}
|
|
2772
2772
|
</div>
|
|
2773
2773
|
</div>
|
|
2774
2774
|
`;
|
|
@@ -2776,33 +2776,33 @@ function Xn({
|
|
|
2776
2776
|
return a``;
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
|
-
let L = !1, C = !1, X = "components", M = "list",
|
|
2780
|
-
const
|
|
2779
|
+
let L = !1, C = !1, X = "components", M = "list", x = null, _ = null, m = null, D = [], p = null, w = null, z = 0;
|
|
2780
|
+
const Un = 150, Xn = 0.8, qn = 0.5;
|
|
2781
2781
|
let B = null;
|
|
2782
|
-
function
|
|
2782
|
+
function Pt() {
|
|
2783
2783
|
try {
|
|
2784
2784
|
const t = document.documentElement;
|
|
2785
2785
|
B === null && (B = parseFloat(getComputedStyle(t).paddingBottom) || 0), t.style.paddingBottom = `${B + z}px`;
|
|
2786
2786
|
} catch {
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function Ht() {
|
|
2790
2790
|
try {
|
|
2791
2791
|
if (B === null) return;
|
|
2792
2792
|
document.documentElement.style.paddingBottom = B === 0 ? "" : `${B}px`, B = null;
|
|
2793
2793
|
} catch {
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
|
-
let
|
|
2797
|
-
function
|
|
2796
|
+
let Ft = !1, be = 0, xe = 0, ht = !1, q = null, J = null, K = null, P = null, H = null;
|
|
2797
|
+
function Jn() {
|
|
2798
2798
|
try {
|
|
2799
2799
|
H !== null && (clearTimeout(H), H = null);
|
|
2800
2800
|
} catch {
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function gt() {
|
|
2804
2804
|
try {
|
|
2805
|
-
|
|
2805
|
+
Jn(), P && (P.remove(), P = null);
|
|
2806
2806
|
} catch {
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
@@ -2819,7 +2819,7 @@ function at(t) {
|
|
|
2819
2819
|
P === c && (c.classList.add("fade-out"), H = U(
|
|
2820
2820
|
() => setTimeout(() => {
|
|
2821
2821
|
try {
|
|
2822
|
-
P === c &&
|
|
2822
|
+
P === c && gt();
|
|
2823
2823
|
} catch {
|
|
2824
2824
|
}
|
|
2825
2825
|
}, 600)
|
|
@@ -2831,7 +2831,7 @@ function at(t) {
|
|
|
2831
2831
|
} catch {
|
|
2832
2832
|
}
|
|
2833
2833
|
};
|
|
2834
|
-
|
|
2834
|
+
gt();
|
|
2835
2835
|
const n = t.firstElementChild ?? t, o = getComputedStyle(n).position, i = o === "fixed" || o === "sticky";
|
|
2836
2836
|
if (i)
|
|
2837
2837
|
e();
|
|
@@ -2844,42 +2844,42 @@ function at(t) {
|
|
|
2844
2844
|
} catch {
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function ve() {
|
|
2848
2848
|
try {
|
|
2849
|
-
if (
|
|
2849
|
+
if (x === null) return null;
|
|
2850
2850
|
for (const t of D)
|
|
2851
2851
|
for (const e of t.instances)
|
|
2852
|
-
if (e.componentId ===
|
|
2852
|
+
if (e.componentId === x) return e;
|
|
2853
2853
|
return null;
|
|
2854
2854
|
} catch {
|
|
2855
2855
|
}
|
|
2856
2856
|
return null;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function Ot() {
|
|
2859
2859
|
try {
|
|
2860
|
-
return
|
|
2860
|
+
return _ === null ? null : D.find((t) => t.viewFn === _) ?? null;
|
|
2861
2861
|
} catch {
|
|
2862
2862
|
}
|
|
2863
2863
|
return null;
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function Kn() {
|
|
2866
2866
|
try {
|
|
2867
|
-
if (
|
|
2868
|
-
const t =
|
|
2867
|
+
if (m === null) return null;
|
|
2868
|
+
const t = Ot();
|
|
2869
2869
|
return t ? t.instances.find(
|
|
2870
|
-
(e) => e.componentId ===
|
|
2870
|
+
(e) => e.componentId === m
|
|
2871
2871
|
) ?? null : null;
|
|
2872
2872
|
} catch {
|
|
2873
2873
|
}
|
|
2874
2874
|
return null;
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function _t() {
|
|
2877
2877
|
try {
|
|
2878
|
-
D =
|
|
2878
|
+
D = je(), x !== null && !ve() && (x = null), _ !== null && !Ot() ? (_ = null, m = null) : m !== null && !Kn() && (m = null);
|
|
2879
2879
|
} catch {
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function mt() {
|
|
2883
2883
|
try {
|
|
2884
2884
|
return L && !C;
|
|
2885
2885
|
} catch {
|
|
@@ -2888,61 +2888,61 @@ function bt() {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
function nt() {
|
|
2890
2890
|
try {
|
|
2891
|
-
return
|
|
2891
|
+
return w?.querySelector(`.${r.panel}`) ?? null;
|
|
2892
2892
|
} catch {
|
|
2893
2893
|
}
|
|
2894
2894
|
return null;
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function Qn(t) {
|
|
2897
2897
|
try {
|
|
2898
|
-
|
|
2898
|
+
x = x === t ? null : t, h();
|
|
2899
2899
|
} catch {
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function Zn(t) {
|
|
2903
2903
|
try {
|
|
2904
|
-
|
|
2904
|
+
_ === t ? (_ = null, m = null) : (_ = t, m = null), h();
|
|
2905
2905
|
} catch {
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function tr(t) {
|
|
2909
2909
|
try {
|
|
2910
|
-
|
|
2910
|
+
m = m === t ? null : t, h();
|
|
2911
2911
|
} catch {
|
|
2912
2912
|
}
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function er(t) {
|
|
2915
2915
|
try {
|
|
2916
|
-
|
|
2916
|
+
x = t, X = "components", _t(), _ = null, m = null;
|
|
2917
2917
|
for (const e of D) {
|
|
2918
2918
|
for (const n of e.instances)
|
|
2919
2919
|
if (n.componentId === t) {
|
|
2920
|
-
|
|
2920
|
+
_ = e.viewFn, m = t;
|
|
2921
2921
|
break;
|
|
2922
2922
|
}
|
|
2923
|
-
if (
|
|
2923
|
+
if (_) break;
|
|
2924
2924
|
}
|
|
2925
2925
|
h();
|
|
2926
2926
|
} catch {
|
|
2927
2927
|
}
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function nr(t) {
|
|
2930
2930
|
try {
|
|
2931
2931
|
X = t, h();
|
|
2932
2932
|
} catch {
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function rr() {
|
|
2936
2936
|
try {
|
|
2937
2937
|
if (!L || C) return;
|
|
2938
|
-
C = !0, nt()?.classList.remove(r.panelVisible), p && (p.style.display = ""),
|
|
2938
|
+
C = !0, nt()?.classList.remove(r.panelVisible), p && (p.style.display = ""), Ht();
|
|
2939
2939
|
} catch {
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function or() {
|
|
2943
2943
|
try {
|
|
2944
2944
|
if (!C) return;
|
|
2945
|
-
C = !1, p && (p.style.display = "none"),
|
|
2945
|
+
C = !1, p && (p.style.display = "none"), _t(), h(), Pt(), requestAnimationFrame(() => {
|
|
2946
2946
|
try {
|
|
2947
2947
|
requestAnimationFrame(() => {
|
|
2948
2948
|
try {
|
|
@@ -2956,9 +2956,9 @@ function cr() {
|
|
|
2956
2956
|
} catch {
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function ir() {
|
|
2960
2960
|
try {
|
|
2961
|
-
L = !1, C = !1,
|
|
2961
|
+
L = !1, C = !1, x = null, $e(), gt(), Ht();
|
|
2962
2962
|
const t = nt();
|
|
2963
2963
|
if (t) {
|
|
2964
2964
|
t.classList.remove(r.panelVisible);
|
|
@@ -2966,21 +2966,21 @@ function ar() {
|
|
|
2966
2966
|
const n = () => {
|
|
2967
2967
|
try {
|
|
2968
2968
|
if (e) return;
|
|
2969
|
-
e = !0, t.removeEventListener("transitionend", n),
|
|
2969
|
+
e = !0, t.removeEventListener("transitionend", n), It();
|
|
2970
2970
|
} catch {
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
2973
|
t.addEventListener("transitionend", n, { once: !0 }), U(() => setTimeout(n, 350));
|
|
2974
2974
|
} else
|
|
2975
|
-
|
|
2975
|
+
It();
|
|
2976
2976
|
p && (p.style.display = "");
|
|
2977
2977
|
} catch {
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function cr() {
|
|
2981
2981
|
try {
|
|
2982
2982
|
if (L) return;
|
|
2983
|
-
L = !0, C = !1, p && (p.style.display = "none"), z = Math.round(window.innerHeight *
|
|
2983
|
+
L = !0, C = !1, p && (p.style.display = "none"), z = Math.round(window.innerHeight * qn), ar(), dr(), _t(), h(), Pt(), requestAnimationFrame(() => {
|
|
2984
2984
|
try {
|
|
2985
2985
|
requestAnimationFrame(() => {
|
|
2986
2986
|
try {
|
|
@@ -2994,34 +2994,34 @@ function sr() {
|
|
|
2994
2994
|
} catch {
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function ar() {
|
|
2998
2998
|
try {
|
|
2999
|
-
|
|
2999
|
+
Hn(), q || (q = mn(() => {
|
|
3000
3000
|
try {
|
|
3001
|
-
|
|
3001
|
+
mt() && h();
|
|
3002
3002
|
} catch {
|
|
3003
3003
|
}
|
|
3004
|
-
})), J || (J =
|
|
3004
|
+
})), J || (J = Dn(() => {
|
|
3005
3005
|
try {
|
|
3006
|
-
|
|
3006
|
+
mt() && h();
|
|
3007
3007
|
} catch {
|
|
3008
3008
|
}
|
|
3009
3009
|
}));
|
|
3010
3010
|
} catch {
|
|
3011
3011
|
}
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function $e() {
|
|
3014
3014
|
try {
|
|
3015
|
-
|
|
3015
|
+
Fn(), q && (q(), q = null), J && (J(), J = null);
|
|
3016
3016
|
} catch {
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
|
-
const
|
|
3020
|
-
function
|
|
3019
|
+
const Mt = "mates-devtools-vars";
|
|
3020
|
+
function sr() {
|
|
3021
3021
|
try {
|
|
3022
|
-
if (document.getElementById(
|
|
3022
|
+
if (document.getElementById(Mt)) return;
|
|
3023
3023
|
const t = document.createElement("style");
|
|
3024
|
-
t.id =
|
|
3024
|
+
t.id = Mt, t.textContent = `
|
|
3025
3025
|
#mates-devtools {
|
|
3026
3026
|
--dt-bg: #1a1a1a;
|
|
3027
3027
|
--dt-bg-2: #222222;
|
|
@@ -3053,42 +3053,8 @@ function dr() {
|
|
|
3053
3053
|
--dt-flash-bg: rgba(0,180,100,0.45);
|
|
3054
3054
|
}
|
|
3055
3055
|
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
#mates-devtools-fab {
|
|
3059
|
-
--dt-bg: #f5f5f5;
|
|
3060
|
-
--dt-bg-2: #ebebeb;
|
|
3061
|
-
--dt-bg-3: #e0e0e0;
|
|
3062
|
-
--dt-bg-input: #ffffff;
|
|
3063
|
-
--dt-bg-hover: #e8e8e8;
|
|
3064
|
-
--dt-bg-selected: #dbeafe;
|
|
3065
|
-
--dt-bg-active: rgba(59,130,246,0.12);
|
|
3066
|
-
--dt-border: #cccccc;
|
|
3067
|
-
--dt-border-2: #d4d4d4;
|
|
3068
|
-
--dt-border-3: #e4e4e4;
|
|
3069
|
-
--dt-border-selected: #3b82f6;
|
|
3070
|
-
--dt-text: #333333;
|
|
3071
|
-
--dt-text-bright: #111111;
|
|
3072
|
-
--dt-text-muted: #666666;
|
|
3073
|
-
--dt-text-dim: #888888;
|
|
3074
|
-
--dt-text-dimmer: #999999;
|
|
3075
|
-
--dt-text-selected: #1d4ed8;
|
|
3076
|
-
--dt-accent: #0077e6;
|
|
3077
|
-
--dt-accent-2: #3b82f6;
|
|
3078
|
-
--dt-scrollbar: #bbbbbb;
|
|
3079
|
-
--dt-scrollbar-hover: #999999;
|
|
3080
|
-
--dt-prop-key: #0070c1;
|
|
3081
|
-
--dt-prop-val: #a31515;
|
|
3082
|
-
--dt-scope-name: #007f6a;
|
|
3083
|
-
--dt-hook-count: #0070c1;
|
|
3084
|
-
--dt-instance-border: #3b82f6;
|
|
3085
|
-
--dt-instance-bg: #f0f4ff;
|
|
3086
|
-
--dt-flash-bg: rgba(0,160,90,0.3);
|
|
3087
|
-
}
|
|
3088
|
-
}
|
|
3089
|
-
|
|
3090
|
-
#mates-devtools[data-theme="light"],
|
|
3091
|
-
#mates-devtools-fab[data-theme="light"] {
|
|
3056
|
+
:root[data-theme="light"] #mates-devtools,
|
|
3057
|
+
:root[data-theme="light"] #mates-devtools-fab {
|
|
3092
3058
|
--dt-bg: #f5f5f5;
|
|
3093
3059
|
--dt-bg-2: #ebebeb;
|
|
3094
3060
|
--dt-bg-3: #e0e0e0;
|
|
@@ -3122,55 +3088,29 @@ function dr() {
|
|
|
3122
3088
|
} catch {
|
|
3123
3089
|
}
|
|
3124
3090
|
}
|
|
3125
|
-
function
|
|
3126
|
-
try {
|
|
3127
|
-
document.getElementById(Bt)?.remove();
|
|
3128
|
-
} catch {
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
function pr() {
|
|
3132
|
-
try {
|
|
3133
|
-
const t = xt.resolved;
|
|
3134
|
-
p && (p.dataset.theme = t), m && (m.dataset.theme = t);
|
|
3135
|
-
} catch {
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
function fr() {
|
|
3139
|
-
try {
|
|
3140
|
-
if (ht) return;
|
|
3141
|
-
pr(), ht = Qt(() => {
|
|
3142
|
-
try {
|
|
3143
|
-
const t = xt.resolved;
|
|
3144
|
-
p && (p.dataset.theme = t), m && (m.dataset.theme = t);
|
|
3145
|
-
} catch {
|
|
3146
|
-
}
|
|
3147
|
-
});
|
|
3148
|
-
} catch {
|
|
3149
|
-
}
|
|
3150
|
-
}
|
|
3151
|
-
function hr() {
|
|
3091
|
+
function lr() {
|
|
3152
3092
|
try {
|
|
3153
|
-
|
|
3093
|
+
document.getElementById(Mt)?.remove();
|
|
3154
3094
|
} catch {
|
|
3155
3095
|
}
|
|
3156
3096
|
}
|
|
3157
|
-
function
|
|
3097
|
+
function dr() {
|
|
3158
3098
|
try {
|
|
3159
|
-
if (
|
|
3160
|
-
|
|
3099
|
+
if (w) return;
|
|
3100
|
+
sr(), w = document.createElement("div"), w.id = "mates-devtools", document.body.appendChild(w);
|
|
3161
3101
|
} catch {
|
|
3162
3102
|
}
|
|
3163
3103
|
}
|
|
3164
|
-
function
|
|
3104
|
+
function It() {
|
|
3165
3105
|
try {
|
|
3166
|
-
if (!
|
|
3167
|
-
|
|
3106
|
+
if (!w) return;
|
|
3107
|
+
Jt(a``, w), w.remove(), w = null, lr();
|
|
3168
3108
|
} catch {
|
|
3169
3109
|
}
|
|
3170
3110
|
}
|
|
3171
3111
|
function h() {
|
|
3172
3112
|
try {
|
|
3173
|
-
if (!
|
|
3113
|
+
if (!w || !L) return;
|
|
3174
3114
|
const t = (() => {
|
|
3175
3115
|
try {
|
|
3176
3116
|
switch (X) {
|
|
@@ -3236,39 +3176,39 @@ function h() {
|
|
|
3236
3176
|
</svg>
|
|
3237
3177
|
</button>
|
|
3238
3178
|
</div>
|
|
3239
|
-
${M === "list" ?
|
|
3179
|
+
${M === "list" ? un({
|
|
3240
3180
|
groups: D,
|
|
3241
|
-
selectedViewFn:
|
|
3242
|
-
onSelectGroup:
|
|
3181
|
+
selectedViewFn: _,
|
|
3182
|
+
onSelectGroup: Zn,
|
|
3243
3183
|
onHighlight: (e) => at(e),
|
|
3244
3184
|
renderCallback: h
|
|
3245
|
-
}) :
|
|
3246
|
-
selectedComponentId:
|
|
3247
|
-
onSelectComponent:
|
|
3185
|
+
}) : hn({
|
|
3186
|
+
selectedComponentId: x,
|
|
3187
|
+
onSelectComponent: Qn,
|
|
3248
3188
|
onHighlight: (e) => at(e),
|
|
3249
3189
|
renderCallback: h
|
|
3250
3190
|
})}
|
|
3251
3191
|
</div>
|
|
3252
|
-
${
|
|
3253
|
-
selectedGroup:
|
|
3254
|
-
selectedInstanceId:
|
|
3255
|
-
onSelectInstance:
|
|
3192
|
+
${Ut(M === "list" ? {
|
|
3193
|
+
selectedGroup: Ot(),
|
|
3194
|
+
selectedInstanceId: m,
|
|
3195
|
+
onSelectInstance: tr,
|
|
3256
3196
|
onHighlight: (e) => at(e)
|
|
3257
3197
|
} : {
|
|
3258
|
-
selectedComponent:
|
|
3198
|
+
selectedComponent: ve()
|
|
3259
3199
|
})}
|
|
3260
3200
|
</div>
|
|
3261
3201
|
`;
|
|
3262
3202
|
case "logs":
|
|
3263
|
-
return
|
|
3203
|
+
return Pn({
|
|
3264
3204
|
onClear: h,
|
|
3265
3205
|
renderCallback: h
|
|
3266
3206
|
});
|
|
3267
3207
|
case "performance":
|
|
3268
|
-
return
|
|
3208
|
+
return Yn({
|
|
3269
3209
|
onClear: h,
|
|
3270
3210
|
renderCallback: h,
|
|
3271
|
-
onNavigateToComponent:
|
|
3211
|
+
onNavigateToComponent: er
|
|
3272
3212
|
});
|
|
3273
3213
|
default:
|
|
3274
3214
|
return a``;
|
|
@@ -3277,37 +3217,37 @@ function h() {
|
|
|
3277
3217
|
}
|
|
3278
3218
|
return a``;
|
|
3279
3219
|
})();
|
|
3280
|
-
|
|
3220
|
+
Jt(
|
|
3281
3221
|
a`
|
|
3282
3222
|
<div class="${r.panel}" style="height: ${z}px;">
|
|
3283
|
-
<div class="${r.resizeHandle}" @mousedown=${
|
|
3284
|
-
${
|
|
3223
|
+
<div class="${r.resizeHandle}" @mousedown=${ur}></div>
|
|
3224
|
+
${gn({
|
|
3285
3225
|
activeTab: X,
|
|
3286
|
-
onTabChange:
|
|
3287
|
-
onMinimise:
|
|
3288
|
-
onClose:
|
|
3289
|
-
unreadLogCount: X === "logs" ? 0 :
|
|
3226
|
+
onTabChange: nr,
|
|
3227
|
+
onMinimise: rr,
|
|
3228
|
+
onClose: ir,
|
|
3229
|
+
unreadLogCount: X === "logs" ? 0 : $n()
|
|
3290
3230
|
})}
|
|
3291
3231
|
${t}
|
|
3292
3232
|
</div>
|
|
3293
3233
|
`,
|
|
3294
|
-
|
|
3234
|
+
w
|
|
3295
3235
|
);
|
|
3296
3236
|
} catch {
|
|
3297
3237
|
}
|
|
3298
3238
|
}
|
|
3299
|
-
function
|
|
3239
|
+
function ur(t) {
|
|
3300
3240
|
try {
|
|
3301
3241
|
t.preventDefault();
|
|
3302
3242
|
const e = t.clientY, n = z, o = (c) => {
|
|
3303
3243
|
try {
|
|
3304
|
-
const s = window.innerHeight *
|
|
3244
|
+
const s = window.innerHeight * Xn;
|
|
3305
3245
|
z = Math.max(
|
|
3306
|
-
|
|
3246
|
+
Un,
|
|
3307
3247
|
Math.min(s, n + (e - c.clientY))
|
|
3308
3248
|
);
|
|
3309
3249
|
const d = nt();
|
|
3310
|
-
d && (d.style.height = `${z}px`),
|
|
3250
|
+
d && (d.style.height = `${z}px`), Pt();
|
|
3311
3251
|
} catch {
|
|
3312
3252
|
}
|
|
3313
3253
|
}, i = () => {
|
|
@@ -3320,95 +3260,95 @@ function mr(t) {
|
|
|
3320
3260
|
} catch {
|
|
3321
3261
|
}
|
|
3322
3262
|
}
|
|
3323
|
-
function
|
|
3263
|
+
function pr() {
|
|
3324
3264
|
try {
|
|
3325
3265
|
if (p) return;
|
|
3326
|
-
p = document.createElement("div"), p.id = "mates-devtools-fab", p.className = r.fab, p.
|
|
3266
|
+
p = document.createElement("div"), p.id = "mates-devtools-fab", p.className = r.fab, p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>', p.style.bottom = "50px", p.style.right = "50px", p.addEventListener("mousedown", we), p.addEventListener("click", _e), document.body.appendChild(p);
|
|
3327
3267
|
} catch {
|
|
3328
3268
|
}
|
|
3329
3269
|
}
|
|
3330
|
-
function
|
|
3270
|
+
function fr() {
|
|
3331
3271
|
try {
|
|
3332
3272
|
if (!p) return;
|
|
3333
|
-
p.removeEventListener("mousedown",
|
|
3273
|
+
p.removeEventListener("mousedown", we), p.removeEventListener("click", _e), p.remove(), p = null;
|
|
3334
3274
|
} catch {
|
|
3335
3275
|
}
|
|
3336
3276
|
}
|
|
3337
|
-
function
|
|
3277
|
+
function _e() {
|
|
3338
3278
|
try {
|
|
3339
|
-
if (
|
|
3340
|
-
|
|
3279
|
+
if (ht) {
|
|
3280
|
+
ht = !1;
|
|
3341
3281
|
return;
|
|
3342
3282
|
}
|
|
3343
|
-
C ?
|
|
3283
|
+
C ? or() : cr();
|
|
3344
3284
|
} catch {
|
|
3345
3285
|
}
|
|
3346
3286
|
}
|
|
3347
|
-
function
|
|
3287
|
+
function we(t) {
|
|
3348
3288
|
try {
|
|
3349
|
-
t.preventDefault(),
|
|
3289
|
+
t.preventDefault(), Ft = !0, ht = !1;
|
|
3350
3290
|
const e = p.getBoundingClientRect();
|
|
3351
|
-
|
|
3291
|
+
be = t.clientX - e.left, xe = t.clientY - e.top, p.classList.add(r.fabDragging), document.addEventListener("mousemove", ke), document.addEventListener("mouseup", Se);
|
|
3352
3292
|
} catch {
|
|
3353
3293
|
}
|
|
3354
3294
|
}
|
|
3355
|
-
function
|
|
3295
|
+
function ke(t) {
|
|
3356
3296
|
try {
|
|
3357
|
-
if (!
|
|
3358
|
-
|
|
3297
|
+
if (!Ft || !p) return;
|
|
3298
|
+
ht = !0, p.style.bottom = "auto", p.style.right = "auto", p.style.left = `${Math.max(0, Math.min(window.innerWidth - 48, t.clientX - be))}px`, p.style.top = `${Math.max(0, Math.min(window.innerHeight - 48, t.clientY - xe))}px`;
|
|
3359
3299
|
} catch {
|
|
3360
3300
|
}
|
|
3361
3301
|
}
|
|
3362
|
-
function
|
|
3302
|
+
function Se() {
|
|
3363
3303
|
try {
|
|
3364
|
-
|
|
3304
|
+
Ft = !1, p?.classList.remove(r.fabDragging), document.removeEventListener("mousemove", ke), document.removeEventListener("mouseup", Se);
|
|
3365
3305
|
} catch {
|
|
3366
3306
|
}
|
|
3367
3307
|
}
|
|
3368
|
-
function
|
|
3308
|
+
function hr() {
|
|
3369
3309
|
try {
|
|
3370
|
-
|
|
3310
|
+
on(), pr(), K || (K = bt.__subscribe((t) => {
|
|
3371
3311
|
try {
|
|
3372
|
-
t?.type === "unmount" && (
|
|
3312
|
+
t?.type === "unmount" && (x !== null && t.component.componentId === x && (x = null), m !== null && t.component.componentId === m && (m = null)), _t(), mt() && h();
|
|
3373
3313
|
} catch {
|
|
3374
3314
|
}
|
|
3375
|
-
})),
|
|
3315
|
+
})), te(() => {
|
|
3376
3316
|
try {
|
|
3377
|
-
|
|
3317
|
+
mt() && h();
|
|
3378
3318
|
} catch {
|
|
3379
3319
|
}
|
|
3380
3320
|
});
|
|
3381
3321
|
} catch {
|
|
3382
3322
|
}
|
|
3383
3323
|
}
|
|
3384
|
-
function
|
|
3324
|
+
function gr() {
|
|
3385
3325
|
try {
|
|
3386
|
-
|
|
3326
|
+
cn(), te(null), gt(), $e(), bn(), Ht(), K && (K(), K = null), L = !1, C = !1, M = "list", x = null, _ = null, m = null, D = [], It(), fr();
|
|
3387
3327
|
} catch {
|
|
3388
3328
|
}
|
|
3389
3329
|
}
|
|
3390
3330
|
const st = [];
|
|
3391
|
-
let
|
|
3392
|
-
function
|
|
3331
|
+
let Bt = null, Lt = null, Et = null;
|
|
3332
|
+
function mr() {
|
|
3393
3333
|
try {
|
|
3394
|
-
|
|
3334
|
+
Bt = Ae((t, e) => {
|
|
3395
3335
|
try {
|
|
3396
3336
|
const n = (e.method ?? "GET").toUpperCase();
|
|
3397
3337
|
st.push({ method: n, url: t, startTs: performance.now() });
|
|
3398
3338
|
} catch {
|
|
3399
3339
|
}
|
|
3400
3340
|
return { url: t, options: e };
|
|
3401
|
-
}),
|
|
3341
|
+
}), Lt = Re((t) => {
|
|
3402
3342
|
try {
|
|
3403
3343
|
const e = st.shift(), n = e?.method ?? "", o = e?.url ?? t.url ?? "", i = e ? performance.now() - e.startTs : 0;
|
|
3404
|
-
|
|
3344
|
+
ue(n, o, t.status, i);
|
|
3405
3345
|
} catch {
|
|
3406
3346
|
}
|
|
3407
3347
|
return t;
|
|
3408
|
-
}),
|
|
3348
|
+
}), Et = ze((t) => {
|
|
3409
3349
|
try {
|
|
3410
3350
|
const e = st.shift(), n = e ? performance.now() - e.startTs : 0;
|
|
3411
|
-
|
|
3351
|
+
pe(
|
|
3412
3352
|
e?.method ?? "",
|
|
3413
3353
|
e?.url ?? "",
|
|
3414
3354
|
t.message,
|
|
@@ -3420,103 +3360,103 @@ function $r() {
|
|
|
3420
3360
|
} catch {
|
|
3421
3361
|
}
|
|
3422
3362
|
}
|
|
3423
|
-
function
|
|
3363
|
+
function yr() {
|
|
3424
3364
|
try {
|
|
3425
|
-
|
|
3365
|
+
Bt?.(), Lt?.(), Et?.(), Bt = null, Lt = null, Et = null, st.length = 0;
|
|
3426
3366
|
} catch {
|
|
3427
3367
|
}
|
|
3428
3368
|
}
|
|
3429
|
-
function
|
|
3369
|
+
function br() {
|
|
3430
3370
|
try {
|
|
3431
|
-
if (
|
|
3432
|
-
|
|
3433
|
-
registerComponent:
|
|
3434
|
-
unregisterComponent:
|
|
3435
|
-
notifyRender:
|
|
3371
|
+
if (Le()) return;
|
|
3372
|
+
Ee({
|
|
3373
|
+
registerComponent: Fe,
|
|
3374
|
+
unregisterComponent: Oe,
|
|
3375
|
+
notifyRender: De,
|
|
3436
3376
|
getComponentName: tt,
|
|
3437
|
-
logComponentMount:
|
|
3438
|
-
logComponentRender:
|
|
3439
|
-
logComponentUnmount:
|
|
3440
|
-
logAtomSet:
|
|
3441
|
-
logAtomUpdate:
|
|
3442
|
-
logEventTrigger:
|
|
3443
|
-
logCleanupEventTrigger:
|
|
3444
|
-
logFetchRequest:
|
|
3445
|
-
logFetchResponse:
|
|
3446
|
-
logFetchError:
|
|
3447
|
-
recordRender:
|
|
3448
|
-
}),
|
|
3377
|
+
logComponentMount: kn,
|
|
3378
|
+
logComponentRender: Sn,
|
|
3379
|
+
logComponentUnmount: Cn,
|
|
3380
|
+
logAtomSet: Tn,
|
|
3381
|
+
logAtomUpdate: Mn,
|
|
3382
|
+
logEventTrigger: In,
|
|
3383
|
+
logCleanupEventTrigger: Ln,
|
|
3384
|
+
logFetchRequest: Bn,
|
|
3385
|
+
logFetchResponse: ue,
|
|
3386
|
+
logFetchError: pe,
|
|
3387
|
+
recordRender: he
|
|
3388
|
+
}), yn(), mr();
|
|
3449
3389
|
} catch {
|
|
3450
3390
|
}
|
|
3451
3391
|
}
|
|
3452
3392
|
let yt = !1;
|
|
3453
|
-
function
|
|
3393
|
+
function Mr() {
|
|
3454
3394
|
try {
|
|
3455
3395
|
if (yt) return;
|
|
3456
|
-
yt = !0,
|
|
3396
|
+
yt = !0, br(), hr();
|
|
3457
3397
|
} catch {
|
|
3458
3398
|
}
|
|
3459
3399
|
}
|
|
3460
|
-
function
|
|
3400
|
+
function Ir() {
|
|
3461
3401
|
try {
|
|
3462
3402
|
if (!yt) return;
|
|
3463
|
-
yt = !1,
|
|
3403
|
+
yt = !1, yr(), gr();
|
|
3464
3404
|
} catch {
|
|
3465
3405
|
}
|
|
3466
3406
|
}
|
|
3467
3407
|
export {
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3408
|
+
wn as clearLogs,
|
|
3409
|
+
Vn as clearPerfData,
|
|
3410
|
+
yn as connectLogStore,
|
|
3411
|
+
Hn as connectPerfStore,
|
|
3412
|
+
gr as destroyDevTools,
|
|
3413
|
+
Ir as destroyMatesDevTools,
|
|
3414
|
+
bt as devToolsEvent,
|
|
3415
|
+
bn as disconnectLogStore,
|
|
3416
|
+
Fn as disconnectPerfStore,
|
|
3417
|
+
Qt as getAllComponents,
|
|
3478
3418
|
Z as getComponentDepth,
|
|
3479
|
-
|
|
3419
|
+
je as getComponentGroups,
|
|
3480
3420
|
tt as getComponentName,
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3421
|
+
$r as getComponentsByView,
|
|
3422
|
+
kr as getLogCount,
|
|
3423
|
+
vn as getLogs,
|
|
3424
|
+
Nn as getPerfSummaries,
|
|
3425
|
+
Tr as getRecentTimings,
|
|
3426
|
+
xt as getRenderVersion,
|
|
3427
|
+
jn as getSlowestRenders,
|
|
3428
|
+
$n as getUnreadLogCount,
|
|
3429
|
+
wr as isLogStoreConnected,
|
|
3430
|
+
Sr as isPerfStoreConnected,
|
|
3431
|
+
Tn as logAtomSet,
|
|
3432
|
+
Mn as logAtomUpdate,
|
|
3433
|
+
Ln as logCleanupEventTrigger,
|
|
3434
|
+
kn as logComponentMount,
|
|
3435
|
+
Sn as logComponentRender,
|
|
3436
|
+
Cn as logComponentUnmount,
|
|
3437
|
+
In as logEventTrigger,
|
|
3438
|
+
_n as markLogsRead,
|
|
3439
|
+
De as notifyRender,
|
|
3440
|
+
mn as onLogEntry,
|
|
3441
|
+
Dn as onPerfEntry,
|
|
3442
|
+
he as recordRender,
|
|
3443
|
+
Fe as registerComponent,
|
|
3444
|
+
Ke as renderAtomsViewer,
|
|
3445
|
+
Ut as renderComponentInspector,
|
|
3446
|
+
un as renderComponentList,
|
|
3447
|
+
hn as renderComponentTree,
|
|
3448
|
+
gn as renderHeader,
|
|
3449
|
+
ne as renderHooksViewer,
|
|
3450
|
+
Pn as renderLogsViewer,
|
|
3451
|
+
Mr as renderMatesDevTools,
|
|
3452
|
+
Yn as renderPerfViewer,
|
|
3453
|
+
Xe as renderPropsViewer,
|
|
3454
|
+
qe as renderScopesViewer,
|
|
3455
|
+
Qe as renderUseStateViewer,
|
|
3516
3456
|
O as renderValueTree,
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3457
|
+
_r as renderValueTreeEntries,
|
|
3458
|
+
te as setValueTreeRenderCallback,
|
|
3459
|
+
Cr as startRenderTiming,
|
|
3520
3460
|
r as styles,
|
|
3521
|
-
|
|
3461
|
+
Oe as unregisterComponent
|
|
3522
3462
|
};
|