decord/source/13374__callSuper.js
2026-07-24 07:16:23 +00:00

111 lines
3.8 KiB
JavaScript

// Module ID: 13374
// Function ID: 102562
// Name: _callSuper
// Dependencies: [7, 6, 15, 17, 18, 162, 27, 13375]
// Module 13374 (_callSuper)
import _defineProperties from "base64Decode";
import _classCallCheck from "get ActivityIndicator";
import "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import _wrapNativeSuper from "_wrapNativeSuper";
import { NativeModules } from "get ActivityIndicator";
function _callSuper(arg0, arg1, arg2) {
let items = arg2;
const obj = _getPrototypeOf(arg1);
if (_isNativeReflectConstruct()) {
if (!items) {
items = [];
}
let constructResult = Reflect.construct(obj, items, _getPrototypeOf(arg0).constructor);
} else {
constructResult = obj.apply(arg0, items);
}
return closure_5(arg0, constructResult);
}
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_9 = ((arg0) => {
class TypeMismatchError {
constructor() {
tmp = outer1_4(this, TypeMismatchError);
return outer1_11(this, TypeMismatchError, arguments);
}
}
_inherits(TypeMismatchError, arg0);
return _defineProperties(TypeMismatchError);
})(_wrapNativeSuper(Error));
let closure_10 = ((arg0) => {
class QuotaExceededError {
constructor() {
tmp = outer1_4(this, QuotaExceededError);
return outer1_11(this, QuotaExceededError, arguments);
}
}
_inherits(QuotaExceededError, arg0);
return _defineProperties(QuotaExceededError);
})(_wrapNativeSuper(Error));
if ("object" !== typeof global.crypto) {
global.crypto = {};
}
if ("function" !== typeof global.crypto.getRandomValues) {
global.crypto.getRandomValues = function getRandomValues(uint8Array) {
if (!(uint8Array instanceof Int8Array)) {
const _Uint8Array = Uint8Array;
if (!(uint8Array instanceof Uint8Array)) {
const _Int16Array = Int16Array;
if (!(uint8Array instanceof Int16Array)) {
const _Uint16Array = Uint16Array;
if (!(uint8Array instanceof Uint16Array)) {
const _Int32Array = Int32Array;
if (!(uint8Array instanceof Int32Array)) {
const _Uint32Array = Uint32Array;
if (!(uint8Array instanceof Uint32Array)) {
const _Uint8ClampedArray = Uint8ClampedArray;
if (!(uint8Array instanceof Uint8ClampedArray)) {
const prototype = ctor.prototype;
const tmp4 = new ctor("Expected an integer array");
throw tmp4;
}
}
}
}
}
}
}
if (uint8Array.byteLength > 65536) {
const prototype4 = ctor2.prototype;
const tmp22 = new ctor2("Can only request a maximum of 65536 bytes");
throw tmp22;
} else {
const byteLength = uint8Array.byteLength;
if (NativeModules.RNGetRandomValues) {
const RNGetRandomValues = tmp28.RNGetRandomValues;
let randomBase64 = RNGetRandomValues.getRandomBase64(byteLength);
} else if (tmp28.ExpoRandom) {
const ExpoRandom2 = NativeModules.ExpoRandom;
randomBase64 = ExpoRandom2.getRandomBase64String(byteLength);
} else if (global.ExpoModules) {
const ExpoRandom = global.ExpoModules.ExpoRandom;
randomBase64 = ExpoRandom.getRandomBase64String(byteLength);
} else {
const _Error = Error;
const error = new Error("Native module not found");
throw error;
}
const _Uint8Array2 = Uint8Array;
uint8Array = new Uint8Array(uint8Array.buffer, uint8Array.byteOffset, uint8Array.byteLength);
require(13375) /* base64Decode */(randomBase64, uint8Array);
return uint8Array;
}
};
}