decord/source/7356__asyncOptionalChain2.js
2026-07-21 22:01:30 +00:00

60 lines
1.5 KiB
JavaScript

// Module ID: 7356
// Function ID: 59284
// Name: _asyncOptionalChain2
// Dependencies: []
// Exports: _asyncOptionalChain
// Module 7356 (_asyncOptionalChain2)
async function _asyncOptionalChain2(arg0, arg1) {
let tmp10;
let tmp2;
const first = arg0[0];
tmp10 = first;
tmp2 = first;
let num = 1;
let tmp3 = first;
if (1 < arg0.length) {
while (true) {
let tmp4 = arg0[num];
let tmp5 = arg0[num + 1];
num = num + 2;
let tmp6 = "optionalAccess" === tmp4;
if (tmp6) {
if (null == tmp2) {
break;
}
}
if ("access" !== tmp4) {
if (!tmp6) {
let tmp7 = "call" !== tmp4 && "optionalCall" !== tmp4;
let tmp8 = tmp2;
if (!tmp7) {
let tmp9 = yield tmp5(() => {
const length = arguments.length;
const array = new Array(length);
for (let num = 0; num < length; num = num + 1) {
array[num] = arguments[num];
}
const call = tmp10.call;
const items = [tmp2];
return call.apply(tmp10, items.concat(array));
});
tmp10 = tmp9;
tmp2 = undefined;
tmp8 = tmp9;
}
}
tmp2 = tmp8;
tmp3 = tmp8;
}
tmp10 = yield tmp5(tmp2);
tmp8 = tmp10;
}
}
return tmp3;
}
let closure_0 = require(dependencyMap[0]);
export const _asyncOptionalChain = function _asyncOptionalChain(arg0) {
return _asyncOptionalChain2(...arguments);
};