decord/source/polyfillsNative.tsx
2026-09-01 10:26:29 +00:00

53 lines
1.4 KiB
TypeScript

// Module ID: 13948
// Function ID: 13949
// Dependencies: [3, 13949, 14019, 14037, 14040, 14043, 511, 1214, 2]
// Module 13948
import set from "set" /* 2 */;
import Buffer from "Buffer" /* 511 */;
import q from "q" /* 1214 */;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" /* 14043 */;
import timestamp from "timestamp" /* 3 */;
import module_13949 from "module_13949" /* 13949 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 14019 */;
import _typeof from "_typeof" /* 14037 */;
import GetOption from "GetOption" /* 14040 */;
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");