chore: update source for alpha 348.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
This commit is contained in:
parent
80dafb3dc7
commit
ad105f2d59
14893 changed files with 576372 additions and 575370 deletions
6515
alpha/source.jsonl
6515
alpha/source.jsonl
File diff suppressed because it is too large
Load diff
|
|
@ -50,7 +50,7 @@ let closure_7 = async function _queryCache(arg0, value) {
|
|||
const use = fn(19).use;
|
||||
const jsx = fn(21).jsx;
|
||||
let closure_6 = 1;
|
||||
let closure_8 = { uri: "getChannel", width: "call", height: "right" };
|
||||
let closure_8 = { uri: "Array", width: "call", height: "error" };
|
||||
function _BaseImage(arg0) {
|
||||
({ alt, accessible, aria-labelledby: tmp, aria-busy: tmp2, aria-checked: tmp3, aria-disabled: tmp4, aria-expanded: tmp5, aria-label: tmp7, aria-selected: tmp8, accessibilityLabel, accessibilityLabelledBy, accessibilityState, defaultSource, loadingIndicatorSource, style, onLoadStart, onLoad, onLoadEnd, onError, width, height } = arg0);
|
||||
({ ref, aria-hidden: tmp6, children, source, src, crossOrigin, referrerPolicy, srcSet, resizeMode } = arg0);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export default function processTransform(str) {
|
|||
let entry2 = { key: tmp3, value: Number(match2[1]) };
|
||||
entry1 = entry2;
|
||||
} else {
|
||||
let entry3 = { key: tmp3, value: "Array" };
|
||||
let entry3 = { key: tmp3, value: "y" };
|
||||
entry1 = entry3;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,10 +58,10 @@ function _getGraphQLOperation(operationName) {
|
|||
} else {
|
||||
const match1 = query.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
||||
if (match1) {
|
||||
const obj3 = { operationType: match1[1], operationName: "Array" };
|
||||
const obj3 = { operationType: match1[1], operationName: "y" };
|
||||
obj = obj3;
|
||||
} else {
|
||||
obj = { operationType: "a", operationName: "isArray" };
|
||||
obj = { operationType: "Array", operationName: "PX_16" };
|
||||
}
|
||||
}
|
||||
let operationName2 = obj.operationName;
|
||||
|
|
@ -334,10 +334,10 @@ export const parseGraphQLQuery = function parseGraphQLQuery(str) {
|
|||
} else {
|
||||
const match1 = str.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);
|
||||
if (match1) {
|
||||
const obj3 = { operationType: match1[1], operationName: "Array" };
|
||||
const obj3 = { operationType: match1[1], operationName: "y" };
|
||||
let obj = obj3;
|
||||
} else {
|
||||
obj = { operationType: "a", operationName: "isArray" };
|
||||
obj = { operationType: "Array", operationName: "PX_16" };
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ function _shift(fn) {
|
|||
function createIndexedDbStore(arg0) {
|
||||
let dbName = arg0;
|
||||
function getStore() {
|
||||
if (null == f73345) {
|
||||
if (null == f73380) {
|
||||
let str = dbName.dbName;
|
||||
if (!str) {
|
||||
str = "sentry-offline";
|
||||
|
|
@ -154,12 +154,12 @@ function createIndexedDbStore(arg0) {
|
|||
closure_0.onerror = fn2;
|
||||
closure_0.onabort = fn2;
|
||||
});
|
||||
f73345 = (arg0) => {
|
||||
f73380 = (arg0) => {
|
||||
closure_0 = arg0;
|
||||
return promise.then((transaction) => closure_0(transaction.transaction(openResult, "readwrite").objectStore(openResult)));
|
||||
};
|
||||
}
|
||||
return f73345;
|
||||
return f73380;
|
||||
}
|
||||
const obj = { push: null, unshift: null, shift: null };
|
||||
closure_4 = asyncGeneratorStep(async (arg0, value) => {
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
// Module ID: 5868
|
||||
// Function ID: 5869
|
||||
// Name: __react_navigation__elements_contexts
|
||||
// Dependencies: [19]
|
||||
// Exports: getNamedContext
|
||||
|
||||
// Module 5868 (__react_navigation__elements_contexts)
|
||||
import noop from "module_19" /* 19 */;
|
||||
|
||||
let __react_navigation__elements_contexts = "__react_navigation__elements_contexts";
|
||||
__react_navigation__elements_contexts = globalThis.__react_navigation__elements_contexts;
|
||||
if (__react_navigation__elements_contexts == null) {
|
||||
const _Map = Map;
|
||||
__react_navigation__elements_contexts = new Map();
|
||||
}
|
||||
globalThis.__react_navigation__elements_contexts = __react_navigation__elements_contexts;
|
||||
|
||||
export const getNamedContext = function getNamedContext(FrameContext, arg1) {
|
||||
value = globalThis[__react_navigation__elements_contexts].get(FrameContext);
|
||||
if (!value) {
|
||||
const context = noop.createContext(arg1);
|
||||
context.displayName = FrameContext;
|
||||
const _globalThis = globalThis;
|
||||
const result = globalThis[tmp].set(FrameContext, context);
|
||||
value = context;
|
||||
const obj2 = globalThis[tmp];
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
// Module ID: 5873
|
||||
// Function ID: 5874
|
||||
// Name: __react_navigation__elements_contexts
|
||||
// Dependencies: [19]
|
||||
// Exports: getNamedContext
|
||||
|
||||
// Module 5873 (__react_navigation__elements_contexts)
|
||||
import noop from "module_19" /* 19 */;
|
||||
|
||||
let __react_navigation__elements_contexts = "__react_navigation__elements_contexts";
|
||||
__react_navigation__elements_contexts = globalThis.__react_navigation__elements_contexts;
|
||||
if (__react_navigation__elements_contexts == null) {
|
||||
const _Map = Map;
|
||||
__react_navigation__elements_contexts = new Map();
|
||||
}
|
||||
globalThis.__react_navigation__elements_contexts = __react_navigation__elements_contexts;
|
||||
|
||||
export const getNamedContext = function getNamedContext(FrameContext, arg1) {
|
||||
value = globalThis[__react_navigation__elements_contexts].get(FrameContext);
|
||||
if (!value) {
|
||||
const context = noop.createContext(arg1);
|
||||
context.displayName = FrameContext;
|
||||
const _globalThis = globalThis;
|
||||
const result = globalThis[tmp].set(FrameContext, context);
|
||||
value = context;
|
||||
const obj2 = globalThis[tmp];
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
// Module ID: 8836
|
||||
// Function ID: 8837
|
||||
// Name: _fetchText
|
||||
// Dependencies: [5, 17, 1252]
|
||||
// Exports: fetchText
|
||||
|
||||
// Module 8836 (_fetchText)
|
||||
import Buffer from "Buffer" /* 1252 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _fetchText(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else if (!closure_0) {
|
||||
c1 = 3;
|
||||
const obj = { value: null, done: true };
|
||||
return obj;
|
||||
} else if (obj4.startsWith("data:image/svg+xml;utf8")) {
|
||||
let tmp4 = (function dataUriToXml(arg0) {
|
||||
try {
|
||||
const _decodeURIComponent = decodeURIComponent;
|
||||
const parts = decodeURIComponent(arg0).split(",");
|
||||
const substr = parts.slice(1);
|
||||
return substr.join(",");
|
||||
} catch (tmp3) {
|
||||
const _Error = Error;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const error = new Error("Decoding " + tmp + " failed with error: " + tmp3);
|
||||
throw error;
|
||||
}
|
||||
})(obj4);
|
||||
} else if (obj4.startsWith("data:image/svg+xml;base64")) {
|
||||
tmp4 = decodeBase64Image(obj4);
|
||||
} else {
|
||||
tmp4 = (function fetchUriData(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_1_5.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
})(obj4);
|
||||
}
|
||||
} catch (tmp7) {
|
||||
c1 = tmp;
|
||||
throw tmp7;
|
||||
}
|
||||
}
|
||||
};
|
||||
let closure_5 = async function _fetchUriData() {
|
||||
closure_129_0 = closure_0;
|
||||
const _fetch = fetch;
|
||||
closure_129_1 = await fetch(closure_0);
|
||||
if (!closure_129_1.ok) {
|
||||
const _Error = Error;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const error = new Error("Fetching " + closure_129_0 + " failed with status " + closure_129_1.status);
|
||||
throw error;
|
||||
}
|
||||
await closure_129_1.text();
|
||||
return arg1;
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
function decodeBase64Image(arg0) {
|
||||
const str = decodeURIComponent(arg0);
|
||||
const parts = decodeURIComponent(arg0).split(";")[1].split(",");
|
||||
const substr = parts.slice(1);
|
||||
const joined = substr.join(",");
|
||||
const _Buffer = Buffer.Buffer;
|
||||
const str2 = decodeURIComponent(arg0).split(";")[1];
|
||||
return _Buffer.from(joined, parts[0]).toString("utf-8");
|
||||
}
|
||||
|
||||
export const fetchText = function fetchText(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
106
alpha/source/__helpers/08xxx/8837__fetchText.js
Normal file
106
alpha/source/__helpers/08xxx/8837__fetchText.js
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
// Module ID: 8837
|
||||
// Function ID: 8838
|
||||
// Name: _fetchText
|
||||
// Dependencies: [5, 17, 1252]
|
||||
// Exports: fetchText
|
||||
|
||||
// Module 8837 (_fetchText)
|
||||
import Buffer from "Buffer" /* 1252 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _fetchText(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else if (!closure_0) {
|
||||
c1 = 3;
|
||||
const obj = { value: null, done: true };
|
||||
return obj;
|
||||
} else if (obj4.startsWith("data:image/svg+xml;utf8")) {
|
||||
let tmp4 = (function dataUriToXml(arg0) {
|
||||
try {
|
||||
const _decodeURIComponent = decodeURIComponent;
|
||||
const parts = decodeURIComponent(arg0).split(",");
|
||||
const substr = parts.slice(1);
|
||||
return substr.join(",");
|
||||
} catch (tmp3) {
|
||||
const _Error = Error;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const error = new Error("Decoding " + tmp + " failed with error: " + tmp3);
|
||||
throw error;
|
||||
}
|
||||
})(obj4);
|
||||
} else if (obj4.startsWith("data:image/svg+xml;base64")) {
|
||||
tmp4 = decodeBase64Image(obj4);
|
||||
} else {
|
||||
tmp4 = (function fetchUriData(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_1_5.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
})(obj4);
|
||||
}
|
||||
} catch (tmp7) {
|
||||
c1 = tmp;
|
||||
throw tmp7;
|
||||
}
|
||||
}
|
||||
};
|
||||
let closure_5 = async function _fetchUriData() {
|
||||
closure_129_0 = closure_0;
|
||||
const _fetch = fetch;
|
||||
closure_129_1 = await fetch(closure_0);
|
||||
if (!closure_129_1.ok) {
|
||||
const _Error = Error;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const error = new Error("Fetching " + closure_129_0 + " failed with status " + closure_129_1.status);
|
||||
throw error;
|
||||
}
|
||||
await closure_129_1.text();
|
||||
return arg1;
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
function decodeBase64Image(arg0) {
|
||||
const str = decodeURIComponent(arg0);
|
||||
const parts = decodeURIComponent(arg0).split(";")[1].split(",");
|
||||
const substr = parts.slice(1);
|
||||
const joined = substr.join(",");
|
||||
const _Buffer = Buffer.Buffer;
|
||||
const str2 = decodeURIComponent(arg0).split(";")[1];
|
||||
return _Buffer.from(joined, parts[0]).toString("utf-8");
|
||||
}
|
||||
|
||||
export const fetchText = function fetchText(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,451 +0,0 @@
|
|||
// Module ID: 9960
|
||||
// Function ID: 9961
|
||||
// Name: _asyncLoop
|
||||
// Dependencies: [41, 42, 5, 9961, 9962]
|
||||
// Exports: asyncLoop, byteSwap, byteSwap32, bytesToHex, checkOpts, concatBytes, createView, hexToBytes, isBytes, nextTick, randomBytes, rotl, rotr, toBytes, u32, u8, utf8ToBytes, wrapConstructor, wrapConstructorWithOpts, wrapXOFConstructorWithOpts
|
||||
|
||||
// Module 9960 (_asyncLoop)
|
||||
import _classCallCheck from "_classCallCheck" /* 41 */;
|
||||
import _createClass from "_createClass" /* 42 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = globalThis.__r;
|
||||
|
||||
const Hash = require;
|
||||
let closure_7 = async function _asyncLoop(arg0, value) {
|
||||
if (c6 === 2) {
|
||||
c6 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c6 = 2;
|
||||
if (0 === c5) {
|
||||
if (arg0 === 1) {
|
||||
c6 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c6 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
c4 = 1;
|
||||
c3 = 1;
|
||||
closure_131_0 = closure_0;
|
||||
closure_131_1 = closure_1;
|
||||
closure_131_2 = closure_2;
|
||||
closure_131_3 = undefined;
|
||||
closure_131_4 = undefined;
|
||||
closure_131_5 = undefined;
|
||||
const _Date2 = Date;
|
||||
closure_131_3 = Date.now();
|
||||
closure_131_4 = 0;
|
||||
if (closure_131_4 < closure_0) {
|
||||
closure_131_2(closure_131_4);
|
||||
const _Date = Date;
|
||||
closure_131_5 = Date.now() - closure_131_3;
|
||||
let tmp15 = closure_131_5 >= 0;
|
||||
if (tmp15) {
|
||||
tmp15 = closure_131_5 < closure_131_1;
|
||||
}
|
||||
if (!tmp15) {
|
||||
c5 = 1;
|
||||
c6 = 1;
|
||||
const obj4 = { value: closure_132_1.nextTick(), done: false };
|
||||
return obj4;
|
||||
}
|
||||
}
|
||||
c6 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else if (arg0 === 1) {
|
||||
c6 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c6 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
closure_131_3 = closure_131_3 + closure_131_5;
|
||||
}
|
||||
closure_131_4 = closure_131_4 + 1;
|
||||
} catch (tmp25) {
|
||||
c6 = tmp;
|
||||
throw tmp25;
|
||||
}
|
||||
}
|
||||
};
|
||||
let uint32Array = new Uint32Array([287454020]);
|
||||
let uint8Array = new Uint8Array(uint32Array.buffer);
|
||||
let closure_5 = Array.from({ length: 256 }, (arg0, arg1) => require("checkEnv").padStart(2, "0"));
|
||||
const _0 = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
|
||||
let closure_129_0 = asyncGeneratorStep(async (arg0, value) => {
|
||||
if (c0 === 2) {
|
||||
c0 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c0 = 2;
|
||||
if (arg0 === 1) {
|
||||
c0 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c0 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
c0 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} catch (tmp4) {
|
||||
c0 = tmp;
|
||||
throw tmp4;
|
||||
}
|
||||
}
|
||||
});
|
||||
class Hash {
|
||||
constructor() {
|
||||
tmp = closure_3(this, Hash);
|
||||
return;
|
||||
}
|
||||
}
|
||||
const entry = {
|
||||
key: "clone",
|
||||
value: function clone() {
|
||||
return this._cloneInto();
|
||||
}
|
||||
};
|
||||
let items = [entry];
|
||||
const toString = {}.toString;
|
||||
|
||||
export const isBytes = function isBytes(obj) {
|
||||
let tmp = obj instanceof Uint8Array;
|
||||
if (!tmp) {
|
||||
let tmp3 = null != obj && typeof obj === "object";
|
||||
if (tmp3) {
|
||||
tmp3 = "Uint8Array" === obj.constructor.name;
|
||||
}
|
||||
tmp = tmp3;
|
||||
}
|
||||
return tmp;
|
||||
};
|
||||
export const byteSwap32 = function byteSwap32(B32) {
|
||||
let length;
|
||||
let num = 0;
|
||||
if (0 < B32.length) {
|
||||
do {
|
||||
B32[num] = exports.byteSwap(B32[num]);
|
||||
num = num + 1;
|
||||
length = B32.length;
|
||||
} while (num < length);
|
||||
}
|
||||
};
|
||||
export const bytesToHex = function bytesToHex(arg0) {
|
||||
let length;
|
||||
Hash(9961).bytes(arg0);
|
||||
let num = 0;
|
||||
let str = "";
|
||||
let str2 = "";
|
||||
if (0 < arg0.length) {
|
||||
do {
|
||||
str = `${closure_5[arg0[num]]}`;
|
||||
num = num + 1;
|
||||
str2 = str;
|
||||
length = arg0.length;
|
||||
} while (num < length);
|
||||
}
|
||||
return str2;
|
||||
};
|
||||
export const hexToBytes = function hexToBytes(str) {
|
||||
let sum;
|
||||
if (typeof str !== "string") {
|
||||
const _Error3 = Error;
|
||||
const error = new Error("hex string expected, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const result = length / 2;
|
||||
if (str.length % 2) {
|
||||
const _Error2 = Error;
|
||||
const error1 = new Error("padded hex string expected, got unpadded hex of length " + length);
|
||||
throw error1;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(result);
|
||||
let num = 0;
|
||||
let num5 = 0;
|
||||
if (0 < result) {
|
||||
while (true) {
|
||||
let charCodeAtResult = str.charCodeAt(num);
|
||||
let tmp7 = _0;
|
||||
if (charCodeAtResult >= _0._0) {
|
||||
if (charCodeAtResult <= tmp7._9) {
|
||||
let diff = charCodeAtResult - tmp7._0;
|
||||
sum = num + 1;
|
||||
let charCodeAtResult1 = str.charCodeAt(sum);
|
||||
if (charCodeAtResult1 >= tmp7._0) {
|
||||
if (charCodeAtResult1 <= tmp7._9) {
|
||||
let diff1 = charCodeAtResult1 - tmp7._0;
|
||||
if (undefined === diff) {
|
||||
break;
|
||||
} else if (undefined === diff1) {
|
||||
break;
|
||||
} else {
|
||||
uint8Array[num5] = 16 * diff + diff1;
|
||||
num5 = num5 + 1;
|
||||
num = num + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult1 >= tmp7._A) {
|
||||
if (charCodeAtResult1 <= tmp7._F) {
|
||||
diff1 = charCodeAtResult1 - (tmp7._A - 10);
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult1 >= tmp7._a) {
|
||||
if (charCodeAtResult1 <= tmp7._f) {
|
||||
diff1 = charCodeAtResult1 - (tmp7._a - 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult >= tmp7._A) {
|
||||
if (charCodeAtResult <= tmp7._F) {
|
||||
diff = charCodeAtResult - (tmp7._A - 10);
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult >= tmp7._a) {
|
||||
if (charCodeAtResult <= tmp7._f) {
|
||||
diff = charCodeAtResult - (tmp7._a - 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
const _Error = Error;
|
||||
const error2 = new Error("hex string expected, got non-hex character \"" + (str[num] + str[sum]) + "\" at index " + num);
|
||||
throw error2;
|
||||
}
|
||||
return uint8Array;
|
||||
}
|
||||
}
|
||||
};
|
||||
export const asyncLoop = function asyncLoop(arg0, arg1, arg2) {
|
||||
const self = this;
|
||||
const apply = closure_7.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const utf8ToBytes = function utf8ToBytes(str) {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
const uint8Array = new Uint8Array(encoder.encode(str));
|
||||
return uint8Array;
|
||||
}
|
||||
};
|
||||
export const toBytes = function toBytes(B) {
|
||||
let uint8Array = B;
|
||||
if (typeof B === "string") {
|
||||
if (typeof B !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof B);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(B));
|
||||
}
|
||||
}
|
||||
Hash(9961).bytes(uint8Array);
|
||||
return uint8Array;
|
||||
};
|
||||
export const concatBytes = function concatBytes() {
|
||||
let length;
|
||||
let length2;
|
||||
const items = [...arguments];
|
||||
let num = 0;
|
||||
let num2 = 0;
|
||||
let num3 = 0;
|
||||
if (0 < items.length) {
|
||||
do {
|
||||
let arr2 = items[num];
|
||||
let bytesResult = Hash(9961).bytes(arr2);
|
||||
num2 = num2 + arr2.length;
|
||||
num = num + 1;
|
||||
num3 = num2;
|
||||
length = items.length;
|
||||
} while (num < length);
|
||||
}
|
||||
const uint8Array = new Uint8Array(num3);
|
||||
let num4 = 0;
|
||||
let num5 = 0;
|
||||
if (0 < items.length) {
|
||||
do {
|
||||
let arr3 = items[num5];
|
||||
let result = uint8Array.set(arr3, num4);
|
||||
num4 = num4 + arr3.length;
|
||||
num5 = num5 + 1;
|
||||
length2 = items.length;
|
||||
} while (num5 < length2);
|
||||
}
|
||||
return uint8Array;
|
||||
};
|
||||
export const checkOpts = function checkOpts(arg0, arg1) {
|
||||
if (undefined !== arg1) {
|
||||
const call = toString.call;
|
||||
if ("[object Object]" !== (typeof call === "unknown" ? tmp() : call(arg1))) {
|
||||
const _Error = Error;
|
||||
const error = new Error("Options should be object or undefined");
|
||||
throw error;
|
||||
}
|
||||
tmp = toString;
|
||||
}
|
||||
return Object.assign(arg0, arg1);
|
||||
};
|
||||
export const wrapConstructor = function wrapConstructor(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9961).bytes(uint8Array);
|
||||
const obj = closure_0();
|
||||
return closure_0().update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn());
|
||||
hashC.create = () => closure_0();
|
||||
return hashC;
|
||||
};
|
||||
export const wrapConstructorWithOpts = function wrapConstructorWithOpts(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str, arg1) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9961).bytes(uint8Array);
|
||||
const obj = closure_0(arg1);
|
||||
return closure_0(arg1).update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn({}));
|
||||
hashC.create = (arg0) => closure_0(arg0);
|
||||
return hashC;
|
||||
};
|
||||
export const wrapXOFConstructorWithOpts = function wrapXOFConstructorWithOpts(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str, arg1) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9961).bytes(uint8Array);
|
||||
const obj = closure_0(arg1);
|
||||
return closure_0(arg1).update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn({}));
|
||||
hashC.create = (arg0) => closure_0(arg0);
|
||||
return hashC;
|
||||
};
|
||||
export const randomBytes = function randomBytes(result) {
|
||||
let num = result;
|
||||
if (result === undefined) {
|
||||
num = 32;
|
||||
}
|
||||
if (Hash(9962).crypto) {
|
||||
if (typeof tmp(9962).crypto.getRandomValues === "function") {
|
||||
const _crypto2 = tmp(9962).crypto;
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(num);
|
||||
return _crypto2.getRandomValues(uint8Array);
|
||||
}
|
||||
}
|
||||
if (Hash(9962).crypto) {
|
||||
if (typeof tmp(9962).crypto.randomBytes === "function") {
|
||||
const _crypto = tmp(9962).crypto;
|
||||
return _crypto.randomBytes(num);
|
||||
}
|
||||
}
|
||||
const error = new Error("crypto.getRandomValues must be defined");
|
||||
throw error;
|
||||
};
|
||||
export const u8 = (buffer) => {
|
||||
const uint8Array = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
||||
return uint8Array;
|
||||
};
|
||||
export const u32 = (buffer) => {
|
||||
const uint32Array = new Uint32Array(buffer.buffer, buffer.byteOffset, Math.floor(buffer.byteLength / 4));
|
||||
return uint32Array;
|
||||
};
|
||||
export const createView = (buffer) => {
|
||||
const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
||||
return dataView;
|
||||
};
|
||||
export const rotr = (arg0, arg1) => arg0 << 32 - arg1 | arg0 >>> arg1;
|
||||
export const rotl = (arg0, arg1) => arg0 << arg1 | arg0 >>> 32 - arg1 >>> 0;
|
||||
export const isLE = 68 === uint8Array[0];
|
||||
export const byteSwap = (arg0) => arg0 << 24 & 4278190080 | arg0 << 8 & 16711680 | arg0 >>> 8 & 65280 | arg0 >>> 24 & 255;
|
||||
export const byteSwapIfBE = exports.isLE ? ((arg0) => arg0) : ((arg0) => exports.byteSwap(arg0));
|
||||
export const nextTick = function nextTick() {
|
||||
const self = this;
|
||||
const apply = Hash.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const Hash = _createClass(Hash, items);
|
||||
451
alpha/source/__helpers/09xxx/9961__asyncLoop.js
Normal file
451
alpha/source/__helpers/09xxx/9961__asyncLoop.js
Normal file
|
|
@ -0,0 +1,451 @@
|
|||
// Module ID: 9961
|
||||
// Function ID: 9962
|
||||
// Name: _asyncLoop
|
||||
// Dependencies: [41, 42, 5, 9962, 9963]
|
||||
// Exports: asyncLoop, byteSwap, byteSwap32, bytesToHex, checkOpts, concatBytes, createView, hexToBytes, isBytes, nextTick, randomBytes, rotl, rotr, toBytes, u32, u8, utf8ToBytes, wrapConstructor, wrapConstructorWithOpts, wrapXOFConstructorWithOpts
|
||||
|
||||
// Module 9961 (_asyncLoop)
|
||||
import _classCallCheck from "_classCallCheck" /* 41 */;
|
||||
import _createClass from "_createClass" /* 42 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = globalThis.__r;
|
||||
|
||||
const Hash = require;
|
||||
let closure_7 = async function _asyncLoop(arg0, value) {
|
||||
if (c6 === 2) {
|
||||
c6 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c6 = 2;
|
||||
if (0 === c5) {
|
||||
if (arg0 === 1) {
|
||||
c6 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c6 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
c4 = 1;
|
||||
c3 = 1;
|
||||
closure_131_0 = closure_0;
|
||||
closure_131_1 = closure_1;
|
||||
closure_131_2 = closure_2;
|
||||
closure_131_3 = undefined;
|
||||
closure_131_4 = undefined;
|
||||
closure_131_5 = undefined;
|
||||
const _Date2 = Date;
|
||||
closure_131_3 = Date.now();
|
||||
closure_131_4 = 0;
|
||||
if (closure_131_4 < closure_0) {
|
||||
closure_131_2(closure_131_4);
|
||||
const _Date = Date;
|
||||
closure_131_5 = Date.now() - closure_131_3;
|
||||
let tmp15 = closure_131_5 >= 0;
|
||||
if (tmp15) {
|
||||
tmp15 = closure_131_5 < closure_131_1;
|
||||
}
|
||||
if (!tmp15) {
|
||||
c5 = 1;
|
||||
c6 = 1;
|
||||
const obj4 = { value: closure_132_1.nextTick(), done: false };
|
||||
return obj4;
|
||||
}
|
||||
}
|
||||
c6 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else if (arg0 === 1) {
|
||||
c6 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c6 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
closure_131_3 = closure_131_3 + closure_131_5;
|
||||
}
|
||||
closure_131_4 = closure_131_4 + 1;
|
||||
} catch (tmp25) {
|
||||
c6 = tmp;
|
||||
throw tmp25;
|
||||
}
|
||||
}
|
||||
};
|
||||
let uint32Array = new Uint32Array([287454020]);
|
||||
let uint8Array = new Uint8Array(uint32Array.buffer);
|
||||
let closure_5 = Array.from({ length: 256 }, (arg0, arg1) => require("checkEnv").padStart(2, "0"));
|
||||
const _0 = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
|
||||
let closure_129_0 = asyncGeneratorStep(async (arg0, value) => {
|
||||
if (c0 === 2) {
|
||||
c0 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c0 = 2;
|
||||
if (arg0 === 1) {
|
||||
c0 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c0 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
c0 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} catch (tmp4) {
|
||||
c0 = tmp;
|
||||
throw tmp4;
|
||||
}
|
||||
}
|
||||
});
|
||||
class Hash {
|
||||
constructor() {
|
||||
tmp = closure_3(this, Hash);
|
||||
return;
|
||||
}
|
||||
}
|
||||
const entry = {
|
||||
key: "clone",
|
||||
value: function clone() {
|
||||
return this._cloneInto();
|
||||
}
|
||||
};
|
||||
let items = [entry];
|
||||
const toString = {}.toString;
|
||||
|
||||
export const isBytes = function isBytes(obj) {
|
||||
let tmp = obj instanceof Uint8Array;
|
||||
if (!tmp) {
|
||||
let tmp3 = null != obj && typeof obj === "object";
|
||||
if (tmp3) {
|
||||
tmp3 = "Uint8Array" === obj.constructor.name;
|
||||
}
|
||||
tmp = tmp3;
|
||||
}
|
||||
return tmp;
|
||||
};
|
||||
export const byteSwap32 = function byteSwap32(B32) {
|
||||
let length;
|
||||
let num = 0;
|
||||
if (0 < B32.length) {
|
||||
do {
|
||||
B32[num] = exports.byteSwap(B32[num]);
|
||||
num = num + 1;
|
||||
length = B32.length;
|
||||
} while (num < length);
|
||||
}
|
||||
};
|
||||
export const bytesToHex = function bytesToHex(arg0) {
|
||||
let length;
|
||||
Hash(9962).bytes(arg0);
|
||||
let num = 0;
|
||||
let str = "";
|
||||
let str2 = "";
|
||||
if (0 < arg0.length) {
|
||||
do {
|
||||
str = `${closure_5[arg0[num]]}`;
|
||||
num = num + 1;
|
||||
str2 = str;
|
||||
length = arg0.length;
|
||||
} while (num < length);
|
||||
}
|
||||
return str2;
|
||||
};
|
||||
export const hexToBytes = function hexToBytes(str) {
|
||||
let sum;
|
||||
if (typeof str !== "string") {
|
||||
const _Error3 = Error;
|
||||
const error = new Error("hex string expected, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const result = length / 2;
|
||||
if (str.length % 2) {
|
||||
const _Error2 = Error;
|
||||
const error1 = new Error("padded hex string expected, got unpadded hex of length " + length);
|
||||
throw error1;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(result);
|
||||
let num = 0;
|
||||
let num5 = 0;
|
||||
if (0 < result) {
|
||||
while (true) {
|
||||
let charCodeAtResult = str.charCodeAt(num);
|
||||
let tmp7 = _0;
|
||||
if (charCodeAtResult >= _0._0) {
|
||||
if (charCodeAtResult <= tmp7._9) {
|
||||
let diff = charCodeAtResult - tmp7._0;
|
||||
sum = num + 1;
|
||||
let charCodeAtResult1 = str.charCodeAt(sum);
|
||||
if (charCodeAtResult1 >= tmp7._0) {
|
||||
if (charCodeAtResult1 <= tmp7._9) {
|
||||
let diff1 = charCodeAtResult1 - tmp7._0;
|
||||
if (undefined === diff) {
|
||||
break;
|
||||
} else if (undefined === diff1) {
|
||||
break;
|
||||
} else {
|
||||
uint8Array[num5] = 16 * diff + diff1;
|
||||
num5 = num5 + 1;
|
||||
num = num + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult1 >= tmp7._A) {
|
||||
if (charCodeAtResult1 <= tmp7._F) {
|
||||
diff1 = charCodeAtResult1 - (tmp7._A - 10);
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult1 >= tmp7._a) {
|
||||
if (charCodeAtResult1 <= tmp7._f) {
|
||||
diff1 = charCodeAtResult1 - (tmp7._a - 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult >= tmp7._A) {
|
||||
if (charCodeAtResult <= tmp7._F) {
|
||||
diff = charCodeAtResult - (tmp7._A - 10);
|
||||
}
|
||||
}
|
||||
if (charCodeAtResult >= tmp7._a) {
|
||||
if (charCodeAtResult <= tmp7._f) {
|
||||
diff = charCodeAtResult - (tmp7._a - 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
const _Error = Error;
|
||||
const error2 = new Error("hex string expected, got non-hex character \"" + (str[num] + str[sum]) + "\" at index " + num);
|
||||
throw error2;
|
||||
}
|
||||
return uint8Array;
|
||||
}
|
||||
}
|
||||
};
|
||||
export const asyncLoop = function asyncLoop(arg0, arg1, arg2) {
|
||||
const self = this;
|
||||
const apply = closure_7.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const utf8ToBytes = function utf8ToBytes(str) {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
const uint8Array = new Uint8Array(encoder.encode(str));
|
||||
return uint8Array;
|
||||
}
|
||||
};
|
||||
export const toBytes = function toBytes(B) {
|
||||
let uint8Array = B;
|
||||
if (typeof B === "string") {
|
||||
if (typeof B !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof B);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(B));
|
||||
}
|
||||
}
|
||||
Hash(9962).bytes(uint8Array);
|
||||
return uint8Array;
|
||||
};
|
||||
export const concatBytes = function concatBytes() {
|
||||
let length;
|
||||
let length2;
|
||||
const items = [...arguments];
|
||||
let num = 0;
|
||||
let num2 = 0;
|
||||
let num3 = 0;
|
||||
if (0 < items.length) {
|
||||
do {
|
||||
let arr2 = items[num];
|
||||
let bytesResult = Hash(9962).bytes(arr2);
|
||||
num2 = num2 + arr2.length;
|
||||
num = num + 1;
|
||||
num3 = num2;
|
||||
length = items.length;
|
||||
} while (num < length);
|
||||
}
|
||||
const uint8Array = new Uint8Array(num3);
|
||||
let num4 = 0;
|
||||
let num5 = 0;
|
||||
if (0 < items.length) {
|
||||
do {
|
||||
let arr3 = items[num5];
|
||||
let result = uint8Array.set(arr3, num4);
|
||||
num4 = num4 + arr3.length;
|
||||
num5 = num5 + 1;
|
||||
length2 = items.length;
|
||||
} while (num5 < length2);
|
||||
}
|
||||
return uint8Array;
|
||||
};
|
||||
export const checkOpts = function checkOpts(arg0, arg1) {
|
||||
if (undefined !== arg1) {
|
||||
const call = toString.call;
|
||||
if ("[object Object]" !== (typeof call === "unknown" ? tmp() : call(arg1))) {
|
||||
const _Error = Error;
|
||||
const error = new Error("Options should be object or undefined");
|
||||
throw error;
|
||||
}
|
||||
tmp = toString;
|
||||
}
|
||||
return Object.assign(arg0, arg1);
|
||||
};
|
||||
export const wrapConstructor = function wrapConstructor(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9962).bytes(uint8Array);
|
||||
const obj = closure_0();
|
||||
return closure_0().update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn());
|
||||
hashC.create = () => closure_0();
|
||||
return hashC;
|
||||
};
|
||||
export const wrapConstructorWithOpts = function wrapConstructorWithOpts(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str, arg1) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9962).bytes(uint8Array);
|
||||
const obj = closure_0(arg1);
|
||||
return closure_0(arg1).update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn({}));
|
||||
hashC.create = (arg0) => closure_0(arg0);
|
||||
return hashC;
|
||||
};
|
||||
export const wrapXOFConstructorWithOpts = function wrapXOFConstructorWithOpts(fn) {
|
||||
closure_0 = fn;
|
||||
function hashC(str, arg1) {
|
||||
let uint8Array = str;
|
||||
if (typeof str === "string") {
|
||||
if (typeof str !== "string") {
|
||||
const _Error = Error;
|
||||
const error = new Error("utf8ToBytes expected string, got " + typeof str);
|
||||
throw error;
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
const _TextEncoder = TextEncoder;
|
||||
const encoder = new TextEncoder();
|
||||
uint8Array = new Uint8Array(encoder.encode(str));
|
||||
}
|
||||
}
|
||||
Hash(9962).bytes(uint8Array);
|
||||
const obj = closure_0(arg1);
|
||||
return closure_0(arg1).update(uint8Array).digest();
|
||||
}
|
||||
({ outputLen: hashC.outputLen, blockLen: hashC.blockLen } = fn({}));
|
||||
hashC.create = (arg0) => closure_0(arg0);
|
||||
return hashC;
|
||||
};
|
||||
export const randomBytes = function randomBytes(result) {
|
||||
let num = result;
|
||||
if (result === undefined) {
|
||||
num = 32;
|
||||
}
|
||||
if (Hash(9963).crypto) {
|
||||
if (typeof tmp(9963).crypto.getRandomValues === "function") {
|
||||
const _crypto2 = tmp(9963).crypto;
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(num);
|
||||
return _crypto2.getRandomValues(uint8Array);
|
||||
}
|
||||
}
|
||||
if (Hash(9963).crypto) {
|
||||
if (typeof tmp(9963).crypto.randomBytes === "function") {
|
||||
const _crypto = tmp(9963).crypto;
|
||||
return _crypto.randomBytes(num);
|
||||
}
|
||||
}
|
||||
const error = new Error("crypto.getRandomValues must be defined");
|
||||
throw error;
|
||||
};
|
||||
export const u8 = (buffer) => {
|
||||
const uint8Array = new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
||||
return uint8Array;
|
||||
};
|
||||
export const u32 = (buffer) => {
|
||||
const uint32Array = new Uint32Array(buffer.buffer, buffer.byteOffset, Math.floor(buffer.byteLength / 4));
|
||||
return uint32Array;
|
||||
};
|
||||
export const createView = (buffer) => {
|
||||
const dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
||||
return dataView;
|
||||
};
|
||||
export const rotr = (arg0, arg1) => arg0 << 32 - arg1 | arg0 >>> arg1;
|
||||
export const rotl = (arg0, arg1) => arg0 << arg1 | arg0 >>> 32 - arg1 >>> 0;
|
||||
export const isLE = 68 === uint8Array[0];
|
||||
export const byteSwap = (arg0) => arg0 << 24 & 4278190080 | arg0 << 8 & 16711680 | arg0 >>> 8 & 65280 | arg0 >>> 24 & 255;
|
||||
export const byteSwapIfBE = exports.isLE ? ((arg0) => arg0) : ((arg0) => exports.byteSwap(arg0));
|
||||
export const nextTick = function nextTick() {
|
||||
const self = this;
|
||||
const apply = Hash.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const Hash = _createClass(Hash, items);
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
// Module ID: 11494
|
||||
// Function ID: 11495
|
||||
// Name: _pickDirectory
|
||||
// Dependencies: [5, 17, 11490]
|
||||
// Exports: pickDirectory
|
||||
|
||||
// Module 11494 (_pickDirectory)
|
||||
import _mod11490 from "module_11490" /* 11490 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _pickDirectory(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
const obj = { mode: "open" };
|
||||
const merged = Object.assign(closure_0);
|
||||
const NativeDocumentPicker = _mod11490.NativeDocumentPicker;
|
||||
c1 = 3;
|
||||
const obj4 = { value: NativeDocumentPicker.pickDirectory(obj), done: true };
|
||||
return obj4;
|
||||
}
|
||||
} catch (tmp9) {
|
||||
c1 = tmp;
|
||||
throw tmp9;
|
||||
}
|
||||
}
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const pickDirectory = function pickDirectory(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,135 +0,0 @@
|
|||
// Module ID: 11495
|
||||
// Function ID: 11496
|
||||
// Name: _pick
|
||||
// Dependencies: [5, 17, 11492, 11490, 11496]
|
||||
// Exports: pick
|
||||
|
||||
// Module 11495 (_pick)
|
||||
import _mod11490 from "module_11490" /* 11490 */;
|
||||
import _mod11492 from "module_11492" /* 11492 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _pick(arg0, value) {
|
||||
if (c8 === 2) {
|
||||
c8 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
while (true) {
|
||||
c8 = 2;
|
||||
let tmp4 = c7;
|
||||
if (0 === c7) {
|
||||
if (arg0 === 1) {
|
||||
c8 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c8 = 3;
|
||||
let obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
closure_4 = tmp;
|
||||
closure_3 = tmp4;
|
||||
let tmp44 = closure_0;
|
||||
closure_131_0 = undefined;
|
||||
closure_131_1 = undefined;
|
||||
closure_131_2 = undefined;
|
||||
let type1;
|
||||
if (closure_0 != null) {
|
||||
type1 = tmp44.type;
|
||||
}
|
||||
if (type1) {
|
||||
let _Array = Array;
|
||||
let fn = tmp44.type;
|
||||
if (Array.isArray(tmp44.type)) {
|
||||
let items = fn;
|
||||
} else {
|
||||
items = [fn];
|
||||
}
|
||||
let flatResult = items.flat();
|
||||
fn = (str) => str.trim();
|
||||
let mapped = flatResult.map(fn);
|
||||
} else {
|
||||
let items1 = [_mod11492.types.allFiles];
|
||||
let obj4 = { mode: "import", allowMultiSelection: false, allowVirtualFiles: false };
|
||||
let merged = Object.assign(tmp44);
|
||||
obj4.type = items1;
|
||||
closure_131_0 = obj4;
|
||||
let type = obj4.type;
|
||||
if (type.every((item) => typeof item === "string")) {
|
||||
if ("mode" in obj4) {
|
||||
let items2 = ["import", "open"];
|
||||
if (!items2.includes(obj4.mode)) {
|
||||
let _TypeError2 = TypeError;
|
||||
let tmp30 = new.target;
|
||||
let tmp31 = new.target;
|
||||
let typeError = new TypeError("Invalid mode option: " + obj4.mode);
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
let NativeDocumentPicker = _mod11490.NativeDocumentPicker;
|
||||
c7 = 1;
|
||||
c8 = 1;
|
||||
let obj5 = { value: NativeDocumentPicker.pick(obj4), done: false };
|
||||
return obj5;
|
||||
} else {
|
||||
let _TypeError = TypeError;
|
||||
let _HermesInternal = HermesInternal;
|
||||
let tmp26 = new.target;
|
||||
let tmp27 = new.target;
|
||||
let typeError1 = new TypeError("Unexpected type option in " + obj4.type + ", did you try using a DocumentPicker.types.* that does not exist?");
|
||||
throw typeError1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (1 === tmp4) {
|
||||
if (arg0 === 1) {
|
||||
c8 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c8 = 3;
|
||||
let obj6 = { value, done: true };
|
||||
return obj6;
|
||||
} else {
|
||||
closure_131_1 = value;
|
||||
closure_2 = closure_131_1;
|
||||
dependencyMap = closure_131_1[Symbol.iterator]();
|
||||
while (dependencyMap !== undefined) {
|
||||
closure_131_2 = tmp10;
|
||||
let obj = closure_132_0(closure_132_1[4]);
|
||||
closure_131_2.hasRequestedType = obj.safeValidate(closure_131_0.type, closure_131_2);
|
||||
c6 = 0;
|
||||
continue;
|
||||
}
|
||||
c8 = 3;
|
||||
let obj7 = { value: closure_131_1, done: true };
|
||||
return obj7;
|
||||
}
|
||||
} else {
|
||||
c6 = 0;
|
||||
dependencyMap.return();
|
||||
throw hasOwnProperty;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const pick = function pick(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
60
alpha/source/__helpers/11xxx/11496__pickDirectory.js
Normal file
60
alpha/source/__helpers/11xxx/11496__pickDirectory.js
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
// Module ID: 11496
|
||||
// Function ID: 11497
|
||||
// Name: _pickDirectory
|
||||
// Dependencies: [5, 17, 11492]
|
||||
// Exports: pickDirectory
|
||||
|
||||
// Module 11496 (_pickDirectory)
|
||||
import _mod11492 from "module_11492" /* 11492 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _pickDirectory(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
const obj = { mode: "open" };
|
||||
const merged = Object.assign(closure_0);
|
||||
const NativeDocumentPicker = _mod11492.NativeDocumentPicker;
|
||||
c1 = 3;
|
||||
const obj4 = { value: NativeDocumentPicker.pickDirectory(obj), done: true };
|
||||
return obj4;
|
||||
}
|
||||
} catch (tmp9) {
|
||||
c1 = tmp;
|
||||
throw tmp9;
|
||||
}
|
||||
}
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const pickDirectory = function pickDirectory(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
135
alpha/source/__helpers/11xxx/11497__pick.js
Normal file
135
alpha/source/__helpers/11xxx/11497__pick.js
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
// Module ID: 11497
|
||||
// Function ID: 11498
|
||||
// Name: _pick
|
||||
// Dependencies: [5, 17, 11494, 11492, 11498]
|
||||
// Exports: pick
|
||||
|
||||
// Module 11497 (_pick)
|
||||
import _mod11492 from "module_11492" /* 11492 */;
|
||||
import _mod11494 from "module_11494" /* 11494 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
require = fn;
|
||||
let closure_3 = async function _pick(arg0, value) {
|
||||
if (c8 === 2) {
|
||||
c8 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
while (true) {
|
||||
c8 = 2;
|
||||
let tmp4 = c7;
|
||||
if (0 === c7) {
|
||||
if (arg0 === 1) {
|
||||
c8 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c8 = 3;
|
||||
let obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
closure_4 = tmp;
|
||||
closure_3 = tmp4;
|
||||
let tmp44 = closure_0;
|
||||
closure_131_0 = undefined;
|
||||
closure_131_1 = undefined;
|
||||
closure_131_2 = undefined;
|
||||
let type1;
|
||||
if (closure_0 != null) {
|
||||
type1 = tmp44.type;
|
||||
}
|
||||
if (type1) {
|
||||
let _Array = Array;
|
||||
let fn = tmp44.type;
|
||||
if (Array.isArray(tmp44.type)) {
|
||||
let items = fn;
|
||||
} else {
|
||||
items = [fn];
|
||||
}
|
||||
let flatResult = items.flat();
|
||||
fn = (str) => str.trim();
|
||||
let mapped = flatResult.map(fn);
|
||||
} else {
|
||||
let items1 = [_mod11494.types.allFiles];
|
||||
let obj4 = { mode: "import", allowMultiSelection: false, allowVirtualFiles: false };
|
||||
let merged = Object.assign(tmp44);
|
||||
obj4.type = items1;
|
||||
closure_131_0 = obj4;
|
||||
let type = obj4.type;
|
||||
if (type.every((item) => typeof item === "string")) {
|
||||
if ("mode" in obj4) {
|
||||
let items2 = ["import", "open"];
|
||||
if (!items2.includes(obj4.mode)) {
|
||||
let _TypeError2 = TypeError;
|
||||
let tmp30 = new.target;
|
||||
let tmp31 = new.target;
|
||||
let typeError = new TypeError("Invalid mode option: " + obj4.mode);
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
let NativeDocumentPicker = _mod11492.NativeDocumentPicker;
|
||||
c7 = 1;
|
||||
c8 = 1;
|
||||
let obj5 = { value: NativeDocumentPicker.pick(obj4), done: false };
|
||||
return obj5;
|
||||
} else {
|
||||
let _TypeError = TypeError;
|
||||
let _HermesInternal = HermesInternal;
|
||||
let tmp26 = new.target;
|
||||
let tmp27 = new.target;
|
||||
let typeError1 = new TypeError("Unexpected type option in " + obj4.type + ", did you try using a DocumentPicker.types.* that does not exist?");
|
||||
throw typeError1;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (1 === tmp4) {
|
||||
if (arg0 === 1) {
|
||||
c8 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c8 = 3;
|
||||
let obj6 = { value, done: true };
|
||||
return obj6;
|
||||
} else {
|
||||
closure_131_1 = value;
|
||||
closure_2 = closure_131_1;
|
||||
dependencyMap = closure_131_1[Symbol.iterator]();
|
||||
while (dependencyMap !== undefined) {
|
||||
closure_131_2 = tmp10;
|
||||
let obj = closure_132_0(closure_132_1[4]);
|
||||
closure_131_2.hasRequestedType = obj.safeValidate(closure_131_0.type, closure_131_2);
|
||||
c6 = 0;
|
||||
continue;
|
||||
}
|
||||
c8 = 3;
|
||||
let obj7 = { value: closure_131_1, done: true };
|
||||
return obj7;
|
||||
}
|
||||
} else {
|
||||
c6 = 0;
|
||||
dependencyMap.return();
|
||||
throw hasOwnProperty;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const pick = function pick(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
// Module ID: 11497
|
||||
// Function ID: 11498
|
||||
// Name: _saveDocuments
|
||||
// Dependencies: [5, 17, 11490]
|
||||
// Exports: saveDocuments
|
||||
|
||||
// Module 11497 (_saveDocuments)
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = fn;
|
||||
let closure_3 = async function _saveDocuments() {
|
||||
closure_1 = tmp2;
|
||||
await asyncGeneratorStep(async () => {
|
||||
if (tmp2.sourceUris.length > 1) {
|
||||
const _console = console;
|
||||
const _HermesInternal = HermesInternal;
|
||||
console.warn("DocumentPicker.saveDocuments: Android only allows to save one file at a time.\n\n You provided an array with " + length + " entries.");
|
||||
}
|
||||
const NativeDocumentPicker2 = tmp2(11490).NativeDocumentPicker;
|
||||
closure_128_0 = await NativeDocumentPicker2.saveDocument(tmp2);
|
||||
const NativeDocumentPicker = tmp2(11490).NativeDocumentPicker;
|
||||
await NativeDocumentPicker.writeDocuments(closure_128_0);
|
||||
return arg1;
|
||||
})();
|
||||
return arg1.map(closure_129_4);
|
||||
};
|
||||
function keepOnlySpecifiedFields(uri) {
|
||||
return { uri: uri.uri, name: uri.name, error: uri.error };
|
||||
}
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const saveDocuments = function saveDocuments(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
41
alpha/source/__helpers/11xxx/11499__saveDocuments.js
Normal file
41
alpha/source/__helpers/11xxx/11499__saveDocuments.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
// Module ID: 11499
|
||||
// Function ID: 11500
|
||||
// Name: _saveDocuments
|
||||
// Dependencies: [5, 17, 11492]
|
||||
// Exports: saveDocuments
|
||||
|
||||
// Module 11499 (_saveDocuments)
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = fn;
|
||||
let closure_3 = async function _saveDocuments() {
|
||||
closure_1 = tmp2;
|
||||
await asyncGeneratorStep(async () => {
|
||||
if (tmp2.sourceUris.length > 1) {
|
||||
const _console = console;
|
||||
const _HermesInternal = HermesInternal;
|
||||
console.warn("DocumentPicker.saveDocuments: Android only allows to save one file at a time.\n\n You provided an array with " + length + " entries.");
|
||||
}
|
||||
const NativeDocumentPicker2 = tmp2(11492).NativeDocumentPicker;
|
||||
closure_128_0 = await NativeDocumentPicker2.saveDocument(tmp2);
|
||||
const NativeDocumentPicker = tmp2(11492).NativeDocumentPicker;
|
||||
await NativeDocumentPicker.writeDocuments(closure_128_0);
|
||||
return arg1;
|
||||
})();
|
||||
return arg1.map(closure_129_4);
|
||||
};
|
||||
function keepOnlySpecifiedFields(uri) {
|
||||
return { uri: uri.uri, name: uri.name, error: uri.error };
|
||||
}
|
||||
const Platform = fn(17).Platform;
|
||||
|
||||
export const saveDocuments = function saveDocuments(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,358 +0,0 @@
|
|||
// Module ID: 13096
|
||||
// Function ID: 13097
|
||||
// Name: _flush
|
||||
// Dependencies: [5, 13075, 13097, 13076, 13048, 13059, 13062, 13055, 13085, 13049, 13071]
|
||||
// Exports: addEventProcessor, captureCheckIn, captureEvent, captureException, captureMessage, captureSession, close, flush, isEnabled, isInitialized, lastEventId, setContext, setExtra, setExtras, setTag, setTags, setUser, startSession, withMonitor
|
||||
|
||||
// Module 13096 (_flush)
|
||||
import _mod13049 from "module_13049" /* 13049 */;
|
||||
import _mod13059 from "module_13059" /* 13059 */;
|
||||
import _mod13062 from "module_13062" /* 13062 */;
|
||||
import _mod13071 from "module_13071" /* 13071 */;
|
||||
import _mod13075 from "module_13075" /* 13075 */;
|
||||
import _mod13097 from "module_13097" /* 13097 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = globalThis.__r;
|
||||
|
||||
let closure_3 = async function _flush(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
const client = require("module_13075").getClient();
|
||||
if (client) {
|
||||
client.flush(tmp13);
|
||||
} else {
|
||||
if (tmp14(tmp15[3]).DEBUG_BUILD) {
|
||||
const logger = tmp14(tmp15[4]).logger;
|
||||
logger.warn("Cannot flush events. No client defined.");
|
||||
}
|
||||
const resolved = Promise.resolve(false);
|
||||
}
|
||||
c1 = 3;
|
||||
const obj3 = require("module_13075");
|
||||
tmp13 = closure_0;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c1 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
let closure_4 = async function _close(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
const client = require("module_13075").getClient();
|
||||
if (client) {
|
||||
client.close(tmp13);
|
||||
} else {
|
||||
if (tmp14(tmp15[3]).DEBUG_BUILD) {
|
||||
const logger = tmp14(tmp15[4]).logger;
|
||||
logger.warn("Cannot flush events and disable SDK. No client defined.");
|
||||
}
|
||||
const resolved = Promise.resolve(false);
|
||||
}
|
||||
c1 = 3;
|
||||
const obj3 = require("module_13075");
|
||||
tmp13 = closure_0;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c1 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
function endSession() {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
const tmp3 = currentScope.getSession() || isolationScope.getSession();
|
||||
if (tmp3) {
|
||||
tmp(13071).closeSession(tmp3);
|
||||
const tmpResult = tmp(13071);
|
||||
}
|
||||
const isolationScope1 = _mod13075.getIsolationScope();
|
||||
const tmpResult4 = _mod13075;
|
||||
const currentScope1 = _mod13075.getCurrentScope();
|
||||
const tmpResult5 = _mod13075;
|
||||
const client = _mod13075.getClient();
|
||||
const tmp5 = currentScope1.getSession() || isolationScope1.getSession();
|
||||
let tmp6 = tmp5;
|
||||
if (tmp5) {
|
||||
tmp6 = client;
|
||||
}
|
||||
if (tmp6) {
|
||||
client.captureSession(tmp5);
|
||||
}
|
||||
isolationScope.setSession();
|
||||
currentScope.setSession();
|
||||
}
|
||||
|
||||
export const addEventProcessor = function addEventProcessor(arg0) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.addEventProcessor(arg0);
|
||||
};
|
||||
export const captureCheckIn = function captureCheckIn(arg0, arg1) {
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
const client = _mod13075.getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
return client.captureCheckIn(arg0, arg1, currentScope);
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
const logger2 = tmp(13048).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
const logger = tmp(13048).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
return _mod13059.uuid4();
|
||||
};
|
||||
export const captureEvent = function captureEvent(arg0, arg1) {
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
return currentScope.captureEvent(arg0, arg1);
|
||||
};
|
||||
export const captureException = function captureException(arg0, arg1) {
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
return currentScope.captureException(arg0, _mod13097.parseEventHintOrCaptureContext(arg1));
|
||||
};
|
||||
export const captureMessage = function captureMessage(arg0, captureContext) {
|
||||
let tmp;
|
||||
if (typeof captureContext === "string") {
|
||||
tmp = captureContext;
|
||||
}
|
||||
let tmp2;
|
||||
if (typeof captureContext !== "string") {
|
||||
const obj2 = { captureContext };
|
||||
tmp2 = obj2;
|
||||
}
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
return currentScope.captureMessage(arg0, tmp, tmp2);
|
||||
};
|
||||
export const captureSession = function captureSession() {
|
||||
let flag = arg0;
|
||||
if (arg0 === undefined) {
|
||||
flag = false;
|
||||
}
|
||||
if (flag) {
|
||||
endSession();
|
||||
} else {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
const client = _mod13075.getClient();
|
||||
const tmp3 = currentScope.getSession() || isolationScope.getSession();
|
||||
let tmp4 = tmp3;
|
||||
if (tmp3) {
|
||||
tmp4 = client;
|
||||
}
|
||||
if (tmp4) {
|
||||
client.captureSession(tmp3);
|
||||
}
|
||||
}
|
||||
};
|
||||
export const close = function close(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_4.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export { endSession };
|
||||
export const flush = function flush(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const isEnabled = function isEnabled() {
|
||||
const client = _mod13075.getClient();
|
||||
let transport = client;
|
||||
if (transport) {
|
||||
transport = false !== client.getOptions().enabled;
|
||||
}
|
||||
if (transport) {
|
||||
transport = client.getTransport();
|
||||
}
|
||||
return transport;
|
||||
};
|
||||
export const isInitialized = function isInitialized() {
|
||||
return _mod13075.getClient();
|
||||
};
|
||||
export const lastEventId = function lastEventId() {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
return isolationScope.lastEventId();
|
||||
};
|
||||
export const setContext = function setContext(arg0, arg1) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setContext(arg0, arg1);
|
||||
};
|
||||
export const setExtra = function setExtra(arg0, arg1) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setExtra(arg0, arg1);
|
||||
};
|
||||
export const setExtras = function setExtras(arg0) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setExtras(arg0);
|
||||
};
|
||||
export const setTag = function setTag(arg0, arg1) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setTag(arg0, arg1);
|
||||
};
|
||||
export const setTags = function setTags(arg0) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setTags(arg0);
|
||||
};
|
||||
export const setUser = function setUser(arg0) {
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
isolationScope.setUser(arg0);
|
||||
};
|
||||
export const startSession = function startSession(arg0) {
|
||||
const client = _mod13075.getClient();
|
||||
const isolationScope = _mod13075.getIsolationScope();
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
let options = client;
|
||||
if (client) {
|
||||
options = client.getOptions();
|
||||
}
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
({ environment, release } = options);
|
||||
if (undefined === environment) {
|
||||
environment = tmp(13085).DEFAULT_ENVIRONMENT;
|
||||
}
|
||||
const userAgent = _mod13049.GLOBAL_OBJ.navigator || {}.userAgent;
|
||||
const tmp3 = _mod13049.GLOBAL_OBJ.navigator || {};
|
||||
const obj2 = { release, environment, user: null };
|
||||
const tmpResult = _mod13071;
|
||||
obj2.user = currentScope.getUser() || isolationScope.getUser();
|
||||
let tmp5 = userAgent;
|
||||
if (userAgent) {
|
||||
const obj4 = { userAgent };
|
||||
tmp5 = obj4;
|
||||
}
|
||||
const merged = Object.assign(tmp5);
|
||||
const merged1 = Object.assign(arg0);
|
||||
const session = tmpResult.makeSession(obj2);
|
||||
const session1 = isolationScope.getSession();
|
||||
let tmp10 = session1;
|
||||
if (session1) {
|
||||
tmp10 = "ok" === session1.status;
|
||||
}
|
||||
if (tmp10) {
|
||||
tmp(13071).updateSession(session1, { status: "exited" });
|
||||
const tmpResult2 = tmp(13071);
|
||||
}
|
||||
endSession();
|
||||
isolationScope.setSession(session);
|
||||
currentScope.setSession(session);
|
||||
return session;
|
||||
};
|
||||
export const withMonitor = function withMonitor(monitorSlug, arg1, arg2) {
|
||||
_require = monitorSlug;
|
||||
dependencyMap = arg1;
|
||||
function finishCheckIn(status) {
|
||||
const obj = { monitorSlug, status, checkInId: captureCheckInResult, duration: _mod13062.timestampInSeconds() - closure_3 };
|
||||
const currentScope = _mod13075.getCurrentScope();
|
||||
const client = _mod13075.getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
captureCheckInResult = client.captureCheckIn(obj, undefined, currentScope);
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
const logger2 = tmp(13048).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
const logger = tmp(13048).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
_mod13059.uuid4();
|
||||
}
|
||||
let currentScope = require("module_13075").getCurrentScope();
|
||||
let obj = { monitorSlug, status: "in_progress" };
|
||||
let obj2 = require("module_13075");
|
||||
let client = require("module_13075").getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
let captureCheckInResult = client.captureCheckIn(obj, arg2, currentScope);
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
let logger2 = tmp(13048).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
asyncGeneratorStep = captureCheckInResult;
|
||||
closure_3 = tmp(13062).timestampInSeconds();
|
||||
const tmpResult = tmp(13062);
|
||||
return tmp(13075).withIsolationScope(() => {
|
||||
try {
|
||||
const tmp3 = closure_1();
|
||||
if (obj.isThenable(tmp3)) {
|
||||
const resolved = Promise.resolve(tmp3);
|
||||
resolved.then(() => {
|
||||
finishCheckIn("ok");
|
||||
}, (arg0) => {
|
||||
finishCheckIn("error");
|
||||
throw arg0;
|
||||
});
|
||||
} else {
|
||||
finishCheckIn("ok");
|
||||
}
|
||||
return tmp3;
|
||||
} catch (tmp12) {
|
||||
finishCheckIn("error");
|
||||
throw tmp12;
|
||||
}
|
||||
});
|
||||
} else if (tmp(13076).DEBUG_BUILD) {
|
||||
let logger = tmp(13048).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
let obj3 = require("module_13075");
|
||||
captureCheckInResult = require("module_13059").uuid4();
|
||||
};
|
||||
358
alpha/source/__helpers/13xxx/13098__flush.js
Normal file
358
alpha/source/__helpers/13xxx/13098__flush.js
Normal file
|
|
@ -0,0 +1,358 @@
|
|||
// Module ID: 13098
|
||||
// Function ID: 13099
|
||||
// Name: _flush
|
||||
// Dependencies: [5, 13077, 13099, 13078, 13050, 13061, 13064, 13057, 13087, 13051, 13073]
|
||||
// Exports: addEventProcessor, captureCheckIn, captureEvent, captureException, captureMessage, captureSession, close, flush, isEnabled, isInitialized, lastEventId, setContext, setExtra, setExtras, setTag, setTags, setUser, startSession, withMonitor
|
||||
|
||||
// Module 13098 (_flush)
|
||||
import _mod13051 from "module_13051" /* 13051 */;
|
||||
import _mod13061 from "module_13061" /* 13061 */;
|
||||
import _mod13064 from "module_13064" /* 13064 */;
|
||||
import _mod13073 from "module_13073" /* 13073 */;
|
||||
import _mod13077 from "module_13077" /* 13077 */;
|
||||
import _mod13099 from "module_13099" /* 13099 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
const require = globalThis.__r;
|
||||
|
||||
let closure_3 = async function _flush(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
const client = require("module_13077").getClient();
|
||||
if (client) {
|
||||
client.flush(tmp13);
|
||||
} else {
|
||||
if (tmp14(tmp15[3]).DEBUG_BUILD) {
|
||||
const logger = tmp14(tmp15[4]).logger;
|
||||
logger.warn("Cannot flush events. No client defined.");
|
||||
}
|
||||
const resolved = Promise.resolve(false);
|
||||
}
|
||||
c1 = 3;
|
||||
const obj3 = require("module_13077");
|
||||
tmp13 = closure_0;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c1 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
let closure_4 = async function _close(arg0, value) {
|
||||
if (c1 === 2) {
|
||||
c1 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c1 = 2;
|
||||
if (arg0 === 1) {
|
||||
c1 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c1 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
const client = require("module_13077").getClient();
|
||||
if (client) {
|
||||
client.close(tmp13);
|
||||
} else {
|
||||
if (tmp14(tmp15[3]).DEBUG_BUILD) {
|
||||
const logger = tmp14(tmp15[4]).logger;
|
||||
logger.warn("Cannot flush events and disable SDK. No client defined.");
|
||||
}
|
||||
const resolved = Promise.resolve(false);
|
||||
}
|
||||
c1 = 3;
|
||||
const obj3 = require("module_13077");
|
||||
tmp13 = closure_0;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c1 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
function endSession() {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
const tmp3 = currentScope.getSession() || isolationScope.getSession();
|
||||
if (tmp3) {
|
||||
tmp(13073).closeSession(tmp3);
|
||||
const tmpResult = tmp(13073);
|
||||
}
|
||||
const isolationScope1 = _mod13077.getIsolationScope();
|
||||
const tmpResult4 = _mod13077;
|
||||
const currentScope1 = _mod13077.getCurrentScope();
|
||||
const tmpResult5 = _mod13077;
|
||||
const client = _mod13077.getClient();
|
||||
const tmp5 = currentScope1.getSession() || isolationScope1.getSession();
|
||||
let tmp6 = tmp5;
|
||||
if (tmp5) {
|
||||
tmp6 = client;
|
||||
}
|
||||
if (tmp6) {
|
||||
client.captureSession(tmp5);
|
||||
}
|
||||
isolationScope.setSession();
|
||||
currentScope.setSession();
|
||||
}
|
||||
|
||||
export const addEventProcessor = function addEventProcessor(arg0) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.addEventProcessor(arg0);
|
||||
};
|
||||
export const captureCheckIn = function captureCheckIn(arg0, arg1) {
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
const client = _mod13077.getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
return client.captureCheckIn(arg0, arg1, currentScope);
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
const logger2 = tmp(13050).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
const logger = tmp(13050).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
return _mod13061.uuid4();
|
||||
};
|
||||
export const captureEvent = function captureEvent(arg0, arg1) {
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
return currentScope.captureEvent(arg0, arg1);
|
||||
};
|
||||
export const captureException = function captureException(arg0, arg1) {
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
return currentScope.captureException(arg0, _mod13099.parseEventHintOrCaptureContext(arg1));
|
||||
};
|
||||
export const captureMessage = function captureMessage(arg0, captureContext) {
|
||||
let tmp;
|
||||
if (typeof captureContext === "string") {
|
||||
tmp = captureContext;
|
||||
}
|
||||
let tmp2;
|
||||
if (typeof captureContext !== "string") {
|
||||
const obj2 = { captureContext };
|
||||
tmp2 = obj2;
|
||||
}
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
return currentScope.captureMessage(arg0, tmp, tmp2);
|
||||
};
|
||||
export const captureSession = function captureSession() {
|
||||
let flag = arg0;
|
||||
if (arg0 === undefined) {
|
||||
flag = false;
|
||||
}
|
||||
if (flag) {
|
||||
endSession();
|
||||
} else {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
const client = _mod13077.getClient();
|
||||
const tmp3 = currentScope.getSession() || isolationScope.getSession();
|
||||
let tmp4 = tmp3;
|
||||
if (tmp3) {
|
||||
tmp4 = client;
|
||||
}
|
||||
if (tmp4) {
|
||||
client.captureSession(tmp3);
|
||||
}
|
||||
}
|
||||
};
|
||||
export const close = function close(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_4.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export { endSession };
|
||||
export const flush = function flush(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
export const isEnabled = function isEnabled() {
|
||||
const client = _mod13077.getClient();
|
||||
let transport = client;
|
||||
if (transport) {
|
||||
transport = false !== client.getOptions().enabled;
|
||||
}
|
||||
if (transport) {
|
||||
transport = client.getTransport();
|
||||
}
|
||||
return transport;
|
||||
};
|
||||
export const isInitialized = function isInitialized() {
|
||||
return _mod13077.getClient();
|
||||
};
|
||||
export const lastEventId = function lastEventId() {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
return isolationScope.lastEventId();
|
||||
};
|
||||
export const setContext = function setContext(arg0, arg1) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setContext(arg0, arg1);
|
||||
};
|
||||
export const setExtra = function setExtra(arg0, arg1) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setExtra(arg0, arg1);
|
||||
};
|
||||
export const setExtras = function setExtras(arg0) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setExtras(arg0);
|
||||
};
|
||||
export const setTag = function setTag(arg0, arg1) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setTag(arg0, arg1);
|
||||
};
|
||||
export const setTags = function setTags(arg0) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setTags(arg0);
|
||||
};
|
||||
export const setUser = function setUser(arg0) {
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
isolationScope.setUser(arg0);
|
||||
};
|
||||
export const startSession = function startSession(arg0) {
|
||||
const client = _mod13077.getClient();
|
||||
const isolationScope = _mod13077.getIsolationScope();
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
let options = client;
|
||||
if (client) {
|
||||
options = client.getOptions();
|
||||
}
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
({ environment, release } = options);
|
||||
if (undefined === environment) {
|
||||
environment = tmp(13087).DEFAULT_ENVIRONMENT;
|
||||
}
|
||||
const userAgent = _mod13051.GLOBAL_OBJ.navigator || {}.userAgent;
|
||||
const tmp3 = _mod13051.GLOBAL_OBJ.navigator || {};
|
||||
const obj2 = { release, environment, user: null };
|
||||
const tmpResult = _mod13073;
|
||||
obj2.user = currentScope.getUser() || isolationScope.getUser();
|
||||
let tmp5 = userAgent;
|
||||
if (userAgent) {
|
||||
const obj4 = { userAgent };
|
||||
tmp5 = obj4;
|
||||
}
|
||||
const merged = Object.assign(tmp5);
|
||||
const merged1 = Object.assign(arg0);
|
||||
const session = tmpResult.makeSession(obj2);
|
||||
const session1 = isolationScope.getSession();
|
||||
let tmp10 = session1;
|
||||
if (session1) {
|
||||
tmp10 = "ok" === session1.status;
|
||||
}
|
||||
if (tmp10) {
|
||||
tmp(13073).updateSession(session1, { status: "exited" });
|
||||
const tmpResult2 = tmp(13073);
|
||||
}
|
||||
endSession();
|
||||
isolationScope.setSession(session);
|
||||
currentScope.setSession(session);
|
||||
return session;
|
||||
};
|
||||
export const withMonitor = function withMonitor(monitorSlug, arg1, arg2) {
|
||||
_require = monitorSlug;
|
||||
dependencyMap = arg1;
|
||||
function finishCheckIn(status) {
|
||||
const obj = { monitorSlug, status, checkInId: captureCheckInResult, duration: _mod13064.timestampInSeconds() - closure_3 };
|
||||
const currentScope = _mod13077.getCurrentScope();
|
||||
const client = _mod13077.getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
captureCheckInResult = client.captureCheckIn(obj, undefined, currentScope);
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
const logger2 = tmp(13050).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
const logger = tmp(13050).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
_mod13061.uuid4();
|
||||
}
|
||||
let currentScope = require("module_13077").getCurrentScope();
|
||||
let obj = { monitorSlug, status: "in_progress" };
|
||||
let obj2 = require("module_13077");
|
||||
let client = require("module_13077").getClient();
|
||||
if (client) {
|
||||
if (client.captureCheckIn) {
|
||||
let captureCheckInResult = client.captureCheckIn(obj, arg2, currentScope);
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
let logger2 = tmp(13050).logger;
|
||||
logger2.warn("Cannot capture check-in. Client does not support sending check-ins.");
|
||||
}
|
||||
asyncGeneratorStep = captureCheckInResult;
|
||||
closure_3 = tmp(13064).timestampInSeconds();
|
||||
const tmpResult = tmp(13064);
|
||||
return tmp(13077).withIsolationScope(() => {
|
||||
try {
|
||||
const tmp3 = closure_1();
|
||||
if (obj.isThenable(tmp3)) {
|
||||
const resolved = Promise.resolve(tmp3);
|
||||
resolved.then(() => {
|
||||
finishCheckIn("ok");
|
||||
}, (arg0) => {
|
||||
finishCheckIn("error");
|
||||
throw arg0;
|
||||
});
|
||||
} else {
|
||||
finishCheckIn("ok");
|
||||
}
|
||||
return tmp3;
|
||||
} catch (tmp12) {
|
||||
finishCheckIn("error");
|
||||
throw tmp12;
|
||||
}
|
||||
});
|
||||
} else if (tmp(13078).DEBUG_BUILD) {
|
||||
let logger = tmp(13050).logger;
|
||||
logger.warn("Cannot capture check-in. No client defined.");
|
||||
}
|
||||
let obj3 = require("module_13077");
|
||||
captureCheckInResult = require("module_13061").uuid4();
|
||||
};
|
||||
|
|
@ -1,264 +0,0 @@
|
|||
// Module ID: 13123
|
||||
// Function ID: 13124
|
||||
// Name: _getEventFilterUrl
|
||||
// Dependencies: [13104, 13076, 13048, 13059, 13057]
|
||||
|
||||
// Module 13123 (_getEventFilterUrl)
|
||||
import _mod13048 from "module_13048" /* 13048 */;
|
||||
import _mod13057 from "module_13057" /* 13057 */;
|
||||
import _mod13059 from "module_13059" /* 13059 */;
|
||||
import _mod13076 from "module_13076" /* 13076 */;
|
||||
import setupIntegration from "module_13104" /* 13104 */;
|
||||
|
||||
function _getEventFilterUrl(arg0) {
|
||||
try {
|
||||
const frames = arg0.exception.values[0].stacktrace.frames;
|
||||
let tmp4 = null;
|
||||
if (frames) {
|
||||
tmp4 = (function _getLastValidUrl(frames) {
|
||||
let tmp2;
|
||||
items = frames;
|
||||
if (frames === undefined) {
|
||||
items = [];
|
||||
}
|
||||
let diff = items.length - 1;
|
||||
if (0 <= diff) {
|
||||
while (true) {
|
||||
tmp2 = items[diff];
|
||||
if (tmp2) {
|
||||
if ("<anonymous>" !== tmp2.filename) {
|
||||
if ("[native code]" !== tmp2.filename) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
diff = diff - 1;
|
||||
}
|
||||
return tmp2.filename || null;
|
||||
}
|
||||
return null;
|
||||
})(frames);
|
||||
}
|
||||
return tmp4;
|
||||
} catch (err) {
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger = tmp6(13048).logger;
|
||||
const _HermesInternal = HermesInternal;
|
||||
logger.error("Cannot extract url for event " + tmp6(13059).getEventDescription(tmp));
|
||||
const tmp6Result = tmp6(13059);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
let items = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", "can't redefine non-configurable property \"solana\"", "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler", /^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/];
|
||||
|
||||
export const inboundFiltersIntegration = setupIntegration.defineIntegration(() => {
|
||||
if (arg0 === undefined) {
|
||||
let obj = {};
|
||||
}
|
||||
return {
|
||||
name: "InboundFilters",
|
||||
processEvent(type, arg1, getOptions) {
|
||||
let options = getOptions.getOptions();
|
||||
if (obj === undefined) {
|
||||
obj = {};
|
||||
}
|
||||
if (options === undefined) {
|
||||
options = {};
|
||||
}
|
||||
items = [...obj.allowUrls || [], ...tmp2];
|
||||
const items1 = [...obj.denyUrls || [], ...tmp4];
|
||||
const items2 = [...obj.ignoreErrors || [], ...tmp6, ...tmp7];
|
||||
const items3 = [...obj.ignoreTransactions || [], ...tmp9];
|
||||
if (tmp10) {
|
||||
if ((function _isSentryError(type) {
|
||||
try {
|
||||
return "SentryError" === type.exception.values[0].type;
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
})(type)) {
|
||||
let flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger6 = _mod13048.logger;
|
||||
const _HermesInternal6 = HermesInternal;
|
||||
logger6.warn("Event dropped due to being internal Sentry Error.\nEvent: " + _mod13059.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
}
|
||||
let tmp77 = null;
|
||||
if (!flag6) {
|
||||
tmp77 = type;
|
||||
}
|
||||
return tmp77;
|
||||
}
|
||||
let flag = false;
|
||||
if (!type.type) {
|
||||
flag = false;
|
||||
if (items2.length) {
|
||||
flag = (function _getPossibleEventMessages(message) {
|
||||
items = [];
|
||||
if (message.message) {
|
||||
items.push(message.message);
|
||||
}
|
||||
try {
|
||||
const iter = message.exception.values[message.exception.values.length - 1];
|
||||
value = iter;
|
||||
if (iter) {
|
||||
value = iter.value;
|
||||
}
|
||||
if (value) {
|
||||
items.push(iter.value);
|
||||
if (iter.type) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
items.push("" + iter.type + ": " + iter.value);
|
||||
}
|
||||
}
|
||||
return items;
|
||||
} catch (err) {
|
||||
}
|
||||
})(type).some((item) => {
|
||||
obj = obj(dependencyMap[4]);
|
||||
return obj.stringMatchesSomePattern(item, items2);
|
||||
});
|
||||
const obj3 = (function _getPossibleEventMessages(message) {
|
||||
items = [];
|
||||
if (message.message) {
|
||||
items.push(message.message);
|
||||
}
|
||||
try {
|
||||
const iter = message.exception.values[message.exception.values.length - 1];
|
||||
value = iter;
|
||||
if (iter) {
|
||||
value = iter.value;
|
||||
}
|
||||
if (value) {
|
||||
items.push(iter.value);
|
||||
if (iter.type) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
items.push("" + iter.type + ": " + iter.value);
|
||||
}
|
||||
}
|
||||
return items;
|
||||
} catch (err) {
|
||||
}
|
||||
})(type);
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger5 = _mod13048.logger;
|
||||
const _HermesInternal5 = HermesInternal;
|
||||
logger5.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + _mod13059.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag2 = false;
|
||||
if (!type.type) {
|
||||
flag2 = false;
|
||||
if (type.exception) {
|
||||
flag2 = false;
|
||||
if (type.exception.values) {
|
||||
flag2 = false;
|
||||
if (0 !== type.exception.values.length) {
|
||||
const message = type.message;
|
||||
let tmp11 = !message;
|
||||
if (!message) {
|
||||
const values = type.exception.values;
|
||||
tmp11 = !values.some((stacktrace) => {
|
||||
stacktrace = stacktrace.stacktrace;
|
||||
if (!stacktrace) {
|
||||
let type = stacktrace.type;
|
||||
if (type) {
|
||||
type = "Error" !== stacktrace.type;
|
||||
}
|
||||
stacktrace = type;
|
||||
}
|
||||
if (!stacktrace) {
|
||||
stacktrace = stacktrace.value;
|
||||
}
|
||||
return stacktrace;
|
||||
});
|
||||
}
|
||||
flag2 = tmp11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag2) {
|
||||
flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger4 = _mod13048.logger;
|
||||
const _HermesInternal4 = HermesInternal;
|
||||
logger4.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: " + _mod13059.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag3 = false;
|
||||
if ("transaction" === type.type) {
|
||||
flag3 = false;
|
||||
if (items3.length) {
|
||||
const transaction = type.transaction;
|
||||
let result = transaction;
|
||||
if (result) {
|
||||
result = _mod13057.stringMatchesSomePattern(transaction, items3);
|
||||
}
|
||||
flag3 = result;
|
||||
}
|
||||
}
|
||||
if (flag3) {
|
||||
flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger3 = _mod13048.logger;
|
||||
const _HermesInternal3 = HermesInternal;
|
||||
logger3.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: " + _mod13059.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag4 = false;
|
||||
if (items1.length) {
|
||||
const tmp16 = _getEventFilterUrl(type);
|
||||
let result1 = tmp16;
|
||||
if (result1) {
|
||||
result1 = _mod13057.stringMatchesSomePattern(tmp16, items1);
|
||||
}
|
||||
flag4 = result1;
|
||||
}
|
||||
if (flag4) {
|
||||
flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger2 = _mod13048.logger;
|
||||
const eventDescription = _mod13059.getEventDescription(type);
|
||||
const _HermesInternal2 = HermesInternal;
|
||||
logger2.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: " + eventDescription + ".\nUrl: " + _getEventFilterUrl(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag5 = true;
|
||||
if (items.length) {
|
||||
const tmp21 = _getEventFilterUrl(type);
|
||||
let result2 = !tmp21;
|
||||
if (tmp21) {
|
||||
result2 = _mod13057.stringMatchesSomePattern(tmp21, items);
|
||||
}
|
||||
flag5 = result2;
|
||||
}
|
||||
flag6 = false;
|
||||
if (!flag5) {
|
||||
flag6 = true;
|
||||
if (_mod13076.DEBUG_BUILD) {
|
||||
const logger = _mod13048.logger;
|
||||
const eventDescription1 = _mod13059.getEventDescription(type);
|
||||
let _HermesInternal = HermesInternal;
|
||||
logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: " + eventDescription1 + ".\nUrl: " + _getEventFilterUrl(type));
|
||||
flag6 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
264
alpha/source/__helpers/13xxx/13125__getEventFilterUrl.js
Normal file
264
alpha/source/__helpers/13xxx/13125__getEventFilterUrl.js
Normal file
|
|
@ -0,0 +1,264 @@
|
|||
// Module ID: 13125
|
||||
// Function ID: 13126
|
||||
// Name: _getEventFilterUrl
|
||||
// Dependencies: [13106, 13078, 13050, 13061, 13059]
|
||||
|
||||
// Module 13125 (_getEventFilterUrl)
|
||||
import _mod13050 from "module_13050" /* 13050 */;
|
||||
import _mod13059 from "module_13059" /* 13059 */;
|
||||
import _mod13061 from "module_13061" /* 13061 */;
|
||||
import _mod13078 from "module_13078" /* 13078 */;
|
||||
import setupIntegration from "module_13106" /* 13106 */;
|
||||
|
||||
function _getEventFilterUrl(arg0) {
|
||||
try {
|
||||
const frames = arg0.exception.values[0].stacktrace.frames;
|
||||
let tmp4 = null;
|
||||
if (frames) {
|
||||
tmp4 = (function _getLastValidUrl(frames) {
|
||||
let tmp2;
|
||||
items = frames;
|
||||
if (frames === undefined) {
|
||||
items = [];
|
||||
}
|
||||
let diff = items.length - 1;
|
||||
if (0 <= diff) {
|
||||
while (true) {
|
||||
tmp2 = items[diff];
|
||||
if (tmp2) {
|
||||
if ("<anonymous>" !== tmp2.filename) {
|
||||
if ("[native code]" !== tmp2.filename) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
diff = diff - 1;
|
||||
}
|
||||
return tmp2.filename || null;
|
||||
}
|
||||
return null;
|
||||
})(frames);
|
||||
}
|
||||
return tmp4;
|
||||
} catch (err) {
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger = tmp6(13050).logger;
|
||||
const _HermesInternal = HermesInternal;
|
||||
logger.error("Cannot extract url for event " + tmp6(13061).getEventDescription(tmp));
|
||||
const tmp6Result = tmp6(13061);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
let items = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/, /^ResizeObserver loop completed with undelivered notifications.$/, /^Cannot redefine property: googletag$/, "undefined is not an object (evaluating 'a.L')", "can't redefine non-configurable property \"solana\"", "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler", /^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/];
|
||||
|
||||
export const inboundFiltersIntegration = setupIntegration.defineIntegration(() => {
|
||||
if (arg0 === undefined) {
|
||||
let obj = {};
|
||||
}
|
||||
return {
|
||||
name: "InboundFilters",
|
||||
processEvent(type, arg1, getOptions) {
|
||||
let options = getOptions.getOptions();
|
||||
if (obj === undefined) {
|
||||
obj = {};
|
||||
}
|
||||
if (options === undefined) {
|
||||
options = {};
|
||||
}
|
||||
items = [...obj.allowUrls || [], ...tmp2];
|
||||
const items1 = [...obj.denyUrls || [], ...tmp4];
|
||||
const items2 = [...obj.ignoreErrors || [], ...tmp6, ...tmp7];
|
||||
const items3 = [...obj.ignoreTransactions || [], ...tmp9];
|
||||
if (tmp10) {
|
||||
if ((function _isSentryError(type) {
|
||||
try {
|
||||
return "SentryError" === type.exception.values[0].type;
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
})(type)) {
|
||||
let flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger6 = _mod13050.logger;
|
||||
const _HermesInternal6 = HermesInternal;
|
||||
logger6.warn("Event dropped due to being internal Sentry Error.\nEvent: " + _mod13061.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
}
|
||||
let tmp77 = null;
|
||||
if (!flag6) {
|
||||
tmp77 = type;
|
||||
}
|
||||
return tmp77;
|
||||
}
|
||||
let flag = false;
|
||||
if (!type.type) {
|
||||
flag = false;
|
||||
if (items2.length) {
|
||||
flag = (function _getPossibleEventMessages(message) {
|
||||
items = [];
|
||||
if (message.message) {
|
||||
items.push(message.message);
|
||||
}
|
||||
try {
|
||||
const iter = message.exception.values[message.exception.values.length - 1];
|
||||
value = iter;
|
||||
if (iter) {
|
||||
value = iter.value;
|
||||
}
|
||||
if (value) {
|
||||
items.push(iter.value);
|
||||
if (iter.type) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
items.push("" + iter.type + ": " + iter.value);
|
||||
}
|
||||
}
|
||||
return items;
|
||||
} catch (err) {
|
||||
}
|
||||
})(type).some((item) => {
|
||||
obj = obj(dependencyMap[4]);
|
||||
return obj.stringMatchesSomePattern(item, items2);
|
||||
});
|
||||
const obj3 = (function _getPossibleEventMessages(message) {
|
||||
items = [];
|
||||
if (message.message) {
|
||||
items.push(message.message);
|
||||
}
|
||||
try {
|
||||
const iter = message.exception.values[message.exception.values.length - 1];
|
||||
value = iter;
|
||||
if (iter) {
|
||||
value = iter.value;
|
||||
}
|
||||
if (value) {
|
||||
items.push(iter.value);
|
||||
if (iter.type) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
items.push("" + iter.type + ": " + iter.value);
|
||||
}
|
||||
}
|
||||
return items;
|
||||
} catch (err) {
|
||||
}
|
||||
})(type);
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger5 = _mod13050.logger;
|
||||
const _HermesInternal5 = HermesInternal;
|
||||
logger5.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + _mod13061.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag2 = false;
|
||||
if (!type.type) {
|
||||
flag2 = false;
|
||||
if (type.exception) {
|
||||
flag2 = false;
|
||||
if (type.exception.values) {
|
||||
flag2 = false;
|
||||
if (0 !== type.exception.values.length) {
|
||||
const message = type.message;
|
||||
let tmp11 = !message;
|
||||
if (!message) {
|
||||
const values = type.exception.values;
|
||||
tmp11 = !values.some((stacktrace) => {
|
||||
stacktrace = stacktrace.stacktrace;
|
||||
if (!stacktrace) {
|
||||
let type = stacktrace.type;
|
||||
if (type) {
|
||||
type = "Error" !== stacktrace.type;
|
||||
}
|
||||
stacktrace = type;
|
||||
}
|
||||
if (!stacktrace) {
|
||||
stacktrace = stacktrace.value;
|
||||
}
|
||||
return stacktrace;
|
||||
});
|
||||
}
|
||||
flag2 = tmp11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag2) {
|
||||
flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger4 = _mod13050.logger;
|
||||
const _HermesInternal4 = HermesInternal;
|
||||
logger4.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: " + _mod13061.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag3 = false;
|
||||
if ("transaction" === type.type) {
|
||||
flag3 = false;
|
||||
if (items3.length) {
|
||||
const transaction = type.transaction;
|
||||
let result = transaction;
|
||||
if (result) {
|
||||
result = _mod13059.stringMatchesSomePattern(transaction, items3);
|
||||
}
|
||||
flag3 = result;
|
||||
}
|
||||
}
|
||||
if (flag3) {
|
||||
flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger3 = _mod13050.logger;
|
||||
const _HermesInternal3 = HermesInternal;
|
||||
logger3.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: " + _mod13061.getEventDescription(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag4 = false;
|
||||
if (items1.length) {
|
||||
const tmp16 = _getEventFilterUrl(type);
|
||||
let result1 = tmp16;
|
||||
if (result1) {
|
||||
result1 = _mod13059.stringMatchesSomePattern(tmp16, items1);
|
||||
}
|
||||
flag4 = result1;
|
||||
}
|
||||
if (flag4) {
|
||||
flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger2 = _mod13050.logger;
|
||||
const eventDescription = _mod13061.getEventDescription(type);
|
||||
const _HermesInternal2 = HermesInternal;
|
||||
logger2.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: " + eventDescription + ".\nUrl: " + _getEventFilterUrl(type));
|
||||
flag6 = true;
|
||||
}
|
||||
} else {
|
||||
let flag5 = true;
|
||||
if (items.length) {
|
||||
const tmp21 = _getEventFilterUrl(type);
|
||||
let result2 = !tmp21;
|
||||
if (tmp21) {
|
||||
result2 = _mod13059.stringMatchesSomePattern(tmp21, items);
|
||||
}
|
||||
flag5 = result2;
|
||||
}
|
||||
flag6 = false;
|
||||
if (!flag5) {
|
||||
flag6 = true;
|
||||
if (_mod13078.DEBUG_BUILD) {
|
||||
const logger = _mod13050.logger;
|
||||
const eventDescription1 = _mod13061.getEventDescription(type);
|
||||
let _HermesInternal = HermesInternal;
|
||||
logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: " + eventDescription1 + ".\nUrl: " + _getEventFilterUrl(type));
|
||||
flag6 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
// Module ID: 13171
|
||||
// Function ID: 13172
|
||||
// Name: _asyncNullishCoalesce2
|
||||
// Dependencies: [5, 13172]
|
||||
// Exports: _asyncNullishCoalesce
|
||||
|
||||
// Module 13171 (_asyncNullishCoalesce2)
|
||||
import _nullishCoalesce from "_nullishCoalesce" /* 13172 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_3 = async function _asyncNullishCoalesce2(arg0, value) {
|
||||
if (c2 === 2) {
|
||||
c2 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c2 = 2;
|
||||
if (arg0 === 1) {
|
||||
c2 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c2 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
c2 = 3;
|
||||
const obj4 = { value: _nullishCoalesce._nullishCoalesce(closure_0, closure_1), done: true };
|
||||
return obj4;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c2 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const _asyncNullishCoalesce = function _asyncNullishCoalesce(arg0, arg1) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
// Module ID: 13172
|
||||
// Function ID: 13173
|
||||
// Name: _nullishCoalesce
|
||||
// Dependencies: []
|
||||
// Exports: _nullishCoalesce
|
||||
|
||||
// Module 13172 (_nullishCoalesce)
|
||||
|
||||
export const _nullishCoalesce = function _nullishCoalesce(arg0, fn) {
|
||||
let tmp = arg0;
|
||||
if (null == arg0) {
|
||||
tmp = fn();
|
||||
}
|
||||
return tmp;
|
||||
};
|
||||
55
alpha/source/__helpers/13xxx/13173__asyncNullishCoalesce2.js
Normal file
55
alpha/source/__helpers/13xxx/13173__asyncNullishCoalesce2.js
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// Module ID: 13173
|
||||
// Function ID: 13174
|
||||
// Name: _asyncNullishCoalesce2
|
||||
// Dependencies: [5, 13174]
|
||||
// Exports: _asyncNullishCoalesce
|
||||
|
||||
// Module 13173 (_asyncNullishCoalesce2)
|
||||
import _nullishCoalesce from "_nullishCoalesce" /* 13174 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_3 = async function _asyncNullishCoalesce2(arg0, value) {
|
||||
if (c2 === 2) {
|
||||
c2 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c2 = 2;
|
||||
if (arg0 === 1) {
|
||||
c2 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c2 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
c2 = 3;
|
||||
const obj4 = { value: _nullishCoalesce._nullishCoalesce(closure_0, closure_1), done: true };
|
||||
return obj4;
|
||||
}
|
||||
} catch (tmp8) {
|
||||
c2 = tmp;
|
||||
throw tmp8;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const _asyncNullishCoalesce = function _asyncNullishCoalesce(arg0, arg1) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,122 +0,0 @@
|
|||
// Module ID: 13173
|
||||
// Function ID: 13174
|
||||
// Name: _asyncOptionalChain2
|
||||
// Dependencies: [5]
|
||||
// Exports: _asyncOptionalChain
|
||||
|
||||
// Module 13173 (_asyncOptionalChain2)
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_1 = async function _asyncOptionalChain2(arg0, value) {
|
||||
if (c3 === 2) {
|
||||
c3 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c3 = 2;
|
||||
if (0 === c2) {
|
||||
if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
closure_1 = tmp4;
|
||||
closure_129_0 = length;
|
||||
closure_129_2 = undefined;
|
||||
closure_129_3 = undefined;
|
||||
closure_129_4 = undefined;
|
||||
closure_129_5 = undefined;
|
||||
closure_129_1 = undefined;
|
||||
closure_129_2 = length[0];
|
||||
closure_129_3 = 1;
|
||||
if (closure_129_3 < length.length) {
|
||||
closure_129_4 = closure_129_0[closure_129_3];
|
||||
closure_129_5 = closure_129_0[closure_129_3 + 1];
|
||||
closure_129_3 = closure_129_3 + 2;
|
||||
if ("optionalAccess" === closure_129_4) {
|
||||
if (null == closure_129_2) {
|
||||
c3 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
}
|
||||
if ("access" !== closure_129_4) {
|
||||
if ("optionalAccess" !== closure_129_4) {
|
||||
let tmp22 = "call" !== closure_129_4;
|
||||
if (tmp22) {
|
||||
tmp22 = "optionalCall" !== closure_129_4;
|
||||
}
|
||||
if (!tmp22) {
|
||||
c2 = 2;
|
||||
c3 = 1;
|
||||
const obj4 = {
|
||||
value: closure_129_5(() => {
|
||||
const items = [closure_1_1, ...HermesBuiltin.copyRestArgs()];
|
||||
return closure_1_2.call.apply(items);
|
||||
}),
|
||||
done: false
|
||||
};
|
||||
return obj4;
|
||||
}
|
||||
}
|
||||
}
|
||||
closure_129_1 = closure_129_2;
|
||||
c2 = 1;
|
||||
c3 = 1;
|
||||
const obj5 = { value: closure_129_5(closure_129_2), done: false };
|
||||
return obj5;
|
||||
}
|
||||
c3 = 3;
|
||||
const obj6 = { value: closure_129_2, done: true };
|
||||
return obj6;
|
||||
}
|
||||
} else if (1 === tmp4) {
|
||||
if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj7 = { value, done: true };
|
||||
return obj7;
|
||||
} else {
|
||||
closure_129_2 = value;
|
||||
}
|
||||
} else if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
closure_129_2 = value;
|
||||
closure_129_1 = undefined;
|
||||
}
|
||||
} catch (tmp31) {
|
||||
c3 = tmp;
|
||||
throw tmp31;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_1.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
// Module ID: 13174
|
||||
// Function ID: 13175
|
||||
// Name: _asyncOptionalChainDelete2
|
||||
// Dependencies: [5, 13173]
|
||||
// Exports: _asyncOptionalChainDelete
|
||||
|
||||
// Module 13174 (_asyncOptionalChainDelete2)
|
||||
import _asyncOptionalChain2 from "_asyncOptionalChain2" /* 13173 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_3 = async function _asyncOptionalChainDelete2() {
|
||||
closure_1 = tmp2;
|
||||
closure_129_0 = await _asyncOptionalChain2._asyncOptionalChain(closure_0);
|
||||
let tmp9 = null == closure_129_0;
|
||||
if (!tmp9) {
|
||||
tmp9 = closure_129_0;
|
||||
}
|
||||
return tmp9;
|
||||
};
|
||||
|
||||
export const _asyncOptionalChainDelete = function _asyncOptionalChainDelete(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
15
alpha/source/__helpers/13xxx/13174__nullishCoalesce.js
Normal file
15
alpha/source/__helpers/13xxx/13174__nullishCoalesce.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Module ID: 13174
|
||||
// Function ID: 13175
|
||||
// Name: _nullishCoalesce
|
||||
// Dependencies: []
|
||||
// Exports: _nullishCoalesce
|
||||
|
||||
// Module 13174 (_nullishCoalesce)
|
||||
|
||||
export const _nullishCoalesce = function _nullishCoalesce(arg0, fn) {
|
||||
let tmp = arg0;
|
||||
if (null == arg0) {
|
||||
tmp = fn();
|
||||
}
|
||||
return tmp;
|
||||
};
|
||||
122
alpha/source/__helpers/13xxx/13175__asyncOptionalChain2.js
Normal file
122
alpha/source/__helpers/13xxx/13175__asyncOptionalChain2.js
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
// Module ID: 13175
|
||||
// Function ID: 13176
|
||||
// Name: _asyncOptionalChain2
|
||||
// Dependencies: [5]
|
||||
// Exports: _asyncOptionalChain
|
||||
|
||||
// Module 13175 (_asyncOptionalChain2)
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_1 = async function _asyncOptionalChain2(arg0, value) {
|
||||
if (c3 === 2) {
|
||||
c3 = 3;
|
||||
throw new TypeError("Generator functions may not be called on executing generators");
|
||||
} else if (tmp3 === 3) {
|
||||
if (arg0 === 1) {
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
const obj2 = { value, done: true };
|
||||
return obj2;
|
||||
} else {
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
c3 = 2;
|
||||
if (0 === c2) {
|
||||
if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj3 = { value, done: true };
|
||||
return obj3;
|
||||
} else {
|
||||
closure_1 = tmp4;
|
||||
closure_129_0 = length;
|
||||
closure_129_2 = undefined;
|
||||
closure_129_3 = undefined;
|
||||
closure_129_4 = undefined;
|
||||
closure_129_5 = undefined;
|
||||
closure_129_1 = undefined;
|
||||
closure_129_2 = length[0];
|
||||
closure_129_3 = 1;
|
||||
if (closure_129_3 < length.length) {
|
||||
closure_129_4 = closure_129_0[closure_129_3];
|
||||
closure_129_5 = closure_129_0[closure_129_3 + 1];
|
||||
closure_129_3 = closure_129_3 + 2;
|
||||
if ("optionalAccess" === closure_129_4) {
|
||||
if (null == closure_129_2) {
|
||||
c3 = 3;
|
||||
return { value: "HermesInternal", done: null };
|
||||
}
|
||||
}
|
||||
if ("access" !== closure_129_4) {
|
||||
if ("optionalAccess" !== closure_129_4) {
|
||||
let tmp22 = "call" !== closure_129_4;
|
||||
if (tmp22) {
|
||||
tmp22 = "optionalCall" !== closure_129_4;
|
||||
}
|
||||
if (!tmp22) {
|
||||
c2 = 2;
|
||||
c3 = 1;
|
||||
const obj4 = {
|
||||
value: closure_129_5(() => {
|
||||
const items = [closure_1_1, ...HermesBuiltin.copyRestArgs()];
|
||||
return closure_1_2.call.apply(items);
|
||||
}),
|
||||
done: false
|
||||
};
|
||||
return obj4;
|
||||
}
|
||||
}
|
||||
}
|
||||
closure_129_1 = closure_129_2;
|
||||
c2 = 1;
|
||||
c3 = 1;
|
||||
const obj5 = { value: closure_129_5(closure_129_2), done: false };
|
||||
return obj5;
|
||||
}
|
||||
c3 = 3;
|
||||
const obj6 = { value: closure_129_2, done: true };
|
||||
return obj6;
|
||||
}
|
||||
} else if (1 === tmp4) {
|
||||
if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj7 = { value, done: true };
|
||||
return obj7;
|
||||
} else {
|
||||
closure_129_2 = value;
|
||||
}
|
||||
} else if (arg0 === 1) {
|
||||
c3 = 3;
|
||||
throw value;
|
||||
} else if (arg0 === 2) {
|
||||
c3 = 3;
|
||||
const obj = { value, done: true };
|
||||
return obj;
|
||||
} else {
|
||||
closure_129_2 = value;
|
||||
closure_129_1 = undefined;
|
||||
}
|
||||
} catch (tmp31) {
|
||||
c3 = tmp;
|
||||
throw tmp31;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_1.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
// Module ID: 13175
|
||||
// Function ID: 13176
|
||||
// Name: _optionalChain
|
||||
// Dependencies: []
|
||||
// Exports: _optionalChain
|
||||
|
||||
// Module 13175 (_optionalChain)
|
||||
|
||||
export const _optionalChain = function _optionalChain(arg0) {
|
||||
const first = arg0[0];
|
||||
closure_1 = first;
|
||||
let num = 1;
|
||||
let tmp2 = first;
|
||||
let tmp3 = first;
|
||||
if (1 < arg0.length) {
|
||||
while (true) {
|
||||
let tmp4 = arg0[num];
|
||||
let tmp5 = arg0[num + 1];
|
||||
let tmp6 = "optionalAccess" === tmp4;
|
||||
if (tmp6) {
|
||||
if (null == tmp2) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ("access" !== tmp4) {
|
||||
if (!tmp6) {
|
||||
let tmp9 = "call" !== tmp4 && "optionalCall" !== tmp4;
|
||||
let tmp10 = tmp2;
|
||||
if (!tmp9) {
|
||||
let tmp5Result = tmp5(() => {
|
||||
const items = [closure_0, ...HermesBuiltin.copyRestArgs()];
|
||||
return closure_1.call.apply(items);
|
||||
});
|
||||
closure_1 = tmp5Result;
|
||||
closure_0 = undefined;
|
||||
tmp10 = tmp5Result;
|
||||
}
|
||||
}
|
||||
num = num + 2;
|
||||
tmp2 = tmp10;
|
||||
tmp3 = tmp10;
|
||||
}
|
||||
closure_0 = tmp2;
|
||||
let tmp5Result2 = tmp5(tmp2);
|
||||
closure_1 = tmp5Result2;
|
||||
tmp10 = tmp5Result2;
|
||||
}
|
||||
}
|
||||
return tmp3;
|
||||
};
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
// Module ID: 13176
|
||||
// Function ID: 13177
|
||||
// Name: _asyncOptionalChainDelete2
|
||||
// Dependencies: [5, 13175]
|
||||
// Exports: _asyncOptionalChainDelete
|
||||
|
||||
// Module 13176 (_asyncOptionalChainDelete2)
|
||||
import _asyncOptionalChain2 from "_asyncOptionalChain2" /* 13175 */;
|
||||
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
||||
|
||||
let closure_3 = async function _asyncOptionalChainDelete2() {
|
||||
closure_1 = tmp2;
|
||||
closure_129_0 = await _asyncOptionalChain2._asyncOptionalChain(closure_0);
|
||||
let tmp9 = null == closure_129_0;
|
||||
if (!tmp9) {
|
||||
tmp9 = closure_129_0;
|
||||
}
|
||||
return tmp9;
|
||||
};
|
||||
|
||||
export const _asyncOptionalChainDelete = function _asyncOptionalChainDelete(arg0) {
|
||||
const self = this;
|
||||
const apply = closure_3.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
applyArgumentsResult = apply(self, arguments);
|
||||
}
|
||||
return applyArgumentsResult;
|
||||
};
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
// Module ID: 13176
|
||||
// Function ID: 13177
|
||||
// Name: _optionalChainDelete
|
||||
// Dependencies: [13175]
|
||||
// Exports: _optionalChainDelete
|
||||
|
||||
// Module 13176 (_optionalChainDelete)
|
||||
import _optionalChain from "_optionalChain" /* 13175 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const _optionalChainDelete = function _optionalChainDelete(arg0) {
|
||||
const _optionalChainResult = _optionalChain._optionalChain(arg0);
|
||||
return null == _optionalChainResult || _optionalChainResult;
|
||||
};
|
||||
50
alpha/source/__helpers/13xxx/13177__optionalChain.js
Normal file
50
alpha/source/__helpers/13xxx/13177__optionalChain.js
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Module ID: 13177
|
||||
// Function ID: 13178
|
||||
// Name: _optionalChain
|
||||
// Dependencies: []
|
||||
// Exports: _optionalChain
|
||||
|
||||
// Module 13177 (_optionalChain)
|
||||
|
||||
export const _optionalChain = function _optionalChain(arg0) {
|
||||
const first = arg0[0];
|
||||
closure_1 = first;
|
||||
let num = 1;
|
||||
let tmp2 = first;
|
||||
let tmp3 = first;
|
||||
if (1 < arg0.length) {
|
||||
while (true) {
|
||||
let tmp4 = arg0[num];
|
||||
let tmp5 = arg0[num + 1];
|
||||
let tmp6 = "optionalAccess" === tmp4;
|
||||
if (tmp6) {
|
||||
if (null == tmp2) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ("access" !== tmp4) {
|
||||
if (!tmp6) {
|
||||
let tmp9 = "call" !== tmp4 && "optionalCall" !== tmp4;
|
||||
let tmp10 = tmp2;
|
||||
if (!tmp9) {
|
||||
let tmp5Result = tmp5(() => {
|
||||
const items = [closure_0, ...HermesBuiltin.copyRestArgs()];
|
||||
return closure_1.call.apply(items);
|
||||
});
|
||||
closure_1 = tmp5Result;
|
||||
closure_0 = undefined;
|
||||
tmp10 = tmp5Result;
|
||||
}
|
||||
}
|
||||
num = num + 2;
|
||||
tmp2 = tmp10;
|
||||
tmp3 = tmp10;
|
||||
}
|
||||
closure_0 = tmp2;
|
||||
let tmp5Result2 = tmp5(tmp2);
|
||||
closure_1 = tmp5Result2;
|
||||
tmp10 = tmp5Result2;
|
||||
}
|
||||
}
|
||||
return tmp3;
|
||||
};
|
||||
16
alpha/source/__helpers/13xxx/13178__optionalChainDelete.js
Normal file
16
alpha/source/__helpers/13xxx/13178__optionalChainDelete.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Module ID: 13178
|
||||
// Function ID: 13179
|
||||
// Name: _optionalChainDelete
|
||||
// Dependencies: [13177]
|
||||
// Exports: _optionalChainDelete
|
||||
|
||||
// Module 13178 (_optionalChainDelete)
|
||||
import _optionalChain from "_optionalChain" /* 13177 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const _optionalChainDelete = function _optionalChainDelete(arg0) {
|
||||
const _optionalChainResult = _optionalChain._optionalChain(arg0);
|
||||
return null == _optionalChainResult || _optionalChainResult;
|
||||
};
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
// Module ID: 15816
|
||||
// Function ID: 15817
|
||||
// Name: _regeneratorRuntime
|
||||
// Dependencies: [15817]
|
||||
|
||||
// Module 15816 (_regeneratorRuntime)
|
||||
import _mod15817 from "module_15817" /* 15817 */;
|
||||
|
||||
const tmp3 = _mod15817();
|
||||
try {
|
||||
globalThis.regeneratorRuntime = tmp3;
|
||||
} catch (err) {
|
||||
const _globalThis = globalThis;
|
||||
if (typeof globalThis === "object") {
|
||||
const _globalThis2 = globalThis;
|
||||
globalThis.regeneratorRuntime = tmp2;
|
||||
} else {
|
||||
const _Function = Function;
|
||||
Function("r", "regeneratorRuntime = r")(tmp2);
|
||||
}
|
||||
}
|
||||
|
||||
export default tmp3;
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
// Module ID: 15820
|
||||
// Function ID: 15821
|
||||
// Name: _getRequireWildcardCache
|
||||
// Dependencies: [45]
|
||||
|
||||
// Module 15820 (_getRequireWildcardCache)
|
||||
function _getRequireWildcardCache(arg0) {
|
||||
if (typeof WeakMap !== "function") {
|
||||
return null;
|
||||
} else {
|
||||
const _WeakMap = WeakMap;
|
||||
const weakMap = new WeakMap();
|
||||
let tmp = weakMap;
|
||||
const _WeakMap2 = WeakMap;
|
||||
const weakMap1 = new WeakMap();
|
||||
_getRequireWildcardCache = function _getRequireWildcardCache(arg0) {
|
||||
return arg0 ? weakMap1 : weakMap;
|
||||
};
|
||||
if (arg0) {
|
||||
tmp = weakMap1;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
23
alpha/source/__helpers/15xxx/15822__regeneratorRuntime.js
Normal file
23
alpha/source/__helpers/15xxx/15822__regeneratorRuntime.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// Module ID: 15822
|
||||
// Function ID: 15823
|
||||
// Name: _regeneratorRuntime
|
||||
// Dependencies: [15823]
|
||||
|
||||
// Module 15822 (_regeneratorRuntime)
|
||||
import _mod15823 from "module_15823" /* 15823 */;
|
||||
|
||||
const tmp3 = _mod15823();
|
||||
try {
|
||||
globalThis.regeneratorRuntime = tmp3;
|
||||
} catch (err) {
|
||||
const _globalThis = globalThis;
|
||||
if (typeof globalThis === "object") {
|
||||
const _globalThis2 = globalThis;
|
||||
globalThis.regeneratorRuntime = tmp2;
|
||||
} else {
|
||||
const _Function = Function;
|
||||
Function("r", "regeneratorRuntime = r")(tmp2);
|
||||
}
|
||||
}
|
||||
|
||||
export default tmp3;
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
// Module ID: 15823
|
||||
// Function ID: 15824
|
||||
// Name: _defineProperty
|
||||
// Dependencies: [43]
|
||||
|
||||
// Module 15823 (_defineProperty)
|
||||
import _mod43 from "module_43" /* 43 */;
|
||||
|
||||
|
||||
export default function _defineProperty(arg0, arg1, value) {
|
||||
const tmp = _mod43(arg1);
|
||||
if (tmp in arg0) {
|
||||
const _Object = Object;
|
||||
const obj = { value, enumerable: true, configurable: true, writable: true };
|
||||
Object.defineProperty(arg0, tmp, obj);
|
||||
} else {
|
||||
arg0[tmp] = value;
|
||||
}
|
||||
return arg0;
|
||||
};
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
// Module ID: 15826
|
||||
// Function ID: 15827
|
||||
// Name: _getRequireWildcardCache
|
||||
// Dependencies: [45]
|
||||
|
||||
// Module 15826 (_getRequireWildcardCache)
|
||||
function _getRequireWildcardCache(arg0) {
|
||||
if (typeof WeakMap !== "function") {
|
||||
return null;
|
||||
} else {
|
||||
const _WeakMap = WeakMap;
|
||||
const weakMap = new WeakMap();
|
||||
let tmp = weakMap;
|
||||
const _WeakMap2 = WeakMap;
|
||||
const weakMap1 = new WeakMap();
|
||||
_getRequireWildcardCache = function _getRequireWildcardCache(arg0) {
|
||||
return arg0 ? weakMap1 : weakMap;
|
||||
};
|
||||
if (arg0) {
|
||||
tmp = weakMap1;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
}
|
||||
20
alpha/source/__helpers/15xxx/15829__defineProperty.js
Normal file
20
alpha/source/__helpers/15xxx/15829__defineProperty.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// Module ID: 15829
|
||||
// Function ID: 15830
|
||||
// Name: _defineProperty
|
||||
// Dependencies: [43]
|
||||
|
||||
// Module 15829 (_defineProperty)
|
||||
import _mod43 from "module_43" /* 43 */;
|
||||
|
||||
|
||||
export default function _defineProperty(arg0, arg1, value) {
|
||||
const tmp = _mod43(arg1);
|
||||
if (tmp in arg0) {
|
||||
const _Object = Object;
|
||||
const obj = { value, enumerable: true, configurable: true, writable: true };
|
||||
Object.defineProperty(arg0, tmp, obj);
|
||||
} else {
|
||||
arg0[tmp] = value;
|
||||
}
|
||||
return arg0;
|
||||
};
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -394,17 +394,17 @@ export const Children = {
|
|||
const items = [];
|
||||
c2 = 0;
|
||||
mapIntoArray(element, items, "", "", (arg0) => {
|
||||
const call = f70550.call;
|
||||
const call = f70585.call;
|
||||
closure_2 = tmp3 + 1;
|
||||
return typeof call === "unknown" ? f70550(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
return typeof call === "unknown" ? f70585(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
});
|
||||
return items;
|
||||
}
|
||||
},
|
||||
forEach(element, arg1, arg2) {
|
||||
const f70548 = function() {
|
||||
const f70583 = function() {
|
||||
const self = this;
|
||||
const apply = f70548.apply;
|
||||
const apply = f70583.apply;
|
||||
if (typeof apply === "unknown") {
|
||||
HermesBuiltin.applyArguments(self);
|
||||
} else {
|
||||
|
|
@ -415,9 +415,9 @@ export const Children = {
|
|||
if (null != element) {
|
||||
c2 = 0;
|
||||
mapIntoArray(element, [], "", "", (arg0) => {
|
||||
const call = f70550.call;
|
||||
const call = f70585.call;
|
||||
closure_2 = tmp3 + 1;
|
||||
return typeof call === "unknown" ? f70550(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
return typeof call === "unknown" ? f70585(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
@ -428,23 +428,23 @@ export const Children = {
|
|||
if (null != element) {
|
||||
c2 = 0;
|
||||
mapIntoArray(element, [], "", "", (arg0) => {
|
||||
const call = f70550.call;
|
||||
const call = f70585.call;
|
||||
closure_2 = tmp3 + 1;
|
||||
return typeof call === "unknown" ? f70550(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
return typeof call === "unknown" ? f70585(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
});
|
||||
}
|
||||
return closure_0;
|
||||
},
|
||||
toArray(element) {
|
||||
const f70550 = (arg0) => arg0;
|
||||
const f70585 = (arg0) => arg0;
|
||||
let items1 = element;
|
||||
if (null != element) {
|
||||
const items = [];
|
||||
closure_2 = 0;
|
||||
mapIntoArray(element, items, "", "", (arg0) => {
|
||||
const call = f70550.call;
|
||||
const call = f70585.call;
|
||||
closure_2 = tmp3 + 1;
|
||||
return typeof call === "unknown" ? f70550(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
return typeof call === "unknown" ? f70585(arg0, +closure_2) : call(closure_1_1, arg0, +closure_2);
|
||||
});
|
||||
items1 = items;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ const items = [
|
|||
}
|
||||
};
|
||||
if (obj3.shouldPressibilityUseW3CPointerEventsForHover()) {
|
||||
const obj4 = { onPointerEnter: "a", onPointerLeave: "isArray" };
|
||||
const obj4 = { onPointerEnter: "Array", onPointerLeave: "PX_16" };
|
||||
const _config = this._config;
|
||||
const onHoverIn = _config.onHoverIn;
|
||||
const onHoverOut = _config.onHoverOut;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class ScrollView {
|
|||
constructResult = obj.apply(self, items);
|
||||
}
|
||||
tmp3Result = tmp3(self, constructResult);
|
||||
f109761 = tmp3Result;
|
||||
f109816 = tmp3Result;
|
||||
tmp3Result._scrollAnimatedValueAttachment = null;
|
||||
map = new Map();
|
||||
tmp3Result._stickyHeaderRefs = map;
|
||||
|
|
@ -90,11 +90,11 @@ class ScrollView {
|
|||
tmp3Result._subscriptionKeyboardDidShow = null;
|
||||
tmp3Result._subscriptionKeyboardDidHide = null;
|
||||
tmp3Result.state = { layoutHeight: null };
|
||||
tmp3Result.getScrollResponder = () => f109761;
|
||||
tmp3Result.getScrollableNode = () => renderElement.findNodeHandle(f109761.getNativeScrollRef());
|
||||
tmp3Result.getInnerViewNode = () => renderElement.findNodeHandle(f109761._innerView.nativeInstance);
|
||||
tmp3Result.getInnerViewRef = () => f109761._innerView.nativeInstance;
|
||||
tmp3Result.getNativeScrollRef = () => f109761._scrollView.nativeInstance;
|
||||
tmp3Result.getScrollResponder = () => f109816;
|
||||
tmp3Result.getScrollableNode = () => renderElement.findNodeHandle(f109816.getNativeScrollRef());
|
||||
tmp3Result.getInnerViewNode = () => renderElement.findNodeHandle(f109816._innerView.nativeInstance);
|
||||
tmp3Result.getInnerViewRef = () => f109816._innerView.nativeInstance;
|
||||
tmp3Result.getNativeScrollRef = () => f109816._scrollView.nativeInstance;
|
||||
tmp3Result.scrollTo = (num, arg1, arg2) => {
|
||||
if (typeof num === "number") {
|
||||
x = arg1;
|
||||
|
|
@ -105,7 +105,7 @@ class ScrollView {
|
|||
} else if (num) {
|
||||
({ y, x, animated } = num);
|
||||
}
|
||||
const nativeScrollRef = f109761.getNativeScrollRef();
|
||||
const nativeScrollRef = f109816.getNativeScrollRef();
|
||||
if (null != nativeScrollRef) {
|
||||
const obj = _modDef350;
|
||||
if (!x) {
|
||||
|
|
@ -121,14 +121,14 @@ class ScrollView {
|
|||
if (animated) {
|
||||
animated = animated.animated;
|
||||
}
|
||||
const nativeScrollRef = f109761.getNativeScrollRef();
|
||||
const nativeScrollRef = f109816.getNativeScrollRef();
|
||||
if (null != nativeScrollRef) {
|
||||
_modDef350.scrollToEnd(nativeScrollRef, false !== animated);
|
||||
const tmp2 = false !== animated;
|
||||
}
|
||||
};
|
||||
tmp3Result.flashScrollIndicators = () => {
|
||||
const nativeScrollRef = f109761.getNativeScrollRef();
|
||||
const nativeScrollRef = f109816.getNativeScrollRef();
|
||||
if (null != nativeScrollRef) {
|
||||
const result = _modDef350.flashScrollIndicators(nativeScrollRef);
|
||||
}
|
||||
|
|
@ -138,9 +138,9 @@ class ScrollView {
|
|||
if (!arg1) {
|
||||
num = 0;
|
||||
}
|
||||
f109761._additionalScrollOffset = num;
|
||||
f109761._preventNegativeScrollOffset = _preventNegativeScrollOffset;
|
||||
if (null != f109761._innerView.nativeInstance) {
|
||||
f109816._additionalScrollOffset = num;
|
||||
f109816._preventNegativeScrollOffset = _preventNegativeScrollOffset;
|
||||
if (null != f109816._innerView.nativeInstance) {
|
||||
if (typeof measureLayout === "number") {
|
||||
const obj = measureDefault;
|
||||
const tmp4 = nullthrowsDefault;
|
||||
|
|
@ -153,13 +153,13 @@ class ScrollView {
|
|||
tmp3Result.scrollResponderZoomTo = (animated, arg1) => {
|
||||
_modDef38(false, "zoomToRect is not implemented");
|
||||
if ("animated" in animated) {
|
||||
f109761._animated = animated.animated;
|
||||
f109816._animated = animated.animated;
|
||||
delete tmp[tmp2];
|
||||
} else if (undefined !== arg1) {
|
||||
const _console = console;
|
||||
console.warn("`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead");
|
||||
}
|
||||
const nativeScrollRef = f109761.getNativeScrollRef();
|
||||
const nativeScrollRef = f109816.getNativeScrollRef();
|
||||
if (null != nativeScrollRef) {
|
||||
_modDef350.zoomToRect(nativeScrollRef, animated, false !== arg1);
|
||||
const tmp3Result = _modDef350;
|
||||
|
|
@ -176,19 +176,19 @@ class ScrollView {
|
|||
const _setTimeout = setTimeout;
|
||||
const timerId = setTimeout(() => {
|
||||
if (typeof scrollTextInputIntoVisibleRect === "function") {
|
||||
if (null != f109761._keyboardMetrics) {
|
||||
if (null != f109816._keyboardMetrics) {
|
||||
screenY = obj._keyboardMetrics.screenY;
|
||||
}
|
||||
const sum = closure_0 - screenY + closure_1 + obj._additionalScrollOffset;
|
||||
let bound = sum;
|
||||
if (true === f109761._preventNegativeScrollOffset) {
|
||||
if (true === f109816._preventNegativeScrollOffset) {
|
||||
const _Math = Math;
|
||||
bound = Math.max(0, sum);
|
||||
}
|
||||
const point = { x: 0, y: bound, animated: true };
|
||||
f109761.scrollTo(point);
|
||||
f109761._additionalScrollOffset = 0;
|
||||
f109761._preventNegativeScrollOffset = false;
|
||||
f109816.scrollTo(point);
|
||||
f109816._additionalScrollOffset = 0;
|
||||
f109816._preventNegativeScrollOffset = false;
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -210,29 +210,29 @@ class ScrollView {
|
|||
}
|
||||
};
|
||||
tmp3Result._handleScroll = (arg0) => {
|
||||
f109761._observedScrollSinceBecomingResponder = true;
|
||||
if (f109761.props.onScroll) {
|
||||
f109816._observedScrollSinceBecomingResponder = true;
|
||||
if (f109816.props.onScroll) {
|
||||
const props = tmp.props;
|
||||
props.onScroll(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleLayout = (nativeEvent) => {
|
||||
if (true === f109761.props.invertStickyHeaders) {
|
||||
if (true === f109816.props.invertStickyHeaders) {
|
||||
const obj2 = { layoutHeight: nativeEvent.nativeEvent.layout.height };
|
||||
obj.setState(obj2);
|
||||
}
|
||||
if (f109761.props.onLayout) {
|
||||
if (f109816.props.onLayout) {
|
||||
const props = obj.props;
|
||||
props.onLayout(nativeEvent);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleContentOnLayout = (arg0) => {
|
||||
if (f109761.props.onContentSizeChange) {
|
||||
const props = f109761.props;
|
||||
if (f109816.props.onContentSizeChange) {
|
||||
const props = f109816.props;
|
||||
props.onContentSizeChange(tmp, tmp2);
|
||||
}
|
||||
};
|
||||
f109761 = (arg0) => arg0;
|
||||
f109816 = (arg0) => arg0;
|
||||
closure_1 = undefined;
|
||||
obj1 = {
|
||||
getForwardingRef: c2(closure_4[29])((arg0) => {
|
||||
|
|
@ -240,7 +240,7 @@ class ScrollView {
|
|||
return (nativeInstance) => {
|
||||
let tmp = null;
|
||||
if (null != nativeInstance) {
|
||||
tmp = f109761(nativeInstance);
|
||||
tmp = f109816(nativeInstance);
|
||||
}
|
||||
obj3.nativeInstance = nativeInstance;
|
||||
obj3.publicInstance = tmp;
|
||||
|
|
@ -258,7 +258,7 @@ class ScrollView {
|
|||
};
|
||||
closure_1 = obj1;
|
||||
tmp3Result._innerView = obj1;
|
||||
f109761 = (arg0) => Object.assign(arg0, { getScrollResponder: f109761.getScrollResponder, getScrollableNode: f109761.getScrollableNode, getInnerViewNode: f109761.getInnerViewNode, getInnerViewRef: f109761.getInnerViewRef, getNativeScrollRef: f109761.getNativeScrollRef, scrollTo: f109761.scrollTo, scrollToEnd: f109761.scrollToEnd, flashScrollIndicators: f109761.flashScrollIndicators, scrollResponderZoomTo: f109761.scrollResponderZoomTo, scrollResponderScrollNativeHandleToKeyboard: f109761.scrollResponderScrollNativeHandleToKeyboard });
|
||||
f109816 = (arg0) => Object.assign(arg0, { getScrollResponder: f109816.getScrollResponder, getScrollableNode: f109816.getScrollableNode, getInnerViewNode: f109816.getInnerViewNode, getInnerViewRef: f109816.getInnerViewRef, getNativeScrollRef: f109816.getNativeScrollRef, scrollTo: f109816.scrollTo, scrollToEnd: f109816.scrollToEnd, flashScrollIndicators: f109816.flashScrollIndicators, scrollResponderZoomTo: f109816.scrollResponderZoomTo, scrollResponderScrollNativeHandleToKeyboard: f109816.scrollResponderScrollNativeHandleToKeyboard });
|
||||
closure_1 = undefined;
|
||||
obj4 = {
|
||||
getForwardingRef: c2(closure_4[29])((arg0) => {
|
||||
|
|
@ -266,7 +266,7 @@ class ScrollView {
|
|||
return (nativeInstance) => {
|
||||
let tmp = null;
|
||||
if (null != nativeInstance) {
|
||||
tmp = f109761(nativeInstance);
|
||||
tmp = f109816(nativeInstance);
|
||||
}
|
||||
obj3.nativeInstance = nativeInstance;
|
||||
obj3.publicInstance = tmp;
|
||||
|
|
@ -285,63 +285,63 @@ class ScrollView {
|
|||
closure_1 = obj4;
|
||||
tmp3Result._scrollView = obj4;
|
||||
tmp3Result.scrollResponderKeyboardWillShow = (endCoordinates) => {
|
||||
f109761._keyboardMetrics = endCoordinates.endCoordinates;
|
||||
if (f109761.props.onKeyboardWillShow) {
|
||||
const props = f109761.props;
|
||||
f109816._keyboardMetrics = endCoordinates.endCoordinates;
|
||||
if (f109816.props.onKeyboardWillShow) {
|
||||
const props = f109816.props;
|
||||
props.onKeyboardWillShow(endCoordinates);
|
||||
}
|
||||
};
|
||||
tmp3Result.scrollResponderKeyboardWillHide = (arg0) => {
|
||||
f109761._keyboardMetrics = null;
|
||||
if (f109761.props.onKeyboardWillHide) {
|
||||
f109816._keyboardMetrics = null;
|
||||
if (f109816.props.onKeyboardWillHide) {
|
||||
const props = tmp.props;
|
||||
props.onKeyboardWillHide(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result.scrollResponderKeyboardDidShow = (endCoordinates) => {
|
||||
f109761._keyboardMetrics = endCoordinates.endCoordinates;
|
||||
if (f109761.props.onKeyboardDidShow) {
|
||||
const props = f109761.props;
|
||||
f109816._keyboardMetrics = endCoordinates.endCoordinates;
|
||||
if (f109816.props.onKeyboardDidShow) {
|
||||
const props = f109816.props;
|
||||
props.onKeyboardDidShow(endCoordinates);
|
||||
}
|
||||
};
|
||||
tmp3Result.scrollResponderKeyboardDidHide = (arg0) => {
|
||||
f109761._keyboardMetrics = null;
|
||||
if (f109761.props.onKeyboardDidHide) {
|
||||
f109816._keyboardMetrics = null;
|
||||
if (f109816.props.onKeyboardDidHide) {
|
||||
const props = tmp.props;
|
||||
props.onKeyboardDidHide(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleMomentumScrollBegin = (arg0) => {
|
||||
const _performance = ScrollView.performance;
|
||||
f109761._lastMomentumScrollBeginTime = _performance.now();
|
||||
if (f109761.props.onMomentumScrollBegin) {
|
||||
const props = f109761.props;
|
||||
f109816._lastMomentumScrollBeginTime = _performance.now();
|
||||
if (f109816.props.onMomentumScrollBegin) {
|
||||
const props = f109816.props;
|
||||
const result = props.onMomentumScrollBegin(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleMomentumScrollEnd = (arg0) => {
|
||||
_modDef351.endScroll();
|
||||
const _performance = ScrollView.performance;
|
||||
f109761._lastMomentumScrollEndTime = _performance.now();
|
||||
if (f109761.props.onMomentumScrollEnd) {
|
||||
const props = f109761.props;
|
||||
f109816._lastMomentumScrollEndTime = _performance.now();
|
||||
if (f109816.props.onMomentumScrollEnd) {
|
||||
const props = f109816.props;
|
||||
props.onMomentumScrollEnd(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleScrollBeginDrag = (arg0) => {
|
||||
_modDef351.beginScroll();
|
||||
if ("on-drag" === f109761.props.keyboardDismissMode) {
|
||||
if ("on-drag" === f109816.props.keyboardDismissMode) {
|
||||
dismissKeyboardDefault();
|
||||
}
|
||||
if (f109761.props.onScrollBeginDrag) {
|
||||
if (f109816.props.onScrollBeginDrag) {
|
||||
const props = tmp4.props;
|
||||
props.onScrollBeginDrag(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleScrollEndDrag = (nativeEvent) => {
|
||||
const velocity = nativeEvent.nativeEvent.velocity;
|
||||
let _isAnimatingResult = f109761._isAnimating();
|
||||
let _isAnimatingResult = f109816._isAnimating();
|
||||
if (!_isAnimatingResult) {
|
||||
let tmp3 = velocity;
|
||||
if (velocity) {
|
||||
|
|
@ -353,29 +353,29 @@ class ScrollView {
|
|||
if (!_isAnimatingResult) {
|
||||
_modDef351.endScroll();
|
||||
}
|
||||
if (f109761.props.onScrollEndDrag) {
|
||||
if (f109816.props.onScrollEndDrag) {
|
||||
const props = tmp.props;
|
||||
props.onScrollEndDrag(nativeEvent);
|
||||
}
|
||||
};
|
||||
tmp3Result._isAnimating = () => {
|
||||
const _performance = ScrollView.performance;
|
||||
return _performance.now() - f109761._lastMomentumScrollEndTime < 16 || f109761._lastMomentumScrollEndTime < f109761._lastMomentumScrollBeginTime;
|
||||
return _performance.now() - f109816._lastMomentumScrollEndTime < 16 || f109816._lastMomentumScrollEndTime < f109816._lastMomentumScrollBeginTime;
|
||||
};
|
||||
tmp3Result._handleResponderGrant = (arg0) => {
|
||||
f109761._observedScrollSinceBecomingResponder = false;
|
||||
if (f109761.props.onResponderGrant) {
|
||||
f109816._observedScrollSinceBecomingResponder = false;
|
||||
if (f109816.props.onResponderGrant) {
|
||||
const props = obj.props;
|
||||
props.onResponderGrant(arg0);
|
||||
}
|
||||
f109761._becameResponderWhileAnimating = f109761._isAnimating();
|
||||
f109816._becameResponderWhileAnimating = f109816._isAnimating();
|
||||
};
|
||||
tmp3Result._handleResponderReject = () => {
|
||||
|
||||
};
|
||||
tmp3Result._handleResponderRelease = (nativeEvent) => {
|
||||
f109761._isTouching = 0 !== nativeEvent.nativeEvent.touches.length;
|
||||
if (f109761.props.onResponderRelease) {
|
||||
f109816._isTouching = 0 !== nativeEvent.nativeEvent.touches.length;
|
||||
if (f109816.props.onResponderRelease) {
|
||||
const props = obj.props;
|
||||
props.onResponderRelease(nativeEvent);
|
||||
}
|
||||
|
|
@ -407,10 +407,10 @@ class ScrollView {
|
|||
tmp3 = importDefault;
|
||||
}
|
||||
};
|
||||
tmp3Result._handleResponderTerminationRequest = () => !f109761._observedScrollSinceBecomingResponder;
|
||||
tmp3Result._handleScrollShouldSetResponder = () => true !== f109761.props.disableScrollViewPanResponder && f109761._isTouching;
|
||||
tmp3Result._handleResponderTerminationRequest = () => !f109816._observedScrollSinceBecomingResponder;
|
||||
tmp3Result._handleScrollShouldSetResponder = () => true !== f109816.props.disableScrollViewPanResponder && f109816._isTouching;
|
||||
tmp3Result._handleStartShouldSetResponder = (target) => {
|
||||
if (true === f109761.props.disableScrollViewPanResponder) {
|
||||
if (true === f109816.props.disableScrollViewPanResponder) {
|
||||
return false;
|
||||
} else {
|
||||
let tmp4 = "handled" !== obj.props.keyboardShouldPersistTaps;
|
||||
|
|
@ -425,7 +425,7 @@ class ScrollView {
|
|||
}
|
||||
};
|
||||
tmp3Result._handleStartShouldSetResponderCapture = (target) => {
|
||||
if (f109761._isAnimating()) {
|
||||
if (f109816._isAnimating()) {
|
||||
return true;
|
||||
} else if (true === obj.props.disableScrollViewPanResponder) {
|
||||
return false;
|
||||
|
|
@ -471,16 +471,16 @@ class ScrollView {
|
|||
return isTextInputResult;
|
||||
};
|
||||
tmp3Result._softKeyboardIsDetached = () => {
|
||||
let tmp = null != f109761._keyboardMetrics;
|
||||
let tmp = null != f109816._keyboardMetrics;
|
||||
if (tmp) {
|
||||
tmp = 0 === f109761._keyboardMetrics.height;
|
||||
tmp = 0 === f109816._keyboardMetrics.height;
|
||||
}
|
||||
return tmp;
|
||||
};
|
||||
tmp3Result._keyboardEventsAreUnreliable = () => get_VersionDefault.Version < 30;
|
||||
tmp3Result._handleTouchEnd = (nativeEvent) => {
|
||||
f109761._isTouching = 0 !== nativeEvent.nativeEvent.touches.length;
|
||||
const keyboardShouldPersistTaps = f109761.props.keyboardShouldPersistTaps;
|
||||
f109816._isTouching = 0 !== nativeEvent.nativeEvent.touches.length;
|
||||
const keyboardShouldPersistTaps = f109816.props.keyboardShouldPersistTaps;
|
||||
let tmp = !keyboardShouldPersistTaps;
|
||||
if (keyboardShouldPersistTaps) {
|
||||
tmp = "never" === keyboardShouldPersistTaps;
|
||||
|
|
@ -490,27 +490,27 @@ class ScrollView {
|
|||
_modDef144.blurTextInput(result);
|
||||
const tmp2Result = _modDef144;
|
||||
}
|
||||
if (f109761.props.onTouchEnd) {
|
||||
if (f109816.props.onTouchEnd) {
|
||||
const props = obj.props;
|
||||
props.onTouchEnd(nativeEvent);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleTouchCancel = (arg0) => {
|
||||
f109761._isTouching = false;
|
||||
if (f109761.props.onTouchCancel) {
|
||||
f109816._isTouching = false;
|
||||
if (f109816.props.onTouchCancel) {
|
||||
const props = tmp.props;
|
||||
props.onTouchCancel(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleTouchStart = (arg0) => {
|
||||
f109761._isTouching = true;
|
||||
if (f109761.props.onTouchStart) {
|
||||
f109816._isTouching = true;
|
||||
if (f109816.props.onTouchStart) {
|
||||
const props = tmp.props;
|
||||
props.onTouchStart(arg0);
|
||||
}
|
||||
};
|
||||
tmp3Result._handleTouchMove = (arg0) => {
|
||||
if (f109761.props.onTouchMove) {
|
||||
if (f109816.props.onTouchMove) {
|
||||
const props = tmp.props;
|
||||
props.onTouchMove(arg0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,20 +77,20 @@ let items = [
|
|||
key: "__getValue",
|
||||
value: function __getValue() {
|
||||
const _transforms = this._transforms;
|
||||
const f109812 = (__getValue) => __getValue.__getValue();
|
||||
const f109867 = (__getValue) => __getValue.__getValue();
|
||||
return _transforms.map((item) => {
|
||||
const obj = {};
|
||||
for (const key10006 in arg0) {
|
||||
let arr = arg0[key10006];
|
||||
if (arr instanceof AnimatedTransform(367)) {
|
||||
obj[key10006] = f109815(arr);
|
||||
obj[key10006] = f109870(arr);
|
||||
continue;
|
||||
} else {
|
||||
let _Array = Array;
|
||||
if (Array.isArray(arr)) {
|
||||
obj[key10006] = arr.map((item) => {
|
||||
let tmp = item;
|
||||
if (item instanceof f109815(dependencyMap[6])) {
|
||||
if (item instanceof f109870(dependencyMap[6])) {
|
||||
tmp = closure_1_0(item);
|
||||
}
|
||||
return tmp;
|
||||
|
|
@ -103,7 +103,7 @@ let items = [
|
|||
let tmp9 = arr[key10013];
|
||||
let tmp3 = tmp9;
|
||||
if (tmp9 instanceof AnimatedTransform(367)) {
|
||||
tmp3 = f109815(tmp9);
|
||||
tmp3 = f109870(tmp9);
|
||||
}
|
||||
obj2[key10013] = tmp3;
|
||||
continue;
|
||||
|
|
@ -127,24 +127,24 @@ let items = [
|
|||
{
|
||||
key: "__getValueWithStaticTransforms",
|
||||
value: function __getValueWithStaticTransforms(arr) {
|
||||
let f109813 = [];
|
||||
let f109868 = [];
|
||||
const _transforms = this._transforms;
|
||||
f109813 = (__getValue) => {
|
||||
f109813.push(__getValue.__getValue());
|
||||
f109868 = (__getValue) => {
|
||||
f109868.push(__getValue.__getValue());
|
||||
};
|
||||
const mapped = _transforms.map((item) => {
|
||||
const obj = {};
|
||||
for (const key10006 in arg0) {
|
||||
let arr = arg0[key10006];
|
||||
if (arr instanceof AnimatedTransform(367)) {
|
||||
obj[key10006] = f109815(arr);
|
||||
obj[key10006] = f109870(arr);
|
||||
continue;
|
||||
} else {
|
||||
let _Array = Array;
|
||||
if (Array.isArray(arr)) {
|
||||
obj[key10006] = arr.map((item) => {
|
||||
let tmp = item;
|
||||
if (item instanceof f109815(dependencyMap[6])) {
|
||||
if (item instanceof f109870(dependencyMap[6])) {
|
||||
tmp = closure_1_0(item);
|
||||
}
|
||||
return tmp;
|
||||
|
|
@ -157,7 +157,7 @@ let items = [
|
|||
let tmp9 = arr[key10013];
|
||||
let tmp3 = tmp9;
|
||||
if (tmp9 instanceof AnimatedTransform(367)) {
|
||||
tmp3 = f109815(tmp9);
|
||||
tmp3 = f109870(tmp9);
|
||||
}
|
||||
obj2[key10013] = tmp3;
|
||||
continue;
|
||||
|
|
@ -176,20 +176,20 @@ let items = [
|
|||
}
|
||||
return obj;
|
||||
});
|
||||
closure_129_0 = () => f109813.shift();
|
||||
closure_129_0 = () => f109868.shift();
|
||||
return arr.map((item) => {
|
||||
const obj = {};
|
||||
for (const key10006 in arg0) {
|
||||
let arr = arg0[key10006];
|
||||
if (arr instanceof AnimatedTransform(367)) {
|
||||
obj[key10006] = f109815(arr);
|
||||
obj[key10006] = f109870(arr);
|
||||
continue;
|
||||
} else {
|
||||
let _Array = Array;
|
||||
if (Array.isArray(arr)) {
|
||||
obj[key10006] = arr.map((item) => {
|
||||
let tmp = item;
|
||||
if (item instanceof f109815(dependencyMap[6])) {
|
||||
if (item instanceof f109870(dependencyMap[6])) {
|
||||
tmp = closure_1_0(item);
|
||||
}
|
||||
return tmp;
|
||||
|
|
@ -202,7 +202,7 @@ let items = [
|
|||
let tmp9 = arr[key10013];
|
||||
let tmp3 = tmp9;
|
||||
if (tmp9 instanceof AnimatedTransform(367)) {
|
||||
tmp3 = f109815(tmp9);
|
||||
tmp3 = f109870(tmp9);
|
||||
}
|
||||
obj2[key10013] = tmp3;
|
||||
continue;
|
||||
|
|
@ -227,20 +227,20 @@ let items = [
|
|||
key: "__getAnimatedValue",
|
||||
value: function __getAnimatedValue() {
|
||||
const _transforms = this._transforms;
|
||||
const f109815 = (__getAnimatedValue) => __getAnimatedValue.__getAnimatedValue();
|
||||
const f109870 = (__getAnimatedValue) => __getAnimatedValue.__getAnimatedValue();
|
||||
return _transforms.map((item) => {
|
||||
const obj = {};
|
||||
for (const key10006 in arg0) {
|
||||
let arr = arg0[key10006];
|
||||
if (arr instanceof AnimatedTransform(367)) {
|
||||
obj[key10006] = f109815(arr);
|
||||
obj[key10006] = f109870(arr);
|
||||
continue;
|
||||
} else {
|
||||
let _Array = Array;
|
||||
if (Array.isArray(arr)) {
|
||||
obj[key10006] = arr.map((item) => {
|
||||
let tmp = item;
|
||||
if (item instanceof f109815(dependencyMap[6])) {
|
||||
if (item instanceof f109870(dependencyMap[6])) {
|
||||
tmp = closure_1_0(item);
|
||||
}
|
||||
return tmp;
|
||||
|
|
@ -253,7 +253,7 @@ let items = [
|
|||
let tmp9 = arr[key10013];
|
||||
let tmp3 = tmp9;
|
||||
if (tmp9 instanceof AnimatedTransform(367)) {
|
||||
tmp3 = f109815(tmp9);
|
||||
tmp3 = f109870(tmp9);
|
||||
}
|
||||
obj2[key10013] = tmp3;
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@ if (null) {
|
|||
} else {
|
||||
self = this;
|
||||
tmp6 = global;
|
||||
obj = { fired: false, wrapFn: "a", target: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022775430575219676, type: -1203438461361288500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, listener: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004699653126008403 };
|
||||
obj = { fired: false, wrapFn: "a", target: "<string:587202845>", type: "<string:3489661520>", listener: "<string:1174405586>" };
|
||||
obj.target = this;
|
||||
obj.type = global;
|
||||
obj.listener = require;
|
||||
|
|
@ -383,7 +383,7 @@ if (null) {
|
|||
} else {
|
||||
self = this;
|
||||
tmp6 = global;
|
||||
obj = { fired: false, wrapFn: "a", target: 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022775430575219676, type: -1203438461361288500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, listener: 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004699653126008403 };
|
||||
obj = { fired: false, wrapFn: "a", target: "<string:587202845>", type: "<string:3489661520>", listener: "<string:1174405586>" };
|
||||
obj.target = this;
|
||||
obj.type = global;
|
||||
obj.listener = require;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ let fn = function n() {
|
|||
let length;
|
||||
let length2;
|
||||
let obj = {};
|
||||
let f109943 = obj;
|
||||
let f109998 = obj;
|
||||
let items = ["Boolean", "Number", "String", "Function", "Array", "Date", "RegExp", "Undefined", "Null"];
|
||||
let num = 0;
|
||||
if (0 < items.length) {
|
||||
|
|
@ -82,7 +82,7 @@ let fn = function n() {
|
|||
return mapped;
|
||||
}
|
||||
mapped = arg0[0];
|
||||
tmp4 = f109943[typeof call === "unknown" ? toString(first) : call(toString, first)] || "object";
|
||||
tmp4 = f109998[typeof call === "unknown" ? toString(first) : call(toString, first)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ let fn = function n() {
|
|||
}
|
||||
first = items[0];
|
||||
if (typeof type$p === "function") {
|
||||
tmp5 = f109943;
|
||||
tmp5 = f109998;
|
||||
tmp6 = globalThis;
|
||||
_Object = Object;
|
||||
toString = Object.prototype.toString;
|
||||
|
|
@ -228,7 +228,7 @@ let fn = function n() {
|
|||
_Object = Object;
|
||||
toString = Object.prototype.toString;
|
||||
call = toString.call;
|
||||
tmp = f109943;
|
||||
tmp = f109998;
|
||||
tmp3 = tmp[typeof call === "unknown" ? toString(hex) : call(toString, hex)] || "object";
|
||||
str = "function";
|
||||
if ("function" == tmp3) {
|
||||
|
|
@ -364,7 +364,7 @@ let fn = function n() {
|
|||
_Object = Object;
|
||||
toString = Object.prototype.toString;
|
||||
call = toString.call;
|
||||
tmp2 = f109943;
|
||||
tmp2 = f109998;
|
||||
tmp4 = tmp2[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
str = "number";
|
||||
if ("number" === tmp4) {
|
||||
|
|
@ -454,7 +454,7 @@ let fn = function n() {
|
|||
_Object = Object;
|
||||
toString = Object.prototype.toString;
|
||||
call = toString.call;
|
||||
tmp2 = f109943;
|
||||
tmp2 = f109998;
|
||||
tmp4 = tmp2[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
str = "number";
|
||||
if ("number" === tmp4) {
|
||||
|
|
@ -697,7 +697,7 @@ let fn = function n() {
|
|||
if (-1 < diff) {
|
||||
if (typeof type$p === "function") {
|
||||
tmp12 = arg1;
|
||||
tmp13 = f109943;
|
||||
tmp13 = f109998;
|
||||
tmp14 = globalThis;
|
||||
_Object = Object;
|
||||
toString = Object.prototype.toString;
|
||||
|
|
@ -986,7 +986,7 @@ let fn = function n() {
|
|||
formatted = items[diff1].toLowerCase();
|
||||
}
|
||||
str = formatted;
|
||||
tmp9 = f109943[typeof call === "unknown" ? toString(tmp6) : call(toString, tmp6)] || "object";
|
||||
tmp9 = f109998[typeof call === "unknown" ? toString(tmp6) : call(toString, tmp6)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -1199,7 +1199,7 @@ let fn = function n() {
|
|||
formatted = items[diff1].toLowerCase();
|
||||
}
|
||||
str = formatted;
|
||||
tmp9 = f109943[typeof call === "unknown" ? toString(tmp6) : call(toString, tmp6)] || "object";
|
||||
tmp9 = f109998[typeof call === "unknown" ? toString(tmp6) : call(toString, tmp6)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -1280,7 +1280,7 @@ let fn = function n() {
|
|||
return "css";
|
||||
}
|
||||
}
|
||||
tmp8 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp8 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -1493,7 +1493,7 @@ let fn = function n() {
|
|||
formatted = items[diff1].toLowerCase();
|
||||
}
|
||||
str = formatted;
|
||||
tmp13 = f109943[typeof call === "unknown" ? toString(tmp10) : call(toString, tmp10)] || "object";
|
||||
tmp13 = f109998[typeof call === "unknown" ? toString(tmp10) : call(toString, tmp10)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -1620,7 +1620,7 @@ let fn = function n() {
|
|||
return "hex";
|
||||
}
|
||||
}
|
||||
tmp8 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp8 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -2437,7 +2437,7 @@ let fn = function n() {
|
|||
return "named";
|
||||
}
|
||||
}
|
||||
tmp8 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp8 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -2520,7 +2520,7 @@ let fn = function n() {
|
|||
}
|
||||
}
|
||||
}
|
||||
tmp8 = f109943[typeof call === "unknown" ? toString(first) : call(toString, first)] || "object";
|
||||
tmp8 = f109998[typeof call === "unknown" ? toString(first) : call(toString, first)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3021,7 +3021,7 @@ let fn = function n() {
|
|||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
tmp17 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp17 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3230,8 +3230,8 @@ let fn = function n() {
|
|||
if (typeof type$p === "function") {
|
||||
const _Object = Object;
|
||||
const call = toString.call;
|
||||
brewer = "string" === (f109943[typeof call === "unknown" ? toString(items) : call(toString, items)] || "object");
|
||||
const tmp4 = f109943[typeof call === "unknown" ? toString(items) : call(toString, items)] || "object";
|
||||
brewer = "string" === (f109998[typeof call === "unknown" ? toString(items) : call(toString, items)] || "object");
|
||||
const tmp4 = f109998[typeof call === "unknown" ? toString(items) : call(toString, items)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3284,7 +3284,7 @@ let fn = function n() {
|
|||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
tmp10 = f109943[typeof call2 === "unknown" ? toString2(arr2) : call2(toString2, arr2)] || "object";
|
||||
tmp10 = f109998[typeof call2 === "unknown" ? toString2(arr2) : call2(toString2, arr2)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3394,7 +3394,7 @@ let fn = function n() {
|
|||
dependencyMap[rounded] = interpolateResult;
|
||||
tmp51 = interpolateResult;
|
||||
}
|
||||
tmp29 = f109943[typeof call === "unknown" ? toString(tmp27) : call(toString, tmp27)] || "object";
|
||||
tmp29 = f109998[typeof call === "unknown" ? toString(tmp27) : call(toString, tmp27)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3613,7 +3613,7 @@ let fn = function n() {
|
|||
}
|
||||
items = tmp6;
|
||||
let tmp = fn;
|
||||
tmp5 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp5 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -3759,34 +3759,34 @@ let fn = function n() {
|
|||
tmp = blend;
|
||||
}
|
||||
closure_129_0 = (arg0) => arg0;
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.normal = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_130_0 = (arg0, arg1) => arg0 * arg1 / 255;
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.multiply = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_131_0 = (arg0, arg1) => 255 * (1 - (1 - arg0 / 255) * (1 - arg1 / 255));
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.screen = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_132_0 = (arg0, arg1) => {
|
||||
if (arg1 < 128) {
|
||||
|
|
@ -3796,14 +3796,14 @@ let fn = function n() {
|
|||
}
|
||||
return result;
|
||||
};
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.overlay = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_133_0 = (arg0, arg1) => {
|
||||
let tmp = arg0;
|
||||
|
|
@ -3812,14 +3812,14 @@ let fn = function n() {
|
|||
}
|
||||
return tmp;
|
||||
};
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.darken = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_134_0 = (arg0, arg1) => {
|
||||
let tmp = arg1;
|
||||
|
|
@ -3828,14 +3828,14 @@ let fn = function n() {
|
|||
}
|
||||
return tmp;
|
||||
};
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.lighten = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_135_0 = (arg0, arg1) => {
|
||||
let num = 255;
|
||||
|
|
@ -3848,24 +3848,24 @@ let fn = function n() {
|
|||
}
|
||||
return num;
|
||||
};
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.dodge = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
closure_136_0 = (arg0, arg1) => 255 * (1 - (1 - arg1 / 255) / (arg0 / 255));
|
||||
f109943 = (arg0, arg1) => {
|
||||
const items = [f109943(arg0[0], arg1[0]), f109943(arg0[1], arg1[1]), f109943(arg0[2], arg1[2])];
|
||||
f109998 = (arg0, arg1) => {
|
||||
const items = [f109998(arg0[0], arg1[0]), f109998(arg0[1], arg1[1]), f109998(arg0[2], arg1[2])];
|
||||
return items;
|
||||
};
|
||||
blend.burn = (arg0, arg1) => {
|
||||
const obj = closure_2_206(arg1);
|
||||
const rgbResult = closure_2_206(arg1).rgb();
|
||||
return closure_2_206.rgb(f109943(rgbResult, closure_2_206(arg0).rgb()));
|
||||
return closure_2_206.rgb(f109998(rgbResult, closure_2_206(arg0).rgb()));
|
||||
};
|
||||
pow = Math.pow;
|
||||
sin = Math.sin;
|
||||
|
|
@ -3894,8 +3894,8 @@ let fn = function n() {
|
|||
if (typeof type$p === "function") {
|
||||
const _Object = Object;
|
||||
const call = toString.call;
|
||||
tmp2 = "object" === (f109943[typeof call === "unknown" ? toString(item) : call(toString, item)] || "object");
|
||||
const tmp6 = f109943[typeof call === "unknown" ? toString(item) : call(toString, item)] || "object";
|
||||
tmp2 = "object" === (f109998[typeof call === "unknown" ? toString(item) : call(toString, item)] || "object");
|
||||
const tmp6 = f109998[typeof call === "unknown" ? toString(item) : call(toString, item)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -4097,7 +4097,7 @@ let fn = function n() {
|
|||
}
|
||||
return items1;
|
||||
}
|
||||
tmp4 = f109943[typeof call === "unknown" ? toString(dependencyMap) : call(toString, dependencyMap)] || "object";
|
||||
tmp4 = f109998[typeof call === "unknown" ? toString(dependencyMap) : call(toString, dependencyMap)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -4264,7 +4264,7 @@ let fn = function n() {
|
|||
const mapped = arr.map((item) => Color(item));
|
||||
if (2 === mapped.length) {
|
||||
const mapped1 = mapped.map((lab) => lab.lab());
|
||||
[f109943, type$p] = mapped1;
|
||||
[f109998, type$p] = mapped1;
|
||||
let fn = function a(arg0) {
|
||||
closure_0 = arg0;
|
||||
const items = [0, 1, 2];
|
||||
|
|
@ -4272,7 +4272,7 @@ let fn = function n() {
|
|||
};
|
||||
} else if (3 === mapped.length) {
|
||||
const mapped2 = mapped.map((lab) => lab.lab());
|
||||
[f109943, type$p, type$p] = mapped2;
|
||||
[f109998, type$p, type$p] = mapped2;
|
||||
fn = function a(arg0) {
|
||||
closure_0 = arg0;
|
||||
const items = [0, 1, 2];
|
||||
|
|
@ -4280,7 +4280,7 @@ let fn = function n() {
|
|||
};
|
||||
} else if (4 === mapped.length) {
|
||||
const mapped3 = mapped.map((lab) => lab.lab());
|
||||
[f109943, type$p, type$p, last] = mapped3;
|
||||
[f109998, type$p, type$p, last] = mapped3;
|
||||
fn = function a(arg0) {
|
||||
closure_0 = arg0;
|
||||
const items = [0, 1, 2];
|
||||
|
|
@ -4425,7 +4425,7 @@ let fn = function n() {
|
|||
c6 = 0;
|
||||
}
|
||||
tmp8 = fn;
|
||||
tmp3 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp3 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
@ -4446,7 +4446,7 @@ let fn = function n() {
|
|||
c5 = 0;
|
||||
}
|
||||
tmp4 = fn;
|
||||
tmp3 = f109943[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
tmp3 = f109998[typeof call === "unknown" ? toString(arg0) : call(toString, arg0)] || "object";
|
||||
} else {
|
||||
throw new TypeError("Trying to call a non-function");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function isAttributeObject(value) {
|
|||
function attributeValueToTypedAttributeValue(value, flag) {
|
||||
let tmp = value;
|
||||
if (!isAttributeObject(value)) {
|
||||
let obj = { value, unit: "Array" };
|
||||
let obj = { value, unit: "y" };
|
||||
tmp = obj;
|
||||
}
|
||||
({ value, unit } = tmp);
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ let closure_6 = async function _instrumentAsyncIterableStream(arg0, value) {
|
|||
closure_136_6 = undefined;
|
||||
closure_136_7 = undefined;
|
||||
let value4;
|
||||
const obj5 = { responseTexts: [], finishReasons: [], responseId: "", responseModel: "", promptTokens: "r", completionTokens: "w", cacheCreationInputTokens: "isArray", cacheReadInputTokens: "isArray", toolCalls: [], activeToolBlocks: {} };
|
||||
const obj5 = { responseTexts: [], finishReasons: [], responseId: "", responseModel: "", promptTokens: "r", completionTokens: "ip", cacheCreationInputTokens: "transform", cacheReadInputTokens: "isArray", toolCalls: [], activeToolBlocks: {} };
|
||||
closure_136_2 = obj5;
|
||||
closure_136_4 = false;
|
||||
closure_136_5 = false;
|
||||
|
|
@ -1052,9 +1052,9 @@ export const instrumentAsyncIterableStream = function instrumentAsyncIterableStr
|
|||
export const instrumentMessageStream = function instrumentMessageStream(applyResult, arg1, flag) {
|
||||
closure_0 = arg1;
|
||||
closure_1 = flag;
|
||||
const obj = { responseTexts: [], finishReasons: [], responseId: "", responseModel: "", promptTokens: "r", completionTokens: "w", cacheCreationInputTokens: "isArray", cacheReadInputTokens: "isArray", toolCalls: [], activeToolBlocks: {} };
|
||||
closure_2 = { responseTexts: [], finishReasons: [], responseId: "", responseModel: "", promptTokens: "r", completionTokens: "ip", cacheCreationInputTokens: "transform", cacheReadInputTokens: "isArray", toolCalls: [], activeToolBlocks: {} };
|
||||
applyResult.on("streamEvent", (arg0) => {
|
||||
processEvent(arg0, obj, closure_1, closure_0);
|
||||
processEvent(arg0, closure_2, closure_1, closure_0);
|
||||
});
|
||||
applyResult.on("message", () => {
|
||||
let tmp2 = closure_1;
|
||||
|
|
|
|||
|
|
@ -553,7 +553,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
obj5.name = "" + finalOperationName + " " + str15 + " stream-response";
|
||||
obj5.op = tmp4(tmp5[3]).getSpanOperation(tmp2);
|
||||
obj5.attributes = obj;
|
||||
closure_0 = closure_2(/* F122783 */ function() { ... });
|
||||
closure_0 = closure_2(/* F122847 */ function() { ... });
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, () => { ... });
|
||||
const tmp4Result7 = tmp4(tmp5[3]);
|
||||
} else {
|
||||
|
|
@ -720,7 +720,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
obj5.name = "" + finalOperationName + " " + str15 + " stream-response";
|
||||
obj5.op = tmp4(tmp5[3]).getSpanOperation(tmp2);
|
||||
obj5.attributes = obj;
|
||||
closure_0 = closure_2(/* F122783 */ function() { ... });
|
||||
closure_0 = closure_2(/* F122847 */ function() { ... });
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, () => { ... });
|
||||
const tmp4Result7 = tmp4(tmp5[3]);
|
||||
} else {
|
||||
|
|
@ -1283,7 +1283,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
c5 = 0;
|
||||
c6 = 0;
|
||||
c4 = 0;
|
||||
return (/* F127019 */ function*() { ... })();
|
||||
return (/* F127086 */ function*() { ... })();
|
||||
});
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, function(arg0) {
|
||||
const self = this;
|
||||
|
|
@ -1308,7 +1308,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
if (tmp) {
|
||||
closure_3(_function, first);
|
||||
}
|
||||
return str(dependencyMap[11]).handleCallbackErrors(() => { ... }, () => { ... }, /* F122787 */ function() { ... }, () => { ... });
|
||||
return str(dependencyMap[11]).handleCallbackErrors(() => { ... }, () => { ... }, /* F122851 */ function() { ... }, () => { ... });
|
||||
});
|
||||
const tmp4Result8 = tmp4(tmp5[3]);
|
||||
}
|
||||
|
|
@ -1516,7 +1516,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
c5 = 0;
|
||||
c6 = 0;
|
||||
c4 = 0;
|
||||
return (/* F127019 */ function*() { ... })();
|
||||
return (/* F127086 */ function*() { ... })();
|
||||
});
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, function(arg0) {
|
||||
const self = this;
|
||||
|
|
@ -1541,7 +1541,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
if (tmp) {
|
||||
closure_3(_function, first);
|
||||
}
|
||||
return str(dependencyMap[11]).handleCallbackErrors(() => { ... }, () => { ... }, /* F122787 */ function() { ... }, () => { ... });
|
||||
return str(dependencyMap[11]).handleCallbackErrors(() => { ... }, () => { ... }, /* F122851 */ function() { ... }, () => { ... });
|
||||
});
|
||||
const tmp4Result8 = tmp4(tmp5[3]);
|
||||
}
|
||||
|
|
@ -1699,7 +1699,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
obj5.name = "" + finalOperationName + " " + str15 + " stream-response";
|
||||
obj5.op = tmp4(tmp5[3]).getSpanOperation(tmp2);
|
||||
obj5.attributes = obj;
|
||||
closure_0 = closure_2(/* F122783 */ function() { ... });
|
||||
closure_0 = closure_2(/* F122847 */ function() { ... });
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, () => { ... });
|
||||
const tmp4Result7 = tmp4(tmp5[3]);
|
||||
} else {
|
||||
|
|
@ -1866,7 +1866,7 @@ export const instrumentGoogleGenAIClient = function instrumentGoogleGenAIClient(
|
|||
obj5.name = "" + finalOperationName + " " + str15 + " stream-response";
|
||||
obj5.op = tmp4(tmp5[3]).getSpanOperation(tmp2);
|
||||
obj5.attributes = obj;
|
||||
closure_0 = closure_2(/* F122783 */ function() { ... });
|
||||
closure_0 = closure_2(/* F122847 */ function() { ... });
|
||||
let startSpanManualResult = tmp4Result6.startSpanManual(obj5, () => { ... });
|
||||
const tmp4Result7 = tmp4(tmp5[3]);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ export const createLangChainCallbackHandler = function createLangChainCallbackHa
|
|||
lc_namespace: ["langchain_core", "callbacks", "sentry"],
|
||||
lc_secrets: "r",
|
||||
lc_attributes: "accessible",
|
||||
lc_aliases: "marginBottom",
|
||||
lc_serializable_keys: "colors",
|
||||
lc_aliases: "e",
|
||||
lc_serializable_keys: "concat",
|
||||
lc_id: ["langchain_core", "callbacks", "sentry"],
|
||||
lc_kwargs: {},
|
||||
name: false,
|
||||
|
|
|
|||
|
|
@ -3206,7 +3206,7 @@ function initObservers(doc) {
|
|||
({ mousemoveCb: drag, sampling, doc, mirror: fn3 } = doc);
|
||||
closure_2 = undefined;
|
||||
closure_3 = undefined;
|
||||
let f72966;
|
||||
let f73001;
|
||||
items = undefined;
|
||||
if (false === sampling.mousemove) {
|
||||
return () => {
|
||||
|
|
@ -3257,7 +3257,7 @@ function initObservers(doc) {
|
|||
closure_130_2 = {};
|
||||
closure_130_3 = null;
|
||||
closure_130_4 = 0;
|
||||
f72966 = function() {
|
||||
f73001 = function() {
|
||||
items = [...arguments];
|
||||
let self;
|
||||
const timestamp = Date.now();
|
||||
|
|
@ -4568,7 +4568,7 @@ function initObservers(doc) {
|
|||
} catch (tmp7) {
|
||||
if (closure_2_79) {
|
||||
if (true === tmp8(tmp7)) {
|
||||
return /* F110327 */ function() { ... };
|
||||
return /* F110382 */ function() { ... };
|
||||
}
|
||||
}
|
||||
throw tmp7;
|
||||
|
|
@ -4634,7 +4634,7 @@ function initObservers(doc) {
|
|||
} catch (tmp7) {
|
||||
if (closure_2_79) {
|
||||
if (true === tmp8(tmp7)) {
|
||||
return /* F110327 */ function() { ... };
|
||||
return /* F110382 */ function() { ... };
|
||||
}
|
||||
}
|
||||
throw tmp7;
|
||||
|
|
@ -5485,7 +5485,7 @@ function addBreadcrumbEvent(triggerUserActivity, category) {
|
|||
}
|
||||
obj.timestamp = 1000 * num;
|
||||
const obj2 = { tag: "breadcrumb", payload: null };
|
||||
const normalizer = f110369(map[8]);
|
||||
const normalizer = f110424(map[8]);
|
||||
obj2.payload = normalizer.normalize(_null, 10, 1000);
|
||||
obj.data = obj2;
|
||||
obj.throttledAddEvent(obj);
|
||||
|
|
@ -6216,7 +6216,7 @@ function mergeWarning(_meta, arg1) {
|
|||
_meta._meta = headers;
|
||||
return _meta;
|
||||
} else {
|
||||
const obj2 = { headers, size: "Array", _meta: "function pnpm_presetsTs1(event){return{transform:[{translateX:event.translationX}]};}" };
|
||||
const obj2 = { headers, size: "Array", _meta: -1 };
|
||||
const obj3 = { warnings: null };
|
||||
const items1 = [arg1];
|
||||
obj3.warnings = items1;
|
||||
|
|
@ -6658,7 +6658,7 @@ let closure_159 = async function _prepareFetchData2(arg0, arg1, arg2) {
|
|||
tmp23._meta = obj11;
|
||||
let obj14 = tmp23;
|
||||
} else {
|
||||
obj14 = { headers: obj11, size: "Array", _meta: "function pnpm_presetsTs1(event){return{transform:[{translateX:event.translationX}]};}" };
|
||||
obj14 = { headers: obj11, size: "Array", _meta: -1 };
|
||||
const obj16 = { warnings: null };
|
||||
const items1 = [tmp21];
|
||||
obj16.warnings = items1;
|
||||
|
|
@ -7443,7 +7443,7 @@ let closure_164 = async function _captureXhrBreadcrumbToReplay(arg0, arg1, arg2)
|
|||
tmp22._meta = obj9;
|
||||
let obj10 = tmp22;
|
||||
} else {
|
||||
obj10 = { headers: obj9, size: "Array", _meta: "function pnpm_presetsTs1(event){return{transform:[{translateX:event.translationX}]};}" };
|
||||
obj10 = { headers: obj9, size: "Array", _meta: -1 };
|
||||
const obj11 = { warnings: null };
|
||||
let items2 = [tmp17];
|
||||
obj11.warnings = items2;
|
||||
|
|
@ -7461,7 +7461,7 @@ let closure_164 = async function _captureXhrBreadcrumbToReplay(arg0, arg1, arg2)
|
|||
tmp18._meta = obj12;
|
||||
let obj13 = tmp18;
|
||||
} else {
|
||||
obj13 = { headers: obj12, size: "Array", _meta: "function pnpm_presetsTs1(event){return{transform:[{translateX:event.translationX}]};}" };
|
||||
obj13 = { headers: obj12, size: "Array", _meta: -1 };
|
||||
const obj14 = { warnings: null };
|
||||
let items4 = [tmp14];
|
||||
obj14.warnings = items4;
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ export const adjustTransactionDuration = (on, activeSpan, arg2) => {
|
|||
}
|
||||
};
|
||||
export const ignoreEmptyBackNavigation = (on, c4) => {
|
||||
const f73535 = (arg0) => {
|
||||
const data = c4(f73535[2]).spanToJSON(arg0).data;
|
||||
const f73570 = (arg0) => {
|
||||
const data = c4(f73570[2]).spanToJSON(arg0).data;
|
||||
let prop;
|
||||
if (null !== data) {
|
||||
if (undefined !== data) {
|
||||
|
|
@ -64,8 +64,8 @@ export const ignoreEmptyBackNavigation = (on, c4) => {
|
|||
}
|
||||
return true === prop;
|
||||
};
|
||||
const f73536 = () => {
|
||||
const debug = c4(f73535[2]).debug;
|
||||
const f73571 = () => {
|
||||
const debug = c4(f73570[2]).debug;
|
||||
debug.log("Not sampling transaction as route has been seen before. Pass ignoreEmptyBackNavigationTransactions = false to disable this feature.");
|
||||
};
|
||||
if (on) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export const reactNativeTracingIntegration = () => {
|
|||
let merged1;
|
||||
let fn2;
|
||||
let url;
|
||||
let obj2 = { currentRoute: "Array" };
|
||||
let obj2 = { currentRoute: "r" };
|
||||
let fn = obj.beforeStartSpan;
|
||||
const merged = Object.assign(Object.assign({}, url), obj);
|
||||
if (null === fn) {
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ class FeedbackWidget {
|
|||
closure_129_12 = undefined;
|
||||
closure_129_0 = undefined;
|
||||
if (self._hasScreenshot()) {
|
||||
debug.setState({ filename: "getChannel", attachment: "call", attachmentUri: "right" });
|
||||
debug.setState({ filename: "Array", attachment: "call", attachmentUri: "error" });
|
||||
} else {
|
||||
num2 = debug.props.imagePicker;
|
||||
closure_129_6 = num2;
|
||||
|
|
@ -465,7 +465,7 @@ class FeedbackWidget {
|
|||
FeedbackWidget._savedState = Object.assign({}, closure_0.state);
|
||||
};
|
||||
tmp4Result._clearFormState = () => {
|
||||
closure_0._savedState = { name: "", email: "", description: "", filename: "ip", attachment: "isArray", attachmentUri: "isArray" };
|
||||
closure_0._savedState = { name: "", email: "", description: "", filename: "call", attachment: "", attachmentUri: "v" };
|
||||
};
|
||||
tmp4Result._hasScreenshot = () => undefined !== closure_0.state.filename && undefined !== closure_0.state.attachment && undefined !== closure_0.state.attachmentUri;
|
||||
tmp4Result._getUser = () => {
|
||||
|
|
@ -789,12 +789,12 @@ let items = [
|
|||
const entry1 = {
|
||||
key: "reset",
|
||||
value: function reset() {
|
||||
FeedbackWidget._savedState = { name: "", email: "", description: "", filename: "ip", attachment: "isArray", attachmentUri: "isArray" };
|
||||
FeedbackWidget._savedState = { name: "", email: "", description: "", filename: "call", attachment: "", attachmentUri: "v" };
|
||||
}
|
||||
};
|
||||
const items1 = [entry1];
|
||||
const importDefaultResultResult = _createClass(FeedbackWidget, items, items1);
|
||||
importDefaultResultResult.defaultProps = fn(1066).defaultConfiguration;
|
||||
importDefaultResultResult._savedState = { name: "", email: "", description: "", filename: "ip", attachment: "isArray", attachmentUri: "isArray" };
|
||||
importDefaultResultResult._savedState = { name: "", email: "", description: "", filename: "call", attachment: "", attachmentUri: "v" };
|
||||
|
||||
export const FeedbackWidget = importDefaultResultResult;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ let AggregateError;
|
|||
if (typeof globalThis.AggregateError !== "undefined") {
|
||||
AggregateError = globalThis.AggregateError;
|
||||
}
|
||||
const merged = Object.assign({ "%AggregateError%": null, "%Array%": null, "%ArrayBuffer%": null, "%ArrayIteratorPrototype%": null, "%AsyncFromSyncIteratorPrototype%": "fill", "%AsyncFunction%": "\u00C5bn Discord", "%AsyncGenerator%": "Tilmeld dig nu", "%AsyncGeneratorFunction%": "Klar til at pr\u00F8ve Discord? Det er gratis.", "%AsyncIteratorPrototype%": "SLUT DIG TIL OVER {num} MILLIONER AF SPILLERE I DAG", "%Atomics%": "Start", "%BigInt%": "Funktioner", "%BigInt64Array%": "Nitro", "%BigUint64Array%": "Download", "%Boolean%": "Partnere", "%DataView%": "Byg", "%Date%": "Mere", "%decodeURI%": "Status", "%decodeURIComponent%": "Hj\u00E6lp og support", "%encodeURI%": "Retningslinjer", "%encodeURIComponent%": "HypeSquad", "%Error%": "StreamKit", "%eval%": "Selskab", "%EvalError%": "Stillinger", "%Float16Array%": "Sikkerhed", "%Float32Array%": "Udviklere", "%Float64Array%": "Dokumentation", "%FinalizationRegistry%": "Varem\u00E6rke", "%Function%": "Log ind", "%GeneratorFunction%": "\u00C5bn", "%Int8Array%": "Produkt", "%Int16Array%": "Ressourcer", "%Int32Array%": "Applikationer", "%isFinite%": "Betingelser", "%isNaN%": "Fortrolighed", "%IteratorPrototype%": "Om", "%JSON%": "Bekr\u00E6ftelse", "%Map%": "Rich Presence", "%MapIteratorPrototype%": "Presseforesp\u00F8rgsler", "%Math%": "Support", "%Number%": "UdviklingsPortal", "%Object%": "Community", "%Object.getOwnPropertyDescriptor%": "Sikkerhed", "%parseFloat%": "Sikkerhedscenter", "%parseInt%": "Mod-Akademiet", "%Promise%": "Udforsk", "%Proxy%": "Servere", "%RangeError%": "Karrierer", "%ReferenceError%": "Missioner", "%Reflect%": "{count, plural, one {# eksklusiv fordel} other {# eksklusive fordele}}", "%RegExp%": "Eksklusivt for dette niveau", "%Set%": "Serverabonnement", "%SetIteratorPrototype%": "Personligt abonnement", "%SharedArrayBuffer%": "+ {count, plural, one {# fordel mere} other {# fordele mere}}", "%String%": "{num}M", "%StringIteratorPrototype%": "{num}K", "%Symbol%": "Dit sted, hvor du kan tale med communities og venner.", "%SyntaxError%": "Stop!", "%ThrowTypeError%": "Hvis nogen bad dig om at kopiere og inds\u00E6tte noget her, er der en 110 % chance for, at du bliver snydt.", "%TypedArray%": "Hvis du inds\u00E6tter noget herinde, giver det scammere adgang til din Discord-konto.", "%TypeError%": "Medmindre du forst\u00E5r pr\u00E6cist, hvad du har gang i, s\u00E5 luk dette vindue og forbliv p\u00E5 den sikre side.", "%Uint8Array%": "Hvis du rent faktisk forst\u00E5r pr\u00E6cist, hvad du har gang i, skulle du komme og arbejde sammen med os {url}", "%Uint8ClampedArray%": "safety_pin", "%Uint16Array%": 0.667, "%Uint32Array%": 0.667, "%URIError%": 0.667, "%WeakMap%": "ArrayBuffer", "%WeakRef%": "prototype", "%WeakSet%": "less than a minute", "%Function.prototype.call%": "less than {{count}} minutes", "%Function.prototype.apply%": "<string:18354250>", "%Object.defineProperty%": "<string:28984064>", "%Object.getPrototypeOf%": "<string:28984320>", "%Math.abs%": "<string:34871296>", "%Math.floor%": "<string:19176960>", "%Math.max%": "<string:26853120>", "%Math.min%": "<string:47000320>", "%Math.pow%": "<string:18632960>", "%Math.round%": "<string:19294720>", "%Math.sign%": "<string:22248704>", "%Reflect.getPrototypeOf%": "<string:2214643200>" });
|
||||
const merged = Object.assign({ "%AggregateError%": null, "%Array%": null, "%ArrayBuffer%": null, "%ArrayIteratorPrototype%": null, "%AsyncFromSyncIteratorPrototype%": "fill", "%AsyncFunction%": "\u00C5bn Discord", "%AsyncGenerator%": "Tilmeld dig nu", "%AsyncGeneratorFunction%": "Klar til at pr\u00F8ve Discord? Det er gratis.", "%AsyncIteratorPrototype%": "SLUT DIG TIL OVER {num} MILLIONER AF SPILLERE I DAG", "%Atomics%": "Start", "%BigInt%": "Funktioner", "%BigInt64Array%": "Nitro", "%BigUint64Array%": "Download", "%Boolean%": "Partnere", "%DataView%": "Byg", "%Date%": "Mere", "%decodeURI%": "Status", "%decodeURIComponent%": "Hj\u00E6lp og support", "%encodeURI%": "Retningslinjer", "%encodeURIComponent%": "HypeSquad", "%Error%": "StreamKit", "%eval%": "Selskab", "%EvalError%": "Stillinger", "%Float16Array%": "Sikkerhed", "%Float32Array%": "Udviklere", "%Float64Array%": "Dokumentation", "%FinalizationRegistry%": "Varem\u00E6rke", "%Function%": "Log ind", "%GeneratorFunction%": "\u00C5bn", "%Int8Array%": "Produkt", "%Int16Array%": "Ressourcer", "%Int32Array%": "Applikationer", "%isFinite%": "Betingelser", "%isNaN%": "Fortrolighed", "%IteratorPrototype%": "Om", "%JSON%": "Bekr\u00E6ftelse", "%Map%": "Rich Presence", "%MapIteratorPrototype%": "Presseforesp\u00F8rgsler", "%Math%": "Support", "%Number%": "UdviklingsPortal", "%Object%": "Community", "%Object.getOwnPropertyDescriptor%": "Sikkerhed", "%parseFloat%": "Sikkerhedscenter", "%parseInt%": "Mod-Akademiet", "%Promise%": "Udforsk", "%Proxy%": "Servere", "%RangeError%": "Karrierer", "%ReferenceError%": "Missioner", "%Reflect%": "{count, plural, one {# eksklusiv fordel} other {# eksklusive fordele}}", "%RegExp%": "Eksklusivt for dette niveau", "%Set%": "Serverabonnement", "%SetIteratorPrototype%": "Personligt abonnement", "%SharedArrayBuffer%": "+ {count, plural, one {# fordel mere} other {# fordele mere}}", "%String%": "{num}M", "%StringIteratorPrototype%": "{num}K", "%Symbol%": "Dit sted, hvor du kan tale med communities og venner.", "%SyntaxError%": "Stop!", "%ThrowTypeError%": "Hvis nogen bad dig om at kopiere og inds\u00E6tte noget her, er der en 110 % chance for, at du bliver snydt.", "%TypedArray%": "Hvis du inds\u00E6tter noget herinde, giver det scammere adgang til din Discord-konto.", "%TypeError%": "Medmindre du forst\u00E5r pr\u00E6cist, hvad du har gang i, s\u00E5 luk dette vindue og forbliv p\u00E5 den sikre side.", "%Uint8Array%": "Hvis du rent faktisk forst\u00E5r pr\u00E6cist, hvad du har gang i, skulle du komme og arbejde sammen med os {url}", "%Uint8ClampedArray%": "person_lifting_weights", "%Uint16Array%": "lifter", "%Uint32Array%": "weight_lifter", "%URIError%": 0.667, "%WeakMap%": 0.667, "%WeakRef%": 0.667, "%WeakSet%": "ArrayBuffer", "%Function.prototype.call%": "prototype", "%Function.prototype.apply%": "boba", "%Object.defineProperty%": "br\u010Dko", "%Object.getPrototypeOf%": "bubble tea", "%Math.abs%": "bublinkov\u00FD", "%Math.floor%": "\u010Daj", "%Math.max%": "j\u00EDdlo", "%Math.min%": "ml\u00E9\u010Dn\u00FD", "%Math.pow%": "n\u00E1poj", "%Math.round%": "perli\u010Dkov\u00FD", "%Math.sign%": "perli\u010Dky", "%Reflect.getPrototypeOf%": "perliv\u00FD" });
|
||||
merged[0] = AggregateError;
|
||||
merged[1] = Array;
|
||||
let _ArrayBuffer;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default function getSideChannelList() {
|
|||
set(key, value) {
|
||||
let iter = obj;
|
||||
if (!obj) {
|
||||
obj = { next: "Array" };
|
||||
obj = { next: "r" };
|
||||
iter = obj;
|
||||
}
|
||||
let iter2 = iter.next;
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ export const getActionFromState = function getActionFromState(index, initialRout
|
|||
}
|
||||
let tmp23 = substr1[substr1.length - 1];
|
||||
let _Object3 = Object;
|
||||
let merged1 = Object.assign(obj5, { initial: "Array", screen: "flexDirection", params: "y", state: "HermesInternal" });
|
||||
let merged1 = Object.assign(obj5, { initial: "call", screen: "delete", params: "i", state: "Array" });
|
||||
if (1 === substr1.length) {
|
||||
if (undefined === substr1[0].key) {
|
||||
obj5.initial = true;
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ export const KeyboardProvider = (enabled) => {
|
|||
}
|
||||
}, items1);
|
||||
const obj13 = { value: tmp9, children: null };
|
||||
const obj14 = { ref: tmp3, enabled, navigationBarTranslucent: null, statusBarTranslucent: null, preserveEdgeToEdge: null, style: null, onKeyboardMoveReanimated: null, onKeyboardMoveStart: "Boolean", onKeyboardMove: "nl-BE", onKeyboardMoveInteractive: "nl", onKeyboardMoveEnd: false, onFocusedInputLayoutChangedReanimated: false, children: null };
|
||||
const obj14 = { ref: tmp3, enabled, navigationBarTranslucent: null, statusBarTranslucent: null, preserveEdgeToEdge: null, style: null, onKeyboardMoveReanimated: null, onKeyboardMoveStart: "Boolean", onKeyboardMove: "zh-Hans-HK", onKeyboardMoveInteractive: "zh-Hans", onKeyboardMoveEnd: true, onFocusedInputLayoutChangedReanimated: null, children: 500 };
|
||||
let tmp18 = updateSharedValues;
|
||||
let tmp19 = updateSharedValues;
|
||||
if (!updateSharedValues) {
|
||||
|
|
|
|||
|
|
@ -82,8 +82,8 @@ fn = function n(userConfig, callback) {
|
|||
initialVelocity: 0,
|
||||
current: "disabled",
|
||||
lastTimestamp: null,
|
||||
startTimestamp: "EMBEDDED_ACTIVITY_CLOSE",
|
||||
reduceMotion: null
|
||||
startTimestamp: "ProfileBadgeRows",
|
||||
reduceMotion: "TYPING_START_LOCAL"
|
||||
};
|
||||
let num = obj.velocity;
|
||||
if (num == null) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ fn = function n(toValue, userConfig, callback) {
|
|||
dependencyMap = userConfig;
|
||||
__initData = callback;
|
||||
const fn = function u() {
|
||||
let obj = { damping: 10, mass: 1, stiffness: 100, overshootClamping: false, restDisplacementThreshold: 0.01, restSpeedThreshold: 2, velocity: 0, duration: 2000, dampingRatio: 0.5, reduceMotion: "call", clamp: "enabled" };
|
||||
let obj = { damping: 10, mass: 1, stiffness: 100, overshootClamping: false, restDisplacementThreshold: 0.01, restSpeedThreshold: 2, velocity: 0, duration: 2000, dampingRatio: 0.5, reduceMotion: "call", clamp: "getCurrentUser" };
|
||||
const merged = Object.assign(dependencyMap);
|
||||
let duration;
|
||||
if (dependencyMap != null) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ let closure_5 = { code: "function pnpm_useAnimatedKeyboardTs2(state,height){cons
|
|||
export const useAnimatedKeyboard = function useAnimatedKeyboard() {
|
||||
let obj = arg0;
|
||||
if (arg0 === undefined) {
|
||||
obj = { isStatusBarTranslucentAndroid: "a", isNavigationBarTranslucentAndroid: "isArray" };
|
||||
obj = { isStatusBarTranslucentAndroid: "Array", isNavigationBarTranslucentAndroid: "PX_16" };
|
||||
}
|
||||
let ref2;
|
||||
let obj2;
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ export const useAnimatedStyle = function useAnimatedStyle(fn, items, arg2, arg3)
|
|||
obj.remoteState = tmp10(tmp11[9]).makeShareable(obj5);
|
||||
const tmp10Result4 = tmp10(tmp11[9]);
|
||||
obj.viewDescriptors = tmp10(tmp11[10]).makeViewDescriptorsSet();
|
||||
obj.styleUpdaterContainer = { current: "Array" };
|
||||
obj.styleUpdaterContainer = { current: "r" };
|
||||
tmp2.current = obj;
|
||||
const tmp10Result5 = tmp10(tmp11[10]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ if (!module_1640) {
|
|||
const __initData = { code: "function pnpm_useAnimatedRefTs1(){const{tagOrWrapper,viewName}=this.__closure;const f=function(){return tagOrWrapper.value;};if(viewName){f.viewName=viewName;}return f;}" };
|
||||
|
||||
export const useAnimatedRef = module_1640 ? (function useAnimatedRefWeb() {
|
||||
const f75691 = (getScrollableNode) => {
|
||||
const f75726 = (getScrollableNode) => {
|
||||
if (getScrollableNode.getScrollableNode) {
|
||||
let scrollableNode = getScrollableNode.getScrollableNode();
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -868,7 +868,7 @@ let fn = function t() {
|
|||
requiredFirstCharacters: ["h"],
|
||||
match: inlineRegex(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),
|
||||
parse(content, arg1, arg2) {
|
||||
obj = { type: "link", content: null, target: content[1], title: "call" };
|
||||
obj = { type: "link", content: null, target: content[1], title: "accessible" };
|
||||
const items = [{ type: "text", content: content[1] }];
|
||||
obj.content = items;
|
||||
return obj;
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@
|
|||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/modules/vibegrations/intl", scales: [1], hash: "09900bfa401fe2ab8bd13c29a4e0e838", name: "VibegrationsUntranslated.compiled.messages", type: "jsona" });
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/modules/vibegrations/intl", scales: [1], hash: "2abf1ac11c0e14fc9541d2e2249b3921", name: "VibegrationsUntranslated.compiled.messages", type: "jsona" });
|
||||
|
|
|
|||
|
|
@ -2457,8 +2457,8 @@ let fn = () => {
|
|||
if (!hasOwnProperty2Result) {
|
||||
continue;
|
||||
} else {
|
||||
tmp18 = f78803;
|
||||
call = f78803.call;
|
||||
tmp18 = f78838;
|
||||
call = f78838.call;
|
||||
tmp19 = closure_82;
|
||||
if (typeof call === "unknown") {
|
||||
tmp18Result = tmp18(key10033);
|
||||
|
|
|
|||
|
|
@ -909,7 +909,7 @@ let fn = () => {
|
|||
self._onReject = obj1.onReject || obj.defaultOnReject;
|
||||
if (obj.shouldCatchExceptions(obj1)) {
|
||||
_promise = self._promise;
|
||||
catchPromise = _promise.catch(/* F127160 */ function() { ... });
|
||||
catchPromise = _promise.catch(/* F127227 */ function() { ... });
|
||||
}
|
||||
_resetStateResult = self._resetState();
|
||||
} else {
|
||||
|
|
@ -1444,14 +1444,14 @@ let fn = () => {
|
|||
arg0.constants = obj2;
|
||||
arg0.loadAxo = function loadAxo(arg0) {
|
||||
const self = this;
|
||||
const f127177 = () => {
|
||||
const f127244 = () => {
|
||||
let minified = () => { ... };
|
||||
closure_5 = { label: 0, sent() { ... }, trys: [], ops: [] };
|
||||
let obj = { next: () => { ... }, throw: () => { ... }, return: () => { ... } };
|
||||
let btSdkVersion = 2;
|
||||
if (typeof Symbol === "function") {
|
||||
let _Symbol = Symbol;
|
||||
obj[Symbol.iterator] = /* F127171 */ function() { ... };
|
||||
obj[Symbol.iterator] = /* F127238 */ function() { ... };
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
|
|
@ -2077,7 +2077,7 @@ let fn = () => {
|
|||
if (this.limitBroadcastToFramesArray) {
|
||||
targetFrames = this.targetFrames;
|
||||
mapped = targetFrames.map(() => { ... });
|
||||
found = mapped.filter(/* F127184 */ function() { ... });
|
||||
found = mapped.filter(/* F127251 */ function() { ... });
|
||||
} else {
|
||||
found = [];
|
||||
}
|
||||
|
|
@ -2090,7 +2090,7 @@ let fn = () => {
|
|||
result = self.targetFramesAsWindows();
|
||||
tmp = globalThis;
|
||||
_Boolean = Boolean;
|
||||
return Boolean(result.find(/* F127185 */ function() { ... }));
|
||||
return Boolean(result.find(/* F127252 */ function() { ... }));
|
||||
} else {
|
||||
flag = true;
|
||||
return true;
|
||||
|
|
@ -2928,7 +2928,7 @@ let fn = () => {
|
|||
tmp = applePayWeb.merchantCapabilities || ["supports3DS"];
|
||||
obj.merchantCapabilities = tmp;
|
||||
supportedNetworks = applePayWeb.supportedNetworks;
|
||||
obj.supportedNetworks = supportedNetworks.map(/* F123362 */ function() { ... });
|
||||
obj.supportedNetworks = supportedNetworks.map(/* F123426 */ function() { ... });
|
||||
return Object.assign({}, obj, global);
|
||||
}
|
||||
performValidation(arg0) {
|
||||
|
|
@ -6335,7 +6335,7 @@ let fn = () => {
|
|||
}
|
||||
}
|
||||
},
|
||||
{ crypto: "Array" }
|
||||
{ crypto: "r" }
|
||||
];
|
||||
obj[116] = items115;
|
||||
const items116 = [
|
||||
|
|
@ -10773,7 +10773,7 @@ let fn = () => {
|
|||
self._clientPromise = obj5.then(fn.bind(self));
|
||||
if (global.client) {
|
||||
_clientPromise = self._clientPromise;
|
||||
fn2 = /* F123501 */ function() { ... };
|
||||
fn2 = /* F123565 */ function() { ... };
|
||||
nextPromise = _clientPromise.then(fn2.bind(self));
|
||||
} else {
|
||||
tmp4 = globalThis;
|
||||
|
|
@ -11103,7 +11103,7 @@ let fn = () => {
|
|||
}
|
||||
fn2 = () => { ... };
|
||||
nextPromise = resolved.then(fn2.bind(self));
|
||||
fn3 = /* F123525 */ function() { ... };
|
||||
fn3 = /* F123589 */ function() { ... };
|
||||
return promise.then(fn3.bind(self));
|
||||
} else {
|
||||
if (dataAttributes["client-metadata-id"]) {
|
||||
|
|
@ -11367,7 +11367,7 @@ let fn = () => {
|
|||
removeChildResult = parentNode.removeChild(self._paypalScript);
|
||||
}
|
||||
_frameServicePromise = self._frameServicePromise;
|
||||
catchPromise = _frameServicePromise.catch(/* F123527 */ function() { ... });
|
||||
catchPromise = _frameServicePromise.catch(/* F123591 */ function() { ... });
|
||||
return catchPromise.then(() => { ... });
|
||||
}
|
||||
}
|
||||
|
|
@ -12705,7 +12705,7 @@ let fn = () => {
|
|||
}
|
||||
_addV1IframeToPage() {
|
||||
obj = { element: this._v1Modal };
|
||||
_emitResult = this._emit(InlineIframeFramework.events.AUTHENTICATION_IFRAME_AVAILABLE, obj, /* F123573 */ function() { ... });
|
||||
_emitResult = this._emit(InlineIframeFramework.events.AUTHENTICATION_IFRAME_AVAILABLE, obj, /* F123637 */ function() { ... });
|
||||
return;
|
||||
}
|
||||
_setupFrameworkSpecificListeners() {
|
||||
|
|
@ -12910,7 +12910,7 @@ let fn = () => {
|
|||
dfReferenceId = this.getDfReferenceId();
|
||||
nextPromise = dfReferenceId.then(() => { ... });
|
||||
nextPromise1 = nextPromise.then(() => { ... });
|
||||
catchPromise = nextPromise1.catch(/* F123587 */ function() { ... });
|
||||
catchPromise = nextPromise1.catch(/* F123651 */ function() { ... });
|
||||
nextPromise2 = catchPromise.then(() => { ... });
|
||||
return nextPromise2.then(() => { ... });
|
||||
}
|
||||
|
|
@ -14609,11 +14609,11 @@ let fn = () => {
|
|||
if (this.venmoContextId) {
|
||||
tmp = fn;
|
||||
obj1 = { input: null };
|
||||
tmp2 = f123637;
|
||||
tmp2 = f123701;
|
||||
obj4 = { id: null, status: null };
|
||||
obj4.id = self.venmoContextId;
|
||||
obj4.status = fn;
|
||||
obj1.input = f123637(obj4, obj);
|
||||
obj1.input = f123701(obj4, obj);
|
||||
tmp3 = closure_5;
|
||||
apiRequestResult = self.apiRequest(self.shouldUseLegacyQRCodeMutation ? tmp3.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY : tmp3.UPDATE_PAYMENT_CONTEXT_QUERY, obj1);
|
||||
return apiRequestResult.then(() => {
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ require = fn;
|
|||
const noop = fn(19);
|
||||
({ useCallback: c3, useEffect: closure_4, useRef: hasOwnProperty, useState: metroRequire } = noop);
|
||||
|
||||
export const useRiveProperty = function useRiveProperty(instance, FillColor, f31278) {
|
||||
export const useRiveProperty = function useRiveProperty(instance, FillColor, f31289) {
|
||||
closure_0 = instance;
|
||||
closure_1 = FillColor;
|
||||
closure_2 = f31278;
|
||||
closure_2 = f31289;
|
||||
let tmp = hasOwnProperty(undefined);
|
||||
const items = [instance, FillColor];
|
||||
const disposableMemo = _mod4526.useDisposableMemo(() => {
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ import _slicedToArray from "module_32" /* 32 */;
|
|||
const RiveColor2 = tmp(4520);
|
||||
require = fn;
|
||||
fn(19).useCallback;
|
||||
const f31278 = (colorProperty, arg1) => colorProperty.colorProperty(arg1);
|
||||
const f31289 = (colorProperty, arg1) => colorProperty.colorProperty(arg1);
|
||||
|
||||
export const useRiveColor = function useRiveColor(FillColor, instance) {
|
||||
const cResult = c.c(8);
|
||||
const tmp4 = _slicedToArray(_mod4525.useRiveProperty(instance, FillColor, f31278), 3);
|
||||
const tmp4 = _slicedToArray(_mod4525.useRiveProperty(instance, FillColor, f31289), 3);
|
||||
[tmp5, tmp6] = tmp4;
|
||||
require = tmp6;
|
||||
if (cResult[0] !== tmp5) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const useRiveFile = function useRiveFile(src, arg1) {
|
|||
let str2;
|
||||
let uri;
|
||||
let riveFile;
|
||||
[tmp2, c1] = str2({ riveFile: "HermesInternal", isLoading: null, error: "user" });
|
||||
[tmp2, c1] = str2({ riveFile: "HermesInternal", isLoading: null, error: "button" });
|
||||
const items = [obj.referencedAssets];
|
||||
let tmp3 = riveFile(() => {
|
||||
const referencedAssets = obj.referencedAssets;
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ const tmp9 = noop.createContext || (function createReactContext(keys, arg1) {
|
|||
},
|
||||
off(arg0) {
|
||||
closure_0 = arg0;
|
||||
closure_1 = closure_1.filter(/* F128215 */ function() { ... });
|
||||
closure_1 = closure_1.filter(/* F128283 */ function() { ... });
|
||||
},
|
||||
get() {
|
||||
return value;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ const forwardRefResult = noop.forwardRef(function InnerScreen(activityState, ref
|
|||
};
|
||||
}
|
||||
obj4.onGestureCancel = onGestureCancel;
|
||||
const items = [style, { zIndex: "Array" }];
|
||||
const items = [style, { zIndex: "r" }];
|
||||
obj4.style = items;
|
||||
obj4.activityState = activityState2;
|
||||
obj4.screenId = tmp14;
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5272
|
||||
// Function ID: 5273
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5272
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "7a4c4444d71334d193c868d5d6b78800", name: "BookCheckIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5274
|
||||
// Function ID: 5275
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5274
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "aa3bf5fde9af21e55dfd8368b9aaaf36", name: "TextControllerIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5275
|
||||
// Function ID: 5276
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5275
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "0e8c9cd01e5a3da643cc71e6763376dc", name: "ExperimentalLfgLockIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5276
|
||||
// Function ID: 5277
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5276
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "d9312bb32f25ade901c17406f7f53267", name: "ImageLockIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5277
|
||||
// Function ID: 5278
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5277
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "4f2842b39c98933e8b7bea806132028f", name: "ForumLockIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5278
|
||||
// Function ID: 5279
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5278
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "0f660b1a58b1b7d08f5a3d6e321f201a", name: "AnnouncementsLockIcon", type: "png" });
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
// Module ID: 5279
|
||||
// Function ID: 5280
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5279
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "9f19e3d7e93bc823e490a582e66b0758", name: "LockIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5281.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5281.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5281
|
||||
// Function ID: 5282
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5281
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "7a4c4444d71334d193c868d5d6b78800", name: "BookCheckIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5282.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5282.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5282
|
||||
// Function ID: 5283
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5282
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "aa3bf5fde9af21e55dfd8368b9aaaf36", name: "TextControllerIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5283.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5283.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5283
|
||||
// Function ID: 5284
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5283
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "0e8c9cd01e5a3da643cc71e6763376dc", name: "ExperimentalLfgLockIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5284.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5284.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5284
|
||||
// Function ID: 5285
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5284
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "d9312bb32f25ade901c17406f7f53267", name: "ImageLockIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5285.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5285.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5285
|
||||
// Function ID: 5286
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5285
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "4f2842b39c98933e8b7bea806132028f", name: "ForumLockIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5286.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5286.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5286
|
||||
// Function ID: 5287
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5286
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "0f660b1a58b1b7d08f5a3d6e321f201a", name: "AnnouncementsLockIcon", type: "png" });
|
||||
9
alpha/source/__polyfill/05xxx/module_5287.js
Normal file
9
alpha/source/__polyfill/05xxx/module_5287.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Module ID: 5287
|
||||
// Function ID: 5288
|
||||
// Dependencies: [1121]
|
||||
|
||||
// Module 5287
|
||||
import registerAsset from "module_1121" /* 1121 */;
|
||||
|
||||
|
||||
export default registerAsset.registerAsset({ __packager_asset: true, httpServerLocation: "/assets/design/components/Icon/native/redesign/generated/images", width: 24, height: 24, scales: [2, 3], hash: "9f19e3d7e93bc823e490a582e66b0758", name: "LockIcon", type: "png" });
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
// Module ID: 5364
|
||||
// Function ID: 5365
|
||||
// Dependencies: []
|
||||
|
||||
// Module 5364
|
||||
|
|
@ -3,652 +3,3 @@
|
|||
// Dependencies: []
|
||||
|
||||
// Module 5369
|
||||
const module = arg4;
|
||||
const exports = arg5;
|
||||
((fn) => {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = fn();
|
||||
} else {
|
||||
if (typeof globalThis.define === "function") {
|
||||
if (globalThis.define.amd) {
|
||||
globalThis.define(fn);
|
||||
}
|
||||
}
|
||||
try {
|
||||
let _self = window;
|
||||
_self.SparkMD5 = fn();
|
||||
} catch (err) {
|
||||
_self = tmp.self;
|
||||
}
|
||||
}
|
||||
})((arg0) => {
|
||||
closure_0 = arg0;
|
||||
function md5cycle(items, items2) {
|
||||
const sum = items[0] + ((tmp & tmp2 | ~tmp & tmp3) + items2[0] - 680876936 | 0);
|
||||
const sum1 = tmp3 + ((tmp5 & tmp | ~tmp5 & tmp2) + items2[1] - 389564586 | 0);
|
||||
const tmp7 = (sum1 << 12 | sum1 >>> 20) + ((sum << 7 | sum >>> 25) + items[1] | 0) | 0;
|
||||
const sum2 = tmp2 + ((tmp7 & tmp5 | ~tmp7 & tmp) + items2[2] + 606105819 | 0);
|
||||
const sum3 = tmp + ((tmp9 & tmp7 | ~tmp9 & tmp5) + items2[3] - 1044525330 | 0);
|
||||
const tmp11 = (sum3 << 22 | sum3 >>> 10) + ((sum2 << 17 | sum2 >>> 15) + tmp7 | 0) | 0;
|
||||
const sum4 = tmp5 + ((tmp11 & tmp9 | ~tmp11 & tmp7) + items2[4] - 176418897 | 0);
|
||||
const sum5 = tmp7 + ((tmp13 & tmp11 | ~tmp13 & tmp9) + items2[5] + 1200080426 | 0);
|
||||
const tmp15 = (sum5 << 12 | sum5 >>> 20) + ((sum4 << 7 | sum4 >>> 25) + tmp11 | 0) | 0;
|
||||
const sum6 = tmp9 + ((tmp15 & tmp13 | ~tmp15 & tmp11) + items2[6] - 1473231341 | 0);
|
||||
const sum7 = tmp11 + ((tmp17 & tmp15 | ~tmp17 & tmp13) + items2[7] - 45705983 | 0);
|
||||
const tmp19 = (sum7 << 22 | sum7 >>> 10) + ((sum6 << 17 | sum6 >>> 15) + tmp15 | 0) | 0;
|
||||
const sum8 = tmp13 + ((tmp19 & tmp17 | ~tmp19 & tmp15) + items2[8] + 1770035416 | 0);
|
||||
const sum9 = tmp15 + ((tmp21 & tmp19 | ~tmp21 & tmp17) + items2[9] - 1958414417 | 0);
|
||||
const tmp23 = (sum9 << 12 | sum9 >>> 20) + ((sum8 << 7 | sum8 >>> 25) + tmp19 | 0) | 0;
|
||||
const sum10 = tmp17 + ((tmp23 & tmp21 | ~tmp23 & tmp19) + items2[10] - 42063 | 0);
|
||||
const sum11 = tmp19 + ((tmp25 & tmp23 | ~tmp25 & tmp21) + items2[11] - 1990404162 | 0);
|
||||
const tmp27 = (sum11 << 22 | sum11 >>> 10) + ((sum10 << 17 | sum10 >>> 15) + tmp23 | 0) | 0;
|
||||
const sum12 = tmp21 + ((tmp27 & tmp25 | ~tmp27 & tmp23) + items2[12] + 1804603682 | 0);
|
||||
const sum13 = tmp23 + ((tmp29 & tmp27 | ~tmp29 & tmp25) + items2[13] - 40341101 | 0);
|
||||
const tmp31 = (sum13 << 12 | sum13 >>> 20) + ((sum12 << 7 | sum12 >>> 25) + tmp27 | 0) | 0;
|
||||
const sum14 = tmp25 + ((tmp31 & tmp29 | tmp32 & tmp27) + items2[14] - 1502002290 | 0);
|
||||
const tmp35 = ~(sum14 << 17 | sum14 >>> 15) + tmp31 | 0;
|
||||
const sum15 = tmp27 + ((tmp34 & tmp31 | tmp35 & tmp29) + items2[15] + 1236535329 | 0);
|
||||
const tmp37 = (sum15 << 22 | sum15 >>> 10) + ((sum14 << 17 | sum14 >>> 15) + tmp31 | 0) | 0;
|
||||
const sum16 = tmp29 + ((tmp37 & tmp31 | tmp34 & tmp32) + items2[1] - 165796510 | 0);
|
||||
const sum17 = tmp31 + ((tmp39 & tmp34 | tmp37 & tmp35) + items2[6] - 1069501632 | 0);
|
||||
const tmp41 = (sum17 << 9 | sum17 >>> 23) + ((sum16 << 5 | sum16 >>> 27) + tmp37 | 0) | 0;
|
||||
const sum18 = tmp34 + ((tmp41 & tmp37 | tmp39 & ~tmp37) + items2[11] + 643717713 | 0);
|
||||
const sum19 = tmp37 + ((tmp43 & tmp39 | tmp41 & ~tmp39) + items2[0] - 373897302 | 0);
|
||||
const tmp45 = (sum19 << 20 | sum19 >>> 12) + ((sum18 << 14 | sum18 >>> 18) + tmp41 | 0) | 0;
|
||||
const sum20 = tmp39 + ((tmp45 & tmp41 | tmp43 & ~tmp41) + items2[5] - 701558691 | 0);
|
||||
const sum21 = tmp41 + ((tmp47 & tmp43 | tmp45 & ~tmp43) + items2[10] + 38016083 | 0);
|
||||
const tmp49 = (sum21 << 9 | sum21 >>> 23) + ((sum20 << 5 | sum20 >>> 27) + tmp45 | 0) | 0;
|
||||
const sum22 = tmp43 + ((tmp49 & tmp45 | tmp47 & ~tmp45) + items2[15] - 660478335 | 0);
|
||||
const sum23 = tmp45 + ((tmp51 & tmp47 | tmp49 & ~tmp47) + items2[4] - 405537848 | 0);
|
||||
const tmp53 = (sum23 << 20 | sum23 >>> 12) + ((sum22 << 14 | sum22 >>> 18) + tmp49 | 0) | 0;
|
||||
const sum24 = tmp47 + ((tmp53 & tmp49 | tmp51 & ~tmp49) + items2[9] + 568446438 | 0);
|
||||
const sum25 = tmp49 + ((tmp55 & tmp51 | tmp53 & ~tmp51) + items2[14] - 1019803690 | 0);
|
||||
const tmp57 = (sum25 << 9 | sum25 >>> 23) + ((sum24 << 5 | sum24 >>> 27) + tmp53 | 0) | 0;
|
||||
const sum26 = tmp51 + ((tmp57 & tmp53 | tmp55 & ~tmp53) + items2[3] - 187363961 | 0);
|
||||
const sum27 = tmp53 + ((tmp59 & tmp55 | tmp57 & ~tmp55) + items2[8] + 1163531501 | 0);
|
||||
const tmp61 = (sum27 << 20 | sum27 >>> 12) + ((sum26 << 14 | sum26 >>> 18) + tmp57 | 0) | 0;
|
||||
const sum28 = tmp55 + ((tmp61 & tmp57 | tmp59 & ~tmp57) + items2[13] - 1444681467 | 0);
|
||||
const sum29 = tmp57 + ((tmp63 & tmp59 | tmp61 & ~tmp59) + items2[2] - 51403784 | 0);
|
||||
const tmp65 = (sum29 << 9 | sum29 >>> 23) + ((sum28 << 5 | sum28 >>> 27) + tmp61 | 0) | 0;
|
||||
const sum30 = tmp59 + ((tmp65 & tmp61 | tmp63 & ~tmp61) + items2[7] + 1735328473 | 0);
|
||||
const sum31 = tmp61 + ((tmp67 & tmp63 | tmp65 & ~tmp63) + items2[12] - 1926607734 | 0);
|
||||
const tmp69 = (sum31 << 20 | sum31 >>> 12) + ((sum30 << 14 | sum30 >>> 18) + tmp65 | 0) | 0;
|
||||
const sum32 = tmp63 + ((tmp69 ^ tmp67 ^ tmp65) + items2[5] - 378558 | 0);
|
||||
const sum33 = tmp65 + ((tmp71 ^ tmp69 ^ tmp67) + items2[8] - 2022574463 | 0);
|
||||
const tmp73 = (sum33 << 11 | sum33 >>> 21) + ((sum32 << 4 | sum32 >>> 28) + tmp69 | 0) | 0;
|
||||
const sum34 = tmp67 + ((tmp73 ^ tmp71 ^ tmp69) + items2[11] + 1839030562 | 0);
|
||||
const sum35 = tmp69 + ((tmp75 ^ tmp73 ^ tmp71) + items2[14] - 35309556 | 0);
|
||||
const tmp77 = (sum35 << 23 | sum35 >>> 9) + ((sum34 << 16 | sum34 >>> 16) + tmp73 | 0) | 0;
|
||||
const sum36 = tmp71 + ((tmp77 ^ tmp75 ^ tmp73) + items2[1] - 1530992060 | 0);
|
||||
const sum37 = tmp73 + ((tmp79 ^ tmp77 ^ tmp75) + items2[4] + 1272893353 | 0);
|
||||
const tmp81 = (sum37 << 11 | sum37 >>> 21) + ((sum36 << 4 | sum36 >>> 28) + tmp77 | 0) | 0;
|
||||
const sum38 = tmp75 + ((tmp81 ^ tmp79 ^ tmp77) + items2[7] - 155497632 | 0);
|
||||
const sum39 = tmp77 + ((tmp83 ^ tmp81 ^ tmp79) + items2[10] - 1094730640 | 0);
|
||||
const tmp85 = (sum39 << 23 | sum39 >>> 9) + ((sum38 << 16 | sum38 >>> 16) + tmp81 | 0) | 0;
|
||||
const sum40 = tmp79 + ((tmp85 ^ tmp83 ^ tmp81) + items2[13] + 681279174 | 0);
|
||||
const sum41 = tmp81 + ((tmp87 ^ tmp85 ^ tmp83) + items2[0] - 358537222 | 0);
|
||||
const tmp89 = (sum41 << 11 | sum41 >>> 21) + ((sum40 << 4 | sum40 >>> 28) + tmp85 | 0) | 0;
|
||||
const sum42 = tmp83 + ((tmp89 ^ tmp87 ^ tmp85) + items2[3] - 722521979 | 0);
|
||||
const sum43 = tmp85 + ((tmp91 ^ tmp89 ^ tmp87) + items2[6] + 76029189 | 0);
|
||||
const tmp93 = (sum43 << 23 | sum43 >>> 9) + ((sum42 << 16 | sum42 >>> 16) + tmp89 | 0) | 0;
|
||||
const sum44 = tmp87 + ((tmp93 ^ tmp91 ^ tmp89) + items2[9] - 640364487 | 0);
|
||||
const sum45 = tmp89 + ((tmp95 ^ tmp93 ^ tmp91) + items2[12] - 421815835 | 0);
|
||||
const tmp97 = (sum45 << 11 | sum45 >>> 21) + ((sum44 << 4 | sum44 >>> 28) + tmp93 | 0) | 0;
|
||||
const sum46 = tmp91 + ((tmp97 ^ tmp95 ^ tmp93) + items2[15] + 530742520 | 0);
|
||||
const sum47 = tmp93 + ((tmp99 ^ tmp97 ^ tmp95) + items2[2] - 995338651 | 0);
|
||||
const tmp101 = (sum47 << 23 | sum47 >>> 9) + ((sum46 << 16 | sum46 >>> 16) + tmp97 | 0) | 0;
|
||||
const sum48 = tmp95 + ((tmp99 ^ (tmp101 | ~tmp97)) + items2[0] - 198630844 | 0);
|
||||
const sum49 = tmp97 + ((tmp101 ^ (tmp103 | ~tmp99)) + items2[7] + 1126891415 | 0);
|
||||
const tmp105 = (sum49 << 10 | sum49 >>> 22) + ((sum48 << 6 | sum48 >>> 26) + tmp101 | 0) | 0;
|
||||
const sum50 = tmp99 + ((tmp103 ^ (tmp105 | ~tmp101)) + items2[14] - 1416354905 | 0);
|
||||
const sum51 = tmp101 + ((tmp105 ^ (tmp107 | ~tmp103)) + items2[5] - 57434055 | 0);
|
||||
const tmp109 = (sum51 << 21 | sum51 >>> 11) + ((sum50 << 15 | sum50 >>> 17) + tmp105 | 0) | 0;
|
||||
const sum52 = tmp103 + ((tmp107 ^ (tmp109 | ~tmp105)) + items2[12] + 1700485571 | 0);
|
||||
const sum53 = tmp105 + ((tmp109 ^ (tmp111 | ~tmp107)) + items2[3] - 1894986606 | 0);
|
||||
const tmp113 = (sum53 << 10 | sum53 >>> 22) + ((sum52 << 6 | sum52 >>> 26) + tmp109 | 0) | 0;
|
||||
const sum54 = tmp107 + ((tmp111 ^ (tmp113 | ~tmp109)) + items2[10] - 1051523 | 0);
|
||||
const sum55 = tmp109 + ((tmp113 ^ (tmp115 | ~tmp111)) + items2[1] - 2054922799 | 0);
|
||||
const tmp117 = (sum55 << 21 | sum55 >>> 11) + ((sum54 << 15 | sum54 >>> 17) + tmp113 | 0) | 0;
|
||||
const sum56 = tmp111 + ((tmp115 ^ (tmp117 | ~tmp113)) + items2[8] + 1873313359 | 0);
|
||||
const sum57 = tmp113 + ((tmp117 ^ (tmp119 | ~tmp115)) + items2[15] - 30611744 | 0);
|
||||
const tmp121 = (sum57 << 10 | sum57 >>> 22) + ((sum56 << 6 | sum56 >>> 26) + tmp117 | 0) | 0;
|
||||
const sum58 = tmp115 + ((tmp119 ^ (tmp121 | ~tmp117)) + items2[6] - 1560198380 | 0);
|
||||
const sum59 = tmp117 + ((tmp121 ^ (tmp123 | ~tmp119)) + items2[13] + 1309151649 | 0);
|
||||
const tmp125 = (sum59 << 21 | sum59 >>> 11) + ((sum58 << 15 | sum58 >>> 17) + tmp121 | 0) | 0;
|
||||
const sum60 = tmp119 + ((tmp123 ^ (tmp125 | ~tmp121)) + items2[4] - 145523070 | 0);
|
||||
const sum61 = tmp121 + ((tmp125 ^ (tmp127 | ~tmp123)) + items2[11] - 1120210379 | 0);
|
||||
const tmp129 = (sum61 << 10 | sum61 >>> 22) + ((sum60 << 6 | sum60 >>> 26) + tmp125 | 0) | 0;
|
||||
const sum62 = tmp123 + ((tmp127 ^ (tmp129 | ~tmp125)) + items2[2] + 718787259 | 0);
|
||||
const sum63 = tmp125 + ((tmp129 ^ (tmp131 | ~tmp127)) + items2[9] - 343485551 | 0);
|
||||
items[0] = ((sum60 << 6 | sum60 >>> 26) + tmp125 | 0) + items[0] | 0;
|
||||
items[1] = ((sum63 << 21 | sum63 >>> 11) + ((sum62 << 15 | sum62 >>> 17) + tmp129 | 0) | 0) + items[1] | 0;
|
||||
items[2] = ((sum62 << 15 | sum62 >>> 17) + tmp129 | 0) + items[2] | 0;
|
||||
items[3] = tmp129 + items[3] | 0;
|
||||
}
|
||||
function md51(hello) {
|
||||
items = [1732584193, -271733879, -1732584194, 271733878];
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= hello.length) {
|
||||
const substr = hello.substring(num - 64, num);
|
||||
const items1 = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
let charCodeAtResult = substr.charCodeAt(num3);
|
||||
let sum = charCodeAtResult + (substr.charCodeAt(num3 + 1) << 8);
|
||||
let tmp5 = substr.charCodeAt(num3 + 2) << 16;
|
||||
items1[num3 >> 2] = sum + tmp5 + (substr.charCodeAt(num3 + 3) << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmpResult = tmp(items, items1);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp = md5cycle;
|
||||
}
|
||||
const substr1 = hello.substring(num2 - 64);
|
||||
const items2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
let num4 = 0;
|
||||
let num5 = 0;
|
||||
if (0 < substr1.length) {
|
||||
do {
|
||||
let tmp7 = num4 >> 2;
|
||||
items2[tmp7] = items2[tmp7] | substr1.charCodeAt(num4) << (num4 % 4 << 3);
|
||||
num4 = num4 + 1;
|
||||
num5 = num4;
|
||||
} while (num4 < length2);
|
||||
}
|
||||
items2[num5 >> 2] = items2[num5 >> 2] | 128 << (num5 % 4 << 3);
|
||||
if (55 < num5) {
|
||||
md5cycle(items, items2);
|
||||
let num6 = 0;
|
||||
do {
|
||||
items2[num6] = 0;
|
||||
num6 = num6 + 1;
|
||||
} while (num6 < 16);
|
||||
}
|
||||
const match = 8 * hello.length.toString(16).match(/(.*?)(.{0,8})$/);
|
||||
const parsed = parseInt(match[2], 16);
|
||||
const str = 8 * hello.length;
|
||||
const str2 = 8 * hello.length.toString(16);
|
||||
items2[14] = parsed;
|
||||
items2[15] = parseInt(match[1], 16) || 0;
|
||||
md5cycle(items, items2);
|
||||
return items;
|
||||
}
|
||||
class SparkMD5 {
|
||||
constructor() {
|
||||
resetResult = this.reset();
|
||||
return;
|
||||
}
|
||||
append(arg0) {
|
||||
self = this;
|
||||
obj = /[\u0080-\uFFFF]/;
|
||||
unescapeResult = arg0;
|
||||
if (obj.test(arg0)) {
|
||||
tmp2 = globalThis;
|
||||
_unescape = unescape;
|
||||
_encodeURIComponent = encodeURIComponent;
|
||||
unescapeResult = unescape(encodeURIComponent(arg0));
|
||||
}
|
||||
appendBinaryResult = this.appendBinary(unescapeResult);
|
||||
return self;
|
||||
}
|
||||
appendBinary(arg0) {
|
||||
self = this;
|
||||
this._buff = this._buff + arg0;
|
||||
this._length = this._length + arg0.length;
|
||||
length = this._buff.length;
|
||||
num = 64;
|
||||
num2 = 64;
|
||||
if (64 <= length) {
|
||||
str = self._buff;
|
||||
tmp = md5cycle;
|
||||
substr = str.substring(num - 64, num);
|
||||
items = [];
|
||||
tmp3 = num;
|
||||
num3 = 0;
|
||||
do {
|
||||
do {
|
||||
charCodeAtResult = substr.charCodeAt(num3);
|
||||
sum = charCodeAtResult + (substr.charCodeAt(num3 + 1) << 8);
|
||||
tmp6 = substr.charCodeAt(num3 + 2) << 16;
|
||||
items[num3 >> 2] = sum + tmp6 + (substr.charCodeAt(num3 + 3) << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
tmpResult = tmp(tmp2, items);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
}
|
||||
str2 = self._buff;
|
||||
self._buff = str2.substring(num2 - 64);
|
||||
return self;
|
||||
}
|
||||
end(arg0) {
|
||||
self = this;
|
||||
_buff = this._buff;
|
||||
length = _buff.length;
|
||||
items = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
tmp = num >> 2;
|
||||
items[tmp] = items[tmp] | _buff.charCodeAt(num) << (num % 4 << 3);
|
||||
}
|
||||
_finishResult = self._finish(items, length);
|
||||
_hash = self._hash;
|
||||
num2 = 0;
|
||||
if (0 < _hash.length) {
|
||||
tmp3 = _hash[num2];
|
||||
tmp4 = num2;
|
||||
str = "";
|
||||
num3 = 0;
|
||||
do {
|
||||
do {
|
||||
tmp5 = closure_1;
|
||||
result = 8 * num3;
|
||||
text = `${closure_1[tmp3 >> tmp6 + 4 & 15] + closure_1[tmp3 >> tmp6 & 15]}`;
|
||||
num3 = num3 + 1;
|
||||
str = text;
|
||||
} while (num3 < 4);
|
||||
_hash[num2] = text;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < _hash.length);
|
||||
}
|
||||
joined = _hash.join("");
|
||||
applyResult = joined;
|
||||
if (arg0) {
|
||||
items1 = [];
|
||||
length2 = joined.length;
|
||||
tmp9 = globalThis;
|
||||
num4 = 16;
|
||||
num5 = 0;
|
||||
if (0 < length2 - 1) {
|
||||
do {
|
||||
_parseInt = parseInt;
|
||||
arr1 = items1.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length2 - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
_String = String;
|
||||
fromCharCode = String.fromCharCode;
|
||||
_String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items1);
|
||||
}
|
||||
resetResult = self.reset();
|
||||
return applyResult;
|
||||
}
|
||||
reset() {
|
||||
return { _buff: "", _length: 0, _hash: [1732584193, -271733879, -1732584194, 271733878] };
|
||||
}
|
||||
getState() {
|
||||
obj = { buff: this._buff, length: this._length, hash: null };
|
||||
_hash = this._hash;
|
||||
obj.hash = _hash.slice();
|
||||
return obj;
|
||||
}
|
||||
setState(arg0) {
|
||||
obj = { _buff: arg0.buff, _length: arg0.length, _hash: arg0.hash };
|
||||
return obj;
|
||||
}
|
||||
destroy() {
|
||||
delete tmp2[tmp];
|
||||
delete tmp2[tmp];
|
||||
delete tmp2[tmp];
|
||||
return;
|
||||
}
|
||||
_finish(arg0, arg1) {
|
||||
self = this;
|
||||
tmp = arg1 >> 2;
|
||||
arg0[tmp] = arg0[tmp] | 128 << (arg1 % 4 << 3);
|
||||
if (arg1 > 55) {
|
||||
tmp2 = md5cycle;
|
||||
num = 0;
|
||||
tmp3 = md5cycle(self._hash, arg0);
|
||||
num2 = 1;
|
||||
num3 = 16;
|
||||
num4 = 0;
|
||||
do {
|
||||
arg0[num4] = 0;
|
||||
num4 = num4 + 1;
|
||||
} while (num4 < 16);
|
||||
}
|
||||
str = 8 * self._length;
|
||||
str2 = str.toString(16);
|
||||
match = str2.match(/(.*?)(.{0,8})$/);
|
||||
parsed = parseInt(match[2], 16);
|
||||
tmp6 = parseInt(match[1], 16) || 0;
|
||||
arg0[14] = parsed;
|
||||
arg0[15] = tmp6;
|
||||
tmp7 = md5cycle(self._hash, arg0);
|
||||
return;
|
||||
}
|
||||
static hash(arg0, arg1) {
|
||||
obj = /[\u0080-\uFFFF]/;
|
||||
tmp = SparkMD5;
|
||||
unescapeResult = arg0;
|
||||
if (obj.test(arg0)) {
|
||||
tmp3 = globalThis;
|
||||
_unescape = unescape;
|
||||
_encodeURIComponent = encodeURIComponent;
|
||||
unescapeResult = unescape(encodeURIComponent(arg0));
|
||||
}
|
||||
return SparkMD5.hashBinary(unescapeResult, arg1);
|
||||
}
|
||||
static hashBinary(arg0, arg1) {
|
||||
arr = md51(arg0);
|
||||
num = 0;
|
||||
if (0 < arr.length) {
|
||||
tmp = arr[num];
|
||||
tmp2 = num;
|
||||
str = "";
|
||||
num2 = 0;
|
||||
do {
|
||||
do {
|
||||
tmp3 = closure_1;
|
||||
result = 8 * num2;
|
||||
text = `${closure_1[tmp >> tmp4 + 4 & 15] + closure_1[tmp >> tmp4 & 15]}`;
|
||||
num2 = num2 + 1;
|
||||
str = text;
|
||||
} while (num2 < 4);
|
||||
arr[num] = text;
|
||||
num = num + 1;
|
||||
} while (num < arr.length);
|
||||
}
|
||||
joined = arr.join("");
|
||||
applyResult = joined;
|
||||
if (arg1) {
|
||||
items = [];
|
||||
length = joined.length;
|
||||
tmp7 = globalThis;
|
||||
num3 = 2;
|
||||
num4 = 16;
|
||||
num5 = 0;
|
||||
if (0 < length - 1) {
|
||||
do {
|
||||
_parseInt = parseInt;
|
||||
arr1 = items.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
_String = String;
|
||||
fromCharCode = String.fromCharCode;
|
||||
_String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items);
|
||||
}
|
||||
return applyResult;
|
||||
}
|
||||
static ArrayBuffer() {
|
||||
resetResult = this.reset();
|
||||
return;
|
||||
}
|
||||
}
|
||||
let items = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
||||
const md51Result = md51("hello");
|
||||
let num = 0;
|
||||
if (0 < md51Result.length) {
|
||||
let num2 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num2;
|
||||
let text = `${arr[tmp >> tmp3 + 4 & 15] + arr[tmp >> tmp3 & 15]}`;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < 4);
|
||||
md51Result[num] = text;
|
||||
num = num + 1;
|
||||
} while (num < md51Result.length);
|
||||
}
|
||||
if ("5d41402abc4b2a76b9719d911017c592" !== md51Result.join("")) {
|
||||
globalThis.add32 = function add32(arg0, arg1) {
|
||||
const sum = (65535 & arg0) + (65535 & arg1);
|
||||
return (arg0 >> 16) + (arg1 >> 16) + (sum >> 16) << 16 | 65535 & sum;
|
||||
};
|
||||
}
|
||||
let slice = typeof ArrayBuffer === "undefined";
|
||||
if (typeof ArrayBuffer !== "undefined") {
|
||||
let _ArrayBuffer2 = ArrayBuffer;
|
||||
slice = ArrayBuffer.prototype.slice;
|
||||
}
|
||||
if (!slice) {
|
||||
let _ArrayBuffer = ArrayBuffer;
|
||||
ArrayBuffer.prototype.slice = function(arg0, arg1) {
|
||||
const self = this;
|
||||
let byteLength = this.byteLength;
|
||||
if ((arg0 | 0 || 0) < 0) {
|
||||
const _Math2 = Math;
|
||||
let bound = Math.max(tmp + byteLength, 0);
|
||||
} else {
|
||||
const _Math = Math;
|
||||
bound = Math.min(tmp, byteLength);
|
||||
}
|
||||
if (arg1 === closure_0) {
|
||||
if (bound > byteLength) {
|
||||
const _ArrayBuffer2 = ArrayBuffer;
|
||||
let arrayBuffer = new ArrayBuffer(0);
|
||||
} else {
|
||||
const diff = byteLength - bound;
|
||||
const _ArrayBuffer = ArrayBuffer;
|
||||
const arrayBuffer2 = new ArrayBuffer(diff);
|
||||
arrayBuffer = arrayBuffer2;
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(arrayBuffer2);
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
const uint8Array1 = new Uint8Array(self, bound, diff);
|
||||
const result = uint8Array.set(uint8Array1);
|
||||
}
|
||||
return arrayBuffer;
|
||||
} else if ((arg1 | 0 || 0) < 0) {
|
||||
const _Math4 = Math;
|
||||
byteLength = tmp5 + byteLength;
|
||||
let bound1 = Math.max(byteLength, 0);
|
||||
} else {
|
||||
const _Math3 = Math;
|
||||
bound1 = Math.min(tmp5, byteLength);
|
||||
}
|
||||
};
|
||||
}
|
||||
SparkMD5.ArrayBuffer.prototype.append = function(byteLength) {
|
||||
const self = this;
|
||||
const buffer = this._buff.buffer;
|
||||
const uint8Array = new Uint8Array(buffer.byteLength + byteLength.byteLength);
|
||||
const uint8Array1 = new Uint8Array(buffer);
|
||||
const result = uint8Array.set(uint8Array1);
|
||||
const uint8Array2 = new Uint8Array(byteLength);
|
||||
const result1 = uint8Array.set(uint8Array2, buffer.byteLength);
|
||||
this._length = this._length + byteLength.byteLength;
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= uint8Array.length) {
|
||||
const subarrayResult = uint8Array.subarray(num - 64, num);
|
||||
items = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
items[num3 >> 2] = subarrayResult[num3] + (subarrayResult[num3 + 1] << 8) + (subarrayResult[num3 + 2] << 16) + (subarrayResult[num3 + 3] << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmp5Result = tmp5(tmp6, items);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp5 = md5cycle;
|
||||
}
|
||||
const diff = num2 - 64;
|
||||
if (diff < uint8Array.length) {
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
const buffer1 = uint8Array.buffer;
|
||||
let uint8Array3 = new Uint8Array(buffer1.slice(diff));
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
uint8Array3 = new Uint8Array(0);
|
||||
}
|
||||
self._buff = uint8Array3;
|
||||
return self;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.end = function(arg0) {
|
||||
let diff;
|
||||
const self = this;
|
||||
const _buff = this._buff;
|
||||
items = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
let tmp = num >> 2;
|
||||
items[tmp] = items[tmp] | _buff[num] << (num % 4 << 3);
|
||||
}
|
||||
self._finish(items, _buff.length);
|
||||
const _hash = self._hash;
|
||||
let num2 = 0;
|
||||
if (0 < _hash.length) {
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num3;
|
||||
let text = `${items[tmp3 >> tmp6 + 4 & 15] + items[tmp3 >> tmp6 & 15]}`;
|
||||
num3 = num3 + 1;
|
||||
} while (num3 < 4);
|
||||
_hash[num2] = text;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < _hash.length);
|
||||
}
|
||||
const joined = _hash.join("");
|
||||
let applyResult = joined;
|
||||
if (arg0) {
|
||||
const items1 = [];
|
||||
let num5 = 0;
|
||||
if (0 < joined.length - 1) {
|
||||
do {
|
||||
let _parseInt = parseInt;
|
||||
let arr = items1.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length2 - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
const _String = String;
|
||||
const _String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items1);
|
||||
}
|
||||
self.reset();
|
||||
return applyResult;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.reset = () => {
|
||||
const obj = {};
|
||||
const uint8Array = new Uint8Array(0);
|
||||
obj._buff = uint8Array;
|
||||
obj._length = 0;
|
||||
obj._hash = [1732584193, -271733879, -1732584194, 271733878];
|
||||
return obj;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.getState = function() {
|
||||
const self = this;
|
||||
const getState = SparkMD5.prototype.getState;
|
||||
const call = getState.call;
|
||||
const tmp = typeof call === "unknown" ? getState() : call(self);
|
||||
const uint8Array = new Uint8Array(tmp.buff);
|
||||
tmp.buff = fromCharCode.apply(null, uint8Array);
|
||||
return tmp;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.setState = function(buff) {
|
||||
buff = buff.buff;
|
||||
const arrayBuffer = new ArrayBuffer(length);
|
||||
const uint8Array = new Uint8Array(arrayBuffer);
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
uint8Array[num] = buff.charCodeAt(num);
|
||||
}
|
||||
const self = this;
|
||||
buff.buff = uint8Array;
|
||||
const setState = SparkMD5.prototype.setState;
|
||||
const call = setState.call;
|
||||
return typeof call === "unknown" ? setState(buff) : call(self, buff);
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;
|
||||
SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;
|
||||
SparkMD5.ArrayBuffer.hash = (arg0, arg1) => {
|
||||
let diff1;
|
||||
const uint8Array = new Uint8Array(arg0);
|
||||
items = [1732584193, -271733879, -1732584194, 271733878];
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= uint8Array.length) {
|
||||
const subarrayResult = uint8Array.subarray(num - 64, num);
|
||||
const items1 = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
items1[num3 >> 2] = subarrayResult[num3] + (subarrayResult[num3 + 1] << 8) + (subarrayResult[num3 + 2] << 16) + (subarrayResult[num3 + 3] << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmpResult = tmp(items, items1);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp = md5cycle;
|
||||
}
|
||||
const diff = num2 - 64;
|
||||
if (diff < uint8Array.length) {
|
||||
let subarrayResult1 = uint8Array.subarray(diff);
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
subarrayResult1 = new Uint8Array(0);
|
||||
}
|
||||
const items2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
let num5 = 0;
|
||||
let num6 = 0;
|
||||
if (0 < subarrayResult1.length) {
|
||||
do {
|
||||
let tmp8 = num5 >> 2;
|
||||
items2[tmp8] = items2[tmp8] | subarrayResult1[num5] << (num5 % 4 << 3);
|
||||
num5 = num5 + 1;
|
||||
num6 = num5;
|
||||
} while (num5 < length2);
|
||||
}
|
||||
items2[num6 >> 2] = items2[num6 >> 2] | 128 << (num6 % 4 << 3);
|
||||
if (55 < num6) {
|
||||
md5cycle(items, items2);
|
||||
let num7 = 0;
|
||||
do {
|
||||
items2[num7] = 0;
|
||||
num7 = num7 + 1;
|
||||
} while (num7 < 16);
|
||||
}
|
||||
const match = 8 * uint8Array.length.toString(16).match(/(.*?)(.{0,8})$/);
|
||||
const parsed = parseInt(match[2], 16);
|
||||
const str = 8 * uint8Array.length;
|
||||
const str2 = 8 * uint8Array.length.toString(16);
|
||||
items2[14] = parsed;
|
||||
items2[15] = parseInt(match[1], 16) || 0;
|
||||
md5cycle(items, items2);
|
||||
let num8 = 0;
|
||||
if (0 < items.length) {
|
||||
let num9 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num9;
|
||||
let text = `${items[tmp16 >> tmp19 + 4 & 15] + items[tmp16 >> tmp19 & 15]}`;
|
||||
num9 = num9 + 1;
|
||||
} while (num9 < 4);
|
||||
items[num8] = text;
|
||||
num8 = num8 + 1;
|
||||
} while (num8 < items.length);
|
||||
}
|
||||
const joined = items.join("");
|
||||
let applyResult = joined;
|
||||
if (arg1) {
|
||||
const items3 = [];
|
||||
let num10 = 0;
|
||||
if (0 < joined.length - 1) {
|
||||
do {
|
||||
let _parseInt = parseInt;
|
||||
let arr = items3.push(parseInt(joined.substr(num10, 2), 16));
|
||||
num10 = num10 + 2;
|
||||
diff1 = length3 - 1;
|
||||
} while (num10 < diff1);
|
||||
}
|
||||
const _String = String;
|
||||
const _String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items3);
|
||||
}
|
||||
return applyResult;
|
||||
};
|
||||
return SparkMD5;
|
||||
});
|
||||
|
|
|
|||
654
alpha/source/__polyfill/05xxx/module_5374.js
Normal file
654
alpha/source/__polyfill/05xxx/module_5374.js
Normal file
|
|
@ -0,0 +1,654 @@
|
|||
// Module ID: 5374
|
||||
// Function ID: 5375
|
||||
// Dependencies: []
|
||||
|
||||
// Module 5374
|
||||
const module = arg4;
|
||||
const exports = arg5;
|
||||
((fn) => {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = fn();
|
||||
} else {
|
||||
if (typeof globalThis.define === "function") {
|
||||
if (globalThis.define.amd) {
|
||||
globalThis.define(fn);
|
||||
}
|
||||
}
|
||||
try {
|
||||
let _self = window;
|
||||
_self.SparkMD5 = fn();
|
||||
} catch (err) {
|
||||
_self = tmp.self;
|
||||
}
|
||||
}
|
||||
})((arg0) => {
|
||||
closure_0 = arg0;
|
||||
function md5cycle(items, items2) {
|
||||
const sum = items[0] + ((tmp & tmp2 | ~tmp & tmp3) + items2[0] - 680876936 | 0);
|
||||
const sum1 = tmp3 + ((tmp5 & tmp | ~tmp5 & tmp2) + items2[1] - 389564586 | 0);
|
||||
const tmp7 = (sum1 << 12 | sum1 >>> 20) + ((sum << 7 | sum >>> 25) + items[1] | 0) | 0;
|
||||
const sum2 = tmp2 + ((tmp7 & tmp5 | ~tmp7 & tmp) + items2[2] + 606105819 | 0);
|
||||
const sum3 = tmp + ((tmp9 & tmp7 | ~tmp9 & tmp5) + items2[3] - 1044525330 | 0);
|
||||
const tmp11 = (sum3 << 22 | sum3 >>> 10) + ((sum2 << 17 | sum2 >>> 15) + tmp7 | 0) | 0;
|
||||
const sum4 = tmp5 + ((tmp11 & tmp9 | ~tmp11 & tmp7) + items2[4] - 176418897 | 0);
|
||||
const sum5 = tmp7 + ((tmp13 & tmp11 | ~tmp13 & tmp9) + items2[5] + 1200080426 | 0);
|
||||
const tmp15 = (sum5 << 12 | sum5 >>> 20) + ((sum4 << 7 | sum4 >>> 25) + tmp11 | 0) | 0;
|
||||
const sum6 = tmp9 + ((tmp15 & tmp13 | ~tmp15 & tmp11) + items2[6] - 1473231341 | 0);
|
||||
const sum7 = tmp11 + ((tmp17 & tmp15 | ~tmp17 & tmp13) + items2[7] - 45705983 | 0);
|
||||
const tmp19 = (sum7 << 22 | sum7 >>> 10) + ((sum6 << 17 | sum6 >>> 15) + tmp15 | 0) | 0;
|
||||
const sum8 = tmp13 + ((tmp19 & tmp17 | ~tmp19 & tmp15) + items2[8] + 1770035416 | 0);
|
||||
const sum9 = tmp15 + ((tmp21 & tmp19 | ~tmp21 & tmp17) + items2[9] - 1958414417 | 0);
|
||||
const tmp23 = (sum9 << 12 | sum9 >>> 20) + ((sum8 << 7 | sum8 >>> 25) + tmp19 | 0) | 0;
|
||||
const sum10 = tmp17 + ((tmp23 & tmp21 | ~tmp23 & tmp19) + items2[10] - 42063 | 0);
|
||||
const sum11 = tmp19 + ((tmp25 & tmp23 | ~tmp25 & tmp21) + items2[11] - 1990404162 | 0);
|
||||
const tmp27 = (sum11 << 22 | sum11 >>> 10) + ((sum10 << 17 | sum10 >>> 15) + tmp23 | 0) | 0;
|
||||
const sum12 = tmp21 + ((tmp27 & tmp25 | ~tmp27 & tmp23) + items2[12] + 1804603682 | 0);
|
||||
const sum13 = tmp23 + ((tmp29 & tmp27 | ~tmp29 & tmp25) + items2[13] - 40341101 | 0);
|
||||
const tmp31 = (sum13 << 12 | sum13 >>> 20) + ((sum12 << 7 | sum12 >>> 25) + tmp27 | 0) | 0;
|
||||
const sum14 = tmp25 + ((tmp31 & tmp29 | tmp32 & tmp27) + items2[14] - 1502002290 | 0);
|
||||
const tmp35 = ~(sum14 << 17 | sum14 >>> 15) + tmp31 | 0;
|
||||
const sum15 = tmp27 + ((tmp34 & tmp31 | tmp35 & tmp29) + items2[15] + 1236535329 | 0);
|
||||
const tmp37 = (sum15 << 22 | sum15 >>> 10) + ((sum14 << 17 | sum14 >>> 15) + tmp31 | 0) | 0;
|
||||
const sum16 = tmp29 + ((tmp37 & tmp31 | tmp34 & tmp32) + items2[1] - 165796510 | 0);
|
||||
const sum17 = tmp31 + ((tmp39 & tmp34 | tmp37 & tmp35) + items2[6] - 1069501632 | 0);
|
||||
const tmp41 = (sum17 << 9 | sum17 >>> 23) + ((sum16 << 5 | sum16 >>> 27) + tmp37 | 0) | 0;
|
||||
const sum18 = tmp34 + ((tmp41 & tmp37 | tmp39 & ~tmp37) + items2[11] + 643717713 | 0);
|
||||
const sum19 = tmp37 + ((tmp43 & tmp39 | tmp41 & ~tmp39) + items2[0] - 373897302 | 0);
|
||||
const tmp45 = (sum19 << 20 | sum19 >>> 12) + ((sum18 << 14 | sum18 >>> 18) + tmp41 | 0) | 0;
|
||||
const sum20 = tmp39 + ((tmp45 & tmp41 | tmp43 & ~tmp41) + items2[5] - 701558691 | 0);
|
||||
const sum21 = tmp41 + ((tmp47 & tmp43 | tmp45 & ~tmp43) + items2[10] + 38016083 | 0);
|
||||
const tmp49 = (sum21 << 9 | sum21 >>> 23) + ((sum20 << 5 | sum20 >>> 27) + tmp45 | 0) | 0;
|
||||
const sum22 = tmp43 + ((tmp49 & tmp45 | tmp47 & ~tmp45) + items2[15] - 660478335 | 0);
|
||||
const sum23 = tmp45 + ((tmp51 & tmp47 | tmp49 & ~tmp47) + items2[4] - 405537848 | 0);
|
||||
const tmp53 = (sum23 << 20 | sum23 >>> 12) + ((sum22 << 14 | sum22 >>> 18) + tmp49 | 0) | 0;
|
||||
const sum24 = tmp47 + ((tmp53 & tmp49 | tmp51 & ~tmp49) + items2[9] + 568446438 | 0);
|
||||
const sum25 = tmp49 + ((tmp55 & tmp51 | tmp53 & ~tmp51) + items2[14] - 1019803690 | 0);
|
||||
const tmp57 = (sum25 << 9 | sum25 >>> 23) + ((sum24 << 5 | sum24 >>> 27) + tmp53 | 0) | 0;
|
||||
const sum26 = tmp51 + ((tmp57 & tmp53 | tmp55 & ~tmp53) + items2[3] - 187363961 | 0);
|
||||
const sum27 = tmp53 + ((tmp59 & tmp55 | tmp57 & ~tmp55) + items2[8] + 1163531501 | 0);
|
||||
const tmp61 = (sum27 << 20 | sum27 >>> 12) + ((sum26 << 14 | sum26 >>> 18) + tmp57 | 0) | 0;
|
||||
const sum28 = tmp55 + ((tmp61 & tmp57 | tmp59 & ~tmp57) + items2[13] - 1444681467 | 0);
|
||||
const sum29 = tmp57 + ((tmp63 & tmp59 | tmp61 & ~tmp59) + items2[2] - 51403784 | 0);
|
||||
const tmp65 = (sum29 << 9 | sum29 >>> 23) + ((sum28 << 5 | sum28 >>> 27) + tmp61 | 0) | 0;
|
||||
const sum30 = tmp59 + ((tmp65 & tmp61 | tmp63 & ~tmp61) + items2[7] + 1735328473 | 0);
|
||||
const sum31 = tmp61 + ((tmp67 & tmp63 | tmp65 & ~tmp63) + items2[12] - 1926607734 | 0);
|
||||
const tmp69 = (sum31 << 20 | sum31 >>> 12) + ((sum30 << 14 | sum30 >>> 18) + tmp65 | 0) | 0;
|
||||
const sum32 = tmp63 + ((tmp69 ^ tmp67 ^ tmp65) + items2[5] - 378558 | 0);
|
||||
const sum33 = tmp65 + ((tmp71 ^ tmp69 ^ tmp67) + items2[8] - 2022574463 | 0);
|
||||
const tmp73 = (sum33 << 11 | sum33 >>> 21) + ((sum32 << 4 | sum32 >>> 28) + tmp69 | 0) | 0;
|
||||
const sum34 = tmp67 + ((tmp73 ^ tmp71 ^ tmp69) + items2[11] + 1839030562 | 0);
|
||||
const sum35 = tmp69 + ((tmp75 ^ tmp73 ^ tmp71) + items2[14] - 35309556 | 0);
|
||||
const tmp77 = (sum35 << 23 | sum35 >>> 9) + ((sum34 << 16 | sum34 >>> 16) + tmp73 | 0) | 0;
|
||||
const sum36 = tmp71 + ((tmp77 ^ tmp75 ^ tmp73) + items2[1] - 1530992060 | 0);
|
||||
const sum37 = tmp73 + ((tmp79 ^ tmp77 ^ tmp75) + items2[4] + 1272893353 | 0);
|
||||
const tmp81 = (sum37 << 11 | sum37 >>> 21) + ((sum36 << 4 | sum36 >>> 28) + tmp77 | 0) | 0;
|
||||
const sum38 = tmp75 + ((tmp81 ^ tmp79 ^ tmp77) + items2[7] - 155497632 | 0);
|
||||
const sum39 = tmp77 + ((tmp83 ^ tmp81 ^ tmp79) + items2[10] - 1094730640 | 0);
|
||||
const tmp85 = (sum39 << 23 | sum39 >>> 9) + ((sum38 << 16 | sum38 >>> 16) + tmp81 | 0) | 0;
|
||||
const sum40 = tmp79 + ((tmp85 ^ tmp83 ^ tmp81) + items2[13] + 681279174 | 0);
|
||||
const sum41 = tmp81 + ((tmp87 ^ tmp85 ^ tmp83) + items2[0] - 358537222 | 0);
|
||||
const tmp89 = (sum41 << 11 | sum41 >>> 21) + ((sum40 << 4 | sum40 >>> 28) + tmp85 | 0) | 0;
|
||||
const sum42 = tmp83 + ((tmp89 ^ tmp87 ^ tmp85) + items2[3] - 722521979 | 0);
|
||||
const sum43 = tmp85 + ((tmp91 ^ tmp89 ^ tmp87) + items2[6] + 76029189 | 0);
|
||||
const tmp93 = (sum43 << 23 | sum43 >>> 9) + ((sum42 << 16 | sum42 >>> 16) + tmp89 | 0) | 0;
|
||||
const sum44 = tmp87 + ((tmp93 ^ tmp91 ^ tmp89) + items2[9] - 640364487 | 0);
|
||||
const sum45 = tmp89 + ((tmp95 ^ tmp93 ^ tmp91) + items2[12] - 421815835 | 0);
|
||||
const tmp97 = (sum45 << 11 | sum45 >>> 21) + ((sum44 << 4 | sum44 >>> 28) + tmp93 | 0) | 0;
|
||||
const sum46 = tmp91 + ((tmp97 ^ tmp95 ^ tmp93) + items2[15] + 530742520 | 0);
|
||||
const sum47 = tmp93 + ((tmp99 ^ tmp97 ^ tmp95) + items2[2] - 995338651 | 0);
|
||||
const tmp101 = (sum47 << 23 | sum47 >>> 9) + ((sum46 << 16 | sum46 >>> 16) + tmp97 | 0) | 0;
|
||||
const sum48 = tmp95 + ((tmp99 ^ (tmp101 | ~tmp97)) + items2[0] - 198630844 | 0);
|
||||
const sum49 = tmp97 + ((tmp101 ^ (tmp103 | ~tmp99)) + items2[7] + 1126891415 | 0);
|
||||
const tmp105 = (sum49 << 10 | sum49 >>> 22) + ((sum48 << 6 | sum48 >>> 26) + tmp101 | 0) | 0;
|
||||
const sum50 = tmp99 + ((tmp103 ^ (tmp105 | ~tmp101)) + items2[14] - 1416354905 | 0);
|
||||
const sum51 = tmp101 + ((tmp105 ^ (tmp107 | ~tmp103)) + items2[5] - 57434055 | 0);
|
||||
const tmp109 = (sum51 << 21 | sum51 >>> 11) + ((sum50 << 15 | sum50 >>> 17) + tmp105 | 0) | 0;
|
||||
const sum52 = tmp103 + ((tmp107 ^ (tmp109 | ~tmp105)) + items2[12] + 1700485571 | 0);
|
||||
const sum53 = tmp105 + ((tmp109 ^ (tmp111 | ~tmp107)) + items2[3] - 1894986606 | 0);
|
||||
const tmp113 = (sum53 << 10 | sum53 >>> 22) + ((sum52 << 6 | sum52 >>> 26) + tmp109 | 0) | 0;
|
||||
const sum54 = tmp107 + ((tmp111 ^ (tmp113 | ~tmp109)) + items2[10] - 1051523 | 0);
|
||||
const sum55 = tmp109 + ((tmp113 ^ (tmp115 | ~tmp111)) + items2[1] - 2054922799 | 0);
|
||||
const tmp117 = (sum55 << 21 | sum55 >>> 11) + ((sum54 << 15 | sum54 >>> 17) + tmp113 | 0) | 0;
|
||||
const sum56 = tmp111 + ((tmp115 ^ (tmp117 | ~tmp113)) + items2[8] + 1873313359 | 0);
|
||||
const sum57 = tmp113 + ((tmp117 ^ (tmp119 | ~tmp115)) + items2[15] - 30611744 | 0);
|
||||
const tmp121 = (sum57 << 10 | sum57 >>> 22) + ((sum56 << 6 | sum56 >>> 26) + tmp117 | 0) | 0;
|
||||
const sum58 = tmp115 + ((tmp119 ^ (tmp121 | ~tmp117)) + items2[6] - 1560198380 | 0);
|
||||
const sum59 = tmp117 + ((tmp121 ^ (tmp123 | ~tmp119)) + items2[13] + 1309151649 | 0);
|
||||
const tmp125 = (sum59 << 21 | sum59 >>> 11) + ((sum58 << 15 | sum58 >>> 17) + tmp121 | 0) | 0;
|
||||
const sum60 = tmp119 + ((tmp123 ^ (tmp125 | ~tmp121)) + items2[4] - 145523070 | 0);
|
||||
const sum61 = tmp121 + ((tmp125 ^ (tmp127 | ~tmp123)) + items2[11] - 1120210379 | 0);
|
||||
const tmp129 = (sum61 << 10 | sum61 >>> 22) + ((sum60 << 6 | sum60 >>> 26) + tmp125 | 0) | 0;
|
||||
const sum62 = tmp123 + ((tmp127 ^ (tmp129 | ~tmp125)) + items2[2] + 718787259 | 0);
|
||||
const sum63 = tmp125 + ((tmp129 ^ (tmp131 | ~tmp127)) + items2[9] - 343485551 | 0);
|
||||
items[0] = ((sum60 << 6 | sum60 >>> 26) + tmp125 | 0) + items[0] | 0;
|
||||
items[1] = ((sum63 << 21 | sum63 >>> 11) + ((sum62 << 15 | sum62 >>> 17) + tmp129 | 0) | 0) + items[1] | 0;
|
||||
items[2] = ((sum62 << 15 | sum62 >>> 17) + tmp129 | 0) + items[2] | 0;
|
||||
items[3] = tmp129 + items[3] | 0;
|
||||
}
|
||||
function md51(hello) {
|
||||
items = [1732584193, -271733879, -1732584194, 271733878];
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= hello.length) {
|
||||
const substr = hello.substring(num - 64, num);
|
||||
const items1 = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
let charCodeAtResult = substr.charCodeAt(num3);
|
||||
let sum = charCodeAtResult + (substr.charCodeAt(num3 + 1) << 8);
|
||||
let tmp5 = substr.charCodeAt(num3 + 2) << 16;
|
||||
items1[num3 >> 2] = sum + tmp5 + (substr.charCodeAt(num3 + 3) << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmpResult = tmp(items, items1);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp = md5cycle;
|
||||
}
|
||||
const substr1 = hello.substring(num2 - 64);
|
||||
const items2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
let num4 = 0;
|
||||
let num5 = 0;
|
||||
if (0 < substr1.length) {
|
||||
do {
|
||||
let tmp7 = num4 >> 2;
|
||||
items2[tmp7] = items2[tmp7] | substr1.charCodeAt(num4) << (num4 % 4 << 3);
|
||||
num4 = num4 + 1;
|
||||
num5 = num4;
|
||||
} while (num4 < length2);
|
||||
}
|
||||
items2[num5 >> 2] = items2[num5 >> 2] | 128 << (num5 % 4 << 3);
|
||||
if (55 < num5) {
|
||||
md5cycle(items, items2);
|
||||
let num6 = 0;
|
||||
do {
|
||||
items2[num6] = 0;
|
||||
num6 = num6 + 1;
|
||||
} while (num6 < 16);
|
||||
}
|
||||
const match = 8 * hello.length.toString(16).match(/(.*?)(.{0,8})$/);
|
||||
const parsed = parseInt(match[2], 16);
|
||||
const str = 8 * hello.length;
|
||||
const str2 = 8 * hello.length.toString(16);
|
||||
items2[14] = parsed;
|
||||
items2[15] = parseInt(match[1], 16) || 0;
|
||||
md5cycle(items, items2);
|
||||
return items;
|
||||
}
|
||||
class SparkMD5 {
|
||||
constructor() {
|
||||
resetResult = this.reset();
|
||||
return;
|
||||
}
|
||||
append(arg0) {
|
||||
self = this;
|
||||
obj = /[\u0080-\uFFFF]/;
|
||||
unescapeResult = arg0;
|
||||
if (obj.test(arg0)) {
|
||||
tmp2 = globalThis;
|
||||
_unescape = unescape;
|
||||
_encodeURIComponent = encodeURIComponent;
|
||||
unescapeResult = unescape(encodeURIComponent(arg0));
|
||||
}
|
||||
appendBinaryResult = this.appendBinary(unescapeResult);
|
||||
return self;
|
||||
}
|
||||
appendBinary(arg0) {
|
||||
self = this;
|
||||
this._buff = this._buff + arg0;
|
||||
this._length = this._length + arg0.length;
|
||||
length = this._buff.length;
|
||||
num = 64;
|
||||
num2 = 64;
|
||||
if (64 <= length) {
|
||||
str = self._buff;
|
||||
tmp = md5cycle;
|
||||
substr = str.substring(num - 64, num);
|
||||
items = [];
|
||||
tmp3 = num;
|
||||
num3 = 0;
|
||||
do {
|
||||
do {
|
||||
charCodeAtResult = substr.charCodeAt(num3);
|
||||
sum = charCodeAtResult + (substr.charCodeAt(num3 + 1) << 8);
|
||||
tmp6 = substr.charCodeAt(num3 + 2) << 16;
|
||||
items[num3 >> 2] = sum + tmp6 + (substr.charCodeAt(num3 + 3) << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
tmpResult = tmp(tmp2, items);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
}
|
||||
str2 = self._buff;
|
||||
self._buff = str2.substring(num2 - 64);
|
||||
return self;
|
||||
}
|
||||
end(arg0) {
|
||||
self = this;
|
||||
_buff = this._buff;
|
||||
length = _buff.length;
|
||||
items = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
tmp = num >> 2;
|
||||
items[tmp] = items[tmp] | _buff.charCodeAt(num) << (num % 4 << 3);
|
||||
}
|
||||
_finishResult = self._finish(items, length);
|
||||
_hash = self._hash;
|
||||
num2 = 0;
|
||||
if (0 < _hash.length) {
|
||||
tmp3 = _hash[num2];
|
||||
tmp4 = num2;
|
||||
str = "";
|
||||
num3 = 0;
|
||||
do {
|
||||
do {
|
||||
tmp5 = closure_1;
|
||||
result = 8 * num3;
|
||||
text = `${closure_1[tmp3 >> tmp6 + 4 & 15] + closure_1[tmp3 >> tmp6 & 15]}`;
|
||||
num3 = num3 + 1;
|
||||
str = text;
|
||||
} while (num3 < 4);
|
||||
_hash[num2] = text;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < _hash.length);
|
||||
}
|
||||
joined = _hash.join("");
|
||||
applyResult = joined;
|
||||
if (arg0) {
|
||||
items1 = [];
|
||||
length2 = joined.length;
|
||||
tmp9 = globalThis;
|
||||
num4 = 16;
|
||||
num5 = 0;
|
||||
if (0 < length2 - 1) {
|
||||
do {
|
||||
_parseInt = parseInt;
|
||||
arr1 = items1.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length2 - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
_String = String;
|
||||
fromCharCode = String.fromCharCode;
|
||||
_String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items1);
|
||||
}
|
||||
resetResult = self.reset();
|
||||
return applyResult;
|
||||
}
|
||||
reset() {
|
||||
return { _buff: "", _length: 0, _hash: [1732584193, -271733879, -1732584194, 271733878] };
|
||||
}
|
||||
getState() {
|
||||
obj = { buff: this._buff, length: this._length, hash: null };
|
||||
_hash = this._hash;
|
||||
obj.hash = _hash.slice();
|
||||
return obj;
|
||||
}
|
||||
setState(arg0) {
|
||||
obj = { _buff: arg0.buff, _length: arg0.length, _hash: arg0.hash };
|
||||
return obj;
|
||||
}
|
||||
destroy() {
|
||||
delete tmp2[tmp];
|
||||
delete tmp2[tmp];
|
||||
delete tmp2[tmp];
|
||||
return;
|
||||
}
|
||||
_finish(arg0, arg1) {
|
||||
self = this;
|
||||
tmp = arg1 >> 2;
|
||||
arg0[tmp] = arg0[tmp] | 128 << (arg1 % 4 << 3);
|
||||
if (arg1 > 55) {
|
||||
tmp2 = md5cycle;
|
||||
num = 0;
|
||||
tmp3 = md5cycle(self._hash, arg0);
|
||||
num2 = 1;
|
||||
num3 = 16;
|
||||
num4 = 0;
|
||||
do {
|
||||
arg0[num4] = 0;
|
||||
num4 = num4 + 1;
|
||||
} while (num4 < 16);
|
||||
}
|
||||
str = 8 * self._length;
|
||||
str2 = str.toString(16);
|
||||
match = str2.match(/(.*?)(.{0,8})$/);
|
||||
parsed = parseInt(match[2], 16);
|
||||
tmp6 = parseInt(match[1], 16) || 0;
|
||||
arg0[14] = parsed;
|
||||
arg0[15] = tmp6;
|
||||
tmp7 = md5cycle(self._hash, arg0);
|
||||
return;
|
||||
}
|
||||
static hash(arg0, arg1) {
|
||||
obj = /[\u0080-\uFFFF]/;
|
||||
tmp = SparkMD5;
|
||||
unescapeResult = arg0;
|
||||
if (obj.test(arg0)) {
|
||||
tmp3 = globalThis;
|
||||
_unescape = unescape;
|
||||
_encodeURIComponent = encodeURIComponent;
|
||||
unescapeResult = unescape(encodeURIComponent(arg0));
|
||||
}
|
||||
return SparkMD5.hashBinary(unescapeResult, arg1);
|
||||
}
|
||||
static hashBinary(arg0, arg1) {
|
||||
arr = md51(arg0);
|
||||
num = 0;
|
||||
if (0 < arr.length) {
|
||||
tmp = arr[num];
|
||||
tmp2 = num;
|
||||
str = "";
|
||||
num2 = 0;
|
||||
do {
|
||||
do {
|
||||
tmp3 = closure_1;
|
||||
result = 8 * num2;
|
||||
text = `${closure_1[tmp >> tmp4 + 4 & 15] + closure_1[tmp >> tmp4 & 15]}`;
|
||||
num2 = num2 + 1;
|
||||
str = text;
|
||||
} while (num2 < 4);
|
||||
arr[num] = text;
|
||||
num = num + 1;
|
||||
} while (num < arr.length);
|
||||
}
|
||||
joined = arr.join("");
|
||||
applyResult = joined;
|
||||
if (arg1) {
|
||||
items = [];
|
||||
length = joined.length;
|
||||
tmp7 = globalThis;
|
||||
num3 = 2;
|
||||
num4 = 16;
|
||||
num5 = 0;
|
||||
if (0 < length - 1) {
|
||||
do {
|
||||
_parseInt = parseInt;
|
||||
arr1 = items.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
_String = String;
|
||||
fromCharCode = String.fromCharCode;
|
||||
_String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items);
|
||||
}
|
||||
return applyResult;
|
||||
}
|
||||
static ArrayBuffer() {
|
||||
resetResult = this.reset();
|
||||
return;
|
||||
}
|
||||
}
|
||||
let items = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
||||
const md51Result = md51("hello");
|
||||
let num = 0;
|
||||
if (0 < md51Result.length) {
|
||||
let num2 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num2;
|
||||
let text = `${arr[tmp >> tmp3 + 4 & 15] + arr[tmp >> tmp3 & 15]}`;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < 4);
|
||||
md51Result[num] = text;
|
||||
num = num + 1;
|
||||
} while (num < md51Result.length);
|
||||
}
|
||||
if ("5d41402abc4b2a76b9719d911017c592" !== md51Result.join("")) {
|
||||
globalThis.add32 = function add32(arg0, arg1) {
|
||||
const sum = (65535 & arg0) + (65535 & arg1);
|
||||
return (arg0 >> 16) + (arg1 >> 16) + (sum >> 16) << 16 | 65535 & sum;
|
||||
};
|
||||
}
|
||||
let slice = typeof ArrayBuffer === "undefined";
|
||||
if (typeof ArrayBuffer !== "undefined") {
|
||||
let _ArrayBuffer2 = ArrayBuffer;
|
||||
slice = ArrayBuffer.prototype.slice;
|
||||
}
|
||||
if (!slice) {
|
||||
let _ArrayBuffer = ArrayBuffer;
|
||||
ArrayBuffer.prototype.slice = function(arg0, arg1) {
|
||||
const self = this;
|
||||
let byteLength = this.byteLength;
|
||||
if ((arg0 | 0 || 0) < 0) {
|
||||
const _Math2 = Math;
|
||||
let bound = Math.max(tmp + byteLength, 0);
|
||||
} else {
|
||||
const _Math = Math;
|
||||
bound = Math.min(tmp, byteLength);
|
||||
}
|
||||
if (arg1 === closure_0) {
|
||||
if (bound > byteLength) {
|
||||
const _ArrayBuffer2 = ArrayBuffer;
|
||||
let arrayBuffer = new ArrayBuffer(0);
|
||||
} else {
|
||||
const diff = byteLength - bound;
|
||||
const _ArrayBuffer = ArrayBuffer;
|
||||
const arrayBuffer2 = new ArrayBuffer(diff);
|
||||
arrayBuffer = arrayBuffer2;
|
||||
const _Uint8Array = Uint8Array;
|
||||
const uint8Array = new Uint8Array(arrayBuffer2);
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
const uint8Array1 = new Uint8Array(self, bound, diff);
|
||||
const result = uint8Array.set(uint8Array1);
|
||||
}
|
||||
return arrayBuffer;
|
||||
} else if ((arg1 | 0 || 0) < 0) {
|
||||
const _Math4 = Math;
|
||||
byteLength = tmp5 + byteLength;
|
||||
let bound1 = Math.max(byteLength, 0);
|
||||
} else {
|
||||
const _Math3 = Math;
|
||||
bound1 = Math.min(tmp5, byteLength);
|
||||
}
|
||||
};
|
||||
}
|
||||
SparkMD5.ArrayBuffer.prototype.append = function(byteLength) {
|
||||
const self = this;
|
||||
const buffer = this._buff.buffer;
|
||||
const uint8Array = new Uint8Array(buffer.byteLength + byteLength.byteLength);
|
||||
const uint8Array1 = new Uint8Array(buffer);
|
||||
const result = uint8Array.set(uint8Array1);
|
||||
const uint8Array2 = new Uint8Array(byteLength);
|
||||
const result1 = uint8Array.set(uint8Array2, buffer.byteLength);
|
||||
this._length = this._length + byteLength.byteLength;
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= uint8Array.length) {
|
||||
const subarrayResult = uint8Array.subarray(num - 64, num);
|
||||
items = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
items[num3 >> 2] = subarrayResult[num3] + (subarrayResult[num3 + 1] << 8) + (subarrayResult[num3 + 2] << 16) + (subarrayResult[num3 + 3] << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmp5Result = tmp5(tmp6, items);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp5 = md5cycle;
|
||||
}
|
||||
const diff = num2 - 64;
|
||||
if (diff < uint8Array.length) {
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
const buffer1 = uint8Array.buffer;
|
||||
let uint8Array3 = new Uint8Array(buffer1.slice(diff));
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
uint8Array3 = new Uint8Array(0);
|
||||
}
|
||||
self._buff = uint8Array3;
|
||||
return self;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.end = function(arg0) {
|
||||
let diff;
|
||||
const self = this;
|
||||
const _buff = this._buff;
|
||||
items = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
let tmp = num >> 2;
|
||||
items[tmp] = items[tmp] | _buff[num] << (num % 4 << 3);
|
||||
}
|
||||
self._finish(items, _buff.length);
|
||||
const _hash = self._hash;
|
||||
let num2 = 0;
|
||||
if (0 < _hash.length) {
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num3;
|
||||
let text = `${items[tmp3 >> tmp6 + 4 & 15] + items[tmp3 >> tmp6 & 15]}`;
|
||||
num3 = num3 + 1;
|
||||
} while (num3 < 4);
|
||||
_hash[num2] = text;
|
||||
num2 = num2 + 1;
|
||||
} while (num2 < _hash.length);
|
||||
}
|
||||
const joined = _hash.join("");
|
||||
let applyResult = joined;
|
||||
if (arg0) {
|
||||
const items1 = [];
|
||||
let num5 = 0;
|
||||
if (0 < joined.length - 1) {
|
||||
do {
|
||||
let _parseInt = parseInt;
|
||||
let arr = items1.push(parseInt(joined.substr(num5, 2), 16));
|
||||
num5 = num5 + 2;
|
||||
diff = length2 - 1;
|
||||
} while (num5 < diff);
|
||||
}
|
||||
const _String = String;
|
||||
const _String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items1);
|
||||
}
|
||||
self.reset();
|
||||
return applyResult;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.reset = () => {
|
||||
const obj = {};
|
||||
const uint8Array = new Uint8Array(0);
|
||||
obj._buff = uint8Array;
|
||||
obj._length = 0;
|
||||
obj._hash = [1732584193, -271733879, -1732584194, 271733878];
|
||||
return obj;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.getState = function() {
|
||||
const self = this;
|
||||
const getState = SparkMD5.prototype.getState;
|
||||
const call = getState.call;
|
||||
const tmp = typeof call === "unknown" ? getState() : call(self);
|
||||
const uint8Array = new Uint8Array(tmp.buff);
|
||||
tmp.buff = fromCharCode.apply(null, uint8Array);
|
||||
return tmp;
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.setState = function(buff) {
|
||||
buff = buff.buff;
|
||||
const arrayBuffer = new ArrayBuffer(length);
|
||||
const uint8Array = new Uint8Array(arrayBuffer);
|
||||
for (let num = 0; num < length; num = num + 1) {
|
||||
uint8Array[num] = buff.charCodeAt(num);
|
||||
}
|
||||
const self = this;
|
||||
buff.buff = uint8Array;
|
||||
const setState = SparkMD5.prototype.setState;
|
||||
const call = setState.call;
|
||||
return typeof call === "unknown" ? setState(buff) : call(self, buff);
|
||||
};
|
||||
SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;
|
||||
SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;
|
||||
SparkMD5.ArrayBuffer.hash = (arg0, arg1) => {
|
||||
let diff1;
|
||||
const uint8Array = new Uint8Array(arg0);
|
||||
items = [1732584193, -271733879, -1732584194, 271733878];
|
||||
let num = 64;
|
||||
let num2 = 64;
|
||||
if (64 <= uint8Array.length) {
|
||||
const subarrayResult = uint8Array.subarray(num - 64, num);
|
||||
const items1 = [];
|
||||
let num3 = 0;
|
||||
do {
|
||||
do {
|
||||
items1[num3 >> 2] = subarrayResult[num3] + (subarrayResult[num3 + 1] << 8) + (subarrayResult[num3 + 2] << 16) + (subarrayResult[num3 + 3] << 24);
|
||||
num3 = num3 + 4;
|
||||
} while (num3 < 64);
|
||||
let tmpResult = tmp(items, items1);
|
||||
num = num + 64;
|
||||
num2 = num;
|
||||
} while (num <= length);
|
||||
tmp = md5cycle;
|
||||
}
|
||||
const diff = num2 - 64;
|
||||
if (diff < uint8Array.length) {
|
||||
let subarrayResult1 = uint8Array.subarray(diff);
|
||||
} else {
|
||||
const _Uint8Array = Uint8Array;
|
||||
subarrayResult1 = new Uint8Array(0);
|
||||
}
|
||||
const items2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
let num5 = 0;
|
||||
let num6 = 0;
|
||||
if (0 < subarrayResult1.length) {
|
||||
do {
|
||||
let tmp8 = num5 >> 2;
|
||||
items2[tmp8] = items2[tmp8] | subarrayResult1[num5] << (num5 % 4 << 3);
|
||||
num5 = num5 + 1;
|
||||
num6 = num5;
|
||||
} while (num5 < length2);
|
||||
}
|
||||
items2[num6 >> 2] = items2[num6 >> 2] | 128 << (num6 % 4 << 3);
|
||||
if (55 < num6) {
|
||||
md5cycle(items, items2);
|
||||
let num7 = 0;
|
||||
do {
|
||||
items2[num7] = 0;
|
||||
num7 = num7 + 1;
|
||||
} while (num7 < 16);
|
||||
}
|
||||
const match = 8 * uint8Array.length.toString(16).match(/(.*?)(.{0,8})$/);
|
||||
const parsed = parseInt(match[2], 16);
|
||||
const str = 8 * uint8Array.length;
|
||||
const str2 = 8 * uint8Array.length.toString(16);
|
||||
items2[14] = parsed;
|
||||
items2[15] = parseInt(match[1], 16) || 0;
|
||||
md5cycle(items, items2);
|
||||
let num8 = 0;
|
||||
if (0 < items.length) {
|
||||
let num9 = 0;
|
||||
do {
|
||||
do {
|
||||
let result = 8 * num9;
|
||||
let text = `${items[tmp16 >> tmp19 + 4 & 15] + items[tmp16 >> tmp19 & 15]}`;
|
||||
num9 = num9 + 1;
|
||||
} while (num9 < 4);
|
||||
items[num8] = text;
|
||||
num8 = num8 + 1;
|
||||
} while (num8 < items.length);
|
||||
}
|
||||
const joined = items.join("");
|
||||
let applyResult = joined;
|
||||
if (arg1) {
|
||||
const items3 = [];
|
||||
let num10 = 0;
|
||||
if (0 < joined.length - 1) {
|
||||
do {
|
||||
let _parseInt = parseInt;
|
||||
let arr = items3.push(parseInt(joined.substr(num10, 2), 16));
|
||||
num10 = num10 + 2;
|
||||
diff1 = length3 - 1;
|
||||
} while (num10 < diff1);
|
||||
}
|
||||
const _String = String;
|
||||
const _String2 = String;
|
||||
applyResult = fromCharCode.apply(String, items3);
|
||||
}
|
||||
return applyResult;
|
||||
};
|
||||
return SparkMD5;
|
||||
});
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
// Module ID: 5396
|
||||
// Function ID: 5397
|
||||
// Dependencies: [5397, 5398]
|
||||
// Exports: detectFile
|
||||
|
||||
// Module 5396
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const detectFile = function detectFile(uint8Array, chunkSize) {
|
||||
if (chunkSize) {
|
||||
const _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
const call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty("chunkSize");
|
||||
} else {
|
||||
hasOwnPropertyResult = call(chunkSize, "chunkSize");
|
||||
}
|
||||
if (hasOwnPropertyResult) {
|
||||
chunkSize = undefined;
|
||||
if (null != chunkSize) {
|
||||
chunkSize = chunkSize.chunkSize;
|
||||
}
|
||||
let num2 = 0;
|
||||
if (null !== chunkSize) {
|
||||
num2 = 0;
|
||||
if (undefined !== chunkSize) {
|
||||
num2 = chunkSize;
|
||||
}
|
||||
}
|
||||
if (num2 <= 0) {
|
||||
const _RangeError = RangeError;
|
||||
const rangeError = new RangeError("chunkSize must be bigger than zero");
|
||||
throw rangeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
let num3;
|
||||
if (null != chunkSize) {
|
||||
num3 = chunkSize.chunkSize;
|
||||
}
|
||||
if (!num3) {
|
||||
num3 = 64;
|
||||
}
|
||||
const fileChunk = _mod5397.getFileChunk(uint8Array, num3);
|
||||
if (0 !== fileChunk.length) {
|
||||
const items = [];
|
||||
const items1 = [];
|
||||
for (const key10027 in _mod5398.FileTypes) {
|
||||
let _Object4 = Object;
|
||||
let call2 = hasOwnProperty2.call;
|
||||
let tmp23 = require;
|
||||
let FileTypes5 = _mod5398.FileTypes;
|
||||
if (typeof call2 === "unknown") {
|
||||
let hasOwnProperty2Result = hasOwnProperty2(key10027);
|
||||
} else {
|
||||
hasOwnProperty2Result = call2(FileTypes5, key10027);
|
||||
}
|
||||
if (!hasOwnProperty2Result) {
|
||||
continue;
|
||||
} else {
|
||||
let FileTypes = tmp23(5398).FileTypes;
|
||||
let signaturesByName = FileTypes.getSignaturesByName(key10027);
|
||||
let FileTypes2 = tmp23(5398).FileTypes;
|
||||
let detectbBySignaturesResult = FileTypes2.detectbBySignatures(fileChunk, signaturesByName);
|
||||
if (!detectbBySignaturesResult) {
|
||||
continue;
|
||||
} else {
|
||||
let FileTypes3 = tmp23(5398).FileTypes;
|
||||
let infoByName = FileTypes3.getInfoByName(key10027);
|
||||
let FILE_TYPES_REQUIRED_ADDITIONAL_CHECK = tmp23(5398).FILE_TYPES_REQUIRED_ADDITIONAL_CHECK;
|
||||
if (FILE_TYPES_REQUIRED_ADDITIONAL_CHECK.includes(infoByName.extension)) {
|
||||
let arr = items1.push(infoByName.extension);
|
||||
}
|
||||
let obj = { extension: null, mimeType: null, description: null, signature: null };
|
||||
({ extension: obj.extension, mimeType: obj.mimeType, description: obj.description } = infoByName);
|
||||
let _Object2 = Object;
|
||||
let _Object3 = Object;
|
||||
let obj2 = { sequence: null };
|
||||
let sequence = detectbBySignaturesResult.sequence;
|
||||
let merged = Object.assign({}, detectbBySignaturesResult);
|
||||
obj2.sequence = sequence.map((item) => item.toString(16));
|
||||
obj.signature = Object.assign(merged, obj2);
|
||||
let arr2 = items.push(obj);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (0 !== items.length) {
|
||||
if (1 === items.length) {
|
||||
if (0 === items1.length) {
|
||||
return items[0];
|
||||
}
|
||||
}
|
||||
const FileTypes4 = _mod5398.FileTypes;
|
||||
const result = FileTypes4.detectTypeByAdditionalCheck(fileChunk, items);
|
||||
require = result;
|
||||
if (result) {
|
||||
return items.find((extension) => extension.extension === result);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -1,120 +0,0 @@
|
|||
// Module ID: 5397
|
||||
// Function ID: 5398
|
||||
// Dependencies: []
|
||||
// Exports: findMatroskaDocTypeElements, getFileChunk, isAvifStringIncluded, isFileContaineJfiforExifHeader, isFlvStringIncluded, isHeicSignatureIncluded, isftypStringIncluded
|
||||
|
||||
// Module 5397
|
||||
function fetchFromObject(FileTypes, arr) {
|
||||
const index = arr.indexOf(".");
|
||||
if (index > -1) {
|
||||
let tmp2 = fetchFromObject(FileTypes[arr.slice(arr, 0, index)], arr.slice(index + 1));
|
||||
} else {
|
||||
tmp2 = FileTypes[arr];
|
||||
}
|
||||
return tmp2;
|
||||
}
|
||||
|
||||
export const getFileChunk = function getFileChunk(fileChunk, chunkSize) {
|
||||
let num = chunkSize;
|
||||
if (chunkSize === undefined) {
|
||||
num = 32;
|
||||
}
|
||||
let uint8Array = fileChunk;
|
||||
if (fileChunk instanceof ArrayBuffer) {
|
||||
const _Uint8Array = Uint8Array;
|
||||
uint8Array = new Uint8Array(fileChunk);
|
||||
}
|
||||
if (!Array.isArray(fileChunk)) {
|
||||
const _ArrayBuffer = ArrayBuffer;
|
||||
if (!(fileChunk instanceof ArrayBuffer)) {
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
if (!(fileChunk instanceof Uint8Array)) {
|
||||
const _TypeError = TypeError;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const typeError = new TypeError("Expected the `file` argument to be of type `Array<number>`, `Uint8Array`, or `ArrayBuffer`, got `" + typeof fileChunk + "`");
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
const arr = Array.from(uint8Array.slice(0, num));
|
||||
if (arr.every((item) => {
|
||||
let tmp = typeof item === "number";
|
||||
if (typeof item === "number") {
|
||||
const _isNaN = isNaN;
|
||||
tmp = !isNaN(item);
|
||||
}
|
||||
return tmp;
|
||||
})) {
|
||||
return arr;
|
||||
} else {
|
||||
const _TypeError2 = TypeError;
|
||||
const typeError1 = new TypeError("File content contains illegal values");
|
||||
throw typeError1;
|
||||
}
|
||||
};
|
||||
export { fetchFromObject };
|
||||
export const findMatroskaDocTypeElements = function findMatroskaDocTypeElements(fileChunk) {
|
||||
const mapped = fileChunk.map((item) => String.fromCharCode(item));
|
||||
const joined = mapped.join("");
|
||||
let str = "webm";
|
||||
if (!joined.includes("webm")) {
|
||||
let str3;
|
||||
if (joined.includes("matroska")) {
|
||||
str3 = "mkv";
|
||||
}
|
||||
str = str3;
|
||||
}
|
||||
return str;
|
||||
};
|
||||
export const isftypStringIncluded = function isftypStringIncluded(fileChunk) {
|
||||
const items = [102, 116, 121, 112];
|
||||
let num = 0;
|
||||
if (0 < fileChunk.length - items.length) {
|
||||
while (true) {
|
||||
let num2 = 0;
|
||||
let flag = true;
|
||||
if (0 < items.length) {
|
||||
flag = false;
|
||||
while (fileChunk[num + num2] === items[num2]) {
|
||||
let sum = num2 + 1;
|
||||
num2 = sum;
|
||||
flag = true;
|
||||
if (sum >= items.length) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
break;
|
||||
} else {
|
||||
num = num + 1;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
export const isFlvStringIncluded = function isFlvStringIncluded(fileChunk) {
|
||||
const substr = fileChunk.slice(0, 3);
|
||||
const decoder = new TextDecoder();
|
||||
const uint8Array = new Uint8Array(substr);
|
||||
return decoder.decode(uint8Array).includes("FLV");
|
||||
};
|
||||
export const isFileContaineJfiforExifHeader = function isFileContaineJfiforExifHeader(arg0) {
|
||||
let tmp2 = 224 === tmp;
|
||||
if (!tmp2) {
|
||||
tmp2 = 225 === tmp;
|
||||
}
|
||||
return tmp2;
|
||||
};
|
||||
export const isAvifStringIncluded = function isAvifStringIncluded(fileChunk) {
|
||||
const substr = fileChunk.slice(4, 12);
|
||||
const mapped = substr.map((item) => String.fromCharCode(item));
|
||||
return "ftypavif" === mapped.join("");
|
||||
};
|
||||
export const isHeicSignatureIncluded = function isHeicSignatureIncluded(fileChunk) {
|
||||
const mapped = fileChunk.map((item) => String.fromCharCode(item));
|
||||
closure_0 = mapped.join("");
|
||||
const items = ["ftypheic", "ftyphevc", "ftypmif1", "ftypmsf1"];
|
||||
return items.some((item) => closure_0.includes(item));
|
||||
};
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
// Module ID: 5398
|
||||
// Function ID: 5399
|
||||
// Dependencies: [5399, 5411, 5419]
|
||||
|
||||
// Module 5398
|
||||
import FILE_TYPES_REQUIRED_ADDITIONAL_CHECK from "FILE_TYPES_REQUIRED_ADDITIONAL_CHECK" /* 5399 */;
|
||||
import _mod5411 from "module_5411" /* 5411 */;
|
||||
import _mod5419 from "module_5419" /* 5419 */;
|
||||
|
||||
const self = this;
|
||||
let self2 = this;
|
||||
if (this) {
|
||||
self2 = self.__createBinding;
|
||||
}
|
||||
if (self2) {
|
||||
let fn = self;
|
||||
if (self) {
|
||||
fn = self.__exportStar;
|
||||
}
|
||||
if (!fn) {
|
||||
fn = (obj, exports) => {
|
||||
for (const key10007 in arg0) {
|
||||
let tmp6 = "default" === key10007;
|
||||
if (tmp6) {
|
||||
if (tmp6) {
|
||||
continue;
|
||||
} else {
|
||||
let tmp4 = self2(arg1, arg0, key10007);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(key10007);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(arg1, key10007);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
const _Object2 = Object;
|
||||
fn(FILE_TYPES_REQUIRED_ADDITIONAL_CHECK, exports);
|
||||
fn(_mod5411, exports);
|
||||
fn(_mod5419, exports);
|
||||
} else {
|
||||
let _Object = Object;
|
||||
}
|
||||
|
|
@ -1,197 +0,0 @@
|
|||
// Module ID: 5400
|
||||
// Function ID: 5401
|
||||
// Dependencies: [5401, 5402, 5403, 5404, 5405, 5398, 5397]
|
||||
|
||||
// Module 5400
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
import _mod5401 from "module_5401" /* 5401 */;
|
||||
import is7Z from "is7Z" /* 5402 */;
|
||||
import _mod5403 from "module_5403" /* 5403 */;
|
||||
import _mod5404 from "module_5404" /* 5404 */;
|
||||
import _mod5405 from "module_5405" /* 5405 */;
|
||||
|
||||
const self = this;
|
||||
let self2 = this;
|
||||
if (this) {
|
||||
self2 = self.__createBinding;
|
||||
}
|
||||
if (self2) {
|
||||
let fn = self;
|
||||
if (self) {
|
||||
fn = self.__exportStar;
|
||||
}
|
||||
if (!fn) {
|
||||
fn = (obj, exports) => {
|
||||
for (const key10007 in arg0) {
|
||||
let tmp6 = "default" === key10007;
|
||||
if (tmp6) {
|
||||
if (tmp6) {
|
||||
continue;
|
||||
} else {
|
||||
let tmp4 = self2(arg1, arg0, key10007);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(key10007);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(arg1, key10007);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
let _Object2 = Object;
|
||||
exports.validateFileType = undefined;
|
||||
fn(_mod5401, exports);
|
||||
fn(is7Z, exports);
|
||||
fn(_mod5403, exports);
|
||||
fn(_mod5404, exports);
|
||||
fn(_mod5405, exports);
|
||||
exports.validateFileType = function validateFileType(fileChunk, arr, chunkSize) {
|
||||
let items = [];
|
||||
const items1 = [
|
||||
...new Set(arr.map((item) => {
|
||||
const parts = item.split(".");
|
||||
const formatted = parts.join("").toUpperCase();
|
||||
let combined = formatted;
|
||||
if ("7Z" === formatted) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
combined = "_" + formatted;
|
||||
}
|
||||
return combined;
|
||||
}))
|
||||
];
|
||||
for (const item10023 of items1) {
|
||||
let str = item10023;
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
let FileTypes = _mod5398.FileTypes;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(item10023);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(FileTypes, item10023);
|
||||
}
|
||||
if (hasOwnPropertyResult) {
|
||||
arr = items.push(str);
|
||||
continue;
|
||||
} else {
|
||||
let _TypeError = TypeError;
|
||||
let _HermesInternal = HermesInternal;
|
||||
let str2 = "` is not supported. Please make sure that `types` list conatins only supported files";
|
||||
let str3 = "Type `";
|
||||
let tmp8 = new.target;
|
||||
let tmp9 = new.target;
|
||||
let typeError = new TypeError("Type `" + str.toLowerCase() + "` is not supported. Please make sure that `types` list conatins only supported files");
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
if (chunkSize) {
|
||||
const _Object2 = Object;
|
||||
const call2 = hasOwnProperty2.call;
|
||||
if (typeof call2 === "unknown") {
|
||||
let hasOwnProperty2Result = hasOwnProperty2("chunkSize");
|
||||
} else {
|
||||
hasOwnProperty2Result = call2(chunkSize, "chunkSize");
|
||||
}
|
||||
if (hasOwnProperty2Result) {
|
||||
chunkSize = undefined;
|
||||
if (null != chunkSize) {
|
||||
chunkSize = chunkSize.chunkSize;
|
||||
}
|
||||
let num = 0;
|
||||
if (null !== chunkSize) {
|
||||
num = 0;
|
||||
if (undefined !== chunkSize) {
|
||||
num = chunkSize;
|
||||
}
|
||||
}
|
||||
if (num <= 0) {
|
||||
const _RangeError = RangeError;
|
||||
const rangeError = new RangeError("chunkSize must be bigger than zero");
|
||||
throw rangeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!chunkSize) {
|
||||
const arr3 = (function addSimilarTypes(items) {
|
||||
if (items.some((item) => "MP4" === item)) {
|
||||
items = ["M4V"];
|
||||
} else {
|
||||
items = items.some((item) => "AAC" === item) ? ["M4A"] : [];
|
||||
}
|
||||
return items;
|
||||
})(items);
|
||||
let combined = items;
|
||||
if (arr3.length > 0) {
|
||||
combined = items.concat(arr3);
|
||||
}
|
||||
} else {
|
||||
let excludeSimilarTypes;
|
||||
if (null != chunkSize) {
|
||||
excludeSimilarTypes = chunkSize.excludeSimilarTypes;
|
||||
}
|
||||
combined = items;
|
||||
}
|
||||
let items2 = [];
|
||||
const items3 = [];
|
||||
for (const item10079 of combined) {
|
||||
let tmp19 = item10079;
|
||||
let tmp21 = require;
|
||||
let FileTypes2 = _mod5398.FileTypes;
|
||||
items2 = items2.concat(FileTypes2.getSignaturesByName(item10079));
|
||||
let FILE_TYPES_REQUIRED_ADDITIONAL_CHECK = _mod5398.FILE_TYPES_REQUIRED_ADDITIONAL_CHECK;
|
||||
if (FILE_TYPES_REQUIRED_ADDITIONAL_CHECK.includes(item10079.toLowerCase())) {
|
||||
let FileTypes3 = tmp21(5398).FileTypes;
|
||||
let arr2 = items3.push(FileTypes3.getInfoByName(tmp19));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
let num2;
|
||||
if (null != chunkSize) {
|
||||
num2 = chunkSize.chunkSize;
|
||||
}
|
||||
if (!num2) {
|
||||
num2 = 64;
|
||||
}
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk, num2);
|
||||
const FileTypes4 = _mod5398.FileTypes;
|
||||
const detectSignatureResult = FileTypes4.detectSignature(fileChunk, items2);
|
||||
require = detectSignatureResult;
|
||||
if (detectSignatureResult) {
|
||||
if (items3.length > 0) {
|
||||
const found = items3.filter((signatures) => {
|
||||
signatures = signatures.signatures;
|
||||
return signatures.includes(detectSignatureResult);
|
||||
});
|
||||
if (found.length > 0) {
|
||||
const FileTypes5 = _mod5398.FileTypes;
|
||||
const result = FileTypes5.detectTypeByAdditionalCheck(fileChunk, found);
|
||||
dependencyMap = result;
|
||||
return result && combined.some((item) => item.toLowerCase() === result);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
const set = new Set(arr.map((item) => {
|
||||
const parts = item.split(".");
|
||||
const formatted = parts.join("").toUpperCase();
|
||||
let combined = formatted;
|
||||
if ("7Z" === formatted) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
combined = "_" + formatted;
|
||||
}
|
||||
return combined;
|
||||
}));
|
||||
};
|
||||
} else {
|
||||
let _Object = Object;
|
||||
}
|
||||
|
|
@ -1,56 +1,109 @@
|
|||
// Module ID: 5401
|
||||
// Function ID: 5402
|
||||
// Dependencies: [5397, 5398]
|
||||
// Exports: isAAC, isAMR, isFLAC, isM4A, isMP3, isWAV
|
||||
// Dependencies: [5402, 5403]
|
||||
// Exports: detectFile
|
||||
|
||||
// Module 5401
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
import _mod5402 from "module_5402" /* 5402 */;
|
||||
import _mod5403 from "module_5403" /* 5403 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isAAC = function isAAC(fileChunk, excludeSimilarTypes) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
let checkByFileTypeResult1 = FileTypes.checkByFileType(fileChunk, "aac");
|
||||
if (!checkByFileTypeResult1) {
|
||||
excludeSimilarTypes = undefined;
|
||||
if (null != excludeSimilarTypes) {
|
||||
excludeSimilarTypes = excludeSimilarTypes.excludeSimilarTypes;
|
||||
export const detectFile = function detectFile(uint8Array, chunkSize) {
|
||||
if (chunkSize) {
|
||||
const _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
const call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty("chunkSize");
|
||||
} else {
|
||||
hasOwnPropertyResult = call(chunkSize, "chunkSize");
|
||||
}
|
||||
let checkByFileTypeResult = !excludeSimilarTypes;
|
||||
if (!excludeSimilarTypes) {
|
||||
const fileChunk1 = tmp(5397).getFileChunk(fileChunk);
|
||||
const FileTypes2 = tmp(5398).FileTypes;
|
||||
checkByFileTypeResult = FileTypes2.checkByFileType(fileChunk1, "m4a");
|
||||
if (hasOwnPropertyResult) {
|
||||
chunkSize = undefined;
|
||||
if (null != chunkSize) {
|
||||
chunkSize = chunkSize.chunkSize;
|
||||
}
|
||||
let num2 = 0;
|
||||
if (null !== chunkSize) {
|
||||
num2 = 0;
|
||||
if (undefined !== chunkSize) {
|
||||
num2 = chunkSize;
|
||||
}
|
||||
}
|
||||
if (num2 <= 0) {
|
||||
const _RangeError = RangeError;
|
||||
const rangeError = new RangeError("chunkSize must be bigger than zero");
|
||||
throw rangeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
let num3;
|
||||
if (null != chunkSize) {
|
||||
num3 = chunkSize.chunkSize;
|
||||
}
|
||||
if (!num3) {
|
||||
num3 = 64;
|
||||
}
|
||||
const fileChunk = _mod5402.getFileChunk(uint8Array, num3);
|
||||
if (0 !== fileChunk.length) {
|
||||
const items = [];
|
||||
const items1 = [];
|
||||
for (const key10027 in _mod5403.FileTypes) {
|
||||
let _Object4 = Object;
|
||||
let call2 = hasOwnProperty2.call;
|
||||
let tmp23 = require;
|
||||
let FileTypes5 = _mod5403.FileTypes;
|
||||
if (typeof call2 === "unknown") {
|
||||
let hasOwnProperty2Result = hasOwnProperty2(key10027);
|
||||
} else {
|
||||
hasOwnProperty2Result = call2(FileTypes5, key10027);
|
||||
}
|
||||
if (!hasOwnProperty2Result) {
|
||||
continue;
|
||||
} else {
|
||||
let FileTypes = tmp23(5403).FileTypes;
|
||||
let signaturesByName = FileTypes.getSignaturesByName(key10027);
|
||||
let FileTypes2 = tmp23(5403).FileTypes;
|
||||
let detectbBySignaturesResult = FileTypes2.detectbBySignatures(fileChunk, signaturesByName);
|
||||
if (!detectbBySignaturesResult) {
|
||||
continue;
|
||||
} else {
|
||||
let FileTypes3 = tmp23(5403).FileTypes;
|
||||
let infoByName = FileTypes3.getInfoByName(key10027);
|
||||
let FILE_TYPES_REQUIRED_ADDITIONAL_CHECK = tmp23(5403).FILE_TYPES_REQUIRED_ADDITIONAL_CHECK;
|
||||
if (FILE_TYPES_REQUIRED_ADDITIONAL_CHECK.includes(infoByName.extension)) {
|
||||
let arr = items1.push(infoByName.extension);
|
||||
}
|
||||
let obj = { extension: null, mimeType: null, description: null, signature: null };
|
||||
({ extension: obj.extension, mimeType: obj.mimeType, description: obj.description } = infoByName);
|
||||
let _Object2 = Object;
|
||||
let _Object3 = Object;
|
||||
let obj2 = { sequence: null };
|
||||
let sequence = detectbBySignaturesResult.sequence;
|
||||
let merged = Object.assign({}, detectbBySignaturesResult);
|
||||
obj2.sequence = sequence.map((item) => item.toString(16));
|
||||
obj.signature = Object.assign(merged, obj2);
|
||||
let arr2 = items.push(obj);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (0 !== items.length) {
|
||||
if (1 === items.length) {
|
||||
if (0 === items1.length) {
|
||||
return items[0];
|
||||
}
|
||||
}
|
||||
const FileTypes4 = _mod5403.FileTypes;
|
||||
const result = FileTypes4.detectTypeByAdditionalCheck(fileChunk, items);
|
||||
require = result;
|
||||
if (result) {
|
||||
return items.find((extension) => extension.extension === result);
|
||||
}
|
||||
}
|
||||
checkByFileTypeResult1 = checkByFileTypeResult;
|
||||
}
|
||||
return checkByFileTypeResult1;
|
||||
};
|
||||
export const isAMR = function isAMR(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "amr");
|
||||
};
|
||||
export const isFLAC = function isFLAC(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "flac");
|
||||
};
|
||||
export const isM4A = function isM4A(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "m4a");
|
||||
};
|
||||
export const isMP3 = function isMP3(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "mp3");
|
||||
};
|
||||
export const isWAV = function isWAV(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "wav");
|
||||
};
|
||||
|
|
|
|||
120
alpha/source/__polyfill/05xxx/module_5402.js
Normal file
120
alpha/source/__polyfill/05xxx/module_5402.js
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
// Module ID: 5402
|
||||
// Function ID: 5403
|
||||
// Dependencies: []
|
||||
// Exports: findMatroskaDocTypeElements, getFileChunk, isAvifStringIncluded, isFileContaineJfiforExifHeader, isFlvStringIncluded, isHeicSignatureIncluded, isftypStringIncluded
|
||||
|
||||
// Module 5402
|
||||
function fetchFromObject(FileTypes, arr) {
|
||||
const index = arr.indexOf(".");
|
||||
if (index > -1) {
|
||||
let tmp2 = fetchFromObject(FileTypes[arr.slice(arr, 0, index)], arr.slice(index + 1));
|
||||
} else {
|
||||
tmp2 = FileTypes[arr];
|
||||
}
|
||||
return tmp2;
|
||||
}
|
||||
|
||||
export const getFileChunk = function getFileChunk(fileChunk, chunkSize) {
|
||||
let num = chunkSize;
|
||||
if (chunkSize === undefined) {
|
||||
num = 32;
|
||||
}
|
||||
let uint8Array = fileChunk;
|
||||
if (fileChunk instanceof ArrayBuffer) {
|
||||
const _Uint8Array = Uint8Array;
|
||||
uint8Array = new Uint8Array(fileChunk);
|
||||
}
|
||||
if (!Array.isArray(fileChunk)) {
|
||||
const _ArrayBuffer = ArrayBuffer;
|
||||
if (!(fileChunk instanceof ArrayBuffer)) {
|
||||
const _Uint8Array2 = Uint8Array;
|
||||
if (!(fileChunk instanceof Uint8Array)) {
|
||||
const _TypeError = TypeError;
|
||||
const _HermesInternal = HermesInternal;
|
||||
const typeError = new TypeError("Expected the `file` argument to be of type `Array<number>`, `Uint8Array`, or `ArrayBuffer`, got `" + typeof fileChunk + "`");
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
const arr = Array.from(uint8Array.slice(0, num));
|
||||
if (arr.every((item) => {
|
||||
let tmp = typeof item === "number";
|
||||
if (typeof item === "number") {
|
||||
const _isNaN = isNaN;
|
||||
tmp = !isNaN(item);
|
||||
}
|
||||
return tmp;
|
||||
})) {
|
||||
return arr;
|
||||
} else {
|
||||
const _TypeError2 = TypeError;
|
||||
const typeError1 = new TypeError("File content contains illegal values");
|
||||
throw typeError1;
|
||||
}
|
||||
};
|
||||
export { fetchFromObject };
|
||||
export const findMatroskaDocTypeElements = function findMatroskaDocTypeElements(fileChunk) {
|
||||
const mapped = fileChunk.map((item) => String.fromCharCode(item));
|
||||
const joined = mapped.join("");
|
||||
let str = "webm";
|
||||
if (!joined.includes("webm")) {
|
||||
let str3;
|
||||
if (joined.includes("matroska")) {
|
||||
str3 = "mkv";
|
||||
}
|
||||
str = str3;
|
||||
}
|
||||
return str;
|
||||
};
|
||||
export const isftypStringIncluded = function isftypStringIncluded(fileChunk) {
|
||||
const items = [102, 116, 121, 112];
|
||||
let num = 0;
|
||||
if (0 < fileChunk.length - items.length) {
|
||||
while (true) {
|
||||
let num2 = 0;
|
||||
let flag = true;
|
||||
if (0 < items.length) {
|
||||
flag = false;
|
||||
while (fileChunk[num + num2] === items[num2]) {
|
||||
let sum = num2 + 1;
|
||||
num2 = sum;
|
||||
flag = true;
|
||||
if (sum >= items.length) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
break;
|
||||
} else {
|
||||
num = num + 1;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
export const isFlvStringIncluded = function isFlvStringIncluded(fileChunk) {
|
||||
const substr = fileChunk.slice(0, 3);
|
||||
const decoder = new TextDecoder();
|
||||
const uint8Array = new Uint8Array(substr);
|
||||
return decoder.decode(uint8Array).includes("FLV");
|
||||
};
|
||||
export const isFileContaineJfiforExifHeader = function isFileContaineJfiforExifHeader(arg0) {
|
||||
let tmp2 = 224 === tmp;
|
||||
if (!tmp2) {
|
||||
tmp2 = 225 === tmp;
|
||||
}
|
||||
return tmp2;
|
||||
};
|
||||
export const isAvifStringIncluded = function isAvifStringIncluded(fileChunk) {
|
||||
const substr = fileChunk.slice(4, 12);
|
||||
const mapped = substr.map((item) => String.fromCharCode(item));
|
||||
return "ftypavif" === mapped.join("");
|
||||
};
|
||||
export const isHeicSignatureIncluded = function isHeicSignatureIncluded(fileChunk) {
|
||||
const mapped = fileChunk.map((item) => String.fromCharCode(item));
|
||||
closure_0 = mapped.join("");
|
||||
const items = ["ftypheic", "ftyphevc", "ftypmif1", "ftypmsf1"];
|
||||
return items.some((item) => closure_0.includes(item));
|
||||
};
|
||||
|
|
@ -1,87 +1,51 @@
|
|||
// Module ID: 5403
|
||||
// Function ID: 5404
|
||||
// Dependencies: [5397, 5398]
|
||||
// Exports: isAVIF, isBMP, isBPG, isCR2, isEXR, isGIF, isHEIC, isICO, isJPEG, isPBM, isPGM, isPNG, isPPM, isPSD, isWEBP
|
||||
// Dependencies: [5404, 5416, 5424]
|
||||
|
||||
// Module 5403
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
import FILE_TYPES_REQUIRED_ADDITIONAL_CHECK from "FILE_TYPES_REQUIRED_ADDITIONAL_CHECK" /* 5404 */;
|
||||
import _mod5416 from "module_5416" /* 5416 */;
|
||||
import _mod5424 from "module_5424" /* 5424 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isAVIF = function isAVIF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "avif") && _mod5397.isAvifStringIncluded(fileChunk);
|
||||
};
|
||||
export const isBMP = function isBMP(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "bmp");
|
||||
};
|
||||
export const isBPG = function isBPG(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "bpg");
|
||||
};
|
||||
export const isCR2 = function isCR2(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "cr2");
|
||||
};
|
||||
export const isEXR = function isEXR(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "exr");
|
||||
};
|
||||
export const isGIF = function isGIF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "gif");
|
||||
};
|
||||
export const isHEIC = function isHEIC(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "avif") && _mod5397.isHeicSignatureIncluded(fileChunk);
|
||||
};
|
||||
export const isICO = function isICO(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ico");
|
||||
};
|
||||
export const isJPEG = function isJPEG(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "jpeg");
|
||||
};
|
||||
export const isPBM = function isPBM(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pbm");
|
||||
};
|
||||
export const isPGM = function isPGM(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pgm");
|
||||
};
|
||||
export const isPNG = function isPNG(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "png");
|
||||
};
|
||||
export const isPPM = function isPPM(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ppm");
|
||||
};
|
||||
export const isPSD = function isPSD(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "psd");
|
||||
};
|
||||
export const isWEBP = function isWEBP(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "webp");
|
||||
};
|
||||
const self = this;
|
||||
let self2 = this;
|
||||
if (this) {
|
||||
self2 = self.__createBinding;
|
||||
}
|
||||
if (self2) {
|
||||
let fn = self;
|
||||
if (self) {
|
||||
fn = self.__exportStar;
|
||||
}
|
||||
if (!fn) {
|
||||
fn = (obj, exports) => {
|
||||
for (const key10007 in arg0) {
|
||||
let tmp6 = "default" === key10007;
|
||||
if (tmp6) {
|
||||
if (tmp6) {
|
||||
continue;
|
||||
} else {
|
||||
let tmp4 = self2(arg1, arg0, key10007);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(key10007);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(arg1, key10007);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
const _Object2 = Object;
|
||||
fn(FILE_TYPES_REQUIRED_ADDITIONAL_CHECK, exports);
|
||||
fn(_mod5416, exports);
|
||||
fn(_mod5424, exports);
|
||||
} else {
|
||||
let _Object = Object;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,87 +0,0 @@
|
|||
// Module ID: 5404
|
||||
// Function ID: 5405
|
||||
// Dependencies: [5397, 5398]
|
||||
// Exports: isBLEND, isDOC, isELF, isEXE, isINDD, isMACHO, isORC, isPARQUET, isPCAP, isPDF, isPS, isRTF, isSQLITE, isSTL, isTTF
|
||||
|
||||
// Module 5404
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isBLEND = function isBLEND(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "blend");
|
||||
};
|
||||
export const isELF = function isELF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "elf");
|
||||
};
|
||||
export const isEXE = function isEXE(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "exe");
|
||||
};
|
||||
export const isMACHO = function isMACHO(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "macho");
|
||||
};
|
||||
export const isINDD = function isINDD(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "indd");
|
||||
};
|
||||
export const isORC = function isORC(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "orc");
|
||||
};
|
||||
export const isPARQUET = function isPARQUET(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "parquet");
|
||||
};
|
||||
export const isPDF = function isPDF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pdf");
|
||||
};
|
||||
export const isPS = function isPS(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ps");
|
||||
};
|
||||
export const isRTF = function isRTF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "rtf");
|
||||
};
|
||||
export const isSQLITE = function isSQLITE(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "sqlite");
|
||||
};
|
||||
export const isSTL = function isSTL(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "stl");
|
||||
};
|
||||
export const isTTF = function isTTF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ttf");
|
||||
};
|
||||
export const isDOC = function isDOC(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "doc");
|
||||
};
|
||||
export const isPCAP = function isPCAP(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pcap");
|
||||
};
|
||||
|
|
@ -1,72 +1,197 @@
|
|||
// Module ID: 5405
|
||||
// Function ID: 5406
|
||||
// Dependencies: [5397, 5398]
|
||||
// Exports: isAVI, isFLV, isM4V, isMKV, isMOV, isMP4, isOGG, isSWF, isWEBM
|
||||
// Dependencies: [5406, 5407, 5408, 5409, 5410, 5403, 5402]
|
||||
|
||||
// Module 5405
|
||||
import _mod5397 from "module_5397" /* 5397 */;
|
||||
import _mod5398 from "module_5398" /* 5398 */;
|
||||
import _mod5402 from "module_5402" /* 5402 */;
|
||||
import _mod5403 from "module_5403" /* 5403 */;
|
||||
import _mod5406 from "module_5406" /* 5406 */;
|
||||
import is7Z from "is7Z" /* 5407 */;
|
||||
import _mod5408 from "module_5408" /* 5408 */;
|
||||
import _mod5409 from "module_5409" /* 5409 */;
|
||||
import _mod5410 from "module_5410" /* 5410 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isAVI = function isAVI(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "avi");
|
||||
};
|
||||
export const isFLV = function isFLV(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "flv") && _mod5397.isFlvStringIncluded(fileChunk);
|
||||
};
|
||||
export const isM4V = function isM4V(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "m4v") && _mod5397.isftypStringIncluded(fileChunk);
|
||||
};
|
||||
export const isMKV = function isMKV(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk, 64);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "mkv") && "mkv" === _mod5397.findMatroskaDocTypeElements(fileChunk);
|
||||
};
|
||||
export const isMOV = function isMOV(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "mov");
|
||||
};
|
||||
export const isMP4 = function isMP4(fileChunk, excludeSimilarTypes) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
let checkByFileTypeResult = FileTypes.checkByFileType(fileChunk, "mp4");
|
||||
if (!checkByFileTypeResult) {
|
||||
excludeSimilarTypes = undefined;
|
||||
if (null != excludeSimilarTypes) {
|
||||
excludeSimilarTypes = excludeSimilarTypes.excludeSimilarTypes;
|
||||
}
|
||||
let tmp8 = !excludeSimilarTypes;
|
||||
if (!excludeSimilarTypes) {
|
||||
const fileChunk1 = tmp(5397).getFileChunk(fileChunk);
|
||||
const FileTypes2 = tmp(5398).FileTypes;
|
||||
tmp8 = FileTypes2.checkByFileType(fileChunk1, "m4v") && tmp(5397).isftypStringIncluded(fileChunk1);
|
||||
const tmp10 = FileTypes2.checkByFileType(fileChunk1, "m4v") && tmp(5397).isftypStringIncluded(fileChunk1);
|
||||
}
|
||||
checkByFileTypeResult = tmp8;
|
||||
const self = this;
|
||||
let self2 = this;
|
||||
if (this) {
|
||||
self2 = self.__createBinding;
|
||||
}
|
||||
if (self2) {
|
||||
let fn = self;
|
||||
if (self) {
|
||||
fn = self.__exportStar;
|
||||
}
|
||||
return checkByFileTypeResult;
|
||||
};
|
||||
export const isOGG = function isOGG(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ogg");
|
||||
};
|
||||
export const isSWF = function isSWF(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "swf");
|
||||
};
|
||||
export const isWEBM = function isWEBM(fileChunk) {
|
||||
fileChunk = _mod5397.getFileChunk(fileChunk, 64);
|
||||
const FileTypes = _mod5398.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "webm") && "webm" === _mod5397.findMatroskaDocTypeElements(fileChunk);
|
||||
};
|
||||
if (!fn) {
|
||||
fn = (obj, exports) => {
|
||||
for (const key10007 in arg0) {
|
||||
let tmp6 = "default" === key10007;
|
||||
if (tmp6) {
|
||||
if (tmp6) {
|
||||
continue;
|
||||
} else {
|
||||
let tmp4 = self2(arg1, arg0, key10007);
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(key10007);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(arg1, key10007);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
let _Object2 = Object;
|
||||
exports.validateFileType = undefined;
|
||||
fn(_mod5406, exports);
|
||||
fn(is7Z, exports);
|
||||
fn(_mod5408, exports);
|
||||
fn(_mod5409, exports);
|
||||
fn(_mod5410, exports);
|
||||
exports.validateFileType = function validateFileType(fileChunk, arr, chunkSize) {
|
||||
let items = [];
|
||||
const items1 = [
|
||||
...new Set(arr.map((item) => {
|
||||
const parts = item.split(".");
|
||||
const formatted = parts.join("").toUpperCase();
|
||||
let combined = formatted;
|
||||
if ("7Z" === formatted) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
combined = "_" + formatted;
|
||||
}
|
||||
return combined;
|
||||
}))
|
||||
];
|
||||
for (const item10023 of items1) {
|
||||
let str = item10023;
|
||||
let _Object = Object;
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
let call = hasOwnProperty.call;
|
||||
let FileTypes = _mod5403.FileTypes;
|
||||
if (typeof call === "unknown") {
|
||||
let hasOwnPropertyResult = hasOwnProperty(item10023);
|
||||
} else {
|
||||
hasOwnPropertyResult = call(FileTypes, item10023);
|
||||
}
|
||||
if (hasOwnPropertyResult) {
|
||||
arr = items.push(str);
|
||||
continue;
|
||||
} else {
|
||||
let _TypeError = TypeError;
|
||||
let _HermesInternal = HermesInternal;
|
||||
let str2 = "` is not supported. Please make sure that `types` list conatins only supported files";
|
||||
let str3 = "Type `";
|
||||
let tmp8 = new.target;
|
||||
let tmp9 = new.target;
|
||||
let typeError = new TypeError("Type `" + str.toLowerCase() + "` is not supported. Please make sure that `types` list conatins only supported files");
|
||||
throw typeError;
|
||||
}
|
||||
}
|
||||
if (chunkSize) {
|
||||
const _Object2 = Object;
|
||||
const call2 = hasOwnProperty2.call;
|
||||
if (typeof call2 === "unknown") {
|
||||
let hasOwnProperty2Result = hasOwnProperty2("chunkSize");
|
||||
} else {
|
||||
hasOwnProperty2Result = call2(chunkSize, "chunkSize");
|
||||
}
|
||||
if (hasOwnProperty2Result) {
|
||||
chunkSize = undefined;
|
||||
if (null != chunkSize) {
|
||||
chunkSize = chunkSize.chunkSize;
|
||||
}
|
||||
let num = 0;
|
||||
if (null !== chunkSize) {
|
||||
num = 0;
|
||||
if (undefined !== chunkSize) {
|
||||
num = chunkSize;
|
||||
}
|
||||
}
|
||||
if (num <= 0) {
|
||||
const _RangeError = RangeError;
|
||||
const rangeError = new RangeError("chunkSize must be bigger than zero");
|
||||
throw rangeError;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!chunkSize) {
|
||||
const arr3 = (function addSimilarTypes(items) {
|
||||
if (items.some((item) => "MP4" === item)) {
|
||||
items = ["M4V"];
|
||||
} else {
|
||||
items = items.some((item) => "AAC" === item) ? ["M4A"] : [];
|
||||
}
|
||||
return items;
|
||||
})(items);
|
||||
let combined = items;
|
||||
if (arr3.length > 0) {
|
||||
combined = items.concat(arr3);
|
||||
}
|
||||
} else {
|
||||
let excludeSimilarTypes;
|
||||
if (null != chunkSize) {
|
||||
excludeSimilarTypes = chunkSize.excludeSimilarTypes;
|
||||
}
|
||||
combined = items;
|
||||
}
|
||||
let items2 = [];
|
||||
const items3 = [];
|
||||
for (const item10079 of combined) {
|
||||
let tmp19 = item10079;
|
||||
let tmp21 = require;
|
||||
let FileTypes2 = _mod5403.FileTypes;
|
||||
items2 = items2.concat(FileTypes2.getSignaturesByName(item10079));
|
||||
let FILE_TYPES_REQUIRED_ADDITIONAL_CHECK = _mod5403.FILE_TYPES_REQUIRED_ADDITIONAL_CHECK;
|
||||
if (FILE_TYPES_REQUIRED_ADDITIONAL_CHECK.includes(item10079.toLowerCase())) {
|
||||
let FileTypes3 = tmp21(5403).FileTypes;
|
||||
let arr2 = items3.push(FileTypes3.getInfoByName(tmp19));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
let num2;
|
||||
if (null != chunkSize) {
|
||||
num2 = chunkSize.chunkSize;
|
||||
}
|
||||
if (!num2) {
|
||||
num2 = 64;
|
||||
}
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk, num2);
|
||||
const FileTypes4 = _mod5403.FileTypes;
|
||||
const detectSignatureResult = FileTypes4.detectSignature(fileChunk, items2);
|
||||
require = detectSignatureResult;
|
||||
if (detectSignatureResult) {
|
||||
if (items3.length > 0) {
|
||||
const found = items3.filter((signatures) => {
|
||||
signatures = signatures.signatures;
|
||||
return signatures.includes(detectSignatureResult);
|
||||
});
|
||||
if (found.length > 0) {
|
||||
const FileTypes5 = _mod5403.FileTypes;
|
||||
const result = FileTypes5.detectTypeByAdditionalCheck(fileChunk, found);
|
||||
dependencyMap = result;
|
||||
return result && combined.some((item) => item.toLowerCase() === result);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
const set = new Set(arr.map((item) => {
|
||||
const parts = item.split(".");
|
||||
const formatted = parts.join("").toUpperCase();
|
||||
let combined = formatted;
|
||||
if ("7Z" === formatted) {
|
||||
const _HermesInternal = HermesInternal;
|
||||
combined = "_" + formatted;
|
||||
}
|
||||
return combined;
|
||||
}));
|
||||
};
|
||||
} else {
|
||||
let _Object = Object;
|
||||
}
|
||||
|
|
|
|||
56
alpha/source/__polyfill/05xxx/module_5406.js
Normal file
56
alpha/source/__polyfill/05xxx/module_5406.js
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
// Module ID: 5406
|
||||
// Function ID: 5407
|
||||
// Dependencies: [5402, 5403]
|
||||
// Exports: isAAC, isAMR, isFLAC, isM4A, isMP3, isWAV
|
||||
|
||||
// Module 5406
|
||||
import _mod5402 from "module_5402" /* 5402 */;
|
||||
import _mod5403 from "module_5403" /* 5403 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isAAC = function isAAC(fileChunk, excludeSimilarTypes) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
let checkByFileTypeResult1 = FileTypes.checkByFileType(fileChunk, "aac");
|
||||
if (!checkByFileTypeResult1) {
|
||||
excludeSimilarTypes = undefined;
|
||||
if (null != excludeSimilarTypes) {
|
||||
excludeSimilarTypes = excludeSimilarTypes.excludeSimilarTypes;
|
||||
}
|
||||
let checkByFileTypeResult = !excludeSimilarTypes;
|
||||
if (!excludeSimilarTypes) {
|
||||
const fileChunk1 = tmp(5402).getFileChunk(fileChunk);
|
||||
const FileTypes2 = tmp(5403).FileTypes;
|
||||
checkByFileTypeResult = FileTypes2.checkByFileType(fileChunk1, "m4a");
|
||||
}
|
||||
checkByFileTypeResult1 = checkByFileTypeResult;
|
||||
}
|
||||
return checkByFileTypeResult1;
|
||||
};
|
||||
export const isAMR = function isAMR(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "amr");
|
||||
};
|
||||
export const isFLAC = function isFLAC(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "flac");
|
||||
};
|
||||
export const isM4A = function isM4A(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "m4a");
|
||||
};
|
||||
export const isMP3 = function isMP3(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "mp3");
|
||||
};
|
||||
export const isWAV = function isWAV(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "wav");
|
||||
};
|
||||
87
alpha/source/__polyfill/05xxx/module_5408.js
Normal file
87
alpha/source/__polyfill/05xxx/module_5408.js
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
// Module ID: 5408
|
||||
// Function ID: 5409
|
||||
// Dependencies: [5402, 5403]
|
||||
// Exports: isAVIF, isBMP, isBPG, isCR2, isEXR, isGIF, isHEIC, isICO, isJPEG, isPBM, isPGM, isPNG, isPPM, isPSD, isWEBP
|
||||
|
||||
// Module 5408
|
||||
import _mod5402 from "module_5402" /* 5402 */;
|
||||
import _mod5403 from "module_5403" /* 5403 */;
|
||||
|
||||
require = arg1;
|
||||
const dependencyMap = arg6;
|
||||
|
||||
export const isAVIF = function isAVIF(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "avif") && _mod5402.isAvifStringIncluded(fileChunk);
|
||||
};
|
||||
export const isBMP = function isBMP(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "bmp");
|
||||
};
|
||||
export const isBPG = function isBPG(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "bpg");
|
||||
};
|
||||
export const isCR2 = function isCR2(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "cr2");
|
||||
};
|
||||
export const isEXR = function isEXR(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "exr");
|
||||
};
|
||||
export const isGIF = function isGIF(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "gif");
|
||||
};
|
||||
export const isHEIC = function isHEIC(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "avif") && _mod5402.isHeicSignatureIncluded(fileChunk);
|
||||
};
|
||||
export const isICO = function isICO(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ico");
|
||||
};
|
||||
export const isJPEG = function isJPEG(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "jpeg");
|
||||
};
|
||||
export const isPBM = function isPBM(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pbm");
|
||||
};
|
||||
export const isPGM = function isPGM(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "pgm");
|
||||
};
|
||||
export const isPNG = function isPNG(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "png");
|
||||
};
|
||||
export const isPPM = function isPPM(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "ppm");
|
||||
};
|
||||
export const isPSD = function isPSD(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "psd");
|
||||
};
|
||||
export const isWEBP = function isWEBP(fileChunk) {
|
||||
fileChunk = _mod5402.getFileChunk(fileChunk);
|
||||
const FileTypes = _mod5403.FileTypes;
|
||||
return FileTypes.checkByFileType(fileChunk, "webp");
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue