decord/source/6348_getGlobalSingleton.js
2026-07-28 08:39:19 +00:00

26 lines
639 B
JavaScript

// Module ID: 6348
// Function ID: 56842
// Name: getGlobalSingleton
// Dependencies: [6349]
// Module 6348 (getGlobalSingleton)
const require = arg1;
const dependencyMap = arg6;
arg5.GLOBAL_OBJ = globalThis;
arg5.getGlobalSingleton = function getGlobalSingleton(arg0, arg1, arg2) {
let tmp = arg2;
if (!arg2) {
tmp = globalThis;
}
const tmp2 = tmp.__SENTRY__ || {};
tmp.__SENTRY__ = tmp2;
const tmp3 = tmp2[require(undefined, 6349).SDK_VERSION] || {};
tmp2[require(6349).SDK_VERSION] = tmp3;
let tmp4 = tmp3[arg0];
if (!tmp4) {
const tmp6 = arg1();
tmp3[arg0] = tmp6;
tmp4 = tmp6;
}
return tmp4;
};