decord/source/1020_initMetric.js

48 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1020
2026-07-24 07:16:23 +00:00
// Function ID: 11067
2026-07-20 16:05:17 +00:00
// Name: initMetric
2026-07-23 10:11:24 +00:00
// Dependencies: [1019, 1015, 1018, 1021]
2026-07-20 16:05:17 +00:00
// Module 1020 (initMetric)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.initMetric = function initMetric(CLS, arg1) {
let num = -1;
if (arguments.length > 1) {
num = -1;
if (undefined !== arguments[1]) {
num = arguments[1];
}
}
2026-07-23 10:11:24 +00:00
let obj = require(1019) /* getNavigationEntry */;
2026-07-20 16:05:17 +00:00
const navigationEntry = obj.getNavigationEntry();
let str = "navigate";
let str2 = "navigate";
if (navigationEntry) {
2026-07-23 10:11:24 +00:00
const _document = require(1015) /* WINDOW */.WINDOW.document;
2026-07-20 16:05:17 +00:00
if (null == _document) {
let str3 = "prerender";
if (obj2.getActivationStart() <= 0) {
2026-07-23 10:11:24 +00:00
const _document2 = require(1015) /* WINDOW */.WINDOW.document;
2026-07-20 16:05:17 +00:00
if (null == _document2) {
if (navigationEntry.type) {
str = navigationEntry.type.replace(/_/g, "-");
const str5 = navigationEntry.type;
}
let str4 = str;
} else {
str4 = "restore";
}
str3 = str4;
}
2026-07-23 10:11:24 +00:00
obj2 = require(1018) /* getActivationStart */;
2026-07-20 16:05:17 +00:00
} else {
str3 = "prerender";
}
str2 = str3;
}
2026-07-23 10:11:24 +00:00
obj = { name: CLS, value: num, rating: "good", delta: 0, entries: [], id: require(1021) /* generateUniqueID */.generateUniqueID(), navigationType: str2 };
2026-07-20 16:05:17 +00:00
return obj;
};