decord/source/lib/LimitedMap.tsx

79 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 7887
// Function ID: 62559
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, 162, 2]
2026-07-24 07:16:23 +00:00
// Module 7887 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _wrapNativeSuper from "_wrapNativeSuper";
import set from "set";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _get from "_get";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let _wrapNativeSuper = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return _wrapNativeSuper;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
const tmp2 = ((arg0) => {
2026-07-20 16:05:17 +00:00
class LimitedMap {
constructor(arg0) {
self = this;
tmp = LimitedMap(this, LimitedMap);
2026-07-23 10:11:24 +00:00
obj = outer1_3(LimitedMap);
tmp2 = outer1_2;
if (outer1_6()) {
2026-07-20 16:05:17 +00:00
tmp4 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp5 = outer1_3;
constructResult = Reflect.construct(obj, [], outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
constructResult = obj.apply(self, undefined);
}
tmp2Result = tmp2(self, constructResult);
tmp2Result.maxSize = arg0;
return tmp2Result;
}
}
callback2(LimitedMap, arg0);
2026-07-23 10:11:24 +00:00
let items = [
2026-07-20 16:05:17 +00:00
{
key: "set",
value(arg0, arg1) {
const self = this;
if (this.size >= this.maxSize) {
self.delete(self.keys().next().value);
const iter = self.keys();
}
const items = [arg0, arg1];
2026-07-23 10:11:24 +00:00
return (function _superPropGet(LimitedMap, set, self, arg3) {
let _wrapNativeSuper = self;
2026-07-20 16:05:17 +00:00
let prototype = LimitedMap;
if (1) {
prototype = LimitedMap.prototype;
}
2026-07-23 10:11:24 +00:00
const tmpResult = outer2_4(outer2_3(prototype), "set", self);
let set = 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(_wrapNativeSuper, arg0);
2026-07-20 16:05:17 +00:00
}
}
return fn;
2026-07-23 10:11:24 +00:00
})(LimitedMap, "set", self, 3)(items);
2026-07-20 16:05:17 +00:00
}
}
];
return callback(LimitedMap, items);
2026-07-23 10:11:24 +00:00
})(require("_wrapNativeSuper")(Map));
let result = require("_possibleConstructorReturn").fileFinishedImporting("lib/LimitedMap.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;