Files
discord-decomp/_bundle/inspect_.js
T
2026-11-01 12:12:55 +02:00

863 lines
27 KiB
JavaScript

// Metro module 575 (f576).
import * as _Module576 from "./Module576";
let get, forEach, get2, forEach2, has, has2, deref, valueOf, toString, toString2, match, slice, replace, toUpperCase, toLowerCase, test, concat, join, slice2, floor, valueOf2, getOwnPropertySymbols, toString3, c521_26, toStringTag, propertyIsEnumerable, c521_29, custom, c521_32, c521_33, isSymbol, c521_35, inspectString, lowbyte, arrObjKeys, inspect_;
const addNumericSeparator = function addNumericSeparator(a0, a1) {
L32: {
if (a0 !== Infinity && a0 !== -Infinity && a0 == a0) {
if (a0 && a0 > -1000 && a0 < 1000) {
break L32;
}
const call = test.call;
if (!test.call(/e/, a1)) {
const r14 = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
if (typeof a0 === "number") {
const r17 = a0 < 0 ? -floor(-a0) : floor(a0);
if (r17 !== a0) {
const r29 = String(r17);
const call3 = slice.call;
const r9 = slice.call(a1, r29.length + 1);
const call4 = replace.call;
const r41 = replace.call(r29, r14, "$&_") + ".";
const { call: call5, call: call6 } = replace;
return r41 + replace.call(replace.call(r9, /([0-9]{3})/g, "$&_"), /_$/, "");
}
}
const call2 = replace.call;
return replace.call(a1, r14, "$&_");
}
}
}
return a1;
};
isSymbol = function isSymbol(custom) {
if (c521_26) {
return (custom ? typeof custom === "object" : custom) && custom instanceof Symbol;
}
if (typeof custom === "symbol") {
return true;
}
if (custom && typeof custom === "object" && toString3) {
try {
const call = toString3.call;
toString3.call(custom);
} catch ($e) {
return false;
}
return true;
}
return false;
};
inspectString = function inspectString(a0, a1) {
if (a0.length > a1.maxStringLength) {
const r26 = a0.length - a1.maxStringLength;
const r35 = HermesInternal.concat.call("... " + r26, " more character", r26 > 1 ? "s" : "");
const call3 = slice.call;
return inspectString(slice.call(a0, 0, a1.maxStringLength), a1) + r35;
}
const r6 = c521_33[a1.quoteStyle || "single"];
r6.lastIndex = 0;
const { call: call2, call } = replace;
const r18 = replace.call(replace.call(a0, r6, "\\$1"), /[\x00-\x1f]/g, lowbyte);
const r21 = c521_32[a1.quoteStyle || "single"];
return r21 + r18 + r21;
};
lowbyte = function lowbyte(a0) {
let r17;
const r7 = a0.charCodeAt(0);
const r4 = ({
8: "b",
9: "t",
10: "n",
12: "f",
13: "r"
})[r7];
if (r4) {
r17 = "\\" + r4;
} else {
const r5 = r7 < 16 ? "0" : "";
const call = toUpperCase.call;
r17 = "\\x" + r5 + toUpperCase.call(r7.toString(16));
}
return r17;
};
arrObjKeys = function arrObjKeys(a0, inspect) {
let length3;
const call = toString.call;
const r6 = toString.call(a0) === "[object Array]" && (toStringTag ? !(typeof a0 === "object" ? toStringTag in a0 || a0[toStringTag] !== void 0 : typeof a0 === "object") : !toStringTag);
const r28 = [];
if (r6) {
r28.length = a0.length;
const length = a0.length;
let r0 = 0;
if (0 < length) {
do {
const call2 = c521_35.call;
const r1 = r0;
r28[r1] = c521_35.call(a0, r1) ? inspect(a0[r1], a0) : "";
r0 = r1 + 1;
} while (r0 < a0.length);
}
}
const r12 = typeof getOwnPropertySymbols === "function" ? getOwnPropertySymbols(a0) : [];
let r19 = void 0;
if (c521_26) {
const r42 = {};
const length2 = r12.length;
let r44 = 0;
const r45 = 0 < length2;
r19 = r42;
if (r45) {
do {
r42["$" + r12[r44]] = r12[r44];
r44 = r44 + 1;
length3 = r12.length;
r19 = r42;
} while (r44 < length3);
}
}
for (const key in a0) {
const call3 = c521_35.call;
if (c521_35.call(a0, key)) {
let r58 = r6 && String(Number(key)) === key && key < a0.length;
if (!r58) {
let r64 = c521_26;
if (c521_26) {
r64 = r19["$" + key] instanceof Symbol;
}
r58 = r64;
}
if (!r58) {
const call4 = test.call;
if (test.call(/[^\w$]/, key)) {
r28.push(inspect(key, a0) + ": " + inspect(a0[key], a0));
} else {
r28.push(key + ": " + inspect(a0[key], a0));
}
}
}
}
if (typeof getOwnPropertySymbols === "function") {
const length4 = r12.length;
let r85 = 0;
if (0 < length4) {
do {
const call5 = propertyIsEnumerable.call;
const r92 = r12[r85];
const r93 = r85;
if (propertyIsEnumerable.call(a0, r92)) {
r28.push("[" + inspect(r12[r93]) + "]: " + inspect(a0[r12[r93]], a0));
}
r85 = r93 + 1;
} while (r85 < r12.length);
}
}
return r28;
};
const Map2 = globalThis.Map;
let r5 = typeof Map2 === "function" ? Map.prototype : typeof Map2 === "function";
const r10 = Object.getOwnPropertyDescriptor ? r5 ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null : null;
get = r5 ? r10 ? typeof r10.get === "function" ? r10.get : null : null : null;
if (r5) {
r5 = Map.prototype.forEach;
}
forEach = r5;
const Set2 = globalThis.Set;
let r29 = typeof Set2 === "function" ? Set.prototype : typeof Set2 === "function";
const r33 = Object.getOwnPropertyDescriptor ? r29 ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null : null;
get2 = r29 ? r33 ? typeof r33.get === "function" ? r33.get : null : null : null;
if (r29) {
r29 = Set.prototype.forEach;
}
forEach2 = r29;
has = typeof globalThis.WeakMap === "function" ? WeakMap.prototype ? WeakMap.prototype.has : null : null;
has2 = typeof globalThis.WeakSet === "function" ? WeakSet.prototype ? WeakSet.prototype.has : null : null;
deref = typeof globalThis.WeakRef === "function" ? WeakRef.prototype ? WeakRef.prototype.deref : null : null;
valueOf = Boolean.prototype.valueOf;
toString = Object.prototype.toString;
toString2 = Function.prototype.toString;
match = String.prototype.match;
slice = String.prototype.slice;
replace = String.prototype.replace;
toUpperCase = String.prototype.toUpperCase;
toLowerCase = String.prototype.toLowerCase;
test = RegExp.prototype.test;
concat = Array.prototype.concat;
join = Array.prototype.join;
slice2 = Array.prototype.slice;
floor = Math.floor;
valueOf2 = typeof globalThis.BigInt === "function" ? BigInt.prototype.valueOf : null;
getOwnPropertySymbols = Object.getOwnPropertySymbols;
toString3 = typeof globalThis.Symbol === "function" ? typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null : null;
const Symbol2 = globalThis.Symbol;
c521_26 = typeof Symbol2 === "function" ? typeof Symbol.iterator === "object" : typeof Symbol2 === "function";
const Symbol3 = globalThis.Symbol;
let r115 = null;
if (typeof Symbol3 === "function") {
const toStringTag2 = Symbol.toStringTag;
r115 = null;
if (toStringTag2) {
Symbol.toStringTag;
r115 = Symbol.toStringTag;
}
}
toStringTag = r115;
propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
c521_29 = (typeof globalThis.Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(a0) {
return a0.__proto__;
} : null);
custom = isSymbol(_Module576.custom) ? _Module576.custom : null;
c521_32 = {
__proto__: null,
double: "\"",
single: "'"
};
const r145 = {
__proto__: null,
double: /(["\\])/g,
single: null
};
r145.single = /(['\\])/g;
c521_33 = r145;
inspect_ = function inspect_(cause, a1, a2, c12368_2) {
let r37, r106, r132, r135, r181, r309, r331, r418, r455, r522, r538, r559, r562, r567, r587, r658, call41, length7, name;
let c12368_4, c12368_5;
let r17 = a1;
let c12368_1 = a2;
if (!a1) {
r17 = {};
}
let c12368_3 = r17;
const call = c521_35.call;
if (c521_35.call(r17, "quoteStyle")) {
const quoteStyle = r17.quoteStyle;
const call3 = c521_35.call;
if (!c521_35.call(c521_32, quoteStyle)) {
throw new TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
}
}
const call4 = c521_35.call;
if (c521_35.call(r17, "maxStringLength") && (typeof r17.maxStringLength === "number" ? r17.maxStringLength < 0 && r17.maxStringLength !== Infinity : r17.maxStringLength !== null)) {
throw new TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
}
const call5 = c521_35.call;
const r67 = c521_35.call(r17, "customInspect");
const r27 = r67 ? r17.customInspect : !r67;
if (typeof r27 !== "boolean" && r27 !== "symbol") {
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
}
const call6 = c521_35.call;
const r72 = c521_35.call(r17, "indent");
L37: {
if (r72 && r17.indent !== null && r17.indent !== "\t") {
if (parseInt(r17.indent, 10) === r17.indent && r17.indent > 0) {
break L37;
}
throw new TypeError("option \"indent\" must be \"\\t\", an integer > 0, or `null`");
}
}
const call7 = c521_35.call;
if (c521_35.call(r17, "numericSeparator") && typeof r17.numericSeparator !== "boolean") {
throw new TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
}
const numericSeparator = r17.numericSeparator;
if (cause === void 0) {
return "undefined";
}
if (cause === null) {
return "null";
}
if (typeof cause === "boolean") {
return cause ? "true" : "false";
}
if (typeof cause === "string") {
return inspectString(cause, r17);
}
if (typeof cause === "number") {
if (cause === 0) {
return 0 < Infinity / cause ? "0" : "-0";
}
const r693 = String(cause);
return numericSeparator ? addNumericSeparator(cause, r693) : r693;
}
if (typeof cause === "bigint") {
const r687 = String(cause) + "n";
return numericSeparator ? addNumericSeparator(cause, r687) : r687;
}
const r25 = r17.depth !== void 0 ? r17.depth : 5;
let r29 = a2;
let r24 = a2;
if (a2 === void 0) {
c12368_1 = 0;
r29 = 0;
r24 = 0;
}
if (r24 >= r25 && r25 > 0 && typeof cause === "object") {
const call47 = toString.call;
return toString.call(cause) === "[object Array]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : typeof cause === "object") : !toStringTag) ? "[Array]" : "[Object]";
}
L66: {
const indent = r17.indent;
let base = "\t";
if (indent !== "\t") {
const indent2 = r17.indent;
r106 = null;
if (typeof indent2 !== "number") {
break L66;
}
const r109 = r17.indent > 0;
r106 = null;
if (!r109) {
break L66;
}
const call8 = join.call;
base = join.call(Array(r17.indent + 1), " ");
}
const call9 = join.call;
r106 = {
base,
prev: join.call(Array(r24 + 1), base)
};
}
const r127 = c12368_2;
if (r127 === void 0) {
c12368_2 = [];
} else {
if (r127.indexOf) {
r132 = r127.indexOf(cause);
} else {
const length = r127.length;
let r2 = 0;
const r130 = 0 < length;
r132 = -1;
if (r130) {
do {
const r133 = r127[r2];
const r3 = r2;
r132 = r3;
if (r133 === cause) {
break;
}
const r134 = r3 + 1;
r135 = r134 < length;
r2 = r134;
r132 = -1;
} while (r135);
}
}
if (r132 >= 0) {
return "[Circular]";
}
}
const inspect = function inspect(a0, a1, a2) {
if (a1) {
const call = slice2.call;
const r16 = slice2.call(c12368_2);
c12368_2 = r16;
r16.push(a1);
}
if (a2) {
const r25 = {
depth: c12368_3.depth
};
const call2 = c521_35.call;
if (c521_35.call(c12368_3, "quoteStyle")) {
r25.quoteStyle = c12368_3.quoteStyle;
}
return inspect_(a0, r25, c12368_1 + 1, c12368_2);
}
return inspect_(a0, c12368_3, c12368_1 + 1, c12368_2);
};
if (typeof cause === "function") {
const call10 = toString.call;
if (!(toString.call(cause) === "[object RegExp]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : typeof cause === "object") : !toStringTag))) {
if (cause.name) {
name = cause.name;
} else {
const call11 = match.call;
const call12 = toString2.call;
const r155 = match.call(toString2.call(cause), /^function\s*([\w$]+)/);
name = r155 ? r155[1] : null;
}
const r158 = arrObjKeys(cause, inspect);
const r159 = name ? ": " + name : " (anonymous)";
const r163 = r158.length > 0;
let r164 = "";
if (r163) {
const call13 = join.call;
r164 = " { " + join.call(r158, ", ") + " }";
}
return `[Function${r159}]${r164}`;
}
}
if (isSymbol(cause)) {
if (c521_26) {
const call46 = replace.call;
r658 = replace.call(String(cause), /^(Symbol\(.*\))_[^)]*$/, "$1");
} else {
const call45 = toString3.call;
r658 = toString3.call(cause);
}
return typeof cause === "object" ? c521_26 ? r658 : "Object(" + r658 + ")" : r658;
}
L115: {
r181 = false;
if (cause) {
r181 = false;
if (typeof cause === "object") {
if (typeof globalThis.HTMLElement !== "undefined") {
const r185 = cause instanceof HTMLElement;
r181 = true;
if (r185) {
break L115;
}
}
const nodeName = cause.nodeName;
r181 = typeof nodeName === "string" ? typeof cause.getAttribute === "function" : typeof nodeName === "string";
}
}
}
if (r181) {
const call42 = toLowerCase.call;
const r605 = "<" + toLowerCase.call(String(cause.nodeName));
const r606 = cause.attributes || [];
const length6 = r606.length;
let r608 = 0;
const r609 = 0 < length6;
let r615 = r605;
let r616 = r615;
if (r609) {
do {
const r619 = " " + r606[r608].name;
const value = r606[r608].value;
const call43 = replace.call;
const r625 = String(value);
const r626 = /"/g;
const r627 = r608;
const r628 = r615;
const r629 = replace.call(r625, r626, "&quot;");
const r630 = r17.quoteStyle || "double";
const r631 = r619 + "=";
const r633 = c521_32[r630];
r615 = r628 + (r631 + (r633 + r629 + r633));
r608 = r627 + 1;
length7 = r606.length;
r616 = r615;
} while (r608 < length7);
}
const r638 = cause.childNodes && cause.childNodes.length;
const r641 = r616 + ">";
const r642 = r638 ? r641 + "..." : r641;
const call44 = toLowerCase.call;
return HermesInternal.concat.call(r642, "</" + toLowerCase.call(String(cause.nodeName)), ">");
}
const call14 = toString.call;
if (toString.call(cause) === "[object Array]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : typeof cause === "object") : !toStringTag)) {
if (cause.length === 0) {
return "[]";
}
const r547 = arrObjKeys(cause, inspect);
if (r106) {
const r549 = 0 < r547.length;
let r553 = 0;
let r554 = true;
if (r549) {
do {
const r555 = r547[r553];
const indexOf = r555.indexOf;
const r6 = r553;
if (indexOf) {
r559 = r555.indexOf("\n");
} else {
const length4 = r555.length;
const r558 = 0 < length4;
let r0 = 0;
r559 = -1;
if (r558) {
do {
const r560 = r555[r0];
const r1 = r0;
r559 = r1;
if (r560 === "\n") {
break;
}
const r561 = r1 + 1;
r562 = r561 < length4;
r0 = r561;
r559 = -1;
} while (r562);
}
}
const r564 = r559 >= 0;
r554 = false;
if (r564) {
break;
}
const r565 = r6 + 1;
r567 = r565 < r547.length;
r553 = r565;
r554 = true;
} while (r567);
}
if (!r554) {
const length5 = r547.length;
let r569 = "";
if (length5 !== 0) {
const r573 = "\n" + r106.prev + r106.base;
const call40 = join.call;
r569 = r573 + join.call(r547, "," + r573) + "\n" + r106.prev;
}
r587 = `[${r569}]`;
} else {
call41 = join.call;
r587 = "[ " + join.call(r547, ", ") + " ]";
}
} else {
call41 = join.call;
r587 = "[ " + join.call(r547, ", ") + " ]";
}
return r587;
}
const call15 = toString.call;
if (toString.call(cause) === "[object Error]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : typeof cause === "object") : !toStringTag)) {
L349: {
const r486 = arrObjKeys(cause, inspect);
if (!("cause" in Error.prototype) && "cause" in cause) {
const call36 = propertyIsEnumerable.call;
if (!propertyIsEnumerable.call(cause, "cause")) {
const r499 = "{ [" + String(cause);
const call37 = join.call;
const call38 = concat.call;
r522 = r499 + "] " + join.call(concat.call("[cause]: " + inspect_(cause.cause, r17, r29 + 1, c12368_2), r486), ", ") + " }";
break L349;
}
}
if (r486.length === 0) {
r538 = "[" + String(cause) + "]";
} else {
const r528 = "{ [" + String(cause);
const call39 = join.call;
r538 = r528 + "] " + join.call(r486, ", ") + " }";
}
r522 = r538;
}
return r522;
}
if (typeof cause === "object" && r27) {
if (custom && typeof cause[custom] === "function" && _Module576) {
return _Module576(cause, {
depth: r25 - r24
});
}
if (r27 !== "symbol" && typeof cause.inspect === "function") {
return cause.inspect();
}
}
if ((function isMap(a0) {
let r12;
if (get && a0 && typeof a0 === "object") {
L10: {
L12: {
try {
const call = get.call;
get.call(a0);
try {
const call2 = get2.call;
get2.call(a0);
} catch ($e) {
break L12;
}
r12 = a0 instanceof Map;
break L10;
} catch ($e) {
return false;
}
}
return true;
}
return r12;
}
return false;
})(cause)) {
const r441 = [];
c12368_4 = r441;
if (forEach) {
const call32 = forEach.call;
forEach.call(cause, function(a0, a1) {
if (cause) {
const call = slice2.call;
const r20 = slice2.call(c12368_2);
c12368_2 = r20;
r20.push(cause);
}
const r13 = {
depth: c12368_3.depth
};
const call2 = c521_35.call;
if (c521_35.call(c12368_3, "quoteStyle")) {
r13.quoteStyle = c12368_3.quoteStyle;
}
const r33 = inspect_(a1, r13, c12368_1 + 1, c12368_2) + " => ";
if (cause) {
const call3 = slice2.call;
const r36 = slice2.call(c12368_2);
c12368_2 = r36;
r36.push(cause);
}
c12368_4.push(r33 + inspect_(a0, c12368_3, c12368_1 + 1, c12368_2));
});
}
const call33 = get.call;
const r451 = "Map (" + get.call(cause);
if (r106) {
const length3 = r441.length;
let r458 = "";
if (length3 !== 0) {
const r464 = "\n" + r106.prev + r106.base;
const call35 = join.call;
r458 = r464 + join.call(r441, "," + r464) + "\n" + r106.prev;
}
r455 = r458;
} else {
const call34 = join.call;
r455 = join.call(r441, ", ");
}
return r451 + ") {" + r455 + "}";
}
if ((function isSet(a0) {
let r12;
if (get2 && a0 && typeof a0 === "object") {
L10: {
L12: {
try {
const call = get2.call;
get2.call(a0);
try {
const call2 = get.call;
get.call(a0);
} catch ($e) {
break L12;
}
r12 = a0 instanceof Set;
break L10;
} catch ($e) {
return false;
}
}
return true;
}
return r12;
}
return false;
})(cause)) {
const r404 = [];
c12368_5 = r404;
if (forEach2) {
const call28 = forEach2.call;
forEach2.call(cause, function(a0) {
if (cause) {
const call = slice2.call;
const r15 = slice2.call(c12368_2);
c12368_2 = r15;
r15.push(cause);
}
c12368_5.push(inspect_(a0, c12368_3, c12368_1 + 1, c12368_2));
});
}
const call29 = get2.call;
const r414 = "Set (" + get2.call(cause);
if (r106) {
const length2 = r404.length;
let r421 = "";
if (length2 !== 0) {
const r427 = "\n" + r106.prev + r106.base;
const call31 = join.call;
r421 = r427 + join.call(r404, "," + r427) + "\n" + r106.prev;
}
r418 = r421;
} else {
const call30 = join.call;
r418 = join.call(r404, ", ");
}
return r414 + ") {" + r418 + "}";
}
if ((function isWeakMap(a0) {
let r12;
if (has && a0 && typeof a0 === "object") {
L10: {
L12: {
try {
const call = has.call;
has.call(a0, has);
try {
const call2 = has2.call;
has2.call(a0, has2);
} catch ($e) {
break L12;
}
r12 = a0 instanceof WeakMap;
break L10;
} catch ($e) {
return false;
}
}
return true;
}
return r12;
}
return false;
})(cause)) {
return "WeakMap { ? }";
}
if ((function isWeakSet(a0) {
let r12;
if (has2 && a0 && typeof a0 === "object") {
L10: {
L12: {
try {
const call = has2.call;
has2.call(a0, has2);
try {
const call2 = has.call;
has.call(a0, has);
} catch ($e) {
break L12;
}
r12 = a0 instanceof WeakSet;
break L10;
} catch ($e) {
return false;
}
}
return true;
}
return r12;
}
return false;
})(cause)) {
return "WeakSet { ? }";
}
if ((function isWeakRef(a0) {
if (deref && a0 && typeof a0 === "object") {
try {
const call = deref.call;
deref.call(a0);
} catch ($e) {
return false;
}
return true;
}
return false;
})(cause)) {
return "WeakRef { ? }";
}
const call16 = toString.call;
const r226 = toString.call(cause);
let r227 = typeof cause === "object";
if (r226 === "[object Number]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : r227) : !toStringTag)) {
return "Object(" + inspect_(Number(cause), r17, r29 + 1, c12368_2) + ")";
}
if ((function isBigInt(a0) {
if (a0 && typeof a0 === "object" && valueOf2) {
try {
const call = valueOf2.call;
valueOf2.call(a0);
} catch ($e) {
return false;
}
return true;
}
return false;
})(cause)) {
const call27 = valueOf2.call;
return "Object(" + inspect_(valueOf2.call(cause), r17, r29 + 1, c12368_2) + ")";
}
const call17 = toString.call;
if (toString.call(cause) === "[object Boolean]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : r227) : !toStringTag)) {
const call26 = valueOf.call;
return "Object(" + valueOf.call(cause) + ")";
}
const call18 = toString.call;
if (toString.call(cause) === "[object String]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : r227) : !toStringTag)) {
return "Object(" + inspect_(String(cause), r17, r29 + 1, c12368_2) + ")";
}
if (typeof globalThis.window !== "undefined" && cause === window) {
return "{ [object Window] }";
}
if (!(typeof globalThis.globalThis !== "undefined" && cause === globalThis.globalThis) && !(global !== void 0 && cause === global)) {
const call19 = toString.call;
if (!(toString.call(cause) === "[object Date]" && (toStringTag ? !(typeof cause === "object" ? toStringTag in cause || cause[toStringTag] !== void 0 : r227) : !toStringTag))) {
const call20 = toString.call;
let r272 = toString.call(cause) === "[object RegExp]";
if (r272) {
let r274 = !toStringTag;
if (toStringTag) {
if (typeof cause === "object") {
r227 = toStringTag in cause || cause[toStringTag] !== void 0;
}
r274 = !r227;
}
r272 = r274;
}
if (!r272) {
const r36 = arrObjKeys(cause, inspect);
const r280 = c521_29 ? c521_29(cause) === Object.prototype : cause instanceof Object || cause.constructor === Object;
let r38 = cause instanceof Object ? "" : "null prototype";
L240: {
if (!r280 && (toStringTag && (Object(cause) === cause && toStringTag in cause))) {
const call21 = slice.call;
const call22 = toString.call;
const r295 = toString.call(cause);
if (call21 === Function.prototype.call) {
r37 = slice.call(r295, 8, -1);
break L240;
}
r37 = call21.call(slice, r295, 8, -1);
} else {
r37 = r38 ? "Object" : "";
}
}
let r33 = "";
const r301 = r280 ? "" : typeof cause.constructor === "function" ? cause.constructor.name ? cause.constructor.name + " " : "" : "";
L258: {
if (!r37) {
r309 = "";
if (!r38) {
break L258;
}
}
const call23 = join.call;
const call2 = concat.call;
if (!r37) {
r37 = [];
}
if (!r38) {
r38 = [];
}
r309 = "[" + join.call(concat.call([], r37, r38), ": ") + "] ";
}
const r319 = r301 + r309;
if (r36.length === 0) {
r331 = r319 + "{}";
} else if (r106) {
if (r36.length !== 0) {
const r337 = "\n" + r106.prev + r106.base;
const call25 = join.call;
r33 = r337 + join.call(r36, "," + r337) + "\n" + r106.prev;
}
r331 = HermesInternal.concat.call(r319, "{", r33, "}");
} else {
const call24 = join.call;
r331 = r319 + "{ " + join.call(r36, ", ") + " }";
}
return r331;
}
}
return String(cause);
}
return "{ [object globalThis] }";
};
module.exports = inspect_;
c521_35 = Object.prototype.hasOwnProperty || function(a0) {
return a0 in this;
};