decord/source/module_4779.js
2026-07-27 11:26:19 +00:00

31 lines
816 B
JavaScript

// Module ID: 4779
// Function ID: 41540
// Dependencies: [4780]
// Module 4779
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
decode(arg0, buffer) {
const value = module(4780).get();
let tmp2 = value;
if (undefined !== value) {
if (undefined !== arg0) {
const prototype = tmp2.prototype;
tmp2 = new tmp2(arg0);
const _DataView = DataView;
if (buffer instanceof DataView) {
buffer = buffer.buffer;
} else {
const _Uint8Array = Uint8Array;
buffer = Uint8Array.from(buffer);
}
return tmp2.decode(buffer);
}
}
const mapped = buffer.map((arg0) => String.fromCharCode(arg0));
const joined = mapped.join("");
decodeURIComponent(escape(joined));
},
TAG_HEADER_SIZE: 5
};