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

164 lines
4.3 KiB
JavaScript

// Metro module 4460 (f4461).
import * as _isArguments from "./isArguments_4461";
const keys2 = Object.keys;
let exports2 = void 0;
if (!keys2) {
let c2681_5, equalsConstructorPrototype2, c2681_7, c2681_8;
const hasOwnProperty = Object.prototype.hasOwnProperty;
const toString = Object.prototype.toString;
let c2681_2 = _isArguments;
const propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
let c2681_3 = !propertyIsEnumerable.call({
toString: null
}, "toString");
let c2681_4 = propertyIsEnumerable.call(function() {}, "prototype");
c2681_5 = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"];
equalsConstructorPrototype2 = function equalsConstructorPrototype(a0) {
const constructor = a0.constructor;
return constructor && constructor.prototype === a0;
};
c2681_7 = {
$applicationCache: true,
$console: true,
$external: true,
$frame: true,
$frameElement: true,
$frames: true,
$innerHeight: true,
$innerWidth: true,
$onmozfullscreenchange: true,
$onmozfullscreenerror: true,
$outerHeight: true,
$outerWidth: true,
$pageXOffset: true,
$pageYOffset: true,
$parent: true,
$scrollLeft: true,
$scrollTop: true,
$scrollX: true,
$scrollY: true,
$self: true,
$webkitIndexedDB: true,
$webkitStorageInfo: true,
$window: true
};
c2681_8 = (function() {
if (typeof globalThis.window === "undefined") {
return false;
}
const r6 = window;
for (const key in r6) {
try {
if (c2681_7["$" + key]) {
continue;
}
const call = hasOwnProperty.call;
if (!hasOwnProperty.call(window, key)) {
continue;
}
if (window[key] === null) {
continue;
}
if (typeof window[key] !== "object") {
continue;
}
try {
equalsConstructorPrototype2(window[key]);
continue;
} catch ($e) {}
} catch ($e) {
return true;
}
return true;
}
return false;
})();
exports2 = function keys(a0) {
const r4 = a0 !== null && typeof a0 === "object";
const call = toString.call;
const r9 = toString.call(a0);
const r25 = c2681_2(a0);
let r5 = r4;
if (r5) {
const call2 = toString.call;
r5 = toString.call(a0) === "[object String]";
}
const r6 = r9 === "[object Function]";
if (!r4 && !r6 && !r25) {
throw new TypeError("Object.keys called on a non-object");
}
const r15 = c2681_4 && r6;
const r34 = [];
if (r5 && a0.length > 0) {
const call4 = hasOwnProperty.call;
if (!hasOwnProperty.call(a0, 0)) {
const r40 = 0 < a0.length;
let r42 = 0;
if (r40) {
do {
r34.push(String(r42));
r42 = r42 + 1;
} while (r42 < a0.length);
}
}
}
L39: {
if (r25 && a0.length > 0) {
const r60 = 0 < a0.length;
let r63 = 0;
if (!r60) {
break L39;
}
while (true) {
r34.push(String(r63));
r63 = r63 + 1;
if (!(r63 < a0.length)) {
break L39;
}
}
}
for (const key in a0) {
let r16 = r15 && key === "prototype";
if (!r16) {
const call3 = hasOwnProperty.call;
r16 = !hasOwnProperty.call(a0, key);
}
if (!r16) {
r34.push(String(key));
}
}
}
if (c2681_3) {
let r70 = 0;
const r72 = (function(a0) {
let r7;
if (typeof globalThis.window !== "undefined" && c2681_8) {
try {
r7 = equalsConstructorPrototype2(a0);
} catch ($e) {
return false;
}
return r7;
}
return equalsConstructorPrototype2(a0);
})(a0);
if (0 < c2681_5.length) {
do {
const r78 = r70;
let r79 = r72 && c2681_5[r78] === "constructor";
if (!r79) {
const call5 = hasOwnProperty.call;
r79 = !hasOwnProperty.call(a0, c2681_5[r78]);
}
if (!r79) {
r34.push(c2681_5[r78]);
}
r70 = r78 + 1;
} while (r70 < c2681_5.length);
}
}
return r34;
};
}
module.exports = exports2;