Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
280 lines
7.5 KiB
JavaScript
280 lines
7.5 KiB
JavaScript
// Module ID: 162
|
|
// Function ID: 163
|
|
// Dependencies: [41, 42, 93, 95, 96, 98, 90, 91, 70, 154, 163]
|
|
|
|
// Module 162
|
|
import _modDef154 from "module_154" /* 154 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import c2 from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _get from "_get" /* 96 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
import _classPrivateFieldBase from "_classPrivateFieldBase" /* 90 */;
|
|
import _classPrivateFieldKey from "_classPrivateFieldKey" /* 91 */;
|
|
import nullthrows from "nullthrows" /* 70 */;
|
|
|
|
let EventCounts = global;
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
const NativePerformanceCxx = nullthrows(_modDef154);
|
|
let closure_9 = _classPrivateFieldKey("processingStart");
|
|
let closure_10 = _classPrivateFieldKey("processingEnd");
|
|
let closure_11 = _classPrivateFieldKey("interactionId");
|
|
class PerformanceEventTiming {
|
|
constructor(arg0) {
|
|
self = this;
|
|
tmp = closure_1(this, EventCounts);
|
|
items = ["event"];
|
|
items[1] = global;
|
|
tmp2 = closure_3;
|
|
obj = closure_3(EventCounts);
|
|
tmp3 = c2;
|
|
if (metroRequire()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp7 = closure_9;
|
|
definePropertyResult = Object.defineProperty(tmp3Result, closure_9, { writable: true, value: "a" });
|
|
tmp9 = c10;
|
|
definePropertyResult1 = Object.defineProperty(tmp3Result, c10, { writable: true, value: "a" });
|
|
tmp11 = closure_11;
|
|
definePropertyResult2 = Object.defineProperty(tmp3Result, closure_11, { writable: true, value: "a" });
|
|
tmp13 = hasOwnProperty;
|
|
num = global.processingStart;
|
|
tmp14 = hasOwnProperty(tmp3Result, closure_9);
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
tmp14[tmp7] = num;
|
|
num2 = global.processingEnd;
|
|
tmp13Result = tmp13(tmp3Result, tmp9);
|
|
if (num2 == null) {
|
|
num2 = 0;
|
|
}
|
|
tmp13Result[tmp9] = num2;
|
|
num3 = global.interactionId;
|
|
tmp13Result1 = tmp13(tmp3Result, tmp11);
|
|
if (num3 == null) {
|
|
num3 = 0;
|
|
}
|
|
tmp13Result1[tmp11] = num3;
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
EventCounts = PerformanceEventTiming;
|
|
_inherits(PerformanceEventTiming, fn(163).PerformanceEntry);
|
|
let items = [
|
|
{
|
|
key: "processingStart",
|
|
get() {
|
|
return _classPrivateFieldBase(this, closure_9)[closure_9];
|
|
}
|
|
},
|
|
{
|
|
key: "processingEnd",
|
|
get() {
|
|
return _classPrivateFieldBase(this, closure_10)[closure_10];
|
|
}
|
|
},
|
|
{
|
|
key: "interactionId",
|
|
get() {
|
|
return _classPrivateFieldBase(this, closure_11)[closure_11];
|
|
}
|
|
},
|
|
{
|
|
key: "toJSON",
|
|
value: function toJSON() {
|
|
const self = this;
|
|
const tmp = _get(_getPrototypeOf(EventCounts.prototype), "toJSON", this);
|
|
closure_1 = tmp;
|
|
let fn = tmp;
|
|
if (typeof tmp === "function") {
|
|
fn = (arg0) => closure_1.apply(self, arg0);
|
|
}
|
|
const obj = {};
|
|
const merged = Object.assign(fn([]));
|
|
obj.processingStart = hasOwnProperty(self, closure_9)[closure_9];
|
|
obj.processingEnd = hasOwnProperty(self, c10)[c10];
|
|
obj.interactionId = hasOwnProperty(self, closure_11)[closure_11];
|
|
return obj;
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult = _createClass(PerformanceEventTiming, items);
|
|
class PerformanceEventTiming {
|
|
constructor() {
|
|
typeError = new TypeError("Failed to construct 'PerformanceEventTiming': Illegal constructor");
|
|
throw typeError;
|
|
}
|
|
}
|
|
PerformanceEventTiming.prototype = importDefaultResultResult.prototype;
|
|
class EventCounts {
|
|
constructor() {
|
|
tmp = closure_1(this, EventCounts);
|
|
return;
|
|
}
|
|
}
|
|
const items1 = [
|
|
{
|
|
key: "size",
|
|
get() {
|
|
let tmp = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
tmp = map;
|
|
}
|
|
return tmp.size;
|
|
}
|
|
},
|
|
{
|
|
key: "entries",
|
|
value: function entries() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.entries();
|
|
}
|
|
},
|
|
{
|
|
key: "forEach",
|
|
value: function forEach(arg0) {
|
|
let arr = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
arr = map;
|
|
}
|
|
return arr.forEach(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "get",
|
|
value: function get(arg0) {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.get(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "has",
|
|
value: function has(arg0) {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.has(arg0);
|
|
}
|
|
},
|
|
{
|
|
key: "keys",
|
|
value: function keys() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.keys();
|
|
}
|
|
},
|
|
{
|
|
key: "values",
|
|
value: function values() {
|
|
let obj = map;
|
|
if (!map) {
|
|
let eventCounts = NativePerformanceCxx.getEventCounts();
|
|
if (eventCounts == null) {
|
|
eventCounts = [];
|
|
}
|
|
map = new Map(eventCounts);
|
|
EventCounts.queueMicrotask(() => {
|
|
c7 = null;
|
|
});
|
|
obj = map;
|
|
}
|
|
return obj.values();
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult1 = _createClass(EventCounts, items1);
|
|
class EventCounts {
|
|
constructor() {
|
|
typeError = new TypeError("Failed to construct 'EventCounts': Illegal constructor");
|
|
throw typeError;
|
|
}
|
|
}
|
|
EventCounts.prototype = importDefaultResultResult1.prototype;
|
|
|
|
export const PerformanceEventTiming = importDefaultResultResult;
|
|
export const PerformanceEventTiming_public = PerformanceEventTiming;
|
|
export const EventCounts = importDefaultResultResult1;
|
|
export const EventCounts_public = EventCounts;
|