mates-devtools 0.1.0-beta.4 → 0.1.0-beta.5
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 Ie, globalCSS as Be, event as Le, html as a, nothing as k, repeat as T, atom as Kt, effect as Qt, x as Ee, render as Zt, themeAtom as xt, isDevToolsInstalled as Ae, installDevToolsHooks as Re, interceptBefore as ze, interceptAfter as Pe, interceptError as He } from "mates";
|
|
2
|
+
const te = "selected", Fe = "selected", Oe = Ie("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 Kt = "selected", Pe = "selected", He = Ce("mates-dt-flash", {
|
|
|
12
12
|
"&::-webkit-scrollbar-thumb:hover": {
|
|
13
13
|
background: "var(--dt-scrollbar-hover)"
|
|
14
14
|
}
|
|
15
|
-
}, r =
|
|
15
|
+
}, r = Be({
|
|
16
16
|
// ─── Floating Action Button ───────────────────────────────────────────────
|
|
17
17
|
fab: {
|
|
18
18
|
position: "fixed",
|
|
@@ -600,7 +600,7 @@ const Kt = "selected", Pe = "selected", He = Ce("mates-dt-flash", {
|
|
|
600
600
|
transition: "background 0.1s, color 0.1s"
|
|
601
601
|
},
|
|
602
602
|
highlightFlash: {
|
|
603
|
-
animation: `${
|
|
603
|
+
animation: `${Oe} 0.6s ease forwards`
|
|
604
604
|
},
|
|
605
605
|
// ─── Logs tab ─────────────────────────────────────────────────────────────
|
|
606
606
|
logsPanel: {
|
|
@@ -808,33 +808,33 @@ const Kt = "selected", Pe = "selected", He = Ce("mates-dt-flash", {
|
|
|
808
808
|
color: "var(--dt-text-dim)",
|
|
809
809
|
marginLeft: "5px"
|
|
810
810
|
}
|
|
811
|
-
}),
|
|
812
|
-
function
|
|
811
|
+
}), zt = /* @__PURE__ */ new Set(), lt = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), vt = Le("devtools");
|
|
812
|
+
function De(t, e) {
|
|
813
813
|
try {
|
|
814
|
-
|
|
814
|
+
zt.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), vt.trigger({ type: "mount", component: t });
|
|
817
817
|
} catch {
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Ne(t, e) {
|
|
821
821
|
try {
|
|
822
|
-
if (
|
|
822
|
+
if (zt.delete(t), e) {
|
|
823
823
|
const n = lt.get(e);
|
|
824
824
|
n && n.delete(t);
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
vt.trigger({ type: "unmount", component: t });
|
|
827
827
|
} catch {
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function je(t) {
|
|
831
831
|
try {
|
|
832
832
|
const e = dt.get(t) ?? 0;
|
|
833
|
-
dt.set(t, e + 1),
|
|
833
|
+
dt.set(t, e + 1), vt.trigger({ type: "render", component: t });
|
|
834
834
|
} catch {
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function $t(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 It(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 ee() {
|
|
859
859
|
try {
|
|
860
|
-
return Array.from(
|
|
860
|
+
return Array.from(zt).filter((t) => {
|
|
861
861
|
const e = t._view || t.oldView;
|
|
862
862
|
return !e?.__devtools__ && !e?.skipDevToolsRender;
|
|
863
863
|
});
|
|
@@ -865,7 +865,7 @@ function Qt() {
|
|
|
865
865
|
}
|
|
866
866
|
return [];
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function Cr(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 Ve(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 We() {
|
|
891
891
|
try {
|
|
892
|
-
const t =
|
|
892
|
+
const t = ee(), e = /* @__PURE__ */ new Map();
|
|
893
893
|
for (const o of t) {
|
|
894
|
-
const i =
|
|
894
|
+
const i = Ve(o);
|
|
895
895
|
if (!i) continue;
|
|
896
896
|
let c = e.get(i);
|
|
897
897
|
c || (c = [], e.set(i, c)), c.push(o);
|
|
@@ -905,7 +905,7 @@ function je() {
|
|
|
905
905
|
});
|
|
906
906
|
try {
|
|
907
907
|
n.sort((o, i) => {
|
|
908
|
-
const c = (
|
|
908
|
+
const c = (s) => s.instances.reduce(
|
|
909
909
|
(d, l) => Math.min(d, Z(l)),
|
|
910
910
|
1 / 0
|
|
911
911
|
);
|
|
@@ -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
|
+
}, Wt = /* @__PURE__ */ new WeakMap();
|
|
937
|
+
let ne = null;
|
|
938
|
+
function re(t) {
|
|
939
939
|
try {
|
|
940
|
-
|
|
940
|
+
ne = t;
|
|
941
941
|
} catch {
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function oe(t) {
|
|
945
945
|
try {
|
|
946
|
-
let e =
|
|
947
|
-
return e || (e = /* @__PURE__ */ new Set(),
|
|
946
|
+
let e = Wt.get(t);
|
|
947
|
+
return e || (e = /* @__PURE__ */ new Set(), Wt.set(t, e)), e;
|
|
948
948
|
} catch {
|
|
949
949
|
return /* @__PURE__ */ new Set();
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function Ge(t, e) {
|
|
953
953
|
try {
|
|
954
|
-
return
|
|
954
|
+
return oe(t).has(e);
|
|
955
955
|
} catch {
|
|
956
956
|
return !1;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Ye(t, e) {
|
|
960
960
|
try {
|
|
961
|
-
const n =
|
|
961
|
+
const n = oe(t);
|
|
962
962
|
n.has(e) ? n.delete(e) : n.add(e);
|
|
963
963
|
try {
|
|
964
|
-
|
|
964
|
+
ne?.();
|
|
965
965
|
} catch {
|
|
966
966
|
}
|
|
967
967
|
} catch {
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Ue(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 _t(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 Gt(t, e = 60) {
|
|
985
985
|
try {
|
|
986
|
-
const n =
|
|
986
|
+
const n = _t(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((
|
|
990
|
+
const i = o.slice(0, 5).map((s) => Yt(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 Vt(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}: ${Yt(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 Vt(t, e = 60) {
|
|
|
1009
1009
|
return "";
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Yt(t) {
|
|
1013
1013
|
try {
|
|
1014
|
-
switch (
|
|
1014
|
+
switch (_t(t)) {
|
|
1015
1015
|
case "string": {
|
|
1016
1016
|
const n = t;
|
|
1017
1017
|
return n.length > 30 ? `"${n.slice(0, 27)}…"` : `"${n}"`;
|
|
@@ -1044,39 +1044,39 @@ function Wt(t) {
|
|
|
1044
1044
|
return "";
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Xe(t) {
|
|
1048
1048
|
try {
|
|
1049
|
-
switch (
|
|
1049
|
+
switch (_t(t)) {
|
|
1050
1050
|
case "string":
|
|
1051
|
-
return
|
|
1051
|
+
return a`<span style="${f.string}">"${String(t)}"</span>`;
|
|
1052
1052
|
case "number":
|
|
1053
|
-
return
|
|
1053
|
+
return a`<span style="${f.number}">${String(t)}</span>`;
|
|
1054
1054
|
case "boolean":
|
|
1055
|
-
return
|
|
1055
|
+
return a`<span style="${f.boolean}">${String(t)}</span>`;
|
|
1056
1056
|
case "null":
|
|
1057
|
-
return
|
|
1057
|
+
return a`<span style="${f.null}">null</span>`;
|
|
1058
1058
|
case "undefined":
|
|
1059
|
-
return
|
|
1059
|
+
return a`<span style="${f.undefined}">undefined</span>`;
|
|
1060
1060
|
case "function":
|
|
1061
|
-
return
|
|
1061
|
+
return a`<span style="${f.function}"
|
|
1062
1062
|
>ƒ ${t.name || "anonymous"}()</span
|
|
1063
1063
|
>`;
|
|
1064
1064
|
case "symbol":
|
|
1065
|
-
return
|
|
1065
|
+
return a`<span style="${f.symbol}">${String(t)}</span>`;
|
|
1066
1066
|
case "date":
|
|
1067
|
-
return
|
|
1067
|
+
return a`<span style="${f.string}"
|
|
1068
1068
|
>${t.toISOString()}</span
|
|
1069
1069
|
>`;
|
|
1070
1070
|
case "regexp":
|
|
1071
|
-
return
|
|
1071
|
+
return a`<span style="${f.string}">${String(t)}</span>`;
|
|
1072
1072
|
default:
|
|
1073
|
-
return
|
|
1073
|
+
return a`<span style="${f.preview}">${String(t)}</span>`;
|
|
1074
1074
|
}
|
|
1075
1075
|
} catch {
|
|
1076
|
-
return
|
|
1076
|
+
return a``;
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function qe(t) {
|
|
1080
1080
|
try {
|
|
1081
1081
|
if (t instanceof Map)
|
|
1082
1082
|
return Array.from(t.entries()).map(([e, n]) => ({
|
|
@@ -1128,43 +1128,43 @@ function Ue(t) {
|
|
|
1128
1128
|
function O(t, e, n, o = "root", i = 0) {
|
|
1129
1129
|
try {
|
|
1130
1130
|
if (i > 15)
|
|
1131
|
-
return
|
|
1131
|
+
return a`
|
|
1132
1132
|
<div style="${f.row}">
|
|
1133
|
-
${e != null ?
|
|
1133
|
+
${e != null ? a`<span style="${f.key}">${e}</span
|
|
1134
1134
|
><span style="${f.colon}">:</span>` : k}
|
|
1135
1135
|
<span style="${f.preview}">[max depth]</span>
|
|
1136
1136
|
</div>
|
|
1137
1137
|
`;
|
|
1138
|
-
const c =
|
|
1138
|
+
const c = Ue(n), s = c && Ge(t, o);
|
|
1139
1139
|
if (!c)
|
|
1140
|
-
return
|
|
1140
|
+
return a`
|
|
1141
1141
|
<div style="${f.row}">
|
|
1142
1142
|
<span style="${f.toggle}"></span>
|
|
1143
|
-
${e != null ?
|
|
1143
|
+
${e != null ? a`<span style="${f.key}">${e}</span
|
|
1144
1144
|
><span style="${f.colon}">:</span>` : k}
|
|
1145
|
-
${
|
|
1145
|
+
${Xe(n)}
|
|
1146
1146
|
</div>
|
|
1147
1147
|
`;
|
|
1148
|
-
const d =
|
|
1149
|
-
return
|
|
1148
|
+
const d = s ? qe(n) : [], l = _t(n);
|
|
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(), Ye(t, o);
|
|
1156
1156
|
} catch {
|
|
1157
1157
|
}
|
|
1158
1158
|
}}
|
|
1159
1159
|
>
|
|
1160
|
-
<span style="${f.toggle}">${
|
|
1161
|
-
${e != null ?
|
|
1160
|
+
<span style="${f.toggle}">${s ? "▼" : "▶"}</span>
|
|
1161
|
+
${e != null ? a`<span style="${f.key}">${e}</span
|
|
1162
1162
|
><span style="${f.colon}">:</span>` : k}
|
|
1163
|
-
${
|
|
1164
|
-
>${l === "array" ? `Array(${n.length})` : l === "object" ? "{" :
|
|
1165
|
-
>` :
|
|
1163
|
+
${s ? a`<span style="${f.preview}"
|
|
1164
|
+
>${l === "array" ? `Array(${n.length})` : l === "object" ? "{" : Gt(n)}</span
|
|
1165
|
+
>` : a`<span style="${f.preview}">${Gt(n)}</span>`}
|
|
1166
1166
|
</div>
|
|
1167
|
-
${
|
|
1167
|
+
${s ? a`
|
|
1168
1168
|
<div style="${f.children}">
|
|
1169
1169
|
${d.map(
|
|
1170
1170
|
(u) => O(
|
|
@@ -1175,38 +1175,38 @@ function O(t, e, n, o = "root", i = 0) {
|
|
|
1175
1175
|
i + 1
|
|
1176
1176
|
)
|
|
1177
1177
|
)}
|
|
1178
|
-
${d.length === 0 ?
|
|
1178
|
+
${d.length === 0 ? a`<div style="${f.row}">
|
|
1179
1179
|
<span style="${f.preview}">(empty)</span>
|
|
1180
1180
|
</div>` : k}
|
|
1181
1181
|
</div>
|
|
1182
|
-
${l === "object" &&
|
|
1182
|
+
${l === "object" && s ? a`<div style="${f.row};margin-left:14px;">
|
|
1183
1183
|
<span style="${f.preview}">}</span>
|
|
1184
1184
|
</div>` : k}
|
|
1185
1185
|
` : k}
|
|
1186
1186
|
</div>
|
|
1187
1187
|
`;
|
|
1188
1188
|
} catch {
|
|
1189
|
-
return
|
|
1189
|
+
return a``;
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function Tr(t, e, n = "root") {
|
|
1193
1193
|
try {
|
|
1194
1194
|
const o = Object.keys(e);
|
|
1195
|
-
return o.length === 0 ?
|
|
1195
|
+
return o.length === 0 ? a`<div style="color:#777;font-size:13px;padding:2px 0;">
|
|
1196
1196
|
No data
|
|
1197
|
-
</div>` :
|
|
1197
|
+
</div>` : a`
|
|
1198
1198
|
${o.map(
|
|
1199
1199
|
(i) => O(t, i, e[i], `${n}.${i}`, 0)
|
|
1200
1200
|
)}
|
|
1201
1201
|
`;
|
|
1202
1202
|
} catch {
|
|
1203
|
-
return
|
|
1203
|
+
return a``;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Je(t) {
|
|
1207
1207
|
try {
|
|
1208
1208
|
const e = Object.keys(t);
|
|
1209
|
-
return e.length === 0 ?
|
|
1209
|
+
return e.length === 0 ? a`<div style="color: #777; font-size: 13px;">No props</div>` : a`
|
|
1210
1210
|
${T(
|
|
1211
1211
|
e,
|
|
1212
1212
|
(n) => n,
|
|
@@ -1214,12 +1214,12 @@ function Xe(t) {
|
|
|
1214
1214
|
)}
|
|
1215
1215
|
`;
|
|
1216
1216
|
} catch {
|
|
1217
|
-
return
|
|
1217
|
+
return a``;
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Ke(t) {
|
|
1221
1221
|
try {
|
|
1222
|
-
return !t || t.size === 0 ?
|
|
1222
|
+
return !t || t.size === 0 ? a`<div style="color: #777; font-size: 13px;">No scopes</div>` : a`
|
|
1223
1223
|
${[...t?.entries() || []].map(
|
|
1224
1224
|
([e, n]) => {
|
|
1225
1225
|
try {
|
|
@@ -1234,12 +1234,12 @@ function qe(t) {
|
|
|
1234
1234
|
i[l] = "[error reading]";
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
let
|
|
1238
|
-
for (;
|
|
1239
|
-
for (const l of Object.getOwnPropertyNames(
|
|
1237
|
+
let s = Object.getPrototypeOf(n);
|
|
1238
|
+
for (; s && s !== Object.prototype; ) {
|
|
1239
|
+
for (const l of Object.getOwnPropertyNames(s)) {
|
|
1240
1240
|
if (c.has(l) || l === "constructor" || l === "__isScope___" || l === "reset")
|
|
1241
1241
|
continue;
|
|
1242
|
-
if (Object.getOwnPropertyDescriptor(
|
|
1242
|
+
if (Object.getOwnPropertyDescriptor(s, l)?.get) {
|
|
1243
1243
|
c.add(l);
|
|
1244
1244
|
try {
|
|
1245
1245
|
i[`${l} (get)`] = n[l];
|
|
@@ -1248,10 +1248,10 @@ function qe(t) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
|
|
1251
|
+
s = Object.getPrototypeOf(s);
|
|
1252
1252
|
}
|
|
1253
1253
|
const d = n;
|
|
1254
|
-
return
|
|
1254
|
+
return a`
|
|
1255
1255
|
<div style="margin-bottom:6px;">
|
|
1256
1256
|
<div
|
|
1257
1257
|
style="color:#4ec9b0;font-weight:500;font-size:13px;margin-bottom:2px;font-family:'SF Mono',Monaco,Consolas,monospace;"
|
|
@@ -1259,9 +1259,9 @@ function qe(t) {
|
|
|
1259
1259
|
${o}
|
|
1260
1260
|
</div>
|
|
1261
1261
|
<div style="margin-left:4px;">
|
|
1262
|
-
${Object.keys(i).length === 0 ?
|
|
1262
|
+
${Object.keys(i).length === 0 ? a`<div style="color:#666;font-size:13px;">
|
|
1263
1263
|
(empty scope)
|
|
1264
|
-
</div>` :
|
|
1264
|
+
</div>` : a`
|
|
1265
1265
|
${Object.keys(i).map(
|
|
1266
1266
|
(l) => O(
|
|
1267
1267
|
d,
|
|
@@ -1276,16 +1276,16 @@ function qe(t) {
|
|
|
1276
1276
|
</div>
|
|
1277
1277
|
`;
|
|
1278
1278
|
} catch {
|
|
1279
|
-
return
|
|
1279
|
+
return a``;
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
)}
|
|
1283
1283
|
`;
|
|
1284
1284
|
} catch {
|
|
1285
|
-
return
|
|
1285
|
+
return a``;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Qe(t) {
|
|
1289
1289
|
try {
|
|
1290
1290
|
if (!t) return [];
|
|
1291
1291
|
const e = [];
|
|
@@ -1304,10 +1304,10 @@ function Je(t) {
|
|
|
1304
1304
|
return [];
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Ze(t) {
|
|
1308
1308
|
try {
|
|
1309
|
-
const e =
|
|
1310
|
-
return e.length === 0 ?
|
|
1309
|
+
const e = Qe(t);
|
|
1310
|
+
return e.length === 0 ? a`<div style="color: #777; font-size: 13px;">No atoms</div>` : a`
|
|
1311
1311
|
${T(
|
|
1312
1312
|
e,
|
|
1313
1313
|
(n) => n.id,
|
|
@@ -1318,12 +1318,12 @@ function Ke(t) {
|
|
|
1318
1318
|
)}
|
|
1319
1319
|
`;
|
|
1320
1320
|
} catch {
|
|
1321
|
-
return
|
|
1321
|
+
return a``;
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function tn(t) {
|
|
1325
1325
|
try {
|
|
1326
|
-
return !t || t.length === 0 ?
|
|
1326
|
+
return !t || t.length === 0 ? a`<div style="color: #777; font-size: 13px;">No state</div>` : a`
|
|
1327
1327
|
${t.map((e, n) => {
|
|
1328
1328
|
const o = t.length === 1 ? "state" : `state#${n + 1}`;
|
|
1329
1329
|
let i;
|
|
@@ -1336,10 +1336,10 @@ function Qe(t) {
|
|
|
1336
1336
|
})}
|
|
1337
1337
|
`;
|
|
1338
1338
|
} catch {
|
|
1339
|
-
return
|
|
1339
|
+
return a``;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function en(t) {
|
|
1343
1343
|
try {
|
|
1344
1344
|
const e = {
|
|
1345
1345
|
onMount: 0,
|
|
@@ -1421,52 +1421,52 @@ function Ze(t) {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function nn(t, e) {
|
|
1425
1425
|
try {
|
|
1426
|
-
return
|
|
1426
|
+
return a`
|
|
1427
1427
|
<span class="${r.hookPill}">
|
|
1428
1428
|
<span class="${r.hookPillLabel}">${t}</span>
|
|
1429
1429
|
<span class="${r.hookPillCount}">${e}</span>
|
|
1430
1430
|
</span>
|
|
1431
1431
|
`;
|
|
1432
1432
|
} catch {
|
|
1433
|
-
return
|
|
1433
|
+
return a``;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function ie(t) {
|
|
1437
1437
|
try {
|
|
1438
|
-
const e =
|
|
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 :
|
|
1438
|
+
const e = en(t), n = [];
|
|
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) => nn(o.label, o.count))}
|
|
1442
1442
|
</div>
|
|
1443
1443
|
`;
|
|
1444
1444
|
} catch {
|
|
1445
|
-
return
|
|
1445
|
+
return a``;
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function rn(t, e) {
|
|
1449
1449
|
try {
|
|
1450
|
-
t.stopPropagation(),
|
|
1450
|
+
t.stopPropagation(), at(e);
|
|
1451
1451
|
} catch {
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function on(t) {
|
|
1455
1455
|
try {
|
|
1456
1456
|
const e = [];
|
|
1457
|
-
let n =
|
|
1457
|
+
let n = It(t);
|
|
1458
1458
|
for (; n; )
|
|
1459
|
-
e.push(tt(n)), n =
|
|
1459
|
+
e.push(tt(n)), n = It(n);
|
|
1460
1460
|
return e.reverse(), e;
|
|
1461
1461
|
} catch {
|
|
1462
1462
|
return [];
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function ce(t) {
|
|
1466
1466
|
try {
|
|
1467
|
-
const e =
|
|
1467
|
+
const e = on(t), n = tt(t);
|
|
1468
1468
|
if (e.length === 0)
|
|
1469
|
-
return
|
|
1469
|
+
return a`
|
|
1470
1470
|
<div class="${r.inspectorBreadcrumb}">
|
|
1471
1471
|
<span class="${r.breadcrumbSegment} ${r.breadcrumbCurrent}"
|
|
1472
1472
|
>${n}</span
|
|
@@ -1476,57 +1476,57 @@ function re(t) {
|
|
|
1476
1476
|
const o = [];
|
|
1477
1477
|
for (let i = 0; i < e.length; i++)
|
|
1478
1478
|
i > 0 && o.push(
|
|
1479
|
-
|
|
1479
|
+
a`<span class="${r.breadcrumbSeparator}">›</span>`
|
|
1480
1480
|
), o.push(
|
|
1481
|
-
|
|
1481
|
+
a`<span class="${r.breadcrumbSegment}">${e[i]}</span>`
|
|
1482
1482
|
);
|
|
1483
|
-
return o.push(
|
|
1484
|
-
|
|
1483
|
+
return o.push(a`<span class="${r.breadcrumbSeparator}">›</span>`), o.push(
|
|
1484
|
+
a`<span class="${r.breadcrumbSegment} ${r.breadcrumbCurrent}"
|
|
1485
1485
|
>${n}</span
|
|
1486
1486
|
>`
|
|
1487
|
-
),
|
|
1487
|
+
), a` <div class="${r.inspectorBreadcrumb}">${o}</div> `;
|
|
1488
1488
|
} catch {
|
|
1489
|
-
return
|
|
1489
|
+
return a``;
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function ae(t) {
|
|
1493
1493
|
try {
|
|
1494
|
-
return
|
|
1494
|
+
return a`
|
|
1495
1495
|
<div class="${r.instanceDetails}">
|
|
1496
1496
|
<div class="${r.sectionHeader}">Props</div>
|
|
1497
|
-
${
|
|
1497
|
+
${Je(t._props || {})}
|
|
1498
1498
|
|
|
1499
1499
|
<div class="${r.sectionHeader}">State</div>
|
|
1500
|
-
${
|
|
1500
|
+
${tn(t._useStates)}
|
|
1501
1501
|
|
|
1502
1502
|
<div class="${r.sectionHeader}">Atoms</div>
|
|
1503
|
-
${
|
|
1503
|
+
${Ze(t.cleanups)}
|
|
1504
1504
|
|
|
1505
1505
|
<div class="${r.sectionHeader}">Scopes</div>
|
|
1506
|
-
${
|
|
1506
|
+
${Ke(t.scopes)}
|
|
1507
1507
|
</div>
|
|
1508
1508
|
`;
|
|
1509
1509
|
} catch {
|
|
1510
|
-
return
|
|
1510
|
+
return a``;
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Ut() {
|
|
1514
1514
|
try {
|
|
1515
|
-
return
|
|
1515
|
+
return a`
|
|
1516
1516
|
<div class="${r.inspector}">
|
|
1517
1517
|
<div class="${r.empty}">Select a component to inspect</div>
|
|
1518
1518
|
</div>
|
|
1519
1519
|
`;
|
|
1520
1520
|
} catch {
|
|
1521
|
-
return
|
|
1521
|
+
return a``;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Xt(t) {
|
|
1525
1525
|
try {
|
|
1526
|
-
const e = tt(t), n = t.componentId, o = Z(t), i =
|
|
1527
|
-
return
|
|
1526
|
+
const e = tt(t), n = t.componentId, o = Z(t), i = $t(t);
|
|
1527
|
+
return a`
|
|
1528
1528
|
<div class="${r.inspector}">
|
|
1529
|
-
${
|
|
1529
|
+
${ce(t)}
|
|
1530
1530
|
<div class="${r.inspectorTitle}">
|
|
1531
1531
|
<span>${e}</span>
|
|
1532
1532
|
<span class="${r.instanceCount}">
|
|
@@ -1537,7 +1537,7 @@ function Yt(t) {
|
|
|
1537
1537
|
style="opacity: 1;"
|
|
1538
1538
|
@click=${(c) => {
|
|
1539
1539
|
try {
|
|
1540
|
-
|
|
1540
|
+
rn(c, t);
|
|
1541
1541
|
} catch {
|
|
1542
1542
|
}
|
|
1543
1543
|
}}
|
|
@@ -1560,17 +1560,17 @@ function Yt(t) {
|
|
|
1560
1560
|
</button>
|
|
1561
1561
|
</div>
|
|
1562
1562
|
|
|
1563
|
-
${
|
|
1563
|
+
${ie(t)} ${ae(t)}
|
|
1564
1564
|
</div>
|
|
1565
1565
|
`;
|
|
1566
1566
|
} catch {
|
|
1567
|
-
return
|
|
1567
|
+
return a``;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function cn(t, e, n, o) {
|
|
1571
1571
|
try {
|
|
1572
1572
|
const { name: i, instances: c } = t;
|
|
1573
|
-
return
|
|
1573
|
+
return a`
|
|
1574
1574
|
<div class="${r.inspector}">
|
|
1575
1575
|
<div class="${r.inspectorTitle}">
|
|
1576
1576
|
<span>${i}</span>
|
|
@@ -1582,13 +1582,13 @@ function rn(t, e, n, o) {
|
|
|
1582
1582
|
<ul class="${r.instanceList}">
|
|
1583
1583
|
${T(
|
|
1584
1584
|
c,
|
|
1585
|
-
(
|
|
1586
|
-
(
|
|
1587
|
-
const d =
|
|
1588
|
-
return
|
|
1585
|
+
(s) => s.componentId,
|
|
1586
|
+
(s) => {
|
|
1587
|
+
const d = s.componentId, l = Z(s), u = $t(s), y = e === d;
|
|
1588
|
+
return a`
|
|
1589
1589
|
<li class="${r.instanceGroup}">
|
|
1590
1590
|
<div
|
|
1591
|
-
class="${r.instanceItem} ${y ?
|
|
1591
|
+
class="${r.instanceItem} ${y ? Fe : ""}"
|
|
1592
1592
|
@click=${() => {
|
|
1593
1593
|
try {
|
|
1594
1594
|
n(d);
|
|
@@ -1611,7 +1611,7 @@ function rn(t, e, n, o) {
|
|
|
1611
1611
|
class="${r.componentHighlightBtn}"
|
|
1612
1612
|
@click=${(g) => {
|
|
1613
1613
|
try {
|
|
1614
|
-
g.stopPropagation(), o(
|
|
1614
|
+
g.stopPropagation(), o(s);
|
|
1615
1615
|
} catch {
|
|
1616
1616
|
}
|
|
1617
1617
|
}}
|
|
@@ -1633,9 +1633,9 @@ function rn(t, e, n, o) {
|
|
|
1633
1633
|
</svg>
|
|
1634
1634
|
</button>
|
|
1635
1635
|
</div>
|
|
1636
|
-
${y ?
|
|
1637
|
-
${
|
|
1638
|
-
${
|
|
1636
|
+
${y ? a`
|
|
1637
|
+
${ce(s)} ${ie(s)}
|
|
1638
|
+
${ae(s)}
|
|
1639
1639
|
` : k}
|
|
1640
1640
|
</li>
|
|
1641
1641
|
`;
|
|
@@ -1645,27 +1645,27 @@ function rn(t, e, n, o) {
|
|
|
1645
1645
|
</div>
|
|
1646
1646
|
`;
|
|
1647
1647
|
} catch {
|
|
1648
|
-
return
|
|
1648
|
+
return a``;
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function qt(t) {
|
|
1652
1652
|
try {
|
|
1653
1653
|
if ("selectedComponent" in t && t.selectedComponent !== void 0)
|
|
1654
|
-
return t.selectedComponent ?
|
|
1654
|
+
return t.selectedComponent ? Xt(t.selectedComponent) : Ut();
|
|
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 ? Xt(e.instances[0]) : cn(
|
|
1657
1657
|
e,
|
|
1658
1658
|
n,
|
|
1659
1659
|
o,
|
|
1660
1660
|
i
|
|
1661
|
-
) :
|
|
1661
|
+
) : Ut();
|
|
1662
1662
|
} catch {
|
|
1663
|
-
return
|
|
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 = Kt(0);
|
|
1669
1669
|
ft.skipDevToolsLog = !0;
|
|
1670
1670
|
function A() {
|
|
1671
1671
|
try {
|
|
@@ -1681,41 +1681,41 @@ function U(t) {
|
|
|
1681
1681
|
pt = !1;
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function an() {
|
|
1685
1685
|
try {
|
|
1686
1686
|
if (ut) return;
|
|
1687
1687
|
ut = !0, V = window.setTimeout, W = window.setInterval, G = window.clearTimeout, Y = window.clearInterval;
|
|
1688
1688
|
const t = V, e = W, n = G, o = Y;
|
|
1689
|
-
window.setTimeout = function(c,
|
|
1689
|
+
window.setTimeout = function(c, s, ...d) {
|
|
1690
1690
|
let l;
|
|
1691
1691
|
try {
|
|
1692
1692
|
if (typeof c != "function")
|
|
1693
|
-
return l = t(c,
|
|
1693
|
+
return l = t(c, s, ...d), l;
|
|
1694
1694
|
const u = c;
|
|
1695
1695
|
l = t(function(...g) {
|
|
1696
1696
|
try {
|
|
1697
1697
|
return I.delete(l) && A(), u.apply(this, g.length ? g : d);
|
|
1698
1698
|
} catch {
|
|
1699
1699
|
}
|
|
1700
|
-
},
|
|
1700
|
+
}, s, ...d), pt || (I.add(l), A());
|
|
1701
1701
|
} catch {
|
|
1702
|
-
l = t(c,
|
|
1702
|
+
l = t(c, s, ...d);
|
|
1703
1703
|
}
|
|
1704
1704
|
return l;
|
|
1705
|
-
}, window.setInterval = function(c,
|
|
1705
|
+
}, window.setInterval = function(c, s, ...d) {
|
|
1706
1706
|
let l;
|
|
1707
1707
|
try {
|
|
1708
1708
|
if (typeof c != "function")
|
|
1709
|
-
return l = e(c,
|
|
1709
|
+
return l = e(c, s, ...d), l;
|
|
1710
1710
|
const u = c;
|
|
1711
1711
|
l = e(function(...g) {
|
|
1712
1712
|
try {
|
|
1713
1713
|
return u.apply(this, g.length ? g : d);
|
|
1714
1714
|
} catch {
|
|
1715
1715
|
}
|
|
1716
|
-
},
|
|
1716
|
+
}, s, ...d), pt || (I.add(l), A());
|
|
1717
1717
|
} catch {
|
|
1718
|
-
l = e(c,
|
|
1718
|
+
l = e(c, s, ...d);
|
|
1719
1719
|
}
|
|
1720
1720
|
return l;
|
|
1721
1721
|
}, window.clearTimeout = function(c) {
|
|
@@ -1734,49 +1734,49 @@ function on() {
|
|
|
1734
1734
|
} catch {
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function sn() {
|
|
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 St = /* @__PURE__ */ new WeakMap();
|
|
1745
|
+
let ln = 0;
|
|
1746
|
+
function dn(t) {
|
|
1747
|
+
return St.has(t) || St.set(t, `mdt-hl-${++ln}`), St.get(t);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function se(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 = dn(e);
|
|
1754
1754
|
return i && U(
|
|
1755
1755
|
() => setTimeout(() => {
|
|
1756
1756
|
try {
|
|
1757
|
-
const
|
|
1758
|
-
if (!
|
|
1759
|
-
|
|
1757
|
+
const s = document.getElementById(c);
|
|
1758
|
+
if (!s) return;
|
|
1759
|
+
s.classList.remove("mdt-highlight-flash"), s.offsetWidth, s.classList.add("mdt-highlight-flash"), setTimeout(() => {
|
|
1760
1760
|
try {
|
|
1761
|
-
|
|
1761
|
+
s.classList.remove("mdt-highlight-flash");
|
|
1762
1762
|
} catch {
|
|
1763
1763
|
}
|
|
1764
1764
|
}, 600);
|
|
1765
1765
|
} catch {
|
|
1766
1766
|
}
|
|
1767
1767
|
}, 0)
|
|
1768
|
-
),
|
|
1768
|
+
), a`<span id="${c}" class="mdt-highlight">${t}</span>`;
|
|
1769
1769
|
} catch {
|
|
1770
|
-
return
|
|
1770
|
+
return a``;
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
const
|
|
1774
|
-
let
|
|
1775
|
-
function
|
|
1773
|
+
const un = /* @__PURE__ */ new WeakMap();
|
|
1774
|
+
let Ct = "";
|
|
1775
|
+
function pn(t) {
|
|
1776
1776
|
try {
|
|
1777
1777
|
let e = 0;
|
|
1778
1778
|
for (const n of t.instances) {
|
|
1779
|
-
const o =
|
|
1779
|
+
const o = $t(n);
|
|
1780
1780
|
o > e && (e = o);
|
|
1781
1781
|
}
|
|
1782
1782
|
return e;
|
|
@@ -1784,7 +1784,7 @@ function dn(t) {
|
|
|
1784
1784
|
return 0;
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function Tt(t) {
|
|
1788
1788
|
try {
|
|
1789
1789
|
let e = 1 / 0;
|
|
1790
1790
|
for (const n of t.instances) {
|
|
@@ -1796,7 +1796,7 @@ function St(t) {
|
|
|
1796
1796
|
return 0;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1799
|
+
function fn({
|
|
1800
1800
|
groups: t,
|
|
1801
1801
|
selectedViewFn: e,
|
|
1802
1802
|
onSelectGroup: n,
|
|
@@ -1804,38 +1804,38 @@ function un({
|
|
|
1804
1804
|
renderCallback: i
|
|
1805
1805
|
}) {
|
|
1806
1806
|
try {
|
|
1807
|
-
const c =
|
|
1808
|
-
const g =
|
|
1809
|
-
return g -
|
|
1807
|
+
const c = Ct.trim().toLowerCase(), d = [...c ? t.filter((u) => u.name.toLowerCase().includes(c)) : t].sort((u, y) => {
|
|
1808
|
+
const g = Tt(u), x = Tt(y);
|
|
1809
|
+
return g - x || u.name.localeCompare(y.name);
|
|
1810
1810
|
}), l = (u) => {
|
|
1811
1811
|
try {
|
|
1812
|
-
|
|
1812
|
+
Ct = u.target.value, i();
|
|
1813
1813
|
} catch {
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
return
|
|
1816
|
+
return a`
|
|
1817
1817
|
<div class="${r.content}">
|
|
1818
1818
|
<div style="padding: 0 0 6px 0; flex-shrink: 0;">
|
|
1819
1819
|
<input
|
|
1820
1820
|
class="${r.componentSearch}"
|
|
1821
1821
|
type="text"
|
|
1822
1822
|
placeholder="Search components…"
|
|
1823
|
-
.value=${
|
|
1823
|
+
.value=${Ct}
|
|
1824
1824
|
@input=${l}
|
|
1825
1825
|
/>
|
|
1826
1826
|
</div>
|
|
1827
|
-
${d.length === 0 ?
|
|
1827
|
+
${d.length === 0 ? a`<div class="${r.empty}">
|
|
1828
1828
|
${c ? "No matching components" : "No components mounted"}
|
|
1829
|
-
</div>` :
|
|
1829
|
+
</div>` : a`
|
|
1830
1830
|
<ul class="${r.componentList}">
|
|
1831
1831
|
${T(
|
|
1832
1832
|
d,
|
|
1833
1833
|
(u) => u.viewFn,
|
|
1834
1834
|
(u) => {
|
|
1835
|
-
const y =
|
|
1836
|
-
return
|
|
1835
|
+
const y = pn(u), g = e === u.viewFn, x = Tt(u), rt = u.instances.length, jt = u.instances[0];
|
|
1836
|
+
return a`
|
|
1837
1837
|
<li
|
|
1838
|
-
class="${r.componentItem} ${g ?
|
|
1838
|
+
class="${r.componentItem} ${g ? te : ""}"
|
|
1839
1839
|
@click=${() => {
|
|
1840
1840
|
try {
|
|
1841
1841
|
n(u.viewFn);
|
|
@@ -1843,27 +1843,27 @@ function un({
|
|
|
1843
1843
|
}
|
|
1844
1844
|
}}
|
|
1845
1845
|
>
|
|
1846
|
-
${
|
|
1846
|
+
${se(
|
|
1847
1847
|
y,
|
|
1848
|
-
|
|
1849
|
-
|
|
1848
|
+
jt,
|
|
1849
|
+
un
|
|
1850
1850
|
)}
|
|
1851
1851
|
<span class="${r.componentName}"
|
|
1852
1852
|
>${u.name}</span
|
|
1853
1853
|
>
|
|
1854
|
-
${rt > 1 ?
|
|
1854
|
+
${rt > 1 ? a`<span
|
|
1855
1855
|
class="${r.componentCount} ${g ? r.componentCountSelected : ""}"
|
|
1856
1856
|
>×${rt}</span
|
|
1857
1857
|
>` : ""}
|
|
1858
1858
|
<span
|
|
1859
1859
|
class="${r.componentBadge} ${g ? r.componentBadgeSelected : ""}"
|
|
1860
|
-
>depth ${
|
|
1860
|
+
>depth ${x}</span
|
|
1861
1861
|
>
|
|
1862
1862
|
<button
|
|
1863
1863
|
class="${r.componentHighlightBtn} ${g ? r.componentHighlightBtnSelected : ""}"
|
|
1864
|
-
@click=${(
|
|
1864
|
+
@click=${(Vt) => {
|
|
1865
1865
|
try {
|
|
1866
|
-
|
|
1866
|
+
Vt.stopPropagation(), o(jt);
|
|
1867
1867
|
} catch {
|
|
1868
1868
|
}
|
|
1869
1869
|
}}
|
|
@@ -1895,11 +1895,11 @@ function un({
|
|
|
1895
1895
|
</div>
|
|
1896
1896
|
`;
|
|
1897
1897
|
} catch {
|
|
1898
|
-
return
|
|
1898
|
+
return a``;
|
|
1899
1899
|
}
|
|
1900
1900
|
}
|
|
1901
|
-
const
|
|
1902
|
-
function
|
|
1901
|
+
const hn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakSet();
|
|
1902
|
+
function gn(t) {
|
|
1903
1903
|
try {
|
|
1904
1904
|
const e = new Set(t), n = /* @__PURE__ */ new Map();
|
|
1905
1905
|
for (const c of t)
|
|
@@ -1912,21 +1912,21 @@ function fn(t) {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
const o = [];
|
|
1914
1914
|
for (const c of t) {
|
|
1915
|
-
const
|
|
1915
|
+
const s = n.get(c), d = It(c);
|
|
1916
1916
|
if (d && e.has(d)) {
|
|
1917
1917
|
const l = n.get(d);
|
|
1918
1918
|
if (l) {
|
|
1919
|
-
l.children.push(
|
|
1919
|
+
l.children.push(s);
|
|
1920
1920
|
continue;
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
o.push(
|
|
1923
|
+
o.push(s);
|
|
1924
1924
|
}
|
|
1925
1925
|
const i = (c) => {
|
|
1926
1926
|
try {
|
|
1927
|
-
c.sort((
|
|
1928
|
-
for (const
|
|
1929
|
-
i(
|
|
1927
|
+
c.sort((s, d) => s.depth - d.depth || s.name.localeCompare(d.name));
|
|
1928
|
+
for (const s of c)
|
|
1929
|
+
i(s.children);
|
|
1930
1930
|
} catch {
|
|
1931
1931
|
}
|
|
1932
1932
|
};
|
|
@@ -1935,11 +1935,11 @@ function fn(t) {
|
|
|
1935
1935
|
return [];
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function le(t, e, n, o, i) {
|
|
1939
1939
|
try {
|
|
1940
|
-
const c = t.children.length > 0,
|
|
1940
|
+
const c = t.children.length > 0, s = Mt.has(t.component), d = $t(t.component), l = e === t.id, u = t.depth * 16, y = (x) => {
|
|
1941
1941
|
try {
|
|
1942
|
-
|
|
1942
|
+
x.stopPropagation(), s ? Mt.delete(t.component) : Mt.add(t.component), i();
|
|
1943
1943
|
} catch {
|
|
1944
1944
|
}
|
|
1945
1945
|
}, g = () => {
|
|
@@ -1948,25 +1948,25 @@ function ce(t, e, n, o, i) {
|
|
|
1948
1948
|
} catch {
|
|
1949
1949
|
}
|
|
1950
1950
|
};
|
|
1951
|
-
return
|
|
1951
|
+
return a`
|
|
1952
1952
|
<li
|
|
1953
|
-
class="${r.componentItem} ${l ?
|
|
1953
|
+
class="${r.componentItem} ${l ? te : ""}"
|
|
1954
1954
|
style="margin-left: ${u}px;"
|
|
1955
1955
|
@click=${g}
|
|
1956
1956
|
>
|
|
1957
|
-
${c ?
|
|
1958
|
-
>${
|
|
1959
|
-
>` :
|
|
1960
|
-
${
|
|
1957
|
+
${c ? a`<span class="${r.treeToggle}" @click=${y}
|
|
1958
|
+
>${s ? "▶" : "▼"}</span
|
|
1959
|
+
>` : a`<span class="${r.treeLeaf}">·</span>`}
|
|
1960
|
+
${se(d, t.component, hn)}
|
|
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=${(x) => {
|
|
1968
1968
|
try {
|
|
1969
|
-
|
|
1969
|
+
x.stopPropagation(), o(t.component);
|
|
1970
1970
|
} catch {
|
|
1971
1971
|
}
|
|
1972
1972
|
}}
|
|
@@ -1990,11 +1990,11 @@ function ce(t, e, n, o, i) {
|
|
|
1990
1990
|
</svg>
|
|
1991
1991
|
</button>
|
|
1992
1992
|
</li>
|
|
1993
|
-
${c && !
|
|
1993
|
+
${c && !s ? T(
|
|
1994
1994
|
t.children,
|
|
1995
|
-
(
|
|
1996
|
-
(
|
|
1997
|
-
|
|
1995
|
+
(x) => x.component,
|
|
1996
|
+
(x) => le(
|
|
1997
|
+
x,
|
|
1998
1998
|
e,
|
|
1999
1999
|
n,
|
|
2000
2000
|
o,
|
|
@@ -2003,26 +2003,26 @@ function ce(t, e, n, o, i) {
|
|
|
2003
2003
|
) : k}
|
|
2004
2004
|
`;
|
|
2005
2005
|
} catch {
|
|
2006
|
-
return
|
|
2006
|
+
return a``;
|
|
2007
2007
|
}
|
|
2008
2008
|
}
|
|
2009
|
-
function
|
|
2009
|
+
function mn({
|
|
2010
2010
|
selectedComponentId: t,
|
|
2011
2011
|
onSelectComponent: e,
|
|
2012
2012
|
onHighlight: n,
|
|
2013
2013
|
renderCallback: o
|
|
2014
2014
|
}) {
|
|
2015
2015
|
try {
|
|
2016
|
-
const i =
|
|
2017
|
-
return
|
|
2016
|
+
const i = ee(), c = gn(i);
|
|
2017
|
+
return a`
|
|
2018
2018
|
<div class="${r.content}">
|
|
2019
|
-
${c.length === 0 ?
|
|
2019
|
+
${c.length === 0 ? a`<div class="${r.empty}">No components mounted</div>` : a`
|
|
2020
2020
|
<ul class="${r.componentList}">
|
|
2021
2021
|
${T(
|
|
2022
2022
|
c,
|
|
2023
|
-
(
|
|
2024
|
-
(
|
|
2025
|
-
|
|
2023
|
+
(s) => s.component,
|
|
2024
|
+
(s) => le(
|
|
2025
|
+
s,
|
|
2026
2026
|
t,
|
|
2027
2027
|
e,
|
|
2028
2028
|
n,
|
|
@@ -2034,23 +2034,23 @@ function hn({
|
|
|
2034
2034
|
</div>
|
|
2035
2035
|
`;
|
|
2036
2036
|
} catch {
|
|
2037
|
-
return
|
|
2037
|
+
return a``;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const de = () => (Qt(() => {
|
|
2041
2041
|
try {
|
|
2042
2042
|
console.log(ft());
|
|
2043
2043
|
} catch {
|
|
2044
2044
|
}
|
|
2045
2045
|
}), () => {
|
|
2046
2046
|
try {
|
|
2047
|
-
return
|
|
2047
|
+
return a`Active Timers (${ft()})`;
|
|
2048
2048
|
} catch {
|
|
2049
|
-
return
|
|
2049
|
+
return a``;
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
2052
|
-
|
|
2053
|
-
function
|
|
2052
|
+
de.skipDevToolsRender = !0;
|
|
2053
|
+
function bn({
|
|
2054
2054
|
activeTab: t,
|
|
2055
2055
|
onTabChange: e,
|
|
2056
2056
|
onMinimise: n,
|
|
@@ -2058,7 +2058,7 @@ function gn({
|
|
|
2058
2058
|
unreadLogCount: i
|
|
2059
2059
|
}) {
|
|
2060
2060
|
try {
|
|
2061
|
-
return
|
|
2061
|
+
return a`
|
|
2062
2062
|
<div class="${r.header}">
|
|
2063
2063
|
<div class="${r.headerLeft}">
|
|
2064
2064
|
<div class="${r.title}">🔧 Mates DevTools</div>
|
|
@@ -2084,7 +2084,7 @@ function gn({
|
|
|
2084
2084
|
}}
|
|
2085
2085
|
>
|
|
2086
2086
|
Logs
|
|
2087
|
-
${i > 0 ?
|
|
2087
|
+
${i > 0 ? a`<span class="${r.tabBadge}"
|
|
2088
2088
|
>${i > 99 ? "99+" : i}</span
|
|
2089
2089
|
>` : ""}
|
|
2090
2090
|
</button>
|
|
@@ -2102,7 +2102,7 @@ function gn({
|
|
|
2102
2102
|
</nav>
|
|
2103
2103
|
</div>
|
|
2104
2104
|
<div>
|
|
2105
|
-
<button style="margin-left: 10px">${
|
|
2105
|
+
<button style="margin-left: 10px">${Ee(de)}</button>
|
|
2106
2106
|
</div>
|
|
2107
2107
|
<div class="${r.controls}">
|
|
2108
2108
|
<button
|
|
@@ -2133,11 +2133,11 @@ function gn({
|
|
|
2133
2133
|
</div>
|
|
2134
2134
|
`;
|
|
2135
2135
|
} catch {
|
|
2136
|
-
return
|
|
2136
|
+
return a``;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
let it = null;
|
|
2140
|
-
function
|
|
2140
|
+
function yn(t) {
|
|
2141
2141
|
try {
|
|
2142
2142
|
return it = t, () => {
|
|
2143
2143
|
it === t && (it = null);
|
|
@@ -2147,28 +2147,28 @@ function mn(t) {
|
|
|
2147
2147
|
return () => {
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
|
-
let
|
|
2151
|
-
function
|
|
2152
|
-
|
|
2150
|
+
let $ = !1;
|
|
2151
|
+
function xn() {
|
|
2152
|
+
$ = !0;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
|
|
2154
|
+
function vn() {
|
|
2155
|
+
$ = !1;
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2158
|
-
return
|
|
2157
|
+
function Mr() {
|
|
2158
|
+
return $;
|
|
2159
2159
|
}
|
|
2160
|
-
const
|
|
2161
|
-
let
|
|
2162
|
-
const
|
|
2160
|
+
const $n = 100, R = [];
|
|
2161
|
+
let ue = 1, wt = 0;
|
|
2162
|
+
const pe = /* @__PURE__ */ new Set(["devtools", "DOMReady", "Paint"]);
|
|
2163
2163
|
function S(t, e, n) {
|
|
2164
2164
|
try {
|
|
2165
|
-
R.length >=
|
|
2166
|
-
id:
|
|
2165
|
+
R.length >= $n && R.shift(), R.push({
|
|
2166
|
+
id: ue++,
|
|
2167
2167
|
ts: performance.now(),
|
|
2168
2168
|
category: t,
|
|
2169
2169
|
label: e,
|
|
2170
2170
|
detail: n
|
|
2171
|
-
}),
|
|
2171
|
+
}), wt++;
|
|
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 Pt(t) {
|
|
2180
2180
|
try {
|
|
2181
2181
|
if (t === void 0) return "undefined";
|
|
2182
2182
|
if (t === null) return "null";
|
|
@@ -2191,70 +2191,70 @@ function Rt(t) {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
return "";
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function _n() {
|
|
2195
2195
|
return R;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Ir() {
|
|
2198
2198
|
return R.length;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return
|
|
2200
|
+
function wn() {
|
|
2201
|
+
return wt;
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function kn() {
|
|
2204
2204
|
try {
|
|
2205
|
-
|
|
2205
|
+
wt = 0;
|
|
2206
2206
|
} catch {
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function Sn() {
|
|
2210
2210
|
try {
|
|
2211
|
-
R.length = 0,
|
|
2211
|
+
R.length = 0, wt = 0, ue = 1;
|
|
2212
2212
|
} catch {
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Cn(t) {
|
|
2216
2216
|
try {
|
|
2217
|
-
if (
|
|
2217
|
+
if (!$) return;
|
|
2218
2218
|
S("mount", t, "mounted");
|
|
2219
2219
|
} catch {
|
|
2220
2220
|
}
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function Tn(t, e) {
|
|
2223
2223
|
try {
|
|
2224
|
-
if (
|
|
2224
|
+
if (!$) return;
|
|
2225
2225
|
S("update", t, `updated (${e.toFixed(2)}ms)`);
|
|
2226
2226
|
} catch {
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Mn(t) {
|
|
2230
2230
|
try {
|
|
2231
|
-
if (
|
|
2231
|
+
if (!$) return;
|
|
2232
2232
|
S("cleanup", t, "cleaned up");
|
|
2233
2233
|
} catch {
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function In(t, e) {
|
|
2237
2237
|
try {
|
|
2238
|
-
if (
|
|
2239
|
-
S("setter", t,
|
|
2238
|
+
if (!$) return;
|
|
2239
|
+
S("setter", t, Pt(e));
|
|
2240
2240
|
} catch {
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Bn(t) {
|
|
2244
2244
|
try {
|
|
2245
|
-
if (
|
|
2245
|
+
if (!$) return;
|
|
2246
2246
|
S("action", t);
|
|
2247
2247
|
} catch {
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function Ln(t, e) {
|
|
2251
2251
|
try {
|
|
2252
|
-
if (
|
|
2253
|
-
S("event", t, e !== void 0 ?
|
|
2252
|
+
if (!$ || pe.has(t)) return;
|
|
2253
|
+
S("event", t, e !== void 0 ? Pt(e) : void 0);
|
|
2254
2254
|
} catch {
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
|
-
const
|
|
2257
|
+
const Ht = 80, fe = 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 En(t, e, n) {
|
|
2266
2266
|
try {
|
|
2267
|
-
if (
|
|
2267
|
+
if (!$) return;
|
|
2268
2268
|
const o = n ? `pending · ${F(n, 50)}` : "pending";
|
|
2269
|
-
S("fetch", F(`${t} ${e}`,
|
|
2269
|
+
S("fetch", F(`${t} ${e}`, Ht), o);
|
|
2270
2270
|
} catch {
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function he(t, e, n, o) {
|
|
2274
2274
|
try {
|
|
2275
|
-
if (
|
|
2275
|
+
if (!$) return;
|
|
2276
2276
|
S(
|
|
2277
2277
|
"fetch",
|
|
2278
|
-
F(`${t} ${e}`,
|
|
2279
|
-
F(`${n} · ${o.toFixed(0)}ms`,
|
|
2278
|
+
F(`${t} ${e}`, Ht),
|
|
2279
|
+
F(`${n} · ${o.toFixed(0)}ms`, fe)
|
|
2280
2280
|
);
|
|
2281
2281
|
} catch {
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function ge(t, e, n, o) {
|
|
2285
2285
|
try {
|
|
2286
|
-
if (
|
|
2286
|
+
if (!$) return;
|
|
2287
2287
|
S(
|
|
2288
2288
|
"fetch",
|
|
2289
|
-
F(`${t} ${e}`,
|
|
2289
|
+
F(`${t} ${e}`, Ht),
|
|
2290
2290
|
F(
|
|
2291
2291
|
`error · ${o.toFixed(0)}ms · ${n}`,
|
|
2292
|
-
|
|
2292
|
+
fe
|
|
2293
2293
|
)
|
|
2294
2294
|
);
|
|
2295
2295
|
} catch {
|
|
2296
2296
|
}
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function An(t, e) {
|
|
2299
2299
|
try {
|
|
2300
|
-
if (
|
|
2300
|
+
if (!$ || pe.has(t)) return;
|
|
2301
2301
|
S(
|
|
2302
2302
|
"event",
|
|
2303
2303
|
`${t} (cleanup)`,
|
|
2304
|
-
e !== void 0 ?
|
|
2304
|
+
e !== void 0 ? Pt(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
|
+
}, Rn = {
|
|
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 zn = {
|
|
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 Pn(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 Rn(t) {
|
|
|
2338
2338
|
return "";
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function Hn() {
|
|
2342
2342
|
try {
|
|
2343
|
-
const t =
|
|
2343
|
+
const t = _n(), e = zn[_];
|
|
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 zn() {
|
|
|
2348
2348
|
return [];
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Fn({ onClear: t, renderCallback: e }) {
|
|
2352
2352
|
try {
|
|
2353
|
-
|
|
2354
|
-
const n =
|
|
2355
|
-
return
|
|
2353
|
+
kn();
|
|
2354
|
+
const n = Hn();
|
|
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 Pn({ 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 Pn({ 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 Pn({ 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 Pn({ onClear: t, renderCallback: e }) {
|
|
|
2410
2410
|
class="${r.button}"
|
|
2411
2411
|
@click=${() => {
|
|
2412
2412
|
try {
|
|
2413
|
-
|
|
2413
|
+
Sn(), t();
|
|
2414
2414
|
} catch {
|
|
2415
2415
|
}
|
|
2416
2416
|
}}
|
|
@@ -2422,21 +2422,21 @@ function Pn({ onClear: t, renderCallback: e }) {
|
|
|
2422
2422
|
</div>
|
|
2423
2423
|
|
|
2424
2424
|
<div class="${r.logsContainer}">
|
|
2425
|
-
${n.length === 0 ?
|
|
2425
|
+
${n.length === 0 ? a`<div class="${r.empty}">
|
|
2426
2426
|
No logs yet. Interact with the app to see activity.
|
|
2427
2427
|
</div>` : T(
|
|
2428
2428
|
n,
|
|
2429
2429
|
(o) => o.id,
|
|
2430
|
-
(o) =>
|
|
2430
|
+
(o) => a`
|
|
2431
2431
|
<div class="${r.logEntry}">
|
|
2432
|
-
<span class="${r.logTs}">${
|
|
2432
|
+
<span class="${r.logTs}">${Pn(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
|
+
>${Rn[o.category]}</span
|
|
2437
2437
|
>
|
|
2438
2438
|
<span class="${r.logLabel}">${o.label}</span>
|
|
2439
|
-
${o.detail ?
|
|
2439
|
+
${o.detail ? a`<span class="${r.logDetail}"
|
|
2440
2440
|
>${o.detail}</span
|
|
2441
2441
|
>` : k}
|
|
2442
2442
|
</div>
|
|
@@ -2446,28 +2446,28 @@ function Pn({ onClear: t, renderCallback: e }) {
|
|
|
2446
2446
|
</div>
|
|
2447
2447
|
`;
|
|
2448
2448
|
} catch {
|
|
2449
|
-
return
|
|
2449
|
+
return a``;
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
let et = !1;
|
|
2453
|
-
function
|
|
2453
|
+
function On() {
|
|
2454
2454
|
try {
|
|
2455
2455
|
et = !0;
|
|
2456
2456
|
} catch {
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function Dn() {
|
|
2460
2460
|
try {
|
|
2461
2461
|
et = !1;
|
|
2462
2462
|
} catch {
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Br() {
|
|
2466
2466
|
return et;
|
|
2467
2467
|
}
|
|
2468
|
-
const
|
|
2469
|
-
let
|
|
2470
|
-
function
|
|
2468
|
+
const Nn = 100, Q = /* @__PURE__ */ new Map();
|
|
2469
|
+
let me = 1, ct = null;
|
|
2470
|
+
function jn(t) {
|
|
2471
2471
|
try {
|
|
2472
2472
|
return ct = t, () => {
|
|
2473
2473
|
try {
|
|
@@ -2480,18 +2480,18 @@ function Dn(t) {
|
|
|
2480
2480
|
return () => {
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function be(t, e, n) {
|
|
2484
2484
|
try {
|
|
2485
2485
|
if (!et) return;
|
|
2486
2486
|
const o = {
|
|
2487
|
-
id:
|
|
2487
|
+
id: me++,
|
|
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 >= Nn && i.shift(), i.push(o);
|
|
2495
2495
|
try {
|
|
2496
2496
|
ct?.();
|
|
2497
2497
|
} catch {
|
|
@@ -2499,25 +2499,25 @@ function he(t, e, n) {
|
|
|
2499
2499
|
} catch {
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function Lr(t, e) {
|
|
2503
2503
|
try {
|
|
2504
|
-
if (!et) return
|
|
2504
|
+
if (!et) return Jt;
|
|
2505
2505
|
const n = performance.now();
|
|
2506
|
-
return () =>
|
|
2506
|
+
return () => be(t, e, performance.now() - n);
|
|
2507
2507
|
} catch {
|
|
2508
2508
|
}
|
|
2509
|
-
return
|
|
2509
|
+
return Jt;
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Jt() {
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Vn() {
|
|
2514
2514
|
try {
|
|
2515
2515
|
const t = [];
|
|
2516
2516
|
for (const [e, n] of Q) {
|
|
2517
2517
|
if (n.length === 0) continue;
|
|
2518
2518
|
let o = 0, i = 0, c = 1 / 0;
|
|
2519
|
-
for (const
|
|
2520
|
-
o +=
|
|
2519
|
+
for (const s of n)
|
|
2520
|
+
o += s.durationMs, s.durationMs > i && (i = s.durationMs), s.durationMs < c && (c = s.durationMs);
|
|
2521
2521
|
t.push({
|
|
2522
2522
|
name: e,
|
|
2523
2523
|
renderCount: n.length,
|
|
@@ -2534,7 +2534,7 @@ function Nn() {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
return [];
|
|
2536
2536
|
}
|
|
2537
|
-
function
|
|
2537
|
+
function ye() {
|
|
2538
2538
|
try {
|
|
2539
2539
|
const t = [];
|
|
2540
2540
|
for (const e of Q.values())
|
|
@@ -2544,29 +2544,29 @@ function ge() {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
return [];
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function Er(t = 50) {
|
|
2548
2548
|
try {
|
|
2549
|
-
const e =
|
|
2549
|
+
const e = ye();
|
|
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 Wn(t = 20) {
|
|
2556
2556
|
try {
|
|
2557
|
-
const e =
|
|
2557
|
+
const e = ye();
|
|
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 Gn() {
|
|
2564
2564
|
try {
|
|
2565
|
-
Q.clear(),
|
|
2565
|
+
Q.clear(), me = 1;
|
|
2566
2566
|
} catch {
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
|
-
|
|
2569
|
+
Kt(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 xe(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 ve(t) {
|
|
2585
2585
|
try {
|
|
2586
2586
|
return t < 16 ? "#66bb6a" : t <= 20 ? "#ffb74d" : "#ef5350";
|
|
2587
2587
|
} catch {
|
|
@@ -2589,14 +2589,14 @@ function ye(t) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
let N = "summary";
|
|
2592
|
-
function
|
|
2592
|
+
function Yn(t) {
|
|
2593
2593
|
try {
|
|
2594
2594
|
if (t.length === 0)
|
|
2595
|
-
return
|
|
2595
|
+
return a`<div class="${r.empty}">
|
|
2596
2596
|
No render data yet. Interact with the app to see component performance.
|
|
2597
2597
|
</div>`;
|
|
2598
2598
|
const e = Math.max(...t.map((n) => n.totalMs));
|
|
2599
|
-
return
|
|
2599
|
+
return a`
|
|
2600
2600
|
<table class="${r.perfTable}">
|
|
2601
2601
|
<thead>
|
|
2602
2602
|
<tr>
|
|
@@ -2613,8 +2613,8 @@ function Wn(t) {
|
|
|
2613
2613
|
t,
|
|
2614
2614
|
(n) => n.name,
|
|
2615
2615
|
(n) => {
|
|
2616
|
-
const o =
|
|
2617
|
-
return
|
|
2616
|
+
const o = ve(n.lastMs);
|
|
2617
|
+
return a`
|
|
2618
2618
|
<tr class="${r.perfRow}">
|
|
2619
2619
|
<td class="${r.perfCell} ${r.perfName}">
|
|
2620
2620
|
${n.name}
|
|
@@ -2635,7 +2635,7 @@ function Wn(t) {
|
|
|
2635
2635
|
<div class="${r.perfBarWrap}">
|
|
2636
2636
|
<div
|
|
2637
2637
|
class="${r.perfBar}"
|
|
2638
|
-
style="width: ${
|
|
2638
|
+
style="width: ${xe(
|
|
2639
2639
|
n.totalMs,
|
|
2640
2640
|
e
|
|
2641
2641
|
)}%; background: ${o};"
|
|
@@ -2653,17 +2653,17 @@ function Wn(t) {
|
|
|
2653
2653
|
</table>
|
|
2654
2654
|
`;
|
|
2655
2655
|
} catch {
|
|
2656
|
-
return
|
|
2656
|
+
return a``;
|
|
2657
2657
|
}
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Un(t, e) {
|
|
2660
2660
|
try {
|
|
2661
2661
|
if (t.length === 0)
|
|
2662
|
-
return
|
|
2662
|
+
return a`<div class="${r.empty}">
|
|
2663
2663
|
No render data yet. Interact with the app to see slow renders.
|
|
2664
2664
|
</div>`;
|
|
2665
2665
|
const n = Math.max(...t.map((i) => i.durationMs)), o = !!e;
|
|
2666
|
-
return
|
|
2666
|
+
return a`
|
|
2667
2667
|
<table class="${r.perfTable}">
|
|
2668
2668
|
<thead>
|
|
2669
2669
|
<tr>
|
|
@@ -2677,16 +2677,16 @@ function Gn(t, e) {
|
|
|
2677
2677
|
t,
|
|
2678
2678
|
(i) => i.id,
|
|
2679
2679
|
(i) => {
|
|
2680
|
-
const c =
|
|
2680
|
+
const c = ve(i.durationMs), s = o ? () => {
|
|
2681
2681
|
try {
|
|
2682
2682
|
e(i.instanceId);
|
|
2683
2683
|
} catch {
|
|
2684
2684
|
}
|
|
2685
2685
|
} : void 0;
|
|
2686
|
-
return
|
|
2686
|
+
return a`
|
|
2687
2687
|
<tr
|
|
2688
2688
|
class="${r.perfRow} ${o ? r.perfRowClickable : ""}"
|
|
2689
|
-
@click=${
|
|
2689
|
+
@click=${s}
|
|
2690
2690
|
title=${o ? `Go to ${i.componentName} in Components tab` : ""}
|
|
2691
2691
|
>
|
|
2692
2692
|
<td class="${r.perfCell} ${r.perfName}">
|
|
@@ -2699,7 +2699,7 @@ function Gn(t, e) {
|
|
|
2699
2699
|
<div class="${r.perfBarWrap}">
|
|
2700
2700
|
<div
|
|
2701
2701
|
class="${r.perfBar}"
|
|
2702
|
-
style="width: ${
|
|
2702
|
+
style="width: ${xe(
|
|
2703
2703
|
i.durationMs,
|
|
2704
2704
|
n
|
|
2705
2705
|
)}%; background: ${c};"
|
|
@@ -2714,17 +2714,17 @@ function Gn(t, e) {
|
|
|
2714
2714
|
</table>
|
|
2715
2715
|
`;
|
|
2716
2716
|
} catch {
|
|
2717
|
-
return
|
|
2717
|
+
return a``;
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function Xn({
|
|
2721
2721
|
onClear: t,
|
|
2722
2722
|
renderCallback: e,
|
|
2723
2723
|
onNavigateToComponent: n
|
|
2724
2724
|
}) {
|
|
2725
2725
|
try {
|
|
2726
|
-
const o =
|
|
2727
|
-
return
|
|
2726
|
+
const o = Vn(), i = Wn(30);
|
|
2727
|
+
return a`
|
|
2728
2728
|
<div class="${r.perfPanel}">
|
|
2729
2729
|
<div class="${r.perfToolbar}">
|
|
2730
2730
|
<div class="${r.perfTabs}">
|
|
@@ -2756,7 +2756,7 @@ function Yn({
|
|
|
2756
2756
|
class="${r.button}"
|
|
2757
2757
|
@click=${() => {
|
|
2758
2758
|
try {
|
|
2759
|
-
|
|
2759
|
+
Gn(), t();
|
|
2760
2760
|
} catch {
|
|
2761
2761
|
}
|
|
2762
2762
|
}}
|
|
@@ -2768,58 +2768,58 @@ function Yn({
|
|
|
2768
2768
|
</div>
|
|
2769
2769
|
|
|
2770
2770
|
<div class="${r.perfContent}">
|
|
2771
|
-
${N === "summary" ?
|
|
2771
|
+
${N === "summary" ? Yn(o) : Un(i, n ?? null)}
|
|
2772
2772
|
</div>
|
|
2773
2773
|
</div>
|
|
2774
2774
|
`;
|
|
2775
2775
|
} catch {
|
|
2776
|
-
return
|
|
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", v = null, w = null, b = null, D = [], p = null, m = null, ht = null, z = 0;
|
|
2780
|
+
const qn = 150, Jn = 0.8, Kn = 0.5;
|
|
2781
2781
|
let B = null;
|
|
2782
|
-
function
|
|
2782
|
+
function Ft() {
|
|
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 Ot() {
|
|
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 Dt = !1, $e = 0, _e = 0, gt = !1, q = null, J = null, K = null, P = null, H = null;
|
|
2797
|
+
function Qn() {
|
|
2798
2798
|
try {
|
|
2799
2799
|
H !== null && (clearTimeout(H), H = null);
|
|
2800
2800
|
} catch {
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function mt() {
|
|
2804
2804
|
try {
|
|
2805
|
-
|
|
2805
|
+
Qn(), P && (P.remove(), P = null);
|
|
2806
2806
|
} catch {
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
function
|
|
2809
|
+
function at(t) {
|
|
2810
2810
|
try {
|
|
2811
2811
|
let e = function() {
|
|
2812
2812
|
try {
|
|
2813
2813
|
const c = document.createElement("div");
|
|
2814
2814
|
c.className = r.domHighlight, document.body.appendChild(c), P = c;
|
|
2815
|
-
const
|
|
2816
|
-
i ? (c.style.position = "fixed", c.style.top = `${
|
|
2815
|
+
const s = n.getBoundingClientRect();
|
|
2816
|
+
i ? (c.style.position = "fixed", c.style.top = `${s.top}px`, c.style.left = `${s.left}px`) : (c.style.top = `${s.top + window.scrollY}px`, c.style.left = `${s.left + window.scrollX}px`), c.style.width = `${s.width}px`, c.style.height = `${s.height}px`, H = U(
|
|
2817
2817
|
() => setTimeout(() => {
|
|
2818
2818
|
try {
|
|
2819
2819
|
P === c && (c.classList.add("fade-out"), H = U(
|
|
2820
2820
|
() => setTimeout(() => {
|
|
2821
2821
|
try {
|
|
2822
|
-
P === c &&
|
|
2822
|
+
P === c && mt();
|
|
2823
2823
|
} catch {
|
|
2824
2824
|
}
|
|
2825
2825
|
}, 600)
|
|
@@ -2831,55 +2831,55 @@ function st(t) {
|
|
|
2831
2831
|
} catch {
|
|
2832
2832
|
}
|
|
2833
2833
|
};
|
|
2834
|
-
|
|
2834
|
+
mt();
|
|
2835
2835
|
const n = t.firstElementChild ?? t, o = getComputedStyle(n).position, i = o === "fixed" || o === "sticky";
|
|
2836
2836
|
if (i)
|
|
2837
2837
|
e();
|
|
2838
2838
|
else {
|
|
2839
|
-
const c = n.getBoundingClientRect(),
|
|
2840
|
-
|
|
2841
|
-
() => setTimeout(e,
|
|
2839
|
+
const c = n.getBoundingClientRect(), s = c.top >= 0 && c.bottom <= (window.innerHeight || document.documentElement.clientHeight);
|
|
2840
|
+
s || n.scrollIntoView({ behavior: "smooth", block: "center" }), H = U(
|
|
2841
|
+
() => setTimeout(e, s ? 0 : 400)
|
|
2842
2842
|
);
|
|
2843
2843
|
}
|
|
2844
2844
|
} catch {
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function we() {
|
|
2848
2848
|
try {
|
|
2849
|
-
if (
|
|
2849
|
+
if (v === 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 === v) return e;
|
|
2853
2853
|
return null;
|
|
2854
2854
|
} catch {
|
|
2855
2855
|
}
|
|
2856
2856
|
return null;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function Nt() {
|
|
2859
2859
|
try {
|
|
2860
|
-
return
|
|
2860
|
+
return w === null ? null : D.find((t) => t.viewFn === w) ?? null;
|
|
2861
2861
|
} catch {
|
|
2862
2862
|
}
|
|
2863
2863
|
return null;
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function Zn() {
|
|
2866
2866
|
try {
|
|
2867
|
-
if (
|
|
2868
|
-
const t =
|
|
2867
|
+
if (b === null) return null;
|
|
2868
|
+
const t = Nt();
|
|
2869
2869
|
return t ? t.instances.find(
|
|
2870
|
-
(e) => e.componentId ===
|
|
2870
|
+
(e) => e.componentId === b
|
|
2871
2871
|
) ?? null : null;
|
|
2872
2872
|
} catch {
|
|
2873
2873
|
}
|
|
2874
2874
|
return null;
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function kt() {
|
|
2877
2877
|
try {
|
|
2878
|
-
D =
|
|
2878
|
+
D = We(), v !== null && !we() && (v = null), w !== null && !Nt() ? (w = null, b = null) : b !== null && !Zn() && (b = null);
|
|
2879
2879
|
} catch {
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function bt() {
|
|
2883
2883
|
try {
|
|
2884
2884
|
return L && !C;
|
|
2885
2885
|
} catch {
|
|
@@ -2888,61 +2888,61 @@ function mt() {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
function nt() {
|
|
2890
2890
|
try {
|
|
2891
|
-
return
|
|
2891
|
+
return m?.querySelector(`.${r.panel}`) ?? null;
|
|
2892
2892
|
} catch {
|
|
2893
2893
|
}
|
|
2894
2894
|
return null;
|
|
2895
2895
|
}
|
|
2896
|
-
function
|
|
2896
|
+
function tr(t) {
|
|
2897
2897
|
try {
|
|
2898
|
-
|
|
2898
|
+
v = v === t ? null : t, h();
|
|
2899
2899
|
} catch {
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function er(t) {
|
|
2903
2903
|
try {
|
|
2904
|
-
|
|
2904
|
+
w === t ? (w = null, b = null) : (w = t, b = null), h();
|
|
2905
2905
|
} catch {
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function nr(t) {
|
|
2909
2909
|
try {
|
|
2910
|
-
|
|
2910
|
+
b = b === t ? null : t, h();
|
|
2911
2911
|
} catch {
|
|
2912
2912
|
}
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function rr(t) {
|
|
2915
2915
|
try {
|
|
2916
|
-
|
|
2916
|
+
v = t, X = "components", kt(), w = null, b = null;
|
|
2917
2917
|
for (const e of D) {
|
|
2918
2918
|
for (const n of e.instances)
|
|
2919
2919
|
if (n.componentId === t) {
|
|
2920
|
-
|
|
2920
|
+
w = e.viewFn, b = t;
|
|
2921
2921
|
break;
|
|
2922
2922
|
}
|
|
2923
|
-
if (
|
|
2923
|
+
if (w) break;
|
|
2924
2924
|
}
|
|
2925
2925
|
h();
|
|
2926
2926
|
} catch {
|
|
2927
2927
|
}
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function or(t) {
|
|
2930
2930
|
try {
|
|
2931
2931
|
X = t, h();
|
|
2932
2932
|
} catch {
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function ir() {
|
|
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 = ""), Ot();
|
|
2939
2939
|
} catch {
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function cr() {
|
|
2943
2943
|
try {
|
|
2944
2944
|
if (!C) return;
|
|
2945
|
-
C = !1, p && (p.style.display = "none"),
|
|
2945
|
+
C = !1, p && (p.style.display = "none"), kt(), h(), Ft(), requestAnimationFrame(() => {
|
|
2946
2946
|
try {
|
|
2947
2947
|
requestAnimationFrame(() => {
|
|
2948
2948
|
try {
|
|
@@ -2956,9 +2956,9 @@ function or() {
|
|
|
2956
2956
|
} catch {
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
function
|
|
2959
|
+
function ar() {
|
|
2960
2960
|
try {
|
|
2961
|
-
L = !1, C = !1,
|
|
2961
|
+
L = !1, C = !1, v = null, ke(), mt(), Ot();
|
|
2962
2962
|
const t = nt();
|
|
2963
2963
|
if (t) {
|
|
2964
2964
|
t.classList.remove(r.panelVisible);
|
|
@@ -2966,21 +2966,21 @@ function ir() {
|
|
|
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), Lt();
|
|
2970
2970
|
} catch {
|
|
2971
2971
|
}
|
|
2972
2972
|
};
|
|
2973
2973
|
t.addEventListener("transitionend", n, { once: !0 }), U(() => setTimeout(n, 350));
|
|
2974
2974
|
} else
|
|
2975
|
-
|
|
2975
|
+
Lt();
|
|
2976
2976
|
p && (p.style.display = "");
|
|
2977
2977
|
} catch {
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function sr() {
|
|
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 * Kn), lr(), gr(), kt(), h(), Ft(), requestAnimationFrame(() => {
|
|
2984
2984
|
try {
|
|
2985
2985
|
requestAnimationFrame(() => {
|
|
2986
2986
|
try {
|
|
@@ -2994,34 +2994,34 @@ function cr() {
|
|
|
2994
2994
|
} catch {
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function lr() {
|
|
2998
2998
|
try {
|
|
2999
|
-
|
|
2999
|
+
On(), q || (q = yn(() => {
|
|
3000
3000
|
try {
|
|
3001
|
-
|
|
3001
|
+
bt() && h();
|
|
3002
3002
|
} catch {
|
|
3003
3003
|
}
|
|
3004
|
-
})), J || (J =
|
|
3004
|
+
})), J || (J = jn(() => {
|
|
3005
3005
|
try {
|
|
3006
|
-
|
|
3006
|
+
bt() && h();
|
|
3007
3007
|
} catch {
|
|
3008
3008
|
}
|
|
3009
3009
|
}));
|
|
3010
3010
|
} catch {
|
|
3011
3011
|
}
|
|
3012
3012
|
}
|
|
3013
|
-
function
|
|
3013
|
+
function ke() {
|
|
3014
3014
|
try {
|
|
3015
|
-
|
|
3015
|
+
Dn(), q && (q(), q = null), J && (J(), J = null);
|
|
3016
3016
|
} catch {
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
|
-
const
|
|
3020
|
-
function
|
|
3019
|
+
const Bt = "mates-devtools-vars";
|
|
3020
|
+
function dr() {
|
|
3021
3021
|
try {
|
|
3022
|
-
if (document.getElementById(
|
|
3022
|
+
if (document.getElementById(Bt)) return;
|
|
3023
3023
|
const t = document.createElement("style");
|
|
3024
|
-
t.id =
|
|
3024
|
+
t.id = Bt, t.textContent = `
|
|
3025
3025
|
#mates-devtools {
|
|
3026
3026
|
--dt-bg: #1a1a1a;
|
|
3027
3027
|
--dt-bg-2: #222222;
|
|
@@ -3054,7 +3054,8 @@ function ar() {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
|
|
3056
3056
|
@media (prefers-color-scheme: light) {
|
|
3057
|
-
#mates-devtools
|
|
3057
|
+
#mates-devtools,
|
|
3058
|
+
#mates-devtools-fab {
|
|
3058
3059
|
--dt-bg: #f5f5f5;
|
|
3059
3060
|
--dt-bg-2: #ebebeb;
|
|
3060
3061
|
--dt-bg-3: #e0e0e0;
|
|
@@ -3085,38 +3086,96 @@ function ar() {
|
|
|
3085
3086
|
--dt-flash-bg: rgba(0,160,90,0.3);
|
|
3086
3087
|
}
|
|
3087
3088
|
}
|
|
3089
|
+
|
|
3090
|
+
#mates-devtools[data-theme="light"],
|
|
3091
|
+
#mates-devtools-fab[data-theme="light"] {
|
|
3092
|
+
--dt-bg: #f5f5f5;
|
|
3093
|
+
--dt-bg-2: #ebebeb;
|
|
3094
|
+
--dt-bg-3: #e0e0e0;
|
|
3095
|
+
--dt-bg-input: #ffffff;
|
|
3096
|
+
--dt-bg-hover: #e8e8e8;
|
|
3097
|
+
--dt-bg-selected: #dbeafe;
|
|
3098
|
+
--dt-bg-active: rgba(59,130,246,0.12);
|
|
3099
|
+
--dt-border: #cccccc;
|
|
3100
|
+
--dt-border-2: #d4d4d4;
|
|
3101
|
+
--dt-border-3: #e4e4e4;
|
|
3102
|
+
--dt-border-selected: #3b82f6;
|
|
3103
|
+
--dt-text: #333333;
|
|
3104
|
+
--dt-text-bright: #111111;
|
|
3105
|
+
--dt-text-muted: #666666;
|
|
3106
|
+
--dt-text-dim: #888888;
|
|
3107
|
+
--dt-text-dimmer: #999999;
|
|
3108
|
+
--dt-text-selected: #1d4ed8;
|
|
3109
|
+
--dt-accent: #0077e6;
|
|
3110
|
+
--dt-accent-2: #3b82f6;
|
|
3111
|
+
--dt-scrollbar: #bbbbbb;
|
|
3112
|
+
--dt-scrollbar-hover: #999999;
|
|
3113
|
+
--dt-prop-key: #0070c1;
|
|
3114
|
+
--dt-prop-val: #a31515;
|
|
3115
|
+
--dt-scope-name: #007f6a;
|
|
3116
|
+
--dt-hook-count: #0070c1;
|
|
3117
|
+
--dt-instance-border: #3b82f6;
|
|
3118
|
+
--dt-instance-bg: #f0f4ff;
|
|
3119
|
+
--dt-flash-bg: rgba(0,160,90,0.3);
|
|
3120
|
+
}
|
|
3088
3121
|
`, document.head.appendChild(t);
|
|
3089
3122
|
} catch {
|
|
3090
3123
|
}
|
|
3091
3124
|
}
|
|
3092
|
-
function
|
|
3125
|
+
function ur() {
|
|
3093
3126
|
try {
|
|
3094
|
-
document.getElementById(
|
|
3127
|
+
document.getElementById(Bt)?.remove();
|
|
3095
3128
|
} catch {
|
|
3096
3129
|
}
|
|
3097
3130
|
}
|
|
3098
|
-
function
|
|
3131
|
+
function pr() {
|
|
3099
3132
|
try {
|
|
3100
|
-
|
|
3101
|
-
|
|
3133
|
+
const t = xt.resolved;
|
|
3134
|
+
p && (p.dataset.theme = t), m && (m.dataset.theme = t);
|
|
3102
3135
|
} catch {
|
|
3103
3136
|
}
|
|
3104
3137
|
}
|
|
3105
|
-
function
|
|
3138
|
+
function fr() {
|
|
3106
3139
|
try {
|
|
3107
|
-
if (
|
|
3108
|
-
|
|
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() {
|
|
3152
|
+
try {
|
|
3153
|
+
ht?.(), ht = null;
|
|
3154
|
+
} catch {
|
|
3155
|
+
}
|
|
3156
|
+
}
|
|
3157
|
+
function gr() {
|
|
3158
|
+
try {
|
|
3159
|
+
if (m) return;
|
|
3160
|
+
dr(), m = document.createElement("div"), m.id = "mates-devtools", m.dataset.theme = xt.resolved, document.body.appendChild(m);
|
|
3161
|
+
} catch {
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
function Lt() {
|
|
3165
|
+
try {
|
|
3166
|
+
if (!m) return;
|
|
3167
|
+
Zt(a``, m), m.remove(), m = null, ur();
|
|
3109
3168
|
} catch {
|
|
3110
3169
|
}
|
|
3111
3170
|
}
|
|
3112
3171
|
function h() {
|
|
3113
3172
|
try {
|
|
3114
|
-
if (!
|
|
3173
|
+
if (!m || !L) return;
|
|
3115
3174
|
const t = (() => {
|
|
3116
3175
|
try {
|
|
3117
3176
|
switch (X) {
|
|
3118
3177
|
case "components":
|
|
3119
|
-
return
|
|
3178
|
+
return a`
|
|
3120
3179
|
<div class="${r.body}">
|
|
3121
3180
|
<div class="${r.leftColumn}">
|
|
3122
3181
|
<div class="${r.leftTabs}">
|
|
@@ -3177,78 +3236,78 @@ function h() {
|
|
|
3177
3236
|
</svg>
|
|
3178
3237
|
</button>
|
|
3179
3238
|
</div>
|
|
3180
|
-
${M === "list" ?
|
|
3239
|
+
${M === "list" ? fn({
|
|
3181
3240
|
groups: D,
|
|
3182
|
-
selectedViewFn:
|
|
3183
|
-
onSelectGroup:
|
|
3184
|
-
onHighlight: (e) =>
|
|
3241
|
+
selectedViewFn: w,
|
|
3242
|
+
onSelectGroup: er,
|
|
3243
|
+
onHighlight: (e) => at(e),
|
|
3185
3244
|
renderCallback: h
|
|
3186
|
-
}) :
|
|
3187
|
-
selectedComponentId:
|
|
3188
|
-
onSelectComponent:
|
|
3189
|
-
onHighlight: (e) =>
|
|
3245
|
+
}) : mn({
|
|
3246
|
+
selectedComponentId: v,
|
|
3247
|
+
onSelectComponent: tr,
|
|
3248
|
+
onHighlight: (e) => at(e),
|
|
3190
3249
|
renderCallback: h
|
|
3191
3250
|
})}
|
|
3192
3251
|
</div>
|
|
3193
|
-
${
|
|
3194
|
-
selectedGroup:
|
|
3195
|
-
selectedInstanceId:
|
|
3196
|
-
onSelectInstance:
|
|
3197
|
-
onHighlight: (e) =>
|
|
3252
|
+
${qt(M === "list" ? {
|
|
3253
|
+
selectedGroup: Nt(),
|
|
3254
|
+
selectedInstanceId: b,
|
|
3255
|
+
onSelectInstance: nr,
|
|
3256
|
+
onHighlight: (e) => at(e)
|
|
3198
3257
|
} : {
|
|
3199
|
-
selectedComponent:
|
|
3258
|
+
selectedComponent: we()
|
|
3200
3259
|
})}
|
|
3201
3260
|
</div>
|
|
3202
3261
|
`;
|
|
3203
3262
|
case "logs":
|
|
3204
|
-
return
|
|
3263
|
+
return Fn({
|
|
3205
3264
|
onClear: h,
|
|
3206
3265
|
renderCallback: h
|
|
3207
3266
|
});
|
|
3208
3267
|
case "performance":
|
|
3209
|
-
return
|
|
3268
|
+
return Xn({
|
|
3210
3269
|
onClear: h,
|
|
3211
3270
|
renderCallback: h,
|
|
3212
|
-
onNavigateToComponent:
|
|
3271
|
+
onNavigateToComponent: rr
|
|
3213
3272
|
});
|
|
3214
3273
|
default:
|
|
3215
|
-
return
|
|
3274
|
+
return a``;
|
|
3216
3275
|
}
|
|
3217
3276
|
} catch {
|
|
3218
3277
|
}
|
|
3219
|
-
return
|
|
3278
|
+
return a``;
|
|
3220
3279
|
})();
|
|
3221
|
-
|
|
3222
|
-
|
|
3280
|
+
Zt(
|
|
3281
|
+
a`
|
|
3223
3282
|
<div class="${r.panel}" style="height: ${z}px;">
|
|
3224
|
-
<div class="${r.resizeHandle}" @mousedown=${
|
|
3225
|
-
${
|
|
3283
|
+
<div class="${r.resizeHandle}" @mousedown=${mr}></div>
|
|
3284
|
+
${bn({
|
|
3226
3285
|
activeTab: X,
|
|
3227
|
-
onTabChange:
|
|
3228
|
-
onMinimise:
|
|
3229
|
-
onClose:
|
|
3230
|
-
unreadLogCount: X === "logs" ? 0 :
|
|
3286
|
+
onTabChange: or,
|
|
3287
|
+
onMinimise: ir,
|
|
3288
|
+
onClose: ar,
|
|
3289
|
+
unreadLogCount: X === "logs" ? 0 : wn()
|
|
3231
3290
|
})}
|
|
3232
3291
|
${t}
|
|
3233
3292
|
</div>
|
|
3234
3293
|
`,
|
|
3235
|
-
|
|
3294
|
+
m
|
|
3236
3295
|
);
|
|
3237
3296
|
} catch {
|
|
3238
3297
|
}
|
|
3239
3298
|
}
|
|
3240
|
-
function
|
|
3299
|
+
function mr(t) {
|
|
3241
3300
|
try {
|
|
3242
3301
|
t.preventDefault();
|
|
3243
3302
|
const e = t.clientY, n = z, o = (c) => {
|
|
3244
3303
|
try {
|
|
3245
|
-
const
|
|
3304
|
+
const s = window.innerHeight * Jn;
|
|
3246
3305
|
z = Math.max(
|
|
3247
|
-
|
|
3248
|
-
Math.min(
|
|
3306
|
+
qn,
|
|
3307
|
+
Math.min(s, n + (e - c.clientY))
|
|
3249
3308
|
);
|
|
3250
3309
|
const d = nt();
|
|
3251
|
-
d && (d.style.height = `${z}px`),
|
|
3310
|
+
d && (d.style.height = `${z}px`), Ft();
|
|
3252
3311
|
} catch {
|
|
3253
3312
|
}
|
|
3254
3313
|
}, i = () => {
|
|
@@ -3261,95 +3320,95 @@ function ur(t) {
|
|
|
3261
3320
|
} catch {
|
|
3262
3321
|
}
|
|
3263
3322
|
}
|
|
3264
|
-
function
|
|
3323
|
+
function br() {
|
|
3265
3324
|
try {
|
|
3266
3325
|
if (p) return;
|
|
3267
|
-
p = document.createElement("div"), 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",
|
|
3326
|
+
p = document.createElement("div"), p.id = "mates-devtools-fab", p.className = r.fab, p.dataset.theme = xt.resolved, 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", Ce), p.addEventListener("click", Se), document.body.appendChild(p);
|
|
3268
3327
|
} catch {
|
|
3269
3328
|
}
|
|
3270
3329
|
}
|
|
3271
|
-
function
|
|
3330
|
+
function yr() {
|
|
3272
3331
|
try {
|
|
3273
3332
|
if (!p) return;
|
|
3274
|
-
p.removeEventListener("mousedown",
|
|
3333
|
+
p.removeEventListener("mousedown", Ce), p.removeEventListener("click", Se), p.remove(), p = null;
|
|
3275
3334
|
} catch {
|
|
3276
3335
|
}
|
|
3277
3336
|
}
|
|
3278
|
-
function
|
|
3337
|
+
function Se() {
|
|
3279
3338
|
try {
|
|
3280
|
-
if (
|
|
3281
|
-
|
|
3339
|
+
if (gt) {
|
|
3340
|
+
gt = !1;
|
|
3282
3341
|
return;
|
|
3283
3342
|
}
|
|
3284
|
-
C ?
|
|
3343
|
+
C ? cr() : sr();
|
|
3285
3344
|
} catch {
|
|
3286
3345
|
}
|
|
3287
3346
|
}
|
|
3288
|
-
function
|
|
3347
|
+
function Ce(t) {
|
|
3289
3348
|
try {
|
|
3290
|
-
t.preventDefault(),
|
|
3349
|
+
t.preventDefault(), Dt = !0, gt = !1;
|
|
3291
3350
|
const e = p.getBoundingClientRect();
|
|
3292
|
-
|
|
3351
|
+
$e = t.clientX - e.left, _e = t.clientY - e.top, p.classList.add(r.fabDragging), document.addEventListener("mousemove", Te), document.addEventListener("mouseup", Me);
|
|
3293
3352
|
} catch {
|
|
3294
3353
|
}
|
|
3295
3354
|
}
|
|
3296
|
-
function
|
|
3355
|
+
function Te(t) {
|
|
3297
3356
|
try {
|
|
3298
|
-
if (!
|
|
3299
|
-
|
|
3357
|
+
if (!Dt || !p) return;
|
|
3358
|
+
gt = !0, p.style.bottom = "auto", p.style.right = "auto", p.style.left = `${Math.max(0, Math.min(window.innerWidth - 48, t.clientX - $e))}px`, p.style.top = `${Math.max(0, Math.min(window.innerHeight - 48, t.clientY - _e))}px`;
|
|
3300
3359
|
} catch {
|
|
3301
3360
|
}
|
|
3302
3361
|
}
|
|
3303
|
-
function
|
|
3362
|
+
function Me() {
|
|
3304
3363
|
try {
|
|
3305
|
-
|
|
3364
|
+
Dt = !1, p?.classList.remove(r.fabDragging), document.removeEventListener("mousemove", Te), document.removeEventListener("mouseup", Me);
|
|
3306
3365
|
} catch {
|
|
3307
3366
|
}
|
|
3308
3367
|
}
|
|
3309
|
-
function
|
|
3368
|
+
function xr() {
|
|
3310
3369
|
try {
|
|
3311
|
-
|
|
3370
|
+
an(), fr(), br(), K || (K = vt.__subscribe((t) => {
|
|
3312
3371
|
try {
|
|
3313
|
-
t?.type === "unmount" && (
|
|
3372
|
+
t?.type === "unmount" && (v !== null && t.component.componentId === v && (v = null), b !== null && t.component.componentId === b && (b = null)), kt(), bt() && h();
|
|
3314
3373
|
} catch {
|
|
3315
3374
|
}
|
|
3316
|
-
})),
|
|
3375
|
+
})), re(() => {
|
|
3317
3376
|
try {
|
|
3318
|
-
|
|
3377
|
+
bt() && h();
|
|
3319
3378
|
} catch {
|
|
3320
3379
|
}
|
|
3321
3380
|
});
|
|
3322
3381
|
} catch {
|
|
3323
3382
|
}
|
|
3324
3383
|
}
|
|
3325
|
-
function
|
|
3384
|
+
function vr() {
|
|
3326
3385
|
try {
|
|
3327
|
-
|
|
3386
|
+
sn(), re(null), mt(), ke(), vn(), Ot(), K && (K(), K = null), hr(), L = !1, C = !1, M = "list", v = null, w = null, b = null, D = [], Lt(), yr();
|
|
3328
3387
|
} catch {
|
|
3329
3388
|
}
|
|
3330
3389
|
}
|
|
3331
|
-
const
|
|
3332
|
-
let
|
|
3333
|
-
function
|
|
3390
|
+
const st = [];
|
|
3391
|
+
let Et = null, At = null, Rt = null;
|
|
3392
|
+
function $r() {
|
|
3334
3393
|
try {
|
|
3335
|
-
|
|
3394
|
+
Et = ze((t, e) => {
|
|
3336
3395
|
try {
|
|
3337
3396
|
const n = (e.method ?? "GET").toUpperCase();
|
|
3338
|
-
|
|
3397
|
+
st.push({ method: n, url: t, startTs: performance.now() });
|
|
3339
3398
|
} catch {
|
|
3340
3399
|
}
|
|
3341
3400
|
return { url: t, options: e };
|
|
3342
|
-
}),
|
|
3401
|
+
}), At = Pe((t) => {
|
|
3343
3402
|
try {
|
|
3344
|
-
const e =
|
|
3345
|
-
|
|
3403
|
+
const e = st.shift(), n = e?.method ?? "", o = e?.url ?? t.url ?? "", i = e ? performance.now() - e.startTs : 0;
|
|
3404
|
+
he(n, o, t.status, i);
|
|
3346
3405
|
} catch {
|
|
3347
3406
|
}
|
|
3348
3407
|
return t;
|
|
3349
|
-
}),
|
|
3408
|
+
}), Rt = He((t) => {
|
|
3350
3409
|
try {
|
|
3351
|
-
const e =
|
|
3352
|
-
|
|
3410
|
+
const e = st.shift(), n = e ? performance.now() - e.startTs : 0;
|
|
3411
|
+
ge(
|
|
3353
3412
|
e?.method ?? "",
|
|
3354
3413
|
e?.url ?? "",
|
|
3355
3414
|
t.message,
|
|
@@ -3361,103 +3420,103 @@ function mr() {
|
|
|
3361
3420
|
} catch {
|
|
3362
3421
|
}
|
|
3363
3422
|
}
|
|
3364
|
-
function
|
|
3423
|
+
function _r() {
|
|
3365
3424
|
try {
|
|
3366
|
-
|
|
3425
|
+
Et?.(), At?.(), Rt?.(), Et = null, At = null, Rt = null, st.length = 0;
|
|
3367
3426
|
} catch {
|
|
3368
3427
|
}
|
|
3369
3428
|
}
|
|
3370
|
-
function
|
|
3429
|
+
function wr() {
|
|
3371
3430
|
try {
|
|
3372
|
-
if (
|
|
3373
|
-
|
|
3374
|
-
registerComponent:
|
|
3375
|
-
unregisterComponent:
|
|
3376
|
-
notifyRender:
|
|
3431
|
+
if (Ae()) return;
|
|
3432
|
+
Re({
|
|
3433
|
+
registerComponent: De,
|
|
3434
|
+
unregisterComponent: Ne,
|
|
3435
|
+
notifyRender: je,
|
|
3377
3436
|
getComponentName: tt,
|
|
3378
|
-
logComponentMount:
|
|
3379
|
-
logComponentRender:
|
|
3380
|
-
logComponentUnmount:
|
|
3381
|
-
logAtomSet:
|
|
3382
|
-
logAtomUpdate:
|
|
3383
|
-
logEventTrigger:
|
|
3384
|
-
logCleanupEventTrigger:
|
|
3385
|
-
logFetchRequest:
|
|
3386
|
-
logFetchResponse:
|
|
3387
|
-
logFetchError:
|
|
3388
|
-
recordRender:
|
|
3389
|
-
}),
|
|
3437
|
+
logComponentMount: Cn,
|
|
3438
|
+
logComponentRender: Tn,
|
|
3439
|
+
logComponentUnmount: Mn,
|
|
3440
|
+
logAtomSet: In,
|
|
3441
|
+
logAtomUpdate: Bn,
|
|
3442
|
+
logEventTrigger: Ln,
|
|
3443
|
+
logCleanupEventTrigger: An,
|
|
3444
|
+
logFetchRequest: En,
|
|
3445
|
+
logFetchResponse: he,
|
|
3446
|
+
logFetchError: ge,
|
|
3447
|
+
recordRender: be
|
|
3448
|
+
}), xn(), $r();
|
|
3390
3449
|
} catch {
|
|
3391
3450
|
}
|
|
3392
3451
|
}
|
|
3393
3452
|
let yt = !1;
|
|
3394
|
-
function
|
|
3453
|
+
function Ar() {
|
|
3395
3454
|
try {
|
|
3396
3455
|
if (yt) return;
|
|
3397
|
-
yt = !0,
|
|
3456
|
+
yt = !0, wr(), xr();
|
|
3398
3457
|
} catch {
|
|
3399
3458
|
}
|
|
3400
3459
|
}
|
|
3401
|
-
function
|
|
3460
|
+
function Rr() {
|
|
3402
3461
|
try {
|
|
3403
3462
|
if (!yt) return;
|
|
3404
|
-
yt = !1,
|
|
3463
|
+
yt = !1, _r(), vr();
|
|
3405
3464
|
} catch {
|
|
3406
3465
|
}
|
|
3407
3466
|
}
|
|
3408
3467
|
export {
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3468
|
+
Sn as clearLogs,
|
|
3469
|
+
Gn as clearPerfData,
|
|
3470
|
+
xn as connectLogStore,
|
|
3471
|
+
On as connectPerfStore,
|
|
3472
|
+
vr as destroyDevTools,
|
|
3473
|
+
Rr as destroyMatesDevTools,
|
|
3474
|
+
vt as devToolsEvent,
|
|
3475
|
+
vn as disconnectLogStore,
|
|
3476
|
+
Dn as disconnectPerfStore,
|
|
3477
|
+
ee as getAllComponents,
|
|
3419
3478
|
Z as getComponentDepth,
|
|
3420
|
-
|
|
3479
|
+
We as getComponentGroups,
|
|
3421
3480
|
tt as getComponentName,
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3481
|
+
Cr as getComponentsByView,
|
|
3482
|
+
Ir as getLogCount,
|
|
3483
|
+
_n as getLogs,
|
|
3484
|
+
Vn as getPerfSummaries,
|
|
3485
|
+
Er as getRecentTimings,
|
|
3486
|
+
$t as getRenderVersion,
|
|
3487
|
+
Wn as getSlowestRenders,
|
|
3488
|
+
wn as getUnreadLogCount,
|
|
3489
|
+
Mr as isLogStoreConnected,
|
|
3490
|
+
Br as isPerfStoreConnected,
|
|
3491
|
+
In as logAtomSet,
|
|
3492
|
+
Bn as logAtomUpdate,
|
|
3493
|
+
An as logCleanupEventTrigger,
|
|
3494
|
+
Cn as logComponentMount,
|
|
3495
|
+
Tn as logComponentRender,
|
|
3496
|
+
Mn as logComponentUnmount,
|
|
3497
|
+
Ln as logEventTrigger,
|
|
3498
|
+
kn as markLogsRead,
|
|
3499
|
+
je as notifyRender,
|
|
3500
|
+
yn as onLogEntry,
|
|
3501
|
+
jn as onPerfEntry,
|
|
3502
|
+
be as recordRender,
|
|
3503
|
+
De as registerComponent,
|
|
3504
|
+
Ze as renderAtomsViewer,
|
|
3505
|
+
qt as renderComponentInspector,
|
|
3506
|
+
fn as renderComponentList,
|
|
3507
|
+
mn as renderComponentTree,
|
|
3508
|
+
bn as renderHeader,
|
|
3509
|
+
ie as renderHooksViewer,
|
|
3510
|
+
Fn as renderLogsViewer,
|
|
3511
|
+
Ar as renderMatesDevTools,
|
|
3512
|
+
Xn as renderPerfViewer,
|
|
3513
|
+
Je as renderPropsViewer,
|
|
3514
|
+
Ke as renderScopesViewer,
|
|
3515
|
+
tn as renderUseStateViewer,
|
|
3457
3516
|
O as renderValueTree,
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3517
|
+
Tr as renderValueTreeEntries,
|
|
3518
|
+
re as setValueTreeRenderCallback,
|
|
3519
|
+
Lr as startRenderTiming,
|
|
3461
3520
|
r as styles,
|
|
3462
|
-
|
|
3521
|
+
Ne as unregisterComponent
|
|
3463
3522
|
};
|