decord/source/modules/rtc/TransientKeyStore.tsx

92 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 8851
// Function ID: 69849
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 566, 686, 2]
2026-07-28 08:39:19 +00:00
// Module 8851 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher";
import set from "set";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let dispatcher = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return dispatcher;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
const map = new Map();
2026-07-23 10:11:24 +00:00
let tmp3 = ((Store) => {
2026-07-20 16:05:17 +00:00
class TransientKeyStore {
constructor() {
self = this;
tmp = TransientKeyStore(this, TransientKeyStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(TransientKeyStore);
tmp2 = outer1_2;
if (outer1_6()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(TransientKeyStore, Store);
let obj = {
key: "getUsers",
value() {
2026-07-23 10:11:24 +00:00
return outer1_5;
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, ];
obj = {
key: "isKeyVerified",
value(arg0, arg1) {
2026-07-23 10:11:24 +00:00
const value = outer1_5.get(arg0);
2026-07-20 16:05:17 +00:00
if (null != arg1) {
if (null != value) {
if (value.length === arg1.length) {
let num = 0;
if (0 < arg1.length) {
while (arg1[num] === value[num]) {
num = num + 1;
}
return false;
}
return true;
}
}
}
return false;
}
};
items[1] = obj;
return callback(TransientKeyStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp3.displayName = "TransientKeyStore";
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen() {
map.clear();
},
SECURE_FRAMES_TRANSIENT_KEY_CREATE: function handleSecureFramesTransientKeyCreate(key) {
const uint8Array = new Uint8Array(key.key);
const result = map.set(key.userId, uint8Array);
},
SECURE_FRAMES_TRANSIENT_KEY_DELETE: function handleSecureFramesTransientKeyDelete(userId) {
return map.delete(userId.userId);
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/rtc/TransientKeyStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;