decord/source/polyfillsNative.tsx
2026-09-02 09:53:35 +00:00

53 lines
1.4 KiB
TypeScript

// Module ID: 14171
// Function ID: 14172
// Dependencies: [3, 14172, 14242, 14260, 14263, 14266, 508, 1211, 2]
// Module 14171
import set from "set" /* 2 */;
import Buffer from "Buffer" /* 508 */;
import q from "q" /* 1211 */;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" /* 14266 */;
import timestamp from "timestamp" /* 3 */;
import module_14172 from "module_14172" /* 14172 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 14242 */;
import _typeof from "_typeof" /* 14260 */;
import GetOption from "GetOption" /* 14263 */;
if (typeof process === "undefined") {
const _window3 = window;
window.process = {};
}
window.process.nextTick = setImmediate;
if (null == global.location) {
global.location = { protocol: "https:", host: "discord.com" };
}
if (!global.self) {
global.self = global;
}
if (null == window.crypto) {
const _module5 = _isNativeReflectConstruct;
const _window = window;
window.crypto = global.crypto;
}
if (null == global.Buffer) {
global.Buffer = Buffer.Buffer;
}
if (null == global.__reanimatedWorkletInit) {
global.__reanimatedWorkletInit = () => {
};
}
const fn = function() {
return Array.from(this);
};
Map.prototype.toJSON = fn;
Set.prototype.toJSON = fn;
let tmp7 = null != window.TextEncoder;
if (tmp7) {
const _window2 = window;
tmp7 = null != window.TextDecoder;
}
if (!tmp7) {
const _module6 = q;
}
const result = set.fileFinishedImporting("polyfillsNative.tsx");