decord/source/1167__isNativeReflectConstruct.js

116 lines
3.8 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1167
2026-07-28 08:39:19 +00:00
// Function ID: 13286
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 102, 18, 1128, 794, 1111, 1168, 1129]
2026-07-20 16:05:17 +00:00
// Module 1167 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _captureAppStart from "_captureAppStart";
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _get from "_get";
import _inherits from "_inherits";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
appStartReported: false,
onRunApplicationHook() {
obj.appStartReported = false;
}
};
2026-07-23 10:11:24 +00:00
export const ReactNativeProfiler = ((Profiler) => {
2026-07-20 16:05:17 +00:00
class ReactNativeProfiler {
constructor(arg0) {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, ReactNativeProfiler);
obj = ReactNativeProfiler(outer1_1[6]);
obj2 = ReactNativeProfiler(outer1_1[7]);
2026-07-20 16:05:17 +00:00
result = obj._setRootComponentCreationTimestampMs(1000 * obj2.timestampInSeconds());
items = [];
items[0] = Profiler;
2026-07-23 10:11:24 +00:00
obj3 = outer1_5(ReactNativeProfiler);
tmp3 = outer1_4;
if (outer1_9()) {
2026-07-20 16:05:17 +00:00
tmp5 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp6 = outer1_5;
constructResult = Reflect.construct(obj3, items, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj3.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
tmp3Result.name = "ReactNativeProfiler";
return tmp3Result;
}
}
callback2(ReactNativeProfiler, Profiler);
let obj = {
key: "componentDidMount",
value: function componentDidMount() {
const self = this;
2026-07-23 10:11:24 +00:00
!(function _superPropGet(ReactNativeProfiler, componentDidMount, arg2, arg3) {
let closure_0 = arg2;
2026-07-20 16:05:17 +00:00
let prototype = ReactNativeProfiler;
if (1) {
prototype = ReactNativeProfiler.prototype;
}
2026-07-23 10:11:24 +00:00
const tmpResult = outer2_6(outer2_5(prototype), "componentDidMount", arg2);
let closure_1 = tmpResult;
2026-07-20 16:05:17 +00:00
let fn = tmpResult;
if (2) {
fn = tmpResult;
if ("function" === typeof tmpResult) {
2026-07-23 10:11:24 +00:00
fn = (arg0) => tmpResult.apply(closure_0, arg0);
2026-07-20 16:05:17 +00:00
}
}
return fn;
2026-07-23 10:11:24 +00:00
})(ReactNativeProfiler, "componentDidMount", this, 3)([]);
if (!outer1_8.appStartReported) {
2026-07-20 16:05:17 +00:00
self._reportAppStart();
2026-07-23 10:11:24 +00:00
outer1_8.appStartReported = true;
2026-07-20 16:05:17 +00:00
}
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, ];
2026-07-20 16:05:17 +00:00
obj = {
key: "_reportAppStart",
value: function _reportAppStart() {
2026-07-23 10:11:24 +00:00
let obj = ReactNativeProfiler(outer1_1[8]);
2026-07-20 16:05:17 +00:00
const client = obj.getClient();
if (client) {
const addIntegration = client.addIntegration;
if (!tmp3) {
const self = this;
2026-07-23 10:11:24 +00:00
addIntegration.call(client, ReactNativeProfiler(outer1_1[9]).createIntegration(this.name));
const obj2 = ReactNativeProfiler(outer1_1[9]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let flag = ReactNativeProfiler(outer1_1[10]).getAppRegistryIntegration(client);
2026-07-20 16:05:17 +00:00
if (!flag) {
2026-07-23 10:11:24 +00:00
const debug = ReactNativeProfiler(outer1_1[7]).debug;
2026-07-20 16:05:17 +00:00
debug.warn("AppRegistryIntegration.onRunApplication not found or invalid.");
obj = {};
flag = false;
obj.isManual = false;
2026-07-23 10:11:24 +00:00
ReactNativeProfiler(outer1_1[6])._captureAppStart(obj);
const obj4 = ReactNativeProfiler(outer1_1[6]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
flag.onRunApplication(outer1_8.onRunApplicationHook);
const obj3 = ReactNativeProfiler(outer1_1[10]);
tmp3 = null === addIntegration || undefined === addIntegration;
2026-07-20 16:05:17 +00:00
}
}
};
items[1] = obj;
return callback(ReactNativeProfiler, items);
2026-07-23 10:11:24 +00:00
})(require("init").Profiler);