corebundledeob
unknown
javascript
a year ago
571 kB
224
No Index
var a0_0x1415ea = function () {
var _0x59104a = true;
return function (_0x52e297, _0x305f78) {
var _0x594338 = _0x59104a ? function () {
if (_0x305f78) {
var _0xe8260d = _0x305f78.apply(_0x52e297, arguments);
_0x305f78 = null;
return _0xe8260d;
}
} : function () {};
_0x59104a = false;
return _0x594338;
};
}();
// var a0_0x209533 = a0_0x1415ea(this, function () {
// return a0_0x209533.toString().search("(((.+)+)+)+$").toString().constructor(a0_0x209533).search("(((.+)+)+)+$");
// });
// a0_0x209533();
(() => {
var _0x1d1056 = {
0x1c8: (_0x1b9dde, _0x2d98d7) => {
'use strict';
var _0x181d40 = {
value: true
};
Object.defineProperty(_0x2d98d7, '__esModule', _0x181d40);
var _0x349e4d = function () {
function _0x2975f1(_0x1c2758, _0x45cca8) {
if (undefined === _0x1c2758) {
_0x1c2758 = 0x0;
}
var _0x371b6b = null == _0x45cca8 ? undefined : _0x45cca8.grow;
this.grow = _0x371b6b ? Number.isFinite(_0x371b6b) ? (_0x371b6b >> 0x3) + Number(_0x371b6b % 0x8 != 0x0) : _0x371b6b : 0x0;
this.buffer = "number" == typeof _0x1c2758 ? new Uint8Array((_0x1c2758 >> 0x3) + Number(_0x1c2758 % 0x8 != 0x0)) : _0x1c2758;
}
var _0x3ee881 = {
"get": function () {
return this.buffer.length << 0x3;
},
"enumerable": false,
configurable: true
};
Object.defineProperty(_0x2975f1.prototype, "length", _0x3ee881);
_0x2975f1.prototype.get = function (_0x16f67e) {
var _0x56cd1c = _0x16f67e >> 0x3;
return _0x56cd1c < this.buffer.length && !!(this.buffer[_0x56cd1c] & 0x80 >> _0x16f67e % 0x8);
};
_0x2975f1.prototype.set = function (_0x7fdd05, _0x2e3b72) {
if (undefined === _0x2e3b72) {
_0x2e3b72 = true;
}
var _0x1c3504 = _0x7fdd05 >> 0x3;
if (_0x2e3b72) {
if (_0x1c3504 >= this.buffer.length) {
var _0x27bc39 = Math.max(_0x1c3504 + 0x1, Math.min(0x2 * this.buffer.length, this.grow));
if (_0x27bc39 <= this.grow) {
var _0x14e739 = new Uint8Array(_0x27bc39);
_0x14e739.set(this.buffer);
this.buffer = _0x14e739;
}
}
this.buffer[_0x1c3504] |= 0x80 >> _0x7fdd05 % 0x8;
} else if (_0x1c3504 < this.buffer.length) {
this.buffer[_0x1c3504] &= ~(0x80 >> _0x7fdd05 % 0x8);
}
};
_0x2975f1.prototype.setAll = function (_0x30aca2, _0x1aafc3) {
if (undefined === _0x1aafc3) {
_0x1aafc3 = 0x0;
}
var _0x56f276 = Math.min((_0x1aafc3 + _0x30aca2.length >> 0x3) + Number((_0x1aafc3 + _0x30aca2.length) % 0x8 != 0x0), this.grow);
if (this.buffer.length < _0x56f276) {
var _0x5d17e0 = new Uint8Array(_0x56f276);
_0x5d17e0.set(this.buffer);
this.buffer = _0x5d17e0;
}
var _0x100f80 = _0x1aafc3 >> 0x3;
var _0x5ad933 = 0x80 >> _0x1aafc3 % 0x8;
for (var _0xf32fd = 0x0; _0xf32fd < _0x30aca2.length; _0xf32fd++) {
if (_0x30aca2[_0xf32fd]) {
this.buffer[_0x100f80] |= _0x5ad933;
} else {
this.buffer[_0x100f80] &= ~_0x5ad933;
}
if (0x1 === _0x5ad933) {
if ((_0x100f80 += 0x1) >= this.buffer.length) {
break;
}
_0x5ad933 = 0x80;
} else {
_0x5ad933 >>= 0x1;
}
}
};
_0x2975f1.prototype.forEach = function (_0x130c17, _0x80bf81, _0x4b215c) {
if (undefined === _0x80bf81) {
_0x80bf81 = 0x0;
}
if (undefined === _0x4b215c) {
_0x4b215c = 0x8 * this.buffer.length;
}
var _0x2a01c0 = _0x80bf81 >> 0x3;
var _0x121e70 = 0x80 >> _0x80bf81 % 0x8;
for (var _0x2facf6 = _0x80bf81; _0x2facf6 < _0x4b215c; _0x2facf6++) {
_0x130c17(!!(this.buffer[_0x2a01c0] & _0x121e70), _0x2facf6);
if (0x1 === _0x121e70) {
_0x2a01c0 += 0x1;
_0x121e70 = 0x80;
} else {
_0x121e70 >>= 0x1;
}
}
};
_0x2975f1.prototype.isEmpty = function () {
for (var _0x7d40e7 = 0x0; _0x7d40e7 < this.buffer.length; _0x7d40e7++) {
if (0x0 !== this.buffer[_0x7d40e7]) {
return false;
}
}
return true;
};
return _0x2975f1;
}();
_0x2d98d7['default'] = _0x349e4d;
},
0x97: _0x41f795 => {
var _0x17a344 = {
'utf8': {
'stringToBytes': function (_0x48d8d0) {
return _0x17a344.bin.stringToBytes(unescape(encodeURIComponent(_0x48d8d0)));
},
'bytesToString': function (_0x517c71) {
return decodeURIComponent(escape(_0x17a344.bin.bytesToString(_0x517c71)));
}
},
'bin': {
'stringToBytes': function (_0x254a81) {
var _0x780bd8 = [];
for (var _0x46c6c2 = 0x0; _0x46c6c2 < _0x254a81.length; _0x46c6c2++) {
_0x780bd8.push(0xff & _0x254a81.charCodeAt(_0x46c6c2));
}
return _0x780bd8;
},
'bytesToString': function (_0x306631) {
var _0x411ada = [];
for (var _0x4b7c31 = 0x0; _0x4b7c31 < _0x306631.length; _0x4b7c31++) {
_0x411ada.push(String.fromCharCode(_0x306631[_0x4b7c31]));
}
return _0x411ada.join('');
}
}
};
_0x41f795.exports = _0x17a344;
},
0x3ab: _0x3afe46 => {
var _0x154299;
_0x154299 = {
'rotl': function (_0x18947d, _0x193bc5) {
return _0x18947d << _0x193bc5 | _0x18947d >>> 0x20 - _0x193bc5;
},
'rotr': function (_0xe68d14, _0x5069ba) {
return _0xe68d14 << 0x20 - _0x5069ba | _0xe68d14 >>> _0x5069ba;
},
'endian': function (_0x5ae6b6) {
if (_0x5ae6b6.constructor == Number) {
return 0xff00ff & (_0x5ae6b6 << 0x8 | _0x5ae6b6 >>> 24) | 0xff00ff00 & (_0x5ae6b6 << 0x18 | _0x5ae6b6 >>> 8);
}
for (var _0x54245b = 0x0; _0x54245b < _0x5ae6b6.length; _0x54245b++) {
_0x5ae6b6[_0x54245b] = _0x154299.endian(_0x5ae6b6[_0x54245b]);
}
return _0x5ae6b6;
},
'randomBytes': function (_0x393bbf) {
for (var _0x35ef54 = []; _0x393bbf > 0x0; _0x393bbf--) {
_0x35ef54.push(Math.floor(0x100 * Math.random()));
}
return _0x35ef54;
},
'bytesToWords': function (_0x1ca652) {
var _0x4cab2c = [];
var _0x3967b1 = 0x0;
for (var _0x4dcf53 = 0x0; _0x3967b1 < _0x1ca652.length; _0x3967b1++, _0x4dcf53 += 0x8) {
_0x4cab2c[_0x4dcf53 >>> 0x5] |= _0x1ca652[_0x3967b1] << 0x18 - _0x4dcf53 % 0x20;
}
return _0x4cab2c;
},
'wordsToBytes': function (_0x120e38) {
var _0x9fa7ac = [];
for (var _0x482999 = 0x0; _0x482999 < 0x20 * _0x120e38.length; _0x482999 += 0x8) {
_0x9fa7ac.push(_0x120e38[_0x482999 >>> 0x5] >>> 0x18 - _0x482999 % 0x20 & 0xff);
}
return _0x9fa7ac;
},
'bytesToHex': function (_0x35067a) {
var _0x239815 = [];
for (var _0x9bbea9 = 0x0; _0x9bbea9 < _0x35067a.length; _0x9bbea9++) {
_0x239815.push((_0x35067a[_0x9bbea9] >>> 0x4).toString(0x10));
_0x239815.push((0xf & _0x35067a[_0x9bbea9]).toString(0x10));
}
return _0x239815.join('');
},
'hexToBytes': function (_0x52bfa1) {
var _0x4683af = [];
for (var _0x1342a6 = 0x0; _0x1342a6 < _0x52bfa1.length; _0x1342a6 += 0x2) {
_0x4683af.push(parseInt(_0x52bfa1.substr(_0x1342a6, 0x2), 0x10));
}
return _0x4683af;
},
'bytesToBase64': function (_0x10e907) {
var _0x1be452 = [];
for (var _0x9d71b9 = 0x0; _0x9d71b9 < _0x10e907.length; _0x9d71b9 += 0x3) {
var _0x1cd5cb = _0x10e907[_0x9d71b9] << 0x10 | _0x10e907[_0x9d71b9 + 0x1] << 0x8 | _0x10e907[_0x9d71b9 + 0x2];
for (var _0x4d00e0 = 0x0; _0x4d00e0 < 0x4; _0x4d00e0++) {
if (0x8 * _0x9d71b9 + 0x6 * _0x4d00e0 <= 0x8 * _0x10e907.length) {
_0x1be452.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(_0x1cd5cb >>> 0x6 * (0x3 - _0x4d00e0) & 0x3f));
} else {
_0x1be452.push('=');
}
}
}
return _0x1be452.join('');
},
'base64ToBytes': function (_0x3e1418) {
_0x3e1418 = _0x3e1418.replace(/[^A-Z0-9+\/]/gi, '');
var _0x326e7a = [];
var _0x1ab5e9 = 0x0;
for (var _0x2e0225 = 0x0; _0x1ab5e9 < _0x3e1418.length; _0x2e0225 = ++_0x1ab5e9 % 0x4) {
if (0x0 != _0x2e0225) {
_0x326e7a.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(_0x3e1418.charAt(_0x1ab5e9 - 0x1)) & Math.pow(0x2, -0x2 * _0x2e0225 + 0x8) - 0x1) << 0x2 * _0x2e0225 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(_0x3e1418.charAt(_0x1ab5e9)) >>> 0x6 - 0x2 * _0x2e0225);
}
}
return _0x326e7a;
}
};
_0x3afe46.exports = _0x154299;
},
0x341: (_0x52515c, _0x2699e0, _0x44eea1) => {
var _0x4f2828 = _0x44eea1(0x25e);
_0x2699e0.formatArgs = function (_0x1bc5ce) {
_0x1bc5ce[0x0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? " %c" : " ") + _0x1bc5ce[0x0] + (this.useColors ? "%c " : " ") + '+' + _0x52515c.exports.humanize(this.diff);
if (!this.useColors) {
return;
}
const _0x3f563c = "color: " + this.color;
_0x1bc5ce.splice(0x1, 0x0, _0x3f563c, "color: inherit");
let _0x3f123e = 0x0;
let _0x3a7754 = 0x0;
_0x1bc5ce[0x0].replace(/%[a-zA-Z%]/g, _0x25b4d7 => {
if ('%%' !== _0x25b4d7) {
_0x3f123e++;
if ('%c' === _0x25b4d7) {
_0x3a7754 = _0x3f123e;
}
}
});
_0x1bc5ce.splice(_0x3a7754, 0x0, _0x3f563c);
};
_0x2699e0.save = function (_0x3a5933) {
try {
if (_0x3a5933) {
_0x2699e0.storage.setItem('debug', _0x3a5933);
} else {
_0x2699e0.storage.removeItem("debug");
}
} catch (_0x50a69e) {}
};
_0x2699e0.load = function () {
let _0x29a96b;
try {
_0x29a96b = _0x2699e0.storage.getItem('debug');
} catch (_0x55e19c) {}
if (!_0x29a96b && undefined !== _0x4f2828 && "env" in _0x4f2828) {
_0x29a96b = _0x4f2828.env.DEBUG;
}
return _0x29a96b;
};
_0x2699e0.useColors = function () {
if ("undefined" != typeof window && window.process && ("renderer" === window.process.type || window.process.__nwjs)) {
return true;
}
if ("undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
return false;
}
let _0x471596;
return "undefined" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || 'undefined' != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "undefined" != typeof navigator && navigator.userAgent && (_0x471596 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(_0x471596[0x1], 0xa) >= 0x1f || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
};
_0x2699e0.storage = function () {
try {
return localStorage;
} catch (_0x4f39ca) {}
}();
_0x2699e0.destroy = (() => {
let _0x3d256a = false;
return () => {
if (!_0x3d256a) {
_0x3d256a = true;
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
}
};
})();
_0x2699e0.colors = ['#0000CC', "#0000FF", "#0033CC", "#0033FF", '#0066CC', "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", '#3333CC', "#3333FF", "#3366CC", '#3366FF', "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", '#33CCFF', "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", '#9900FF', '#9933CC', "#9933FF", "#99CC00", '#99CC33', '#CC0000', '#CC0033', "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", '#CC3366', "#CC3399", "#CC33CC", "#CC33FF", '#CC6600', "#CC6633", "#CC9900", "#CC9933", '#CCCC00', "#CCCC33", "#FF0000", "#FF0033", '#FF0066', "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", '#FF3333', "#FF3366", '#FF3399', "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", '#FFCC00', "#FFCC33"];
_0x2699e0.log = console.debug || console.log || (() => {});
_0x52515c.exports = _0x44eea1(0x2e0)(_0x2699e0);
const {
formatters: _0x2a7ad3
} = _0x52515c.exports;
_0x2a7ad3.j = function (_0x532aad) {
try {
return JSON.stringify(_0x532aad);
} catch (_0x49a4d6) {
return "[UnexpectedJSONParseError]: " + _0x49a4d6.message;
}
};
},
0x2e0: (_0x4baf5d, _0x56ecf4, _0x3ff4d3) => {
_0x4baf5d.exports = function (_0x73abfe) {
function _0x4e3fe4(_0xb6ac37) {
let _0x108b2d;
let _0x454f4d;
let _0x589f02;
let _0x4d889f = null;
function _0x3392de(..._0x11d561) {
if (!_0x3392de.enabled) {
return;
}
const _0x15c806 = Number(new Date());
const _0x3310a8 = _0x15c806 - (_0x108b2d || _0x15c806);
_0x3392de.diff = _0x3310a8;
_0x3392de.prev = _0x108b2d;
_0x3392de.curr = _0x15c806;
_0x108b2d = _0x15c806;
_0x11d561[0x0] = _0x4e3fe4.coerce(_0x11d561[0x0]);
if ("string" != typeof _0x11d561[0x0]) {
_0x11d561.unshift('%O');
}
let _0x40b5e5 = 0x0;
_0x11d561[0x0] = _0x11d561[0x0].replace(/%([a-zA-Z%])/g, (_0x50bd94, _0x1698f6) => {
if ('%%' === _0x50bd94) {
return '%';
}
_0x40b5e5++;
const _0x336974 = _0x4e3fe4.formatters[_0x1698f6];
if ('function' == typeof _0x336974) {
const _0xde85e9 = _0x11d561[_0x40b5e5];
_0x50bd94 = _0x336974.call(_0x3392de, _0xde85e9);
_0x11d561.splice(_0x40b5e5, 0x1);
_0x40b5e5--;
}
return _0x50bd94;
});
_0x4e3fe4.formatArgs.call(_0x3392de, _0x11d561);
(_0x3392de.log || _0x4e3fe4.log).apply(_0x3392de, _0x11d561);
}
_0x3392de.namespace = _0xb6ac37;
_0x3392de.useColors = _0x4e3fe4.useColors();
_0x3392de.color = _0x4e3fe4.selectColor(_0xb6ac37);
_0x3392de.extend = _0x2b2668;
_0x3392de.destroy = _0x4e3fe4.destroy;
Object.defineProperty(_0x3392de, "enabled", {
'enumerable': true,
'configurable': false,
'get': () => null !== _0x4d889f ? _0x4d889f : (_0x454f4d !== _0x4e3fe4.namespaces && (_0x454f4d = _0x4e3fe4.namespaces, _0x589f02 = _0x4e3fe4.enabled(_0xb6ac37)), _0x589f02),
'set': _0x4adc80 => {
_0x4d889f = _0x4adc80;
}
});
if ('function' == typeof _0x4e3fe4.init) {
_0x4e3fe4.init(_0x3392de);
}
return _0x3392de;
}
function _0x2b2668(_0x5dae4a, _0x5bc0e6) {
const _0x2973e4 = _0x4e3fe4(this.namespace + (undefined === _0x5bc0e6 ? ':' : _0x5bc0e6) + _0x5dae4a);
_0x2973e4.log = this.log;
return _0x2973e4;
}
function _0x188a72(_0x1aded3) {
return _0x1aded3.toString().substring(0x2, _0x1aded3.toString().length - 0x2).replace(/\.\*\?$/, '*');
}
_0x4e3fe4.debug = _0x4e3fe4;
_0x4e3fe4['default'] = _0x4e3fe4;
_0x4e3fe4.coerce = function (_0x5cb5e9) {
return _0x5cb5e9 instanceof Error ? _0x5cb5e9.stack || _0x5cb5e9.message : _0x5cb5e9;
};
_0x4e3fe4.disable = function () {
const _0x1c3851 = [..._0x4e3fe4.names.map(_0x188a72), ..._0x4e3fe4.skips.map(_0x188a72).map(_0x586c9b => '-' + _0x586c9b)].join(',');
_0x4e3fe4.enable('');
return _0x1c3851;
};
_0x4e3fe4.enable = function (_0x33694b) {
let _0x355532;
_0x4e3fe4.save(_0x33694b);
_0x4e3fe4.namespaces = _0x33694b;
_0x4e3fe4.names = [];
_0x4e3fe4.skips = [];
const _0x5bcbbb = ('string' == typeof _0x33694b ? _0x33694b : '').split(/[\s,]+/);
const _0x554116 = _0x5bcbbb.length;
for (_0x355532 = 0x0; _0x355532 < _0x554116; _0x355532++) {
if (_0x5bcbbb[_0x355532]) {
if ('-' === (_0x33694b = _0x5bcbbb[_0x355532].replace(/\*/g, ".*?"))[0x0]) {
_0x4e3fe4.skips.push(new RegExp('^' + _0x33694b.slice(0x1) + '$'));
} else {
_0x4e3fe4.names.push(new RegExp('^' + _0x33694b + '$'));
}
}
}
};
_0x4e3fe4.enabled = function (_0x599574) {
if ('*' === _0x599574[_0x599574.length - 0x1]) {
return true;
}
let _0x5357d5;
let _0xb1a7be;
_0x5357d5 = 0x0;
for (_0xb1a7be = _0x4e3fe4.skips.length; _0x5357d5 < _0xb1a7be; _0x5357d5++) {
if (_0x4e3fe4.skips[_0x5357d5].test(_0x599574)) {
return false;
}
}
_0x5357d5 = 0x0;
for (_0xb1a7be = _0x4e3fe4.names.length; _0x5357d5 < _0xb1a7be; _0x5357d5++) {
if (_0x4e3fe4.names[_0x5357d5].test(_0x599574)) {
return true;
}
}
return false;
};
_0x4e3fe4.humanize = _0x3ff4d3(0x249);
_0x4e3fe4.destroy = function () {
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
};
Object.keys(_0x73abfe).forEach(_0x20bcad => {
_0x4e3fe4[_0x20bcad] = _0x73abfe[_0x20bcad];
});
_0x4e3fe4.names = [];
_0x4e3fe4.skips = [];
_0x4e3fe4.formatters = {};
_0x4e3fe4.selectColor = function (_0x40a526) {
let _0x21d8cf = 0x0;
for (let _0x238e81 = 0x0; _0x238e81 < _0x40a526.length; _0x238e81++) {
_0x21d8cf = (_0x21d8cf << 0x5) - _0x21d8cf + _0x40a526.charCodeAt(_0x238e81);
_0x21d8cf |= 0x0;
}
return _0x4e3fe4.colors[Math.abs(_0x21d8cf) % _0x4e3fe4.colors.length];
};
_0x4e3fe4.enable(_0x4e3fe4.load());
return _0x4e3fe4;
};
},
0x26b: function (_0x2fdc06) {
if ("undefined" != typeof self) {
self;
}
_0x2fdc06.exports = function (_0x577c56) {
var _0xa2c58b = {};
function _0x59c20c(_0xd6ca2c) {
if (_0xa2c58b[_0xd6ca2c]) {
return _0xa2c58b[_0xd6ca2c].exports;
}
var _0x21404f = _0xa2c58b[_0xd6ca2c] = {
'i': _0xd6ca2c,
'l': false,
'exports': {}
};
_0x577c56[_0xd6ca2c].call(_0x21404f.exports, _0x21404f, _0x21404f.exports, _0x59c20c);
_0x21404f.l = true;
return _0x21404f.exports;
}
_0x59c20c.m = _0x577c56;
_0x59c20c.c = _0xa2c58b;
_0x59c20c.d = function (_0x2b9cda, _0xf040a2, _0x22a4ff) {
var _0x13c649 = {
configurable: false,
"enumerable": true,
"get": _0x22a4ff
};
if (!_0x59c20c.o(_0x2b9cda, _0xf040a2)) {
Object.defineProperty(_0x2b9cda, _0xf040a2, _0x13c649);
}
};
_0x59c20c.n = function (_0x3cc9de) {
var _0x23d8b2 = _0x3cc9de && _0x3cc9de.__esModule ? function () {
return _0x3cc9de['default'];
} : function () {
return _0x3cc9de;
};
_0x59c20c.d(_0x23d8b2, 'a', _0x23d8b2);
return _0x23d8b2;
};
_0x59c20c.o = function (_0x581f09, _0x2960a3) {
return Object.prototype.hasOwnProperty.call(_0x581f09, _0x2960a3);
};
_0x59c20c.p = '';
return _0x59c20c(_0x59c20c.s = 0x4);
}([function (_0x595980, _0x1ecc85, _0x3954aa) {
'use strict';
_0x3954aa.d(_0x1ecc85, 'i', function () {
return _0x5ef765;
});
_0x3954aa.d(_0x1ecc85, 'd', function () {
return _0x5906b9;
});
_0x3954aa.d(_0x1ecc85, 'e', function () {
return _0x3aa9b3;
});
_0x3954aa.d(_0x1ecc85, 'c', function () {
return _0x21fc1c;
});
_0x3954aa.d(_0x1ecc85, 'h', function () {
return _0x2eb723;
});
_0x3954aa.d(_0x1ecc85, 'f', function () {
return _0x4c1410;
});
_0x3954aa.d(_0x1ecc85, 'b', function () {
return _0x112ec0;
});
_0x3954aa.d(_0x1ecc85, 'g', function () {
return _0x1cf437;
});
_0x3954aa.d(_0x1ecc85, 'a', function () {
return _0x29b956;
});
var _0x5634a0;
var _0x311585;
var _0x1f9633;
var _0xd95e55;
var _0x59174f;
var _0x1acafb = _0x3954aa(0x3);
var _0x1f25aa = Object(_0x1acafb.b)();
var _0x5ef765 = (null === (_0x5634a0 = null == _0x1f25aa ? undefined : _0x1f25aa.navigator) || undefined === _0x5634a0 ? undefined : _0x5634a0.userAgent) || 'unknown';
var _0x5906b9 = "InstallTrigger" in ((null == _0x1f25aa ? undefined : _0x1f25aa.window) || {}) || /firefox/i.test(_0x5ef765);
var _0x3aa9b3 = /trident/i.test(_0x5ef765) || /msie/i.test(_0x5ef765);
var _0x21fc1c = /edge/i.test(_0x5ef765) || /EdgiOS/i.test(_0x5ef765);
var _0x2eb723 = /webkit/i.test(_0x5ef765);
var _0x4c1410 = /IqiyiApp/.test(_0x5ef765);
var _0x112ec0 = undefined !== (null === (_0x311585 = null == _0x1f25aa ? undefined : _0x1f25aa.window) || undefined === _0x311585 ? undefined : _0x311585.chrome) || /chrome/i.test(_0x5ef765) || /CriOS/i.test(_0x5ef765);
var _0x1cf437 = "[object SafariRemoteNotification]" === ((null === (_0xd95e55 = null === (_0x1f9633 = null == _0x1f25aa ? undefined : _0x1f25aa.window) || undefined === _0x1f9633 ? undefined : _0x1f9633.safari) || undefined === _0xd95e55 ? undefined : _0xd95e55.pushNotification) || false).toString() || /safari/i.test(_0x5ef765) && !_0x112ec0;
var _0x29b956 = "function" == typeof (null === (_0x59174f = _0x1f25aa.document) || undefined === _0x59174f ? undefined : _0x59174f.createElement);
}, function (_0x2e4791, _0x2fdcc9, _0x45239f) {
'use strict';
_0x45239f.d(_0x2fdcc9, 'b', function () {
return _0x120f88;
});
_0x45239f.d(_0x2fdcc9, 'c', function () {
return _0x59e048;
});
_0x45239f.d(_0x2fdcc9, 'a', function () {
return _0x72c2e8;
});
var _0x1eccc6 = _0x45239f(0x0);
function _0x2cf82b(_0x277de1) {
if (_0x1eccc6.a && console) {
if (!_0x1eccc6.e && !_0x1eccc6.c) {
return console[_0x277de1];
}
if ("log" === _0x277de1 || "clear" === _0x277de1) {
return function () {
var _0x346a1e = [];
for (var _0x36c3fc = 0x0; _0x36c3fc < arguments.length; _0x36c3fc++) {
_0x346a1e[_0x36c3fc] = arguments[_0x36c3fc];
}
console[_0x277de1].apply(console, _0x346a1e);
};
}
}
return function () {
var _0x147b1a = [];
for (var _0x475be8 = 0x0; _0x475be8 < arguments.length; _0x475be8++) {
_0x147b1a[_0x475be8] = arguments[_0x475be8];
}
};
}
var _0x120f88 = _0x2cf82b("log");
var _0x59e048 = _0x2cf82b('table');
var _0x72c2e8 = _0x2cf82b("clear");
}, function (_0x284c7f, _0x4d8dd8, _0x2716ea) {
'use strict';
_0x4d8dd8.a = function (_0x2f1c0e) {
if (undefined === _0x2f1c0e) {
_0x2f1c0e = {};
}
var _0xed45a9 = _0x2f1c0e.includes;
var _0x31cec6 = undefined === _0xed45a9 ? [] : _0xed45a9;
var _0x32c43b = _0x2f1c0e.excludes;
var _0x548024 = undefined === _0x32c43b ? [] : _0x32c43b;
var _0x1182d8 = false;
var _0x47cf45 = false;
for (var _0x3a9092 = 0x0; _0x3a9092 < _0x31cec6.length; _0x3a9092++) {
if (true === _0x31cec6[_0x3a9092]) {
_0x1182d8 = true;
break;
}
}
for (var _0x15329d = 0x0; _0x15329d < _0x548024.length; _0x15329d++) {
if (true === _0x548024[_0x15329d]) {
_0x47cf45 = true;
break;
}
}
return _0x1182d8 && !_0x47cf45;
};
}, function (_0xdfc878, _0x31418a, _0x4dd21e) {
'use strict';
(function (_0x299a28) {
_0x31418a.b = _0x55957c;
_0x31418a.a = function () {
var _0x41e116;
var _0x150ed1 = [];
for (var _0x561a58 = 0x0; _0x561a58 < arguments.length; _0x561a58++) {
_0x150ed1[_0x561a58] = arguments[_0x561a58];
}
var _0x1a816b = 'undefined' != typeof self ? self : "undefined" != typeof window ? window : undefined !== _0x299a28 ? _0x299a28 : this;
return (null == _0x1a816b ? undefined : _0x1a816b.document) ? (_0x41e116 = _0x1a816b.document).createElement.apply(_0x41e116, _0x150ed1) : {};
};
_0x31418a.c = function () {
if (_0x21cf82) {
return _0x21cf82;
}
if (_0x1f98b1) {
var _0x2b4dbf = new Blob([_0x291dba.a.workerScript]);
try {
var _0x59c184 = URL.createObjectURL(_0x2b4dbf);
_0x21cf82 = new _0x291dba.a(new Worker(_0x59c184));
URL.revokeObjectURL(_0x59c184);
} catch (_0x5c0813) {
try {
_0x21cf82 = new _0x291dba.a(new Worker("data:text/javascript;base64,".concat(btoa(_0x291dba.a.workerScript))));
} catch (_0x539292) {
_0x1f98b1 = false;
}
}
return _0x21cf82;
}
};
_0x4dd21e.d(_0x31418a, 'd', function () {
return _0x4bc58c;
});
var _0x21cf82;
var _0x291dba = _0x4dd21e(0xa);
var _0x1bf931 = this && this.__awaiter || function (_0x4b126c, _0x504f05, _0x4d082f, _0x21e2a6) {
return new (_0x4d082f || (_0x4d082f = Promise))(function (_0x282ab2, _0x2fde7e) {
function _0x332463(_0xca92c3) {
try {
_0x34017c(_0x21e2a6.next(_0xca92c3));
} catch (_0x11a63b) {
_0x2fde7e(_0x11a63b);
}
}
function _0x26f528(_0xd6eb5b) {
try {
_0x34017c(_0x21e2a6["throw"](_0xd6eb5b));
} catch (_0x2919f3) {
_0x2fde7e(_0x2919f3);
}
}
function _0x34017c(_0x42c1e0) {
if (_0x42c1e0.done) {
_0x282ab2(_0x42c1e0.value);
} else {
(function (_0x1dc7f3) {
return _0x1dc7f3 instanceof _0x4d082f ? _0x1dc7f3 : new _0x4d082f(function (_0x35f2c6) {
_0x35f2c6(_0x1dc7f3);
});
})(_0x42c1e0.value).then(_0x332463, _0x26f528);
}
}
_0x34017c((_0x21e2a6 = _0x21e2a6.apply(_0x4b126c, _0x504f05 || [])).next());
});
};
var _0x1432f5 = this && this.__generator || function (_0x5546cd, _0x19938f) {
var _0x532b31;
var _0x196564;
var _0xf4b0ea;
var _0x281c59;
var _0xf61807 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0xf4b0ea[0x0]) {
throw _0xf4b0ea[0x1];
}
return _0xf4b0ea[0x1];
},
'trys': [],
'ops': []
};
_0x281c59 = {
'next': _0x52557c(0x0),
'throw': _0x52557c(0x1),
'return': _0x52557c(0x2)
};
if ("function" == typeof Symbol) {
_0x281c59[Symbol.iterator] = function () {
return this;
};
}
return _0x281c59;
function _0x52557c(_0x40fee7) {
return function (_0x503bc2) {
return function (_0x2bec0c) {
if (_0x532b31) {
throw new TypeError("Generator is already executing.");
}
for (; _0x281c59 && (_0x281c59 = 0x0, _0x2bec0c[0x0] && (_0xf61807 = 0x0)), _0xf61807;) {
try {
_0x532b31 = 0x1;
if (_0x196564 && (_0xf4b0ea = 0x2 & _0x2bec0c[0x0] ? _0x196564['return'] : _0x2bec0c[0x0] ? _0x196564["throw"] || ((_0xf4b0ea = _0x196564['return']) && _0xf4b0ea.call(_0x196564), 0x0) : _0x196564.next) && !(_0xf4b0ea = _0xf4b0ea.call(_0x196564, _0x2bec0c[0x1])).done) {
return _0xf4b0ea;
}
_0x196564 = 0x0;
if (_0xf4b0ea) {
_0x2bec0c = [0x2 & _0x2bec0c[0x0], _0xf4b0ea.value];
}
switch (_0x2bec0c[0x0]) {
case 0x0:
case 0x1:
_0xf4b0ea = _0x2bec0c;
break;
case 0x4:
var _0x14f700 = {
"value": _0x2bec0c[0x1],
done: false
};
_0xf61807.label++;
return _0x14f700;
case 0x5:
_0xf61807.label++;
_0x196564 = _0x2bec0c[0x1];
_0x2bec0c = [0x0];
continue;
case 0x7:
_0x2bec0c = _0xf61807.ops.pop();
_0xf61807.trys.pop();
continue;
default:
if (!(_0xf4b0ea = (_0xf4b0ea = _0xf61807.trys).length > 0x0 && _0xf4b0ea[_0xf4b0ea.length - 0x1]) && (0x6 === _0x2bec0c[0x0] || 0x2 === _0x2bec0c[0x0])) {
_0xf61807 = 0x0;
continue;
}
if (0x3 === _0x2bec0c[0x0] && (!_0xf4b0ea || _0x2bec0c[0x1] > _0xf4b0ea[0x0] && _0x2bec0c[0x1] < _0xf4b0ea[0x3])) {
_0xf61807.label = _0x2bec0c[0x1];
break;
}
if (0x6 === _0x2bec0c[0x0] && _0xf61807.label < _0xf4b0ea[0x1]) {
_0xf61807.label = _0xf4b0ea[0x1];
_0xf4b0ea = _0x2bec0c;
break;
}
if (_0xf4b0ea && _0xf61807.label < _0xf4b0ea[0x2]) {
_0xf61807.label = _0xf4b0ea[0x2];
_0xf61807.ops.push(_0x2bec0c);
break;
}
if (_0xf4b0ea[0x2]) {
_0xf61807.ops.pop();
}
_0xf61807.trys.pop();
continue;
}
_0x2bec0c = _0x19938f.call(_0x5546cd, _0xf61807);
} catch (_0x12843a) {
_0x2bec0c = [0x6, _0x12843a];
_0x196564 = 0x0;
} finally {
_0x532b31 = _0xf4b0ea = 0x0;
}
}
if (0x5 & _0x2bec0c[0x0]) {
throw _0x2bec0c[0x1];
}
var _0x32af79 = {
"value": _0x2bec0c[0x0] ? _0x2bec0c[0x1] : undefined,
"done": true
};
return _0x32af79;
}([_0x40fee7, _0x503bc2]);
};
}
};
function _0x55957c() {
return 'undefined' != typeof self ? self : "undefined" != typeof window ? window : undefined !== _0x299a28 ? _0x299a28 : this;
}
var _0x1f98b1 = true;
var _0x4bc58c = function () {
return _0x1bf931(this, undefined, undefined, function () {
var _0x52ed1e;
return _0x1432f5(this, function (_0x45f6d9) {
switch (_0x45f6d9.label) {
case 0x0:
_0x52ed1e = false;
if (!navigator.brave) {
return [0x3, 0x4];
}
if (!navigator.brave.isBrave) {
return [0x3, 0x4];
}
_0x45f6d9.label = 0x1;
case 0x1:
_0x45f6d9.trys.push([0x1, 0x3,, 0x4]);
return [0x4, Promise.race([navigator.brave.isBrave(), new Promise(function (_0x3a8917) {
return setTimeout(function () {
return _0x3a8917(false);
}, 0x3e8);
})])];
case 0x2:
_0x52ed1e = _0x45f6d9.sent();
return [0x3, 0x4];
case 0x3:
_0x45f6d9.sent();
return [0x3, 0x4];
case 0x4:
_0x4bc58c = function () {
return _0x1bf931(this, undefined, undefined, function () {
return _0x1432f5(this, function (_0x1ae51f) {
return [0x2, _0x52ed1e];
});
});
};
return [0x2, _0x52ed1e];
}
});
});
};
}).call(_0x31418a, _0x4dd21e(0x9));
}, function (_0x57d187, _0x6390d2, _0x5a6d01) {
'use strict';
var _0x196e0d = {
"value": true
};
Object.defineProperty(_0x6390d2, '__esModule', _0x196e0d);
_0x6390d2.addListener = function (_0x16c8b6) {
_0x3b0d0e.addListener(_0x16c8b6);
};
_0x6390d2.removeListener = function (_0x17e2e4) {
_0x3b0d0e.removeListener(_0x17e2e4);
};
_0x6390d2.isLaunch = function () {
return _0x3b0d0e.isLaunch();
};
_0x6390d2.launch = function () {
_0x3b0d0e.launch();
};
_0x6390d2.stop = function () {
_0x3b0d0e.stop();
};
_0x6390d2.setDetectDelay = function (_0x1949bc) {
_0x3b0d0e.setDetectDelay(_0x1949bc);
};
var _0x3f8bf9 = _0x5a6d01(0x8);
var _0x28090f = _0x5a6d01(0xc);
_0x5a6d01.d(_0x6390d2, "DevtoolsDetector", function () {
return _0x3f8bf9.a;
});
_0x5a6d01.d(_0x6390d2, "checkers", function () {
return _0x28090f;
});
var _0x52fa4b = _0x5a6d01(0x17);
_0x5a6d01.d(_0x6390d2, "crashBrowserCurrentTab", function () {
return _0x52fa4b.b;
});
_0x5a6d01.d(_0x6390d2, "crashBrowser", function () {
return _0x52fa4b.a;
});
var _0x43d70f = _0x5a6d01(0x2);
_0x5a6d01.d(_0x6390d2, 'match', function () {
return _0x43d70f.a;
});
var _0x3ba01d = _0x5a6d01(0x3);
_0x5a6d01.d(_0x6390d2, "getGlobalThis", function () {
return _0x3ba01d.b;
});
_0x5a6d01.d(_0x6390d2, "createElement", function () {
return _0x3ba01d.a;
});
_0x5a6d01.d(_0x6390d2, "getWorkerConsole", function () {
return _0x3ba01d.c;
});
_0x5a6d01.d(_0x6390d2, "isBrave", function () {
return _0x3ba01d.d;
});
var _0x12ab8e = _0x5a6d01(0x18);
_0x5a6d01.d(_0x6390d2, "versionMap", function () {
return _0x12ab8e.a;
});
var _0x1ef2ef = _0x5a6d01(0x0);
_0x5a6d01.d(_0x6390d2, "userAgent", function () {
return _0x1ef2ef.i;
});
_0x5a6d01.d(_0x6390d2, "isFirefox", function () {
return _0x1ef2ef.d;
});
_0x5a6d01.d(_0x6390d2, 'isIE', function () {
return _0x1ef2ef.e;
});
_0x5a6d01.d(_0x6390d2, "isEdge", function () {
return _0x1ef2ef.c;
});
_0x5a6d01.d(_0x6390d2, "isWebkit", function () {
return _0x1ef2ef.h;
});
_0x5a6d01.d(_0x6390d2, "isIqiyiApp", function () {
return _0x1ef2ef.f;
});
_0x5a6d01.d(_0x6390d2, "isChrome", function () {
return _0x1ef2ef.b;
});
_0x5a6d01.d(_0x6390d2, "isSafari", function () {
return _0x1ef2ef.g;
});
_0x5a6d01.d(_0x6390d2, "inBrowser", function () {
return _0x1ef2ef.a;
});
var _0x5f855f = _0x5a6d01(0x1);
_0x5a6d01.d(_0x6390d2, "log", function () {
return _0x5f855f.b;
});
_0x5a6d01.d(_0x6390d2, "table", function () {
return _0x5f855f.c;
});
_0x5a6d01.d(_0x6390d2, 'clear', function () {
return _0x5f855f.a;
});
var _0x245195 = _0x5a6d01(0x5);
_0x5a6d01.d(_0x6390d2, "isMac", function () {
return _0x245195.d;
});
_0x5a6d01.d(_0x6390d2, "isIpad", function () {
return _0x245195.b;
});
_0x5a6d01.d(_0x6390d2, "isIphone", function () {
return _0x245195.c;
});
_0x5a6d01.d(_0x6390d2, "isAndroid", function () {
return _0x245195.a;
});
_0x5a6d01.d(_0x6390d2, "isWindows", function () {
return _0x245195.e;
});
var _0x5b8c9d = {
'checkers': [_0x28090f.erudaChecker, _0x28090f.elementIdChecker, _0x28090f.regToStringChecker, _0x28090f.functionToStringChecker, _0x28090f.depRegToStringChecker, _0x28090f.dateToStringChecker, _0x28090f.devtoolsFormatterChecker, _0x28090f.performanceChecker, _0x28090f.debuggerChecker]
};
var _0x3b0d0e = new _0x3f8bf9.a(_0x5b8c9d);
_0x6390d2["default"] = _0x3b0d0e;
}, function (_0x37ebef, _0xf36139, _0x407305) {
'use strict';
_0x407305.d(_0xf36139, 'd', function () {
return _0x58407e;
});
_0x407305.d(_0xf36139, 'b', function () {
return _0x4a7bc5;
});
_0x407305.d(_0xf36139, 'c', function () {
return _0xfb0755;
});
_0x407305.d(_0xf36139, 'a', function () {
return _0x2cca5c;
});
_0x407305.d(_0xf36139, 'e', function () {
return _0xd51d21;
});
var _0x2fad45 = _0x407305(0x0);
var _0x58407e = /macintosh/i.test(_0x2fad45.i);
var _0x4a7bc5 = /ipad/i.test(_0x2fad45.i) || _0x58407e && navigator.maxTouchPoints > 0x1;
var _0xfb0755 = /iphone/i.test(_0x2fad45.i);
var _0x2cca5c = /android/i.test(_0x2fad45.i);
var _0xd51d21 = /windows/i.test(_0x2fad45.i);
}, function (_0x531b1b, _0x5c1e53, _0x1fd90c) {
'use strict';
_0x5c1e53.a = function () {
return "undefined" != typeof performance ? performance.now() : Date.now();
};
}, function (_0x1f3839, _0x350898, _0x50f421) {
'use strict';
_0x350898.a = function () {
if (null === _0x35499d) {
_0x35499d = function () {
var _0x539fd6 = function () {
var _0x2c742d = {};
for (var _0x14c05b = 0x0; _0x14c05b < 0x1f4; _0x14c05b++) {
_0x2c742d[''.concat(_0x14c05b)] = ''.concat(_0x14c05b);
}
return _0x2c742d;
}();
var _0x7d47de = [];
for (var _0x290ba3 = 0x0; _0x290ba3 < 0x32; _0x290ba3++) {
_0x7d47de.push(_0x539fd6);
}
return _0x7d47de;
}();
}
return _0x35499d;
};
var _0x35499d = null;
}, function (_0x3a12e9, _0x8c0dd5, _0x58aeb5) {
'use strict';
_0x58aeb5.d(_0x8c0dd5, 'a', function () {
return _0x34c277;
});
var _0x1ed4c1 = _0x58aeb5(0x0);
var _0x5cca4d = this && this.__awaiter || function (_0x16a96d, _0xc156c8, _0x4e0fd3, _0x40e8ae) {
return new (_0x4e0fd3 || (_0x4e0fd3 = Promise))(function (_0x516021, _0x5b0697) {
function _0x259f11(_0x16026d) {
try {
_0x158a01(_0x40e8ae.next(_0x16026d));
} catch (_0x5904c4) {
_0x5b0697(_0x5904c4);
}
}
function _0x586aaa(_0x540b4f) {
try {
_0x158a01(_0x40e8ae["throw"](_0x540b4f));
} catch (_0x3b975e) {
_0x5b0697(_0x3b975e);
}
}
function _0x158a01(_0x141c06) {
if (_0x141c06.done) {
_0x516021(_0x141c06.value);
} else {
(function (_0x569837) {
return _0x569837 instanceof _0x4e0fd3 ? _0x569837 : new _0x4e0fd3(function (_0x132b08) {
_0x132b08(_0x569837);
});
})(_0x141c06.value).then(_0x259f11, _0x586aaa);
}
}
_0x158a01((_0x40e8ae = _0x40e8ae.apply(_0x16a96d, _0xc156c8 || [])).next());
});
};
var _0x2fba63 = this && this.__generator || function (_0x19a236, _0x59da52) {
var _0x5efe5c;
var _0x79c10d;
var _0x3c6b9c;
var _0x30c1f3;
var _0x5ab9b4 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x3c6b9c[0x0]) {
throw _0x3c6b9c[0x1];
}
return _0x3c6b9c[0x1];
},
'trys': [],
'ops': []
};
_0x30c1f3 = {
'next': _0x1638f2(0x0),
'throw': _0x1638f2(0x1),
'return': _0x1638f2(0x2)
};
if ("function" == typeof Symbol) {
_0x30c1f3[Symbol.iterator] = function () {
return this;
};
}
return _0x30c1f3;
function _0x1638f2(_0x1bf4c4) {
return function (_0x2b30ba) {
return function (_0x4f237e) {
if (_0x5efe5c) {
throw new TypeError("Generator is already executing.");
}
for (; _0x30c1f3 && (_0x30c1f3 = 0x0, _0x4f237e[0x0] && (_0x5ab9b4 = 0x0)), _0x5ab9b4;) {
try {
_0x5efe5c = 0x1;
if (_0x79c10d && (_0x3c6b9c = 0x2 & _0x4f237e[0x0] ? _0x79c10d["return"] : _0x4f237e[0x0] ? _0x79c10d["throw"] || ((_0x3c6b9c = _0x79c10d["return"]) && _0x3c6b9c.call(_0x79c10d), 0x0) : _0x79c10d.next) && !(_0x3c6b9c = _0x3c6b9c.call(_0x79c10d, _0x4f237e[0x1])).done) {
return _0x3c6b9c;
}
_0x79c10d = 0x0;
if (_0x3c6b9c) {
_0x4f237e = [0x2 & _0x4f237e[0x0], _0x3c6b9c.value];
}
switch (_0x4f237e[0x0]) {
case 0x0:
case 0x1:
_0x3c6b9c = _0x4f237e;
break;
case 0x4:
var _0x353662 = {
value: _0x4f237e[0x1],
done: false
};
_0x5ab9b4.label++;
return _0x353662;
case 0x5:
_0x5ab9b4.label++;
_0x79c10d = _0x4f237e[0x1];
_0x4f237e = [0x0];
continue;
case 0x7:
_0x4f237e = _0x5ab9b4.ops.pop();
_0x5ab9b4.trys.pop();
continue;
default:
if (!(_0x3c6b9c = (_0x3c6b9c = _0x5ab9b4.trys).length > 0x0 && _0x3c6b9c[_0x3c6b9c.length - 0x1]) && (0x6 === _0x4f237e[0x0] || 0x2 === _0x4f237e[0x0])) {
_0x5ab9b4 = 0x0;
continue;
}
if (0x3 === _0x4f237e[0x0] && (!_0x3c6b9c || _0x4f237e[0x1] > _0x3c6b9c[0x0] && _0x4f237e[0x1] < _0x3c6b9c[0x3])) {
_0x5ab9b4.label = _0x4f237e[0x1];
break;
}
if (0x6 === _0x4f237e[0x0] && _0x5ab9b4.label < _0x3c6b9c[0x1]) {
_0x5ab9b4.label = _0x3c6b9c[0x1];
_0x3c6b9c = _0x4f237e;
break;
}
if (_0x3c6b9c && _0x5ab9b4.label < _0x3c6b9c[0x2]) {
_0x5ab9b4.label = _0x3c6b9c[0x2];
_0x5ab9b4.ops.push(_0x4f237e);
break;
}
if (_0x3c6b9c[0x2]) {
_0x5ab9b4.ops.pop();
}
_0x5ab9b4.trys.pop();
continue;
}
_0x4f237e = _0x59da52.call(_0x19a236, _0x5ab9b4);
} catch (_0x11d35d) {
_0x4f237e = [0x6, _0x11d35d];
_0x79c10d = 0x0;
} finally {
_0x5efe5c = _0x3c6b9c = 0x0;
}
}
if (0x5 & _0x4f237e[0x0]) {
throw _0x4f237e[0x1];
}
var _0xabe98 = {
"value": _0x4f237e[0x0] ? _0x4f237e[0x1] : undefined,
"done": true
};
return _0xabe98;
}([_0x1bf4c4, _0x2b30ba]);
};
}
};
var _0x34c277 = function () {
function _0x49c35d(_0x13d3d4) {
var _0x4e8ad3 = _0x13d3d4.checkers;
this._listeners = [];
this._isOpen = false;
this._detectLoopStopped = true;
this._detectLoopDelay = 0x1f4;
this._checkers = _0x4e8ad3.slice();
}
var _0x2971c7 = {
"get": function () {
return this._isOpen;
},
"enumerable": false,
configurable: true
};
Object.defineProperty(_0x49c35d.prototype, "isOpen", _0x2971c7);
_0x49c35d.prototype.launch = function () {
if (_0x1ed4c1.a) {
if (this._detectLoopDelay <= 0x0) {
this.setDetectDelay(0x1f4);
}
if (this._detectLoopStopped) {
this._detectLoopStopped = false;
this._detectLoop();
}
}
};
_0x49c35d.prototype.stop = function () {
if (!this._detectLoopStopped) {
this._detectLoopStopped = true;
this._isOpen = false;
clearTimeout(this._timer);
}
};
_0x49c35d.prototype.isLaunch = function () {
return !this._detectLoopStopped;
};
_0x49c35d.prototype.setDetectDelay = function (_0x345cca) {
this._detectLoopDelay = _0x345cca;
};
_0x49c35d.prototype.addListener = function (_0x3b67e6) {
this._listeners.push(_0x3b67e6);
};
_0x49c35d.prototype.removeListener = function (_0x4ac81f) {
this._listeners = this._listeners.filter(function (_0x822189) {
return _0x822189 !== _0x4ac81f;
});
};
_0x49c35d.prototype._broadcast = function (_0x13420a) {
var _0x477e0a = 0x0;
for (var _0xde5d13 = this._listeners; _0x477e0a < _0xde5d13.length; _0x477e0a++) {
var _0x22cea0 = _0xde5d13[_0x477e0a];
try {
_0x22cea0(_0x13420a.isOpen, _0x13420a);
} catch (_0x484784) {}
}
};
_0x49c35d.prototype._detectLoop = function () {
return _0x5cca4d(this, undefined, undefined, function () {
var _0x181e7f;
var _0x270185;
var _0x3af77e;
var _0xc16249;
var _0x33a5bf;
var _0x11a88d = this;
return _0x2fba63(this, function (_0x122c3a) {
switch (_0x122c3a.label) {
case 0x0:
_0x181e7f = false;
_0x270185 = '';
_0x3af77e = 0x0;
_0xc16249 = this._checkers;
_0x122c3a.label = 0x1;
case 0x1:
return _0x3af77e < _0xc16249.length ? [0x4, (_0x33a5bf = _0xc16249[_0x3af77e]).isEnable()] : [0x3, 0x6];
case 0x2:
return _0x122c3a.sent() ? (_0x270185 = _0x33a5bf.name, [0x4, _0x33a5bf.isOpen()]) : [0x3, 0x4];
case 0x3:
_0x181e7f = _0x122c3a.sent();
_0x122c3a.label = 0x4;
case 0x4:
if (_0x181e7f) {
return [0x3, 0x6];
}
_0x122c3a.label = 0x5;
case 0x5:
_0x3af77e++;
return [0x3, 0x1];
case 0x6:
if (_0x181e7f != this._isOpen) {
this._isOpen = _0x181e7f;
this._broadcast({
'isOpen': _0x181e7f,
'checkerName': _0x270185
});
}
if (this._detectLoopDelay > 0x0 && !this._detectLoopStopped) {
this._timer = setTimeout(function () {
return _0x11a88d._detectLoop();
}, this._detectLoopDelay);
} else {
this.stop();
}
return [0x2];
}
});
});
};
return _0x49c35d;
}();
}, function (_0x426c03, _0x1d8381) {
var _0x4d0b3b;
_0x4d0b3b = function () {
return this;
}();
try {
_0x4d0b3b = _0x4d0b3b || Function("return this")() || (0x0, eval)('this');
} catch (_0x5d71f0) {
if ("object" == typeof window) {
_0x4d0b3b = window;
}
}
_0x426c03.exports = _0x4d0b3b;
}, function (_0x544fa5, _0x55a684, _0x3ffa2a) {
'use strict';
_0x3ffa2a.d(_0x55a684, 'a', function () {
return _0x53b8eb;
});
var _0x4efad8 = _0x3ffa2a(0xb);
var _0x3cb705 = this && this.__awaiter || function (_0x4538ad, _0x170c2a, _0x3a3262, _0x5f3a5c) {
return new (_0x3a3262 || (_0x3a3262 = Promise))(function (_0xb083bc, _0x8bf2fd) {
function _0x4aa9be(_0x43cd37) {
try {
_0x588fd7(_0x5f3a5c.next(_0x43cd37));
} catch (_0x466fe7) {
_0x8bf2fd(_0x466fe7);
}
}
function _0x3ba0e5(_0x25cba5) {
try {
_0x588fd7(_0x5f3a5c["throw"](_0x25cba5));
} catch (_0x1b10cc) {
_0x8bf2fd(_0x1b10cc);
}
}
function _0x588fd7(_0x301f84) {
if (_0x301f84.done) {
_0xb083bc(_0x301f84.value);
} else {
(function (_0x54864f) {
return _0x54864f instanceof _0x3a3262 ? _0x54864f : new _0x3a3262(function (_0x4b8fe0) {
_0x4b8fe0(_0x54864f);
});
})(_0x301f84.value).then(_0x4aa9be, _0x3ba0e5);
}
}
_0x588fd7((_0x5f3a5c = _0x5f3a5c.apply(_0x4538ad, _0x170c2a || [])).next());
});
};
var _0xb969bd = this && this.__generator || function (_0xd2646b, _0x1ab4f6) {
var _0x503dc5;
var _0x3c121a;
var _0x3b4322;
var _0x164d11;
var _0xaa1689 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x3b4322[0x0]) {
throw _0x3b4322[0x1];
}
return _0x3b4322[0x1];
},
'trys': [],
'ops': []
};
_0x164d11 = {
'next': _0x48e77a(0x0),
'throw': _0x48e77a(0x1),
'return': _0x48e77a(0x2)
};
if ("function" == typeof Symbol) {
_0x164d11[Symbol.iterator] = function () {
return this;
};
}
return _0x164d11;
function _0x48e77a(_0x1638e3) {
return function (_0x454792) {
return function (_0x19b84a) {
if (_0x503dc5) {
throw new TypeError("Generator is already executing.");
}
for (; _0x164d11 && (_0x164d11 = 0x0, _0x19b84a[0x0] && (_0xaa1689 = 0x0)), _0xaa1689;) {
try {
_0x503dc5 = 0x1;
if (_0x3c121a && (_0x3b4322 = 0x2 & _0x19b84a[0x0] ? _0x3c121a["return"] : _0x19b84a[0x0] ? _0x3c121a['throw'] || ((_0x3b4322 = _0x3c121a['return']) && _0x3b4322.call(_0x3c121a), 0x0) : _0x3c121a.next) && !(_0x3b4322 = _0x3b4322.call(_0x3c121a, _0x19b84a[0x1])).done) {
return _0x3b4322;
}
_0x3c121a = 0x0;
if (_0x3b4322) {
_0x19b84a = [0x2 & _0x19b84a[0x0], _0x3b4322.value];
}
switch (_0x19b84a[0x0]) {
case 0x0:
case 0x1:
_0x3b4322 = _0x19b84a;
break;
case 0x4:
var _0x403030 = {
"value": _0x19b84a[0x1],
"done": false
};
_0xaa1689.label++;
return _0x403030;
case 0x5:
_0xaa1689.label++;
_0x3c121a = _0x19b84a[0x1];
_0x19b84a = [0x0];
continue;
case 0x7:
_0x19b84a = _0xaa1689.ops.pop();
_0xaa1689.trys.pop();
continue;
default:
if (!(_0x3b4322 = (_0x3b4322 = _0xaa1689.trys).length > 0x0 && _0x3b4322[_0x3b4322.length - 0x1]) && (0x6 === _0x19b84a[0x0] || 0x2 === _0x19b84a[0x0])) {
_0xaa1689 = 0x0;
continue;
}
if (0x3 === _0x19b84a[0x0] && (!_0x3b4322 || _0x19b84a[0x1] > _0x3b4322[0x0] && _0x19b84a[0x1] < _0x3b4322[0x3])) {
_0xaa1689.label = _0x19b84a[0x1];
break;
}
if (0x6 === _0x19b84a[0x0] && _0xaa1689.label < _0x3b4322[0x1]) {
_0xaa1689.label = _0x3b4322[0x1];
_0x3b4322 = _0x19b84a;
break;
}
if (_0x3b4322 && _0xaa1689.label < _0x3b4322[0x2]) {
_0xaa1689.label = _0x3b4322[0x2];
_0xaa1689.ops.push(_0x19b84a);
break;
}
if (_0x3b4322[0x2]) {
_0xaa1689.ops.pop();
}
_0xaa1689.trys.pop();
continue;
}
_0x19b84a = _0x1ab4f6.call(_0xd2646b, _0xaa1689);
} catch (_0x50c61a) {
_0x19b84a = [0x6, _0x50c61a];
_0x3c121a = 0x0;
} finally {
_0x503dc5 = _0x3b4322 = 0x0;
}
}
if (0x5 & _0x19b84a[0x0]) {
throw _0x19b84a[0x1];
}
var _0x527ff9 = {
"value": _0x19b84a[0x0] ? _0x19b84a[0x1] : undefined,
"done": true
};
return _0x527ff9;
}([_0x1638e3, _0x454792]);
};
}
};
var _0x432a3e = this && this.__spreadArray || function (_0x39d42b, _0x3fc0b0, _0x43fc7a) {
if (_0x43fc7a || 0x2 === arguments.length) {
var _0x4af754;
var _0x2ec39a = 0x0;
for (var _0x3119bc = _0x3fc0b0.length; _0x2ec39a < _0x3119bc; _0x2ec39a++) {
if (!(!_0x4af754 && _0x2ec39a in _0x3fc0b0)) {
if (!_0x4af754) {
_0x4af754 = Array.prototype.slice.call(_0x3fc0b0, 0x0, _0x2ec39a);
}
_0x4af754[_0x2ec39a] = _0x3fc0b0[_0x2ec39a];
}
}
}
return _0x39d42b.concat(_0x4af754 || Array.prototype.slice.call(_0x3fc0b0));
};
var _0x53b8eb = function () {
function _0x46799d(_0x47b23b) {
var _0x1c1edd = this;
this.callbacks = new Map();
this.worker = _0x47b23b;
this.worker.onmessage = function (_0x2d8a45) {
var _0x5d14c4 = _0x2d8a45.data;
var _0x3a0a26 = _0x5d14c4.id;
var _0xa0c848 = _0x1c1edd.callbacks.get(_0x5d14c4.id);
var _0x1afb0f = {
"time": _0x5d14c4.time
};
if (_0xa0c848) {
_0xa0c848(_0x1afb0f);
_0x1c1edd.callbacks["delete"](_0x3a0a26);
}
};
this.log = function () {
var _0x1cbc9b = [];
for (var _0x58379c = 0x0; _0x58379c < arguments.length; _0x58379c++) {
_0x1cbc9b[_0x58379c] = arguments[_0x58379c];
}
return _0x1c1edd.send.apply(_0x1c1edd, _0x432a3e(["log"], _0x1cbc9b, false));
};
this.table = function () {
var _0x276d47 = [];
for (var _0x21a73a = 0x0; _0x21a73a < arguments.length; _0x21a73a++) {
_0x276d47[_0x21a73a] = arguments[_0x21a73a];
}
return _0x1c1edd.send.apply(_0x1c1edd, _0x432a3e(["table"], _0x276d47, false));
};
this.clear = function () {
var _0xad29d4 = [];
for (var _0x1e6105 = 0x0; _0x1e6105 < arguments.length; _0x1e6105++) {
_0xad29d4[_0x1e6105] = arguments[_0x1e6105];
}
return _0x1c1edd.send.apply(_0x1c1edd, _0x432a3e(["clear"], _0xad29d4, false));
};
}
_0x46799d.prototype.send = function (_0x498010) {
var _0x4600ed = [];
for (var _0x4c04f4 = 0x1; _0x4c04f4 < arguments.length; _0x4c04f4++) {
_0x4600ed[_0x4c04f4 - 0x1] = arguments[_0x4c04f4];
}
return _0x3cb705(this, undefined, undefined, function () {
var _0xc4aa9c;
var _0x1366d8 = this;
return _0xb969bd(this, function (_0xedb3c) {
_0xc4aa9c = Object(_0x4efad8.a)();
return [0x2, new Promise(function (_0x38f53e, _0x2cc79e) {
_0x1366d8.callbacks.set(_0xc4aa9c, _0x38f53e);
_0x1366d8.worker.postMessage({
'id': _0xc4aa9c,
'type': _0x498010,
'payload': _0x4600ed
});
setTimeout(function () {
_0x2cc79e(new Error('timeout'));
_0x1366d8.callbacks["delete"](_0xc4aa9c);
}, 0x7d0);
})];
});
});
};
_0x46799d.workerScript = "\nonmessage = function(event) {\n var action = event.data;\n var startTime = performance.now()\n\n console[action.type](...action.payload);\n postMessage({\n id: action.id,\n time: performance.now() - startTime\n })\n}\n";
return _0x46799d;
}();
}, function (_0x57d79d, _0x3f940e, _0x2ba876) {
'use strict';
_0x3f940e.a = function () {
if (_0x2298c8 > Number.MAX_SAFE_INTEGER) {
_0x2298c8 = 0x0;
}
return _0x2298c8++;
};
var _0x2298c8 = 0x0;
}, function (_0x49e532, _0x254a09, _0x2b7a93) {
'use strict';
var _0x17969 = {
value: true
};
Object.defineProperty(_0x254a09, '__esModule', _0x17969);
var _0x1d2a5a = _0x2b7a93(0xd);
_0x2b7a93.d(_0x254a09, "depRegToStringChecker", function () {
return _0x1d2a5a.a;
});
var _0x2bf4d2 = _0x2b7a93(0xe);
_0x2b7a93.d(_0x254a09, "elementIdChecker", function () {
return _0x2bf4d2.a;
});
var _0x9c0de1 = _0x2b7a93(0xf);
_0x2b7a93.d(_0x254a09, "functionToStringChecker", function () {
return _0x9c0de1.a;
});
var _0x110e94 = _0x2b7a93(0x10);
_0x2b7a93.d(_0x254a09, "regToStringChecker", function () {
return _0x110e94.a;
});
var _0x37b83a = _0x2b7a93(0x11);
_0x2b7a93.d(_0x254a09, "debuggerChecker", function () {
return _0x37b83a.a;
});
var _0x212851 = _0x2b7a93(0x12);
_0x2b7a93.d(_0x254a09, "dateToStringChecker", function () {
return _0x212851.a;
});
var _0x1ac943 = _0x2b7a93(0x13);
_0x2b7a93.d(_0x254a09, "performanceChecker", function () {
return _0x1ac943.a;
});
var _0x2a7f3e = _0x2b7a93(0x14);
_0x2b7a93.d(_0x254a09, "erudaChecker", function () {
return _0x2a7f3e.a;
});
var _0x3ea77a = _0x2b7a93(0x15);
_0x2b7a93.d(_0x254a09, "devtoolsFormatterChecker", function () {
return _0x3ea77a.a;
});
var _0x144f19 = _0x2b7a93(0x16);
_0x2b7a93.d(_0x254a09, "workerPerformanceChecker", function () {
return _0x144f19.a;
});
}, function (_0x2deae8, _0x5c90db, _0x280c7f) {
'use strict';
_0x280c7f.d(_0x5c90db, 'a', function () {
return _0x468cf6;
});
var _0x4fc622 = _0x280c7f(0x0);
var _0x22372e = _0x280c7f(0x1);
var _0xd09aac = _0x280c7f(0x2);
var _0x153b81 = this && this.__awaiter || function (_0x110512, _0x21cf8b, _0x121ecf, _0x180b9d) {
return new (_0x121ecf || (_0x121ecf = Promise))(function (_0xd60057, _0x27ce8c) {
function _0x3e6c4a(_0x45d332) {
try {
_0x283749(_0x180b9d.next(_0x45d332));
} catch (_0x4f02e7) {
_0x27ce8c(_0x4f02e7);
}
}
function _0x161f77(_0x5b053d) {
try {
_0x283749(_0x180b9d["throw"](_0x5b053d));
} catch (_0x98283) {
_0x27ce8c(_0x98283);
}
}
function _0x283749(_0x1678e2) {
if (_0x1678e2.done) {
_0xd60057(_0x1678e2.value);
} else {
(function (_0x14d681) {
return _0x14d681 instanceof _0x121ecf ? _0x14d681 : new _0x121ecf(function (_0x52ddfa) {
_0x52ddfa(_0x14d681);
});
})(_0x1678e2.value).then(_0x3e6c4a, _0x161f77);
}
}
_0x283749((_0x180b9d = _0x180b9d.apply(_0x110512, _0x21cf8b || [])).next());
});
};
var _0x57dea1 = this && this.__generator || function (_0x1c7695, _0x507ce3) {
var _0xb1a90f;
var _0x52918c;
var _0x51ee10;
var _0x8cd23d;
var _0x2b1540 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x51ee10[0x0]) {
throw _0x51ee10[0x1];
}
return _0x51ee10[0x1];
},
'trys': [],
'ops': []
};
_0x8cd23d = {
'next': _0x4c5114(0x0),
'throw': _0x4c5114(0x1),
'return': _0x4c5114(0x2)
};
if ("function" == typeof Symbol) {
_0x8cd23d[Symbol.iterator] = function () {
return this;
};
}
return _0x8cd23d;
function _0x4c5114(_0x24a150) {
return function (_0x8d973) {
return function (_0x5c9614) {
if (_0xb1a90f) {
throw new TypeError("Generator is already executing.");
}
for (; _0x8cd23d && (_0x8cd23d = 0x0, _0x5c9614[0x0] && (_0x2b1540 = 0x0)), _0x2b1540;) {
try {
_0xb1a90f = 0x1;
if (_0x52918c && (_0x51ee10 = 0x2 & _0x5c9614[0x0] ? _0x52918c["return"] : _0x5c9614[0x0] ? _0x52918c["throw"] || ((_0x51ee10 = _0x52918c["return"]) && _0x51ee10.call(_0x52918c), 0x0) : _0x52918c.next) && !(_0x51ee10 = _0x51ee10.call(_0x52918c, _0x5c9614[0x1])).done) {
return _0x51ee10;
}
_0x52918c = 0x0;
if (_0x51ee10) {
_0x5c9614 = [0x2 & _0x5c9614[0x0], _0x51ee10.value];
}
switch (_0x5c9614[0x0]) {
case 0x0:
case 0x1:
_0x51ee10 = _0x5c9614;
break;
case 0x4:
var _0x59153d = {
"value": _0x5c9614[0x1],
"done": false
};
_0x2b1540.label++;
return _0x59153d;
case 0x5:
_0x2b1540.label++;
_0x52918c = _0x5c9614[0x1];
_0x5c9614 = [0x0];
continue;
case 0x7:
_0x5c9614 = _0x2b1540.ops.pop();
_0x2b1540.trys.pop();
continue;
default:
if (!(_0x51ee10 = (_0x51ee10 = _0x2b1540.trys).length > 0x0 && _0x51ee10[_0x51ee10.length - 0x1]) && (0x6 === _0x5c9614[0x0] || 0x2 === _0x5c9614[0x0])) {
_0x2b1540 = 0x0;
continue;
}
if (0x3 === _0x5c9614[0x0] && (!_0x51ee10 || _0x5c9614[0x1] > _0x51ee10[0x0] && _0x5c9614[0x1] < _0x51ee10[0x3])) {
_0x2b1540.label = _0x5c9614[0x1];
break;
}
if (0x6 === _0x5c9614[0x0] && _0x2b1540.label < _0x51ee10[0x1]) {
_0x2b1540.label = _0x51ee10[0x1];
_0x51ee10 = _0x5c9614;
break;
}
if (_0x51ee10 && _0x2b1540.label < _0x51ee10[0x2]) {
_0x2b1540.label = _0x51ee10[0x2];
_0x2b1540.ops.push(_0x5c9614);
break;
}
if (_0x51ee10[0x2]) {
_0x2b1540.ops.pop();
}
_0x2b1540.trys.pop();
continue;
}
_0x5c9614 = _0x507ce3.call(_0x1c7695, _0x2b1540);
} catch (_0x2b4cac) {
_0x5c9614 = [0x6, _0x2b4cac];
_0x52918c = 0x0;
} finally {
_0xb1a90f = _0x51ee10 = 0x0;
}
}
if (0x5 & _0x5c9614[0x0]) {
throw _0x5c9614[0x1];
}
var _0x41ec6f = {
value: _0x5c9614[0x0] ? _0x5c9614[0x1] : undefined,
"done": true
};
return _0x41ec6f;
}([_0x24a150, _0x8d973]);
};
}
};
var _0x72604b = false;
/ /.toString = function () {
_0x72604b = true;
return "dep-reg-to-string";
};
var _0x468cf6 = {
'name': "dep-reg-to-string",
'isOpen': function () {
return _0x153b81(this, undefined, undefined, function () {
return _0x57dea1(this, function (_0x4fc233) {
var _0x4e48dd = {
"dep": / /
};
_0x72604b = false;
Object(_0x22372e.c)(_0x4e48dd);
Object(_0x22372e.a)();
return [0x2, _0x72604b];
});
});
},
'isEnable': function () {
return _0x153b81(this, undefined, undefined, function () {
return _0x57dea1(this, function (_0x2442ca) {
var _0x28e428 = {
"includes": [true],
"excludes": [_0x4fc622.d, _0x4fc622.e]
};
return [0x2, Object(_0xd09aac.a)(_0x28e428)];
});
});
}
};
}, function (_0x4a139e, _0x1896de, _0xc51c09) {
'use strict';
_0xc51c09.d(_0x1896de, 'a', function () {
return _0x482b32;
});
var _0x1b163b = _0xc51c09(0x0);
var _0x485ebb = _0xc51c09(0x1);
var _0x5854ba = _0xc51c09(0x2);
var _0x485366 = _0xc51c09(0x3);
var _0x2f151b = this && this.__awaiter || function (_0x100e3f, _0x158f92, _0x29a67e, _0x3b2f2f) {
return new (_0x29a67e || (_0x29a67e = Promise))(function (_0x3d8950, _0x178432) {
function _0x581b0b(_0x119ba0) {
try {
_0x128194(_0x3b2f2f.next(_0x119ba0));
} catch (_0x298b99) {
_0x178432(_0x298b99);
}
}
function _0x4f602c(_0x469721) {
try {
_0x128194(_0x3b2f2f["throw"](_0x469721));
} catch (_0x1d2b06) {
_0x178432(_0x1d2b06);
}
}
function _0x128194(_0x56e6dc) {
if (_0x56e6dc.done) {
_0x3d8950(_0x56e6dc.value);
} else {
(function (_0x25f859) {
return _0x25f859 instanceof _0x29a67e ? _0x25f859 : new _0x29a67e(function (_0x44b742) {
_0x44b742(_0x25f859);
});
})(_0x56e6dc.value).then(_0x581b0b, _0x4f602c);
}
}
_0x128194((_0x3b2f2f = _0x3b2f2f.apply(_0x100e3f, _0x158f92 || [])).next());
});
};
var _0x52e143 = this && this.__generator || function (_0x16c44a, _0x3fed54) {
var _0x55898f;
var _0x1e1764;
var _0x1029db;
var _0x20de21;
var _0xbaa738 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x1029db[0x0]) {
throw _0x1029db[0x1];
}
return _0x1029db[0x1];
},
'trys': [],
'ops': []
};
_0x20de21 = {
'next': _0x4c50ab(0x0),
'throw': _0x4c50ab(0x1),
'return': _0x4c50ab(0x2)
};
if ("function" == typeof Symbol) {
_0x20de21[Symbol.iterator] = function () {
return this;
};
}
return _0x20de21;
function _0x4c50ab(_0x407be1) {
return function (_0xfc3ff5) {
return function (_0x4a4fc8) {
if (_0x55898f) {
throw new TypeError("Generator is already executing.");
}
for (; _0x20de21 && (_0x20de21 = 0x0, _0x4a4fc8[0x0] && (_0xbaa738 = 0x0)), _0xbaa738;) {
try {
_0x55898f = 0x1;
if (_0x1e1764 && (_0x1029db = 0x2 & _0x4a4fc8[0x0] ? _0x1e1764["return"] : _0x4a4fc8[0x0] ? _0x1e1764["throw"] || ((_0x1029db = _0x1e1764["return"]) && _0x1029db.call(_0x1e1764), 0x0) : _0x1e1764.next) && !(_0x1029db = _0x1029db.call(_0x1e1764, _0x4a4fc8[0x1])).done) {
return _0x1029db;
}
_0x1e1764 = 0x0;
if (_0x1029db) {
_0x4a4fc8 = [0x2 & _0x4a4fc8[0x0], _0x1029db.value];
}
switch (_0x4a4fc8[0x0]) {
case 0x0:
case 0x1:
_0x1029db = _0x4a4fc8;
break;
case 0x4:
var _0x3eae09 = {
"value": _0x4a4fc8[0x1],
"done": false
};
_0xbaa738.label++;
return _0x3eae09;
case 0x5:
_0xbaa738.label++;
_0x1e1764 = _0x4a4fc8[0x1];
_0x4a4fc8 = [0x0];
continue;
case 0x7:
_0x4a4fc8 = _0xbaa738.ops.pop();
_0xbaa738.trys.pop();
continue;
default:
if (!(_0x1029db = (_0x1029db = _0xbaa738.trys).length > 0x0 && _0x1029db[_0x1029db.length - 0x1]) && (0x6 === _0x4a4fc8[0x0] || 0x2 === _0x4a4fc8[0x0])) {
_0xbaa738 = 0x0;
continue;
}
if (0x3 === _0x4a4fc8[0x0] && (!_0x1029db || _0x4a4fc8[0x1] > _0x1029db[0x0] && _0x4a4fc8[0x1] < _0x1029db[0x3])) {
_0xbaa738.label = _0x4a4fc8[0x1];
break;
}
if (0x6 === _0x4a4fc8[0x0] && _0xbaa738.label < _0x1029db[0x1]) {
_0xbaa738.label = _0x1029db[0x1];
_0x1029db = _0x4a4fc8;
break;
}
if (_0x1029db && _0xbaa738.label < _0x1029db[0x2]) {
_0xbaa738.label = _0x1029db[0x2];
_0xbaa738.ops.push(_0x4a4fc8);
break;
}
if (_0x1029db[0x2]) {
_0xbaa738.ops.pop();
}
_0xbaa738.trys.pop();
continue;
}
_0x4a4fc8 = _0x3fed54.call(_0x16c44a, _0xbaa738);
} catch (_0x30dde5) {
_0x4a4fc8 = [0x6, _0x30dde5];
_0x1e1764 = 0x0;
} finally {
_0x55898f = _0x1029db = 0x0;
}
}
if (0x5 & _0x4a4fc8[0x0]) {
throw _0x4a4fc8[0x1];
}
var _0x25148 = {
"value": _0x4a4fc8[0x0] ? _0x4a4fc8[0x1] : undefined,
"done": true
};
return _0x25148;
}([_0x407be1, _0xfc3ff5]);
};
}
};
var _0x2c57fe = Object(_0x485366.a)("div");
var _0x94916f = false;
var _0x12aedc = {
"get": function () {
_0x94916f = true;
return "element-id";
},
configurable: true
};
Object.defineProperty(_0x2c57fe, 'id', _0x12aedc);
var _0x482b32 = {
'name': "element-id",
'isOpen': function () {
return _0x2f151b(this, undefined, undefined, function () {
return _0x52e143(this, function (_0x4f69b5) {
_0x94916f = false;
Object(_0x485ebb.b)(_0x2c57fe);
Object(_0x485ebb.a)();
return [0x2, _0x94916f];
});
});
},
'isEnable': function () {
return _0x2f151b(this, undefined, undefined, function () {
return _0x52e143(this, function (_0x1d1b1e) {
var _0x5111d5 = {
includes: [true],
excludes: [_0x1b163b.e, _0x1b163b.c, _0x1b163b.d]
};
return [0x2, Object(_0x5854ba.a)(_0x5111d5)];
});
});
}
};
}, function (_0x299ffe, _0x515e8f, _0x3e621f) {
'use strict';
_0x3e621f.d(_0x515e8f, 'a', function () {
return _0x52cea1;
});
var _0x62d7c9 = _0x3e621f(0x0);
var _0x3e13af = _0x3e621f(0x1);
var _0x1a8c1c = _0x3e621f(0x5);
var _0x4c862d = _0x3e621f(0x2);
var _0x1022a9 = this && this.__awaiter || function (_0x4b6551, _0x5a86be, _0x1485fe, _0x139b90) {
return new (_0x1485fe || (_0x1485fe = Promise))(function (_0x2dd4ab, _0x2bd9a1) {
function _0x467551(_0x23d6ce) {
try {
_0x478ec2(_0x139b90.next(_0x23d6ce));
} catch (_0x55622c) {
_0x2bd9a1(_0x55622c);
}
}
function _0x38bc5a(_0x1446a8) {
try {
_0x478ec2(_0x139b90["throw"](_0x1446a8));
} catch (_0x572a9b) {
_0x2bd9a1(_0x572a9b);
}
}
function _0x478ec2(_0x31293e) {
if (_0x31293e.done) {
_0x2dd4ab(_0x31293e.value);
} else {
(function (_0x1f6b22) {
return _0x1f6b22 instanceof _0x1485fe ? _0x1f6b22 : new _0x1485fe(function (_0x548bb1) {
_0x548bb1(_0x1f6b22);
});
})(_0x31293e.value).then(_0x467551, _0x38bc5a);
}
}
_0x478ec2((_0x139b90 = _0x139b90.apply(_0x4b6551, _0x5a86be || [])).next());
});
};
var _0x1266f3 = this && this.__generator || function (_0x4446ac, _0x4284cf) {
var _0x4e6a10;
var _0x7a436a;
var _0x46cffe;
var _0x45496b;
var _0x1f4402 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x46cffe[0x0]) {
throw _0x46cffe[0x1];
}
return _0x46cffe[0x1];
},
'trys': [],
'ops': []
};
_0x45496b = {
'next': _0x5d0132(0x0),
'throw': _0x5d0132(0x1),
'return': _0x5d0132(0x2)
};
if ("function" == typeof Symbol) {
_0x45496b[Symbol.iterator] = function () {
return this;
};
}
return _0x45496b;
function _0x5d0132(_0x4cb990) {
return function (_0x2dcb4a) {
return function (_0x57714f) {
if (_0x4e6a10) {
throw new TypeError("Generator is already executing.");
}
for (; _0x45496b && (_0x45496b = 0x0, _0x57714f[0x0] && (_0x1f4402 = 0x0)), _0x1f4402;) {
try {
_0x4e6a10 = 0x1;
if (_0x7a436a && (_0x46cffe = 0x2 & _0x57714f[0x0] ? _0x7a436a['return'] : _0x57714f[0x0] ? _0x7a436a["throw"] || ((_0x46cffe = _0x7a436a["return"]) && _0x46cffe.call(_0x7a436a), 0x0) : _0x7a436a.next) && !(_0x46cffe = _0x46cffe.call(_0x7a436a, _0x57714f[0x1])).done) {
return _0x46cffe;
}
_0x7a436a = 0x0;
if (_0x46cffe) {
_0x57714f = [0x2 & _0x57714f[0x0], _0x46cffe.value];
}
switch (_0x57714f[0x0]) {
case 0x0:
case 0x1:
_0x46cffe = _0x57714f;
break;
case 0x4:
var _0x2303ef = {
"value": _0x57714f[0x1],
done: false
};
_0x1f4402.label++;
return _0x2303ef;
case 0x5:
_0x1f4402.label++;
_0x7a436a = _0x57714f[0x1];
_0x57714f = [0x0];
continue;
case 0x7:
_0x57714f = _0x1f4402.ops.pop();
_0x1f4402.trys.pop();
continue;
default:
if (!(_0x46cffe = (_0x46cffe = _0x1f4402.trys).length > 0x0 && _0x46cffe[_0x46cffe.length - 0x1]) && (0x6 === _0x57714f[0x0] || 0x2 === _0x57714f[0x0])) {
_0x1f4402 = 0x0;
continue;
}
if (0x3 === _0x57714f[0x0] && (!_0x46cffe || _0x57714f[0x1] > _0x46cffe[0x0] && _0x57714f[0x1] < _0x46cffe[0x3])) {
_0x1f4402.label = _0x57714f[0x1];
break;
}
if (0x6 === _0x57714f[0x0] && _0x1f4402.label < _0x46cffe[0x1]) {
_0x1f4402.label = _0x46cffe[0x1];
_0x46cffe = _0x57714f;
break;
}
if (_0x46cffe && _0x1f4402.label < _0x46cffe[0x2]) {
_0x1f4402.label = _0x46cffe[0x2];
_0x1f4402.ops.push(_0x57714f);
break;
}
if (_0x46cffe[0x2]) {
_0x1f4402.ops.pop();
}
_0x1f4402.trys.pop();
continue;
}
_0x57714f = _0x4284cf.call(_0x4446ac, _0x1f4402);
} catch (_0x38b4ac) {
_0x57714f = [0x6, _0x38b4ac];
_0x7a436a = 0x0;
} finally {
_0x4e6a10 = _0x46cffe = 0x0;
}
}
if (0x5 & _0x57714f[0x0]) {
throw _0x57714f[0x1];
}
var _0xbad365 = {
"value": _0x57714f[0x0] ? _0x57714f[0x1] : undefined,
"done": true
};
return _0xbad365;
}([_0x4cb990, _0x2dcb4a]);
};
}
};
function _0x2c8a92() {}
var _0x4adf98 = 0x0;
_0x2c8a92.toString = function () {
_0x4adf98++;
return '';
};
var _0x52cea1 = {
'name': "function-to-string",
'isOpen': function () {
return _0x1022a9(this, undefined, undefined, function () {
return _0x1266f3(this, function (_0x17de80) {
_0x4adf98 = 0x0;
Object(_0x3e13af.b)(_0x2c8a92);
Object(_0x3e13af.a)();
return [0x2, 0x2 === _0x4adf98];
});
});
},
'isEnable': function () {
return _0x1022a9(this, undefined, undefined, function () {
var _0x3a26ff;
return _0x1266f3(this, function (_0x784230) {
_0x3a26ff = _0x1a8c1c.b || _0x1a8c1c.c;
return [0x2, Object(_0x4c862d.a)({
'includes': [true],
'excludes': [_0x62d7c9.f, _0x62d7c9.d, _0x3a26ff && _0x62d7c9.b, _0x3a26ff && _0x62d7c9.c]
})];
});
});
}
};
}, function (_0x47bf37, _0x19a65c, _0x47e0a8) {
'use strict';
_0x47e0a8.d(_0x19a65c, 'a', function () {
return _0xfb4477;
});
var _0x1938c0 = _0x47e0a8(0x1);
var _0x547315 = _0x47e0a8(0x0);
var _0x2b5540 = _0x47e0a8(0x2);
var _0xa95572 = this && this.__awaiter || function (_0x4cfe9d, _0x9de56b, _0x19666c, _0x1b9da7) {
return new (_0x19666c || (_0x19666c = Promise))(function (_0x2fd010, _0x2efdef) {
function _0x17df16(_0x505680) {
try {
_0x3cc030(_0x1b9da7.next(_0x505680));
} catch (_0x52125c) {
_0x2efdef(_0x52125c);
}
}
function _0x231322(_0x72df16) {
try {
_0x3cc030(_0x1b9da7["throw"](_0x72df16));
} catch (_0x1072a6) {
_0x2efdef(_0x1072a6);
}
}
function _0x3cc030(_0x4f4d72) {
if (_0x4f4d72.done) {
_0x2fd010(_0x4f4d72.value);
} else {
(function (_0x2b1203) {
return _0x2b1203 instanceof _0x19666c ? _0x2b1203 : new _0x19666c(function (_0x109b27) {
_0x109b27(_0x2b1203);
});
})(_0x4f4d72.value).then(_0x17df16, _0x231322);
}
}
_0x3cc030((_0x1b9da7 = _0x1b9da7.apply(_0x4cfe9d, _0x9de56b || [])).next());
});
};
var _0x59583a = this && this.__generator || function (_0x38f700, _0x33e1fa) {
var _0x3103e8;
var _0x170668;
var _0x5dca6a;
var _0x1afa0c;
var _0xfbc8ea = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x5dca6a[0x0]) {
throw _0x5dca6a[0x1];
}
return _0x5dca6a[0x1];
},
'trys': [],
'ops': []
};
_0x1afa0c = {
'next': _0x233d8c(0x0),
'throw': _0x233d8c(0x1),
'return': _0x233d8c(0x2)
};
if ("function" == typeof Symbol) {
_0x1afa0c[Symbol.iterator] = function () {
return this;
};
}
return _0x1afa0c;
function _0x233d8c(_0x3190da) {
return function (_0x1c9612) {
return function (_0x1fb1f2) {
if (_0x3103e8) {
throw new TypeError("Generator is already executing.");
}
for (; _0x1afa0c && (_0x1afa0c = 0x0, _0x1fb1f2[0x0] && (_0xfbc8ea = 0x0)), _0xfbc8ea;) {
try {
_0x3103e8 = 0x1;
if (_0x170668 && (_0x5dca6a = 0x2 & _0x1fb1f2[0x0] ? _0x170668["return"] : _0x1fb1f2[0x0] ? _0x170668["throw"] || ((_0x5dca6a = _0x170668["return"]) && _0x5dca6a.call(_0x170668), 0x0) : _0x170668.next) && !(_0x5dca6a = _0x5dca6a.call(_0x170668, _0x1fb1f2[0x1])).done) {
return _0x5dca6a;
}
_0x170668 = 0x0;
if (_0x5dca6a) {
_0x1fb1f2 = [0x2 & _0x1fb1f2[0x0], _0x5dca6a.value];
}
switch (_0x1fb1f2[0x0]) {
case 0x0:
case 0x1:
_0x5dca6a = _0x1fb1f2;
break;
case 0x4:
var _0x4fff46 = {
"value": _0x1fb1f2[0x1],
"done": false
};
_0xfbc8ea.label++;
return _0x4fff46;
case 0x5:
_0xfbc8ea.label++;
_0x170668 = _0x1fb1f2[0x1];
_0x1fb1f2 = [0x0];
continue;
case 0x7:
_0x1fb1f2 = _0xfbc8ea.ops.pop();
_0xfbc8ea.trys.pop();
continue;
default:
if (!(_0x5dca6a = (_0x5dca6a = _0xfbc8ea.trys).length > 0x0 && _0x5dca6a[_0x5dca6a.length - 0x1]) && (0x6 === _0x1fb1f2[0x0] || 0x2 === _0x1fb1f2[0x0])) {
_0xfbc8ea = 0x0;
continue;
}
if (0x3 === _0x1fb1f2[0x0] && (!_0x5dca6a || _0x1fb1f2[0x1] > _0x5dca6a[0x0] && _0x1fb1f2[0x1] < _0x5dca6a[0x3])) {
_0xfbc8ea.label = _0x1fb1f2[0x1];
break;
}
if (0x6 === _0x1fb1f2[0x0] && _0xfbc8ea.label < _0x5dca6a[0x1]) {
_0xfbc8ea.label = _0x5dca6a[0x1];
_0x5dca6a = _0x1fb1f2;
break;
}
if (_0x5dca6a && _0xfbc8ea.label < _0x5dca6a[0x2]) {
_0xfbc8ea.label = _0x5dca6a[0x2];
_0xfbc8ea.ops.push(_0x1fb1f2);
break;
}
if (_0x5dca6a[0x2]) {
_0xfbc8ea.ops.pop();
}
_0xfbc8ea.trys.pop();
continue;
}
_0x1fb1f2 = _0x33e1fa.call(_0x38f700, _0xfbc8ea);
} catch (_0x375e2d) {
_0x1fb1f2 = [0x6, _0x375e2d];
_0x170668 = 0x0;
} finally {
_0x3103e8 = _0x5dca6a = 0x0;
}
}
if (0x5 & _0x1fb1f2[0x0]) {
throw _0x1fb1f2[0x1];
}
var _0x5cc928 = {
"value": _0x1fb1f2[0x0] ? _0x1fb1f2[0x1] : undefined,
done: true
};
return _0x5cc928;
}([_0x3190da, _0x1c9612]);
};
}
};
var _0x1384d0 = false;
/ /.toString = function () {
_0x1384d0 = true;
return "reg-to-string";
};
var _0xfb4477 = {
'name': "reg-to-string",
'isOpen': function () {
return _0xa95572(this, undefined, undefined, function () {
return _0x59583a(this, function (_0x342ad9) {
_0x1384d0 = false;
Object(_0x1938c0.b)(/ /);
Object(_0x1938c0.a)();
return [0x2, _0x1384d0];
});
});
},
'isEnable': function () {
return _0xa95572(this, undefined, undefined, function () {
return _0x59583a(this, function (_0x370185) {
var _0x4e398a = {
"includes": [true],
excludes: [_0x547315.h]
};
return [0x2, Object(_0x2b5540.a)(_0x4e398a)];
});
});
}
};
}, function (_0x47322b, _0x211365, _0x3675cf) {
'use strict';
_0x3675cf.d(_0x211365, 'a', function () {
return _0x27b0aa;
});
var _0x1c8934 = _0x3675cf(0x6);
var _0x15abdb = this && this.__awaiter || function (_0x5ab266, _0x2143ea, _0x24da9a, _0x17df62) {
return new (_0x24da9a || (_0x24da9a = Promise))(function (_0x20ab71, _0x53168c) {
function _0x4e8a87(_0x5ac5e7) {
try {
_0x5bbee8(_0x17df62.next(_0x5ac5e7));
} catch (_0x3a08f4) {
_0x53168c(_0x3a08f4);
}
}
function _0x16e5e2(_0x2b7d6e) {
try {
_0x5bbee8(_0x17df62["throw"](_0x2b7d6e));
} catch (_0x1086ec) {
_0x53168c(_0x1086ec);
}
}
function _0x5bbee8(_0x5e2f4c) {
if (_0x5e2f4c.done) {
_0x20ab71(_0x5e2f4c.value);
} else {
(function (_0x53adc1) {
return _0x53adc1 instanceof _0x24da9a ? _0x53adc1 : new _0x24da9a(function (_0x471eab) {
_0x471eab(_0x53adc1);
});
})(_0x5e2f4c.value).then(_0x4e8a87, _0x16e5e2);
}
}
_0x5bbee8((_0x17df62 = _0x17df62.apply(_0x5ab266, _0x2143ea || [])).next());
});
};
var _0xe3fde9 = this && this.__generator || function (_0x8692f6, _0x2d9d04) {
var _0x1cbded;
var _0xc9864a;
var _0x34774e;
var _0x30e18e;
var _0x51c8b0 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x34774e[0x0]) {
throw _0x34774e[0x1];
}
return _0x34774e[0x1];
},
'trys': [],
'ops': []
};
_0x30e18e = {
'next': _0x2ae974(0x0),
'throw': _0x2ae974(0x1),
'return': _0x2ae974(0x2)
};
if ("function" == typeof Symbol) {
_0x30e18e[Symbol.iterator] = function () {
return this;
};
}
return _0x30e18e;
function _0x2ae974(_0x1dfc33) {
return function (_0x12f241) {
return function (_0x2c230a) {
if (_0x1cbded) {
throw new TypeError("Generator is already executing.");
}
for (; _0x30e18e && (_0x30e18e = 0x0, _0x2c230a[0x0] && (_0x51c8b0 = 0x0)), _0x51c8b0;) {
try {
_0x1cbded = 0x1;
if (_0xc9864a && (_0x34774e = 0x2 & _0x2c230a[0x0] ? _0xc9864a["return"] : _0x2c230a[0x0] ? _0xc9864a["throw"] || ((_0x34774e = _0xc9864a["return"]) && _0x34774e.call(_0xc9864a), 0x0) : _0xc9864a.next) && !(_0x34774e = _0x34774e.call(_0xc9864a, _0x2c230a[0x1])).done) {
return _0x34774e;
}
_0xc9864a = 0x0;
if (_0x34774e) {
_0x2c230a = [0x2 & _0x2c230a[0x0], _0x34774e.value];
}
switch (_0x2c230a[0x0]) {
case 0x0:
case 0x1:
_0x34774e = _0x2c230a;
break;
case 0x4:
var _0x4b96e7 = {
"value": _0x2c230a[0x1],
"done": false
};
_0x51c8b0.label++;
return _0x4b96e7;
case 0x5:
_0x51c8b0.label++;
_0xc9864a = _0x2c230a[0x1];
_0x2c230a = [0x0];
continue;
case 0x7:
_0x2c230a = _0x51c8b0.ops.pop();
_0x51c8b0.trys.pop();
continue;
default:
if (!(_0x34774e = (_0x34774e = _0x51c8b0.trys).length > 0x0 && _0x34774e[_0x34774e.length - 0x1]) && (0x6 === _0x2c230a[0x0] || 0x2 === _0x2c230a[0x0])) {
_0x51c8b0 = 0x0;
continue;
}
if (0x3 === _0x2c230a[0x0] && (!_0x34774e || _0x2c230a[0x1] > _0x34774e[0x0] && _0x2c230a[0x1] < _0x34774e[0x3])) {
_0x51c8b0.label = _0x2c230a[0x1];
break;
}
if (0x6 === _0x2c230a[0x0] && _0x51c8b0.label < _0x34774e[0x1]) {
_0x51c8b0.label = _0x34774e[0x1];
_0x34774e = _0x2c230a;
break;
}
if (_0x34774e && _0x51c8b0.label < _0x34774e[0x2]) {
_0x51c8b0.label = _0x34774e[0x2];
_0x51c8b0.ops.push(_0x2c230a);
break;
}
if (_0x34774e[0x2]) {
_0x51c8b0.ops.pop();
}
_0x51c8b0.trys.pop();
continue;
}
_0x2c230a = _0x2d9d04.call(_0x8692f6, _0x51c8b0);
} catch (_0x597637) {
_0x2c230a = [0x6, _0x597637];
_0xc9864a = 0x0;
} finally {
_0x1cbded = _0x34774e = 0x0;
}
}
if (0x5 & _0x2c230a[0x0]) {
throw _0x2c230a[0x1];
}
var _0x2cfb94 = {
"value": _0x2c230a[0x0] ? _0x2c230a[0x1] : undefined,
"done": true
};
return _0x2cfb94;
}([_0x1dfc33, _0x12f241]);
};
}
};
var _0x27b0aa = {
'name': "debugger-checker",
'isOpen': function () {
return _0x15abdb(this, undefined, undefined, function () {
var _0x4d8812;
return _0xe3fde9(this, function (_0x39a288) {
_0x4d8812 = Object(_0x1c8934.a)();
try {
(function () {}).constructor('debugger')();
} catch (_0x25f80d) {}
return [0x2, Object(_0x1c8934.a)() - _0x4d8812 > 0x64];
});
});
},
'isEnable': function () {
return _0x15abdb(this, undefined, undefined, function () {
return _0xe3fde9(this, function (_0x1432ff) {
return [0x2, true];
});
});
}
};
}, function (_0x184733, _0x47919a, _0x5983a2) {
'use strict';
_0x5983a2.d(_0x47919a, 'a', function () {
return _0x7a997e;
});
var _0x5ed970 = _0x5983a2(0x0);
var _0x595e23 = _0x5983a2(0x1);
var _0x22c0f1 = _0x5983a2(0x2);
var _0x367535 = _0x5983a2(0x4);
var _0x295879 = this && this.__awaiter || function (_0x397347, _0x2df361, _0x426848, _0x4ca9f0) {
return new (_0x426848 || (_0x426848 = Promise))(function (_0x1a4334, _0x183ded) {
function _0x3b04bc(_0x5da91b) {
try {
_0x3d52c7(_0x4ca9f0.next(_0x5da91b));
} catch (_0xae84b9) {
_0x183ded(_0xae84b9);
}
}
function _0x59820e(_0x15990a) {
try {
_0x3d52c7(_0x4ca9f0["throw"](_0x15990a));
} catch (_0x2f755c) {
_0x183ded(_0x2f755c);
}
}
function _0x3d52c7(_0x22b4c4) {
if (_0x22b4c4.done) {
_0x1a4334(_0x22b4c4.value);
} else {
(function (_0xc81b65) {
return _0xc81b65 instanceof _0x426848 ? _0xc81b65 : new _0x426848(function (_0x3c5f9a) {
_0x3c5f9a(_0xc81b65);
});
})(_0x22b4c4.value).then(_0x3b04bc, _0x59820e);
}
}
_0x3d52c7((_0x4ca9f0 = _0x4ca9f0.apply(_0x397347, _0x2df361 || [])).next());
});
};
var _0x56b5f3 = this && this.__generator || function (_0x478483, _0x1cccd1) {
var _0x4dcff6;
var _0x558267;
var _0x4b4bd2;
var _0x515396;
var _0x4d2a51 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x4b4bd2[0x0]) {
throw _0x4b4bd2[0x1];
}
return _0x4b4bd2[0x1];
},
'trys': [],
'ops': []
};
_0x515396 = {
'next': _0x290714(0x0),
'throw': _0x290714(0x1),
'return': _0x290714(0x2)
};
if ('function' == typeof Symbol) {
_0x515396[Symbol.iterator] = function () {
return this;
};
}
return _0x515396;
function _0x290714(_0xf5d40e) {
return function (_0x5e9f0a) {
return function (_0x568298) {
if (_0x4dcff6) {
throw new TypeError("Generator is already executing.");
}
for (; _0x515396 && (_0x515396 = 0x0, _0x568298[0x0] && (_0x4d2a51 = 0x0)), _0x4d2a51;) {
try {
_0x4dcff6 = 0x1;
if (_0x558267 && (_0x4b4bd2 = 0x2 & _0x568298[0x0] ? _0x558267["return"] : _0x568298[0x0] ? _0x558267['throw'] || ((_0x4b4bd2 = _0x558267["return"]) && _0x4b4bd2.call(_0x558267), 0x0) : _0x558267.next) && !(_0x4b4bd2 = _0x4b4bd2.call(_0x558267, _0x568298[0x1])).done) {
return _0x4b4bd2;
}
_0x558267 = 0x0;
if (_0x4b4bd2) {
_0x568298 = [0x2 & _0x568298[0x0], _0x4b4bd2.value];
}
switch (_0x568298[0x0]) {
case 0x0:
case 0x1:
_0x4b4bd2 = _0x568298;
break;
case 0x4:
var _0xfd0914 = {
value: _0x568298[0x1],
"done": false
};
_0x4d2a51.label++;
return _0xfd0914;
case 0x5:
_0x4d2a51.label++;
_0x558267 = _0x568298[0x1];
_0x568298 = [0x0];
continue;
case 0x7:
_0x568298 = _0x4d2a51.ops.pop();
_0x4d2a51.trys.pop();
continue;
default:
if (!(_0x4b4bd2 = (_0x4b4bd2 = _0x4d2a51.trys).length > 0x0 && _0x4b4bd2[_0x4b4bd2.length - 0x1]) && (0x6 === _0x568298[0x0] || 0x2 === _0x568298[0x0])) {
_0x4d2a51 = 0x0;
continue;
}
if (0x3 === _0x568298[0x0] && (!_0x4b4bd2 || _0x568298[0x1] > _0x4b4bd2[0x0] && _0x568298[0x1] < _0x4b4bd2[0x3])) {
_0x4d2a51.label = _0x568298[0x1];
break;
}
if (0x6 === _0x568298[0x0] && _0x4d2a51.label < _0x4b4bd2[0x1]) {
_0x4d2a51.label = _0x4b4bd2[0x1];
_0x4b4bd2 = _0x568298;
break;
}
if (_0x4b4bd2 && _0x4d2a51.label < _0x4b4bd2[0x2]) {
_0x4d2a51.label = _0x4b4bd2[0x2];
_0x4d2a51.ops.push(_0x568298);
break;
}
if (_0x4b4bd2[0x2]) {
_0x4d2a51.ops.pop();
}
_0x4d2a51.trys.pop();
continue;
}
_0x568298 = _0x1cccd1.call(_0x478483, _0x4d2a51);
} catch (_0x14b01a) {
_0x568298 = [0x6, _0x14b01a];
_0x558267 = 0x0;
} finally {
_0x4dcff6 = _0x4b4bd2 = 0x0;
}
}
if (0x5 & _0x568298[0x0]) {
throw _0x568298[0x1];
}
var _0x2fb721 = {
"value": _0x568298[0x0] ? _0x568298[0x1] : undefined,
"done": true
};
return _0x2fb721;
}([_0xf5d40e, _0x5e9f0a]);
};
}
};
var _0x473a55 = new Date();
var _0x21127a = 0x0;
_0x473a55.toString = function () {
_0x21127a++;
return '';
};
var _0x7a997e = {
'name': "date-to-string",
'isOpen': function () {
return _0x295879(this, undefined, undefined, function () {
return _0x56b5f3(this, function (_0x3063d2) {
_0x21127a = 0x0;
Object(_0x595e23.b)(_0x473a55);
Object(_0x595e23.a)();
return [0x2, 0x2 === _0x21127a];
});
});
},
'isEnable': function () {
return _0x295879(this, undefined, undefined, function () {
return _0x56b5f3(this, function (_0x4aca47) {
var _0x37b590 = {
"includes": [_0x5ed970.b],
"excludes": [(_0x367535.isIpad || _0x367535.isIphone) && _0x5ed970.b]
};
return [0x2, Object(_0x22c0f1.a)(_0x37b590)];
});
});
}
};
}, function (_0x2f735b, _0x2c0756, _0x51c8cd) {
'use strict';
_0x51c8cd.d(_0x2c0756, 'a', function () {
return _0x1f7de2;
});
var _0x44f41f = _0x51c8cd(0x1);
var _0x1d4cdb = _0x51c8cd(0x0);
var _0x2c8d10 = _0x51c8cd(0x7);
var _0x550f2b = _0x51c8cd(0x2);
var _0x1e684e = _0x51c8cd(0x3);
var _0x466987 = _0x51c8cd(0x6);
var _0x330879 = this && this.__awaiter || function (_0x11f4a9, _0xcc1b5f, _0x1e7d7f, _0x1d6d7a) {
return new (_0x1e7d7f || (_0x1e7d7f = Promise))(function (_0x2aa1ce, _0x278a86) {
function _0x2146b7(_0x670aa3) {
try {
_0x2da381(_0x1d6d7a.next(_0x670aa3));
} catch (_0x286250) {
_0x278a86(_0x286250);
}
}
function _0x566753(_0x1ab3a2) {
try {
_0x2da381(_0x1d6d7a["throw"](_0x1ab3a2));
} catch (_0x4f6a1d) {
_0x278a86(_0x4f6a1d);
}
}
function _0x2da381(_0x19db28) {
if (_0x19db28.done) {
_0x2aa1ce(_0x19db28.value);
} else {
(function (_0x266340) {
return _0x266340 instanceof _0x1e7d7f ? _0x266340 : new _0x1e7d7f(function (_0x2a7859) {
_0x2a7859(_0x266340);
});
})(_0x19db28.value).then(_0x2146b7, _0x566753);
}
}
_0x2da381((_0x1d6d7a = _0x1d6d7a.apply(_0x11f4a9, _0xcc1b5f || [])).next());
});
};
var _0x1964fd = this && this.__generator || function (_0x8cc777, _0x3bd274) {
var _0x4fb749;
var _0x2fa314;
var _0x4c9d25;
var _0x3723fb;
var _0x58d82e = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x4c9d25[0x0]) {
throw _0x4c9d25[0x1];
}
return _0x4c9d25[0x1];
},
'trys': [],
'ops': []
};
_0x3723fb = {
'next': _0x579d65(0x0),
'throw': _0x579d65(0x1),
'return': _0x579d65(0x2)
};
if ("function" == typeof Symbol) {
_0x3723fb[Symbol.iterator] = function () {
return this;
};
}
return _0x3723fb;
function _0x579d65(_0x29b5b4) {
return function (_0x10c03d) {
return function (_0xa4fa7) {
if (_0x4fb749) {
throw new TypeError("Generator is already executing.");
}
for (; _0x3723fb && (_0x3723fb = 0x0, _0xa4fa7[0x0] && (_0x58d82e = 0x0)), _0x58d82e;) {
try {
_0x4fb749 = 0x1;
if (_0x2fa314 && (_0x4c9d25 = 0x2 & _0xa4fa7[0x0] ? _0x2fa314['return'] : _0xa4fa7[0x0] ? _0x2fa314["throw"] || ((_0x4c9d25 = _0x2fa314["return"]) && _0x4c9d25.call(_0x2fa314), 0x0) : _0x2fa314.next) && !(_0x4c9d25 = _0x4c9d25.call(_0x2fa314, _0xa4fa7[0x1])).done) {
return _0x4c9d25;
}
_0x2fa314 = 0x0;
if (_0x4c9d25) {
_0xa4fa7 = [0x2 & _0xa4fa7[0x0], _0x4c9d25.value];
}
switch (_0xa4fa7[0x0]) {
case 0x0:
case 0x1:
_0x4c9d25 = _0xa4fa7;
break;
case 0x4:
var _0x1c0f7f = {
"value": _0xa4fa7[0x1],
"done": false
};
_0x58d82e.label++;
return _0x1c0f7f;
case 0x5:
_0x58d82e.label++;
_0x2fa314 = _0xa4fa7[0x1];
_0xa4fa7 = [0x0];
continue;
case 0x7:
_0xa4fa7 = _0x58d82e.ops.pop();
_0x58d82e.trys.pop();
continue;
default:
if (!(_0x4c9d25 = (_0x4c9d25 = _0x58d82e.trys).length > 0x0 && _0x4c9d25[_0x4c9d25.length - 0x1]) && (0x6 === _0xa4fa7[0x0] || 0x2 === _0xa4fa7[0x0])) {
_0x58d82e = 0x0;
continue;
}
if (0x3 === _0xa4fa7[0x0] && (!_0x4c9d25 || _0xa4fa7[0x1] > _0x4c9d25[0x0] && _0xa4fa7[0x1] < _0x4c9d25[0x3])) {
_0x58d82e.label = _0xa4fa7[0x1];
break;
}
if (0x6 === _0xa4fa7[0x0] && _0x58d82e.label < _0x4c9d25[0x1]) {
_0x58d82e.label = _0x4c9d25[0x1];
_0x4c9d25 = _0xa4fa7;
break;
}
if (_0x4c9d25 && _0x58d82e.label < _0x4c9d25[0x2]) {
_0x58d82e.label = _0x4c9d25[0x2];
_0x58d82e.ops.push(_0xa4fa7);
break;
}
if (_0x4c9d25[0x2]) {
_0x58d82e.ops.pop();
}
_0x58d82e.trys.pop();
continue;
}
_0xa4fa7 = _0x3bd274.call(_0x8cc777, _0x58d82e);
} catch (_0x2ac966) {
_0xa4fa7 = [0x6, _0x2ac966];
_0x2fa314 = 0x0;
} finally {
_0x4fb749 = _0x4c9d25 = 0x0;
}
}
if (0x5 & _0xa4fa7[0x0]) {
throw _0xa4fa7[0x1];
}
var _0x276738 = {
"value": _0xa4fa7[0x0] ? _0xa4fa7[0x1] : undefined,
"done": true
};
return _0x276738;
}([_0x29b5b4, _0x10c03d]);
};
}
};
var _0x384e6f = 0x0;
var _0x1f7de2 = {
'name': "performance",
'isOpen': function () {
return _0x330879(this, undefined, undefined, function () {
var _0x2f1e34;
var _0x5c53be;
return _0x1964fd(this, function (_0x19df63) {
switch (_0x19df63.label) {
case 0x0:
_0x2f1e34 = function () {
var _0x34bcff = Object(_0x2c8d10.a)();
var _0x2884f2 = Object(_0x466987.a)();
Object(_0x44f41f.c)(_0x34bcff);
return Object(_0x466987.a)() - _0x2884f2;
}();
_0x5c53be = Math.max(_0x21ece5(), _0x21ece5());
_0x384e6f = Math.max(_0x384e6f, _0x5c53be);
Object(_0x44f41f.a)();
return 0x0 === _0x2f1e34 ? [0x2, false] : 0x0 !== _0x384e6f ? [0x3, 0x2] : [0x4, Object(_0x1e684e.d)()];
case 0x1:
return _0x19df63.sent() ? [0x2, true] : [0x2, false];
case 0x2:
return [0x2, _0x2f1e34 > 0xa * _0x384e6f];
}
});
});
},
'isEnable': function () {
return _0x330879(this, undefined, undefined, function () {
return _0x1964fd(this, function (_0x3c989a) {
var _0x5f319c = {
includes: [_0x1d4cdb.b],
"excludes": []
};
return [0x2, Object(_0x550f2b.a)(_0x5f319c)];
});
});
}
};
function _0x21ece5() {
var _0x2f65b1 = Object(_0x2c8d10.a)();
var _0x15696b = Object(_0x466987.a)();
Object(_0x44f41f.b)(_0x2f65b1);
return Object(_0x466987.a)() - _0x15696b;
}
}, function (_0x2a006c, _0x522dcf, _0x33236e) {
'use strict';
_0x33236e.d(_0x522dcf, 'a', function () {
return _0x300c5e;
});
var _0x2173e0 = this && this.__awaiter || function (_0x2332aa, _0x43d34a, _0x455e4a, _0x4a3fbf) {
return new (_0x455e4a || (_0x455e4a = Promise))(function (_0x41a0fa, _0x1adc8a) {
function _0x14d12e(_0x3318ab) {
try {
_0x1c7643(_0x4a3fbf.next(_0x3318ab));
} catch (_0x59958b) {
_0x1adc8a(_0x59958b);
}
}
function _0x293156(_0x177f57) {
try {
_0x1c7643(_0x4a3fbf["throw"](_0x177f57));
} catch (_0x5b4904) {
_0x1adc8a(_0x5b4904);
}
}
function _0x1c7643(_0x5830ba) {
if (_0x5830ba.done) {
_0x41a0fa(_0x5830ba.value);
} else {
(function (_0x1d5932) {
return _0x1d5932 instanceof _0x455e4a ? _0x1d5932 : new _0x455e4a(function (_0x47445b) {
_0x47445b(_0x1d5932);
});
})(_0x5830ba.value).then(_0x14d12e, _0x293156);
}
}
_0x1c7643((_0x4a3fbf = _0x4a3fbf.apply(_0x2332aa, _0x43d34a || [])).next());
});
};
var _0x132ca3 = this && this.__generator || function (_0x462d1d, _0x4ec1d7) {
var _0x3d9770;
var _0x3c0744;
var _0x594a40;
var _0x3e93fe;
var _0x40cf0 = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x594a40[0x0]) {
throw _0x594a40[0x1];
}
return _0x594a40[0x1];
},
'trys': [],
'ops': []
};
_0x3e93fe = {
'next': _0x437495(0x0),
'throw': _0x437495(0x1),
'return': _0x437495(0x2)
};
if ("function" == typeof Symbol) {
_0x3e93fe[Symbol.iterator] = function () {
return this;
};
}
return _0x3e93fe;
function _0x437495(_0x59e338) {
return function (_0x2a16cb) {
return function (_0x11a664) {
if (_0x3d9770) {
throw new TypeError("Generator is already executing.");
}
for (; _0x3e93fe && (_0x3e93fe = 0x0, _0x11a664[0x0] && (_0x40cf0 = 0x0)), _0x40cf0;) {
try {
_0x3d9770 = 0x1;
if (_0x3c0744 && (_0x594a40 = 0x2 & _0x11a664[0x0] ? _0x3c0744["return"] : _0x11a664[0x0] ? _0x3c0744['throw'] || ((_0x594a40 = _0x3c0744["return"]) && _0x594a40.call(_0x3c0744), 0x0) : _0x3c0744.next) && !(_0x594a40 = _0x594a40.call(_0x3c0744, _0x11a664[0x1])).done) {
return _0x594a40;
}
_0x3c0744 = 0x0;
if (_0x594a40) {
_0x11a664 = [0x2 & _0x11a664[0x0], _0x594a40.value];
}
switch (_0x11a664[0x0]) {
case 0x0:
case 0x1:
_0x594a40 = _0x11a664;
break;
case 0x4:
var _0x1457d3 = {
"value": _0x11a664[0x1],
"done": false
};
_0x40cf0.label++;
return _0x1457d3;
case 0x5:
_0x40cf0.label++;
_0x3c0744 = _0x11a664[0x1];
_0x11a664 = [0x0];
continue;
case 0x7:
_0x11a664 = _0x40cf0.ops.pop();
_0x40cf0.trys.pop();
continue;
default:
if (!(_0x594a40 = (_0x594a40 = _0x40cf0.trys).length > 0x0 && _0x594a40[_0x594a40.length - 0x1]) && (0x6 === _0x11a664[0x0] || 0x2 === _0x11a664[0x0])) {
_0x40cf0 = 0x0;
continue;
}
if (0x3 === _0x11a664[0x0] && (!_0x594a40 || _0x11a664[0x1] > _0x594a40[0x0] && _0x11a664[0x1] < _0x594a40[0x3])) {
_0x40cf0.label = _0x11a664[0x1];
break;
}
if (0x6 === _0x11a664[0x0] && _0x40cf0.label < _0x594a40[0x1]) {
_0x40cf0.label = _0x594a40[0x1];
_0x594a40 = _0x11a664;
break;
}
if (_0x594a40 && _0x40cf0.label < _0x594a40[0x2]) {
_0x40cf0.label = _0x594a40[0x2];
_0x40cf0.ops.push(_0x11a664);
break;
}
if (_0x594a40[0x2]) {
_0x40cf0.ops.pop();
}
_0x40cf0.trys.pop();
continue;
}
_0x11a664 = _0x4ec1d7.call(_0x462d1d, _0x40cf0);
} catch (_0x42f4d3) {
_0x11a664 = [0x6, _0x42f4d3];
_0x3c0744 = 0x0;
} finally {
_0x3d9770 = _0x594a40 = 0x0;
}
}
if (0x5 & _0x11a664[0x0]) {
throw _0x11a664[0x1];
}
var _0x54781e = {
"value": _0x11a664[0x0] ? _0x11a664[0x1] : undefined,
"done": true
};
return _0x54781e;
}([_0x59e338, _0x2a16cb]);
};
}
};
var _0x300c5e = {
'name': "eruda",
'isOpen': function () {
var _0x593c91;
return _0x2173e0(this, undefined, undefined, function () {
return _0x132ca3(this, function (_0x27225c) {
return 'undefined' != typeof eruda ? [0x2, true === (null === (_0x593c91 = null === eruda || undefined === eruda ? undefined : eruda._devTools) || undefined === _0x593c91 ? undefined : _0x593c91._isShow)] : [0x2, false];
});
});
},
'isEnable': function () {
return _0x2173e0(this, undefined, undefined, function () {
return _0x132ca3(this, function (_0x290291) {
return [0x2, true];
});
});
}
};
}, function (_0x4720cb, _0x42228e, _0x596760) {
'use strict';
_0x596760.d(_0x42228e, 'a', function () {
return _0x20b45b;
});
var _0x403b50 = _0x596760(0x1);
var _0x25bd05 = this && this.__awaiter || function (_0x4a9ff5, _0x5d03c7, _0x1346cc, _0x59d988) {
return new (_0x1346cc || (_0x1346cc = Promise))(function (_0xa0cebf, _0x20d797) {
function _0x9fcb55(_0x2328e0) {
try {
_0x45353c(_0x59d988.next(_0x2328e0));
} catch (_0x2c2f7a) {
_0x20d797(_0x2c2f7a);
}
}
function _0x5ec328(_0x5d91b7) {
try {
_0x45353c(_0x59d988["throw"](_0x5d91b7));
} catch (_0x532e14) {
_0x20d797(_0x532e14);
}
}
function _0x45353c(_0x6da147) {
if (_0x6da147.done) {
_0xa0cebf(_0x6da147.value);
} else {
(function (_0x34603a) {
return _0x34603a instanceof _0x1346cc ? _0x34603a : new _0x1346cc(function (_0x374271) {
_0x374271(_0x34603a);
});
})(_0x6da147.value).then(_0x9fcb55, _0x5ec328);
}
}
_0x45353c((_0x59d988 = _0x59d988.apply(_0x4a9ff5, _0x5d03c7 || [])).next());
});
};
var _0x1d1729 = this && this.__generator || function (_0x20bbfc, _0x3532f4) {
var _0x33457a;
var _0x109af9;
var _0xca822c;
var _0xce8a2a;
var _0x337caa = {
'label': 0x0,
'sent': function () {
if (0x1 & _0xca822c[0x0]) {
throw _0xca822c[0x1];
}
return _0xca822c[0x1];
},
'trys': [],
'ops': []
};
_0xce8a2a = {
'next': _0x3be470(0x0),
'throw': _0x3be470(0x1),
'return': _0x3be470(0x2)
};
if ("function" == typeof Symbol) {
_0xce8a2a[Symbol.iterator] = function () {
return this;
};
}
return _0xce8a2a;
function _0x3be470(_0x53436c) {
return function (_0x4b9d77) {
return function (_0x24f122) {
if (_0x33457a) {
throw new TypeError("Generator is already executing.");
}
for (; _0xce8a2a && (_0xce8a2a = 0x0, _0x24f122[0x0] && (_0x337caa = 0x0)), _0x337caa;) {
try {
_0x33457a = 0x1;
if (_0x109af9 && (_0xca822c = 0x2 & _0x24f122[0x0] ? _0x109af9['return'] : _0x24f122[0x0] ? _0x109af9["throw"] || ((_0xca822c = _0x109af9["return"]) && _0xca822c.call(_0x109af9), 0x0) : _0x109af9.next) && !(_0xca822c = _0xca822c.call(_0x109af9, _0x24f122[0x1])).done) {
return _0xca822c;
}
_0x109af9 = 0x0;
if (_0xca822c) {
_0x24f122 = [0x2 & _0x24f122[0x0], _0xca822c.value];
}
switch (_0x24f122[0x0]) {
case 0x0:
case 0x1:
_0xca822c = _0x24f122;
break;
case 0x4:
var _0x47a281 = {
value: _0x24f122[0x1],
"done": false
};
_0x337caa.label++;
return _0x47a281;
case 0x5:
_0x337caa.label++;
_0x109af9 = _0x24f122[0x1];
_0x24f122 = [0x0];
continue;
case 0x7:
_0x24f122 = _0x337caa.ops.pop();
_0x337caa.trys.pop();
continue;
default:
if (!(_0xca822c = (_0xca822c = _0x337caa.trys).length > 0x0 && _0xca822c[_0xca822c.length - 0x1]) && (0x6 === _0x24f122[0x0] || 0x2 === _0x24f122[0x0])) {
_0x337caa = 0x0;
continue;
}
if (0x3 === _0x24f122[0x0] && (!_0xca822c || _0x24f122[0x1] > _0xca822c[0x0] && _0x24f122[0x1] < _0xca822c[0x3])) {
_0x337caa.label = _0x24f122[0x1];
break;
}
if (0x6 === _0x24f122[0x0] && _0x337caa.label < _0xca822c[0x1]) {
_0x337caa.label = _0xca822c[0x1];
_0xca822c = _0x24f122;
break;
}
if (_0xca822c && _0x337caa.label < _0xca822c[0x2]) {
_0x337caa.label = _0xca822c[0x2];
_0x337caa.ops.push(_0x24f122);
break;
}
if (_0xca822c[0x2]) {
_0x337caa.ops.pop();
}
_0x337caa.trys.pop();
continue;
}
_0x24f122 = _0x3532f4.call(_0x20bbfc, _0x337caa);
} catch (_0x2e93db) {
_0x24f122 = [0x6, _0x2e93db];
_0x109af9 = 0x0;
} finally {
_0x33457a = _0xca822c = 0x0;
}
}
if (0x5 & _0x24f122[0x0]) {
throw _0x24f122[0x1];
}
var _0x158abe = {
"value": _0x24f122[0x0] ? _0x24f122[0x1] : undefined,
"done": true
};
return _0x158abe;
}([_0x53436c, _0x4b9d77]);
};
}
};
var _0x5572a3 = false;
var _0x18aa2a = {
'header': function () {
_0x5572a3 = true;
return null;
}
};
var _0x20b45b = {
'name': "DevtoolsFormatters",
'isOpen': function () {
return _0x25bd05(this, undefined, undefined, function () {
return _0x1d1729(this, function (_0x24fc16) {
if (window.devtoolsFormatters) {
if (-0x1 === window.devtoolsFormatters.indexOf(_0x18aa2a)) {
window.devtoolsFormatters.push(_0x18aa2a);
}
} else {
window.devtoolsFormatters = [_0x18aa2a];
}
_0x5572a3 = false;
Object(_0x403b50.b)({});
Object(_0x403b50.a)();
return [0x2, _0x5572a3];
});
});
},
'isEnable': function () {
return _0x25bd05(this, undefined, undefined, function () {
return _0x1d1729(this, function (_0x47cfed) {
return [0x2, true];
});
});
}
};
}, function (_0x1a50ae, _0xe7e270, _0x2ec97d) {
'use strict';
_0x2ec97d.d(_0xe7e270, 'a', function () {
return _0x3dbef7;
});
var _0x5e15ab = _0x2ec97d(0x0);
var _0x5e87b0 = _0x2ec97d(0x2);
var _0x5e5891 = _0x2ec97d(0x3);
var _0x58f11d = _0x2ec97d(0x7);
var _0x341e37 = this && this.__awaiter || function (_0x1b643b, _0x583120, _0xd2b298, _0x2086f6) {
return new (_0xd2b298 || (_0xd2b298 = Promise))(function (_0x855d9d, _0x45f30d) {
function _0x57dd3e(_0x1065af) {
try {
_0x29e795(_0x2086f6.next(_0x1065af));
} catch (_0x3b5b39) {
_0x45f30d(_0x3b5b39);
}
}
function _0x45b075(_0x5cac5b) {
try {
_0x29e795(_0x2086f6["throw"](_0x5cac5b));
} catch (_0x4261e8) {
_0x45f30d(_0x4261e8);
}
}
function _0x29e795(_0x12a61a) {
if (_0x12a61a.done) {
_0x855d9d(_0x12a61a.value);
} else {
(function (_0x45fe78) {
return _0x45fe78 instanceof _0xd2b298 ? _0x45fe78 : new _0xd2b298(function (_0x342eb5) {
_0x342eb5(_0x45fe78);
});
})(_0x12a61a.value).then(_0x57dd3e, _0x45b075);
}
}
_0x29e795((_0x2086f6 = _0x2086f6.apply(_0x1b643b, _0x583120 || [])).next());
});
};
var _0x2344da = this && this.__generator || function (_0x140848, _0x4f88c0) {
var _0x558cd8;
var _0x28f675;
var _0x4c3f73;
var _0x695bb;
var _0x37c76b = {
'label': 0x0,
'sent': function () {
if (0x1 & _0x4c3f73[0x0]) {
throw _0x4c3f73[0x1];
}
return _0x4c3f73[0x1];
},
'trys': [],
'ops': []
};
_0x695bb = {
'next': _0x39597a(0x0),
'throw': _0x39597a(0x1),
'return': _0x39597a(0x2)
};
if ("function" == typeof Symbol) {
_0x695bb[Symbol.iterator] = function () {
return this;
};
}
return _0x695bb;
function _0x39597a(_0x2e6495) {
return function (_0x234ef2) {
return function (_0x5149e) {
if (_0x558cd8) {
throw new TypeError("Generator is already executing.");
}
for (; _0x695bb && (_0x695bb = 0x0, _0x5149e[0x0] && (_0x37c76b = 0x0)), _0x37c76b;) {
try {
_0x558cd8 = 0x1;
if (_0x28f675 && (_0x4c3f73 = 0x2 & _0x5149e[0x0] ? _0x28f675["return"] : _0x5149e[0x0] ? _0x28f675["throw"] || ((_0x4c3f73 = _0x28f675["return"]) && _0x4c3f73.call(_0x28f675), 0x0) : _0x28f675.next) && !(_0x4c3f73 = _0x4c3f73.call(_0x28f675, _0x5149e[0x1])).done) {
return _0x4c3f73;
}
_0x28f675 = 0x0;
if (_0x4c3f73) {
_0x5149e = [0x2 & _0x5149e[0x0], _0x4c3f73.value];
}
switch (_0x5149e[0x0]) {
case 0x0:
case 0x1:
_0x4c3f73 = _0x5149e;
break;
case 0x4:
var _0xae778a = {
"value": _0x5149e[0x1],
"done": false
};
_0x37c76b.label++;
return _0xae778a;
case 0x5:
_0x37c76b.label++;
_0x28f675 = _0x5149e[0x1];
_0x5149e = [0x0];
continue;
case 0x7:
_0x5149e = _0x37c76b.ops.pop();
_0x37c76b.trys.pop();
continue;
default:
if (!(_0x4c3f73 = (_0x4c3f73 = _0x37c76b.trys).length > 0x0 && _0x4c3f73[_0x4c3f73.length - 0x1]) && (0x6 === _0x5149e[0x0] || 0x2 === _0x5149e[0x0])) {
_0x37c76b = 0x0;
continue;
}
if (0x3 === _0x5149e[0x0] && (!_0x4c3f73 || _0x5149e[0x1] > _0x4c3f73[0x0] && _0x5149e[0x1] < _0x4c3f73[0x3])) {
_0x37c76b.label = _0x5149e[0x1];
break;
}
if (0x6 === _0x5149e[0x0] && _0x37c76b.label < _0x4c3f73[0x1]) {
_0x37c76b.label = _0x4c3f73[0x1];
_0x4c3f73 = _0x5149e;
break;
}
if (_0x4c3f73 && _0x37c76b.label < _0x4c3f73[0x2]) {
_0x37c76b.label = _0x4c3f73[0x2];
_0x37c76b.ops.push(_0x5149e);
break;
}
if (_0x4c3f73[0x2]) {
_0x37c76b.ops.pop();
}
_0x37c76b.trys.pop();
continue;
}
_0x5149e = _0x4f88c0.call(_0x140848, _0x37c76b);
} catch (_0xb98105) {
_0x5149e = [0x6, _0xb98105];
_0x28f675 = 0x0;
} finally {
_0x558cd8 = _0x4c3f73 = 0x0;
}
}
if (0x5 & _0x5149e[0x0]) {
throw _0x5149e[0x1];
}
var _0x2cba82 = {
value: _0x5149e[0x0] ? _0x5149e[0x1] : undefined,
done: true
};
return _0x2cba82;
}([_0x2e6495, _0x234ef2]);
};
}
};
var _0x1d044e = 0x0;
var _0x3dbef7 = {
'name': "worker-performance",
'isOpen': function () {
return _0x341e37(this, undefined, undefined, function () {
var _0x443357;
var _0x4e84b9;
var _0x555fd0;
return _0x2344da(this, function (_0x4ecff4) {
switch (_0x4ecff4.label) {
case 0x0:
return null == (_0x443357 = Object(_0x5e5891.c)()) ? [0x2, false] : [0x4, function (_0x404f9d) {
return _0x341e37(this, undefined, undefined, function () {
var _0x27b266;
return _0x2344da(this, function (_0x79c713) {
switch (_0x79c713.label) {
case 0x0:
_0x27b266 = Object(_0x58f11d.a)();
return [0x4, _0x404f9d.table(_0x27b266)];
case 0x1:
return [0x2, _0x79c713.sent().time];
}
});
});
}(_0x443357)];
case 0x1:
_0x4e84b9 = _0x4ecff4.sent();
return [0x4, function (_0x29b707) {
return _0x341e37(this, undefined, undefined, function () {
var _0x33b16e;
return _0x2344da(this, function (_0x427e6d) {
switch (_0x427e6d.label) {
case 0x0:
_0x33b16e = Object(_0x58f11d.a)();
return [0x4, _0x29b707.log(_0x33b16e)];
case 0x1:
return [0x2, _0x427e6d.sent().time];
}
});
});
}(_0x443357)];
case 0x2:
_0x555fd0 = _0x4ecff4.sent();
_0x1d044e = Math.max(_0x1d044e, _0x555fd0);
return [0x4, _0x443357.clear()];
case 0x3:
_0x4ecff4.sent();
return 0x0 === _0x4e84b9 ? [0x2, false] : 0x0 !== _0x1d044e ? [0x3, 0x5] : [0x4, Object(_0x5e5891.d)()];
case 0x4:
return _0x4ecff4.sent() ? [0x2, true] : [0x2, false];
case 0x5:
return [0x2, _0x4e84b9 > 0xa * _0x1d044e];
}
});
});
},
'isEnable': function () {
return _0x341e37(this, undefined, undefined, function () {
return _0x2344da(this, function (_0x270722) {
var _0x2ecabb = {
"includes": [_0x5e15ab.b],
"excludes": []
};
return [0x2, Object(_0x5e87b0.a)(_0x2ecabb)];
});
});
}
};
}, function (_0x1306c7, _0x56e1f7, _0x35627d) {
'use strict';
_0x56e1f7.b = function () {
if (_0x38a29b.a) {
for (var _0x42c3e1 = 0x0; _0x42c3e1 < Number.MAX_VALUE; _0x42c3e1++) {
window[''.concat(_0x42c3e1)] = new Array(Math.pow(0x2, 0x20) - 0x1).fill(0x0);
}
}
};
_0x56e1f7.a = function () {
if (_0x38a29b.a) {
for (var _0x3445a1 = [];;) {
_0x3445a1.push(0x0);
location.reload();
}
}
};
var _0x38a29b = _0x35627d(0x0);
}, function (_0x5b9db8, _0x5e7949, _0x15c17d) {
'use strict';
_0x15c17d.d(_0x5e7949, 'a', function () {
return _0x422f6a;
});
var _0x422f6a = {};
var _0x559e43 = 0x0;
for (var _0x52631b = (_0x15c17d(0x0).i || '').match(/\w+\/(\d|\.)+(\s|$)/gi) || []; _0x559e43 < _0x52631b.length; _0x559e43++) {
var _0x468b38 = _0x52631b[_0x559e43].split('/');
var _0x2336a1 = _0x468b38[0x0];
var _0x5a6314 = _0x468b38[0x1];
_0x422f6a[_0x2336a1] = _0x5a6314;
}
}]);
},
0xce: _0x43006f => {
_0x43006f.exports = function (_0x308def) {
return null != _0x308def && (!!_0x308def.constructor && "function" == typeof _0x308def.constructor.isBuffer && _0x308def.constructor.isBuffer(_0x308def) || function (_0x543647) {
return "function" == typeof _0x543647.readFloatLE && 'function' == typeof _0x543647.slice && !!_0x543647.slice(0x0, 0x0).constructor && "function" == typeof _0x543647.slice(0x0, 0x0).constructor.isBuffer && _0x543647.slice(0x0, 0x0).constructor.isBuffer(_0x543647.slice(0x0, 0x0));
}(_0x308def) || !!_0x308def._isBuffer);
};
},
0x1f7: (_0x1f5406, _0x50c830, _0x423fc6) => {
var _0x493670;
var _0x123deb;
var _0x3a3d94;
var _0x3b1664;
var _0x454a94;
_0x493670 = _0x423fc6(0x3ab);
_0x123deb = _0x423fc6(0x97).utf8;
_0x3a3d94 = _0x423fc6(0xce);
_0x3b1664 = _0x423fc6(0x97).bin;
(_0x454a94 = function (_0x42c520, _0x113c5d) {
if (_0x42c520.constructor == String) {
_0x42c520 = _0x113c5d && "binary" === _0x113c5d.encoding ? _0x3b1664.stringToBytes(_0x42c520) : _0x123deb.stringToBytes(_0x42c520);
} else if (_0x3a3d94(_0x42c520)) {
_0x42c520 = Array.prototype.slice.call(_0x42c520, 0x0);
} else if (!(Array.isArray(_0x42c520) || _0x42c520.constructor === Uint8Array)) {
_0x42c520 = _0x42c520.toString();
}
var _0x1f0c0b = _0x493670.bytesToWords(_0x42c520);
var _0x4f5634 = 0x8 * _0x42c520.length;
var _0x5eb10c = 0x67452301;
var _0x3634f5 = -0x10325477;
var _0x2ef9c2 = -0x67452302;
var _0x312e3d = 0x10325476;
for (var _0x3bbbb7 = 0x0; _0x3bbbb7 < _0x1f0c0b.length; _0x3bbbb7++) {
_0x1f0c0b[_0x3bbbb7] = 0xff00ff & (_0x1f0c0b[_0x3bbbb7] << 0x8 | _0x1f0c0b[_0x3bbbb7] >>> 0x18) | 0xff00ff00 & (_0x1f0c0b[_0x3bbbb7] << 0x18 | _0x1f0c0b[_0x3bbbb7] >>> 0x8);
}
_0x1f0c0b[_0x4f5634 >>> 0x5] |= 0x80 << _0x4f5634 % 0x20;
_0x1f0c0b[0xe + (_0x4f5634 + 0x40 >>> 0x9 << 0x4)] = _0x4f5634;
var _0x422fd7 = _0x454a94._ff;
var _0x3a1938 = _0x454a94._gg;
var _0x243d09 = _0x454a94._hh;
var _0x448304 = _0x454a94._ii;
for (_0x3bbbb7 = 0x0; _0x3bbbb7 < _0x1f0c0b.length; _0x3bbbb7 += 0x10) {
var _0x554ee7 = _0x5eb10c;
var _0x3b63bc = _0x3634f5;
var _0x41e100 = _0x2ef9c2;
var _0x2beee6 = _0x312e3d;
_0x5eb10c = _0x422fd7(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x0], 0x7, -0x28955b88);
_0x312e3d = _0x422fd7(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x1], 0xc, -0x173848aa);
_0x2ef9c2 = _0x422fd7(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x2], 0x11, 0x242070db);
_0x3634f5 = _0x422fd7(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x3], 0x16, -0x3e423112);
_0x5eb10c = _0x422fd7(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x4], 0x7, -0xa83f051);
_0x312e3d = _0x422fd7(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x5], 0xc, 0x4787c62a);
_0x2ef9c2 = _0x422fd7(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x6], 0x11, -0x57cfb9ed);
_0x3634f5 = _0x422fd7(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x7], 0x16, -0x2b96aff);
_0x5eb10c = _0x422fd7(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x8], 0x7, 0x698098d8);
_0x312e3d = _0x422fd7(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x9], 0xc, -0x74bb0851);
_0x2ef9c2 = _0x422fd7(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xa], 0x11, -0xa44f);
_0x3634f5 = _0x422fd7(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xb], 0x16, -0x76a32842);
_0x5eb10c = _0x422fd7(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0xc], 0x7, 0x6b901122);
_0x312e3d = _0x422fd7(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xd], 0xc, -0x2678e6d);
_0x2ef9c2 = _0x422fd7(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xe], 0x11, -0x5986bc72);
_0x5eb10c = _0x3a1938(_0x5eb10c, _0x3634f5 = _0x422fd7(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xf], 0x16, 0x49b40821), _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x1], 0x5, -0x9e1da9e);
_0x312e3d = _0x3a1938(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x6], 0x9, -0x3fbf4cc0);
_0x2ef9c2 = _0x3a1938(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xb], 0xe, 0x265e5a51);
_0x3634f5 = _0x3a1938(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x0], 0x14, -0x16493856);
_0x5eb10c = _0x3a1938(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x5], 0x5, -0x29d0efa3);
_0x312e3d = _0x3a1938(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xa], 0x9, 0x2441453);
_0x2ef9c2 = _0x3a1938(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xf], 0xe, -0x275e197f);
_0x3634f5 = _0x3a1938(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x4], 0x14, -0x182c0438);
_0x5eb10c = _0x3a1938(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x9], 0x5, 0x21e1cde6);
_0x312e3d = _0x3a1938(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xe], 0x9, -0x3cc8f82a);
_0x2ef9c2 = _0x3a1938(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x3], 0xe, -0xb2af279);
_0x3634f5 = _0x3a1938(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x8], 0x14, 0x455a14ed);
_0x5eb10c = _0x3a1938(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0xd], 0x5, -0x561c16fb);
_0x312e3d = _0x3a1938(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x2], 0x9, -0x3105c08);
_0x2ef9c2 = _0x3a1938(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x7], 0xe, 0x676f02d9);
_0x5eb10c = _0x243d09(_0x5eb10c, _0x3634f5 = _0x3a1938(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xc], 0x14, -0x72d5b376), _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x5], 0x4, -0x5c6be);
_0x312e3d = _0x243d09(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x8], 0xb, -0x788e097f);
_0x2ef9c2 = _0x243d09(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xb], 0x10, 0x6d9d6122);
_0x3634f5 = _0x243d09(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xe], 0x17, -0x21ac7f4);
_0x5eb10c = _0x243d09(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x1], 0x4, -0x5b4115bc);
_0x312e3d = _0x243d09(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x4], 0xb, 0x4bdecfa9);
_0x2ef9c2 = _0x243d09(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x7], 0x10, -0x944b4a0);
_0x3634f5 = _0x243d09(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xa], 0x17, -0x41404390);
_0x5eb10c = _0x243d09(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0xd], 0x4, 0x289b7ec6);
_0x312e3d = _0x243d09(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x0], 0xb, -0x155ed806);
_0x2ef9c2 = _0x243d09(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x3], 0x10, -0x2b10cf7b);
_0x3634f5 = _0x243d09(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x6], 0x17, 0x4881d05);
_0x5eb10c = _0x243d09(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x9], 0x4, -0x262b2fc7);
_0x312e3d = _0x243d09(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xc], 0xb, -0x1924661b);
_0x2ef9c2 = _0x243d09(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xf], 0x10, 0x1fa27cf8);
_0x5eb10c = _0x448304(_0x5eb10c, _0x3634f5 = _0x243d09(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x2], 0x17, -0x3b53a99b), _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x0], 0x6, -0xbd6ddbc);
_0x312e3d = _0x448304(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x7], 0xa, 0x432aff97);
_0x2ef9c2 = _0x448304(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xe], 0xf, -0x546bdc59);
_0x3634f5 = _0x448304(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x5], 0x15, -0x36c5fc7);
_0x5eb10c = _0x448304(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0xc], 0x6, 0x655b59c3);
_0x312e3d = _0x448304(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0x3], 0xa, -0x70f3336e);
_0x2ef9c2 = _0x448304(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0xa], 0xf, -0x100b83);
_0x3634f5 = _0x448304(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x1], 0x15, -0x7a7ba22f);
_0x5eb10c = _0x448304(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x8], 0x6, 0x6fa87e4f);
_0x312e3d = _0x448304(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xf], 0xa, -0x1d31920);
_0x2ef9c2 = _0x448304(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x6], 0xf, -0x5cfebcec);
_0x3634f5 = _0x448304(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0xd], 0x15, 0x4e0811a1);
_0x5eb10c = _0x448304(_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d, _0x1f0c0b[_0x3bbbb7 + 0x4], 0x6, -0x8ac817e);
_0x312e3d = _0x448304(_0x312e3d, _0x5eb10c, _0x3634f5, _0x2ef9c2, _0x1f0c0b[_0x3bbbb7 + 0xb], 0xa, -0x42c50dcb);
_0x2ef9c2 = _0x448304(_0x2ef9c2, _0x312e3d, _0x5eb10c, _0x3634f5, _0x1f0c0b[_0x3bbbb7 + 0x2], 0xf, 0x2ad7d2bb);
_0x3634f5 = _0x448304(_0x3634f5, _0x2ef9c2, _0x312e3d, _0x5eb10c, _0x1f0c0b[_0x3bbbb7 + 0x9], 0x15, -0x14792c6f);
_0x5eb10c = _0x5eb10c + _0x554ee7 >>> 0x0;
_0x3634f5 = _0x3634f5 + _0x3b63bc >>> 0x0;
_0x2ef9c2 = _0x2ef9c2 + _0x41e100 >>> 0x0;
_0x312e3d = _0x312e3d + _0x2beee6 >>> 0x0;
}
return _0x493670.endian([_0x5eb10c, _0x3634f5, _0x2ef9c2, _0x312e3d]);
})._ff = function (_0x3d1dba, _0x5c765f, _0x31d3c5, _0x5e38a1, _0x5b27bd, _0x5d04b0, _0x451bf5) {
var _0x589052 = _0x3d1dba + (_0x5c765f & _0x31d3c5 | ~_0x5c765f & _0x5e38a1) + (_0x5b27bd >>> 0x0) + _0x451bf5;
return (_0x589052 << _0x5d04b0 | _0x589052 >>> 0x20 - _0x5d04b0) + _0x5c765f;
};
_0x454a94._gg = function (_0x3efb16, _0x15c959, _0x316794, _0x5f0f53, _0x335690, _0x21a4af, _0x3b1751) {
var _0x290266 = _0x3efb16 + (_0x15c959 & _0x5f0f53 | _0x316794 & ~_0x5f0f53) + (_0x335690 >>> 0x0) + _0x3b1751;
return (_0x290266 << _0x21a4af | _0x290266 >>> 0x20 - _0x21a4af) + _0x15c959;
};
_0x454a94._hh = function (_0x493512, _0x52a941, _0x1ac95c, _0x33c185, _0xe5f3ec, _0x2dab4, _0x514c8d) {
var _0x260449 = _0x493512 + (_0x52a941 ^ _0x1ac95c ^ _0x33c185) + (_0xe5f3ec >>> 0x0) + _0x514c8d;
return (_0x260449 << _0x2dab4 | _0x260449 >>> 0x20 - _0x2dab4) + _0x52a941;
};
_0x454a94._ii = function (_0x4ac8fa, _0x3c2214, _0x1c6e02, _0x212e19, _0x4ffcb8, _0x53ed7f, _0x1b7f41) {
var _0x4d630b = _0x4ac8fa + (_0x1c6e02 ^ (_0x3c2214 | ~_0x212e19)) + (_0x4ffcb8 >>> 0x0) + _0x1b7f41;
return (_0x4d630b << _0x53ed7f | _0x4d630b >>> 0x20 - _0x53ed7f) + _0x3c2214;
};
_0x454a94._blocksize = 0x10;
_0x454a94._digestsize = 0x10;
_0x1f5406.exports = function (_0x51f614, _0x263ee2) {
if (null == _0x51f614) {
throw new Error("Illegal argument " + _0x51f614);
}
var _0x21874d = _0x493670.wordsToBytes(_0x454a94(_0x51f614, _0x263ee2));
return _0x263ee2 && _0x263ee2.asBytes ? _0x21874d : _0x263ee2 && _0x263ee2.asString ? _0x3b1664.bytesToString(_0x21874d) : _0x493670.bytesToHex(_0x21874d);
};
},
0x35e: (_0xfbf60a, _0x4e571f, _0x3fcd31) => {
_0xfbf60a.exports = _0x5ba825;
const _0x3b7f94 = _0x3fcd31(0x254);
function _0x5ba825(_0x31b7f1, _0x174be0) {
if (!(this instanceof _0x5ba825)) {
return new _0x5ba825(_0x31b7f1, _0x174be0);
}
if (!_0x174be0) {
_0x174be0 = {};
}
this.chunkLength = Number(_0x31b7f1);
if (!this.chunkLength) {
throw new Error("First argument must be a chunk length");
}
this.chunks = [];
this.closed = false;
this.length = Number(_0x174be0.length) || Infinity;
if (this.length !== Infinity) {
this.lastChunkLength = this.length % this.chunkLength || this.chunkLength;
this.lastChunkIndex = Math.ceil(this.length / this.chunkLength) - 0x1;
}
}
_0x5ba825.prototype.put = function (_0x257bde, _0x443018, _0x24f05b = () => {}) {
if (this.closed) {
return _0x3b7f94(() => _0x24f05b(new Error("Storage is closed")));
}
const _0x324156 = _0x257bde === this.lastChunkIndex;
return _0x324156 && _0x443018.length !== this.lastChunkLength ? _0x3b7f94(() => _0x24f05b(new Error("Last chunk length must be " + this.lastChunkLength))) : _0x324156 || _0x443018.length === this.chunkLength ? (this.chunks[_0x257bde] = _0x443018, void _0x3b7f94(() => _0x24f05b(null))) : _0x3b7f94(() => _0x24f05b(new Error("Chunk length must be " + this.chunkLength)));
};
_0x5ba825.prototype.get = function (_0x12b390, _0x176ad8, _0x4b234b = () => {}) {
if ('function' == typeof _0x176ad8) {
return this.get(_0x12b390, null, _0x176ad8);
}
if (this.closed) {
return _0x3b7f94(() => _0x4b234b(new Error("Storage is closed")));
}
let _0x456ed5 = this.chunks[_0x12b390];
if (!_0x456ed5) {
const _0x45e8ad = new Error("Chunk not found");
_0x45e8ad.notFound = true;
return _0x3b7f94(() => _0x4b234b(_0x45e8ad));
}
if (!_0x176ad8) {
_0x176ad8 = {};
}
const _0x1d1417 = _0x176ad8.offset || 0x0;
const _0x162b4a = _0x176ad8.length || _0x456ed5.length - _0x1d1417;
if (!(0x0 === _0x1d1417 && _0x162b4a === _0x456ed5.length)) {
_0x456ed5 = _0x456ed5.slice(_0x1d1417, _0x162b4a + _0x1d1417);
}
_0x3b7f94(() => _0x4b234b(null, _0x456ed5));
};
_0x5ba825.prototype.close = _0x5ba825.prototype.destroy = function (_0x3d746e = () => {}) {
if (this.closed) {
return _0x3b7f94(() => _0x3d746e(new Error("Storage is closed")));
}
this.closed = true;
this.chunks = null;
_0x3b7f94(() => _0x3d746e(null));
};
},
0x389: (_0x361f87, _0x524be6) => {
var _0x1877f1;
var _0x2efccd;
_0x1877f1 = new Date();
_0x2efccd = 0x4;
var _0xc44760 = {
'setLogLevel': function (_0x339795) {
_0x2efccd = _0x339795 == this.debug ? 0x1 : _0x339795 == this.info ? 0x2 : _0x339795 == this.warn ? 0x3 : (this.error, 0x4);
},
'debug': function (_0x252176, _0x44dcfc) {
if (undefined === console.debug) {
console.debug = console.log;
}
if (0x1 >= _0x2efccd) {
console.debug('[' + _0xc44760.getDurationString(new Date() - _0x1877f1, 0x3e8) + ']', '[' + _0x252176 + ']', _0x44dcfc);
}
},
'log': function (_0x18a82c, _0x22edab) {
this.debug(_0x18a82c.msg);
},
'info': function (_0x84c5c4, _0x4ef89a) {
if (0x2 >= _0x2efccd) {
console.info('[' + _0xc44760.getDurationString(new Date() - _0x1877f1, 0x3e8) + ']', '[' + _0x84c5c4 + ']', _0x4ef89a);
}
},
'warn': function (_0x18d0c2, _0x3f3f55) {
if (0x3 >= _0x2efccd) {
console.warn('[' + _0xc44760.getDurationString(new Date() - _0x1877f1, 0x3e8) + ']', '[' + _0x18d0c2 + ']', _0x3f3f55);
}
},
'error': function (_0x493e47, _0x39d44d) {
if (0x4 >= _0x2efccd) {
console.error('[' + _0xc44760.getDurationString(new Date() - _0x1877f1, 0x3e8) + ']', '[' + _0x493e47 + ']', _0x39d44d);
}
}
};
_0xc44760.getDurationString = function (_0x2c9d11, _0x167607) {
var _0x4a3eef;
function _0x3cbf6f(_0x11a4b6, _0x95cd49) {
for (var _0x488b9d = ('' + _0x11a4b6).split('.'); _0x488b9d[0x0].length < _0x95cd49;) {
_0x488b9d[0x0] = '0' + _0x488b9d[0x0];
}
return _0x488b9d.join('.');
}
if (_0x2c9d11 < 0x0) {
_0x4a3eef = true;
_0x2c9d11 = -_0x2c9d11;
} else {
_0x4a3eef = false;
}
var _0x3f8386 = _0x2c9d11 / (_0x167607 || 0x1);
var _0x528c04 = Math.floor(_0x3f8386 / 0xe10);
_0x3f8386 -= 0xe10 * _0x528c04;
var _0x5179d2 = Math.floor(_0x3f8386 / 0x3c);
var _0x37d271 = 0x3e8 * (_0x3f8386 -= 0x3c * _0x5179d2);
_0x37d271 -= 0x3e8 * (_0x3f8386 = Math.floor(_0x3f8386));
_0x37d271 = Math.floor(_0x37d271);
return (_0x4a3eef ? '-' : '') + _0x528c04 + ':' + _0x3cbf6f(_0x5179d2, 0x2) + ':' + _0x3cbf6f(_0x3f8386, 0x2) + '.' + _0x3cbf6f(_0x37d271, 0x3);
};
_0xc44760.printRanges = function (_0x57ad0a) {
var _0x40c1f0 = _0x57ad0a.length;
if (_0x40c1f0 > 0x0) {
var _0x1e025d = '';
for (var _0x560b75 = 0x0; _0x560b75 < _0x40c1f0; _0x560b75++) {
if (_0x560b75 > 0x0) {
_0x1e025d += ',';
}
_0x1e025d += '[' + _0xc44760.getDurationString(_0x57ad0a.start(_0x560b75)) + ',' + _0xc44760.getDurationString(_0x57ad0a.end(_0x560b75)) + ']';
}
return _0x1e025d;
}
return "(empty)";
};
_0x524be6.Log = _0xc44760;
var _0x1ed073 = function (_0x57b1be) {
if (!(_0x57b1be instanceof ArrayBuffer)) {
throw "Needs an array buffer";
}
this.buffer = _0x57b1be;
this.dataview = new DataView(_0x57b1be);
this.position = 0x0;
};
_0x1ed073.prototype.getPosition = function () {
return this.position;
};
_0x1ed073.prototype.getEndPosition = function () {
return this.buffer.byteLength;
};
_0x1ed073.prototype.getLength = function () {
return this.buffer.byteLength;
};
_0x1ed073.prototype.seek = function (_0x3d85d1) {
var _0x106770 = Math.max(0x0, Math.min(this.buffer.byteLength, _0x3d85d1));
this.position = isNaN(_0x106770) || !isFinite(_0x106770) ? 0x0 : _0x106770;
return true;
};
_0x1ed073.prototype.isEos = function () {
return this.getPosition() >= this.getEndPosition();
};
_0x1ed073.prototype.readAnyInt = function (_0x38bae2, _0x9f634e) {
var _0x450b20 = 0x0;
if (this.position + _0x38bae2 <= this.buffer.byteLength) {
switch (_0x38bae2) {
case 0x1:
_0x450b20 = _0x9f634e ? this.dataview.getInt8(this.position) : this.dataview.getUint8(this.position);
break;
case 0x2:
_0x450b20 = _0x9f634e ? this.dataview.getInt16(this.position) : this.dataview.getUint16(this.position);
break;
case 0x3:
if (_0x9f634e) {
throw "No method for reading signed 24 bits values";
}
_0x450b20 = this.dataview.getUint8(this.position) << 0x10;
_0x450b20 |= this.dataview.getUint8(this.position + 0x1) << 0x8;
_0x450b20 |= this.dataview.getUint8(this.position + 0x2);
break;
case 0x4:
_0x450b20 = _0x9f634e ? this.dataview.getInt32(this.position) : this.dataview.getUint32(this.position);
break;
case 0x8:
if (_0x9f634e) {
throw "No method for reading signed 64 bits values";
}
_0x450b20 = this.dataview.getUint32(this.position) << 0x20;
_0x450b20 |= this.dataview.getUint32(this.position + 0x4);
break;
default:
throw "readInt method not implemented for size: " + _0x38bae2;
}
this.position += _0x38bae2;
return _0x450b20;
}
throw "Not enough bytes in buffer";
};
_0x1ed073.prototype.readUint8 = function () {
return this.readAnyInt(0x1, false);
};
_0x1ed073.prototype.readUint16 = function () {
return this.readAnyInt(0x2, false);
};
_0x1ed073.prototype.readUint24 = function () {
return this.readAnyInt(0x3, false);
};
_0x1ed073.prototype.readUint32 = function () {
return this.readAnyInt(0x4, false);
};
_0x1ed073.prototype.readUint64 = function () {
return this.readAnyInt(0x8, false);
};
_0x1ed073.prototype.readString = function (_0x90685) {
if (this.position + _0x90685 <= this.buffer.byteLength) {
var _0x4504bc = '';
for (var _0x38398d = 0x0; _0x38398d < _0x90685; _0x38398d++) {
_0x4504bc += String.fromCharCode(this.readUint8());
}
return _0x4504bc;
}
throw "Not enough bytes in buffer";
};
_0x1ed073.prototype.readCString = function () {
for (var _0x45cf67 = [];;) {
var _0x4dc00e = this.readUint8();
if (0x0 === _0x4dc00e) {
break;
}
_0x45cf67.push(_0x4dc00e);
}
return String.fromCharCode.apply(null, _0x45cf67);
};
_0x1ed073.prototype.readInt8 = function () {
return this.readAnyInt(0x1, true);
};
_0x1ed073.prototype.readInt16 = function () {
return this.readAnyInt(0x2, true);
};
_0x1ed073.prototype.readInt32 = function () {
return this.readAnyInt(0x4, true);
};
_0x1ed073.prototype.readInt64 = function () {
return this.readAnyInt(0x8, false);
};
_0x1ed073.prototype.readUint8Array = function (_0x49f3bc) {
var _0x117d4d = new Uint8Array(_0x49f3bc);
for (var _0x313ef7 = 0x0; _0x313ef7 < _0x49f3bc; _0x313ef7++) {
_0x117d4d[_0x313ef7] = this.readUint8();
}
return _0x117d4d;
};
_0x1ed073.prototype.readInt16Array = function (_0x332551) {
var _0x3f8047 = new Int16Array(_0x332551);
for (var _0x38c602 = 0x0; _0x38c602 < _0x332551; _0x38c602++) {
_0x3f8047[_0x38c602] = this.readInt16();
}
return _0x3f8047;
};
_0x1ed073.prototype.readUint16Array = function (_0x89caef) {
var _0x473141 = new Int16Array(_0x89caef);
for (var _0x35756c = 0x0; _0x35756c < _0x89caef; _0x35756c++) {
_0x473141[_0x35756c] = this.readUint16();
}
return _0x473141;
};
_0x1ed073.prototype.readUint32Array = function (_0x560127) {
var _0x4486de = new Uint32Array(_0x560127);
for (var _0x2774aa = 0x0; _0x2774aa < _0x560127; _0x2774aa++) {
_0x4486de[_0x2774aa] = this.readUint32();
}
return _0x4486de;
};
_0x1ed073.prototype.readInt32Array = function (_0x4493ea) {
var _0x1676f5 = new Int32Array(_0x4493ea);
for (var _0x3bc88c = 0x0; _0x3bc88c < _0x4493ea; _0x3bc88c++) {
_0x1676f5[_0x3bc88c] = this.readInt32();
}
return _0x1676f5;
};
_0x524be6.MP4BoxStream = _0x1ed073;
var _0x325146 = function (_0x22a0b6, _0x5d331d, _0x2618d1) {
this._byteOffset = _0x5d331d || 0x0;
if (_0x22a0b6 instanceof ArrayBuffer) {
this.buffer = _0x22a0b6;
} else if ("object" == typeof _0x22a0b6) {
this.dataView = _0x22a0b6;
if (_0x5d331d) {
this._byteOffset += _0x5d331d;
}
} else {
this.buffer = new ArrayBuffer(_0x22a0b6 || 0x0);
}
this.position = 0x0;
this.endianness = null == _0x2618d1 ? _0x325146.LITTLE_ENDIAN : _0x2618d1;
};
_0x325146.prototype = {};
_0x325146.prototype.getPosition = function () {
return this.position;
};
_0x325146.prototype._realloc = function (_0x4a2b6f) {
if (this._dynamicSize) {
var _0x47630a = this._byteOffset + this.position + _0x4a2b6f;
var _0x4b0f5c = this._buffer.byteLength;
if (_0x47630a <= _0x4b0f5c) {
if (_0x47630a > this._byteLength) {
this._byteLength = _0x47630a;
}
} else {
for (_0x4b0f5c < 0x1 && (_0x4b0f5c = 0x1); _0x47630a > _0x4b0f5c;) {
_0x4b0f5c *= 0x2;
}
var _0x1ac994 = new ArrayBuffer(_0x4b0f5c);
var _0x4eafe3 = new Uint8Array(this._buffer);
new Uint8Array(_0x1ac994, 0x0, _0x4eafe3.length).set(_0x4eafe3);
this.buffer = _0x1ac994;
this._byteLength = _0x47630a;
}
}
};
_0x325146.prototype._trimAlloc = function () {
if (this._byteLength != this._buffer.byteLength) {
var _0x422a4e = new ArrayBuffer(this._byteLength);
var _0x52d351 = new Uint8Array(_0x422a4e);
var _0x783256 = new Uint8Array(this._buffer, 0x0, _0x52d351.length);
_0x52d351.set(_0x783256);
this.buffer = _0x422a4e;
}
};
_0x325146.BIG_ENDIAN = false;
_0x325146.LITTLE_ENDIAN = true;
_0x325146.prototype._byteLength = 0x0;
Object.defineProperty(_0x325146.prototype, "byteLength", {
'get': function () {
return this._byteLength - this._byteOffset;
}
});
Object.defineProperty(_0x325146.prototype, "buffer", {
'get': function () {
this._trimAlloc();
return this._buffer;
},
'set': function (_0x18abe6) {
this._buffer = _0x18abe6;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._buffer.byteLength;
}
});
Object.defineProperty(_0x325146.prototype, "byteOffset", {
'get': function () {
return this._byteOffset;
},
'set': function (_0x2e20d0) {
this._byteOffset = _0x2e20d0;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._buffer.byteLength;
}
});
Object.defineProperty(_0x325146.prototype, "dataView", {
'get': function () {
return this._dataView;
},
'set': function (_0x33b1f7) {
this._byteOffset = _0x33b1f7.byteOffset;
this._buffer = _0x33b1f7.buffer;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._byteOffset + _0x33b1f7.byteLength;
}
});
_0x325146.prototype.seek = function (_0x2a58b7) {
var _0x109236 = Math.max(0x0, Math.min(this.byteLength, _0x2a58b7));
this.position = isNaN(_0x109236) || !isFinite(_0x109236) ? 0x0 : _0x109236;
};
_0x325146.prototype.isEof = function () {
return this.position >= this._byteLength;
};
_0x325146.prototype.mapUint8Array = function (_0x35af47) {
this._realloc(0x1 * _0x35af47);
var _0x1508bc = new Uint8Array(this._buffer, this.byteOffset + this.position, _0x35af47);
this.position += 0x1 * _0x35af47;
return _0x1508bc;
};
_0x325146.prototype.readInt32Array = function (_0x105b53, _0x563fa5) {
_0x105b53 = null == _0x105b53 ? this.byteLength - this.position / 0x4 : _0x105b53;
var _0x25f81b = new Int32Array(_0x105b53);
_0x325146.memcpy(_0x25f81b.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x105b53 * _0x25f81b.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0x25f81b, null == _0x563fa5 ? this.endianness : _0x563fa5);
this.position += _0x25f81b.byteLength;
return _0x25f81b;
};
_0x325146.prototype.readInt16Array = function (_0x9f6c22, _0x40d8af) {
_0x9f6c22 = null == _0x9f6c22 ? this.byteLength - this.position / 0x2 : _0x9f6c22;
var _0x56030b = new Int16Array(_0x9f6c22);
_0x325146.memcpy(_0x56030b.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x9f6c22 * _0x56030b.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0x56030b, null == _0x40d8af ? this.endianness : _0x40d8af);
this.position += _0x56030b.byteLength;
return _0x56030b;
};
_0x325146.prototype.readInt8Array = function (_0x4bbe3d) {
_0x4bbe3d = null == _0x4bbe3d ? this.byteLength - this.position : _0x4bbe3d;
var _0x105f50 = new Int8Array(_0x4bbe3d);
_0x325146.memcpy(_0x105f50.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x4bbe3d * _0x105f50.BYTES_PER_ELEMENT);
this.position += _0x105f50.byteLength;
return _0x105f50;
};
_0x325146.prototype.readUint32Array = function (_0x176820, _0x217b03) {
_0x176820 = null == _0x176820 ? this.byteLength - this.position / 0x4 : _0x176820;
var _0x7ba1a2 = new Uint32Array(_0x176820);
_0x325146.memcpy(_0x7ba1a2.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x176820 * _0x7ba1a2.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0x7ba1a2, null == _0x217b03 ? this.endianness : _0x217b03);
this.position += _0x7ba1a2.byteLength;
return _0x7ba1a2;
};
_0x325146.prototype.readUint16Array = function (_0x5ef2a9, _0x5685e6) {
_0x5ef2a9 = null == _0x5ef2a9 ? this.byteLength - this.position / 0x2 : _0x5ef2a9;
var _0x4642ae = new Uint16Array(_0x5ef2a9);
_0x325146.memcpy(_0x4642ae.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x5ef2a9 * _0x4642ae.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0x4642ae, null == _0x5685e6 ? this.endianness : _0x5685e6);
this.position += _0x4642ae.byteLength;
return _0x4642ae;
};
_0x325146.prototype.readUint8Array = function (_0x26949e) {
_0x26949e = null == _0x26949e ? this.byteLength - this.position : _0x26949e;
var _0x4c6548 = new Uint8Array(_0x26949e);
_0x325146.memcpy(_0x4c6548.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x26949e * _0x4c6548.BYTES_PER_ELEMENT);
this.position += _0x4c6548.byteLength;
return _0x4c6548;
};
_0x325146.prototype.readFloat64Array = function (_0x266b6c, _0x22c82e) {
_0x266b6c = null == _0x266b6c ? this.byteLength - this.position / 0x8 : _0x266b6c;
var _0x557a61 = new Float64Array(_0x266b6c);
_0x325146.memcpy(_0x557a61.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x266b6c * _0x557a61.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0x557a61, null == _0x22c82e ? this.endianness : _0x22c82e);
this.position += _0x557a61.byteLength;
return _0x557a61;
};
_0x325146.prototype.readFloat32Array = function (_0x4fb2fc, _0x1f1394) {
_0x4fb2fc = null == _0x4fb2fc ? this.byteLength - this.position / 0x4 : _0x4fb2fc;
var _0xd1f101 = new Float32Array(_0x4fb2fc);
_0x325146.memcpy(_0xd1f101.buffer, 0x0, this.buffer, this.byteOffset + this.position, _0x4fb2fc * _0xd1f101.BYTES_PER_ELEMENT);
_0x325146.arrayToNative(_0xd1f101, null == _0x1f1394 ? this.endianness : _0x1f1394);
this.position += _0xd1f101.byteLength;
return _0xd1f101;
};
_0x325146.prototype.readInt32 = function (_0x27e725) {
var _0xd303d6 = this._dataView.getInt32(this.position, null == _0x27e725 ? this.endianness : _0x27e725);
this.position += 0x4;
return _0xd303d6;
};
_0x325146.prototype.readInt16 = function (_0x3e52a1) {
var _0x44395e = this._dataView.getInt16(this.position, null == _0x3e52a1 ? this.endianness : _0x3e52a1);
this.position += 0x2;
return _0x44395e;
};
_0x325146.prototype.readInt8 = function () {
var _0x15110f = this._dataView.getInt8(this.position);
this.position += 0x1;
return _0x15110f;
};
_0x325146.prototype.readUint32 = function (_0x5ea444) {
var _0x177a44 = this._dataView.getUint32(this.position, null == _0x5ea444 ? this.endianness : _0x5ea444);
this.position += 0x4;
return _0x177a44;
};
_0x325146.prototype.readUint16 = function (_0x8046a9) {
var _0x2c62b6 = this._dataView.getUint16(this.position, null == _0x8046a9 ? this.endianness : _0x8046a9);
this.position += 0x2;
return _0x2c62b6;
};
_0x325146.prototype.readUint8 = function () {
var _0x1f5da0 = this._dataView.getUint8(this.position);
this.position += 0x1;
return _0x1f5da0;
};
_0x325146.prototype.readFloat32 = function (_0x5603c5) {
var _0xf2d8cd = this._dataView.getFloat32(this.position, null == _0x5603c5 ? this.endianness : _0x5603c5);
this.position += 0x4;
return _0xf2d8cd;
};
_0x325146.prototype.readFloat64 = function (_0x437bc8) {
var _0x1bc3d2 = this._dataView.getFloat64(this.position, null == _0x437bc8 ? this.endianness : _0x437bc8);
this.position += 0x8;
return _0x1bc3d2;
};
_0x325146.endianness = new Int8Array(new Int16Array([0x1]).buffer)[0x0] > 0x0;
_0x325146.memcpy = function (_0x111b59, _0x14c16a, _0xdc056d, _0x458752, _0x41b061) {
var _0x49d369 = new Uint8Array(_0x111b59, _0x14c16a, _0x41b061);
var _0x30a358 = new Uint8Array(_0xdc056d, _0x458752, _0x41b061);
_0x49d369.set(_0x30a358);
};
_0x325146.arrayToNative = function (_0x10b461, _0xbb1960) {
return _0xbb1960 == this.endianness ? _0x10b461 : this.flipArrayEndianness(_0x10b461);
};
_0x325146.nativeToEndian = function (_0x4b13e4, _0x17d202) {
return this.endianness == _0x17d202 ? _0x4b13e4 : this.flipArrayEndianness(_0x4b13e4);
};
_0x325146.flipArrayEndianness = function (_0x311aab) {
var _0x5ca871 = new Uint8Array(_0x311aab.buffer, _0x311aab.byteOffset, _0x311aab.byteLength);
for (var _0x12f40f = 0x0; _0x12f40f < _0x311aab.byteLength; _0x12f40f += _0x311aab.BYTES_PER_ELEMENT) {
var _0x25adc0 = _0x12f40f + _0x311aab.BYTES_PER_ELEMENT - 0x1;
for (var _0x45b78d = _0x12f40f; _0x25adc0 > _0x45b78d; _0x25adc0--, _0x45b78d++) {
var _0x577b2c = _0x5ca871[_0x45b78d];
_0x5ca871[_0x45b78d] = _0x5ca871[_0x25adc0];
_0x5ca871[_0x25adc0] = _0x577b2c;
}
}
return _0x311aab;
};
_0x325146.prototype.failurePosition = 0x0;
String.fromCharCodeUint8 = function (_0x5d33d6) {
var _0x48e4fd = [];
for (var _0x4c1ab2 = 0x0; _0x4c1ab2 < _0x5d33d6.length; _0x4c1ab2++) {
_0x48e4fd[_0x4c1ab2] = _0x5d33d6[_0x4c1ab2];
}
return String.fromCharCode.apply(null, _0x48e4fd);
};
_0x325146.prototype.readString = function (_0x423745, _0x20a90d) {
return null == _0x20a90d || "ASCII" == _0x20a90d ? String.fromCharCodeUint8.apply(null, [this.mapUint8Array(null == _0x423745 ? this.byteLength - this.position : _0x423745)]) : new TextDecoder(_0x20a90d).decode(this.mapUint8Array(_0x423745));
};
_0x325146.prototype.readCString = function (_0x2a9212) {
var _0xf979e = this.byteLength - this.position;
var _0x341e7e = new Uint8Array(this._buffer, this._byteOffset + this.position);
var _0x469149 = _0xf979e;
if (null != _0x2a9212) {
_0x469149 = Math.min(_0x2a9212, _0xf979e);
}
for (var _0x19dc7f = 0x0; _0x19dc7f < _0x469149 && 0x0 !== _0x341e7e[_0x19dc7f]; _0x19dc7f++) {
;
}
var _0x16519b = String.fromCharCodeUint8.apply(null, [this.mapUint8Array(_0x19dc7f)]);
if (null != _0x2a9212) {
this.position += _0x469149 - _0x19dc7f;
} else if (_0x19dc7f != _0xf979e) {
this.position += 0x1;
}
return _0x16519b;
};
var _0x23c968 = Math.pow(0x2, 0x20);
_0x325146.prototype.readInt64 = function () {
return this.readInt32() * _0x23c968 + this.readUint32();
};
_0x325146.prototype.readUint64 = function () {
return this.readUint32() * _0x23c968 + this.readUint32();
};
_0x325146.prototype.readInt64 = function () {
return this.readUint32() * _0x23c968 + this.readUint32();
};
_0x325146.prototype.readUint24 = function () {
return (this.readUint8() << 0x10) + (this.readUint8() << 0x8) + this.readUint8();
};
_0x524be6.DataStream = _0x325146;
_0x325146.prototype.save = function (_0xcc2cb8) {
var _0x2ca812 = new Blob([this.buffer]);
if (!window.URL || !URL.createObjectURL) {
throw "DataStream.save: Can't create object URL.";
}
var _0x656f1f = window.URL.createObjectURL(_0x2ca812);
var _0xb06bd3 = document.createElement('a');
document.body.appendChild(_0xb06bd3);
_0xb06bd3.setAttribute('href', _0x656f1f);
_0xb06bd3.setAttribute("download", _0xcc2cb8);
_0xb06bd3.setAttribute("target", "_self");
_0xb06bd3.click();
window.URL.revokeObjectURL(_0x656f1f);
};
_0x325146.prototype._dynamicSize = true;
Object.defineProperty(_0x325146.prototype, "dynamicSize", {
'get': function () {
return this._dynamicSize;
},
'set': function (_0x27f4a7) {
if (!_0x27f4a7) {
this._trimAlloc();
}
this._dynamicSize = _0x27f4a7;
}
});
_0x325146.prototype.shift = function (_0x4f9fa7) {
var _0x3fa43c = new ArrayBuffer(this._byteLength - _0x4f9fa7);
var _0x40aa4c = new Uint8Array(_0x3fa43c);
var _0x212a9d = new Uint8Array(this._buffer, _0x4f9fa7, _0x40aa4c.length);
_0x40aa4c.set(_0x212a9d);
this.buffer = _0x3fa43c;
this.position -= _0x4f9fa7;
};
_0x325146.prototype.writeInt32Array = function (_0x42d355, _0x2aa195) {
this._realloc(0x4 * _0x42d355.length);
if (_0x42d355 instanceof Int32Array && this.byteOffset + this.position % _0x42d355.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x42d355.buffer, 0x0, _0x42d355.byteLength);
this.mapInt32Array(_0x42d355.length, _0x2aa195);
} else {
for (var _0x16e414 = 0x0; _0x16e414 < _0x42d355.length; _0x16e414++) {
this.writeInt32(_0x42d355[_0x16e414], _0x2aa195);
}
}
};
_0x325146.prototype.writeInt16Array = function (_0x59e297, _0x5fb11) {
this._realloc(0x2 * _0x59e297.length);
if (_0x59e297 instanceof Int16Array && this.byteOffset + this.position % _0x59e297.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x59e297.buffer, 0x0, _0x59e297.byteLength);
this.mapInt16Array(_0x59e297.length, _0x5fb11);
} else {
for (var _0x150e18 = 0x0; _0x150e18 < _0x59e297.length; _0x150e18++) {
this.writeInt16(_0x59e297[_0x150e18], _0x5fb11);
}
}
};
_0x325146.prototype.writeInt8Array = function (_0xbe17e4) {
this._realloc(0x1 * _0xbe17e4.length);
if (_0xbe17e4 instanceof Int8Array && this.byteOffset + this.position % _0xbe17e4.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0xbe17e4.buffer, 0x0, _0xbe17e4.byteLength);
this.mapInt8Array(_0xbe17e4.length);
} else {
for (var _0x3e945f = 0x0; _0x3e945f < _0xbe17e4.length; _0x3e945f++) {
this.writeInt8(_0xbe17e4[_0x3e945f]);
}
}
};
_0x325146.prototype.writeUint32Array = function (_0x14b46d, _0x16263d) {
this._realloc(0x4 * _0x14b46d.length);
if (_0x14b46d instanceof Uint32Array && this.byteOffset + this.position % _0x14b46d.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x14b46d.buffer, 0x0, _0x14b46d.byteLength);
this.mapUint32Array(_0x14b46d.length, _0x16263d);
} else {
for (var _0x121006 = 0x0; _0x121006 < _0x14b46d.length; _0x121006++) {
this.writeUint32(_0x14b46d[_0x121006], _0x16263d);
}
}
};
_0x325146.prototype.writeUint16Array = function (_0x1516c3, _0x110d8e) {
this._realloc(0x2 * _0x1516c3.length);
if (_0x1516c3 instanceof Uint16Array && this.byteOffset + this.position % _0x1516c3.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x1516c3.buffer, 0x0, _0x1516c3.byteLength);
this.mapUint16Array(_0x1516c3.length, _0x110d8e);
} else {
for (var _0x27a572 = 0x0; _0x27a572 < _0x1516c3.length; _0x27a572++) {
this.writeUint16(_0x1516c3[_0x27a572], _0x110d8e);
}
}
};
_0x325146.prototype.writeUint8Array = function (_0x56f633) {
this._realloc(0x1 * _0x56f633.length);
if (_0x56f633 instanceof Uint8Array && this.byteOffset + this.position % _0x56f633.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x56f633.buffer, 0x0, _0x56f633.byteLength);
this.mapUint8Array(_0x56f633.length);
} else {
for (var _0x1057fc = 0x0; _0x1057fc < _0x56f633.length; _0x1057fc++) {
this.writeUint8(_0x56f633[_0x1057fc]);
}
}
};
_0x325146.prototype.writeFloat64Array = function (_0x5c6005, _0x23a43e) {
this._realloc(0x8 * _0x5c6005.length);
if (_0x5c6005 instanceof Float64Array && this.byteOffset + this.position % _0x5c6005.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x5c6005.buffer, 0x0, _0x5c6005.byteLength);
this.mapFloat64Array(_0x5c6005.length, _0x23a43e);
} else {
for (var _0x3feb6a = 0x0; _0x3feb6a < _0x5c6005.length; _0x3feb6a++) {
this.writeFloat64(_0x5c6005[_0x3feb6a], _0x23a43e);
}
}
};
_0x325146.prototype.writeFloat32Array = function (_0x47de1b, _0x2d8d65) {
this._realloc(0x4 * _0x47de1b.length);
if (_0x47de1b instanceof Float32Array && this.byteOffset + this.position % _0x47de1b.BYTES_PER_ELEMENT === 0x0) {
_0x325146.memcpy(this._buffer, this.byteOffset + this.position, _0x47de1b.buffer, 0x0, _0x47de1b.byteLength);
this.mapFloat32Array(_0x47de1b.length, _0x2d8d65);
} else {
for (var _0x1367b6 = 0x0; _0x1367b6 < _0x47de1b.length; _0x1367b6++) {
this.writeFloat32(_0x47de1b[_0x1367b6], _0x2d8d65);
}
}
};
_0x325146.prototype.writeInt32 = function (_0xca5c00, _0x2c8724) {
this._realloc(0x4);
this._dataView.setInt32(this.position, _0xca5c00, null == _0x2c8724 ? this.endianness : _0x2c8724);
this.position += 0x4;
};
_0x325146.prototype.writeInt16 = function (_0x2b6683, _0xdff97) {
this._realloc(0x2);
this._dataView.setInt16(this.position, _0x2b6683, null == _0xdff97 ? this.endianness : _0xdff97);
this.position += 0x2;
};
_0x325146.prototype.writeInt8 = function (_0x24d1e3) {
this._realloc(0x1);
this._dataView.setInt8(this.position, _0x24d1e3);
this.position += 0x1;
};
_0x325146.prototype.writeUint32 = function (_0x2dc880, _0x20d203) {
this._realloc(0x4);
this._dataView.setUint32(this.position, _0x2dc880, null == _0x20d203 ? this.endianness : _0x20d203);
this.position += 0x4;
};
_0x325146.prototype.writeUint16 = function (_0x29ab7c, _0x11c25d) {
this._realloc(0x2);
this._dataView.setUint16(this.position, _0x29ab7c, null == _0x11c25d ? this.endianness : _0x11c25d);
this.position += 0x2;
};
_0x325146.prototype.writeUint8 = function (_0x53765b) {
this._realloc(0x1);
this._dataView.setUint8(this.position, _0x53765b);
this.position += 0x1;
};
_0x325146.prototype.writeFloat32 = function (_0x20332e, _0x36b0a8) {
this._realloc(0x4);
this._dataView.setFloat32(this.position, _0x20332e, null == _0x36b0a8 ? this.endianness : _0x36b0a8);
this.position += 0x4;
};
_0x325146.prototype.writeFloat64 = function (_0x39ca3b, _0x275c10) {
this._realloc(0x8);
this._dataView.setFloat64(this.position, _0x39ca3b, null == _0x275c10 ? this.endianness : _0x275c10);
this.position += 0x8;
};
_0x325146.prototype.writeUCS2String = function (_0x22cea1, _0x5568ca, _0x226685) {
if (null == _0x226685) {
_0x226685 = _0x22cea1.length;
}
for (var _0x48dff9 = 0x0; _0x48dff9 < _0x22cea1.length && _0x48dff9 < _0x226685; _0x48dff9++) {
this.writeUint16(_0x22cea1.charCodeAt(_0x48dff9), _0x5568ca);
}
for (; _0x48dff9 < _0x226685; _0x48dff9++) {
this.writeUint16(0x0);
}
};
_0x325146.prototype.writeString = function (_0x2d16e8, _0xe7b9ca, _0x12be3d) {
var _0x532930 = 0x0;
if (null == _0xe7b9ca || "ASCII" == _0xe7b9ca) {
if (null != _0x12be3d) {
var _0x571008 = Math.min(_0x2d16e8.length, _0x12be3d);
for (_0x532930 = 0x0; _0x532930 < _0x571008; _0x532930++) {
this.writeUint8(_0x2d16e8.charCodeAt(_0x532930));
}
for (; _0x532930 < _0x12be3d; _0x532930++) {
this.writeUint8(0x0);
}
} else {
for (_0x532930 = 0x0; _0x532930 < _0x2d16e8.length; _0x532930++) {
this.writeUint8(_0x2d16e8.charCodeAt(_0x532930));
}
}
} else {
this.writeUint8Array(new TextEncoder(_0xe7b9ca).encode(_0x2d16e8.substring(0x0, _0x12be3d)));
}
};
_0x325146.prototype.writeCString = function (_0x5f55cb, _0x2ac93f) {
var _0x13495a = 0x0;
if (null != _0x2ac93f) {
var _0x58ea26 = Math.min(_0x5f55cb.length, _0x2ac93f);
for (_0x13495a = 0x0; _0x13495a < _0x58ea26; _0x13495a++) {
this.writeUint8(_0x5f55cb.charCodeAt(_0x13495a));
}
for (; _0x13495a < _0x2ac93f; _0x13495a++) {
this.writeUint8(0x0);
}
} else {
for (_0x13495a = 0x0; _0x13495a < _0x5f55cb.length; _0x13495a++) {
this.writeUint8(_0x5f55cb.charCodeAt(_0x13495a));
}
this.writeUint8(0x0);
}
};
_0x325146.prototype.writeStruct = function (_0x32ffc8, _0x4b2646) {
for (var _0x3ae7c2 = 0x0; _0x3ae7c2 < _0x32ffc8.length; _0x3ae7c2 += 0x2) {
var _0x358b04 = _0x32ffc8[_0x3ae7c2 + 0x1];
this.writeType(_0x358b04, _0x4b2646[_0x32ffc8[_0x3ae7c2]], _0x4b2646);
}
};
_0x325146.prototype.writeType = function (_0x383dce, _0x187b03, _0x509172) {
var _0x4248b5;
if ("function" == typeof _0x383dce) {
return _0x383dce(this, _0x187b03);
}
if ("object" == typeof _0x383dce && !(_0x383dce instanceof Array)) {
return _0x383dce.set(this, _0x187b03, _0x509172);
}
var _0x4a8cb4 = null;
var _0x256135 = "ASCII";
var _0x49b38f = this.position;
if ("string" == typeof _0x383dce && /:/.test(_0x383dce)) {
_0x4248b5 = _0x383dce.split(':');
_0x383dce = _0x4248b5[0x0];
_0x4a8cb4 = parseInt(_0x4248b5[0x1]);
}
if ("string" == typeof _0x383dce && /,/.test(_0x383dce)) {
_0x4248b5 = _0x383dce.split(',');
_0x383dce = _0x4248b5[0x0];
_0x256135 = parseInt(_0x4248b5[0x1]);
}
switch (_0x383dce) {
case "uint8":
this.writeUint8(_0x187b03);
break;
case "int8":
this.writeInt8(_0x187b03);
break;
case 'uint16':
this.writeUint16(_0x187b03, this.endianness);
break;
case 'int16':
this.writeInt16(_0x187b03, this.endianness);
break;
case "uint32":
this.writeUint32(_0x187b03, this.endianness);
break;
case 'int32':
this.writeInt32(_0x187b03, this.endianness);
break;
case "float32":
this.writeFloat32(_0x187b03, this.endianness);
break;
case "float64":
this.writeFloat64(_0x187b03, this.endianness);
break;
case "uint16be":
this.writeUint16(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case "int16be":
this.writeInt16(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case "uint32be":
this.writeUint32(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case "int32be":
this.writeInt32(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case "float32be":
this.writeFloat32(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case 'float64be':
this.writeFloat64(_0x187b03, _0x325146.BIG_ENDIAN);
break;
case "uint16le":
this.writeUint16(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case "int16le":
this.writeInt16(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case "uint32le":
this.writeUint32(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case "int32le":
this.writeInt32(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case "float32le":
this.writeFloat32(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case "float64le":
this.writeFloat64(_0x187b03, _0x325146.LITTLE_ENDIAN);
break;
case 'cstring':
this.writeCString(_0x187b03, _0x4a8cb4);
break;
case 'string':
this.writeString(_0x187b03, _0x256135, _0x4a8cb4);
break;
case "u16string":
this.writeUCS2String(_0x187b03, this.endianness, _0x4a8cb4);
break;
case "u16stringle":
this.writeUCS2String(_0x187b03, _0x325146.LITTLE_ENDIAN, _0x4a8cb4);
break;
case "u16stringbe":
this.writeUCS2String(_0x187b03, _0x325146.BIG_ENDIAN, _0x4a8cb4);
break;
default:
if (0x3 == _0x383dce.length) {
var _0xb42dbe = _0x383dce[0x1];
for (var _0x12b8f5 = 0x0; _0x12b8f5 < _0x187b03.length; _0x12b8f5++) {
this.writeType(_0xb42dbe, _0x187b03[_0x12b8f5]);
}
break;
}
this.writeStruct(_0x383dce, _0x187b03);
}
if (null != _0x4a8cb4) {
this.position = _0x49b38f;
this._realloc(_0x4a8cb4);
this.position = _0x49b38f + _0x4a8cb4;
}
};
_0x325146.prototype.writeUint64 = function (_0x157c33) {
var _0x2891e8 = Math.floor(_0x157c33 / _0x23c968);
this.writeUint32(_0x2891e8);
this.writeUint32(0xffffffff & _0x157c33);
};
_0x325146.prototype.writeUint24 = function (_0x5a9c14) {
this.writeUint8((0xff0000 & _0x5a9c14) >> 0x10);
this.writeUint8((0xff00 & _0x5a9c14) >> 0x8);
this.writeUint8(0xff & _0x5a9c14);
};
_0x325146.prototype.adjustUint32 = function (_0x17fc48, _0x4f5c91) {
var _0x1724a2 = this.position;
this.seek(_0x17fc48);
this.writeUint32(_0x4f5c91);
this.seek(_0x1724a2);
};
_0x325146.prototype.mapInt32Array = function (_0x71efde, _0x56796e) {
this._realloc(0x4 * _0x71efde);
var _0x3fab3f = new Int32Array(this._buffer, this.byteOffset + this.position, _0x71efde);
_0x325146.arrayToNative(_0x3fab3f, null == _0x56796e ? this.endianness : _0x56796e);
this.position += 0x4 * _0x71efde;
return _0x3fab3f;
};
_0x325146.prototype.mapInt16Array = function (_0x1690ed, _0x348763) {
this._realloc(0x2 * _0x1690ed);
var _0x3b53d1 = new Int16Array(this._buffer, this.byteOffset + this.position, _0x1690ed);
_0x325146.arrayToNative(_0x3b53d1, null == _0x348763 ? this.endianness : _0x348763);
this.position += 0x2 * _0x1690ed;
return _0x3b53d1;
};
_0x325146.prototype.mapInt8Array = function (_0x320183) {
this._realloc(0x1 * _0x320183);
var _0x2a0ca4 = new Int8Array(this._buffer, this.byteOffset + this.position, _0x320183);
this.position += 0x1 * _0x320183;
return _0x2a0ca4;
};
_0x325146.prototype.mapUint32Array = function (_0xb8971b, _0x2e2e3d) {
this._realloc(0x4 * _0xb8971b);
var _0x32ee9e = new Uint32Array(this._buffer, this.byteOffset + this.position, _0xb8971b);
_0x325146.arrayToNative(_0x32ee9e, null == _0x2e2e3d ? this.endianness : _0x2e2e3d);
this.position += 0x4 * _0xb8971b;
return _0x32ee9e;
};
_0x325146.prototype.mapUint16Array = function (_0x29eca1, _0x203059) {
this._realloc(0x2 * _0x29eca1);
var _0x2e7199 = new Uint16Array(this._buffer, this.byteOffset + this.position, _0x29eca1);
_0x325146.arrayToNative(_0x2e7199, null == _0x203059 ? this.endianness : _0x203059);
this.position += 0x2 * _0x29eca1;
return _0x2e7199;
};
_0x325146.prototype.mapFloat64Array = function (_0x5a1409, _0x3ee61d) {
this._realloc(0x8 * _0x5a1409);
var _0x57538b = new Float64Array(this._buffer, this.byteOffset + this.position, _0x5a1409);
_0x325146.arrayToNative(_0x57538b, null == _0x3ee61d ? this.endianness : _0x3ee61d);
this.position += 0x8 * _0x5a1409;
return _0x57538b;
};
_0x325146.prototype.mapFloat32Array = function (_0x37b889, _0x5b7725) {
this._realloc(0x4 * _0x37b889);
var _0x1919ce = new Float32Array(this._buffer, this.byteOffset + this.position, _0x37b889);
_0x325146.arrayToNative(_0x1919ce, null == _0x5b7725 ? this.endianness : _0x5b7725);
this.position += 0x4 * _0x37b889;
return _0x1919ce;
};
var _0x39db91 = function (_0x193af8) {
this.buffers = [];
this.bufferIndex = -0x1;
if (_0x193af8) {
this.insertBuffer(_0x193af8);
this.bufferIndex = 0x0;
}
};
(_0x39db91.prototype = new _0x325146(new ArrayBuffer(), 0x0, _0x325146.BIG_ENDIAN)).initialized = function () {
var _0x9ac153;
return this.bufferIndex > -0x1 || (this.buffers.length > 0x0 ? 0x0 === (_0x9ac153 = this.buffers[0x0]).fileStart ? (this.buffer = _0x9ac153, this.bufferIndex = 0x0, _0xc44760.debug("MultiBufferStream", "Stream ready for parsing"), true) : (_0xc44760.warn("MultiBufferStream", "The first buffer should have a fileStart of 0"), this.logBufferLevel(), false) : (_0xc44760.warn("MultiBufferStream", "No buffer to start parsing from"), this.logBufferLevel(), false));
};
ArrayBuffer.concat = function (_0x3e1535, _0x2f791d) {
_0xc44760.debug("ArrayBuffer", "Trying to create a new buffer of size: " + (_0x3e1535.byteLength + _0x2f791d.byteLength));
var _0x129036 = new Uint8Array(_0x3e1535.byteLength + _0x2f791d.byteLength);
_0x129036.set(new Uint8Array(_0x3e1535), 0x0);
_0x129036.set(new Uint8Array(_0x2f791d), _0x3e1535.byteLength);
return _0x129036.buffer;
};
_0x39db91.prototype.reduceBuffer = function (_0x580ba9, _0x5471f1, _0x45918d) {
var _0x5a45e7;
(_0x5a45e7 = new Uint8Array(_0x45918d)).set(new Uint8Array(_0x580ba9, _0x5471f1, _0x45918d));
_0x5a45e7.buffer.fileStart = _0x580ba9.fileStart + _0x5471f1;
_0x5a45e7.buffer.usedBytes = 0x0;
return _0x5a45e7.buffer;
};
_0x39db91.prototype.insertBuffer = function (_0xdfa6d0) {
var _0x343f1b = true;
for (var _0x11cff1 = 0x0; _0x11cff1 < this.buffers.length; _0x11cff1++) {
var _0xf3c309 = this.buffers[_0x11cff1];
if (_0xdfa6d0.fileStart <= _0xf3c309.fileStart) {
if (_0xdfa6d0.fileStart === _0xf3c309.fileStart) {
if (_0xdfa6d0.byteLength > _0xf3c309.byteLength) {
this.buffers.splice(_0x11cff1, 0x1);
_0x11cff1--;
continue;
}
_0xc44760.warn("MultiBufferStream", "Buffer (fileStart: " + _0xdfa6d0.fileStart + " - Length: " + _0xdfa6d0.byteLength + ") already appended, ignoring");
} else {
if (!(_0xdfa6d0.fileStart + _0xdfa6d0.byteLength <= _0xf3c309.fileStart)) {
_0xdfa6d0 = this.reduceBuffer(_0xdfa6d0, 0x0, _0xf3c309.fileStart - _0xdfa6d0.fileStart);
}
_0xc44760.debug("MultiBufferStream", "Appending new buffer (fileStart: " + _0xdfa6d0.fileStart + " - Length: " + _0xdfa6d0.byteLength + ')');
this.buffers.splice(_0x11cff1, 0x0, _0xdfa6d0);
if (0x0 === _0x11cff1) {
this.buffer = _0xdfa6d0;
}
}
_0x343f1b = false;
break;
}
if (_0xdfa6d0.fileStart < _0xf3c309.fileStart + _0xf3c309.byteLength) {
var _0x2445a2 = _0xf3c309.fileStart + _0xf3c309.byteLength - _0xdfa6d0.fileStart;
var _0xd7b93d = _0xdfa6d0.byteLength - _0x2445a2;
if (!(_0xd7b93d > 0x0)) {
_0x343f1b = false;
break;
}
_0xdfa6d0 = this.reduceBuffer(_0xdfa6d0, _0x2445a2, _0xd7b93d);
}
}
if (_0x343f1b) {
_0xc44760.debug("MultiBufferStream", "Appending new buffer (fileStart: " + _0xdfa6d0.fileStart + " - Length: " + _0xdfa6d0.byteLength + ')');
this.buffers.push(_0xdfa6d0);
if (0x0 === _0x11cff1) {
this.buffer = _0xdfa6d0;
}
}
};
_0x39db91.prototype.logBufferLevel = function (_0x4d9174) {
var _0x2a9653;
var _0x218ea5;
var _0x3f5bbe;
var _0x59b215;
var _0x3dd2c1;
var _0x1df768 = [];
var _0x3552bf = '';
_0x3f5bbe = 0x0;
_0x59b215 = 0x0;
for (_0x2a9653 = 0x0; _0x2a9653 < this.buffers.length; _0x2a9653++) {
_0x218ea5 = this.buffers[_0x2a9653];
if (0x0 === _0x2a9653) {
_0x3dd2c1 = {};
_0x1df768.push(_0x3dd2c1);
_0x3dd2c1.start = _0x218ea5.fileStart;
_0x3dd2c1.end = _0x218ea5.fileStart + _0x218ea5.byteLength;
_0x3552bf += '[' + _0x3dd2c1.start + '-';
} else if (_0x3dd2c1.end === _0x218ea5.fileStart) {
_0x3dd2c1.end = _0x218ea5.fileStart + _0x218ea5.byteLength;
} else {
(_0x3dd2c1 = {}).start = _0x218ea5.fileStart;
_0x3552bf += _0x1df768[_0x1df768.length - 0x1].end - 0x1 + "], [" + _0x3dd2c1.start + '-';
_0x3dd2c1.end = _0x218ea5.fileStart + _0x218ea5.byteLength;
_0x1df768.push(_0x3dd2c1);
}
_0x3f5bbe += _0x218ea5.usedBytes;
_0x59b215 += _0x218ea5.byteLength;
}
if (_0x1df768.length > 0x0) {
_0x3552bf += _0x3dd2c1.end - 0x1 + ']';
}
var _0x11d85c = _0x4d9174 ? _0xc44760.info : _0xc44760.debug;
if (0x0 === this.buffers.length) {
_0x11d85c("MultiBufferStream", "No more buffer in memory");
} else {
_0x11d85c("MultiBufferStream", this.buffers.length + " stored buffer(s) (" + _0x3f5bbe + '/' + _0x59b215 + " bytes), continuous ranges: " + _0x3552bf);
}
};
_0x39db91.prototype.cleanBuffers = function () {
var _0x2c2509;
var _0xaa743;
for (_0x2c2509 = 0x0; _0x2c2509 < this.buffers.length; _0x2c2509++) {
if ((_0xaa743 = this.buffers[_0x2c2509]).usedBytes === _0xaa743.byteLength) {
_0xc44760.debug("MultiBufferStream", "Removing buffer #" + _0x2c2509);
this.buffers.splice(_0x2c2509, 0x1);
_0x2c2509--;
}
}
};
_0x39db91.prototype.mergeNextBuffer = function () {
var _0x131a3d;
if (this.bufferIndex + 0x1 < this.buffers.length) {
if ((_0x131a3d = this.buffers[this.bufferIndex + 0x1]).fileStart === this.buffer.fileStart + this.buffer.byteLength) {
var _0x418b20 = this.buffer.byteLength;
var _0x115ccb = this.buffer.usedBytes;
var _0x5e4d03 = this.buffer.fileStart;
this.buffers[this.bufferIndex] = ArrayBuffer.concat(this.buffer, _0x131a3d);
this.buffer = this.buffers[this.bufferIndex];
this.buffers.splice(this.bufferIndex + 0x1, 0x1);
this.buffer.usedBytes = _0x115ccb;
this.buffer.fileStart = _0x5e4d03;
_0xc44760.debug("ISOFile", "Concatenating buffer for box parsing (length: " + _0x418b20 + '->' + this.buffer.byteLength + ')');
return true;
}
return false;
}
return false;
};
_0x39db91.prototype.findPosition = function (_0x17514d, _0x18118c, _0x525f44) {
var _0x21d73a;
var _0x522a49 = null;
var _0x55cfa4 = -0x1;
for (_0x21d73a = true === _0x17514d ? 0x0 : this.bufferIndex; _0x21d73a < this.buffers.length && (_0x522a49 = this.buffers[_0x21d73a]).fileStart <= _0x18118c;) {
_0x55cfa4 = _0x21d73a;
if (_0x525f44) {
if (_0x522a49.fileStart + _0x522a49.byteLength <= _0x18118c) {
_0x522a49.usedBytes = _0x522a49.byteLength;
} else {
_0x522a49.usedBytes = _0x18118c - _0x522a49.fileStart;
}
this.logBufferLevel();
}
_0x21d73a++;
}
return -0x1 !== _0x55cfa4 && (_0x522a49 = this.buffers[_0x55cfa4]).fileStart + _0x522a49.byteLength >= _0x18118c ? (_0xc44760.debug("MultiBufferStream", "Found position in existing buffer #" + _0x55cfa4), _0x55cfa4) : -0x1;
};
_0x39db91.prototype.findEndContiguousBuf = function (_0x156d03) {
var _0x50482f;
var _0x7d9a4;
var _0x3d3ff3;
var _0x141b7e = undefined !== _0x156d03 ? _0x156d03 : this.bufferIndex;
_0x7d9a4 = this.buffers[_0x141b7e];
if (this.buffers.length > _0x141b7e + 0x1) {
for (_0x50482f = _0x141b7e + 0x1; _0x50482f < this.buffers.length && (_0x3d3ff3 = this.buffers[_0x50482f]).fileStart === _0x7d9a4.fileStart + _0x7d9a4.byteLength; _0x50482f++) {
_0x7d9a4 = _0x3d3ff3;
}
}
return _0x7d9a4.fileStart + _0x7d9a4.byteLength;
};
_0x39db91.prototype.getEndFilePositionAfter = function (_0x11b6d1) {
var _0x4520e4 = this.findPosition(true, _0x11b6d1, false);
return -0x1 !== _0x4520e4 ? this.findEndContiguousBuf(_0x4520e4) : _0x11b6d1;
};
_0x39db91.prototype.addUsedBytes = function (_0x3aeda1) {
this.buffer.usedBytes += _0x3aeda1;
this.logBufferLevel();
};
_0x39db91.prototype.setAllUsedBytes = function () {
this.buffer.usedBytes = this.buffer.byteLength;
this.logBufferLevel();
};
_0x39db91.prototype.seek = function (_0x36df22, _0x273757, _0x11965b) {
var _0x5892c2;
return -0x1 !== (_0x5892c2 = this.findPosition(_0x273757, _0x36df22, _0x11965b)) ? (this.buffer = this.buffers[_0x5892c2], this.bufferIndex = _0x5892c2, this.position = _0x36df22 - this.buffer.fileStart, _0xc44760.debug("MultiBufferStream", "Repositioning parser at buffer position: " + this.position), true) : (_0xc44760.debug("MultiBufferStream", "Position " + _0x36df22 + " not found in buffered data"), false);
};
_0x39db91.prototype.getPosition = function () {
if (-0x1 === this.bufferIndex || null === this.buffers[this.bufferIndex]) {
throw "Error accessing position in the MultiBufferStream";
}
return this.buffers[this.bufferIndex].fileStart + this.position;
};
_0x39db91.prototype.getLength = function () {
return this.byteLength;
};
_0x39db91.prototype.getEndPosition = function () {
if (-0x1 === this.bufferIndex || null === this.buffers[this.bufferIndex]) {
throw "Error accessing position in the MultiBufferStream";
}
return this.buffers[this.bufferIndex].fileStart + this.byteLength;
};
_0x524be6.MultiBufferStream = _0x39db91;
var _0x434947 = function () {
var _0x270984 = [];
_0x270984[0x3] = "ES_Descriptor";
_0x270984[0x4] = "DecoderConfigDescriptor";
_0x270984[0x5] = "DecoderSpecificInfo";
_0x270984[0x6] = "SLConfigDescriptor";
this.getDescriptorName = function (_0x546ac3) {
return _0x270984[_0x546ac3];
};
var _0x473655 = this;
var _0x161c3b = {};
this.parseOneDescriptor = function (_0x26fa25) {
var _0x1122dc;
var _0x3b544f;
var _0x28b936;
var _0x2c3d0b = 0x0;
_0x1122dc = _0x26fa25.readUint8();
for (_0x28b936 = _0x26fa25.readUint8(); 0x80 & _0x28b936;) {
_0x2c3d0b = (0x7f & _0x28b936) << 0x7;
_0x28b936 = _0x26fa25.readUint8();
}
_0x2c3d0b += 0x7f & _0x28b936;
_0xc44760.debug("MPEG4DescriptorParser", "Found " + (_0x270984[_0x1122dc] || "Descriptor " + _0x1122dc) + ", size " + _0x2c3d0b + " at position " + _0x26fa25.getPosition());
(_0x3b544f = _0x270984[_0x1122dc] ? new _0x161c3b[_0x270984[_0x1122dc]](_0x2c3d0b) : new _0x161c3b.Descriptor(_0x2c3d0b)).parse(_0x26fa25);
return _0x3b544f;
};
_0x161c3b.Descriptor = function (_0x5c6a10, _0x4c3d29) {
this.tag = _0x5c6a10;
this.size = _0x4c3d29;
this.descs = [];
};
_0x161c3b.Descriptor.prototype.parse = function (_0x16e388) {
this.data = _0x16e388.readUint8Array(this.size);
};
_0x161c3b.Descriptor.prototype.findDescriptor = function (_0x258c52) {
for (var _0x39a572 = 0x0; _0x39a572 < this.descs.length; _0x39a572++) {
if (this.descs[_0x39a572].tag == _0x258c52) {
return this.descs[_0x39a572];
}
}
return null;
};
_0x161c3b.Descriptor.prototype.parseRemainingDescriptors = function (_0x3fc2b2) {
for (var _0xf5c07c = _0x3fc2b2.position; _0x3fc2b2.position < _0xf5c07c + this.size;) {
var _0x3f8d1c = _0x473655.parseOneDescriptor(_0x3fc2b2);
this.descs.push(_0x3f8d1c);
}
};
_0x161c3b.ES_Descriptor = function (_0x4e19d5) {
_0x161c3b.Descriptor.call(this, 0x3, _0x4e19d5);
};
_0x161c3b.ES_Descriptor.prototype = new _0x161c3b.Descriptor();
_0x161c3b.ES_Descriptor.prototype.parse = function (_0xd86565) {
this.ES_ID = _0xd86565.readUint16();
this.flags = _0xd86565.readUint8();
this.size -= 0x3;
if (0x80 & this.flags) {
this.dependsOn_ES_ID = _0xd86565.readUint16();
this.size -= 0x2;
} else {
this.dependsOn_ES_ID = 0x0;
}
if (0x40 & this.flags) {
var _0x2a27c4 = _0xd86565.readUint8();
this.URL = _0xd86565.readString(_0x2a27c4);
this.size -= _0x2a27c4 + 0x1;
} else {
this.URL = '';
}
if (0x20 & this.flags) {
this.OCR_ES_ID = _0xd86565.readUint16();
this.size -= 0x2;
} else {
this.OCR_ES_ID = 0x0;
}
this.parseRemainingDescriptors(_0xd86565);
};
_0x161c3b.ES_Descriptor.prototype.getOTI = function (_0x13b3c1) {
var _0x1be4b1 = this.findDescriptor(0x4);
return _0x1be4b1 ? _0x1be4b1.oti : 0x0;
};
_0x161c3b.ES_Descriptor.prototype.getAudioConfig = function (_0xd4ff48) {
var _0x1434f6 = this.findDescriptor(0x4);
if (!_0x1434f6) {
return null;
}
var _0x455e20 = _0x1434f6.findDescriptor(0x5);
if (_0x455e20 && _0x455e20.data) {
var _0x4e206e = (0xf8 & _0x455e20.data[0x0]) >> 0x3;
if (0x1f === _0x4e206e && _0x455e20.data.length >= 0x2) {
_0x4e206e = 0x20 + ((0x7 & _0x455e20.data[0x0]) << 0x3) + ((0xe0 & _0x455e20.data[0x1]) >> 0x5);
}
return _0x4e206e;
}
return null;
};
_0x161c3b.DecoderConfigDescriptor = function (_0x105cdf) {
_0x161c3b.Descriptor.call(this, 0x4, _0x105cdf);
};
_0x161c3b.DecoderConfigDescriptor.prototype = new _0x161c3b.Descriptor();
_0x161c3b.DecoderConfigDescriptor.prototype.parse = function (_0x22d143) {
this.oti = _0x22d143.readUint8();
this.streamType = _0x22d143.readUint8();
this.bufferSize = _0x22d143.readUint24();
this.maxBitrate = _0x22d143.readUint32();
this.avgBitrate = _0x22d143.readUint32();
this.size -= 0xd;
this.parseRemainingDescriptors(_0x22d143);
};
_0x161c3b.DecoderSpecificInfo = function (_0x2c48e8) {
_0x161c3b.Descriptor.call(this, 0x5, _0x2c48e8);
};
_0x161c3b.DecoderSpecificInfo.prototype = new _0x161c3b.Descriptor();
_0x161c3b.SLConfigDescriptor = function (_0x3d7fc3) {
_0x161c3b.Descriptor.call(this, 0x6, _0x3d7fc3);
};
_0x161c3b.SLConfigDescriptor.prototype = new _0x161c3b.Descriptor();
return this;
};
_0x524be6.MPEG4DescriptorParser = _0x434947;
var _0x3bdefc = {
'ERR_INVALID_DATA': -0x1,
'ERR_NOT_ENOUGH_DATA': 0x0,
'OK': 0x1,
'BASIC_BOXES': ["mdat", "idat", "free", "skip", 'meco', 'strk'],
'FULL_BOXES': ["hmhd", 'nmhd', "iods", "xml ", 'bxml', "ipro", 'mere'],
'CONTAINER_BOXES': [["moov", ["trak", 'pssh']], ["trak"], ["edts"], ["mdia"], ["minf"], ["dinf"], ["stbl", ["sgpd", "sbgp"]], ["mvex", ["trex"]], ["moof", ["traf"]], ["traf", ["trun", 'sgpd', "sbgp"]], ['vttc'], ["tref"], ["iref"], ['mfra', ["tfra"]], ["meco"], ["hnti"], ['hinf'], ["strk"], ["strd"], ['sinf'], ["rinf"], ["schi"], ["trgr"], ["udta", ['kind']], ["iprp", ['ipma']], ["ipco"]],
'boxCodes': [],
'fullBoxCodes': [],
'containerBoxCodes': [],
'sampleEntryCodes': {},
'sampleGroupEntryCodes': [],
'trackGroupTypes': [],
'UUIDBoxes': {},
'UUIDs': [],
'initialize': function () {
_0x3bdefc.FullBox.prototype = new _0x3bdefc.Box();
_0x3bdefc.ContainerBox.prototype = new _0x3bdefc.Box();
_0x3bdefc.SampleEntry.prototype = new _0x3bdefc.Box();
_0x3bdefc.TrackGroupTypeBox.prototype = new _0x3bdefc.FullBox();
_0x3bdefc.BASIC_BOXES.forEach(function (_0x3dc896) {
_0x3bdefc.createBoxCtor(_0x3dc896);
});
_0x3bdefc.FULL_BOXES.forEach(function (_0x385bd6) {
_0x3bdefc.createFullBoxCtor(_0x385bd6);
});
_0x3bdefc.CONTAINER_BOXES.forEach(function (_0x4a4064) {
_0x3bdefc.createContainerBoxCtor(_0x4a4064[0x0], null, _0x4a4064[0x1]);
});
},
'Box': function (_0x138348, _0x4507a2, _0xe314a2) {
this.type = _0x138348;
this.size = _0x4507a2;
this.uuid = _0xe314a2;
},
'FullBox': function (_0x11bb51, _0x121f1c, _0x523fb8) {
_0x3bdefc.Box.call(this, _0x11bb51, _0x121f1c, _0x523fb8);
this.flags = 0x0;
this.version = 0x0;
},
'ContainerBox': function (_0x59860e, _0x413031, _0x1a03b2) {
_0x3bdefc.Box.call(this, _0x59860e, _0x413031, _0x1a03b2);
this.boxes = [];
},
'SampleEntry': function (_0x445418, _0x171229, _0x4657ef, _0x164836) {
_0x3bdefc.ContainerBox.call(this, _0x445418, _0x171229);
this.hdr_size = _0x4657ef;
this.start = _0x164836;
},
'SampleGroupEntry': function (_0x86f841) {
this.grouping_type = _0x86f841;
},
'TrackGroupTypeBox': function (_0x4f6eb7, _0x5d2ed2) {
_0x3bdefc.FullBox.call(this, _0x4f6eb7, _0x5d2ed2);
},
'createBoxCtor': function (_0x33ed4f, _0x370930) {
_0x3bdefc.boxCodes.push(_0x33ed4f);
_0x3bdefc[_0x33ed4f + "Box"] = function (_0x1f9937) {
_0x3bdefc.Box.call(this, _0x33ed4f, _0x1f9937);
};
_0x3bdefc[_0x33ed4f + "Box"].prototype = new _0x3bdefc.Box();
if (_0x370930) {
_0x3bdefc[_0x33ed4f + 'Box'].prototype.parse = _0x370930;
}
},
'createFullBoxCtor': function (_0x540f7c, _0x1aba69) {
_0x3bdefc[_0x540f7c + "Box"] = function (_0x4dc9bb) {
_0x3bdefc.FullBox.call(this, _0x540f7c, _0x4dc9bb);
};
_0x3bdefc[_0x540f7c + "Box"].prototype = new _0x3bdefc.FullBox();
_0x3bdefc[_0x540f7c + "Box"].prototype.parse = function (_0x41a3d4) {
this.parseFullHeader(_0x41a3d4);
if (_0x1aba69) {
_0x1aba69.call(this, _0x41a3d4);
}
};
},
'addSubBoxArrays': function (_0x519396) {
if (_0x519396) {
this.subBoxNames = _0x519396;
var _0x1d4858 = _0x519396.length;
for (var _0x17d775 = 0x0; _0x17d775 < _0x1d4858; _0x17d775++) {
this[_0x519396[_0x17d775] + 's'] = [];
}
}
},
'createContainerBoxCtor': function (_0x46e196, _0x5a101e, _0xac2a2a) {
_0x3bdefc[_0x46e196 + "Box"] = function (_0x1bdda9) {
_0x3bdefc.ContainerBox.call(this, _0x46e196, _0x1bdda9);
_0x3bdefc.addSubBoxArrays.call(this, _0xac2a2a);
};
_0x3bdefc[_0x46e196 + "Box"].prototype = new _0x3bdefc.ContainerBox();
if (_0x5a101e) {
_0x3bdefc[_0x46e196 + "Box"].prototype.parse = _0x5a101e;
}
},
'createMediaSampleEntryCtor': function (_0x2818e3, _0x2992f8, _0x2d9b5c) {
_0x3bdefc.sampleEntryCodes[_0x2818e3] = [];
_0x3bdefc[_0x2818e3 + "SampleEntry"] = function (_0x3c13a2, _0x529c7e) {
_0x3bdefc.SampleEntry.call(this, _0x3c13a2, _0x529c7e);
_0x3bdefc.addSubBoxArrays.call(this, _0x2d9b5c);
};
_0x3bdefc[_0x2818e3 + "SampleEntry"].prototype = new _0x3bdefc.SampleEntry();
if (_0x2992f8) {
_0x3bdefc[_0x2818e3 + "SampleEntry"].prototype.parse = _0x2992f8;
}
},
'createSampleEntryCtor': function (_0x2983d9, _0x21a907, _0x1efb58, _0x4e57e1) {
_0x3bdefc.sampleEntryCodes[_0x2983d9].push(_0x21a907);
_0x3bdefc[_0x21a907 + "SampleEntry"] = function (_0x56f3dc) {
_0x3bdefc[_0x2983d9 + "SampleEntry"].call(this, _0x21a907, _0x56f3dc);
_0x3bdefc.addSubBoxArrays.call(this, _0x4e57e1);
};
_0x3bdefc[_0x21a907 + "SampleEntry"].prototype = new _0x3bdefc[_0x2983d9 + "SampleEntry"]();
if (_0x1efb58) {
_0x3bdefc[_0x21a907 + "SampleEntry"].prototype.parse = _0x1efb58;
}
},
'createEncryptedSampleEntryCtor': function (_0xaf3d42, _0xc39712, _0x27a0df) {
_0x3bdefc.createSampleEntryCtor.call(this, _0xaf3d42, _0xc39712, _0x27a0df, ['sinf']);
},
'createSampleGroupCtor': function (_0x4f06c5, _0x3aae5a) {
_0x3bdefc[_0x4f06c5 + "SampleGroupEntry"] = function (_0x2fdb8e) {
_0x3bdefc.SampleGroupEntry.call(this, _0x4f06c5, _0x2fdb8e);
};
_0x3bdefc[_0x4f06c5 + "SampleGroupEntry"].prototype = new _0x3bdefc.SampleGroupEntry();
if (_0x3aae5a) {
_0x3bdefc[_0x4f06c5 + "SampleGroupEntry"].prototype.parse = _0x3aae5a;
}
},
'createTrackGroupCtor': function (_0x180640, _0x589ea7) {
_0x3bdefc[_0x180640 + "TrackGroupTypeBox"] = function (_0x28db48) {
_0x3bdefc.TrackGroupTypeBox.call(this, _0x180640, _0x28db48);
};
_0x3bdefc[_0x180640 + "TrackGroupTypeBox"].prototype = new _0x3bdefc.TrackGroupTypeBox();
if (_0x589ea7) {
_0x3bdefc[_0x180640 + "TrackGroupTypeBox"].prototype.parse = _0x589ea7;
}
},
'createUUIDBox': function (_0x31e8ed, _0x21af6b, _0x4cb373, _0x3f0e60) {
_0x3bdefc.UUIDs.push(_0x31e8ed);
_0x3bdefc.UUIDBoxes[_0x31e8ed] = function (_0xedc15) {
if (_0x21af6b) {
_0x3bdefc.FullBox.call(this, "uuid", _0xedc15, _0x31e8ed);
} else if (_0x4cb373) {
_0x3bdefc.ContainerBox.call(this, 'uuid', _0xedc15, _0x31e8ed);
} else {
_0x3bdefc.Box.call(this, 'uuid', _0xedc15, _0x31e8ed);
}
};
_0x3bdefc.UUIDBoxes[_0x31e8ed].prototype = _0x21af6b ? new _0x3bdefc.FullBox() : _0x4cb373 ? new _0x3bdefc.ContainerBox() : new _0x3bdefc.Box();
if (_0x3f0e60) {
_0x3bdefc.UUIDBoxes[_0x31e8ed].prototype.parse = _0x21af6b ? function (_0x45633b) {
this.parseFullHeader(_0x45633b);
if (_0x3f0e60) {
_0x3f0e60.call(this, _0x45633b);
}
} : _0x3f0e60;
}
}
};
_0x3bdefc.initialize();
_0x3bdefc.TKHD_FLAG_ENABLED = 0x1;
_0x3bdefc.TKHD_FLAG_IN_MOVIE = 0x2;
_0x3bdefc.TKHD_FLAG_IN_PREVIEW = 0x4;
_0x3bdefc.TFHD_FLAG_BASE_DATA_OFFSET = 0x1;
_0x3bdefc.TFHD_FLAG_SAMPLE_DESC = 0x2;
_0x3bdefc.TFHD_FLAG_SAMPLE_DUR = 0x8;
_0x3bdefc.TFHD_FLAG_SAMPLE_SIZE = 0x10;
_0x3bdefc.TFHD_FLAG_SAMPLE_FLAGS = 0x20;
_0x3bdefc.TFHD_FLAG_DUR_EMPTY = 0x10000;
_0x3bdefc.TFHD_FLAG_DEFAULT_BASE_IS_MOOF = 0x20000;
_0x3bdefc.TRUN_FLAGS_DATA_OFFSET = 0x1;
_0x3bdefc.TRUN_FLAGS_FIRST_FLAG = 0x4;
_0x3bdefc.TRUN_FLAGS_DURATION = 0x100;
_0x3bdefc.TRUN_FLAGS_SIZE = 0x200;
_0x3bdefc.TRUN_FLAGS_FLAGS = 0x400;
_0x3bdefc.TRUN_FLAGS_CTS_OFFSET = 0x800;
_0x3bdefc.Box.prototype.add = function (_0xc7b9ff) {
return this.addBox(new _0x3bdefc[_0xc7b9ff + "Box"]());
};
_0x3bdefc.Box.prototype.addBox = function (_0x1ccaef) {
this.boxes.push(_0x1ccaef);
if (this[_0x1ccaef.type + 's']) {
this[_0x1ccaef.type + 's'].push(_0x1ccaef);
} else {
this[_0x1ccaef.type] = _0x1ccaef;
}
return _0x1ccaef;
};
_0x3bdefc.Box.prototype.set = function (_0x31f4e0, _0x2dcf33) {
this[_0x31f4e0] = _0x2dcf33;
return this;
};
_0x3bdefc.Box.prototype.addEntry = function (_0x4257c6, _0x1cbe2e) {
var _0x454db3 = _0x1cbe2e || "entries";
if (!this[_0x454db3]) {
this[_0x454db3] = [];
}
this[_0x454db3].push(_0x4257c6);
return this;
};
_0x524be6.BoxParser = _0x3bdefc;
_0x3bdefc.parseUUID = function (_0x5888bf) {
return _0x3bdefc.parseHex16(_0x5888bf);
};
_0x3bdefc.parseHex16 = function (_0x57b7df) {
var _0x54946d = '';
for (var _0x4feb49 = 0x0; _0x4feb49 < 0x10; _0x4feb49++) {
var _0x1eca43 = _0x57b7df.readUint8().toString(0x10);
_0x54946d += 0x1 === _0x1eca43.length ? '0' + _0x1eca43 : _0x1eca43;
}
return _0x54946d;
};
_0x3bdefc.parseOneBox = function (_0x36560a, _0x1292e8, _0x19b2e1) {
var _0x391134;
var _0x55431c;
var _0x38e79f;
var _0x3a81a8 = _0x36560a.getPosition();
var _0x40ac30 = 0x0;
var _0x5d33c0 = {
code: 0x0
};
if (_0x36560a.getEndPosition() - _0x3a81a8 < 0x8) {
_0xc44760.debug("BoxParser", "Not enough data in stream to parse the type and size of the box");
return _0x5d33c0;
}
var _0x3a8c21 = {
code: 0x0
};
if (_0x19b2e1 && _0x19b2e1 < 0x8) {
_0xc44760.debug('BoxParser', "Not enough bytes left in the parent box to parse a new box");
return _0x3a8c21;
}
var _0x31eac1 = _0x36560a.readUint32();
var _0x52cd18 = _0x36560a.readString(0x4);
var _0x4c9114 = _0x52cd18;
_0xc44760.debug("BoxParser", "Found box of type '" + _0x52cd18 + "' and size " + _0x31eac1 + " at position " + _0x3a81a8);
_0x40ac30 = 0x8;
if ('uuid' == _0x52cd18) {
var _0x28fb50 = {
code: 0x0
};
if (_0x36560a.getEndPosition() - _0x36560a.getPosition() < 0x10 || _0x19b2e1 - _0x40ac30 < 0x10) {
_0x36560a.seek(_0x3a81a8);
_0xc44760.debug("BoxParser", "Not enough bytes left in the parent box to parse a UUID box");
return _0x28fb50;
}
_0x40ac30 += 0x10;
_0x4c9114 = _0x38e79f = _0x3bdefc.parseUUID(_0x36560a);
}
if (0x1 == _0x31eac1) {
var _0x9e62ee = {
code: 0x0
};
if (_0x36560a.getEndPosition() - _0x36560a.getPosition() < 0x8 || _0x19b2e1 && _0x19b2e1 - _0x40ac30 < 0x8) {
_0x36560a.seek(_0x3a81a8);
_0xc44760.warn("BoxParser", "Not enough data in stream to parse the extended size of the \"" + _0x52cd18 + "\" box");
return _0x9e62ee;
}
_0x31eac1 = _0x36560a.readUint64();
_0x40ac30 += 0x8;
} else {
if (0x0 === _0x31eac1) {
if (_0x19b2e1) {
_0x31eac1 = _0x19b2e1;
} else {
if ("mdat" !== _0x52cd18) {
_0xc44760.error('BoxParser', "Unlimited box size not supported for type: '" + _0x52cd18 + "'");
_0x391134 = new _0x3bdefc.Box(_0x52cd18, _0x31eac1);
return {
'code': 0x1,
'box': _0x391134,
'size': _0x391134.size
};
}
}
}
}
return 0x0 !== _0x31eac1 && _0x31eac1 < _0x40ac30 ? (_0xc44760.error("BoxParser", "Box of type " + _0x52cd18 + " has an invalid size " + _0x31eac1 + " (too small to be a box)"), {
'code': 0x0,
'type': _0x52cd18,
'size': _0x31eac1,
'hdr_size': _0x40ac30,
'start': _0x3a81a8
}) : 0x0 !== _0x31eac1 && _0x19b2e1 && _0x31eac1 > _0x19b2e1 ? (_0xc44760.error("BoxParser", "Box of type '" + _0x52cd18 + "' has a size " + _0x31eac1 + " greater than its container size " + _0x19b2e1), {
'code': 0x0,
'type': _0x52cd18,
'size': _0x31eac1,
'hdr_size': _0x40ac30,
'start': _0x3a81a8
}) : 0x0 !== _0x31eac1 && _0x3a81a8 + _0x31eac1 > _0x36560a.getEndPosition() ? (_0x36560a.seek(_0x3a81a8), _0xc44760.info('BoxParser', "Not enough data in stream to parse the entire '" + _0x52cd18 + "' box"), {
'code': 0x0,
'type': _0x52cd18,
'size': _0x31eac1,
'hdr_size': _0x40ac30,
'start': _0x3a81a8
}) : _0x1292e8 ? {
'code': 0x1,
'type': _0x52cd18,
'size': _0x31eac1,
'hdr_size': _0x40ac30,
'start': _0x3a81a8
} : (_0x3bdefc[_0x52cd18 + 'Box'] ? _0x391134 = new _0x3bdefc[_0x52cd18 + "Box"](_0x31eac1) : "uuid" !== _0x52cd18 ? (_0xc44760.warn("BoxParser", "Unknown box type: '" + _0x52cd18 + "'"), (_0x391134 = new _0x3bdefc.Box(_0x52cd18, _0x31eac1)).has_unparsed_data = true) : _0x3bdefc.UUIDBoxes[_0x38e79f] ? _0x391134 = new _0x3bdefc.UUIDBoxes[_0x38e79f](_0x31eac1) : (_0xc44760.warn("BoxParser", "Unknown uuid type: '" + _0x38e79f + "'"), (_0x391134 = new _0x3bdefc.Box(_0x52cd18, _0x31eac1)).uuid = _0x38e79f, _0x391134.has_unparsed_data = true), _0x391134.hdr_size = _0x40ac30, _0x391134.start = _0x3a81a8, _0x391134.write === _0x3bdefc.Box.prototype.write && 'mdat' !== _0x391134.type && (_0xc44760.info("BoxParser", "'" + _0x4c9114 + "' box writing not yet implemented, keeping unparsed data in memory for later write"), _0x391134.parseDataAndRewind(_0x36560a)), _0x391134.parse(_0x36560a), (_0x55431c = _0x36560a.getPosition() - (_0x391134.start + _0x391134.size)) < 0x0 ? (_0xc44760.warn("BoxParser", "Parsing of box '" + _0x4c9114 + "' did not read the entire indicated box data size (missing " + -_0x55431c + " bytes), seeking forward"), _0x36560a.seek(_0x391134.start + _0x391134.size)) : _0x55431c > 0x0 && (_0xc44760.error("BoxParser", "Parsing of box '" + _0x4c9114 + "' read " + _0x55431c + " more bytes than the indicated box data size, seeking backwards"), 0x0 !== _0x391134.size && _0x36560a.seek(_0x391134.start + _0x391134.size)), {
'code': 0x1,
'box': _0x391134,
'size': _0x391134.size
});
};
_0x3bdefc.Box.prototype.parse = function (_0x3ee3b4) {
if ("mdat" != this.type) {
this.data = _0x3ee3b4.readUint8Array(this.size - this.hdr_size);
} else if (0x0 === this.size) {
_0x3ee3b4.seek(_0x3ee3b4.getEndPosition());
} else {
_0x3ee3b4.seek(this.start + this.size);
}
};
_0x3bdefc.Box.prototype.parseDataAndRewind = function (_0x5f150c) {
this.data = _0x5f150c.readUint8Array(this.size - this.hdr_size);
_0x5f150c.position -= this.size - this.hdr_size;
};
_0x3bdefc.FullBox.prototype.parseDataAndRewind = function (_0x42829e) {
this.parseFullHeader(_0x42829e);
this.data = _0x42829e.readUint8Array(this.size - this.hdr_size);
this.hdr_size -= 0x4;
_0x42829e.position -= this.size - this.hdr_size;
};
_0x3bdefc.FullBox.prototype.parseFullHeader = function (_0x8f7423) {
this.version = _0x8f7423.readUint8();
this.flags = _0x8f7423.readUint24();
this.hdr_size += 0x4;
};
_0x3bdefc.FullBox.prototype.parse = function (_0x4efb94) {
this.parseFullHeader(_0x4efb94);
this.data = _0x4efb94.readUint8Array(this.size - this.hdr_size);
};
_0x3bdefc.ContainerBox.prototype.parse = function (_0x137571) {
var _0x4758e2;
for (var _0x124aca; _0x137571.getPosition() < this.start + this.size;) {
if ((_0x4758e2 = _0x3bdefc.parseOneBox(_0x137571, false, this.size - (_0x137571.getPosition() - this.start))).code !== 0x1) {
return;
}
_0x124aca = _0x4758e2.box;
this.boxes.push(_0x124aca);
if (this.subBoxNames && -0x1 != this.subBoxNames.indexOf(_0x124aca.type)) {
this[this.subBoxNames[this.subBoxNames.indexOf(_0x124aca.type)] + 's'].push(_0x124aca);
} else {
var _0x55ad82 = "uuid" !== _0x124aca.type ? _0x124aca.type : _0x124aca.uuid;
if (this[_0x55ad82]) {
_0xc44760.warn("Box of type " + _0x55ad82 + " already stored in field of this type");
} else {
this[_0x55ad82] = _0x124aca;
}
}
}
};
_0x3bdefc.Box.prototype.parseLanguage = function (_0x39147f) {
this.language = _0x39147f.readUint16();
var _0x5b5f4a = [];
_0x5b5f4a[0x0] = this.language >> 0xa & 0x1f;
_0x5b5f4a[0x1] = this.language >> 0x5 & 0x1f;
_0x5b5f4a[0x2] = 0x1f & this.language;
this.languageString = String.fromCharCode(_0x5b5f4a[0x0] + 0x60, _0x5b5f4a[0x1] + 0x60, _0x5b5f4a[0x2] + 0x60);
};
_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL = "Visual";
_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO = 'Audio';
_0x3bdefc.SAMPLE_ENTRY_TYPE_HINT = "Hint";
_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA = "Metadata";
_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE = "Subtitle";
_0x3bdefc.SAMPLE_ENTRY_TYPE_SYSTEM = "System";
_0x3bdefc.SAMPLE_ENTRY_TYPE_TEXT = "Text";
_0x3bdefc.SampleEntry.prototype.parseHeader = function (_0x585915) {
_0x585915.readUint8Array(0x6);
this.data_reference_index = _0x585915.readUint16();
this.hdr_size += 0x8;
};
_0x3bdefc.SampleEntry.prototype.parse = function (_0x57a3ef) {
this.parseHeader(_0x57a3ef);
this.data = _0x57a3ef.readUint8Array(this.size - this.hdr_size);
};
_0x3bdefc.SampleEntry.prototype.parseDataAndRewind = function (_0x199df1) {
this.parseHeader(_0x199df1);
this.data = _0x199df1.readUint8Array(this.size - this.hdr_size);
this.hdr_size -= 0x8;
_0x199df1.position -= this.size - this.hdr_size;
};
_0x3bdefc.SampleEntry.prototype.parseFooter = function (_0x4f2f14) {
_0x3bdefc.ContainerBox.prototype.parse.call(this, _0x4f2f14);
};
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_HINT);
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA);
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE);
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SYSTEM);
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_TEXT);
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, function (_0x2c33da) {
var _0x1124b0;
this.parseHeader(_0x2c33da);
_0x2c33da.readUint16();
_0x2c33da.readUint16();
_0x2c33da.readUint32Array(0x3);
this.width = _0x2c33da.readUint16();
this.height = _0x2c33da.readUint16();
this.horizresolution = _0x2c33da.readUint32();
this.vertresolution = _0x2c33da.readUint32();
_0x2c33da.readUint32();
this.frame_count = _0x2c33da.readUint16();
_0x1124b0 = Math.min(0x1f, _0x2c33da.readUint8());
this.compressorname = _0x2c33da.readString(_0x1124b0);
if (_0x1124b0 < 0x1f) {
_0x2c33da.readString(0x1f - _0x1124b0);
}
this.depth = _0x2c33da.readUint16();
_0x2c33da.readUint16();
this.parseFooter(_0x2c33da);
});
_0x3bdefc.createMediaSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, function (_0x454ce2) {
this.parseHeader(_0x454ce2);
_0x454ce2.readUint32Array(0x2);
this.channel_count = _0x454ce2.readUint16();
this.samplesize = _0x454ce2.readUint16();
_0x454ce2.readUint16();
_0x454ce2.readUint16();
this.samplerate = _0x454ce2.readUint32() / 0x10000;
this.parseFooter(_0x454ce2);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "avc1");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "avc2");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "avc3");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, 'avc4');
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "av01");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "hvc1");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, 'hev1');
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "vvc1");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, 'vvi1');
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, 'vvs1');
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "vvcN");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "vp08");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "vp09");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, "mp4a");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, "ac-3");
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, 'ec-3');
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, "Opus");
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_VISUAL, "encv");
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_AUDIO, "enca");
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE, 'encu');
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SYSTEM, 'encs');
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_TEXT, "enct");
_0x3bdefc.createEncryptedSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA, "encm");
_0x3bdefc.createBoxCtor("a1lx", function (_0x2c12ba) {
var _0x5ba9e0 = 0x10 * (0x1 + (0x1 & _0x2c12ba.readUint8()));
this.layer_size = [];
for (var _0x2b8f0a = 0x0; _0x2b8f0a < 0x3; _0x2b8f0a++) {
this.layer_size[_0x2b8f0a] = 0x10 == _0x5ba9e0 ? _0x2c12ba.readUint16() : _0x2c12ba.readUint32();
}
});
_0x3bdefc.createBoxCtor("a1op", function (_0x2d6a04) {
this.op_index = _0x2d6a04.readUint8();
});
_0x3bdefc.createFullBoxCtor("auxC", function (_0x12828f) {
this.aux_type = _0x12828f.readCString();
var _0x14099f = this.size - this.hdr_size - (this.aux_type.length + 0x1);
this.aux_subtype = _0x12828f.readUint8Array(_0x14099f);
});
_0x3bdefc.createBoxCtor("av1C", function (_0x5b9a11) {
var _0x4b3e59 = _0x5b9a11.readUint8();
if (_0x4b3e59 >> 0x7 & false) {
_0xc44760.error("av1C marker problem");
} else {
this.version = 0x7f & _0x4b3e59;
if (0x1 === this.version) {
_0x4b3e59 = _0x5b9a11.readUint8();
this.seq_profile = _0x4b3e59 >> 0x5 & 0x7;
this.seq_level_idx_0 = 0x1f & _0x4b3e59;
_0x4b3e59 = _0x5b9a11.readUint8();
this.seq_tier_0 = _0x4b3e59 >> 0x7 & 0x1;
this.high_bitdepth = _0x4b3e59 >> 0x6 & 0x1;
this.twelve_bit = _0x4b3e59 >> 0x5 & 0x1;
this.monochrome = _0x4b3e59 >> 0x4 & 0x1;
this.chroma_subsampling_x = _0x4b3e59 >> 0x3 & 0x1;
this.chroma_subsampling_y = _0x4b3e59 >> 0x2 & 0x1;
this.chroma_sample_position = 0x3 & _0x4b3e59;
_0x4b3e59 = _0x5b9a11.readUint8();
this.reserved_1 = _0x4b3e59 >> 0x5 & 0x7;
if (0x0 === this.reserved_1) {
this.initial_presentation_delay_present = _0x4b3e59 >> 0x4 & 0x1;
if (0x1 === this.initial_presentation_delay_present) {
this.initial_presentation_delay_minus_one = 0xf & _0x4b3e59;
} else {
this.reserved_2 = 0xf & _0x4b3e59;
if (0x0 !== this.reserved_2) {
return void _0xc44760.error("av1C reserved_2 parsing problem");
}
}
var _0x52e4a1 = this.size - this.hdr_size - 0x4;
this.configOBUs = _0x5b9a11.readUint8Array(_0x52e4a1);
} else {
_0xc44760.error("av1C reserved_1 parsing problem");
}
} else {
_0xc44760.error("av1C version " + this.version + " not supported");
}
}
});
_0x3bdefc.createBoxCtor('avcC', function (_0x335104) {
var _0x201985;
var _0x2df827;
this.configurationVersion = _0x335104.readUint8();
this.AVCProfileIndication = _0x335104.readUint8();
this.profile_compatibility = _0x335104.readUint8();
this.AVCLevelIndication = _0x335104.readUint8();
this.lengthSizeMinusOne = 0x3 & _0x335104.readUint8();
this.nb_SPS_nalus = 0x1f & _0x335104.readUint8();
_0x2df827 = this.size - this.hdr_size - 0x6;
this.SPS = [];
for (_0x201985 = 0x0; _0x201985 < this.nb_SPS_nalus; _0x201985++) {
this.SPS[_0x201985] = {};
this.SPS[_0x201985].length = _0x335104.readUint16();
this.SPS[_0x201985].nalu = _0x335104.readUint8Array(this.SPS[_0x201985].length);
_0x2df827 -= 0x2 + this.SPS[_0x201985].length;
}
this.nb_PPS_nalus = _0x335104.readUint8();
_0x2df827--;
this.PPS = [];
for (_0x201985 = 0x0; _0x201985 < this.nb_PPS_nalus; _0x201985++) {
this.PPS[_0x201985] = {};
this.PPS[_0x201985].length = _0x335104.readUint16();
this.PPS[_0x201985].nalu = _0x335104.readUint8Array(this.PPS[_0x201985].length);
_0x2df827 -= 0x2 + this.PPS[_0x201985].length;
}
if (_0x2df827 > 0x0) {
this.ext = _0x335104.readUint8Array(_0x2df827);
}
});
_0x3bdefc.createBoxCtor("btrt", function (_0x1097f2) {
this.bufferSizeDB = _0x1097f2.readUint32();
this.maxBitrate = _0x1097f2.readUint32();
this.avgBitrate = _0x1097f2.readUint32();
});
_0x3bdefc.createBoxCtor("clap", function (_0x4735f3) {
this.cleanApertureWidthN = _0x4735f3.readUint32();
this.cleanApertureWidthD = _0x4735f3.readUint32();
this.cleanApertureHeightN = _0x4735f3.readUint32();
this.cleanApertureHeightD = _0x4735f3.readUint32();
this.horizOffN = _0x4735f3.readUint32();
this.horizOffD = _0x4735f3.readUint32();
this.vertOffN = _0x4735f3.readUint32();
this.vertOffD = _0x4735f3.readUint32();
});
_0x3bdefc.createBoxCtor("clli", function (_0x5d121f) {
this.max_content_light_level = _0x5d121f.readUint16();
this.max_pic_average_light_level = _0x5d121f.readUint16();
});
_0x3bdefc.createFullBoxCtor('co64', function (_0x4b7cd7) {
var _0x487c35;
var _0x3343e4;
_0x487c35 = _0x4b7cd7.readUint32();
this.chunk_offsets = [];
if (0x0 === this.version) {
for (_0x3343e4 = 0x0; _0x3343e4 < _0x487c35; _0x3343e4++) {
this.chunk_offsets.push(_0x4b7cd7.readUint64());
}
}
});
_0x3bdefc.createFullBoxCtor("CoLL", function (_0x910466) {
this.maxCLL = _0x910466.readUint16();
this.maxFALL = _0x910466.readUint16();
});
_0x3bdefc.createBoxCtor("colr", function (_0x5e4771) {
this.colour_type = _0x5e4771.readString(0x4);
if ("nclx" === this.colour_type) {
this.colour_primaries = _0x5e4771.readUint16();
this.transfer_characteristics = _0x5e4771.readUint16();
this.matrix_coefficients = _0x5e4771.readUint16();
var _0x24c5a4 = _0x5e4771.readUint8();
this.full_range_flag = _0x24c5a4 >> 0x7;
} else if ("rICC" === this.colour_type || "prof" === this.colour_type) {
this.ICC_profile = _0x5e4771.readUint8Array(this.size - 0x4);
}
});
_0x3bdefc.createFullBoxCtor('cprt', function (_0x3e56fa) {
this.parseLanguage(_0x3e56fa);
this.notice = _0x3e56fa.readCString();
});
_0x3bdefc.createFullBoxCtor("cslg", function (_0x4f3296) {
if (0x0 === this.version) {
this.compositionToDTSShift = _0x4f3296.readInt32();
this.leastDecodeToDisplayDelta = _0x4f3296.readInt32();
this.greatestDecodeToDisplayDelta = _0x4f3296.readInt32();
this.compositionStartTime = _0x4f3296.readInt32();
this.compositionEndTime = _0x4f3296.readInt32();
}
});
_0x3bdefc.createFullBoxCtor("ctts", function (_0x5917a7) {
var _0x22c689;
var _0x4cd81e;
_0x22c689 = _0x5917a7.readUint32();
this.sample_counts = [];
this.sample_offsets = [];
if (0x0 === this.version) {
for (_0x4cd81e = 0x0; _0x4cd81e < _0x22c689; _0x4cd81e++) {
this.sample_counts.push(_0x5917a7.readUint32());
var _0x38e84e = _0x5917a7.readInt32();
if (_0x38e84e < 0x0) {
_0xc44760.warn("BoxParser", "ctts box uses negative values without using version 1");
}
this.sample_offsets.push(_0x38e84e);
}
} else {
if (0x1 == this.version) {
for (_0x4cd81e = 0x0; _0x4cd81e < _0x22c689; _0x4cd81e++) {
this.sample_counts.push(_0x5917a7.readUint32());
this.sample_offsets.push(_0x5917a7.readInt32());
}
}
}
});
_0x3bdefc.createBoxCtor("dac3", function (_0x526623) {
var _0x13be2b = _0x526623.readUint8();
var _0x34f3c6 = _0x526623.readUint8();
var _0xf281ac = _0x526623.readUint8();
this.fscod = _0x13be2b >> 0x6;
this.bsid = _0x13be2b >> 0x1 & 0x1f;
this.bsmod = (0x1 & _0x13be2b) << 0x2 | _0x34f3c6 >> 0x6 & 0x3;
this.acmod = _0x34f3c6 >> 0x3 & 0x7;
this.lfeon = _0x34f3c6 >> 0x2 & 0x1;
this.bit_rate_code = 0x3 & _0x34f3c6 | _0xf281ac >> 0x5 & 0x7;
});
_0x3bdefc.createBoxCtor("dec3", function (_0x290c15) {
var _0x394f70 = _0x290c15.readUint16();
this.data_rate = _0x394f70 >> 0x3;
this.num_ind_sub = 0x7 & _0x394f70;
this.ind_subs = [];
for (var _0x3ac640 = 0x0; _0x3ac640 < this.num_ind_sub + 0x1; _0x3ac640++) {
var _0xaa1f1f = {};
this.ind_subs.push(_0xaa1f1f);
var _0x30bb29 = _0x290c15.readUint8();
var _0x1185bb = _0x290c15.readUint8();
var _0x3e9a71 = _0x290c15.readUint8();
_0xaa1f1f.fscod = _0x30bb29 >> 0x6;
_0xaa1f1f.bsid = _0x30bb29 >> 0x1 & 0x1f;
_0xaa1f1f.bsmod = (0x1 & _0x30bb29) << 0x4 | _0x1185bb >> 0x4 & 0xf;
_0xaa1f1f.acmod = _0x1185bb >> 0x1 & 0x7;
_0xaa1f1f.lfeon = 0x1 & _0x1185bb;
_0xaa1f1f.num_dep_sub = _0x3e9a71 >> 0x1 & 0xf;
if (_0xaa1f1f.num_dep_sub > 0x0) {
_0xaa1f1f.chan_loc = (0x1 & _0x3e9a71) << 0x8 | _0x290c15.readUint8();
}
}
});
_0x3bdefc.createFullBoxCtor("dfLa", function (_0x487435) {
var _0x21e2c9 = [];
var _0x192161 = ["STREAMINFO", "PADDING", "APPLICATION", "SEEKTABLE", "VORBIS_COMMENT", "CUESHEET", "PICTURE", 'RESERVED'];
for (this.parseFullHeader(_0x487435);;) {
var _0x652dcf = _0x487435.readUint8();
var _0x49d5d3 = Math.min(0x7f & _0x652dcf, _0x192161.length - 0x1);
if (_0x49d5d3) {
_0x487435.readUint8Array(_0x487435.readUint24());
} else {
_0x487435.readUint8Array(0xd);
this.samplerate = _0x487435.readUint32() >> 0xc;
_0x487435.readUint8Array(0x14);
}
_0x21e2c9.push(_0x192161[_0x49d5d3]);
if (0x80 & _0x652dcf) {
break;
}
}
this.numMetadataBlocks = _0x21e2c9.length + " (" + _0x21e2c9.join(", ") + ')';
});
_0x3bdefc.createBoxCtor("dimm", function (_0x4832ce) {
this.bytessent = _0x4832ce.readUint64();
});
_0x3bdefc.createBoxCtor("dmax", function (_0x14e949) {
this.time = _0x14e949.readUint32();
});
_0x3bdefc.createBoxCtor("dmed", function (_0x5e1d77) {
this.bytessent = _0x5e1d77.readUint64();
});
_0x3bdefc.createBoxCtor("dOps", function (_0x55a146) {
this.Version = _0x55a146.readUint8();
this.OutputChannelCount = _0x55a146.readUint8();
this.PreSkip = _0x55a146.readUint16();
this.InputSampleRate = _0x55a146.readUint32();
this.OutputGain = _0x55a146.readInt16();
this.ChannelMappingFamily = _0x55a146.readUint8();
if (0x0 !== this.ChannelMappingFamily) {
this.StreamCount = _0x55a146.readUint8();
this.CoupledCount = _0x55a146.readUint8();
this.ChannelMapping = [];
for (var _0x362fa9 = 0x0; _0x362fa9 < this.OutputChannelCount; _0x362fa9++) {
this.ChannelMapping[_0x362fa9] = _0x55a146.readUint8();
}
}
});
_0x3bdefc.createFullBoxCtor("dref", function (_0x434274) {
var _0x2114d6;
var _0x3251ce;
this.entries = [];
var _0x274728 = _0x434274.readUint32();
for (var _0x57037f = 0x0; _0x57037f < _0x274728; _0x57037f++) {
if ((_0x2114d6 = _0x3bdefc.parseOneBox(_0x434274, false, this.size - (_0x434274.getPosition() - this.start))).code !== 0x1) {
return;
}
_0x3251ce = _0x2114d6.box;
this.entries.push(_0x3251ce);
}
});
_0x3bdefc.createBoxCtor("drep", function (_0x40eb8b) {
this.bytessent = _0x40eb8b.readUint64();
});
_0x3bdefc.createFullBoxCtor("elng", function (_0x490c7b) {
this.extended_language = _0x490c7b.readString(this.size - this.hdr_size);
});
_0x3bdefc.createFullBoxCtor("elst", function (_0x5635d2) {
this.entries = [];
var _0x2d0d29 = _0x5635d2.readUint32();
for (var _0xeef047 = 0x0; _0xeef047 < _0x2d0d29; _0xeef047++) {
var _0xe1151 = {};
this.entries.push(_0xe1151);
if (0x1 === this.version) {
_0xe1151.segment_duration = _0x5635d2.readUint64();
_0xe1151.media_time = _0x5635d2.readInt64();
} else {
_0xe1151.segment_duration = _0x5635d2.readUint32();
_0xe1151.media_time = _0x5635d2.readInt32();
}
_0xe1151.media_rate_integer = _0x5635d2.readInt16();
_0xe1151.media_rate_fraction = _0x5635d2.readInt16();
}
});
_0x3bdefc.createFullBoxCtor("emsg", function (_0x507376) {
if (0x1 == this.version) {
this.timescale = _0x507376.readUint32();
this.presentation_time = _0x507376.readUint64();
this.event_duration = _0x507376.readUint32();
this.id = _0x507376.readUint32();
this.scheme_id_uri = _0x507376.readCString();
this.value = _0x507376.readCString();
} else {
this.scheme_id_uri = _0x507376.readCString();
this.value = _0x507376.readCString();
this.timescale = _0x507376.readUint32();
this.presentation_time_delta = _0x507376.readUint32();
this.event_duration = _0x507376.readUint32();
this.id = _0x507376.readUint32();
}
var _0x415f52 = this.size - this.hdr_size - (0x10 + (this.scheme_id_uri.length + 0x1) + (this.value.length + 0x1));
if (0x1 == this.version) {
_0x415f52 -= 0x4;
}
this.message_data = _0x507376.readUint8Array(_0x415f52);
});
_0x3bdefc.createFullBoxCtor("esds", function (_0x3f9e03) {
var _0x308dad = _0x3f9e03.readUint8Array(this.size - this.hdr_size);
if (undefined !== _0x434947) {
var _0x3ffd79 = new _0x434947();
this.esd = _0x3ffd79.parseOneDescriptor(new _0x325146(_0x308dad.buffer, 0x0, _0x325146.BIG_ENDIAN));
}
});
_0x3bdefc.createBoxCtor("fiel", function (_0xc452af) {
this.fieldCount = _0xc452af.readUint8();
this.fieldOrdering = _0xc452af.readUint8();
});
_0x3bdefc.createBoxCtor("frma", function (_0xcf2e6e) {
this.data_format = _0xcf2e6e.readString(0x4);
});
_0x3bdefc.createBoxCtor("ftyp", function (_0x48c9ac) {
var _0x330b88 = this.size - this.hdr_size;
this.major_brand = _0x48c9ac.readString(0x4);
this.minor_version = _0x48c9ac.readUint32();
_0x330b88 -= 0x8;
this.compatible_brands = [];
for (var _0xec3f0f = 0x0; _0x330b88 >= 0x4;) {
this.compatible_brands[_0xec3f0f] = _0x48c9ac.readString(0x4);
_0x330b88 -= 0x4;
_0xec3f0f++;
}
});
_0x3bdefc.createFullBoxCtor('hdlr', function (_0x8f009) {
if (0x0 === this.version) {
_0x8f009.readUint32();
this.handler = _0x8f009.readString(0x4);
_0x8f009.readUint32Array(0x3);
this.name = _0x8f009.readString(this.size - this.hdr_size - 0x14);
if ("\0" === this.name[this.name.length - 0x1]) {
this.name = this.name.slice(0x0, -0x1);
}
}
});
_0x3bdefc.createBoxCtor("hvcC", function (_0x494176) {
var _0x1064b7;
var _0xf95d6b;
var _0x26b309;
var _0x1ec387;
this.configurationVersion = _0x494176.readUint8();
_0x1ec387 = _0x494176.readUint8();
this.general_profile_space = _0x1ec387 >> 0x6;
this.general_tier_flag = (0x20 & _0x1ec387) >> 0x5;
this.general_profile_idc = 0x1f & _0x1ec387;
this.general_profile_compatibility = _0x494176.readUint32();
this.general_constraint_indicator = _0x494176.readUint8Array(0x6);
this.general_level_idc = _0x494176.readUint8();
this.min_spatial_segmentation_idc = 0xfff & _0x494176.readUint16();
this.parallelismType = 0x3 & _0x494176.readUint8();
this.chroma_format_idc = 0x3 & _0x494176.readUint8();
this.bit_depth_luma_minus8 = 0x7 & _0x494176.readUint8();
this.bit_depth_chroma_minus8 = 0x7 & _0x494176.readUint8();
this.avgFrameRate = _0x494176.readUint16();
_0x1ec387 = _0x494176.readUint8();
this.constantFrameRate = _0x1ec387 >> 0x6;
this.numTemporalLayers = (0xd & _0x1ec387) >> 0x3;
this.temporalIdNested = (0x4 & _0x1ec387) >> 0x2;
this.lengthSizeMinusOne = 0x3 & _0x1ec387;
this.nalu_arrays = [];
var _0x259dd9 = _0x494176.readUint8();
for (_0x1064b7 = 0x0; _0x1064b7 < _0x259dd9; _0x1064b7++) {
var _0x4ae522 = [];
this.nalu_arrays.push(_0x4ae522);
_0x1ec387 = _0x494176.readUint8();
_0x4ae522.completeness = (0x80 & _0x1ec387) >> 0x7;
_0x4ae522.nalu_type = 0x3f & _0x1ec387;
var _0xf9c77c = _0x494176.readUint16();
for (_0xf95d6b = 0x0; _0xf95d6b < _0xf9c77c; _0xf95d6b++) {
var _0x18e288 = {};
_0x4ae522.push(_0x18e288);
_0x26b309 = _0x494176.readUint16();
_0x18e288.data = _0x494176.readUint8Array(_0x26b309);
}
}
});
_0x3bdefc.createFullBoxCtor("iinf", function (_0x32edc5) {
var _0xca1a77;
if (0x0 === this.version) {
this.entry_count = _0x32edc5.readUint16();
} else {
this.entry_count = _0x32edc5.readUint32();
}
this.item_infos = [];
for (var _0x84cc78 = 0x0; _0x84cc78 < this.entry_count; _0x84cc78++) {
if ((_0xca1a77 = _0x3bdefc.parseOneBox(_0x32edc5, false, this.size - (_0x32edc5.getPosition() - this.start))).code !== 0x1) {
return;
}
if ('infe' !== _0xca1a77.box.type) {
_0xc44760.error("BoxParser", "Expected 'infe' box, got " + _0xca1a77.box.type);
}
this.item_infos[_0x84cc78] = _0xca1a77.box;
}
});
_0x3bdefc.createFullBoxCtor("iloc", function (_0x14a8e4) {
var _0x2486d3;
_0x2486d3 = _0x14a8e4.readUint8();
this.offset_size = _0x2486d3 >> 0x4 & 0xf;
this.length_size = 0xf & _0x2486d3;
_0x2486d3 = _0x14a8e4.readUint8();
this.base_offset_size = _0x2486d3 >> 0x4 & 0xf;
if (0x1 === this.version || 0x2 === this.version) {
this.index_size = 0xf & _0x2486d3;
} else {
this.index_size = 0x0;
}
this.items = [];
var _0x40523b = 0x0;
if (this.version < 0x2) {
_0x40523b = _0x14a8e4.readUint16();
} else {
if (0x2 !== this.version) {
throw "version of iloc box not supported";
}
_0x40523b = _0x14a8e4.readUint32();
}
for (var _0x2c1ea9 = 0x0; _0x2c1ea9 < _0x40523b; _0x2c1ea9++) {
var _0x22ed81 = {};
this.items.push(_0x22ed81);
if (this.version < 0x2) {
_0x22ed81.item_ID = _0x14a8e4.readUint16();
} else {
if (0x2 !== this.version) {
throw "version of iloc box not supported";
}
_0x22ed81.item_ID = _0x14a8e4.readUint16();
}
if (0x1 === this.version || 0x2 === this.version) {
_0x22ed81.construction_method = 0xf & _0x14a8e4.readUint16();
} else {
_0x22ed81.construction_method = 0x0;
}
_0x22ed81.data_reference_index = _0x14a8e4.readUint16();
switch (this.base_offset_size) {
case 0x0:
_0x22ed81.base_offset = 0x0;
break;
case 0x4:
_0x22ed81.base_offset = _0x14a8e4.readUint32();
break;
case 0x8:
_0x22ed81.base_offset = _0x14a8e4.readUint64();
break;
default:
throw "Error reading base offset size";
}
var _0x5a9c7d = _0x14a8e4.readUint16();
_0x22ed81.extents = [];
for (var _0xf80a51 = 0x0; _0xf80a51 < _0x5a9c7d; _0xf80a51++) {
var _0x1881b9 = {};
_0x22ed81.extents.push(_0x1881b9);
if (0x1 === this.version || 0x2 === this.version) {
switch (this.index_size) {
case 0x0:
_0x1881b9.extent_index = 0x0;
break;
case 0x4:
_0x1881b9.extent_index = _0x14a8e4.readUint32();
break;
case 0x8:
_0x1881b9.extent_index = _0x14a8e4.readUint64();
break;
default:
throw "Error reading extent index";
}
}
switch (this.offset_size) {
case 0x0:
_0x1881b9.extent_offset = 0x0;
break;
case 0x4:
_0x1881b9.extent_offset = _0x14a8e4.readUint32();
break;
case 0x8:
_0x1881b9.extent_offset = _0x14a8e4.readUint64();
break;
default:
throw "Error reading extent index";
}
switch (this.length_size) {
case 0x0:
_0x1881b9.extent_length = 0x0;
break;
case 0x4:
_0x1881b9.extent_length = _0x14a8e4.readUint32();
break;
case 0x8:
_0x1881b9.extent_length = _0x14a8e4.readUint64();
break;
default:
throw "Error reading extent index";
}
}
}
});
_0x3bdefc.createBoxCtor("imir", function (_0x32b54c) {
var _0x1d8bb3 = _0x32b54c.readUint8();
this.reserved = _0x1d8bb3 >> 0x7;
this.axis = 0x1 & _0x1d8bb3;
});
_0x3bdefc.createFullBoxCtor("infe", function (_0x4ad295) {
if (!(0x0 !== this.version && 0x1 !== this.version)) {
this.item_ID = _0x4ad295.readUint16();
this.item_protection_index = _0x4ad295.readUint16();
this.item_name = _0x4ad295.readCString();
this.content_type = _0x4ad295.readCString();
this.content_encoding = _0x4ad295.readCString();
}
if (0x1 === this.version) {
this.extension_type = _0x4ad295.readString(0x4);
_0xc44760.warn("BoxParser", "Cannot parse extension type");
return void _0x4ad295.seek(this.start + this.size);
}
if (this.version >= 0x2) {
if (0x2 === this.version) {
this.item_ID = _0x4ad295.readUint16();
} else if (0x3 === this.version) {
this.item_ID = _0x4ad295.readUint32();
}
this.item_protection_index = _0x4ad295.readUint16();
this.item_type = _0x4ad295.readString(0x4);
this.item_name = _0x4ad295.readCString();
if ("mime" === this.item_type) {
this.content_type = _0x4ad295.readCString();
this.content_encoding = _0x4ad295.readCString();
} else if ("uri " === this.item_type) {
this.item_uri_type = _0x4ad295.readCString();
}
}
});
_0x3bdefc.createFullBoxCtor("ipma", function (_0x292193) {
var _0x25d0d5;
var _0x1a3f32;
entry_count = _0x292193.readUint32();
this.associations = [];
for (_0x25d0d5 = 0x0; _0x25d0d5 < entry_count; _0x25d0d5++) {
var _0x489e5f = {};
this.associations.push(_0x489e5f);
if (this.version < 0x1) {
_0x489e5f.id = _0x292193.readUint16();
} else {
_0x489e5f.id = _0x292193.readUint32();
}
var _0xf86f7f = _0x292193.readUint8();
_0x489e5f.props = [];
for (_0x1a3f32 = 0x0; _0x1a3f32 < _0xf86f7f; _0x1a3f32++) {
var _0x2c766b = _0x292193.readUint8();
var _0x541ae9 = {};
_0x489e5f.props.push(_0x541ae9);
_0x541ae9.essential = (0x80 & _0x2c766b) >> 0x7 == 0x1;
if (0x1 & this.flags) {
_0x541ae9.property_index = (0x7f & _0x2c766b) << 0x8 | _0x292193.readUint8();
} else {
_0x541ae9.property_index = 0x7f & _0x2c766b;
}
}
}
});
_0x3bdefc.createFullBoxCtor('iref', function (_0xdda149) {
var _0x1a66cc;
var _0x17d5fa;
for (this.references = []; _0xdda149.getPosition() < this.start + this.size;) {
if ((_0x1a66cc = _0x3bdefc.parseOneBox(_0xdda149, true, this.size - (_0xdda149.getPosition() - this.start))).code !== 0x1) {
return;
}
if ((_0x17d5fa = 0x0 === this.version ? new _0x3bdefc.SingleItemTypeReferenceBox(_0x1a66cc.type, _0x1a66cc.size, _0x1a66cc.hdr_size, _0x1a66cc.start) : new _0x3bdefc.SingleItemTypeReferenceBoxLarge(_0x1a66cc.type, _0x1a66cc.size, _0x1a66cc.hdr_size, _0x1a66cc.start)).write === _0x3bdefc.Box.prototype.write && "mdat" !== _0x17d5fa.type) {
_0xc44760.warn("BoxParser", _0x17d5fa.type + " box writing not yet implemented, keeping unparsed data in memory for later write");
_0x17d5fa.parseDataAndRewind(_0xdda149);
}
_0x17d5fa.parse(_0xdda149);
this.references.push(_0x17d5fa);
}
});
_0x3bdefc.createBoxCtor("irot", function (_0x321865) {
this.angle = 0x3 & _0x321865.readUint8();
});
_0x3bdefc.createFullBoxCtor("ispe", function (_0x2b1036) {
this.image_width = _0x2b1036.readUint32();
this.image_height = _0x2b1036.readUint32();
});
_0x3bdefc.createFullBoxCtor("kind", function (_0x4e02ed) {
this.schemeURI = _0x4e02ed.readCString();
this.value = _0x4e02ed.readCString();
});
_0x3bdefc.createFullBoxCtor("leva", function (_0x5579c6) {
var _0x52d6dd = _0x5579c6.readUint8();
this.levels = [];
for (var _0x1772dd = 0x0; _0x1772dd < _0x52d6dd; _0x1772dd++) {
var _0x470775 = {};
this.levels[_0x1772dd] = _0x470775;
_0x470775.track_ID = _0x5579c6.readUint32();
var _0xe0d672 = _0x5579c6.readUint8();
_0x470775.padding_flag = _0xe0d672 >> 0x7;
_0x470775.assignment_type = 0x7f & _0xe0d672;
switch (_0x470775.assignment_type) {
case 0x0:
_0x470775.grouping_type = _0x5579c6.readString(0x4);
break;
case 0x1:
_0x470775.grouping_type = _0x5579c6.readString(0x4);
_0x470775.grouping_type_parameter = _0x5579c6.readUint32();
break;
case 0x2:
case 0x3:
break;
case 0x4:
_0x470775.sub_track_id = _0x5579c6.readUint32();
break;
default:
_0xc44760.warn("BoxParser", "Unknown leva assignement type");
}
}
});
_0x3bdefc.createBoxCtor("lsel", function (_0x2ff1ee) {
this.layer_id = _0x2ff1ee.readUint16();
});
_0x3bdefc.createBoxCtor("maxr", function (_0x1aceee) {
this.period = _0x1aceee.readUint32();
this.bytes = _0x1aceee.readUint32();
});
_0x3bdefc.createBoxCtor("mdcv", function (_0x2f89b0) {
this.display_primaries = [];
this.display_primaries[0x0] = {};
this.display_primaries[0x0].x = _0x2f89b0.readUint16();
this.display_primaries[0x0].y = _0x2f89b0.readUint16();
this.display_primaries[0x1] = {};
this.display_primaries[0x1].x = _0x2f89b0.readUint16();
this.display_primaries[0x1].y = _0x2f89b0.readUint16();
this.display_primaries[0x2] = {};
this.display_primaries[0x2].x = _0x2f89b0.readUint16();
this.display_primaries[0x2].y = _0x2f89b0.readUint16();
this.white_point = {};
this.white_point.x = _0x2f89b0.readUint16();
this.white_point.y = _0x2f89b0.readUint16();
this.max_display_mastering_luminance = _0x2f89b0.readUint32();
this.min_display_mastering_luminance = _0x2f89b0.readUint32();
});
_0x3bdefc.createFullBoxCtor("mdhd", function (_0x559b76) {
if (0x1 == this.version) {
this.creation_time = _0x559b76.readUint64();
this.modification_time = _0x559b76.readUint64();
this.timescale = _0x559b76.readUint32();
this.duration = _0x559b76.readUint64();
} else {
this.creation_time = _0x559b76.readUint32();
this.modification_time = _0x559b76.readUint32();
this.timescale = _0x559b76.readUint32();
this.duration = _0x559b76.readUint32();
}
this.parseLanguage(_0x559b76);
_0x559b76.readUint16();
});
_0x3bdefc.createFullBoxCtor("mehd", function (_0x37031b) {
if (0x1 & this.flags) {
_0xc44760.warn("BoxParser", "mehd box incorrectly uses flags set to 1, converting version to 1");
this.version = 0x1;
}
if (0x1 == this.version) {
this.fragment_duration = _0x37031b.readUint64();
} else {
this.fragment_duration = _0x37031b.readUint32();
}
});
_0x3bdefc.createFullBoxCtor("meta", function (_0x473a86) {
this.boxes = [];
_0x3bdefc.ContainerBox.prototype.parse.call(this, _0x473a86);
});
_0x3bdefc.createFullBoxCtor('mfhd', function (_0x129ec7) {
this.sequence_number = _0x129ec7.readUint32();
});
_0x3bdefc.createFullBoxCtor("mfro", function (_0x4215fc) {
this._size = _0x4215fc.readUint32();
});
_0x3bdefc.createFullBoxCtor("mvhd", function (_0x4e32e7) {
if (0x1 == this.version) {
this.creation_time = _0x4e32e7.readUint64();
this.modification_time = _0x4e32e7.readUint64();
this.timescale = _0x4e32e7.readUint32();
this.duration = _0x4e32e7.readUint64();
} else {
this.creation_time = _0x4e32e7.readUint32();
this.modification_time = _0x4e32e7.readUint32();
this.timescale = _0x4e32e7.readUint32();
this.duration = _0x4e32e7.readUint32();
}
this.rate = _0x4e32e7.readUint32();
this.volume = _0x4e32e7.readUint16() >> 0x8;
_0x4e32e7.readUint16();
_0x4e32e7.readUint32Array(0x2);
this.matrix = _0x4e32e7.readUint32Array(0x9);
_0x4e32e7.readUint32Array(0x6);
this.next_track_id = _0x4e32e7.readUint32();
});
_0x3bdefc.createBoxCtor("npck", function (_0x48b98a) {
this.packetssent = _0x48b98a.readUint32();
});
_0x3bdefc.createBoxCtor("nump", function (_0x2e8274) {
this.packetssent = _0x2e8274.readUint64();
});
_0x3bdefc.createFullBoxCtor('padb', function (_0x10d707) {
var _0x3f8758 = _0x10d707.readUint32();
this.padbits = [];
for (var _0x4a345a = 0x0; _0x4a345a < Math.floor((_0x3f8758 + 0x1) / 0x2); _0x4a345a++) {
this.padbits = _0x10d707.readUint8();
}
});
_0x3bdefc.createBoxCtor("pasp", function (_0x497106) {
this.hSpacing = _0x497106.readUint32();
this.vSpacing = _0x497106.readUint32();
});
_0x3bdefc.createBoxCtor("payl", function (_0x400881) {
this.text = _0x400881.readString(this.size - this.hdr_size);
});
_0x3bdefc.createBoxCtor("payt", function (_0x287607) {
this.payloadID = _0x287607.readUint32();
var _0x5c96de = _0x287607.readUint8();
this.rtpmap_string = _0x287607.readString(_0x5c96de);
});
_0x3bdefc.createFullBoxCtor("pdin", function (_0xd8a13c) {
var _0x42444a = (this.size - this.hdr_size) / 0x8;
this.rate = [];
this.initial_delay = [];
for (var _0xd55ff3 = 0x0; _0xd55ff3 < _0x42444a; _0xd55ff3++) {
this.rate[_0xd55ff3] = _0xd8a13c.readUint32();
this.initial_delay[_0xd55ff3] = _0xd8a13c.readUint32();
}
});
_0x3bdefc.createFullBoxCtor("pitm", function (_0xce5d40) {
if (0x0 === this.version) {
this.item_id = _0xce5d40.readUint16();
} else {
this.item_id = _0xce5d40.readUint32();
}
});
_0x3bdefc.createFullBoxCtor('pixi', function (_0x553218) {
var _0x5dbf77;
this.num_channels = _0x553218.readUint8();
this.bits_per_channels = [];
for (_0x5dbf77 = 0x0; _0x5dbf77 < this.num_channels; _0x5dbf77++) {
this.bits_per_channels[_0x5dbf77] = _0x553218.readUint8();
}
});
_0x3bdefc.createBoxCtor("pmax", function (_0x1651ee) {
this.bytes = _0x1651ee.readUint32();
});
_0x3bdefc.createFullBoxCtor("prft", function (_0x341139) {
this.ref_track_id = _0x341139.readUint32();
this.ntp_timestamp = _0x341139.readUint64();
if (0x0 === this.version) {
this.media_time = _0x341139.readUint32();
} else {
this.media_time = _0x341139.readUint64();
}
});
_0x3bdefc.createFullBoxCtor("pssh", function (_0x518019) {
this.system_id = _0x3bdefc.parseHex16(_0x518019);
if (this.version > 0x0) {
var _0x3b0ff3 = _0x518019.readUint32();
this.kid = [];
for (var _0x594f5e = 0x0; _0x594f5e < _0x3b0ff3; _0x594f5e++) {
this.kid[_0x594f5e] = _0x3bdefc.parseHex16(_0x518019);
}
}
var _0x79045f = _0x518019.readUint32();
if (_0x79045f > 0x0) {
this.data = _0x518019.readUint8Array(_0x79045f);
}
});
_0x3bdefc.createFullBoxCtor("clef", function (_0x3233d5) {
this.width = _0x3233d5.readUint32();
this.height = _0x3233d5.readUint32();
});
_0x3bdefc.createFullBoxCtor('enof', function (_0x524e3d) {
this.width = _0x524e3d.readUint32();
this.height = _0x524e3d.readUint32();
});
_0x3bdefc.createFullBoxCtor("prof", function (_0x5ccecd) {
this.width = _0x5ccecd.readUint32();
this.height = _0x5ccecd.readUint32();
});
_0x3bdefc.createContainerBoxCtor("tapt", null, ["clef", "prof", "enof"]);
_0x3bdefc.createBoxCtor("rtp ", function (_0x29dc80) {
this.descriptionformat = _0x29dc80.readString(0x4);
this.sdptext = _0x29dc80.readString(this.size - this.hdr_size - 0x4);
});
_0x3bdefc.createFullBoxCtor("saio", function (_0x313783) {
if (0x1 & this.flags) {
this.aux_info_type = _0x313783.readUint32();
this.aux_info_type_parameter = _0x313783.readUint32();
}
var _0x418052 = _0x313783.readUint32();
this.offset = [];
for (var _0x1a8c17 = 0x0; _0x1a8c17 < _0x418052; _0x1a8c17++) {
if (0x0 === this.version) {
this.offset[_0x1a8c17] = _0x313783.readUint32();
} else {
this.offset[_0x1a8c17] = _0x313783.readUint64();
}
}
});
_0x3bdefc.createFullBoxCtor('saiz', function (_0x1566ee) {
if (0x1 & this.flags) {
this.aux_info_type = _0x1566ee.readUint32();
this.aux_info_type_parameter = _0x1566ee.readUint32();
}
this.default_sample_info_size = _0x1566ee.readUint8();
var _0x41dcdd = _0x1566ee.readUint32();
this.sample_info_size = [];
if (0x0 === this.default_sample_info_size) {
for (var _0x48e188 = 0x0; _0x48e188 < _0x41dcdd; _0x48e188++) {
this.sample_info_size[_0x48e188] = _0x1566ee.readUint8();
}
}
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA, "mett", function (_0xace212) {
this.parseHeader(_0xace212);
this.content_encoding = _0xace212.readCString();
this.mime_format = _0xace212.readCString();
this.parseFooter(_0xace212);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA, "metx", function (_0x4decdc) {
this.parseHeader(_0x4decdc);
this.content_encoding = _0x4decdc.readCString();
this.namespace = _0x4decdc.readCString();
this.schema_location = _0x4decdc.readCString();
this.parseFooter(_0x4decdc);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE, "sbtt", function (_0xe76ad7) {
this.parseHeader(_0xe76ad7);
this.content_encoding = _0xe76ad7.readCString();
this.mime_format = _0xe76ad7.readCString();
this.parseFooter(_0xe76ad7);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE, "stpp", function (_0x119d70) {
this.parseHeader(_0x119d70);
this.namespace = _0x119d70.readCString();
this.schema_location = _0x119d70.readCString();
this.auxiliary_mime_types = _0x119d70.readCString();
this.parseFooter(_0x119d70);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE, "stxt", function (_0x4cc9cf) {
this.parseHeader(_0x4cc9cf);
this.content_encoding = _0x4cc9cf.readCString();
this.mime_format = _0x4cc9cf.readCString();
this.parseFooter(_0x4cc9cf);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_SUBTITLE, "tx3g", function (_0x44d33d) {
this.parseHeader(_0x44d33d);
this.displayFlags = _0x44d33d.readUint32();
this.horizontal_justification = _0x44d33d.readInt8();
this.vertical_justification = _0x44d33d.readInt8();
this.bg_color_rgba = _0x44d33d.readUint8Array(0x4);
this.box_record = _0x44d33d.readInt16Array(0x4);
this.style_record = _0x44d33d.readUint8Array(0xc);
this.parseFooter(_0x44d33d);
});
_0x3bdefc.createSampleEntryCtor(_0x3bdefc.SAMPLE_ENTRY_TYPE_METADATA, "wvtt", function (_0x1f77a9) {
this.parseHeader(_0x1f77a9);
this.parseFooter(_0x1f77a9);
});
_0x3bdefc.createSampleGroupCtor("alst", function (_0x193327) {
var _0x2a0914;
var _0x52ff29 = _0x193327.readUint16();
this.first_output_sample = _0x193327.readUint16();
this.sample_offset = [];
for (_0x2a0914 = 0x0; _0x2a0914 < _0x52ff29; _0x2a0914++) {
this.sample_offset[_0x2a0914] = _0x193327.readUint32();
}
var _0x59b134 = this.description_length - 0x4 - 0x4 * _0x52ff29;
this.num_output_samples = [];
this.num_total_samples = [];
for (_0x2a0914 = 0x0; _0x2a0914 < _0x59b134 / 0x4; _0x2a0914++) {
this.num_output_samples[_0x2a0914] = _0x193327.readUint16();
this.num_total_samples[_0x2a0914] = _0x193327.readUint16();
}
});
_0x3bdefc.createSampleGroupCtor("avll", function (_0x517aff) {
this.layerNumber = _0x517aff.readUint8();
this.accurateStatisticsFlag = _0x517aff.readUint8();
this.avgBitRate = _0x517aff.readUint16();
this.avgFrameRate = _0x517aff.readUint16();
});
_0x3bdefc.createSampleGroupCtor("avss", function (_0x1dbb5a) {
this.subSequenceIdentifier = _0x1dbb5a.readUint16();
this.layerNumber = _0x1dbb5a.readUint8();
var _0x2e2d84 = _0x1dbb5a.readUint8();
this.durationFlag = _0x2e2d84 >> 0x7;
this.avgRateFlag = _0x2e2d84 >> 0x6 & 0x1;
if (this.durationFlag) {
this.duration = _0x1dbb5a.readUint32();
}
if (this.avgRateFlag) {
this.accurateStatisticsFlag = _0x1dbb5a.readUint8();
this.avgBitRate = _0x1dbb5a.readUint16();
this.avgFrameRate = _0x1dbb5a.readUint16();
}
this.dependency = [];
var _0x155da5 = _0x1dbb5a.readUint8();
for (var _0x18d574 = 0x0; _0x18d574 < _0x155da5; _0x18d574++) {
var _0x1e9e83 = {};
this.dependency.push(_0x1e9e83);
_0x1e9e83.subSeqDirectionFlag = _0x1dbb5a.readUint8();
_0x1e9e83.layerNumber = _0x1dbb5a.readUint8();
_0x1e9e83.subSequenceIdentifier = _0x1dbb5a.readUint16();
}
});
_0x3bdefc.createSampleGroupCtor("dtrt", function (_0x586a38) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor('mvif', function (_0x36c285) {
_0xc44760.warn('BoxParser', "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("prol", function (_0x53ec72) {
this.roll_distance = _0x53ec72.readInt16();
});
_0x3bdefc.createSampleGroupCtor("rap ", function (_0x125a11) {
var _0x5e14a9 = _0x125a11.readUint8();
this.num_leading_samples_known = _0x5e14a9 >> 0x7;
this.num_leading_samples = 0x7f & _0x5e14a9;
});
_0x3bdefc.createSampleGroupCtor('rash', function (_0xe7573d) {
this.operation_point_count = _0xe7573d.readUint16();
if (this.description_length !== 0x2 + (0x1 === this.operation_point_count ? 0x2 : 0x6 * this.operation_point_count) + 0x9) {
_0xc44760.warn('BoxParser', "Mismatch in " + this.grouping_type + " sample group length");
this.data = _0xe7573d.readUint8Array(this.description_length - 0x2);
} else {
if (0x1 === this.operation_point_count) {
this.target_rate_share = _0xe7573d.readUint16();
} else {
this.target_rate_share = [];
this.available_bitrate = [];
for (var _0x8fd5d3 = 0x0; _0x8fd5d3 < this.operation_point_count; _0x8fd5d3++) {
this.available_bitrate[_0x8fd5d3] = _0xe7573d.readUint32();
this.target_rate_share[_0x8fd5d3] = _0xe7573d.readUint16();
}
}
this.maximum_bitrate = _0xe7573d.readUint32();
this.minimum_bitrate = _0xe7573d.readUint32();
this.discard_priority = _0xe7573d.readUint8();
}
});
_0x3bdefc.createSampleGroupCtor("roll", function (_0x16f5d9) {
this.roll_distance = _0x16f5d9.readInt16();
});
_0x3bdefc.SampleGroupEntry.prototype.parse = function (_0x33b3cd) {
_0xc44760.warn("BoxParser", "Unknown Sample Group type: " + this.grouping_type);
this.data = _0x33b3cd.readUint8Array(this.description_length);
};
_0x3bdefc.createSampleGroupCtor("scif", function (_0x1fd44e) {
_0xc44760.warn('BoxParser', "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("scnm", function (_0x2a2b98) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("seig", function (_0xcabb07) {
this.reserved = _0xcabb07.readUint8();
var _0x1065c2 = _0xcabb07.readUint8();
this.crypt_byte_block = _0x1065c2 >> 0x4;
this.skip_byte_block = 0xf & _0x1065c2;
this.isProtected = _0xcabb07.readUint8();
this.Per_Sample_IV_Size = _0xcabb07.readUint8();
this.KID = _0x3bdefc.parseHex16(_0xcabb07);
this.constant_IV_size = 0x0;
this.constant_IV = 0x0;
if (0x1 === this.isProtected && 0x0 === this.Per_Sample_IV_Size) {
this.constant_IV_size = _0xcabb07.readUint8();
this.constant_IV = _0xcabb07.readUint8Array(this.constant_IV_size);
}
});
_0x3bdefc.createSampleGroupCtor('stsa', function (_0xc286a1) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("sync", function (_0x5eeadf) {
var _0x278e1e = _0x5eeadf.readUint8();
this.NAL_unit_type = 0x3f & _0x278e1e;
});
_0x3bdefc.createSampleGroupCtor('tele', function (_0x5a4063) {
var _0x4f6453 = _0x5a4063.readUint8();
this.level_independently_decodable = _0x4f6453 >> 0x7;
});
_0x3bdefc.createSampleGroupCtor("tsas", function (_0x5e99be) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("tscl", function (_0x158f7b) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createSampleGroupCtor("vipr", function (_0x3d1a46) {
_0xc44760.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
});
_0x3bdefc.createFullBoxCtor("sbgp", function (_0x1fffbe) {
this.grouping_type = _0x1fffbe.readString(0x4);
if (0x1 === this.version) {
this.grouping_type_parameter = _0x1fffbe.readUint32();
} else {
this.grouping_type_parameter = 0x0;
}
this.entries = [];
var _0x4f715c = _0x1fffbe.readUint32();
for (var _0xe6c008 = 0x0; _0xe6c008 < _0x4f715c; _0xe6c008++) {
var _0x43d1b2 = {};
this.entries.push(_0x43d1b2);
_0x43d1b2.sample_count = _0x1fffbe.readInt32();
_0x43d1b2.group_description_index = _0x1fffbe.readInt32();
}
});
_0x3bdefc.createFullBoxCtor('schm', function (_0x4148c2) {
this.scheme_type = _0x4148c2.readString(0x4);
this.scheme_version = _0x4148c2.readUint32();
if (0x1 & this.flags) {
this.scheme_uri = _0x4148c2.readString(this.size - this.hdr_size - 0x8);
}
});
_0x3bdefc.createBoxCtor("sdp ", function (_0x53e3c8) {
this.sdptext = _0x53e3c8.readString(this.size - this.hdr_size);
});
_0x3bdefc.createFullBoxCtor("sdtp", function (_0x327653) {
var _0x2e6a60;
var _0x11cdcc = this.size - this.hdr_size;
this.is_leading = [];
this.sample_depends_on = [];
this.sample_is_depended_on = [];
this.sample_has_redundancy = [];
for (var _0x334487 = 0x0; _0x334487 < _0x11cdcc; _0x334487++) {
_0x2e6a60 = _0x327653.readUint8();
this.is_leading[_0x334487] = _0x2e6a60 >> 0x6;
this.sample_depends_on[_0x334487] = _0x2e6a60 >> 0x4 & 0x3;
this.sample_is_depended_on[_0x334487] = _0x2e6a60 >> 0x2 & 0x3;
this.sample_has_redundancy[_0x334487] = 0x3 & _0x2e6a60;
}
});
_0x3bdefc.createFullBoxCtor("senc");
_0x3bdefc.createFullBoxCtor('sgpd', function (_0x1c8752) {
this.grouping_type = _0x1c8752.readString(0x4);
_0xc44760.debug('BoxParser', "Found Sample Groups of type " + this.grouping_type);
if (0x1 === this.version) {
this.default_length = _0x1c8752.readUint32();
} else {
this.default_length = 0x0;
}
if (this.version >= 0x2) {
this.default_group_description_index = _0x1c8752.readUint32();
}
this.entries = [];
var _0x4bf7f5 = _0x1c8752.readUint32();
for (var _0x2f3124 = 0x0; _0x2f3124 < _0x4bf7f5; _0x2f3124++) {
var _0x26df91;
_0x26df91 = _0x3bdefc[this.grouping_type + "SampleGroupEntry"] ? new _0x3bdefc[this.grouping_type + "SampleGroupEntry"](this.grouping_type) : new _0x3bdefc.SampleGroupEntry(this.grouping_type);
this.entries.push(_0x26df91);
if (0x1 === this.version && 0x0 === this.default_length) {
_0x26df91.description_length = _0x1c8752.readUint32();
} else {
_0x26df91.description_length = this.default_length;
}
if (_0x26df91.write === _0x3bdefc.SampleGroupEntry.prototype.write) {
_0xc44760.info("BoxParser", "SampleGroup for type " + this.grouping_type + " writing not yet implemented, keeping unparsed data in memory for later write");
_0x26df91.data = _0x1c8752.readUint8Array(_0x26df91.description_length);
_0x1c8752.position -= _0x26df91.description_length;
}
_0x26df91.parse(_0x1c8752);
}
});
_0x3bdefc.createFullBoxCtor("sidx", function (_0x4487ea) {
this.reference_ID = _0x4487ea.readUint32();
this.timescale = _0x4487ea.readUint32();
if (0x0 === this.version) {
this.earliest_presentation_time = _0x4487ea.readUint32();
this.first_offset = _0x4487ea.readUint32();
} else {
this.earliest_presentation_time = _0x4487ea.readUint64();
this.first_offset = _0x4487ea.readUint64();
}
_0x4487ea.readUint16();
this.references = [];
var _0x4109b4 = _0x4487ea.readUint16();
for (var _0x264eb3 = 0x0; _0x264eb3 < _0x4109b4; _0x264eb3++) {
var _0xf54dce = {};
this.references.push(_0xf54dce);
var _0x4bb1a0 = _0x4487ea.readUint32();
_0xf54dce.reference_type = _0x4bb1a0 >> 0x1f & 0x1;
_0xf54dce.referenced_size = 0x7fffffff & _0x4bb1a0;
_0xf54dce.subsegment_duration = _0x4487ea.readUint32();
_0x4bb1a0 = _0x4487ea.readUint32();
_0xf54dce.starts_with_SAP = _0x4bb1a0 >> 0x1f & 0x1;
_0xf54dce.SAP_type = _0x4bb1a0 >> 0x1c & 0x7;
_0xf54dce.SAP_delta_time = 0xfffffff & _0x4bb1a0;
}
});
_0x3bdefc.SingleItemTypeReferenceBox = function (_0x981cf6, _0x3810e5, _0xa875f1, _0x2fc375) {
_0x3bdefc.Box.call(this, _0x981cf6, _0x3810e5);
this.hdr_size = _0xa875f1;
this.start = _0x2fc375;
};
_0x3bdefc.SingleItemTypeReferenceBox.prototype = new _0x3bdefc.Box();
_0x3bdefc.SingleItemTypeReferenceBox.prototype.parse = function (_0x5930cf) {
this.from_item_ID = _0x5930cf.readUint16();
var _0x56e2ec = _0x5930cf.readUint16();
this.references = [];
for (var _0x4aec06 = 0x0; _0x4aec06 < _0x56e2ec; _0x4aec06++) {
this.references[_0x4aec06] = _0x5930cf.readUint16();
}
};
_0x3bdefc.SingleItemTypeReferenceBoxLarge = function (_0x509705, _0x20a234, _0x4f5c82, _0x193b1b) {
_0x3bdefc.Box.call(this, _0x509705, _0x20a234);
this.hdr_size = _0x4f5c82;
this.start = _0x193b1b;
};
_0x3bdefc.SingleItemTypeReferenceBoxLarge.prototype = new _0x3bdefc.Box();
_0x3bdefc.SingleItemTypeReferenceBoxLarge.prototype.parse = function (_0x4a4b07) {
this.from_item_ID = _0x4a4b07.readUint32();
var _0x44b0f9 = _0x4a4b07.readUint16();
this.references = [];
for (var _0x13fb8e = 0x0; _0x13fb8e < _0x44b0f9; _0x13fb8e++) {
this.references[_0x13fb8e] = _0x4a4b07.readUint32();
}
};
_0x3bdefc.createFullBoxCtor("SmDm", function (_0x3091dc) {
this.primaryRChromaticity_x = _0x3091dc.readUint16();
this.primaryRChromaticity_y = _0x3091dc.readUint16();
this.primaryGChromaticity_x = _0x3091dc.readUint16();
this.primaryGChromaticity_y = _0x3091dc.readUint16();
this.primaryBChromaticity_x = _0x3091dc.readUint16();
this.primaryBChromaticity_y = _0x3091dc.readUint16();
this.whitePointChromaticity_x = _0x3091dc.readUint16();
this.whitePointChromaticity_y = _0x3091dc.readUint16();
this.luminanceMax = _0x3091dc.readUint32();
this.luminanceMin = _0x3091dc.readUint32();
});
_0x3bdefc.createFullBoxCtor('smhd', function (_0x3d7725) {
this.balance = _0x3d7725.readUint16();
_0x3d7725.readUint16();
});
_0x3bdefc.createFullBoxCtor("ssix", function (_0x207590) {
this.subsegments = [];
var _0x33434c = _0x207590.readUint32();
for (var _0x14cf6f = 0x0; _0x14cf6f < _0x33434c; _0x14cf6f++) {
var _0x5abe03 = {};
this.subsegments.push(_0x5abe03);
_0x5abe03.ranges = [];
var _0x260ffc = _0x207590.readUint32();
for (var _0x2c9fac = 0x0; _0x2c9fac < _0x260ffc; _0x2c9fac++) {
var _0x436212 = {};
_0x5abe03.ranges.push(_0x436212);
_0x436212.level = _0x207590.readUint8();
_0x436212.range_size = _0x207590.readUint24();
}
}
});
_0x3bdefc.createFullBoxCtor("stco", function (_0x4bfc92) {
var _0x4e78f5;
_0x4e78f5 = _0x4bfc92.readUint32();
this.chunk_offsets = [];
if (0x0 === this.version) {
for (var _0xef66a1 = 0x0; _0xef66a1 < _0x4e78f5; _0xef66a1++) {
this.chunk_offsets.push(_0x4bfc92.readUint32());
}
}
});
_0x3bdefc.createFullBoxCtor("stdp", function (_0x1d9402) {
var _0x43ce32 = (this.size - this.hdr_size) / 0x2;
this.priority = [];
for (var _0x50792c = 0x0; _0x50792c < _0x43ce32; _0x50792c++) {
this.priority[_0x50792c] = _0x1d9402.readUint16();
}
});
_0x3bdefc.createFullBoxCtor("sthd");
_0x3bdefc.createFullBoxCtor("stri", function (_0x5dce3a) {
this.switch_group = _0x5dce3a.readUint16();
this.alternate_group = _0x5dce3a.readUint16();
this.sub_track_id = _0x5dce3a.readUint32();
var _0x5387a2 = (this.size - this.hdr_size - 0x8) / 0x4;
this.attribute_list = [];
for (var _0x3cdc0e = 0x0; _0x3cdc0e < _0x5387a2; _0x3cdc0e++) {
this.attribute_list[_0x3cdc0e] = _0x5dce3a.readUint32();
}
});
_0x3bdefc.createFullBoxCtor('stsc', function (_0x1a7fcd) {
var _0x2b977a;
var _0x3c46a7;
_0x2b977a = _0x1a7fcd.readUint32();
this.first_chunk = [];
this.samples_per_chunk = [];
this.sample_description_index = [];
if (0x0 === this.version) {
for (_0x3c46a7 = 0x0; _0x3c46a7 < _0x2b977a; _0x3c46a7++) {
this.first_chunk.push(_0x1a7fcd.readUint32());
this.samples_per_chunk.push(_0x1a7fcd.readUint32());
this.sample_description_index.push(_0x1a7fcd.readUint32());
}
}
});
_0x3bdefc.createFullBoxCtor('stsd', function (_0x1f5f41) {
var _0x39bbd4;
var _0x52f4ff;
var _0x3c322e;
var _0x37a398;
this.entries = [];
_0x3c322e = _0x1f5f41.readUint32();
for (_0x39bbd4 = 0x1; _0x39bbd4 <= _0x3c322e; _0x39bbd4++) {
if ((_0x52f4ff = _0x3bdefc.parseOneBox(_0x1f5f41, true, this.size - (_0x1f5f41.getPosition() - this.start))).code !== 0x1) {
return;
}
if (_0x3bdefc[_0x52f4ff.type + "SampleEntry"]) {
(_0x37a398 = new _0x3bdefc[_0x52f4ff.type + "SampleEntry"](_0x52f4ff.size)).hdr_size = _0x52f4ff.hdr_size;
_0x37a398.start = _0x52f4ff.start;
} else {
_0xc44760.warn('BoxParser', "Unknown sample entry type: " + _0x52f4ff.type);
_0x37a398 = new _0x3bdefc.SampleEntry(_0x52f4ff.type, _0x52f4ff.size, _0x52f4ff.hdr_size, _0x52f4ff.start);
}
if (_0x37a398.write === _0x3bdefc.SampleEntry.prototype.write) {
_0xc44760.info('BoxParser', "SampleEntry " + _0x37a398.type + " box writing not yet implemented, keeping unparsed data in memory for later write");
_0x37a398.parseDataAndRewind(_0x1f5f41);
}
_0x37a398.parse(_0x1f5f41);
this.entries.push(_0x37a398);
}
});
_0x3bdefc.createFullBoxCtor("stsg", function (_0x32d7cb) {
this.grouping_type = _0x32d7cb.readUint32();
var _0x3edc37 = _0x32d7cb.readUint16();
this.group_description_index = [];
for (var _0x41e4f9 = 0x0; _0x41e4f9 < _0x3edc37; _0x41e4f9++) {
this.group_description_index[_0x41e4f9] = _0x32d7cb.readUint32();
}
});
_0x3bdefc.createFullBoxCtor("stsh", function (_0x50a101) {
var _0xfbd723;
var _0x12555d;
_0xfbd723 = _0x50a101.readUint32();
this.shadowed_sample_numbers = [];
this.sync_sample_numbers = [];
if (0x0 === this.version) {
for (_0x12555d = 0x0; _0x12555d < _0xfbd723; _0x12555d++) {
this.shadowed_sample_numbers.push(_0x50a101.readUint32());
this.sync_sample_numbers.push(_0x50a101.readUint32());
}
}
});
_0x3bdefc.createFullBoxCtor("stss", function (_0x1faf1f) {
var _0x5d10bc;
var _0x532bbf;
_0x532bbf = _0x1faf1f.readUint32();
if (0x0 === this.version) {
this.sample_numbers = [];
for (_0x5d10bc = 0x0; _0x5d10bc < _0x532bbf; _0x5d10bc++) {
this.sample_numbers.push(_0x1faf1f.readUint32());
}
}
});
_0x3bdefc.createFullBoxCtor("stsz", function (_0x1f41ee) {
var _0x187cbf;
this.sample_sizes = [];
if (0x0 === this.version) {
this.sample_size = _0x1f41ee.readUint32();
this.sample_count = _0x1f41ee.readUint32();
for (_0x187cbf = 0x0; _0x187cbf < this.sample_count; _0x187cbf++) {
if (0x0 === this.sample_size) {
this.sample_sizes.push(_0x1f41ee.readUint32());
} else {
this.sample_sizes[_0x187cbf] = this.sample_size;
}
}
}
});
_0x3bdefc.createFullBoxCtor("stts", function (_0x2234fd) {
var _0x189d0c;
var _0xb0a8c0;
var _0xd1fbd;
_0x189d0c = _0x2234fd.readUint32();
this.sample_counts = [];
this.sample_deltas = [];
if (0x0 === this.version) {
for (_0xb0a8c0 = 0x0; _0xb0a8c0 < _0x189d0c; _0xb0a8c0++) {
this.sample_counts.push(_0x2234fd.readUint32());
if ((_0xd1fbd = _0x2234fd.readInt32()) < 0x0) {
_0xc44760.warn('BoxParser', "File uses negative stts sample delta, using value 1 instead, sync may be lost!");
_0xd1fbd = 0x1;
}
this.sample_deltas.push(_0xd1fbd);
}
}
});
_0x3bdefc.createFullBoxCtor('stvi', function (_0x3139d3) {
var _0x2ff3d4 = _0x3139d3.readUint32();
this.single_view_allowed = 0x3 & _0x2ff3d4;
this.stereo_scheme = _0x3139d3.readUint32();
var _0x2e4e5e;
var _0x11516c;
var _0x6242f6 = _0x3139d3.readUint32();
this.stereo_indication_type = _0x3139d3.readString(_0x6242f6);
for (this.boxes = []; _0x3139d3.getPosition() < this.start + this.size;) {
if ((_0x2e4e5e = _0x3bdefc.parseOneBox(_0x3139d3, false, this.size - (_0x3139d3.getPosition() - this.start))).code !== 0x1) {
return;
}
_0x11516c = _0x2e4e5e.box;
this.boxes.push(_0x11516c);
this[_0x11516c.type] = _0x11516c;
}
});
_0x3bdefc.createBoxCtor('styp', function (_0x101f26) {
_0x3bdefc.ftypBox.prototype.parse.call(this, _0x101f26);
});
_0x3bdefc.createFullBoxCtor("stz2", function (_0xec8f8d) {
var _0xd12a20;
var _0x2b3c81;
this.sample_sizes = [];
if (0x0 === this.version) {
this.reserved = _0xec8f8d.readUint24();
this.field_size = _0xec8f8d.readUint8();
_0x2b3c81 = _0xec8f8d.readUint32();
if (0x4 === this.field_size) {
for (_0xd12a20 = 0x0; _0xd12a20 < _0x2b3c81; _0xd12a20 += 0x2) {
var _0x3b0708 = _0xec8f8d.readUint8();
this.sample_sizes[_0xd12a20] = _0x3b0708 >> 0x4 & 0xf;
this.sample_sizes[_0xd12a20 + 0x1] = 0xf & _0x3b0708;
}
} else {
if (0x8 === this.field_size) {
for (_0xd12a20 = 0x0; _0xd12a20 < _0x2b3c81; _0xd12a20++) {
this.sample_sizes[_0xd12a20] = _0xec8f8d.readUint8();
}
} else {
if (0x10 === this.field_size) {
for (_0xd12a20 = 0x0; _0xd12a20 < _0x2b3c81; _0xd12a20++) {
this.sample_sizes[_0xd12a20] = _0xec8f8d.readUint16();
}
} else {
_0xc44760.error("BoxParser", "Error in length field in stz2 box");
}
}
}
}
});
_0x3bdefc.createFullBoxCtor("subs", function (_0x4dade9) {
var _0x507521;
var _0xcaa07c;
var _0x5cc5f2;
var _0x4977f6;
_0x5cc5f2 = _0x4dade9.readUint32();
this.entries = [];
for (_0x507521 = 0x0; _0x507521 < _0x5cc5f2; _0x507521++) {
var _0x2b9dd3 = {};
this.entries[_0x507521] = _0x2b9dd3;
_0x2b9dd3.sample_delta = _0x4dade9.readUint32();
_0x2b9dd3.subsamples = [];
if ((_0x4977f6 = _0x4dade9.readUint16()) > 0x0) {
for (_0xcaa07c = 0x0; _0xcaa07c < _0x4977f6; _0xcaa07c++) {
var _0x4a9c5e = {};
_0x2b9dd3.subsamples.push(_0x4a9c5e);
if (0x1 == this.version) {
_0x4a9c5e.size = _0x4dade9.readUint32();
} else {
_0x4a9c5e.size = _0x4dade9.readUint16();
}
_0x4a9c5e.priority = _0x4dade9.readUint8();
_0x4a9c5e.discardable = _0x4dade9.readUint8();
_0x4a9c5e.codec_specific_parameters = _0x4dade9.readUint32();
}
}
}
});
_0x3bdefc.createFullBoxCtor("tenc", function (_0x7329a1) {
_0x7329a1.readUint8();
if (0x0 === this.version) {
_0x7329a1.readUint8();
} else {
var _0x130065 = _0x7329a1.readUint8();
this.default_crypt_byte_block = _0x130065 >> 0x4 & 0xf;
this.default_skip_byte_block = 0xf & _0x130065;
}
this.default_isProtected = _0x7329a1.readUint8();
this.default_Per_Sample_IV_Size = _0x7329a1.readUint8();
this.default_KID = _0x3bdefc.parseHex16(_0x7329a1);
if (0x1 === this.default_isProtected && 0x0 === this.default_Per_Sample_IV_Size) {
this.default_constant_IV_size = _0x7329a1.readUint8();
this.default_constant_IV = _0x7329a1.readUint8Array(this.default_constant_IV_size);
}
});
_0x3bdefc.createFullBoxCtor("tfdt", function (_0xd5b243) {
if (0x1 == this.version) {
this.baseMediaDecodeTime = _0xd5b243.readUint64();
} else {
this.baseMediaDecodeTime = _0xd5b243.readUint32();
}
});
_0x3bdefc.createFullBoxCtor('tfhd', function (_0x3a6870) {
var _0x5d80de = 0x0;
this.track_id = _0x3a6870.readUint32();
if (this.size - this.hdr_size > _0x5d80de && this.flags & _0x3bdefc.TFHD_FLAG_BASE_DATA_OFFSET) {
this.base_data_offset = _0x3a6870.readUint64();
_0x5d80de += 0x8;
} else {
this.base_data_offset = 0x0;
}
if (this.size - this.hdr_size > _0x5d80de && this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DESC) {
this.default_sample_description_index = _0x3a6870.readUint32();
_0x5d80de += 0x4;
} else {
this.default_sample_description_index = 0x0;
}
if (this.size - this.hdr_size > _0x5d80de && this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DUR) {
this.default_sample_duration = _0x3a6870.readUint32();
_0x5d80de += 0x4;
} else {
this.default_sample_duration = 0x0;
}
if (this.size - this.hdr_size > _0x5d80de && this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_SIZE) {
this.default_sample_size = _0x3a6870.readUint32();
_0x5d80de += 0x4;
} else {
this.default_sample_size = 0x0;
}
if (this.size - this.hdr_size > _0x5d80de && this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_FLAGS) {
this.default_sample_flags = _0x3a6870.readUint32();
_0x5d80de += 0x4;
} else {
this.default_sample_flags = 0x0;
}
});
_0x3bdefc.createFullBoxCtor("tfra", function (_0x2e951b) {
this.track_ID = _0x2e951b.readUint32();
_0x2e951b.readUint24();
var _0xadf118 = _0x2e951b.readUint8();
this.length_size_of_traf_num = _0xadf118 >> 0x4 & 0x3;
this.length_size_of_trun_num = _0xadf118 >> 0x2 & 0x3;
this.length_size_of_sample_num = 0x3 & _0xadf118;
this.entries = [];
var _0x390e3e = _0x2e951b.readUint32();
for (var _0x4570e3 = 0x0; _0x4570e3 < _0x390e3e; _0x4570e3++) {
if (0x1 === this.version) {
this.time = _0x2e951b.readUint64();
this.moof_offset = _0x2e951b.readUint64();
} else {
this.time = _0x2e951b.readUint32();
this.moof_offset = _0x2e951b.readUint32();
}
this.traf_number = _0x2e951b["readUint" + 0x8 * (this.length_size_of_traf_num + 0x1)]();
this.trun_number = _0x2e951b["readUint" + 0x8 * (this.length_size_of_trun_num + 0x1)]();
this.sample_number = _0x2e951b["readUint" + 0x8 * (this.length_size_of_sample_num + 0x1)]();
}
});
_0x3bdefc.createFullBoxCtor("tkhd", function (_0x46028b) {
if (0x1 == this.version) {
this.creation_time = _0x46028b.readUint64();
this.modification_time = _0x46028b.readUint64();
this.track_id = _0x46028b.readUint32();
_0x46028b.readUint32();
this.duration = _0x46028b.readUint64();
} else {
this.creation_time = _0x46028b.readUint32();
this.modification_time = _0x46028b.readUint32();
this.track_id = _0x46028b.readUint32();
_0x46028b.readUint32();
this.duration = _0x46028b.readUint32();
}
_0x46028b.readUint32Array(0x2);
this.layer = _0x46028b.readInt16();
this.alternate_group = _0x46028b.readInt16();
this.volume = _0x46028b.readInt16() >> 0x8;
_0x46028b.readUint16();
this.matrix = _0x46028b.readInt32Array(0x9);
this.width = _0x46028b.readUint32();
this.height = _0x46028b.readUint32();
});
_0x3bdefc.createBoxCtor('tmax', function (_0xe6a4ba) {
this.time = _0xe6a4ba.readUint32();
});
_0x3bdefc.createBoxCtor('tmin', function (_0x210964) {
this.time = _0x210964.readUint32();
});
_0x3bdefc.createBoxCtor("totl", function (_0xd634c6) {
this.bytessent = _0xd634c6.readUint32();
});
_0x3bdefc.createBoxCtor("tpay", function (_0x10500f) {
this.bytessent = _0x10500f.readUint32();
});
_0x3bdefc.createBoxCtor('tpyl', function (_0x3f2294) {
this.bytessent = _0x3f2294.readUint64();
});
_0x3bdefc.TrackGroupTypeBox.prototype.parse = function (_0x312914) {
this.parseFullHeader(_0x312914);
this.track_group_id = _0x312914.readUint32();
};
_0x3bdefc.createTrackGroupCtor('msrc');
_0x3bdefc.TrackReferenceTypeBox = function (_0x3410e7, _0x44205a, _0x36dd4c, _0x52ba11) {
_0x3bdefc.Box.call(this, _0x3410e7, _0x44205a);
this.hdr_size = _0x36dd4c;
this.start = _0x52ba11;
};
_0x3bdefc.TrackReferenceTypeBox.prototype = new _0x3bdefc.Box();
_0x3bdefc.TrackReferenceTypeBox.prototype.parse = function (_0x3bcefe) {
this.track_ids = _0x3bcefe.readUint32Array((this.size - this.hdr_size) / 0x4);
};
_0x3bdefc.trefBox.prototype.parse = function (_0xd6e163) {
var _0x354292;
for (var _0x31d838; _0xd6e163.getPosition() < this.start + this.size;) {
if ((_0x354292 = _0x3bdefc.parseOneBox(_0xd6e163, true, this.size - (_0xd6e163.getPosition() - this.start))).code !== 0x1) {
return;
}
if ((_0x31d838 = new _0x3bdefc.TrackReferenceTypeBox(_0x354292.type, _0x354292.size, _0x354292.hdr_size, _0x354292.start)).write === _0x3bdefc.Box.prototype.write && "mdat" !== _0x31d838.type) {
_0xc44760.info("BoxParser", "TrackReference " + _0x31d838.type + " box writing not yet implemented, keeping unparsed data in memory for later write");
_0x31d838.parseDataAndRewind(_0xd6e163);
}
_0x31d838.parse(_0xd6e163);
this.boxes.push(_0x31d838);
}
};
_0x3bdefc.createFullBoxCtor("trep", function (_0xe399bd) {
this.track_ID = _0xe399bd.readUint32();
for (this.boxes = []; _0xe399bd.getPosition() < this.start + this.size;) {
ret = _0x3bdefc.parseOneBox(_0xe399bd, false, this.size - (_0xe399bd.getPosition() - this.start));
if (ret.code !== 0x1) {
return;
}
box = ret.box;
this.boxes.push(box);
}
});
_0x3bdefc.createFullBoxCtor("trex", function (_0x1fdb30) {
this.track_id = _0x1fdb30.readUint32();
this.default_sample_description_index = _0x1fdb30.readUint32();
this.default_sample_duration = _0x1fdb30.readUint32();
this.default_sample_size = _0x1fdb30.readUint32();
this.default_sample_flags = _0x1fdb30.readUint32();
});
_0x3bdefc.createBoxCtor("trpy", function (_0x56ba6e) {
this.bytessent = _0x56ba6e.readUint64();
});
_0x3bdefc.createFullBoxCtor("trun", function (_0x29ca4c) {
var _0x205ec = 0x0;
this.sample_count = _0x29ca4c.readUint32();
_0x205ec += 0x4;
if (this.size - this.hdr_size > _0x205ec && this.flags & _0x3bdefc.TRUN_FLAGS_DATA_OFFSET) {
this.data_offset = _0x29ca4c.readInt32();
_0x205ec += 0x4;
} else {
this.data_offset = 0x0;
}
if (this.size - this.hdr_size > _0x205ec && this.flags & _0x3bdefc.TRUN_FLAGS_FIRST_FLAG) {
this.first_sample_flags = _0x29ca4c.readUint32();
_0x205ec += 0x4;
} else {
this.first_sample_flags = 0x0;
}
this.sample_duration = [];
this.sample_size = [];
this.sample_flags = [];
this.sample_composition_time_offset = [];
if (this.size - this.hdr_size > _0x205ec) {
for (var _0x34fba0 = 0x0; _0x34fba0 < this.sample_count; _0x34fba0++) {
if (this.flags & _0x3bdefc.TRUN_FLAGS_DURATION) {
this.sample_duration[_0x34fba0] = _0x29ca4c.readUint32();
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_SIZE) {
this.sample_size[_0x34fba0] = _0x29ca4c.readUint32();
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_FLAGS) {
this.sample_flags[_0x34fba0] = _0x29ca4c.readUint32();
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_CTS_OFFSET) {
if (0x0 === this.version) {
this.sample_composition_time_offset[_0x34fba0] = _0x29ca4c.readUint32();
} else {
this.sample_composition_time_offset[_0x34fba0] = _0x29ca4c.readInt32();
}
}
}
}
});
_0x3bdefc.createFullBoxCtor("tsel", function (_0x37e528) {
this.switch_group = _0x37e528.readUint32();
var _0x1a2970 = (this.size - this.hdr_size - 0x4) / 0x4;
this.attribute_list = [];
for (var _0x2a0137 = 0x0; _0x2a0137 < _0x1a2970; _0x2a0137++) {
this.attribute_list[_0x2a0137] = _0x37e528.readUint32();
}
});
_0x3bdefc.createFullBoxCtor("txtC", function (_0x53b8aa) {
this.config = _0x53b8aa.readCString();
});
_0x3bdefc.createFullBoxCtor("url ", function (_0x59edb2) {
if (0x1 !== this.flags) {
this.location = _0x59edb2.readCString();
}
});
_0x3bdefc.createFullBoxCtor("urn ", function (_0x46fddc) {
this.name = _0x46fddc.readCString();
if (this.size - this.hdr_size - this.name.length - 0x1 > 0x0) {
this.location = _0x46fddc.readCString();
}
});
_0x3bdefc.createUUIDBox("a5d40b30e81411ddba2f0800200c9a66", true, false, function (_0x2495a3) {
this.LiveServerManifest = _0x2495a3.readString(this.size - this.hdr_size).replace(/&/g, '&').replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
});
_0x3bdefc.createUUIDBox("d08a4f1810f34a82b6c832d8aba183d3", true, false, function (_0x598c7e) {
this.system_id = _0x3bdefc.parseHex16(_0x598c7e);
var _0x4e51bb = _0x598c7e.readUint32();
if (_0x4e51bb > 0x0) {
this.data = _0x598c7e.readUint8Array(_0x4e51bb);
}
});
_0x3bdefc.createUUIDBox("a2394f525a9b4f14a2446c427c648df4", true, false);
_0x3bdefc.createUUIDBox("8974dbce7be74c5184f97148f9882554", true, false, function (_0x29f14e) {
this.default_AlgorithmID = _0x29f14e.readUint24();
this.default_IV_size = _0x29f14e.readUint8();
this.default_KID = _0x3bdefc.parseHex16(_0x29f14e);
});
_0x3bdefc.createUUIDBox("d4807ef2ca3946958e5426cb9e46a79f", true, false, function (_0x595ead) {
this.fragment_count = _0x595ead.readUint8();
this.entries = [];
for (var _0x3ed131 = 0x0; _0x3ed131 < this.fragment_count; _0x3ed131++) {
var _0x1d1632 = {};
var _0x43784c = 0x0;
var _0x5e446a = 0x0;
if (0x1 === this.version) {
_0x43784c = _0x595ead.readUint64();
_0x5e446a = _0x595ead.readUint64();
} else {
_0x43784c = _0x595ead.readUint32();
_0x5e446a = _0x595ead.readUint32();
}
_0x1d1632.absolute_time = _0x43784c;
_0x1d1632.absolute_duration = _0x5e446a;
this.entries.push(_0x1d1632);
}
});
_0x3bdefc.createUUIDBox("6d1d9b0542d544e680e2141daff757b2", true, false, function (_0x30fdd9) {
if (0x1 === this.version) {
this.absolute_time = _0x30fdd9.readUint64();
this.duration = _0x30fdd9.readUint64();
} else {
this.absolute_time = _0x30fdd9.readUint32();
this.duration = _0x30fdd9.readUint32();
}
});
_0x3bdefc.createFullBoxCtor("vmhd", function (_0x554d54) {
this.graphicsmode = _0x554d54.readUint16();
this.opcolor = _0x554d54.readUint16Array(0x3);
});
_0x3bdefc.createFullBoxCtor('vpcC', function (_0x3fbfc4) {
var _0x13ebc0;
if (0x1 === this.version) {
this.profile = _0x3fbfc4.readUint8();
this.level = _0x3fbfc4.readUint8();
_0x13ebc0 = _0x3fbfc4.readUint8();
this.bitDepth = _0x13ebc0 >> 0x4;
this.chromaSubsampling = _0x13ebc0 >> 0x1 & 0x7;
this.videoFullRangeFlag = 0x1 & _0x13ebc0;
this.colourPrimaries = _0x3fbfc4.readUint8();
this.transferCharacteristics = _0x3fbfc4.readUint8();
this.matrixCoefficients = _0x3fbfc4.readUint8();
this.codecIntializationDataSize = _0x3fbfc4.readUint16();
this.codecIntializationData = _0x3fbfc4.readUint8Array(this.codecIntializationDataSize);
} else {
this.profile = _0x3fbfc4.readUint8();
this.level = _0x3fbfc4.readUint8();
_0x13ebc0 = _0x3fbfc4.readUint8();
this.bitDepth = _0x13ebc0 >> 0x4 & 0xf;
this.colorSpace = 0xf & _0x13ebc0;
_0x13ebc0 = _0x3fbfc4.readUint8();
this.chromaSubsampling = _0x13ebc0 >> 0x4 & 0xf;
this.transferFunction = _0x13ebc0 >> 0x1 & 0x7;
this.videoFullRangeFlag = 0x1 & _0x13ebc0;
this.codecIntializationDataSize = _0x3fbfc4.readUint16();
this.codecIntializationData = _0x3fbfc4.readUint8Array(this.codecIntializationDataSize);
}
});
_0x3bdefc.createBoxCtor('vttC', function (_0x4fa48e) {
this.text = _0x4fa48e.readString(this.size - this.hdr_size);
});
_0x3bdefc.createFullBoxCtor("vvcC", function (_0x4b9944) {
var _0x44466f;
var _0x1f4080;
var _0x2b2389 = {
'held_bits': undefined,
'num_held_bits': 0x0,
'stream_read_1_bytes': function (_0x1e5e99) {
this.held_bits = _0x1e5e99.readUint8();
this.num_held_bits = 0x8;
},
'stream_read_2_bytes': function (_0x373af8) {
this.held_bits = _0x373af8.readUint16();
this.num_held_bits = 0x10;
},
'extract_bits': function (_0x45d857) {
var _0x1f9c1f = this.held_bits >> this.num_held_bits - _0x45d857 & (0x1 << _0x45d857) - 0x1;
this.num_held_bits -= _0x45d857;
return _0x1f9c1f;
}
};
_0x2b2389.stream_read_1_bytes(_0x4b9944);
_0x2b2389.extract_bits(0x5);
this.lengthSizeMinusOne = _0x2b2389.extract_bits(0x2);
this.ptl_present_flag = _0x2b2389.extract_bits(0x1);
if (this.ptl_present_flag) {
_0x2b2389.stream_read_2_bytes(_0x4b9944);
this.ols_idx = _0x2b2389.extract_bits(0x9);
this.num_sublayers = _0x2b2389.extract_bits(0x3);
this.constant_frame_rate = _0x2b2389.extract_bits(0x2);
this.chroma_format_idc = _0x2b2389.extract_bits(0x2);
_0x2b2389.stream_read_1_bytes(_0x4b9944);
this.bit_depth_minus8 = _0x2b2389.extract_bits(0x3);
_0x2b2389.extract_bits(0x5);
_0x2b2389.stream_read_2_bytes(_0x4b9944);
_0x2b2389.extract_bits(0x2);
this.num_bytes_constraint_info = _0x2b2389.extract_bits(0x6);
this.general_profile_idc = _0x2b2389.extract_bits(0x7);
this.general_tier_flag = _0x2b2389.extract_bits(0x1);
this.general_level_idc = _0x4b9944.readUint8();
_0x2b2389.stream_read_1_bytes(_0x4b9944);
this.ptl_frame_only_constraint_flag = _0x2b2389.extract_bits(0x1);
this.ptl_multilayer_enabled_flag = _0x2b2389.extract_bits(0x1);
this.general_constraint_info = new Uint8Array(this.num_bytes_constraint_info);
if (this.num_bytes_constraint_info) {
for (_0x44466f = 0x0; _0x44466f < this.num_bytes_constraint_info - 0x1; _0x44466f++) {
var _0xa44f21 = _0x2b2389.extract_bits(0x6);
_0x2b2389.stream_read_1_bytes(_0x4b9944);
var _0x1a5f5b = _0x2b2389.extract_bits(0x2);
this.general_constraint_info[_0x44466f] = _0xa44f21 << 0x2 | _0x1a5f5b;
}
this.general_constraint_info[this.num_bytes_constraint_info - 0x1] = _0x2b2389.extract_bits(0x6);
} else {
_0x2b2389.extract_bits(0x6);
}
_0x2b2389.stream_read_1_bytes(_0x4b9944);
this.ptl_sublayer_present_mask = 0x0;
for (_0x1f4080 = this.num_sublayers - 0x2; _0x1f4080 >= 0x0; --_0x1f4080) {
var _0x1ef43d = _0x2b2389.extract_bits(0x1);
this.ptl_sublayer_present_mask |= _0x1ef43d << _0x1f4080;
}
for (_0x1f4080 = this.num_sublayers; _0x1f4080 <= 0x8 && this.num_sublayers > 0x1; ++_0x1f4080) {
_0x2b2389.extract_bits(0x1);
}
for (_0x1f4080 = this.num_sublayers - 0x2; _0x1f4080 >= 0x0; --_0x1f4080) {
if (this.ptl_sublayer_present_mask & 0x1 << _0x1f4080) {
this.sublayer_level_idc[_0x1f4080] = _0x4b9944.readUint8();
}
}
this.ptl_num_sub_profiles = _0x4b9944.readUint8();
this.general_sub_profile_idc = [];
if (this.ptl_num_sub_profiles) {
for (_0x44466f = 0x0; _0x44466f < this.ptl_num_sub_profiles; _0x44466f++) {
this.general_sub_profile_idc.push(_0x4b9944.readUint32());
}
}
this.max_picture_width = _0x4b9944.readUint16();
this.max_picture_height = _0x4b9944.readUint16();
this.avg_frame_rate = _0x4b9944.readUint16();
}
this.nalu_arrays = [];
var _0x2546eb = _0x4b9944.readUint8();
for (_0x44466f = 0x0; _0x44466f < _0x2546eb; _0x44466f++) {
var _0xfbf03b = [];
this.nalu_arrays.push(_0xfbf03b);
_0x2b2389.stream_read_1_bytes(_0x4b9944);
_0xfbf03b.completeness = _0x2b2389.extract_bits(0x1);
_0x2b2389.extract_bits(0x2);
_0xfbf03b.nalu_type = _0x2b2389.extract_bits(0x5);
var _0x5d3cf4 = 0x1;
if (0xd != _0xfbf03b.nalu_type && 0xc != _0xfbf03b.nalu_type) {
_0x5d3cf4 = _0x4b9944.readUint16();
}
for (_0x1f4080 = 0x0; _0x1f4080 < _0x5d3cf4; _0x1f4080++) {
var _0x540abc = _0x4b9944.readUint16();
_0xfbf03b.push({
'data': _0x4b9944.readUint8Array(_0x540abc),
'length': _0x540abc
});
}
}
});
_0x3bdefc.createFullBoxCtor("vvnC", function (_0x4dc2a4) {
var _0x1fd7d0 = strm.readUint8();
this.lengthSizeMinusOne = 0x3 & _0x1fd7d0;
});
_0x3bdefc.SampleEntry.prototype.isVideo = function () {
return false;
};
_0x3bdefc.SampleEntry.prototype.isAudio = function () {
return false;
};
_0x3bdefc.SampleEntry.prototype.isSubtitle = function () {
return false;
};
_0x3bdefc.SampleEntry.prototype.isMetadata = function () {
return false;
};
_0x3bdefc.SampleEntry.prototype.isHint = function () {
return false;
};
_0x3bdefc.SampleEntry.prototype.getCodec = function () {
return this.type.replace('.', '');
};
_0x3bdefc.SampleEntry.prototype.getWidth = function () {
return '';
};
_0x3bdefc.SampleEntry.prototype.getHeight = function () {
return '';
};
_0x3bdefc.SampleEntry.prototype.getChannelCount = function () {
return '';
};
_0x3bdefc.SampleEntry.prototype.getSampleRate = function () {
return '';
};
_0x3bdefc.SampleEntry.prototype.getSampleSize = function () {
return '';
};
_0x3bdefc.VisualSampleEntry.prototype.isVideo = function () {
return true;
};
_0x3bdefc.VisualSampleEntry.prototype.getWidth = function () {
return this.width;
};
_0x3bdefc.VisualSampleEntry.prototype.getHeight = function () {
return this.height;
};
_0x3bdefc.AudioSampleEntry.prototype.isAudio = function () {
return true;
};
_0x3bdefc.AudioSampleEntry.prototype.getChannelCount = function () {
return this.channel_count;
};
_0x3bdefc.AudioSampleEntry.prototype.getSampleRate = function () {
return this.samplerate;
};
_0x3bdefc.AudioSampleEntry.prototype.getSampleSize = function () {
return this.samplesize;
};
_0x3bdefc.SubtitleSampleEntry.prototype.isSubtitle = function () {
return true;
};
_0x3bdefc.MetadataSampleEntry.prototype.isMetadata = function () {
return true;
};
_0x3bdefc.decimalToHex = function (_0x9b581b, _0x3114b7) {
var _0x4da434 = Number(_0x9b581b).toString(0x10);
for (_0x3114b7 = null == _0x3114b7 ? _0x3114b7 = 0x2 : _0x3114b7; _0x4da434.length < _0x3114b7;) {
_0x4da434 = '0' + _0x4da434;
}
return _0x4da434;
};
_0x3bdefc.avc1SampleEntry.prototype.getCodec = _0x3bdefc.avc2SampleEntry.prototype.getCodec = _0x3bdefc.avc3SampleEntry.prototype.getCodec = _0x3bdefc.avc4SampleEntry.prototype.getCodec = function () {
var _0x23052a = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
return this.avcC ? _0x23052a + '.' + _0x3bdefc.decimalToHex(this.avcC.AVCProfileIndication) + _0x3bdefc.decimalToHex(this.avcC.profile_compatibility) + _0x3bdefc.decimalToHex(this.avcC.AVCLevelIndication) : _0x23052a;
};
_0x3bdefc.hev1SampleEntry.prototype.getCodec = _0x3bdefc.hvc1SampleEntry.prototype.getCodec = function () {
var _0x173dc5;
var _0x2b1dad = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
if (this.hvcC) {
_0x2b1dad += '.';
switch (this.hvcC.general_profile_space) {
case 0x0:
_0x2b1dad += '';
break;
case 0x1:
_0x2b1dad += 'A';
break;
case 0x2:
_0x2b1dad += 'B';
break;
case 0x3:
_0x2b1dad += 'C';
}
_0x2b1dad += this.hvcC.general_profile_idc;
_0x2b1dad += '.';
var _0x8fdf6d = this.hvcC.general_profile_compatibility;
var _0x55e6d0 = 0x0;
for (_0x173dc5 = 0x0; _0x173dc5 < 0x20 && (_0x55e6d0 |= 0x1 & _0x8fdf6d, 0x1f != _0x173dc5); _0x173dc5++) {
_0x55e6d0 <<= 0x1;
_0x8fdf6d >>= 0x1;
}
_0x2b1dad += _0x3bdefc.decimalToHex(_0x55e6d0, 0x0);
_0x2b1dad += '.';
if (0x0 === this.hvcC.general_tier_flag) {
_0x2b1dad += 'L';
} else {
_0x2b1dad += 'H';
}
_0x2b1dad += this.hvcC.general_level_idc;
var _0x2be0a4 = false;
var _0x4f031e = '';
for (_0x173dc5 = 0x5; _0x173dc5 >= 0x0; _0x173dc5--) {
if (this.hvcC.general_constraint_indicator[_0x173dc5] || _0x2be0a4) {
_0x4f031e = '.' + _0x3bdefc.decimalToHex(this.hvcC.general_constraint_indicator[_0x173dc5], 0x0) + _0x4f031e;
_0x2be0a4 = true;
}
}
_0x2b1dad += _0x4f031e;
}
return _0x2b1dad;
};
_0x3bdefc.vvc1SampleEntry.prototype.getCodec = _0x3bdefc.vvi1SampleEntry.prototype.getCodec = function () {
var _0x1355dc;
var _0x1e35d6 = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
if (this.vvcC) {
_0x1e35d6 += '.' + this.vvcC.general_profile_idc;
if (this.vvcC.general_tier_flag) {
_0x1e35d6 += '.H';
} else {
_0x1e35d6 += '.L';
}
_0x1e35d6 += this.vvcC.general_level_idc;
var _0x31dd5d = '';
if (this.vvcC.general_constraint_info) {
var _0x90e8cb;
var _0x243f14 = [];
var _0x4e1816 = 0x0;
_0x4e1816 |= this.vvcC.ptl_frame_only_constraint << 0x7;
_0x4e1816 |= this.vvcC.ptl_multilayer_enabled << 0x6;
for (_0x1355dc = 0x0; _0x1355dc < this.vvcC.general_constraint_info.length; ++_0x1355dc) {
_0x4e1816 |= this.vvcC.general_constraint_info[_0x1355dc] >> 0x2 & 0x3f;
_0x243f14.push(_0x4e1816);
if (_0x4e1816) {
_0x90e8cb = _0x1355dc;
}
_0x4e1816 = this.vvcC.general_constraint_info[_0x1355dc] >> 0x2 & 0x3;
}
if (undefined === _0x90e8cb) {
_0x31dd5d = '.CA';
} else {
_0x31dd5d = '.C';
var _0x312c07 = 0x0;
var _0x3c9cea = 0x0;
for (_0x1355dc = 0x0; _0x1355dc <= _0x90e8cb; ++_0x1355dc) {
_0x312c07 = _0x312c07 << 0x8 | _0x243f14[_0x1355dc];
for (_0x3c9cea += 0x8; _0x3c9cea >= 0x5;) {
_0x31dd5d += "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"[_0x312c07 >> _0x3c9cea - 0x5 & 0x1f];
_0x312c07 &= (0x1 << (_0x3c9cea -= 0x5)) - 0x1;
}
}
if (_0x3c9cea) {
_0x31dd5d += "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"[0x1f & (_0x312c07 <<= 0x5 - _0x3c9cea)];
}
}
}
_0x1e35d6 += _0x31dd5d;
}
return _0x1e35d6;
};
_0x3bdefc.mp4aSampleEntry.prototype.getCodec = function () {
var _0x3d4d98 = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
if (this.esds && this.esds.esd) {
var _0x4d8adf = this.esds.esd.getOTI();
var _0x167413 = this.esds.esd.getAudioConfig();
return _0x3d4d98 + '.' + _0x3bdefc.decimalToHex(_0x4d8adf) + (_0x167413 ? '.' + _0x167413 : '');
}
return _0x3d4d98;
};
_0x3bdefc.stxtSampleEntry.prototype.getCodec = function () {
var _0x10d572 = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
return this.mime_format ? _0x10d572 + '.' + this.mime_format : _0x10d572;
};
_0x3bdefc.vp08SampleEntry.prototype.getCodec = _0x3bdefc.vp09SampleEntry.prototype.getCodec = function () {
var _0xf9f7a3 = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
var _0x16b5b5 = this.vpcC.level;
if (0x0 == _0x16b5b5) {
_0x16b5b5 = '00';
}
var _0x74c876 = this.vpcC.bitDepth;
if (0x8 == _0x74c876) {
_0x74c876 = '08';
}
return _0xf9f7a3 + '.0' + this.vpcC.profile + '.' + _0x16b5b5 + '.' + _0x74c876;
};
_0x3bdefc.av01SampleEntry.prototype.getCodec = function () {
var _0x363d15;
var _0x30f5ea = _0x3bdefc.SampleEntry.prototype.getCodec.call(this);
var _0x10b1e3 = this.av1C.seq_level_idx_0;
if (_0x10b1e3 < 0xa) {
_0x10b1e3 = '0' + _0x10b1e3;
}
if (0x2 === this.av1C.seq_profile && 0x1 === this.av1C.high_bitdepth) {
_0x363d15 = 0x1 === this.av1C.twelve_bit ? '12' : '10';
} else if (this.av1C.seq_profile <= 0x2) {
_0x363d15 = 0x1 === this.av1C.high_bitdepth ? '10' : '08';
}
return _0x30f5ea + '.' + this.av1C.seq_profile + '.' + _0x10b1e3 + (this.av1C.seq_tier_0 ? 'H' : 'M') + '.' + _0x363d15;
};
_0x3bdefc.Box.prototype.writeHeader = function (_0x4d485f, _0x8fd07a) {
this.size += 0x8;
if (this.size > _0x23c968) {
this.size += 0x8;
}
if ("uuid" === this.type) {
this.size += 0x10;
}
_0xc44760.debug("BoxWriter", "Writing box " + this.type + " of size: " + this.size + " at position " + _0x4d485f.getPosition() + (_0x8fd07a || ''));
if (this.size > _0x23c968) {
_0x4d485f.writeUint32(0x1);
} else {
this.sizePosition = _0x4d485f.getPosition();
_0x4d485f.writeUint32(this.size);
}
_0x4d485f.writeString(this.type, null, 0x4);
if ('uuid' === this.type) {
_0x4d485f.writeUint8Array(this.uuid);
}
if (this.size > _0x23c968) {
_0x4d485f.writeUint64(this.size);
}
};
_0x3bdefc.FullBox.prototype.writeHeader = function (_0x480445) {
this.size += 0x4;
_0x3bdefc.Box.prototype.writeHeader.call(this, _0x480445, " v=" + this.version + " f=" + this.flags);
_0x480445.writeUint8(this.version);
_0x480445.writeUint24(this.flags);
};
_0x3bdefc.Box.prototype.write = function (_0x56c535) {
if ("mdat" === this.type) {
if (this.data) {
this.size = this.data.length;
this.writeHeader(_0x56c535);
_0x56c535.writeUint8Array(this.data);
}
} else {
this.size = this.data ? this.data.length : 0x0;
this.writeHeader(_0x56c535);
if (this.data) {
_0x56c535.writeUint8Array(this.data);
}
}
};
_0x3bdefc.ContainerBox.prototype.write = function (_0x2dad42) {
this.size = 0x0;
this.writeHeader(_0x2dad42);
for (var _0x42359b = 0x0; _0x42359b < this.boxes.length; _0x42359b++) {
if (this.boxes[_0x42359b]) {
this.boxes[_0x42359b].write(_0x2dad42);
this.size += this.boxes[_0x42359b].size;
}
}
_0xc44760.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size);
_0x2dad42.adjustUint32(this.sizePosition, this.size);
};
_0x3bdefc.TrackReferenceTypeBox.prototype.write = function (_0x531cf3) {
this.size = 0x4 * this.track_ids.length;
this.writeHeader(_0x531cf3);
_0x531cf3.writeUint32Array(this.track_ids);
};
_0x3bdefc.avcCBox.prototype.write = function (_0x393eff) {
var _0x17b49a;
this.size = 0x7;
for (_0x17b49a = 0x0; _0x17b49a < this.SPS.length; _0x17b49a++) {
this.size += 0x2 + this.SPS[_0x17b49a].length;
}
for (_0x17b49a = 0x0; _0x17b49a < this.PPS.length; _0x17b49a++) {
this.size += 0x2 + this.PPS[_0x17b49a].length;
}
if (this.ext) {
this.size += this.ext.length;
}
this.writeHeader(_0x393eff);
_0x393eff.writeUint8(this.configurationVersion);
_0x393eff.writeUint8(this.AVCProfileIndication);
_0x393eff.writeUint8(this.profile_compatibility);
_0x393eff.writeUint8(this.AVCLevelIndication);
_0x393eff.writeUint8(this.lengthSizeMinusOne + 0xfc);
_0x393eff.writeUint8(this.SPS.length + 0xe0);
for (_0x17b49a = 0x0; _0x17b49a < this.SPS.length; _0x17b49a++) {
_0x393eff.writeUint16(this.SPS[_0x17b49a].length);
_0x393eff.writeUint8Array(this.SPS[_0x17b49a].nalu);
}
_0x393eff.writeUint8(this.PPS.length);
for (_0x17b49a = 0x0; _0x17b49a < this.PPS.length; _0x17b49a++) {
_0x393eff.writeUint16(this.PPS[_0x17b49a].length);
_0x393eff.writeUint8Array(this.PPS[_0x17b49a].nalu);
}
if (this.ext) {
_0x393eff.writeUint8Array(this.ext);
}
};
_0x3bdefc.co64Box.prototype.write = function (_0x400aa2) {
var _0x1cd1f1;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x8 * this.chunk_offsets.length;
this.writeHeader(_0x400aa2);
_0x400aa2.writeUint32(this.chunk_offsets.length);
for (_0x1cd1f1 = 0x0; _0x1cd1f1 < this.chunk_offsets.length; _0x1cd1f1++) {
_0x400aa2.writeUint64(this.chunk_offsets[_0x1cd1f1]);
}
};
_0x3bdefc.cslgBox.prototype.write = function (_0x793b18) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x14;
this.writeHeader(_0x793b18);
_0x793b18.writeInt32(this.compositionToDTSShift);
_0x793b18.writeInt32(this.leastDecodeToDisplayDelta);
_0x793b18.writeInt32(this.greatestDecodeToDisplayDelta);
_0x793b18.writeInt32(this.compositionStartTime);
_0x793b18.writeInt32(this.compositionEndTime);
};
_0x3bdefc.cttsBox.prototype.write = function (_0x1e991c) {
var _0x4645a9;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x8 * this.sample_counts.length;
this.writeHeader(_0x1e991c);
_0x1e991c.writeUint32(this.sample_counts.length);
for (_0x4645a9 = 0x0; _0x4645a9 < this.sample_counts.length; _0x4645a9++) {
_0x1e991c.writeUint32(this.sample_counts[_0x4645a9]);
if (0x1 === this.version) {
_0x1e991c.writeInt32(this.sample_offsets[_0x4645a9]);
} else {
_0x1e991c.writeUint32(this.sample_offsets[_0x4645a9]);
}
}
};
_0x3bdefc.drefBox.prototype.write = function (_0xf1decd) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4;
this.writeHeader(_0xf1decd);
_0xf1decd.writeUint32(this.entries.length);
for (var _0x333245 = 0x0; _0x333245 < this.entries.length; _0x333245++) {
this.entries[_0x333245].write(_0xf1decd);
this.size += this.entries[_0x333245].size;
}
_0xc44760.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size);
_0xf1decd.adjustUint32(this.sizePosition, this.size);
};
_0x3bdefc.elngBox.prototype.write = function (_0x4f4fdf) {
this.version = 0x0;
this.flags = 0x0;
this.size = this.extended_language.length;
this.writeHeader(_0x4f4fdf);
_0x4f4fdf.writeString(this.extended_language);
};
_0x3bdefc.elstBox.prototype.write = function (_0x4e2471) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0xc * this.entries.length;
this.writeHeader(_0x4e2471);
_0x4e2471.writeUint32(this.entries.length);
for (var _0x554f19 = 0x0; _0x554f19 < this.entries.length; _0x554f19++) {
var _0x5994bc = this.entries[_0x554f19];
_0x4e2471.writeUint32(_0x5994bc.segment_duration);
_0x4e2471.writeInt32(_0x5994bc.media_time);
_0x4e2471.writeInt16(_0x5994bc.media_rate_integer);
_0x4e2471.writeInt16(_0x5994bc.media_rate_fraction);
}
};
_0x3bdefc.emsgBox.prototype.write = function (_0xe5fdd3) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x10 + this.message_data.length + (this.scheme_id_uri.length + 0x1) + (this.value.length + 0x1);
this.writeHeader(_0xe5fdd3);
_0xe5fdd3.writeCString(this.scheme_id_uri);
_0xe5fdd3.writeCString(this.value);
_0xe5fdd3.writeUint32(this.timescale);
_0xe5fdd3.writeUint32(this.presentation_time_delta);
_0xe5fdd3.writeUint32(this.event_duration);
_0xe5fdd3.writeUint32(this.id);
_0xe5fdd3.writeUint8Array(this.message_data);
};
_0x3bdefc.ftypBox.prototype.write = function (_0x3dda28) {
this.size = 0x8 + 0x4 * this.compatible_brands.length;
this.writeHeader(_0x3dda28);
_0x3dda28.writeString(this.major_brand, null, 0x4);
_0x3dda28.writeUint32(this.minor_version);
for (var _0x184b1d = 0x0; _0x184b1d < this.compatible_brands.length; _0x184b1d++) {
_0x3dda28.writeString(this.compatible_brands[_0x184b1d], null, 0x4);
}
};
_0x3bdefc.hdlrBox.prototype.write = function (_0x260013) {
this.size = 0x14 + this.name.length + 0x1;
this.version = 0x0;
this.flags = 0x0;
this.writeHeader(_0x260013);
_0x260013.writeUint32(0x0);
_0x260013.writeString(this.handler, null, 0x4);
_0x260013.writeUint32(0x0);
_0x260013.writeUint32(0x0);
_0x260013.writeUint32(0x0);
_0x260013.writeCString(this.name);
};
_0x3bdefc.kindBox.prototype.write = function (_0x21a08f) {
this.version = 0x0;
this.flags = 0x0;
this.size = this.schemeURI.length + 0x1 + (this.value.length + 0x1);
this.writeHeader(_0x21a08f);
_0x21a08f.writeCString(this.schemeURI);
_0x21a08f.writeCString(this.value);
};
_0x3bdefc.mdhdBox.prototype.write = function (_0x119eda) {
this.size = 0x14;
this.flags = 0x0;
this.version = 0x0;
this.writeHeader(_0x119eda);
_0x119eda.writeUint32(this.creation_time);
_0x119eda.writeUint32(this.modification_time);
_0x119eda.writeUint32(this.timescale);
_0x119eda.writeUint32(this.duration);
_0x119eda.writeUint16(this.language);
_0x119eda.writeUint16(0x0);
};
_0x3bdefc.mehdBox.prototype.write = function (_0x4c2654) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4;
this.writeHeader(_0x4c2654);
_0x4c2654.writeUint32(this.fragment_duration);
};
_0x3bdefc.mfhdBox.prototype.write = function (_0x5700e8) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4;
this.writeHeader(_0x5700e8);
_0x5700e8.writeUint32(this.sequence_number);
};
_0x3bdefc.mvhdBox.prototype.write = function (_0x34bc44) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x60;
this.writeHeader(_0x34bc44);
_0x34bc44.writeUint32(this.creation_time);
_0x34bc44.writeUint32(this.modification_time);
_0x34bc44.writeUint32(this.timescale);
_0x34bc44.writeUint32(this.duration);
_0x34bc44.writeUint32(this.rate);
_0x34bc44.writeUint16(this.volume << 0x8);
_0x34bc44.writeUint16(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32Array(this.matrix);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(0x0);
_0x34bc44.writeUint32(this.next_track_id);
};
_0x3bdefc.SampleEntry.prototype.writeHeader = function (_0x4cc0a5) {
this.size = 0x8;
_0x3bdefc.Box.prototype.writeHeader.call(this, _0x4cc0a5);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint8(0x0);
_0x4cc0a5.writeUint16(this.data_reference_index);
};
_0x3bdefc.SampleEntry.prototype.writeFooter = function (_0xcdab97) {
for (var _0x4c98a3 = 0x0; _0x4c98a3 < this.boxes.length; _0x4c98a3++) {
this.boxes[_0x4c98a3].write(_0xcdab97);
this.size += this.boxes[_0x4c98a3].size;
}
_0xc44760.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size);
_0xcdab97.adjustUint32(this.sizePosition, this.size);
};
_0x3bdefc.SampleEntry.prototype.write = function (_0x1e0f25) {
this.writeHeader(_0x1e0f25);
_0x1e0f25.writeUint8Array(this.data);
this.size += this.data.length;
_0xc44760.debug('BoxWriter', "Adjusting box " + this.type + " with new size " + this.size);
_0x1e0f25.adjustUint32(this.sizePosition, this.size);
};
_0x3bdefc.VisualSampleEntry.prototype.write = function (_0x380d5c) {
this.writeHeader(_0x380d5c);
this.size += 0x46;
_0x380d5c.writeUint16(0x0);
_0x380d5c.writeUint16(0x0);
_0x380d5c.writeUint32(0x0);
_0x380d5c.writeUint32(0x0);
_0x380d5c.writeUint32(0x0);
_0x380d5c.writeUint16(this.width);
_0x380d5c.writeUint16(this.height);
_0x380d5c.writeUint32(this.horizresolution);
_0x380d5c.writeUint32(this.vertresolution);
_0x380d5c.writeUint32(0x0);
_0x380d5c.writeUint16(this.frame_count);
_0x380d5c.writeUint8(Math.min(0x1f, this.compressorname.length));
_0x380d5c.writeString(this.compressorname, null, 0x1f);
_0x380d5c.writeUint16(this.depth);
_0x380d5c.writeInt16(-0x1);
this.writeFooter(_0x380d5c);
};
_0x3bdefc.AudioSampleEntry.prototype.write = function (_0x4ddd39) {
this.writeHeader(_0x4ddd39);
this.size += 0x14;
_0x4ddd39.writeUint32(0x0);
_0x4ddd39.writeUint32(0x0);
_0x4ddd39.writeUint16(this.channel_count);
_0x4ddd39.writeUint16(this.samplesize);
_0x4ddd39.writeUint16(0x0);
_0x4ddd39.writeUint16(0x0);
_0x4ddd39.writeUint32(this.samplerate << 0x10);
this.writeFooter(_0x4ddd39);
};
_0x3bdefc.stppSampleEntry.prototype.write = function (_0x473b97) {
this.writeHeader(_0x473b97);
this.size += this.namespace.length + 0x1 + this.schema_location.length + 0x1 + this.auxiliary_mime_types.length + 0x1;
_0x473b97.writeCString(this.namespace);
_0x473b97.writeCString(this.schema_location);
_0x473b97.writeCString(this.auxiliary_mime_types);
this.writeFooter(_0x473b97);
};
_0x3bdefc.SampleGroupEntry.prototype.write = function (_0x1759a0) {
_0x1759a0.writeUint8Array(this.data);
};
_0x3bdefc.sbgpBox.prototype.write = function (_0x3981e1) {
this.version = 0x1;
this.flags = 0x0;
this.size = 0xc + 0x8 * this.entries.length;
this.writeHeader(_0x3981e1);
_0x3981e1.writeString(this.grouping_type, null, 0x4);
_0x3981e1.writeUint32(this.grouping_type_parameter);
_0x3981e1.writeUint32(this.entries.length);
for (var _0x4def77 = 0x0; _0x4def77 < this.entries.length; _0x4def77++) {
var _0x37507f = this.entries[_0x4def77];
_0x3981e1.writeInt32(_0x37507f.sample_count);
_0x3981e1.writeInt32(_0x37507f.group_description_index);
}
};
_0x3bdefc.sgpdBox.prototype.write = function (_0x4a187c) {
var _0x1a49b9;
var _0x4e9c4d;
this.flags = 0x0;
this.size = 0xc;
for (_0x1a49b9 = 0x0; _0x1a49b9 < this.entries.length; _0x1a49b9++) {
_0x4e9c4d = this.entries[_0x1a49b9];
if (0x1 === this.version) {
if (0x0 === this.default_length) {
this.size += 0x4;
}
this.size += _0x4e9c4d.data.length;
}
}
this.writeHeader(_0x4a187c);
_0x4a187c.writeString(this.grouping_type, null, 0x4);
if (0x1 === this.version) {
_0x4a187c.writeUint32(this.default_length);
}
if (this.version >= 0x2) {
_0x4a187c.writeUint32(this.default_sample_description_index);
}
_0x4a187c.writeUint32(this.entries.length);
for (_0x1a49b9 = 0x0; _0x1a49b9 < this.entries.length; _0x1a49b9++) {
_0x4e9c4d = this.entries[_0x1a49b9];
if (0x1 === this.version && 0x0 === this.default_length) {
_0x4a187c.writeUint32(_0x4e9c4d.description_length);
}
_0x4e9c4d.write(_0x4a187c);
}
};
_0x3bdefc.sidxBox.prototype.write = function (_0x1f226f) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x14 + 0xc * this.references.length;
this.writeHeader(_0x1f226f);
_0x1f226f.writeUint32(this.reference_ID);
_0x1f226f.writeUint32(this.timescale);
_0x1f226f.writeUint32(this.earliest_presentation_time);
_0x1f226f.writeUint32(this.first_offset);
_0x1f226f.writeUint16(0x0);
_0x1f226f.writeUint16(this.references.length);
for (var _0x26314d = 0x0; _0x26314d < this.references.length; _0x26314d++) {
var _0xc83daa = this.references[_0x26314d];
_0x1f226f.writeUint32(_0xc83daa.reference_type << 0x1f | _0xc83daa.referenced_size);
_0x1f226f.writeUint32(_0xc83daa.subsegment_duration);
_0x1f226f.writeUint32(_0xc83daa.starts_with_SAP << 0x1f | _0xc83daa.SAP_type << 0x1c | _0xc83daa.SAP_delta_time);
}
};
_0x3bdefc.smhdBox.prototype.write = function (_0x1c4d4a) {
this.version = 0x0;
this.flags = 0x1;
this.size = 0x4;
this.writeHeader(_0x1c4d4a);
_0x1c4d4a.writeUint16(this.balance);
_0x1c4d4a.writeUint16(0x0);
};
_0x3bdefc.stcoBox.prototype.write = function (_0xf78595) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x4 * this.chunk_offsets.length;
this.writeHeader(_0xf78595);
_0xf78595.writeUint32(this.chunk_offsets.length);
_0xf78595.writeUint32Array(this.chunk_offsets);
};
_0x3bdefc.stscBox.prototype.write = function (_0x2db410) {
var _0x66bdce;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0xc * this.first_chunk.length;
this.writeHeader(_0x2db410);
_0x2db410.writeUint32(this.first_chunk.length);
for (_0x66bdce = 0x0; _0x66bdce < this.first_chunk.length; _0x66bdce++) {
_0x2db410.writeUint32(this.first_chunk[_0x66bdce]);
_0x2db410.writeUint32(this.samples_per_chunk[_0x66bdce]);
_0x2db410.writeUint32(this.sample_description_index[_0x66bdce]);
}
};
_0x3bdefc.stsdBox.prototype.write = function (_0xab1ff0) {
var _0x139040;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x0;
this.writeHeader(_0xab1ff0);
_0xab1ff0.writeUint32(this.entries.length);
this.size += 0x4;
for (_0x139040 = 0x0; _0x139040 < this.entries.length; _0x139040++) {
this.entries[_0x139040].write(_0xab1ff0);
this.size += this.entries[_0x139040].size;
}
_0xc44760.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size);
_0xab1ff0.adjustUint32(this.sizePosition, this.size);
};
_0x3bdefc.stshBox.prototype.write = function (_0x17c4c1) {
var _0x54f539;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x8 * this.shadowed_sample_numbers.length;
this.writeHeader(_0x17c4c1);
_0x17c4c1.writeUint32(this.shadowed_sample_numbers.length);
for (_0x54f539 = 0x0; _0x54f539 < this.shadowed_sample_numbers.length; _0x54f539++) {
_0x17c4c1.writeUint32(this.shadowed_sample_numbers[_0x54f539]);
_0x17c4c1.writeUint32(this.sync_sample_numbers[_0x54f539]);
}
};
_0x3bdefc.stssBox.prototype.write = function (_0x2cf598) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x4 * this.sample_numbers.length;
this.writeHeader(_0x2cf598);
_0x2cf598.writeUint32(this.sample_numbers.length);
_0x2cf598.writeUint32Array(this.sample_numbers);
};
_0x3bdefc.stszBox.prototype.write = function (_0x34505f) {
var _0x5e9400;
var _0x5c754e = true;
this.version = 0x0;
this.flags = 0x0;
if (this.sample_sizes.length > 0x0) {
for (_0x5e9400 = 0x0; _0x5e9400 + 0x1 < this.sample_sizes.length;) {
if (this.sample_sizes[_0x5e9400 + 0x1] !== this.sample_sizes[0x0]) {
_0x5c754e = false;
break;
}
_0x5e9400++;
}
} else {
_0x5c754e = false;
}
this.size = 0x8;
if (!_0x5c754e) {
this.size += 0x4 * this.sample_sizes.length;
}
this.writeHeader(_0x34505f);
if (_0x5c754e) {
_0x34505f.writeUint32(this.sample_sizes[0x0]);
} else {
_0x34505f.writeUint32(0x0);
}
_0x34505f.writeUint32(this.sample_sizes.length);
if (!_0x5c754e) {
_0x34505f.writeUint32Array(this.sample_sizes);
}
};
_0x3bdefc.sttsBox.prototype.write = function (_0x3d6867) {
var _0x582a0a;
this.version = 0x0;
this.flags = 0x0;
this.size = 0x4 + 0x8 * this.sample_counts.length;
this.writeHeader(_0x3d6867);
_0x3d6867.writeUint32(this.sample_counts.length);
for (_0x582a0a = 0x0; _0x582a0a < this.sample_counts.length; _0x582a0a++) {
_0x3d6867.writeUint32(this.sample_counts[_0x582a0a]);
_0x3d6867.writeUint32(this.sample_deltas[_0x582a0a]);
}
};
_0x3bdefc.tfdtBox.prototype.write = function (_0x312501) {
var _0x49074c = Math.pow(0x2, 0x20) - 0x1;
this.version = this.baseMediaDecodeTime > _0x49074c ? 0x1 : 0x0;
this.flags = 0x0;
this.size = 0x4;
if (0x1 === this.version) {
this.size += 0x4;
}
this.writeHeader(_0x312501);
if (0x1 === this.version) {
_0x312501.writeUint64(this.baseMediaDecodeTime);
} else {
_0x312501.writeUint32(this.baseMediaDecodeTime);
}
};
_0x3bdefc.tfhdBox.prototype.write = function (_0x31fd2c) {
this.version = 0x0;
this.size = 0x4;
if (this.flags & _0x3bdefc.TFHD_FLAG_BASE_DATA_OFFSET) {
this.size += 0x8;
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DESC) {
this.size += 0x4;
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DUR) {
this.size += 0x4;
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_SIZE) {
this.size += 0x4;
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_FLAGS) {
this.size += 0x4;
}
this.writeHeader(_0x31fd2c);
_0x31fd2c.writeUint32(this.track_id);
if (this.flags & _0x3bdefc.TFHD_FLAG_BASE_DATA_OFFSET) {
_0x31fd2c.writeUint64(this.base_data_offset);
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DESC) {
_0x31fd2c.writeUint32(this.default_sample_description_index);
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DUR) {
_0x31fd2c.writeUint32(this.default_sample_duration);
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_SIZE) {
_0x31fd2c.writeUint32(this.default_sample_size);
}
if (this.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_FLAGS) {
_0x31fd2c.writeUint32(this.default_sample_flags);
}
};
_0x3bdefc.tkhdBox.prototype.write = function (_0xad21d3) {
this.version = 0x0;
this.size = 0x50;
this.writeHeader(_0xad21d3);
_0xad21d3.writeUint32(this.creation_time);
_0xad21d3.writeUint32(this.modification_time);
_0xad21d3.writeUint32(this.track_id);
_0xad21d3.writeUint32(0x0);
_0xad21d3.writeUint32(this.duration);
_0xad21d3.writeUint32(0x0);
_0xad21d3.writeUint32(0x0);
_0xad21d3.writeInt16(this.layer);
_0xad21d3.writeInt16(this.alternate_group);
_0xad21d3.writeInt16(this.volume << 0x8);
_0xad21d3.writeUint16(0x0);
_0xad21d3.writeInt32Array(this.matrix);
_0xad21d3.writeUint32(this.width);
_0xad21d3.writeUint32(this.height);
};
_0x3bdefc.trexBox.prototype.write = function (_0xe52abb) {
this.version = 0x0;
this.flags = 0x0;
this.size = 0x14;
this.writeHeader(_0xe52abb);
_0xe52abb.writeUint32(this.track_id);
_0xe52abb.writeUint32(this.default_sample_description_index);
_0xe52abb.writeUint32(this.default_sample_duration);
_0xe52abb.writeUint32(this.default_sample_size);
_0xe52abb.writeUint32(this.default_sample_flags);
};
_0x3bdefc.trunBox.prototype.write = function (_0x74196f) {
this.version = 0x0;
this.size = 0x4;
if (this.flags & _0x3bdefc.TRUN_FLAGS_DATA_OFFSET) {
this.size += 0x4;
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_FIRST_FLAG) {
this.size += 0x4;
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_DURATION) {
this.size += 0x4 * this.sample_duration.length;
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_SIZE) {
this.size += 0x4 * this.sample_size.length;
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_FLAGS) {
this.size += 0x4 * this.sample_flags.length;
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_CTS_OFFSET) {
this.size += 0x4 * this.sample_composition_time_offset.length;
}
this.writeHeader(_0x74196f);
_0x74196f.writeUint32(this.sample_count);
if (this.flags & _0x3bdefc.TRUN_FLAGS_DATA_OFFSET) {
this.data_offset_position = _0x74196f.getPosition();
_0x74196f.writeInt32(this.data_offset);
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_FIRST_FLAG) {
_0x74196f.writeUint32(this.first_sample_flags);
}
for (var _0x1d941f = 0x0; _0x1d941f < this.sample_count; _0x1d941f++) {
if (this.flags & _0x3bdefc.TRUN_FLAGS_DURATION) {
_0x74196f.writeUint32(this.sample_duration[_0x1d941f]);
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_SIZE) {
_0x74196f.writeUint32(this.sample_size[_0x1d941f]);
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_FLAGS) {
_0x74196f.writeUint32(this.sample_flags[_0x1d941f]);
}
if (this.flags & _0x3bdefc.TRUN_FLAGS_CTS_OFFSET) {
if (0x0 === this.version) {
_0x74196f.writeUint32(this.sample_composition_time_offset[_0x1d941f]);
} else {
_0x74196f.writeInt32(this.sample_composition_time_offset[_0x1d941f]);
}
}
}
};
_0x3bdefc["url Box"].prototype.write = function (_0x1aaf27) {
this.version = 0x0;
if (this.location) {
this.flags = 0x0;
this.size = this.location.length + 0x1;
} else {
this.flags = 0x1;
this.size = 0x0;
}
this.writeHeader(_0x1aaf27);
if (this.location) {
_0x1aaf27.writeCString(this.location);
}
};
_0x3bdefc["urn Box"].prototype.write = function (_0x48dbc8) {
this.version = 0x0;
this.flags = 0x0;
this.size = this.name.length + 0x1 + (this.location ? this.location.length + 0x1 : 0x0);
this.writeHeader(_0x48dbc8);
_0x48dbc8.writeCString(this.name);
if (this.location) {
_0x48dbc8.writeCString(this.location);
}
};
_0x3bdefc.vmhdBox.prototype.write = function (_0x4370d2) {
this.version = 0x0;
this.flags = 0x1;
this.size = 0x8;
this.writeHeader(_0x4370d2);
_0x4370d2.writeUint16(this.graphicsmode);
_0x4370d2.writeUint16Array(this.opcolor);
};
_0x3bdefc.cttsBox.prototype.unpack = function (_0x1666ea) {
var _0x166fc9;
var _0x545320;
var _0x5e8bea;
_0x5e8bea = 0x0;
for (_0x166fc9 = 0x0; _0x166fc9 < this.sample_counts.length; _0x166fc9++) {
for (_0x545320 = 0x0; _0x545320 < this.sample_counts[_0x166fc9]; _0x545320++) {
_0x1666ea[_0x5e8bea].pts = _0x1666ea[_0x5e8bea].dts + this.sample_offsets[_0x166fc9];
_0x5e8bea++;
}
}
};
_0x3bdefc.sttsBox.prototype.unpack = function (_0x1819ff) {
var _0x501706;
var _0x35ea3b;
var _0x125e61;
_0x125e61 = 0x0;
for (_0x501706 = 0x0; _0x501706 < this.sample_counts.length; _0x501706++) {
for (_0x35ea3b = 0x0; _0x35ea3b < this.sample_counts[_0x501706]; _0x35ea3b++) {
_0x1819ff[_0x125e61].dts = 0x0 === _0x125e61 ? 0x0 : _0x1819ff[_0x125e61 - 0x1].dts + this.sample_deltas[_0x501706];
_0x125e61++;
}
}
};
_0x3bdefc.stcoBox.prototype.unpack = function (_0x4e893a) {
var _0x1908ee;
for (_0x1908ee = 0x0; _0x1908ee < this.chunk_offsets.length; _0x1908ee++) {
_0x4e893a[_0x1908ee].offset = this.chunk_offsets[_0x1908ee];
}
};
_0x3bdefc.stscBox.prototype.unpack = function (_0x38f8fb) {
var _0xd3a0c8;
var _0x592749;
var _0x56347d;
var _0x4fbd3b;
var _0x2b6014;
_0x4fbd3b = 0x0;
_0x2b6014 = 0x0;
for (_0xd3a0c8 = 0x0; _0xd3a0c8 < this.first_chunk.length; _0xd3a0c8++) {
for (_0x592749 = 0x0; _0x592749 < (_0xd3a0c8 + 0x1 < this.first_chunk.length ? this.first_chunk[_0xd3a0c8 + 0x1] : Infinity); _0x592749++) {
_0x2b6014++;
for (_0x56347d = 0x0; _0x56347d < this.samples_per_chunk[_0xd3a0c8]; _0x56347d++) {
if (!_0x38f8fb[_0x4fbd3b]) {
return;
}
_0x38f8fb[_0x4fbd3b].description_index = this.sample_description_index[_0xd3a0c8];
_0x38f8fb[_0x4fbd3b].chunk_index = _0x2b6014;
_0x4fbd3b++;
}
}
}
};
_0x3bdefc.stszBox.prototype.unpack = function (_0x56590f) {
var _0x5a1aee;
for (_0x5a1aee = 0x0; _0x5a1aee < this.sample_sizes.length; _0x5a1aee++) {
_0x56590f[_0x5a1aee].size = this.sample_sizes[_0x5a1aee];
}
};
_0x3bdefc.DIFF_BOXES_PROP_NAMES = ['boxes', 'entries', 'references', 'subsamples', 'items', "item_infos", "extents", "associations", "subsegments", "ranges", "seekLists", 'seekPoints', "esd", "levels"];
_0x3bdefc.DIFF_PRIMITIVE_ARRAY_PROP_NAMES = ["compatible_brands", "matrix", "opcolor", "sample_counts", "sample_counts", "sample_deltas", "first_chunk", "samples_per_chunk", "sample_sizes", "chunk_offsets", "sample_offsets", "sample_description_index", "sample_duration"];
_0x3bdefc.boxEqualFields = function (_0x5c2c67, _0x5e9ecb) {
if (_0x5c2c67 && !_0x5e9ecb) {
return false;
}
var _0x44d722;
for (_0x44d722 in _0x5c2c67) if (!(_0x3bdefc.DIFF_BOXES_PROP_NAMES.indexOf(_0x44d722) > -0x1 || _0x5c2c67[_0x44d722] instanceof _0x3bdefc.Box || _0x5e9ecb[_0x44d722] instanceof _0x3bdefc.Box || undefined === _0x5c2c67[_0x44d722] || undefined === _0x5e9ecb[_0x44d722] || 'function' == typeof _0x5c2c67[_0x44d722] || "function" == typeof _0x5e9ecb[_0x44d722] || _0x5c2c67.subBoxNames && _0x5c2c67.subBoxNames.indexOf(_0x44d722.slice(0x0, 0x4)) > -0x1 || _0x5e9ecb.subBoxNames && _0x5e9ecb.subBoxNames.indexOf(_0x44d722.slice(0x0, 0x4)) > -0x1 || "data" === _0x44d722 || "start" === _0x44d722 || 'size' === _0x44d722 || "creation_time" === _0x44d722 || "modification_time" === _0x44d722 || _0x3bdefc.DIFF_PRIMITIVE_ARRAY_PROP_NAMES.indexOf(_0x44d722) > -0x1 || _0x5c2c67[_0x44d722] === _0x5e9ecb[_0x44d722])) {
return false;
}
return true;
};
_0x3bdefc.boxEqual = function (_0x4524b3, _0xc0cd16) {
if (!_0x3bdefc.boxEqualFields(_0x4524b3, _0xc0cd16)) {
return false;
}
for (var _0x469616 = 0x0; _0x469616 < _0x3bdefc.DIFF_BOXES_PROP_NAMES.length; _0x469616++) {
var _0x30ca04 = _0x3bdefc.DIFF_BOXES_PROP_NAMES[_0x469616];
if (_0x4524b3[_0x30ca04] && _0xc0cd16[_0x30ca04] && !_0x3bdefc.boxEqual(_0x4524b3[_0x30ca04], _0xc0cd16[_0x30ca04])) {
return false;
}
}
return true;
};
var _0x500dce = function () {};
_0x500dce.prototype.parseSample = function (_0x708b80) {
var _0xb90461;
var _0x1f159c;
var _0x221351 = new _0x1ed073(_0x708b80.buffer);
for (_0xb90461 = []; !_0x221351.isEos();) {
if ((_0x1f159c = _0x3bdefc.parseOneBox(_0x221351, false)).code === 0x1 && "vttc" === _0x1f159c.box.type) {
_0xb90461.push(_0x1f159c.box);
}
}
return _0xb90461;
};
_0x500dce.prototype.getText = function (_0x48eb38, _0x443f8d, _0x2a342e) {
function _0x2ebcff(_0x185938, _0x42f685, _0x1b05f0) {
_0x1b05f0 = _0x1b05f0 || '0';
return (_0x185938 += '').length >= _0x42f685 ? _0x185938 : new Array(_0x42f685 - _0x185938.length + 0x1).join(_0x1b05f0) + _0x185938;
}
function _0x35a7fa(_0x1d94a2) {
var _0x12fd4d = Math.floor(_0x1d94a2 / 0xe10);
var _0x250ae6 = Math.floor((_0x1d94a2 - 0xe10 * _0x12fd4d) / 0x3c);
var _0x398d78 = Math.floor(_0x1d94a2 - 0xe10 * _0x12fd4d - 0x3c * _0x250ae6);
var _0x2e8fd5 = Math.floor(0x3e8 * (_0x1d94a2 - 0xe10 * _0x12fd4d - 0x3c * _0x250ae6 - _0x398d78));
return _0x2ebcff(_0x12fd4d, 0x2) + ':' + _0x2ebcff(_0x250ae6, 0x2) + ':' + _0x2ebcff(_0x398d78, 0x2) + '.' + _0x2ebcff(_0x2e8fd5, 0x3);
}
var _0x298080 = this.parseSample(_0x2a342e);
var _0x3e7bcb = '';
for (var _0x637aa1 = 0x0; _0x637aa1 < _0x298080.length; _0x637aa1++) {
var _0x778456 = _0x298080[_0x637aa1];
_0x3e7bcb += _0x35a7fa(_0x48eb38) + " --> " + _0x35a7fa(_0x443f8d) + "\r\n";
_0x3e7bcb += _0x778456.payl.text;
}
return _0x3e7bcb;
};
var _0x5c1e00 = function () {};
_0x5c1e00.prototype.parseSample = function (_0x5f07f1) {
var _0x522309 = {
'resources': []
};
var _0x5cb880;
var _0x368df9 = new _0x1ed073(_0x5f07f1.data.buffer);
if (_0x5f07f1.subsamples && 0x0 !== _0x5f07f1.subsamples.length) {
_0x522309.documentString = _0x368df9.readString(_0x5f07f1.subsamples[0x0].size);
if (_0x5f07f1.subsamples.length > 0x1) {
for (_0x5cb880 = 0x1; _0x5cb880 < _0x5f07f1.subsamples.length; _0x5cb880++) {
_0x522309.resources[_0x5cb880] = _0x368df9.readUint8Array(_0x5f07f1.subsamples[_0x5cb880].size);
}
}
} else {
_0x522309.documentString = _0x368df9.readString(_0x5f07f1.data.length);
}
if ("undefined" != typeof DOMParser) {
_0x522309.document = new DOMParser().parseFromString(_0x522309.documentString, "application/xml");
}
return _0x522309;
};
var _0x478783 = function () {};
_0x478783.prototype.parseSample = function (_0x562ec7) {
return new _0x1ed073(_0x562ec7.data.buffer).readString(_0x562ec7.data.length);
};
_0x478783.prototype.parseConfig = function (_0x439f9c) {
var _0x281295 = new _0x1ed073(_0x439f9c.buffer);
_0x281295.readUint32();
return _0x281295.readCString();
};
_0x524be6.XMLSubtitlein4Parser = _0x5c1e00;
_0x524be6.Textin4Parser = _0x478783;
var _0x19d659 = function (_0x587fab) {
this.stream = _0x587fab || new _0x39db91();
this.boxes = [];
this.mdats = [];
this.moofs = [];
this.isProgressive = false;
this.moovStartFound = false;
this.onMoovStart = null;
this.moovStartSent = false;
this.onReady = null;
this.readySent = false;
this.onSegment = null;
this.onSamples = null;
this.onError = null;
this.sampleListBuilt = false;
this.fragmentedTracks = [];
this.extractedTracks = [];
this.isFragmentationInitialized = false;
this.sampleProcessingStarted = false;
this.nextMoofNumber = 0x0;
this.itemListBuilt = false;
this.onSidx = null;
this.sidxSent = false;
};
_0x19d659.prototype.setSegmentOptions = function (_0x31d9e4, _0x5ee9bf, _0x376a02) {
var _0x3a42b5 = this.getTrackById(_0x31d9e4);
if (_0x3a42b5) {
var _0xf05efd = {};
this.fragmentedTracks.push(_0xf05efd);
_0xf05efd.id = _0x31d9e4;
_0xf05efd.user = _0x5ee9bf;
_0xf05efd.trak = _0x3a42b5;
_0x3a42b5.nextSample = 0x0;
_0xf05efd.segmentStream = null;
_0xf05efd.nb_samples = 0x3e8;
_0xf05efd.rapAlignement = true;
if (_0x376a02) {
if (_0x376a02.nbSamples) {
_0xf05efd.nb_samples = _0x376a02.nbSamples;
}
if (_0x376a02.rapAlignement) {
_0xf05efd.rapAlignement = _0x376a02.rapAlignement;
}
}
}
};
_0x19d659.prototype.unsetSegmentOptions = function (_0x324584) {
var _0x30fd6c = -0x1;
for (var _0x40e7b1 = 0x0; _0x40e7b1 < this.fragmentedTracks.length; _0x40e7b1++) {
if (this.fragmentedTracks[_0x40e7b1].id == _0x324584) {
_0x30fd6c = _0x40e7b1;
}
}
if (_0x30fd6c > -0x1) {
this.fragmentedTracks.splice(_0x30fd6c, 0x1);
}
};
_0x19d659.prototype.setExtractionOptions = function (_0x316a65, _0x46fa50, _0x350bce) {
var _0x3c8baa = this.getTrackById(_0x316a65);
if (_0x3c8baa) {
var _0x6fbcff = {};
this.extractedTracks.push(_0x6fbcff);
_0x6fbcff.id = _0x316a65;
_0x6fbcff.user = _0x46fa50;
_0x6fbcff.trak = _0x3c8baa;
_0x3c8baa.nextSample = 0x0;
_0x6fbcff.nb_samples = 0x3e8;
_0x6fbcff.samples = [];
if (_0x350bce && _0x350bce.nbSamples) {
_0x6fbcff.nb_samples = _0x350bce.nbSamples;
}
}
};
_0x19d659.prototype.unsetExtractionOptions = function (_0x49f211) {
var _0x3652b0 = -0x1;
for (var _0x178f64 = 0x0; _0x178f64 < this.extractedTracks.length; _0x178f64++) {
if (this.extractedTracks[_0x178f64].id == _0x49f211) {
_0x3652b0 = _0x178f64;
}
}
if (_0x3652b0 > -0x1) {
this.extractedTracks.splice(_0x3652b0, 0x1);
}
};
_0x19d659.prototype.parse = function () {
var _0x330332;
var _0xba2971;
if (!this.restoreParsePosition || this.restoreParsePosition()) {
for (;;) {
if (this.hasIncompleteMdat && this.hasIncompleteMdat()) {
if (this.processIncompleteMdat()) {
continue;
}
return;
}
if (this.saveParsePosition) {
this.saveParsePosition();
}
if ((_0x330332 = _0x3bdefc.parseOneBox(this.stream, false)).code === 0x0) {
if (this.processIncompleteBox) {
if (this.processIncompleteBox(_0x330332)) {
continue;
}
return;
}
return;
}
var _0x5f4df0;
_0x5f4df0 = "uuid" !== (_0xba2971 = _0x330332.box).type ? _0xba2971.type : _0xba2971.uuid;
this.boxes.push(_0xba2971);
switch (_0x5f4df0) {
case 'mdat':
this.mdats.push(_0xba2971);
break;
case "moof":
this.moofs.push(_0xba2971);
break;
case "moov":
this.moovStartFound = true;
if (0x0 === this.mdats.length) {
this.isProgressive = true;
}
default:
if (undefined !== this[_0x5f4df0]) {
_0xc44760.warn('ISOFile', "Duplicate Box of type: " + _0x5f4df0 + ", overriding previous occurrence");
}
this[_0x5f4df0] = _0xba2971;
}
if (this.updateUsedBytes) {
this.updateUsedBytes(_0xba2971, _0x330332);
}
}
}
};
_0x19d659.prototype.checkBuffer = function (_0x5958ee) {
if (null == _0x5958ee) {
throw "Buffer must be defined and non empty";
}
if (undefined === _0x5958ee.fileStart) {
throw "Buffer must have a fileStart property";
}
return 0x0 === _0x5958ee.byteLength ? (_0xc44760.warn('ISOFile', "Ignoring empty buffer (fileStart: " + _0x5958ee.fileStart + ')'), this.stream.logBufferLevel(), false) : (_0xc44760.info('ISOFile', "Processing buffer (fileStart: " + _0x5958ee.fileStart + ')'), _0x5958ee.usedBytes = 0x0, this.stream.insertBuffer(_0x5958ee), this.stream.logBufferLevel(), !!this.stream.initialized() || (_0xc44760.warn('ISOFile', "Not ready to start parsing"), false));
};
_0x19d659.prototype.appendBuffer = function (_0x481d69, _0x23cc3d) {
var _0x587648;
if (this.checkBuffer(_0x481d69)) {
this.parse();
if (this.moovStartFound && !this.moovStartSent) {
this.moovStartSent = true;
if (this.onMoovStart) {
this.onMoovStart();
}
}
if (this.moov) {
if (!this.sampleListBuilt) {
this.buildSampleLists();
this.sampleListBuilt = true;
}
this.updateSampleLists();
if (this.onReady && !this.readySent) {
this.readySent = true;
this.onReady(this.getInfo());
}
this.processSamples(_0x23cc3d);
if (this.nextSeekPosition) {
_0x587648 = this.nextSeekPosition;
this.nextSeekPosition = undefined;
} else {
_0x587648 = this.nextParsePosition;
}
if (this.stream.getEndFilePositionAfter) {
_0x587648 = this.stream.getEndFilePositionAfter(_0x587648);
}
} else {
_0x587648 = this.nextParsePosition ? this.nextParsePosition : 0x0;
}
if (this.sidx && this.onSidx && !this.sidxSent) {
this.onSidx(this.sidx);
this.sidxSent = true;
}
if (this.meta) {
if (this.flattenItemInfo && !this.itemListBuilt) {
this.flattenItemInfo();
this.itemListBuilt = true;
}
if (this.processItems) {
this.processItems(this.onItem);
}
}
if (this.stream.cleanBuffers) {
_0xc44760.info("ISOFile", "Done processing buffer (fileStart: " + _0x481d69.fileStart + ") - next buffer to fetch should have a fileStart position of " + _0x587648);
this.stream.logBufferLevel();
this.stream.cleanBuffers();
this.stream.logBufferLevel(true);
_0xc44760.info('ISOFile', "Sample data size in memory: " + this.getAllocatedSampleDataSize());
}
return _0x587648;
}
};
_0x19d659.prototype.getInfo = function () {
var _0x21dd8c;
var _0x16cb24;
var _0x52dace;
var _0x23872f;
var _0x99b4eb;
var _0x86ed7e;
var _0x2e0f9c = {};
var _0x2a2f88 = new Date("1904-01-01T00:00:00Z").getTime();
if (this.moov) {
_0x2e0f9c.hasMoov = true;
_0x2e0f9c.duration = this.moov.mvhd.duration;
_0x2e0f9c.timescale = this.moov.mvhd.timescale;
_0x2e0f9c.isFragmented = null != this.moov.mvex;
if (_0x2e0f9c.isFragmented && this.moov.mvex.mehd) {
_0x2e0f9c.fragment_duration = this.moov.mvex.mehd.fragment_duration;
}
_0x2e0f9c.isProgressive = this.isProgressive;
_0x2e0f9c.hasIOD = null != this.moov.iods;
_0x2e0f9c.brands = [];
_0x2e0f9c.brands.push(this.ftyp.major_brand);
_0x2e0f9c.brands = _0x2e0f9c.brands.concat(this.ftyp.compatible_brands);
_0x2e0f9c.created = new Date(_0x2a2f88 + 0x3e8 * this.moov.mvhd.creation_time);
_0x2e0f9c.modified = new Date(_0x2a2f88 + 0x3e8 * this.moov.mvhd.modification_time);
_0x2e0f9c.tracks = [];
_0x2e0f9c.audioTracks = [];
_0x2e0f9c.videoTracks = [];
_0x2e0f9c.subtitleTracks = [];
_0x2e0f9c.metadataTracks = [];
_0x2e0f9c.hintTracks = [];
_0x2e0f9c.otherTracks = [];
for (_0x21dd8c = 0x0; _0x21dd8c < this.moov.traks.length; _0x21dd8c++) {
_0x86ed7e = (_0x52dace = this.moov.traks[_0x21dd8c]).mdia.minf.stbl.stsd.entries[0x0];
_0x23872f = {};
_0x2e0f9c.tracks.push(_0x23872f);
_0x23872f.id = _0x52dace.tkhd.track_id;
_0x23872f.name = _0x52dace.mdia.hdlr.name;
_0x23872f.references = [];
if (_0x52dace.tref) {
for (_0x16cb24 = 0x0; _0x16cb24 < _0x52dace.tref.boxes.length; _0x16cb24++) {
_0x99b4eb = {};
_0x23872f.references.push(_0x99b4eb);
_0x99b4eb.type = _0x52dace.tref.boxes[_0x16cb24].type;
_0x99b4eb.track_ids = _0x52dace.tref.boxes[_0x16cb24].track_ids;
}
}
var _0x1ddf2b = {
"schemeURI": '',
"value": ''
};
if (_0x52dace.edts) {
_0x23872f.edits = _0x52dace.edts.elst.entries;
}
_0x23872f.created = new Date(_0x2a2f88 + 0x3e8 * _0x52dace.tkhd.creation_time);
_0x23872f.modified = new Date(_0x2a2f88 + 0x3e8 * _0x52dace.tkhd.modification_time);
_0x23872f.movie_duration = _0x52dace.tkhd.duration;
_0x23872f.movie_timescale = _0x2e0f9c.timescale;
_0x23872f.layer = _0x52dace.tkhd.layer;
_0x23872f.alternate_group = _0x52dace.tkhd.alternate_group;
_0x23872f.volume = _0x52dace.tkhd.volume;
_0x23872f.matrix = _0x52dace.tkhd.matrix;
_0x23872f.track_width = _0x52dace.tkhd.width / 0x10000;
_0x23872f.track_height = _0x52dace.tkhd.height / 0x10000;
_0x23872f.timescale = _0x52dace.mdia.mdhd.timescale;
_0x23872f.cts_shift = _0x52dace.mdia.minf.stbl.cslg;
_0x23872f.duration = _0x52dace.mdia.mdhd.duration;
_0x23872f.samples_duration = _0x52dace.samples_duration;
_0x23872f.codec = _0x86ed7e.getCodec();
_0x23872f.kind = _0x52dace.udta && _0x52dace.udta.kinds.length ? _0x52dace.udta.kinds[0x0] : _0x1ddf2b;
_0x23872f.language = _0x52dace.mdia.elng ? _0x52dace.mdia.elng.extended_language : _0x52dace.mdia.mdhd.languageString;
_0x23872f.nb_samples = _0x52dace.samples.length;
_0x23872f.size = _0x52dace.samples_size;
_0x23872f.bitrate = 0x8 * _0x23872f.size * _0x23872f.timescale / _0x23872f.samples_duration;
if (_0x86ed7e.isAudio()) {
_0x23872f.type = "audio";
_0x2e0f9c.audioTracks.push(_0x23872f);
_0x23872f.audio = {};
_0x23872f.audio.sample_rate = _0x86ed7e.getSampleRate();
_0x23872f.audio.channel_count = _0x86ed7e.getChannelCount();
_0x23872f.audio.sample_size = _0x86ed7e.getSampleSize();
} else if (_0x86ed7e.isVideo()) {
_0x23872f.type = "video";
_0x2e0f9c.videoTracks.push(_0x23872f);
_0x23872f.video = {};
_0x23872f.video.width = _0x86ed7e.getWidth();
_0x23872f.video.height = _0x86ed7e.getHeight();
} else if (_0x86ed7e.isSubtitle()) {
_0x23872f.type = 'subtitles';
_0x2e0f9c.subtitleTracks.push(_0x23872f);
} else if (_0x86ed7e.isHint()) {
_0x23872f.type = "metadata";
_0x2e0f9c.hintTracks.push(_0x23872f);
} else if (_0x86ed7e.isMetadata()) {
_0x23872f.type = 'metadata';
_0x2e0f9c.metadataTracks.push(_0x23872f);
} else {
_0x23872f.type = "metadata";
_0x2e0f9c.otherTracks.push(_0x23872f);
}
}
} else {
_0x2e0f9c.hasMoov = false;
}
_0x2e0f9c.mime = '';
if (_0x2e0f9c.hasMoov && _0x2e0f9c.tracks) {
if (_0x2e0f9c.videoTracks && _0x2e0f9c.videoTracks.length > 0x0) {
_0x2e0f9c.mime += "video/mp4; codecs=\"";
} else if (_0x2e0f9c.audioTracks && _0x2e0f9c.audioTracks.length > 0x0) {
_0x2e0f9c.mime += "audio/mp4; codecs=\"";
} else {
_0x2e0f9c.mime += "application/mp4; codecs=\"";
}
for (_0x21dd8c = 0x0; _0x21dd8c < _0x2e0f9c.tracks.length; _0x21dd8c++) {
if (0x0 !== _0x21dd8c) {
_0x2e0f9c.mime += ',';
}
_0x2e0f9c.mime += _0x2e0f9c.tracks[_0x21dd8c].codec;
}
_0x2e0f9c.mime += "\"; profiles=\"";
_0x2e0f9c.mime += this.ftyp.compatible_brands.join();
_0x2e0f9c.mime += "\"";
}
return _0x2e0f9c;
};
_0x19d659.prototype.processSamples = function (_0x5caf04) {
var _0x35c76f;
var _0x18c89c;
if (this.sampleProcessingStarted) {
if (this.isFragmentationInitialized && null !== this.onSegment) {
for (_0x35c76f = 0x0; _0x35c76f < this.fragmentedTracks.length; _0x35c76f++) {
var _0x319379 = this.fragmentedTracks[_0x35c76f];
for (_0x18c89c = _0x319379.trak; _0x18c89c.nextSample < _0x18c89c.samples.length && this.sampleProcessingStarted;) {
_0xc44760.debug("ISOFile", "Creating media fragment on track #" + _0x319379.id + " for sample " + _0x18c89c.nextSample);
var _0x32c368 = this.createFragment(_0x319379.id, _0x18c89c.nextSample, _0x319379.segmentStream);
if (!_0x32c368) {
break;
}
_0x319379.segmentStream = _0x32c368;
_0x18c89c.nextSample++;
if ((_0x18c89c.nextSample % _0x319379.nb_samples == 0x0 || _0x5caf04 || _0x18c89c.nextSample >= _0x18c89c.samples.length) && (_0xc44760.info("ISOFile", "Sending fragmented data on track #" + _0x319379.id + " for samples [" + Math.max(0x0, _0x18c89c.nextSample - _0x319379.nb_samples) + ',' + (_0x18c89c.nextSample - 0x1) + ']'), _0xc44760.info("ISOFile", "Sample data size in memory: " + this.getAllocatedSampleDataSize()), this.onSegment && this.onSegment(_0x319379.id, _0x319379.user, _0x319379.segmentStream.buffer, _0x18c89c.nextSample, _0x5caf04 || _0x18c89c.nextSample >= _0x18c89c.samples.length), _0x319379.segmentStream = null, _0x319379 !== this.fragmentedTracks[_0x35c76f])) {
break;
}
}
}
}
if (null !== this.onSamples) {
for (_0x35c76f = 0x0; _0x35c76f < this.extractedTracks.length; _0x35c76f++) {
var _0x41506c = this.extractedTracks[_0x35c76f];
for (_0x18c89c = _0x41506c.trak; _0x18c89c.nextSample < _0x18c89c.samples.length && this.sampleProcessingStarted;) {
_0xc44760.debug("ISOFile", "Exporting on track #" + _0x41506c.id + " sample #" + _0x18c89c.nextSample);
var _0x290c48 = this.getSample(_0x18c89c, _0x18c89c.nextSample);
if (!_0x290c48) {
break;
}
_0x18c89c.nextSample++;
_0x41506c.samples.push(_0x290c48);
if ((_0x18c89c.nextSample % _0x41506c.nb_samples == 0x0 || _0x18c89c.nextSample >= _0x18c89c.samples.length) && (_0xc44760.debug("ISOFile", "Sending samples on track #" + _0x41506c.id + " for sample " + _0x18c89c.nextSample), this.onSamples && this.onSamples(_0x41506c.id, _0x41506c.user, _0x41506c.samples), _0x41506c.samples = [], _0x41506c !== this.extractedTracks[_0x35c76f])) {
break;
}
}
}
}
}
};
_0x19d659.prototype.getBox = function (_0x5d949f) {
var _0x13d10c = this.getBoxes(_0x5d949f, true);
return _0x13d10c.length ? _0x13d10c[0x0] : null;
};
_0x19d659.prototype.getBoxes = function (_0x485ec2, _0x1671b9) {
var _0x58a72f = [];
_0x19d659._sweep.call(this, _0x485ec2, _0x58a72f, _0x1671b9);
return _0x58a72f;
};
_0x19d659._sweep = function (_0x1082b7, _0x337df6, _0x18d5b7) {
if (this.type && this.type == _0x1082b7) {
_0x337df6.push(this);
}
for (var _0x5af2a5 in this.boxes) {
if (_0x337df6.length && _0x18d5b7) {
return;
}
_0x19d659._sweep.call(this.boxes[_0x5af2a5], _0x1082b7, _0x337df6, _0x18d5b7);
}
};
_0x19d659.prototype.getTrackSamplesInfo = function (_0x18c845) {
var _0x5e637f = this.getTrackById(_0x18c845);
return _0x5e637f ? _0x5e637f.samples : undefined;
};
_0x19d659.prototype.getTrackSample = function (_0x386659, _0x2b601a) {
var _0x35c345 = this.getTrackById(_0x386659);
return this.getSample(_0x35c345, _0x2b601a);
};
_0x19d659.prototype.releaseUsedSamples = function (_0x14b54a, _0x288088) {
var _0x215f7c = 0x0;
var _0x2bb166 = this.getTrackById(_0x14b54a);
if (!_0x2bb166.lastValidSample) {
_0x2bb166.lastValidSample = 0x0;
}
for (var _0x35ae4f = _0x2bb166.lastValidSample; _0x35ae4f < _0x288088; _0x35ae4f++) {
_0x215f7c += this.releaseSample(_0x2bb166, _0x35ae4f);
}
_0xc44760.info('ISOFile', "Track #" + _0x14b54a + " released samples up to " + _0x288088 + " (released size: " + _0x215f7c + ", remaining: " + this.samplesDataSize + ')');
_0x2bb166.lastValidSample = _0x288088;
};
_0x19d659.prototype.start = function () {
this.sampleProcessingStarted = true;
this.processSamples(false);
};
_0x19d659.prototype.stop = function () {
this.sampleProcessingStarted = false;
};
_0x19d659.prototype.flush = function () {
_0xc44760.info('ISOFile', "Flushing remaining samples");
this.updateSampleLists();
this.processSamples(true);
this.stream.cleanBuffers();
this.stream.logBufferLevel(true);
};
_0x19d659.prototype.seekTrack = function (_0xe504a5, _0x3429e4, _0x20c4d0) {
var _0x274984;
var _0x339d07;
var _0x39b15c;
var _0xb6be19;
var _0x8206fa = 0x0;
var _0x28b369 = 0x0;
var _0x402a8f = {
"offset": 0x0,
"time": 0x0
};
if (0x0 === _0x20c4d0.samples.length) {
_0xc44760.info("ISOFile", "No sample in track, cannot seek! Using time " + _0xc44760.getDurationString(0x0, 0x1) + " and offset: 0");
return _0x402a8f;
}
for (_0x274984 = 0x0; _0x274984 < _0x20c4d0.samples.length; _0x274984++) {
_0x339d07 = _0x20c4d0.samples[_0x274984];
if (0x0 === _0x274984) {
_0x28b369 = 0x0;
_0xb6be19 = _0x339d07.timescale;
} else {
if (_0x339d07.cts > _0xe504a5 * _0x339d07.timescale) {
_0x28b369 = _0x274984 - 0x1;
break;
}
}
if (_0x3429e4 && _0x339d07.is_sync) {
_0x8206fa = _0x274984;
}
}
if (_0x3429e4) {
_0x28b369 = _0x8206fa;
}
_0xe504a5 = _0x20c4d0.samples[_0x28b369].cts;
for (_0x20c4d0.nextSample = _0x28b369; _0x20c4d0.samples[_0x28b369].alreadyRead === _0x20c4d0.samples[_0x28b369].size && _0x20c4d0.samples[_0x28b369 + 0x1];) {
_0x28b369++;
}
_0x39b15c = _0x20c4d0.samples[_0x28b369].offset + _0x20c4d0.samples[_0x28b369].alreadyRead;
_0xc44760.info("ISOFile", "Seeking to " + (_0x3429e4 ? "RAP" : '') + " sample #" + _0x20c4d0.nextSample + " on track " + _0x20c4d0.tkhd.track_id + ", time " + _0xc44760.getDurationString(_0xe504a5, _0xb6be19) + " and offset: " + _0x39b15c);
return {
'offset': _0x39b15c,
'time': _0xe504a5 / _0xb6be19
};
};
_0x19d659.prototype.seek = function (_0x56f3c0, _0x2b2b38) {
var _0x717fa0 = {
"offset": Infinity,
"time": Infinity
};
var _0x354b56;
var _0xb449e3;
var _0x215c54;
var _0x121a18 = this.moov;
var _0x4b2785 = _0x717fa0;
if (this.moov) {
for (_0x215c54 = 0x0; _0x215c54 < _0x121a18.traks.length; _0x215c54++) {
_0x354b56 = _0x121a18.traks[_0x215c54];
if ((_0xb449e3 = this.seekTrack(_0x56f3c0, _0x2b2b38, _0x354b56)).offset < _0x4b2785.offset) {
_0x4b2785.offset = _0xb449e3.offset;
}
if (_0xb449e3.time < _0x4b2785.time) {
_0x4b2785.time = _0xb449e3.time;
}
}
var _0x3912a3 = {
offset: this.nextParsePosition,
time: 0x0
};
_0xc44760.info("ISOFile", "Seeking at time " + _0xc44760.getDurationString(_0x4b2785.time, 0x1) + " needs a buffer with a fileStart position of " + _0x4b2785.offset);
if (_0x4b2785.offset === Infinity) {
_0x4b2785 = _0x3912a3;
} else {
_0x4b2785.offset = this.stream.getEndFilePositionAfter(_0x4b2785.offset);
}
_0xc44760.info("ISOFile", "Adjusted seek position (after checking data already in buffer): " + _0x4b2785.offset);
return _0x4b2785;
}
throw "Cannot seek: moov not received!";
};
_0x19d659.prototype.equal = function (_0x3a8d81) {
for (var _0x18bea7 = 0x0; _0x18bea7 < this.boxes.length && _0x18bea7 < _0x3a8d81.boxes.length;) {
var _0x52ff84 = this.boxes[_0x18bea7];
var _0x3d5241 = _0x3a8d81.boxes[_0x18bea7];
if (!_0x3bdefc.boxEqual(_0x52ff84, _0x3d5241)) {
return false;
}
_0x18bea7++;
}
return true;
};
_0x524be6.ISOFile = _0x19d659;
_0x19d659.prototype.lastBoxStartPosition = 0x0;
_0x19d659.prototype.parsingMdat = null;
_0x19d659.prototype.nextParsePosition = 0x0;
_0x19d659.prototype.discardMdatData = false;
_0x19d659.prototype.processIncompleteBox = function (_0x26c2c4) {
var _0x5e5480;
return "mdat" === _0x26c2c4.type ? (_0x5e5480 = new _0x3bdefc[_0x26c2c4.type + 'Box'](_0x26c2c4.size), this.parsingMdat = _0x5e5480, this.boxes.push(_0x5e5480), this.mdats.push(_0x5e5480), _0x5e5480.start = _0x26c2c4.start, _0x5e5480.hdr_size = _0x26c2c4.hdr_size, this.stream.addUsedBytes(_0x5e5480.hdr_size), this.lastBoxStartPosition = _0x5e5480.start + _0x5e5480.size, this.stream.seek(_0x5e5480.start + _0x5e5480.size, false, this.discardMdatData) ? (this.parsingMdat = null, true) : (this.moovStartFound ? this.nextParsePosition = this.stream.findEndContiguousBuf() : this.nextParsePosition = _0x5e5480.start + _0x5e5480.size, false)) : ("moov" === _0x26c2c4.type && (this.moovStartFound = true, 0x0 === this.mdats.length && (this.isProgressive = true)), this.stream.mergeNextBuffer && this.stream.mergeNextBuffer() ? (this.nextParsePosition = this.stream.getEndPosition(), true) : (_0x26c2c4.type ? this.moovStartFound ? this.nextParsePosition = this.stream.getEndPosition() : this.nextParsePosition = this.stream.getPosition() + _0x26c2c4.size : this.nextParsePosition = this.stream.getEndPosition(), false));
};
_0x19d659.prototype.hasIncompleteMdat = function () {
return null !== this.parsingMdat;
};
_0x19d659.prototype.processIncompleteMdat = function () {
var _0x13b6a3;
_0x13b6a3 = this.parsingMdat;
return this.stream.seek(_0x13b6a3.start + _0x13b6a3.size, false, this.discardMdatData) ? (_0xc44760.debug("ISOFile", "Found 'mdat' end in buffered data"), this.parsingMdat = null, true) : (this.nextParsePosition = this.stream.findEndContiguousBuf(), false);
};
_0x19d659.prototype.restoreParsePosition = function () {
return this.stream.seek(this.lastBoxStartPosition, true, this.discardMdatData);
};
_0x19d659.prototype.saveParsePosition = function () {
this.lastBoxStartPosition = this.stream.getPosition();
};
_0x19d659.prototype.updateUsedBytes = function (_0x1b29d2, _0x4397ae) {
if (this.stream.addUsedBytes) {
if ('mdat' === _0x1b29d2.type) {
this.stream.addUsedBytes(_0x1b29d2.hdr_size);
if (this.discardMdatData) {
this.stream.addUsedBytes(_0x1b29d2.size - _0x1b29d2.hdr_size);
}
} else {
this.stream.addUsedBytes(_0x1b29d2.size);
}
}
};
_0x19d659.prototype.add = _0x3bdefc.Box.prototype.add;
_0x19d659.prototype.addBox = _0x3bdefc.Box.prototype.addBox;
_0x19d659.prototype.init = function (_0x295edf) {
var _0x2f480f = _0x295edf || {};
this.add("ftyp").set("major_brand", _0x2f480f.brands && _0x2f480f.brands[0x0] || "iso4").set("minor_version", 0x0).set("compatible_brands", _0x2f480f.brands || ["iso4"]);
var _0x86ee00 = this.add("moov");
_0x86ee00.add("mvhd").set('timescale', _0x2f480f.timescale || 0x258).set("rate", _0x2f480f.rate || 0x10000).set("creation_time", 0x0).set("modification_time", 0x0).set("duration", _0x2f480f.duration || 0x0).set("volume", _0x2f480f.width ? 0x0 : 0x100).set("matrix", [0x10000, 0x0, 0x0, 0x0, 0x10000, 0x0, 0x0, 0x0, 0x40000000]).set("next_track_id", 0x1);
_0x86ee00.add("mvex");
return this;
};
_0x19d659.prototype.addTrack = function (_0x703022) {
if (!this.moov) {
this.init(_0x703022);
}
var _0x478ec3 = _0x703022 || {};
_0x478ec3.width = _0x478ec3.width || 0x140;
_0x478ec3.height = _0x478ec3.height || 0x140;
_0x478ec3.id = _0x478ec3.id || this.moov.mvhd.next_track_id;
_0x478ec3.type = _0x478ec3.type || "avc1";
var _0x417042 = this.moov.add("trak");
this.moov.mvhd.next_track_id = _0x478ec3.id + 0x1;
_0x417042.add("tkhd").set("flags", _0x3bdefc.TKHD_FLAG_ENABLED | _0x3bdefc.TKHD_FLAG_IN_MOVIE | _0x3bdefc.TKHD_FLAG_IN_PREVIEW).set("creation_time", 0x0).set("modification_time", 0x0).set("track_id", _0x478ec3.id).set("duration", _0x478ec3.duration || 0x0).set("layer", _0x478ec3.layer || 0x0).set("alternate_group", 0x0).set('volume', 0x1).set("matrix", [0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]).set("width", _0x478ec3.width << 0x10).set('height', _0x478ec3.height << 0x10);
var _0x2240fd = _0x417042.add("mdia");
_0x2240fd.add("mdhd").set("creation_time", 0x0).set("modification_time", 0x0).set("timescale", _0x478ec3.timescale || 0x1).set('duration', _0x478ec3.media_duration || 0x0).set("language", _0x478ec3.language || "und");
_0x2240fd.add("hdlr").set("handler", _0x478ec3.hdlr || "vide").set('name', _0x478ec3.name || "Track created with MP4Box.js");
_0x2240fd.add("elng").set("extended_language", _0x478ec3.language || "fr-FR");
var _0x1cf13c = _0x2240fd.add("minf");
if (undefined !== _0x3bdefc[_0x478ec3.type + "SampleEntry"]) {
var _0x441c87 = new _0x3bdefc[_0x478ec3.type + "SampleEntry"]();
_0x441c87.data_reference_index = 0x1;
var _0x50552d = '';
for (var _0x4957b5 in _0x3bdefc.sampleEntryCodes) {
var _0x31d6e9 = _0x3bdefc.sampleEntryCodes[_0x4957b5];
for (var _0xf9f2c1 = 0x0; _0xf9f2c1 < _0x31d6e9.length; _0xf9f2c1++) {
if (_0x31d6e9.indexOf(_0x478ec3.type) > -0x1) {
_0x50552d = _0x4957b5;
break;
}
}
}
switch (_0x50552d) {
case "Visual":
_0x1cf13c.add("vmhd").set("graphicsmode", 0x0).set("opcolor", [0x0, 0x0, 0x0]);
_0x441c87.set('width', _0x478ec3.width).set("height", _0x478ec3.height).set("horizresolution", 4718592).set("vertresolution", 4718592).set("frame_count", 0x1).set("compressorname", _0x478ec3.type + " Compressor").set("depth", 0x18);
if (_0x478ec3.avcDecoderConfigRecord) {
var _0x3a7c44 = new _0x3bdefc.avcCBox();
var _0x282a5b = new _0x1ed073(_0x478ec3.avcDecoderConfigRecord);
_0x3a7c44.parse(_0x282a5b);
_0x441c87.addBox(_0x3a7c44);
}
break;
case "Audio":
_0x1cf13c.add("smhd").set('balance', _0x478ec3.balance || 0x0);
_0x441c87.set("channel_count", _0x478ec3.channel_count || 0x2).set('samplesize', _0x478ec3.samplesize || 0x10).set("samplerate", _0x478ec3.samplerate || 0x10000);
break;
case "Hint":
_0x1cf13c.add('hmhd');
break;
case "Subtitle":
_0x1cf13c.add('sthd');
if ("stpp" === _0x478ec3.type) {
_0x441c87.set('namespace', _0x478ec3.namespace || "nonamespace").set("schema_location", _0x478ec3.schema_location || '').set("auxiliary_mime_types", _0x478ec3.auxiliary_mime_types || '');
}
break;
default:
_0x1cf13c.add("nmhd");
}
if (_0x478ec3.description) {
_0x441c87.addBox(_0x478ec3.description);
}
if (_0x478ec3.description_boxes) {
_0x478ec3.description_boxes.forEach(function (_0x19a6c4) {
_0x441c87.addBox(_0x19a6c4);
});
}
_0x1cf13c.add("dinf").add("dref").addEntry(new _0x3bdefc["url Box"]().set('flags', 0x1));
var _0x40aaf3 = _0x1cf13c.add("stbl");
_0x40aaf3.add("stsd").addEntry(_0x441c87);
_0x40aaf3.add("stts").set("sample_counts", []).set("sample_deltas", []);
_0x40aaf3.add("stsc").set("first_chunk", []).set("samples_per_chunk", []).set("sample_description_index", []);
_0x40aaf3.add('stco').set("chunk_offsets", []);
_0x40aaf3.add("stsz").set("sample_sizes", []);
this.moov.mvex.add('trex').set("track_id", _0x478ec3.id).set("default_sample_description_index", _0x478ec3.default_sample_description_index || 0x1).set("default_sample_duration", _0x478ec3.default_sample_duration || 0x0).set("default_sample_size", _0x478ec3.default_sample_size || 0x0).set("default_sample_flags", _0x478ec3.default_sample_flags || 0x0);
this.buildTrakSampleLists(_0x417042);
return _0x478ec3.id;
}
};
_0x3bdefc.Box.prototype.computeSize = function (_0x3b1ae1) {
var _0x283f39 = _0x3b1ae1 || new _0x325146();
_0x283f39.endianness = _0x325146.BIG_ENDIAN;
this.write(_0x283f39);
};
_0x19d659.prototype.addSample = function (_0x36bc65, _0x51ae01, _0x39caa1) {
var _0x90639c = _0x39caa1 || {};
var _0x2bced3 = {};
var _0x221e15 = this.getTrackById(_0x36bc65);
if (null !== _0x221e15) {
_0x2bced3.number = _0x221e15.samples.length;
_0x2bced3.track_id = _0x221e15.tkhd.track_id;
_0x2bced3.timescale = _0x221e15.mdia.mdhd.timescale;
_0x2bced3.description_index = _0x90639c.sample_description_index ? _0x90639c.sample_description_index - 0x1 : 0x0;
_0x2bced3.description = _0x221e15.mdia.minf.stbl.stsd.entries[_0x2bced3.description_index];
_0x2bced3.data = _0x51ae01;
_0x2bced3.size = _0x51ae01.byteLength;
_0x2bced3.alreadyRead = _0x2bced3.size;
_0x2bced3.duration = _0x90639c.duration || 0x1;
_0x2bced3.cts = _0x90639c.cts || 0x0;
_0x2bced3.dts = _0x90639c.dts || 0x0;
_0x2bced3.is_sync = _0x90639c.is_sync || false;
_0x2bced3.is_leading = _0x90639c.is_leading || 0x0;
_0x2bced3.depends_on = _0x90639c.depends_on || 0x0;
_0x2bced3.is_depended_on = _0x90639c.is_depended_on || 0x0;
_0x2bced3.has_redundancy = _0x90639c.has_redundancy || 0x0;
_0x2bced3.degradation_priority = _0x90639c.degradation_priority || 0x0;
_0x2bced3.offset = 0x0;
_0x2bced3.subsamples = _0x90639c.subsamples;
_0x221e15.samples.push(_0x2bced3);
_0x221e15.samples_size += _0x2bced3.size;
_0x221e15.samples_duration += _0x2bced3.duration;
if (!_0x221e15.first_dts) {
_0x221e15.first_dts = _0x90639c.dts;
}
this.processSamples();
var _0x544fbb = this.createSingleSampleMoof(_0x2bced3);
this.addBox(_0x544fbb);
_0x544fbb.computeSize();
_0x544fbb.trafs[0x0].truns[0x0].data_offset = _0x544fbb.size + 0x8;
this.add("mdat").data = new Uint8Array(_0x51ae01);
return _0x2bced3;
}
};
_0x19d659.prototype.createSingleSampleMoof = function (_0x1ae606) {
var _0x22d755;
_0x22d755 = _0x1ae606.is_sync ? 33554432 : 0x10000;
var _0x2218ab = new _0x3bdefc.moofBox();
_0x2218ab.add('mfhd').set("sequence_number", this.nextMoofNumber);
this.nextMoofNumber++;
var _0x10c9e0 = _0x2218ab.add("traf");
var _0x48a600 = this.getTrackById(_0x1ae606.track_id);
_0x10c9e0.add("tfhd").set("track_id", _0x1ae606.track_id).set("flags", _0x3bdefc.TFHD_FLAG_DEFAULT_BASE_IS_MOOF);
_0x10c9e0.add("tfdt").set("baseMediaDecodeTime", _0x1ae606.dts - (_0x48a600.first_dts || 0x0));
_0x10c9e0.add("trun").set("flags", _0x3bdefc.TRUN_FLAGS_DATA_OFFSET | _0x3bdefc.TRUN_FLAGS_DURATION | _0x3bdefc.TRUN_FLAGS_SIZE | _0x3bdefc.TRUN_FLAGS_FLAGS | _0x3bdefc.TRUN_FLAGS_CTS_OFFSET).set("data_offset", 0x0).set("first_sample_flags", 0x0).set("sample_count", 0x1).set("sample_duration", [_0x1ae606.duration]).set("sample_size", [_0x1ae606.size]).set("sample_flags", [_0x22d755]).set("sample_composition_time_offset", [_0x1ae606.cts - _0x1ae606.dts]);
return _0x2218ab;
};
_0x19d659.prototype.lastMoofIndex = 0x0;
_0x19d659.prototype.samplesDataSize = 0x0;
_0x19d659.prototype.resetTables = function () {
var _0x5278dd;
var _0x392780;
var _0x13e32e;
var _0x27f9bb;
var _0x5482e7;
var _0x283e0b;
this.initial_duration = this.moov.mvhd.duration;
this.moov.mvhd.duration = 0x0;
for (_0x5278dd = 0x0; _0x5278dd < this.moov.traks.length; _0x5278dd++) {
(_0x392780 = this.moov.traks[_0x5278dd]).tkhd.duration = 0x0;
_0x392780.mdia.mdhd.duration = 0x0;
(_0x392780.mdia.minf.stbl.stco || _0x392780.mdia.minf.stbl.co64).chunk_offsets = [];
(_0x13e32e = _0x392780.mdia.minf.stbl.stsc).first_chunk = [];
_0x13e32e.samples_per_chunk = [];
_0x13e32e.sample_description_index = [];
(_0x392780.mdia.minf.stbl.stsz || _0x392780.mdia.minf.stbl.stz2).sample_sizes = [];
(_0x27f9bb = _0x392780.mdia.minf.stbl.stts).sample_counts = [];
_0x27f9bb.sample_deltas = [];
if (_0x5482e7 = _0x392780.mdia.minf.stbl.ctts) {
_0x5482e7.sample_counts = [];
_0x5482e7.sample_offsets = [];
}
_0x283e0b = _0x392780.mdia.minf.stbl.stss;
var _0x2e567d = _0x392780.mdia.minf.stbl.boxes.indexOf(_0x283e0b);
if (-0x1 != _0x2e567d) {
_0x392780.mdia.minf.stbl.boxes[_0x2e567d] = null;
}
}
};
_0x19d659.initSampleGroups = function (_0x1f739a, _0x9852cf, _0x511303, _0x1404f7, _0x50dc26) {
var _0x2fa805;
var _0x2a51e7;
var _0x370b95;
var _0x3bc642;
function _0x436451(_0x20d59c, _0x1dca23, _0x34ce58) {
this.grouping_type = _0x20d59c;
this.grouping_type_parameter = _0x1dca23;
this.sbgp = _0x34ce58;
this.last_sample_in_run = -0x1;
this.entry_index = -0x1;
}
if (_0x9852cf) {
_0x9852cf.sample_groups_info = [];
}
if (!_0x1f739a.sample_groups_info) {
_0x1f739a.sample_groups_info = [];
}
for (_0x2a51e7 = 0x0; _0x2a51e7 < _0x511303.length; _0x2a51e7++) {
_0x3bc642 = _0x511303[_0x2a51e7].grouping_type + '/' + _0x511303[_0x2a51e7].grouping_type_parameter;
_0x370b95 = new _0x436451(_0x511303[_0x2a51e7].grouping_type, _0x511303[_0x2a51e7].grouping_type_parameter, _0x511303[_0x2a51e7]);
if (_0x9852cf) {
_0x9852cf.sample_groups_info[_0x3bc642] = _0x370b95;
}
if (!_0x1f739a.sample_groups_info[_0x3bc642]) {
_0x1f739a.sample_groups_info[_0x3bc642] = _0x370b95;
}
for (_0x2fa805 = 0x0; _0x2fa805 < _0x1404f7.length; _0x2fa805++) {
if (_0x1404f7[_0x2fa805].grouping_type === _0x511303[_0x2a51e7].grouping_type) {
_0x370b95.description = _0x1404f7[_0x2fa805];
_0x370b95.description.used = true;
}
}
if (_0x50dc26) {
for (_0x2fa805 = 0x0; _0x2fa805 < _0x50dc26.length; _0x2fa805++) {
if (_0x50dc26[_0x2fa805].grouping_type === _0x511303[_0x2a51e7].grouping_type) {
_0x370b95.fragment_description = _0x50dc26[_0x2fa805];
_0x370b95.fragment_description.used = true;
_0x370b95.is_fragment = true;
}
}
}
}
if (_0x9852cf) {
if (_0x50dc26) {
for (_0x2a51e7 = 0x0; _0x2a51e7 < _0x50dc26.length; _0x2a51e7++) {
if (!_0x50dc26[_0x2a51e7].used && _0x50dc26[_0x2a51e7].version >= 0x2) {
_0x3bc642 = _0x50dc26[_0x2a51e7].grouping_type + '/0';
(_0x370b95 = new _0x436451(_0x50dc26[_0x2a51e7].grouping_type, 0x0)).is_fragment = true;
if (!_0x9852cf.sample_groups_info[_0x3bc642]) {
_0x9852cf.sample_groups_info[_0x3bc642] = _0x370b95;
}
}
}
}
} else {
for (_0x2a51e7 = 0x0; _0x2a51e7 < _0x1404f7.length; _0x2a51e7++) {
if (!_0x1404f7[_0x2a51e7].used && _0x1404f7[_0x2a51e7].version >= 0x2) {
_0x3bc642 = _0x1404f7[_0x2a51e7].grouping_type + '/0';
_0x370b95 = new _0x436451(_0x1404f7[_0x2a51e7].grouping_type, 0x0);
if (!_0x1f739a.sample_groups_info[_0x3bc642]) {
_0x1f739a.sample_groups_info[_0x3bc642] = _0x370b95;
}
}
}
}
};
_0x19d659.setSampleGroupProperties = function (_0x3e4738, _0x103c4f, _0x57a273, _0x46ecf6) {
var _0xc8f4c4;
var _0x3d2805;
_0x103c4f.sample_groups = [];
for (_0xc8f4c4 in _0x46ecf6) {
var _0x4fc8e5;
_0x103c4f.sample_groups[_0xc8f4c4] = {};
_0x103c4f.sample_groups[_0xc8f4c4].grouping_type = _0x46ecf6[_0xc8f4c4].grouping_type;
_0x103c4f.sample_groups[_0xc8f4c4].grouping_type_parameter = _0x46ecf6[_0xc8f4c4].grouping_type_parameter;
if (_0x57a273 >= _0x46ecf6[_0xc8f4c4].last_sample_in_run) {
if (_0x46ecf6[_0xc8f4c4].last_sample_in_run < 0x0) {
_0x46ecf6[_0xc8f4c4].last_sample_in_run = 0x0;
}
_0x46ecf6[_0xc8f4c4].entry_index++;
if (_0x46ecf6[_0xc8f4c4].entry_index <= _0x46ecf6[_0xc8f4c4].sbgp.entries.length - 0x1) {
_0x46ecf6[_0xc8f4c4].last_sample_in_run += _0x46ecf6[_0xc8f4c4].sbgp.entries[_0x46ecf6[_0xc8f4c4].entry_index].sample_count;
}
}
if (_0x46ecf6[_0xc8f4c4].entry_index <= _0x46ecf6[_0xc8f4c4].sbgp.entries.length - 0x1) {
_0x103c4f.sample_groups[_0xc8f4c4].group_description_index = _0x46ecf6[_0xc8f4c4].sbgp.entries[_0x46ecf6[_0xc8f4c4].entry_index].group_description_index;
} else {
_0x103c4f.sample_groups[_0xc8f4c4].group_description_index = -0x1;
}
if (0x0 !== _0x103c4f.sample_groups[_0xc8f4c4].group_description_index) {
_0x4fc8e5 = _0x46ecf6[_0xc8f4c4].fragment_description ? _0x46ecf6[_0xc8f4c4].fragment_description : _0x46ecf6[_0xc8f4c4].description;
if (_0x103c4f.sample_groups[_0xc8f4c4].group_description_index > 0x0) {
_0x3d2805 = _0x103c4f.sample_groups[_0xc8f4c4].group_description_index > 0xffff ? (_0x103c4f.sample_groups[_0xc8f4c4].group_description_index >> 0x10) - 0x1 : _0x103c4f.sample_groups[_0xc8f4c4].group_description_index - 0x1;
if (_0x4fc8e5 && _0x3d2805 >= 0x0) {
_0x103c4f.sample_groups[_0xc8f4c4].description = _0x4fc8e5.entries[_0x3d2805];
}
} else if (_0x4fc8e5 && _0x4fc8e5.version >= 0x2 && _0x4fc8e5.default_group_description_index > 0x0) {
_0x103c4f.sample_groups[_0xc8f4c4].description = _0x4fc8e5.entries[_0x4fc8e5.default_group_description_index - 0x1];
}
}
}
};
_0x19d659.process_sdtp = function (_0x782f5f, _0x489272, _0xe3899b) {
if (_0x489272) {
if (_0x782f5f) {
_0x489272.is_leading = _0x782f5f.is_leading[_0xe3899b];
_0x489272.depends_on = _0x782f5f.sample_depends_on[_0xe3899b];
_0x489272.is_depended_on = _0x782f5f.sample_is_depended_on[_0xe3899b];
_0x489272.has_redundancy = _0x782f5f.sample_has_redundancy[_0xe3899b];
} else {
_0x489272.is_leading = 0x0;
_0x489272.depends_on = 0x0;
_0x489272.is_depended_on = 0x0;
_0x489272.has_redundancy = 0x0;
}
}
};
_0x19d659.prototype.buildSampleLists = function () {
var _0x108617;
var _0x56b934;
for (_0x108617 = 0x0; _0x108617 < this.moov.traks.length; _0x108617++) {
_0x56b934 = this.moov.traks[_0x108617];
this.buildTrakSampleLists(_0x56b934);
}
};
_0x19d659.prototype.buildTrakSampleLists = function (_0x3cf83f) {
var _0x12da5b;
var _0x1bccf9;
var _0x4768a2;
var _0x51fc33;
var _0x31c978;
var _0x67b908;
var _0x3e7897;
var _0x41c5b6;
var _0x18b1ff;
var _0x4f147e;
var _0x1dc49b;
var _0x10bedb;
var _0x55efb7;
var _0x1d8d4b;
var _0x27ba7e;
var _0x4338e7;
var _0x3cb974;
var _0x1cbed9;
var _0x29b126;
var _0x1c8ba8;
var _0x2e1d89;
var _0x17bc26;
var _0x575ab;
var _0x2453d5;
_0x3cf83f.samples = [];
_0x3cf83f.samples_duration = 0x0;
_0x3cf83f.samples_size = 0x0;
_0x1bccf9 = _0x3cf83f.mdia.minf.stbl.stco || _0x3cf83f.mdia.minf.stbl.co64;
_0x4768a2 = _0x3cf83f.mdia.minf.stbl.stsc;
_0x51fc33 = _0x3cf83f.mdia.minf.stbl.stsz || _0x3cf83f.mdia.minf.stbl.stz2;
_0x31c978 = _0x3cf83f.mdia.minf.stbl.stts;
_0x67b908 = _0x3cf83f.mdia.minf.stbl.ctts;
_0x3e7897 = _0x3cf83f.mdia.minf.stbl.stss;
_0x41c5b6 = _0x3cf83f.mdia.minf.stbl.stsd;
_0x18b1ff = _0x3cf83f.mdia.minf.stbl.subs;
_0x10bedb = _0x3cf83f.mdia.minf.stbl.stdp;
_0x4f147e = _0x3cf83f.mdia.minf.stbl.sbgps;
_0x1dc49b = _0x3cf83f.mdia.minf.stbl.sgpds;
_0x1cbed9 = -0x1;
_0x29b126 = -0x1;
_0x1c8ba8 = -0x1;
_0x2e1d89 = -0x1;
_0x17bc26 = 0x0;
_0x575ab = 0x0;
_0x2453d5 = 0x0;
_0x19d659.initSampleGroups(_0x3cf83f, null, _0x4f147e, _0x1dc49b);
if (undefined !== _0x51fc33) {
for (_0x12da5b = 0x0; _0x12da5b < _0x51fc33.sample_sizes.length; _0x12da5b++) {
var _0x1e14e9 = {
number: _0x12da5b,
"track_id": _0x3cf83f.tkhd.track_id,
"timescale": _0x3cf83f.mdia.mdhd.timescale,
alreadyRead: 0x0
};
_0x3cf83f.samples[_0x12da5b] = _0x1e14e9;
_0x1e14e9.size = _0x51fc33.sample_sizes[_0x12da5b];
_0x3cf83f.samples_size += _0x1e14e9.size;
if (0x0 === _0x12da5b) {
_0x1d8d4b = 0x1;
_0x55efb7 = 0x0;
_0x1e14e9.chunk_index = _0x1d8d4b;
_0x1e14e9.chunk_run_index = _0x55efb7;
_0x3cb974 = _0x4768a2.samples_per_chunk[_0x55efb7];
_0x4338e7 = 0x0;
_0x27ba7e = _0x55efb7 + 0x1 < _0x4768a2.first_chunk.length ? _0x4768a2.first_chunk[_0x55efb7 + 0x1] - 0x1 : Infinity;
} else if (_0x12da5b < _0x3cb974) {
_0x1e14e9.chunk_index = _0x1d8d4b;
_0x1e14e9.chunk_run_index = _0x55efb7;
} else {
_0x1d8d4b++;
_0x1e14e9.chunk_index = _0x1d8d4b;
_0x4338e7 = 0x0;
if (!(_0x1d8d4b <= _0x27ba7e)) {
_0x27ba7e = 0x1 + ++_0x55efb7 < _0x4768a2.first_chunk.length ? _0x4768a2.first_chunk[_0x55efb7 + 0x1] - 0x1 : Infinity;
}
_0x1e14e9.chunk_run_index = _0x55efb7;
_0x3cb974 += _0x4768a2.samples_per_chunk[_0x55efb7];
}
_0x1e14e9.description_index = _0x4768a2.sample_description_index[_0x1e14e9.chunk_run_index] - 0x1;
_0x1e14e9.description = _0x41c5b6.entries[_0x1e14e9.description_index];
_0x1e14e9.offset = _0x1bccf9.chunk_offsets[_0x1e14e9.chunk_index - 0x1] + _0x4338e7;
_0x4338e7 += _0x1e14e9.size;
if (_0x12da5b > _0x1cbed9) {
_0x29b126++;
if (_0x1cbed9 < 0x0) {
_0x1cbed9 = 0x0;
}
_0x1cbed9 += _0x31c978.sample_counts[_0x29b126];
}
if (_0x12da5b > 0x0) {
_0x3cf83f.samples[_0x12da5b - 0x1].duration = _0x31c978.sample_deltas[_0x29b126];
_0x3cf83f.samples_duration += _0x3cf83f.samples[_0x12da5b - 0x1].duration;
_0x1e14e9.dts = _0x3cf83f.samples[_0x12da5b - 0x1].dts + _0x3cf83f.samples[_0x12da5b - 0x1].duration;
} else {
_0x1e14e9.dts = 0x0;
}
if (_0x67b908) {
if (_0x12da5b >= _0x1c8ba8) {
_0x2e1d89++;
if (_0x1c8ba8 < 0x0) {
_0x1c8ba8 = 0x0;
}
_0x1c8ba8 += _0x67b908.sample_counts[_0x2e1d89];
}
_0x1e14e9.cts = _0x3cf83f.samples[_0x12da5b].dts + _0x67b908.sample_offsets[_0x2e1d89];
} else {
_0x1e14e9.cts = _0x1e14e9.dts;
}
if (_0x3e7897) {
if (_0x12da5b == _0x3e7897.sample_numbers[_0x17bc26] - 0x1) {
_0x1e14e9.is_sync = true;
_0x17bc26++;
} else {
_0x1e14e9.is_sync = false;
_0x1e14e9.degradation_priority = 0x0;
}
if (_0x18b1ff && _0x18b1ff.entries[_0x575ab].sample_delta + _0x2453d5 == _0x12da5b + 0x1) {
_0x1e14e9.subsamples = _0x18b1ff.entries[_0x575ab].subsamples;
_0x2453d5 += _0x18b1ff.entries[_0x575ab].sample_delta;
_0x575ab++;
}
} else {
_0x1e14e9.is_sync = true;
}
_0x19d659.process_sdtp(_0x3cf83f.mdia.minf.stbl.sdtp, _0x1e14e9, _0x1e14e9.number);
_0x1e14e9.degradation_priority = _0x10bedb ? _0x10bedb.priority[_0x12da5b] : 0x0;
if (_0x18b1ff && _0x18b1ff.entries[_0x575ab].sample_delta + _0x2453d5 == _0x12da5b) {
_0x1e14e9.subsamples = _0x18b1ff.entries[_0x575ab].subsamples;
_0x2453d5 += _0x18b1ff.entries[_0x575ab].sample_delta;
}
if (_0x4f147e.length > 0x0 || _0x1dc49b.length > 0x0) {
_0x19d659.setSampleGroupProperties(_0x3cf83f, _0x1e14e9, _0x12da5b, _0x3cf83f.sample_groups_info);
}
}
if (_0x12da5b > 0x0) {
_0x3cf83f.samples[_0x12da5b - 0x1].duration = Math.max(_0x3cf83f.mdia.mdhd.duration - _0x3cf83f.samples[_0x12da5b - 0x1].dts, 0x0);
_0x3cf83f.samples_duration += _0x3cf83f.samples[_0x12da5b - 0x1].duration;
}
}
};
_0x19d659.prototype.updateSampleLists = function () {
var _0x351198;
var _0x4c3d74;
var _0x5d30de;
var _0x55288d;
var _0x25bfb9;
var _0x2f926e;
var _0x1da2cd;
var _0x29d10d;
var _0xe094c8;
var _0x8c03b1;
var _0x8da28d;
var _0x2e24a4;
var _0x3cf876;
var _0x2b2b60;
var _0x1c5a2e;
if (undefined !== this.moov) {
for (; this.lastMoofIndex < this.moofs.length;) {
_0xe094c8 = this.moofs[this.lastMoofIndex];
this.lastMoofIndex++;
if ("moof" == _0xe094c8.type) {
_0x8c03b1 = _0xe094c8;
for (_0x351198 = 0x0; _0x351198 < _0x8c03b1.trafs.length; _0x351198++) {
_0x8da28d = _0x8c03b1.trafs[_0x351198];
_0x2e24a4 = this.getTrackById(_0x8da28d.tfhd.track_id);
_0x3cf876 = this.getTrexById(_0x8da28d.tfhd.track_id);
_0x55288d = _0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DESC ? _0x8da28d.tfhd.default_sample_description_index : _0x3cf876 ? _0x3cf876.default_sample_description_index : 0x1;
_0x25bfb9 = _0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_DUR ? _0x8da28d.tfhd.default_sample_duration : _0x3cf876 ? _0x3cf876.default_sample_duration : 0x0;
_0x2f926e = _0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_SIZE ? _0x8da28d.tfhd.default_sample_size : _0x3cf876 ? _0x3cf876.default_sample_size : 0x0;
_0x1da2cd = _0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_SAMPLE_FLAGS ? _0x8da28d.tfhd.default_sample_flags : _0x3cf876 ? _0x3cf876.default_sample_flags : 0x0;
_0x8da28d.sample_number = 0x0;
if (_0x8da28d.sbgps.length > 0x0) {
_0x19d659.initSampleGroups(_0x2e24a4, _0x8da28d, _0x8da28d.sbgps, _0x2e24a4.mdia.minf.stbl.sgpds, _0x8da28d.sgpds);
}
for (_0x4c3d74 = 0x0; _0x4c3d74 < _0x8da28d.truns.length; _0x4c3d74++) {
var _0x554936 = _0x8da28d.truns[_0x4c3d74];
for (_0x5d30de = 0x0; _0x5d30de < _0x554936.sample_count; _0x5d30de++) {
(_0x2b2b60 = {}).moof_number = this.lastMoofIndex;
_0x2b2b60.number_in_traf = _0x8da28d.sample_number;
_0x8da28d.sample_number++;
_0x2b2b60.number = _0x2e24a4.samples.length;
_0x8da28d.first_sample_index = _0x2e24a4.samples.length;
_0x2e24a4.samples.push(_0x2b2b60);
_0x2b2b60.track_id = _0x2e24a4.tkhd.track_id;
_0x2b2b60.timescale = _0x2e24a4.mdia.mdhd.timescale;
_0x2b2b60.description_index = _0x55288d - 0x1;
_0x2b2b60.description = _0x2e24a4.mdia.minf.stbl.stsd.entries[_0x2b2b60.description_index];
_0x2b2b60.size = _0x2f926e;
if (_0x554936.flags & _0x3bdefc.TRUN_FLAGS_SIZE) {
_0x2b2b60.size = _0x554936.sample_size[_0x5d30de];
}
_0x2e24a4.samples_size += _0x2b2b60.size;
_0x2b2b60.duration = _0x25bfb9;
if (_0x554936.flags & _0x3bdefc.TRUN_FLAGS_DURATION) {
_0x2b2b60.duration = _0x554936.sample_duration[_0x5d30de];
}
_0x2e24a4.samples_duration += _0x2b2b60.duration;
if (_0x2e24a4.first_traf_merged || _0x5d30de > 0x0) {
_0x2b2b60.dts = _0x2e24a4.samples[_0x2e24a4.samples.length - 0x2].dts + _0x2e24a4.samples[_0x2e24a4.samples.length - 0x2].duration;
} else {
if (_0x8da28d.tfdt) {
_0x2b2b60.dts = _0x8da28d.tfdt.baseMediaDecodeTime;
} else {
_0x2b2b60.dts = 0x0;
}
_0x2e24a4.first_traf_merged = true;
}
_0x2b2b60.cts = _0x2b2b60.dts;
if (_0x554936.flags & _0x3bdefc.TRUN_FLAGS_CTS_OFFSET) {
_0x2b2b60.cts = _0x2b2b60.dts + _0x554936.sample_composition_time_offset[_0x5d30de];
}
_0x1c5a2e = _0x1da2cd;
if (_0x554936.flags & _0x3bdefc.TRUN_FLAGS_FLAGS) {
_0x1c5a2e = _0x554936.sample_flags[_0x5d30de];
} else if (0x0 === _0x5d30de && _0x554936.flags & _0x3bdefc.TRUN_FLAGS_FIRST_FLAG) {
_0x1c5a2e = _0x554936.first_sample_flags;
}
_0x2b2b60.is_sync = !(_0x1c5a2e >> 0x10 & 0x1);
_0x2b2b60.is_leading = _0x1c5a2e >> 0x1a & 0x3;
_0x2b2b60.depends_on = _0x1c5a2e >> 0x18 & 0x3;
_0x2b2b60.is_depended_on = _0x1c5a2e >> 0x16 & 0x3;
_0x2b2b60.has_redundancy = _0x1c5a2e >> 0x14 & 0x3;
_0x2b2b60.degradation_priority = 0xffff & _0x1c5a2e;
var _0x3107fd;
var _0x56ed53 = !!(_0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_BASE_DATA_OFFSET);
var _0x1a1dd6 = !!(_0x8da28d.tfhd.flags & _0x3bdefc.TFHD_FLAG_DEFAULT_BASE_IS_MOOF);
var _0x349715 = !!(_0x554936.flags & _0x3bdefc.TRUN_FLAGS_DATA_OFFSET);
_0x3107fd = _0x56ed53 ? _0x8da28d.tfhd.base_data_offset : _0x1a1dd6 || 0x0 === _0x4c3d74 ? _0x8c03b1.start : _0x29d10d;
_0x2b2b60.offset = 0x0 === _0x4c3d74 && 0x0 === _0x5d30de ? _0x349715 ? _0x3107fd + _0x554936.data_offset : _0x3107fd : _0x29d10d;
_0x29d10d = _0x2b2b60.offset + _0x2b2b60.size;
if (_0x8da28d.sbgps.length > 0x0 || _0x8da28d.sgpds.length > 0x0 || _0x2e24a4.mdia.minf.stbl.sbgps.length > 0x0 || _0x2e24a4.mdia.minf.stbl.sgpds.length > 0x0) {
_0x19d659.setSampleGroupProperties(_0x2e24a4, _0x2b2b60, _0x2b2b60.number_in_traf, _0x8da28d.sample_groups_info);
}
}
}
if (_0x8da28d.subs) {
_0x2e24a4.has_fragment_subsamples = true;
var _0x524917 = _0x8da28d.first_sample_index;
for (_0x4c3d74 = 0x0; _0x4c3d74 < _0x8da28d.subs.entries.length; _0x4c3d74++) {
_0x524917 += _0x8da28d.subs.entries[_0x4c3d74].sample_delta;
(_0x2b2b60 = _0x2e24a4.samples[_0x524917 - 0x1]).subsamples = _0x8da28d.subs.entries[_0x4c3d74].subsamples;
}
}
}
}
}
}
};
_0x19d659.prototype.getSample = function (_0x4763e2, _0x1bb4ad) {
var _0xfcbdb8;
var _0x2775fd = _0x4763e2.samples[_0x1bb4ad];
if (!this.moov) {
return null;
}
if (_0x2775fd.data) {
if (_0x2775fd.alreadyRead == _0x2775fd.size) {
return _0x2775fd;
}
} else {
_0x2775fd.data = new Uint8Array(_0x2775fd.size);
_0x2775fd.alreadyRead = 0x0;
this.samplesDataSize += _0x2775fd.size;
_0xc44760.debug("ISOFile", "Allocating sample #" + _0x1bb4ad + " on track #" + _0x4763e2.tkhd.track_id + " of size " + _0x2775fd.size + " (total: " + this.samplesDataSize + ')');
}
for (;;) {
var _0x544200 = this.stream.findPosition(true, _0x2775fd.offset + _0x2775fd.alreadyRead, false);
if (!(_0x544200 > -0x1)) {
return null;
}
var _0x5da4f9 = (_0xfcbdb8 = this.stream.buffers[_0x544200]).byteLength - (_0x2775fd.offset + _0x2775fd.alreadyRead - _0xfcbdb8.fileStart);
if (_0x2775fd.size - _0x2775fd.alreadyRead <= _0x5da4f9) {
_0xc44760.debug('ISOFile', "Getting sample #" + _0x1bb4ad + " data (alreadyRead: " + _0x2775fd.alreadyRead + " offset: " + (_0x2775fd.offset + _0x2775fd.alreadyRead - _0xfcbdb8.fileStart) + " read size: " + (_0x2775fd.size - _0x2775fd.alreadyRead) + " full size: " + _0x2775fd.size + ')');
_0x325146.memcpy(_0x2775fd.data.buffer, _0x2775fd.alreadyRead, _0xfcbdb8, _0x2775fd.offset + _0x2775fd.alreadyRead - _0xfcbdb8.fileStart, _0x2775fd.size - _0x2775fd.alreadyRead);
_0xfcbdb8.usedBytes += _0x2775fd.size - _0x2775fd.alreadyRead;
this.stream.logBufferLevel();
_0x2775fd.alreadyRead = _0x2775fd.size;
return _0x2775fd;
}
if (0x0 === _0x5da4f9) {
return null;
}
_0xc44760.debug("ISOFile", "Getting sample #" + _0x1bb4ad + " partial data (alreadyRead: " + _0x2775fd.alreadyRead + " offset: " + (_0x2775fd.offset + _0x2775fd.alreadyRead - _0xfcbdb8.fileStart) + " read size: " + _0x5da4f9 + " full size: " + _0x2775fd.size + ')');
_0x325146.memcpy(_0x2775fd.data.buffer, _0x2775fd.alreadyRead, _0xfcbdb8, _0x2775fd.offset + _0x2775fd.alreadyRead - _0xfcbdb8.fileStart, _0x5da4f9);
_0x2775fd.alreadyRead += _0x5da4f9;
_0xfcbdb8.usedBytes += _0x5da4f9;
this.stream.logBufferLevel();
}
};
_0x19d659.prototype.releaseSample = function (_0x806a9c, _0x318393) {
var _0x43385b = _0x806a9c.samples[_0x318393];
return _0x43385b.data ? (this.samplesDataSize -= _0x43385b.size, _0x43385b.data = null, _0x43385b.alreadyRead = 0x0, _0x43385b.size) : 0x0;
};
_0x19d659.prototype.getAllocatedSampleDataSize = function () {
return this.samplesDataSize;
};
_0x19d659.prototype.getCodecs = function () {
var _0x3244a8;
var _0x3905e1 = '';
for (_0x3244a8 = 0x0; _0x3244a8 < this.moov.traks.length; _0x3244a8++) {
if (_0x3244a8 > 0x0) {
_0x3905e1 += ',';
}
_0x3905e1 += this.moov.traks[_0x3244a8].mdia.minf.stbl.stsd.entries[0x0].getCodec();
}
return _0x3905e1;
};
_0x19d659.prototype.getTrexById = function (_0x1882df) {
var _0x2ba14e;
if (!this.moov || !this.moov.mvex) {
return null;
}
for (_0x2ba14e = 0x0; _0x2ba14e < this.moov.mvex.trexs.length; _0x2ba14e++) {
var _0x42ba89 = this.moov.mvex.trexs[_0x2ba14e];
if (_0x42ba89.track_id == _0x1882df) {
return _0x42ba89;
}
}
return null;
};
_0x19d659.prototype.getTrackById = function (_0x37ea94) {
if (undefined === this.moov) {
return null;
}
for (var _0x35d851 = 0x0; _0x35d851 < this.moov.traks.length; _0x35d851++) {
var _0x37e9f5 = this.moov.traks[_0x35d851];
if (_0x37e9f5.tkhd.track_id == _0x37ea94) {
return _0x37e9f5;
}
}
return null;
};
_0x19d659.prototype.items = [];
_0x19d659.prototype.itemsDataSize = 0x0;
_0x19d659.prototype.flattenItemInfo = function () {
var _0x1f46a5;
var _0x2d4f68;
var _0x43728f;
var _0x5c0f14 = this.items;
var _0x37a8e5 = this.meta;
if (null != _0x37a8e5 && undefined !== _0x37a8e5.hdlr && undefined !== _0x37a8e5.iinf) {
for (_0x1f46a5 = 0x0; _0x1f46a5 < _0x37a8e5.iinf.item_infos.length; _0x1f46a5++) {
(_0x43728f = {}).id = _0x37a8e5.iinf.item_infos[_0x1f46a5].item_ID;
_0x5c0f14[_0x43728f.id] = _0x43728f;
_0x43728f.ref_to = [];
_0x43728f.name = _0x37a8e5.iinf.item_infos[_0x1f46a5].item_name;
if (_0x37a8e5.iinf.item_infos[_0x1f46a5].protection_index > 0x0) {
_0x43728f.protection = _0x37a8e5.ipro.protections[_0x37a8e5.iinf.item_infos[_0x1f46a5].protection_index - 0x1];
}
if (_0x37a8e5.iinf.item_infos[_0x1f46a5].item_type) {
_0x43728f.type = _0x37a8e5.iinf.item_infos[_0x1f46a5].item_type;
} else {
_0x43728f.type = "mime";
}
_0x43728f.content_type = _0x37a8e5.iinf.item_infos[_0x1f46a5].content_type;
_0x43728f.content_encoding = _0x37a8e5.iinf.item_infos[_0x1f46a5].content_encoding;
}
if (_0x37a8e5.iloc) {
for (_0x1f46a5 = 0x0; _0x1f46a5 < _0x37a8e5.iloc.items.length; _0x1f46a5++) {
var _0x3fbe81 = _0x37a8e5.iloc.items[_0x1f46a5];
_0x43728f = _0x5c0f14[_0x3fbe81.item_ID];
if (0x0 !== _0x3fbe81.data_reference_index) {
_0xc44760.warn("Item storage with reference to other files: not supported");
_0x43728f.source = _0x37a8e5.dinf.boxes[_0x3fbe81.data_reference_index - 0x1];
}
switch (_0x3fbe81.construction_method) {
case 0x0:
break;
case 0x1:
case 0x2:
_0xc44760.warn("Item storage with construction_method : not supported");
}
_0x43728f.extents = [];
_0x43728f.size = 0x0;
for (_0x2d4f68 = 0x0; _0x2d4f68 < _0x3fbe81.extents.length; _0x2d4f68++) {
_0x43728f.extents[_0x2d4f68] = {};
_0x43728f.extents[_0x2d4f68].offset = _0x3fbe81.extents[_0x2d4f68].extent_offset + _0x3fbe81.base_offset;
_0x43728f.extents[_0x2d4f68].length = _0x3fbe81.extents[_0x2d4f68].extent_length;
_0x43728f.extents[_0x2d4f68].alreadyRead = 0x0;
_0x43728f.size += _0x43728f.extents[_0x2d4f68].length;
}
}
}
if (_0x37a8e5.pitm) {
_0x5c0f14[_0x37a8e5.pitm.item_id].primary = true;
}
if (_0x37a8e5.iref) {
for (_0x1f46a5 = 0x0; _0x1f46a5 < _0x37a8e5.iref.references.length; _0x1f46a5++) {
var _0x103c26 = _0x37a8e5.iref.references[_0x1f46a5];
for (_0x2d4f68 = 0x0; _0x2d4f68 < _0x103c26.references.length; _0x2d4f68++) {
_0x5c0f14[_0x103c26.from_item_ID].ref_to.push({
'type': _0x103c26.type,
'id': _0x103c26.references[_0x2d4f68]
});
}
}
}
if (_0x37a8e5.iprp) {
for (var _0x19b344 = 0x0; _0x19b344 < _0x37a8e5.iprp.ipmas.length; _0x19b344++) {
var _0x44ef34 = _0x37a8e5.iprp.ipmas[_0x19b344];
for (_0x1f46a5 = 0x0; _0x1f46a5 < _0x44ef34.associations.length; _0x1f46a5++) {
var _0x14860e = _0x44ef34.associations[_0x1f46a5];
if (undefined === (_0x43728f = _0x5c0f14[_0x14860e.id]).properties) {
_0x43728f.properties = {};
_0x43728f.properties.boxes = [];
}
for (_0x2d4f68 = 0x0; _0x2d4f68 < _0x14860e.props.length; _0x2d4f68++) {
var _0x1f764c = _0x14860e.props[_0x2d4f68];
if (_0x1f764c.property_index > 0x0 && _0x1f764c.property_index - 0x1 < _0x37a8e5.iprp.ipco.boxes.length) {
var _0x39b3a3 = _0x37a8e5.iprp.ipco.boxes[_0x1f764c.property_index - 0x1];
_0x43728f.properties[_0x39b3a3.type] = _0x39b3a3;
_0x43728f.properties.boxes.push(_0x39b3a3);
}
}
}
}
}
}
};
_0x19d659.prototype.getItem = function (_0x1f0413) {
var _0xe3222d;
var _0x4b2ed1;
if (!this.meta) {
return null;
}
if (!(_0x4b2ed1 = this.items[_0x1f0413]).data && _0x4b2ed1.size) {
_0x4b2ed1.data = new Uint8Array(_0x4b2ed1.size);
_0x4b2ed1.alreadyRead = 0x0;
this.itemsDataSize += _0x4b2ed1.size;
_0xc44760.debug("ISOFile", "Allocating item #" + _0x1f0413 + " of size " + _0x4b2ed1.size + " (total: " + this.itemsDataSize + ')');
} else {
if (_0x4b2ed1.alreadyRead === _0x4b2ed1.size) {
return _0x4b2ed1;
}
}
for (var _0x18522e = 0x0; _0x18522e < _0x4b2ed1.extents.length; _0x18522e++) {
var _0xedac95 = _0x4b2ed1.extents[_0x18522e];
if (_0xedac95.alreadyRead !== _0xedac95.length) {
var _0x5584c6 = this.stream.findPosition(true, _0xedac95.offset + _0xedac95.alreadyRead, false);
if (!(_0x5584c6 > -0x1)) {
return null;
}
var _0xec2925 = (_0xe3222d = this.stream.buffers[_0x5584c6]).byteLength - (_0xedac95.offset + _0xedac95.alreadyRead - _0xe3222d.fileStart);
if (!(_0xedac95.length - _0xedac95.alreadyRead <= _0xec2925)) {
_0xc44760.debug("ISOFile", "Getting item #" + _0x1f0413 + " extent #" + _0x18522e + " partial data (alreadyRead: " + _0xedac95.alreadyRead + " offset: " + (_0xedac95.offset + _0xedac95.alreadyRead - _0xe3222d.fileStart) + " read size: " + _0xec2925 + " full extent size: " + _0xedac95.length + " full item size: " + _0x4b2ed1.size + ')');
_0x325146.memcpy(_0x4b2ed1.data.buffer, _0x4b2ed1.alreadyRead, _0xe3222d, _0xedac95.offset + _0xedac95.alreadyRead - _0xe3222d.fileStart, _0xec2925);
_0xedac95.alreadyRead += _0xec2925;
_0x4b2ed1.alreadyRead += _0xec2925;
_0xe3222d.usedBytes += _0xec2925;
this.stream.logBufferLevel();
return null;
}
_0xc44760.debug("ISOFile", "Getting item #" + _0x1f0413 + " extent #" + _0x18522e + " data (alreadyRead: " + _0xedac95.alreadyRead + " offset: " + (_0xedac95.offset + _0xedac95.alreadyRead - _0xe3222d.fileStart) + " read size: " + (_0xedac95.length - _0xedac95.alreadyRead) + " full extent size: " + _0xedac95.length + " full item size: " + _0x4b2ed1.size + ')');
_0x325146.memcpy(_0x4b2ed1.data.buffer, _0x4b2ed1.alreadyRead, _0xe3222d, _0xedac95.offset + _0xedac95.alreadyRead - _0xe3222d.fileStart, _0xedac95.length - _0xedac95.alreadyRead);
_0xe3222d.usedBytes += _0xedac95.length - _0xedac95.alreadyRead;
this.stream.logBufferLevel();
_0x4b2ed1.alreadyRead += _0xedac95.length - _0xedac95.alreadyRead;
_0xedac95.alreadyRead = _0xedac95.length;
}
}
return _0x4b2ed1.alreadyRead === _0x4b2ed1.size ? _0x4b2ed1 : null;
};
_0x19d659.prototype.releaseItem = function (_0x1ac521) {
var _0x3e5a42 = this.items[_0x1ac521];
if (_0x3e5a42.data) {
this.itemsDataSize -= _0x3e5a42.size;
_0x3e5a42.data = null;
_0x3e5a42.alreadyRead = 0x0;
for (var _0x56635a = 0x0; _0x56635a < _0x3e5a42.extents.length; _0x56635a++) {
_0x3e5a42.extents[_0x56635a].alreadyRead = 0x0;
}
return _0x3e5a42.size;
}
return 0x0;
};
_0x19d659.prototype.processItems = function (_0x4de3b0) {
for (var _0x27d71d in this.items) {
var _0x165106 = this.items[_0x27d71d];
this.getItem(_0x165106.id);
if (_0x4de3b0 && !_0x165106.sent) {
_0x4de3b0(_0x165106);
_0x165106.sent = true;
_0x165106.data = null;
}
}
};
_0x19d659.prototype.hasItem = function (_0x364826) {
for (var _0x4f0323 in this.items) {
var _0x75f2af = this.items[_0x4f0323];
if (_0x75f2af.name === _0x364826) {
return _0x75f2af.id;
}
}
return -0x1;
};
_0x19d659.prototype.getMetaHandler = function () {
return this.meta ? this.meta.hdlr.handler : null;
};
_0x19d659.prototype.getPrimaryItem = function () {
return this.meta && this.meta.pitm ? this.getItem(this.meta.pitm.item_id) : null;
};
_0x19d659.prototype.itemToFragmentedTrackFile = function (_0x6f0b66) {
var _0x365a82;
var _0x41acab = _0x6f0b66 || {};
if (null == (_0x365a82 = _0x41acab.itemId ? this.getItem(_0x41acab.itemId) : this.getPrimaryItem())) {
return null;
}
var _0x2d74c6 = new _0x19d659();
_0x2d74c6.discardMdatData = false;
var _0x4eba96 = {
"type": _0x365a82.type,
description_boxes: _0x365a82.properties.boxes
};
if (_0x365a82.properties.ispe) {
_0x4eba96.width = _0x365a82.properties.ispe.image_width;
_0x4eba96.height = _0x365a82.properties.ispe.image_height;
}
var _0x196e55 = _0x2d74c6.addTrack(_0x4eba96);
return _0x196e55 ? (_0x2d74c6.addSample(_0x196e55, _0x365a82.data), _0x2d74c6) : null;
};
_0x19d659.prototype.write = function (_0x33a9ec) {
for (var _0x23366d = 0x0; _0x23366d < this.boxes.length; _0x23366d++) {
this.boxes[_0x23366d].write(_0x33a9ec);
}
};
_0x19d659.prototype.createFragment = function (_0x15d401, _0x26ecd5, _0x341cc3) {
var _0x1c9c11 = this.getTrackById(_0x15d401);
var _0x52407f = this.getSample(_0x1c9c11, _0x26ecd5);
if (null == _0x52407f) {
_0x52407f = _0x1c9c11.samples[_0x26ecd5];
if (this.nextSeekPosition) {
this.nextSeekPosition = Math.min(_0x52407f.offset + _0x52407f.alreadyRead, this.nextSeekPosition);
} else {
this.nextSeekPosition = _0x1c9c11.samples[_0x26ecd5].offset + _0x52407f.alreadyRead;
}
return null;
}
var _0xb40146 = _0x341cc3 || new _0x325146();
_0xb40146.endianness = _0x325146.BIG_ENDIAN;
var _0x11f1bf = this.createSingleSampleMoof(_0x52407f);
_0x11f1bf.write(_0xb40146);
_0x11f1bf.trafs[0x0].truns[0x0].data_offset = _0x11f1bf.size + 0x8;
_0xc44760.debug("MP4Box", "Adjusting data_offset with new value " + _0x11f1bf.trafs[0x0].truns[0x0].data_offset);
_0xb40146.adjustUint32(_0x11f1bf.trafs[0x0].truns[0x0].data_offset_position, _0x11f1bf.trafs[0x0].truns[0x0].data_offset);
var _0x241557 = new _0x3bdefc.mdatBox();
_0x241557.data = _0x52407f.data;
_0x241557.write(_0xb40146);
return _0xb40146;
};
_0x19d659.writeInitializationSegment = function (_0x2542ba, _0x513586, _0x4b5689, _0x23940c) {
var _0x49ceea;
_0xc44760.debug("ISOFile", "Generating initialization segment");
var _0x2a6a15 = new _0x325146();
_0x2a6a15.endianness = _0x325146.BIG_ENDIAN;
_0x2542ba.write(_0x2a6a15);
var _0x3c4455 = _0x513586.add("mvex");
if (_0x4b5689) {
_0x3c4455.add("mehd").set("fragment_duration", _0x4b5689);
}
for (_0x49ceea = 0x0; _0x49ceea < _0x513586.traks.length; _0x49ceea++) {
_0x3c4455.add("trex").set("track_id", _0x513586.traks[_0x49ceea].tkhd.track_id).set("default_sample_description_index", 0x1).set("default_sample_duration", _0x23940c).set("default_sample_size", 0x0).set("default_sample_flags", 0x10000);
}
_0x513586.write(_0x2a6a15);
return _0x2a6a15.buffer;
};
_0x19d659.prototype.save = function (_0x40a1cf) {
var _0x4a8ddc = new _0x325146();
_0x4a8ddc.endianness = _0x325146.BIG_ENDIAN;
this.write(_0x4a8ddc);
_0x4a8ddc.save(_0x40a1cf);
};
_0x19d659.prototype.getBuffer = function () {
var _0x3890d8 = new _0x325146();
_0x3890d8.endianness = _0x325146.BIG_ENDIAN;
this.write(_0x3890d8);
return _0x3890d8.buffer;
};
_0x19d659.prototype.initializeSegmentation = function () {
var _0xd1b238;
var _0x23c2f6;
var _0x336d65;
var _0x5a8afc;
if (null === this.onSegment) {
_0xc44760.warn("MP4Box", "No segmentation callback set!");
}
if (!this.isFragmentationInitialized) {
this.isFragmentationInitialized = true;
this.nextMoofNumber = 0x0;
this.resetTables();
}
_0x23c2f6 = [];
for (_0xd1b238 = 0x0; _0xd1b238 < this.fragmentedTracks.length; _0xd1b238++) {
var _0x574d77 = new _0x3bdefc.moovBox();
_0x574d77.mvhd = this.moov.mvhd;
_0x574d77.boxes.push(_0x574d77.mvhd);
_0x336d65 = this.getTrackById(this.fragmentedTracks[_0xd1b238].id);
_0x574d77.boxes.push(_0x336d65);
_0x574d77.traks.push(_0x336d65);
(_0x5a8afc = {}).id = _0x336d65.tkhd.track_id;
_0x5a8afc.user = this.fragmentedTracks[_0xd1b238].user;
_0x5a8afc.buffer = _0x19d659.writeInitializationSegment(this.ftyp, _0x574d77, this.moov.mvex && this.moov.mvex.mehd ? this.moov.mvex.mehd.fragment_duration : undefined, this.moov.traks[_0xd1b238].samples.length > 0x0 ? this.moov.traks[_0xd1b238].samples[0x0].duration : 0x0);
_0x23c2f6.push(_0x5a8afc);
}
return _0x23c2f6;
};
_0x3bdefc.Box.prototype.printHeader = function (_0x240c4e) {
this.size += 0x8;
if (this.size > _0x23c968) {
this.size += 0x8;
}
if ("uuid" === this.type) {
this.size += 0x10;
}
_0x240c4e.log(_0x240c4e.indent + 'size:' + this.size);
_0x240c4e.log(_0x240c4e.indent + "type:" + this.type);
};
_0x3bdefc.FullBox.prototype.printHeader = function (_0x4d3877) {
this.size += 0x4;
_0x3bdefc.Box.prototype.printHeader.call(this, _0x4d3877);
_0x4d3877.log(_0x4d3877.indent + "version:" + this.version);
_0x4d3877.log(_0x4d3877.indent + "flags:" + this.flags);
};
_0x3bdefc.Box.prototype.print = function (_0x3e04ae) {
this.printHeader(_0x3e04ae);
};
_0x3bdefc.ContainerBox.prototype.print = function (_0x1eaee5) {
this.printHeader(_0x1eaee5);
for (var _0x7d38c1 = 0x0; _0x7d38c1 < this.boxes.length; _0x7d38c1++) {
if (this.boxes[_0x7d38c1]) {
var _0x359819 = _0x1eaee5.indent;
_0x1eaee5.indent += " ";
this.boxes[_0x7d38c1].print(_0x1eaee5);
_0x1eaee5.indent = _0x359819;
}
}
};
_0x19d659.prototype.print = function (_0x48087f) {
_0x48087f.indent = '';
for (var _0x19b8ea = 0x0; _0x19b8ea < this.boxes.length; _0x19b8ea++) {
if (this.boxes[_0x19b8ea]) {
this.boxes[_0x19b8ea].print(_0x48087f);
}
}
};
_0x3bdefc.mvhdBox.prototype.print = function (_0x5db5ff) {
_0x3bdefc.FullBox.prototype.printHeader.call(this, _0x5db5ff);
_0x5db5ff.log(_0x5db5ff.indent + "creation_time: " + this.creation_time);
_0x5db5ff.log(_0x5db5ff.indent + "modification_time: " + this.modification_time);
_0x5db5ff.log(_0x5db5ff.indent + "timescale: " + this.timescale);
_0x5db5ff.log(_0x5db5ff.indent + "duration: " + this.duration);
_0x5db5ff.log(_0x5db5ff.indent + "rate: " + this.rate);
_0x5db5ff.log(_0x5db5ff.indent + "volume: " + (this.volume >> 0x8));
_0x5db5ff.log(_0x5db5ff.indent + "matrix: " + this.matrix.join(", "));
_0x5db5ff.log(_0x5db5ff.indent + "next_track_id: " + this.next_track_id);
};
_0x3bdefc.tkhdBox.prototype.print = function (_0x145cd0) {
_0x3bdefc.FullBox.prototype.printHeader.call(this, _0x145cd0);
_0x145cd0.log(_0x145cd0.indent + "creation_time: " + this.creation_time);
_0x145cd0.log(_0x145cd0.indent + "modification_time: " + this.modification_time);
_0x145cd0.log(_0x145cd0.indent + "track_id: " + this.track_id);
_0x145cd0.log(_0x145cd0.indent + "duration: " + this.duration);
_0x145cd0.log(_0x145cd0.indent + "volume: " + (this.volume >> 0x8));
_0x145cd0.log(_0x145cd0.indent + "matrix: " + this.matrix.join(", "));
_0x145cd0.log(_0x145cd0.indent + "layer: " + this.layer);
_0x145cd0.log(_0x145cd0.indent + "alternate_group: " + this.alternate_group);
_0x145cd0.log(_0x145cd0.indent + "width: " + this.width);
_0x145cd0.log(_0x145cd0.indent + "height: " + this.height);
};
var _0x382774 = function (_0x27dd3d, _0x2a3daf) {
var _0x2f0989 = undefined === _0x27dd3d || _0x27dd3d;
var _0x5c9785 = new _0x19d659(_0x2a3daf);
_0x5c9785.discardMdatData = !_0x2f0989;
return _0x5c9785;
};
_0x524be6.createFile = _0x382774;
},
0x249: _0x1db03b => {
function _0x31c500(_0x33acfe, _0x380f74, _0x174f61, _0x4655ce) {
var _0x4c4214 = _0x380f74 >= 1.5 * _0x174f61;
return Math.round(_0x33acfe / _0x174f61) + " " + _0x4655ce + (_0x4c4214 ? 's' : '');
}
_0x1db03b.exports = function (_0x8bee73, _0x4a6ef1) {
_0x4a6ef1 = _0x4a6ef1 || {};
var _0x3740af;
var _0x52b8fa;
var _0x10413c = typeof _0x8bee73;
if ('string' === _0x10413c && _0x8bee73.length > 0x0) {
return function (_0x3e319a) {
if (!((_0x3e319a = String(_0x3e319a)).length > 0x64)) {
var _0x5cb149 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_0x3e319a);
if (_0x5cb149) {
var _0x1148de = parseFloat(_0x5cb149[0x1]);
switch ((_0x5cb149[0x2] || 'ms').toLowerCase()) {
case "years":
case "year":
case "yrs":
case 'yr':
case 'y':
return 0x758fac300 * _0x1148de;
case "weeks":
case "week":
case 'w':
return _0x1148de * 604800000;
case "days":
case "day":
case 'd':
return _0x1148de * 86400000;
case "hours":
case 'hour':
case "hrs":
case 'hr':
case 'h':
return _0x1148de * 3600000;
case "minutes":
case 'minute':
case "mins":
case "min":
case 'm':
return _0x1148de * 60000;
case 'seconds':
case "second":
case "secs":
case "sec":
case 's':
return _0x1148de * 0x3e8;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case 'ms':
return _0x1148de;
default:
return;
}
}
}
}(_0x8bee73);
}
if ('number' === _0x10413c && isFinite(_0x8bee73)) {
return _0x4a6ef1.long ? (_0x3740af = _0x8bee73, (_0x52b8fa = Math.abs(_0x3740af)) >= 86400000 ? _0x31c500(_0x3740af, _0x52b8fa, 86400000, 'day') : _0x52b8fa >= 3600000 ? _0x31c500(_0x3740af, _0x52b8fa, 3600000, "hour") : _0x52b8fa >= 60000 ? _0x31c500(_0x3740af, _0x52b8fa, 60000, "minute") : _0x52b8fa >= 0x3e8 ? _0x31c500(_0x3740af, _0x52b8fa, 0x3e8, "second") : _0x3740af + " ms") : function (_0x37fb84) {
var _0x3420c3 = Math.abs(_0x37fb84);
return _0x3420c3 >= 86400000 ? Math.round(_0x37fb84 / 86400000) + 'd' : _0x3420c3 >= 3600000 ? Math.round(_0x37fb84 / 3600000) + 'h' : _0x3420c3 >= 60000 ? Math.round(_0x37fb84 / 60000) + 'm' : _0x3420c3 >= 0x3e8 ? Math.round(_0x37fb84 / 0x3e8) + 's' : _0x37fb84 + 'ms';
}(_0x8bee73);
}
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(_0x8bee73));
};
},
0x25e: _0x1ec2f3 => {
var _0x48127f;
var _0x16b1e5;
var _0x24317f = _0x1ec2f3.exports = {};
function _0x151dc3() {
throw new Error("setTimeout has not been defined");
}
function _0x1557d8() {
throw new Error("clearTimeout has not been defined");
}
function _0x2e1f4e(_0x54dfee) {
if (_0x48127f === setTimeout) {
return setTimeout(_0x54dfee, 0x0);
}
if ((_0x48127f === _0x151dc3 || !_0x48127f) && setTimeout) {
_0x48127f = setTimeout;
return setTimeout(_0x54dfee, 0x0);
}
try {
return _0x48127f(_0x54dfee, 0x0);
} catch (_0x31044c) {
try {
return _0x48127f.call(null, _0x54dfee, 0x0);
} catch (_0x4d2824) {
return _0x48127f.call(this, _0x54dfee, 0x0);
}
}
}
!function () {
try {
_0x48127f = "function" == typeof setTimeout ? setTimeout : _0x151dc3;
} catch (_0x1455e6) {
_0x48127f = _0x151dc3;
}
try {
_0x16b1e5 = 'function' == typeof clearTimeout ? clearTimeout : _0x1557d8;
} catch (_0xab81e4) {
_0x16b1e5 = _0x1557d8;
}
}();
var _0x430aa8;
var _0x419888 = [];
var _0x5aebfa = false;
var _0x43b6ba = -0x1;
function _0xecc9e4() {
if (_0x5aebfa && _0x430aa8) {
_0x5aebfa = false;
if (_0x430aa8.length) {
_0x419888 = _0x430aa8.concat(_0x419888);
} else {
_0x43b6ba = -0x1;
}
if (_0x419888.length) {
_0x6dd615();
}
}
}
function _0x6dd615() {
if (!_0x5aebfa) {
var _0x524a38 = _0x2e1f4e(_0xecc9e4);
_0x5aebfa = true;
for (var _0x18ece4 = _0x419888.length; _0x18ece4;) {
_0x430aa8 = _0x419888;
for (_0x419888 = []; ++_0x43b6ba < _0x18ece4;) {
if (_0x430aa8) {
_0x430aa8[_0x43b6ba].run();
}
}
_0x43b6ba = -0x1;
_0x18ece4 = _0x419888.length;
}
_0x430aa8 = null;
_0x5aebfa = false;
(function (_0x3f41ae) {
if (_0x16b1e5 === clearTimeout) {
return clearTimeout(_0x3f41ae);
}
if ((_0x16b1e5 === _0x1557d8 || !_0x16b1e5) && clearTimeout) {
_0x16b1e5 = clearTimeout;
return clearTimeout(_0x3f41ae);
}
try {
return _0x16b1e5(_0x3f41ae);
} catch (_0x4f6f4e) {
try {
return _0x16b1e5.call(null, _0x3f41ae);
} catch (_0x491420) {
return _0x16b1e5.call(this, _0x3f41ae);
}
}
})(_0x524a38);
}
}
function _0x424b43(_0x478875, _0x412e38) {
this.fun = _0x478875;
this.array = _0x412e38;
}
function _0x16fc70() {}
_0x24317f.nextTick = function (_0x35dc4c) {
var _0x4c9841 = new Array(arguments.length - 0x1);
if (arguments.length > 0x1) {
for (var _0x1c5532 = 0x1; _0x1c5532 < arguments.length; _0x1c5532++) {
_0x4c9841[_0x1c5532 - 0x1] = arguments[_0x1c5532];
}
}
_0x419888.push(new _0x424b43(_0x35dc4c, _0x4c9841));
if (!(0x1 !== _0x419888.length || _0x5aebfa)) {
_0x2e1f4e(_0x6dd615);
}
};
_0x424b43.prototype.run = function () {
this.fun.apply(null, this.array);
};
_0x24317f.title = "browser";
_0x24317f.browser = true;
_0x24317f.env = {};
_0x24317f.argv = [];
_0x24317f.version = '';
_0x24317f.versions = {};
_0x24317f.on = _0x16fc70;
_0x24317f.addListener = _0x16fc70;
_0x24317f.once = _0x16fc70;
_0x24317f.off = _0x16fc70;
_0x24317f.removeListener = _0x16fc70;
_0x24317f.removeAllListeners = _0x16fc70;
_0x24317f.emit = _0x16fc70;
_0x24317f.prependListener = _0x16fc70;
_0x24317f.prependOnceListener = _0x16fc70;
_0x24317f.listeners = function (_0x320de1) {
return [];
};
_0x24317f.binding = function (_0x8cea7d) {
throw new Error("process.binding is not supported");
};
_0x24317f.cwd = function () {
return '/';
};
_0x24317f.chdir = function (_0x30042a) {
throw new Error("process.chdir is not supported");
};
_0x24317f.umask = function () {
return 0x0;
};
},
0x254: (_0x35af72, _0x205253, _0x752e2e) => {
let _0x330e14;
_0x35af72.exports = "function" == typeof queueMicrotask ? queueMicrotask.bind("undefined" != typeof window ? window : _0x752e2e.g) : _0x460761 => (_0x330e14 || (_0x330e14 = Promise.resolve())).then(_0x460761)['catch'](_0x412e26 => setTimeout(() => {
throw _0x412e26;
}, 0x0));
},
0x23: _0x389884 => {
_0x389884.exports = function (_0x3f1c2a) {
const _0x3afc91 = +Date.now();
const _0x3c0d43 = 0xa * (_0x3f1c2a || 0x5);
const _0x1e1cb2 = [0x0];
let _0x1580eb = 0x1;
let _0x21275c = ((+Date.now() - _0x3afc91) / 0x64 & 0xffff) - 0x1 & 0xffff;
return function (_0x3bbb6e) {
const _0x57c38d = (+Date.now() - _0x3afc91) / 0x64 & 0xffff;
let _0xe3ade7 = _0x57c38d - _0x21275c & 0xffff;
if (_0xe3ade7 > _0x3c0d43) {
_0xe3ade7 = _0x3c0d43;
}
for (_0x21275c = _0x57c38d; _0xe3ade7--;) {
if (_0x1580eb === _0x3c0d43) {
_0x1580eb = 0x0;
}
_0x1e1cb2[_0x1580eb] = _0x1e1cb2[0x0 === _0x1580eb ? _0x3c0d43 - 0x1 : _0x1580eb - 0x1];
_0x1580eb++;
}
if (_0x3bbb6e) {
_0x1e1cb2[_0x1580eb - 0x1] += _0x3bbb6e;
}
const _0x487340 = _0x1e1cb2[_0x1580eb - 0x1];
const _0x55a0a9 = _0x1e1cb2.length < _0x3c0d43 ? 0x0 : _0x1e1cb2[_0x1580eb === _0x3c0d43 ? 0x0 : _0x1580eb];
return _0x1e1cb2.length < 0xa ? _0x487340 : 0xa * (_0x487340 - _0x55a0a9) / _0x1e1cb2.length;
};
};
},
0x284: _0x590002 => {
'use strict';
_0x590002.exports = function (_0xa93fd8 = 0x10000) {
_0xa93fd8 = _0xa93fd8 || 0x10000;
var _0x156d93 = new Uint8Array(0x0);
return new TransformStream({
'transform'(_0x57be60, _0x32789c) {
for (_0x156d93 = function (_0x3fe7bf = []) {
if (!_0x3fe7bf || !_0x3fe7bf.length) {
return false;
}
var _0x2b75af = 0x0;
_0x3fe7bf.forEach(_0x4124f9 => _0x2b75af += _0x4124f9.length);
var _0x4fefa1 = new Uint8Array(_0x2b75af);
var _0x17bbfe = 0x0;
_0x3fe7bf.forEach(_0x198619 => {
_0x4fefa1.set(_0x198619, _0x17bbfe);
_0x17bbfe += _0x198619.length;
});
return _0x4fefa1;
}([_0x156d93, _0x57be60]); _0x156d93.length >= _0xa93fd8;) {
const _0x4521bc = _0x156d93.slice(0x0, _0xa93fd8);
_0x32789c.enqueue(_0x4521bc);
_0x156d93 = _0x156d93.slice(_0xa93fd8);
}
},
'flush'(_0x21d836) {
if (_0x156d93.length > 0x0) {
_0x21d836.enqueue(_0x156d93);
}
}
});
};
},
0x25b: _0x318305 => {
_0x318305.exports = {
'encode': _0x1f96ae => {
var _0x2be56f;
var _0x1cace0;
var _0x25dcfb;
var _0x3840b1;
var _0x565eec;
var _0x4363ee;
var _0x3c3885;
var _0x23a184 = '';
var _0x43398c = 0x0;
for (_0x1f96ae = function (_0x1aac72) {
_0x1aac72 = _0x1aac72.replace(/\r\n/g, "\n");
var _0x4ef868 = '';
for (var _0x491aa5 = 0x0; _0x491aa5 < _0x1aac72.length; _0x491aa5++) {
var _0x135a97 = _0x1aac72.charCodeAt(_0x491aa5);
if (_0x135a97 < 0x80) {
_0x4ef868 += String.fromCharCode(_0x135a97);
} else if (_0x135a97 < 0x800) {
_0x4ef868 += String.fromCharCode(_0x135a97 >> 0x6 | 0xc0);
_0x4ef868 += String.fromCharCode(0x3f & _0x135a97 | 0x80);
} else {
_0x4ef868 += String.fromCharCode(_0x135a97 >> 0xc | 0xe0);
_0x4ef868 += String.fromCharCode(_0x135a97 >> 0x6 & 0x3f | 0x80);
_0x4ef868 += String.fromCharCode(0x3f & _0x135a97 | 0x80);
}
}
return _0x4ef868;
}(_0x1f96ae); _0x43398c < _0x1f96ae.length;) {
_0x3840b1 = (_0x2be56f = _0x1f96ae.charCodeAt(_0x43398c++)) >> 0x2;
_0x565eec = (0x3 & _0x2be56f) << 0x4 | (_0x1cace0 = _0x1f96ae.charCodeAt(_0x43398c++)) >> 0x4;
_0x4363ee = (0xf & _0x1cace0) << 0x2 | (_0x25dcfb = _0x1f96ae.charCodeAt(_0x43398c++)) >> 0x6;
_0x3c3885 = 0x3f & _0x25dcfb;
if (isNaN(_0x1cace0)) {
_0x4363ee = _0x3c3885 = 0x40;
} else if (isNaN(_0x25dcfb)) {
_0x3c3885 = 0x40;
}
_0x23a184 += "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".charAt(_0x3840b1) + "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".charAt(_0x565eec) + "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".charAt(_0x4363ee) + "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".charAt(_0x3c3885);
}
return _0x23a184;
},
'decode': _0x5711c0 => {
var _0x59ff93;
var _0x5cdf99;
var _0x3435be;
var _0x47a55f;
var _0x37d12c;
var _0x288438;
var _0x3b80b7 = '';
var _0x233979 = 0x0;
for (_0x5711c0 = _0x5711c0.replace(/[^A-Za-z0-9\+\/\=]/g, ''); _0x233979 < _0x5711c0.length;) {
_0x59ff93 = "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".indexOf(_0x5711c0.charAt(_0x233979++)) << 0x2 | (_0x47a55f = "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".indexOf(_0x5711c0.charAt(_0x233979++))) >> 0x4;
_0x5cdf99 = (0xf & _0x47a55f) << 0x4 | (_0x37d12c = "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".indexOf(_0x5711c0.charAt(_0x233979++))) >> 0x2;
_0x3435be = (0x3 & _0x37d12c) << 0x6 | (_0x288438 = "RB0fpH8ZEyVLkv7c2i6MAJ5u3IKFDxlS1NTsnGaqmXYdUrtzjwObCgQP94hoeW+/=".indexOf(_0x5711c0.charAt(_0x233979++)));
_0x3b80b7 += String.fromCharCode(_0x59ff93);
if (0x40 != _0x37d12c) {
_0x3b80b7 += String.fromCharCode(_0x5cdf99);
}
if (0x40 != _0x288438) {
_0x3b80b7 += String.fromCharCode(_0x3435be);
}
}
_0x3b80b7 = function (_0x28d8d5) {
var _0x58cdc2 = '';
var _0x3c52e1 = 0x0;
var _0x35bc84 = 0x0;
for (var _0x199415 = 0x0; _0x3c52e1 < _0x28d8d5.length;) {
if ((_0x35bc84 = _0x28d8d5.charCodeAt(_0x3c52e1)) < 0x80) {
_0x58cdc2 += String.fromCharCode(_0x35bc84);
_0x3c52e1++;
} else if (_0x35bc84 > 0xbf && _0x35bc84 < 0xe0) {
_0x199415 = _0x28d8d5.charCodeAt(_0x3c52e1 + 0x1);
_0x58cdc2 += String.fromCharCode((0x1f & _0x35bc84) << 0x6 | 0x3f & _0x199415);
_0x3c52e1 += 0x2;
} else {
_0x199415 = _0x28d8d5.charCodeAt(_0x3c52e1 + 0x1);
c3 = _0x28d8d5.charCodeAt(_0x3c52e1 + 0x2);
_0x58cdc2 += String.fromCharCode((0xf & _0x35bc84) << 0xc | (0x3f & _0x199415) << 0x6 | 0x3f & c3);
_0x3c52e1 += 0x3;
}
}
return _0x58cdc2;
}(_0x3b80b7);
return _0x3b80b7;
}
};
},
0x190: _0x92210a => {
_0x92210a.exports.size = (_0x2b8c41 = 0x0, _0x40112f = false) => {
var _0xc90e29 = ["Bytes", 'KB', 'MB', 'GB', 'TB', 'PB'];
if (0x0 == _0x2b8c41) {
return "0 Byte";
}
var _0x5f0e11 = parseInt(Math.floor(Math.log(_0x2b8c41) / Math.log(0x400)));
return _0x40112f ? Math.floor((_0x2b8c41 / Math.pow(0x400, _0x5f0e11)).toFixed(0x2)) + " " + _0xc90e29[_0x5f0e11] : (_0x2b8c41 / Math.pow(0x400, _0x5f0e11)).toFixed(0x2) + " " + _0xc90e29[_0x5f0e11];
};
_0x92210a.exports.bps = (_0x131111 = 0x0, _0x22d6bd = 0x1) => {
if (0x0 === _0x131111) {
return "0 bps";
}
const _0xbec0c8 = ['bps', "Kbps", "Mbps", 'Gbps', 'Tbps'];
let _0x310b48 = 0x0;
let _0x199623 = 0x8 * _0x131111 / _0x22d6bd;
for (; _0x199623 >= 0x3e8 && _0x310b48 < _0xbec0c8.length - 0x1;) {
_0x310b48++;
_0x199623 /= 0x3e8;
}
var _0x49d953 = _0x199623.toFixed(0x2);
var _0x56a541 = ('' + _0x49d953).toString().length;
if (_0x56a541 > 0x4) {
_0x49d953 = 0x5 == _0x56a541 ? _0x199623.toFixed(0x1) : Math.floor(_0x49d953);
}
return _0x49d953 + " " + _0xbec0c8[_0x310b48];
};
_0x92210a.exports.kbs = (_0x460e9d = 0x0, _0x351193 = 0x1) => {
if (0x0 === _0x460e9d) {
return "0 b/s";
}
const _0x194e05 = 0x8 * _0x460e9d / _0x351193;
return _0x194e05 < 0x3e8 ? _0x194e05.toFixed(0x2) + " b/s" : (_0x194e05 / 0x3e8).toFixed(0x2) + " Kb/s";
};
_0x92210a.exports.mbs = (_0x9064b9 = 0x0, _0x4f68cf = 0x1) => {
if (0x0 === _0x9064b9) {
return "0 b/s";
}
const _0x1d633f = 0x8 * _0x9064b9 / _0x4f68cf;
return _0x1d633f < 0x3e8 ? _0x1d633f.toFixed(0x2) + " b/s" : _0x1d633f < 0xf4240 ? (_0x1d633f / 0x3e8).toFixed(0x2) + " Kb/s" : (_0x1d633f / 0xf4240).toFixed(0x2) + " Mb/s";
};
},
0x172: (_0x2504ae, _0x45c0d1, _0x3697c4) => {
const _0x17941c = _0x3697c4(0x1f7);
_0x2504ae.exports = function () {
var _0x970bbf = null;
var _0x5663bf = {
name: "AES-CTR",
"length": 0x80
};
const _0x5407f2 = ["encrypt", "decrypt"];
const _0x295d3a = new TextEncoder();
this.expandKey = async _0x49dc61 => {
if (!_0x49dc61) {
return false;
}
var _0x546fea = _0x295d3a.encode(_0x17941c(_0x49dc61));
_0x5663bf.counter = new Uint8Array(_0x546fea.slice(0x0, 0x10));
try {
_0x970bbf = await crypto.subtle.importKey("raw", _0x546fea, _0x5663bf, false, _0x5407f2);
return true;
} catch ({
message: _0x3a219e
}) {
return false;
}
};
this.encrypt = async _0x4a2a0d => {
if (!_0x4a2a0d || !_0x970bbf) {
return _0x4a2a0d;
}
if ("string" == typeof _0x4a2a0d) {
_0x4a2a0d = _0x295d3a.encode(_0x4a2a0d);
}
var _0x592236 = await crypto.subtle.encrypt(_0x5663bf, _0x970bbf, _0x4a2a0d);
return Array.from(new Uint8Array(_0x592236)).map(_0x2fea74 => String.fromCharCode(_0x2fea74)).join('');
};
this.decrypt = async _0xcf0dea => {
if (!_0xcf0dea || !_0x970bbf) {
return _0xcf0dea;
}
if ("string" == typeof _0xcf0dea) {
return async function (_0x2b76b4) {
var _0x49a187 = window.atob(_0x2b76b4);
var _0x3795a0 = new Uint8Array((_0x49a187.match(/[\s\S]/g) || []).map(_0x39895f => _0x39895f.charCodeAt(0x0)));
var _0x24b994 = await crypto.subtle.decrypt(_0x5663bf, _0x970bbf, _0x3795a0);
return new TextDecoder().decode(_0x24b994);
}(_0xcf0dea);
}
var _0x37ceee = await crypto.subtle.decrypt(_0x5663bf, _0x970bbf, _0xcf0dea);
return new Uint8Array(_0x37ceee);
};
};
},
0x2ec: _0x1782d9 => {
'use strict';
_0x1782d9.exports = (() => {
if ('undefined' == typeof window || !window.navigator) {
return false;
}
const _0x45b77a = navigator.userAgent.toLowerCase();
return navigator?.["vendor"]?.["indexOf"]('Apple') > -0x1 && -0x1 == _0x45b77a.indexOf('crios') && -0x1 == _0x45b77a.indexOf("fxios") || _0x45b77a.includes("safari") && !_0x45b77a.includes('chrome') || "safari" in window && "pushNotification" in window.safari;
})();
},
0x161: _0x241655 => {
_0x241655.exports = (_0x844cb8, _0x4bd1ab) => {
if (document.querySelector("iframe.notify")) {
return;
}
const _0x587dc9 = document.createElement("iframe");
_0x587dc9.className = "notify";
_0x587dc9.style.position = "fixed";
_0x587dc9.style.top = '0';
_0x587dc9.style.left = '0';
_0x587dc9.style.width = "100%";
_0x587dc9.style.height = "100%";
_0x587dc9.style.border = 'none';
_0x587dc9.style.zIndex = "9999";
_0x587dc9.srcdoc = "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><title>" + _0x844cb8 + "</title><style>body,html{height:100%;margin:0;font-family:Arial,sans-serif;display:flex;justify-content:center;align-items:center}.modal{background-color:#fff;border-radius:10px;box-shadow:0 4px 6px rgba(0,0,0,.1);width:90%;min-width:360px;max-width:500px;overflow:hidden}.modal-header{background-color:#f44336;color:#fff;padding:15px;font-size:1.5em;font-weight:700;text-align:center}.modal-body{padding:20px;font-size:1.2em;line-height:1.6;text-align:center}@media (max-width:600px){.modal-header{font-size:1.3em}.modal-body{font-size:1em}}</style></head><body><div class=\"modal\"><div class=\"modal-header\">" + _0x844cb8 + "</div><div class=\"modal-body\">" + _0x4bd1ab + "</div></div></body></html>";
document.body.appendChild(_0x587dc9);
return _0x587dc9;
};
},
0x3bb: (_0x4afe99, _0x41ac6a, _0x1a2253) => {
const _0x28a9c0 = _0x1a2253(0x341)("request");
_0x4afe99.exports = async (_0x176bc7 = null, _0x899543 = {}) => {
try {
var _0x1e7052 = await fetch(_0x176bc7, _0x899543);
} catch (_0x22a0ac) {
_0x28a9c0(_0x22a0ac?.["message"]);
return false;
}
return !!_0x1e7052.ok && _0x1e7052;
};
},
0x26a: _0x5754f5 => {
_0x5754f5.exports = (_0x439859 = 0x0) => {
var _0x1e1d27 = 0x0;
var _0x4eadda = 0x0;
if ((_0x439859 = Number(_0x439859)) >= 0x3c) {
_0x4eadda = _0x439859 / 0x3c;
_0x439859 = parseInt(_0x439859 % 0x3c);
if (_0x4eadda > 0x3c) {
_0x1e1d27 = parseInt(_0x4eadda / 0x3c);
_0x4eadda = parseInt(_0x4eadda % 0x3c);
} else {
_0x4eadda = parseInt(_0x4eadda);
}
} else {
_0x439859 = parseInt(_0x439859);
}
return _0x1e1d27 ? ("000" + _0x1e1d27).slice(-2) + ':' + ("000" + _0x4eadda).slice(-2) + ':' + ("000" + _0x439859).slice(-2) : _0x4eadda ? "00:" + ("000" + _0x4eadda).slice(-2) + ':' + ("000" + _0x439859).slice(-2) : _0x439859 ? "00:00:" + ("000" + _0x439859).slice(-2) : "00:00:00";
};
},
0xb9: _0x3972a1 => {
_0x3972a1.exports = () => Math.random().toString(0x24).replace('0.', '');
},
0x2c: (_0xca45aa, _0x61a441, _0x4ba705) => {
const _0x10089c = _0x4ba705(0x341)("media");
const _0x41ceef = _0x4ba705(0xdb);
const _0x8ae130 = _0x4ba705(0x2a3);
const _0x325ec9 = _0x4ba705(0x243);
const _0x18f0ae = _0x4ba705(0x2d4);
const _0x28c58c = _0x4ba705(0x161);
const _0x376506 = _0x4ba705(0x39f);
_0xca45aa.exports = function (_0x4c5b95 = "player") {
var _0x34fc84 = {};
const _0x4a3d5a = ("canPlayType" in document.createElement("video"));
const _0x50e1ad = window.isSecureContext || window?.["crypto"]?.["subtle"];
const _0x11169c = top.location != self.location;
const _0x49442b = new _0x41ceef();
var _0x44ac00 = null;
var _0x38799f = null;
var _0x4ee8fc = false;
this.player = null;
this.setup = async (_0x1e5537 = {}) => {
if (!this.isSupported()) {
return this.destroy("Your browser does not support player");
}
if (!_0x11169c) {
return this.destroy("What are you doing here? This is not the way we meet.");
}
if (!_0x50e1ad && !(await _0x8ae130("https://iamcdn.net/player/polyfills.bundle.js"))) {
return this.destroy("This video player can't work properly on unsecure websites. For your safety, please use a website that is protected with HTTPS.");
}
var _0xb5baea = {
..._0x1e5537
};
_0x10089c("Setup");
(_0x34fc84 = _0xb5baea).sources = _0x34fc84?.['sources']?.["filter"](_0x179883 => _0x179883 && ["mp4"].includes(_0x179883?.["type"])) || [];
if (!_0x34fc84.sources.length) {
return this.destroy("No playable sources found");
}
const {
slug: _0x4f9fb2,
md5_id: _0x2f34b0
} = _0x34fc84;
var _0x6182d6 = {
options: _0x34fc84
};
(_0x44ac00 = new _0x325ec9(_0x6182d6)).start("wss://hello.idocdn.com:30" + (String(_0x2f34b0 % 0x10).padStart(0x2, '0') || 0x0));
if (_0x34fc84.preview) {
var _0x19e51f = _0x18f0ae("https://cdn.freeimagecdn.net/" + _0x4f9fb2, _0x2f34b0);
if (_0x19e51f) {
if (!_0x34fc84.tracks) {
_0x34fc84.tracks = [];
}
_0x34fc84.tracks.push({
'file': _0x19e51f,
'kind': "thumbnails"
});
}
}
if (_0x34fc84.tracks) {
_0x34fc84.tracks = _0x34fc84.tracks.map(_0x159778 => _0x159778.label ? (_0x159778.label = decodeURIComponent(_0x159778.label), _0x159778) : _0x159778);
}
await _0x49442b.register();
_0x34fc84.videoId = _0x34fc84.id;
delete _0x34fc84.id;
_0x38799f = new _0x376506({
...this,
'id': _0x4c5b95,
'options': _0x34fc84
});
this.player = _0x38799f.setup();
return true;
};
this.isSupported = () => _0x4a3d5a && window.jwplayer;
this.destroy = _0x4d740f => {
if (!_0x4ee8fc) {
_0x10089c("Destroy");
_0x4ee8fc = true;
_0x38799f?.['destroy']();
_0x38799f = null;
_0x49442b.destroy();
_0x34fc84 = [];
_0x44ac00?.["destroy"]();
_0x44ac00 = null;
return _0x28c58c("Notification", _0x4d740f || "Player has been destroyed");
}
};
};
},
0xdb: (_0x8fa611, _0x482ceb, _0x549812) => {
const _0x129a97 = _0x549812(0x341)("service");
_0x8fa611.exports = function (_0x38df2f = true) {
const _0x5abc2e = ("serviceWorker" in navigator);
var _0xc99d62 = null;
var _0x36cc89 = null;
var _0x330ea7 = false;
function _0x2d3ea4() {
if (_0xc99d62 && _0x38df2f && !_0x330ea7) {
_0xc99d62.postMessage("ping");
return _0x36cc89 = setTimeout(() => _0x2d3ea4(), 0x2710);
}
}
var _0x491a1b = {
"scope": '/'
};
this.register = (_0x23fc1a = "/sw.js", _0x531c33 = _0x491a1b) => new Promise(async _0x17635e => {
if (!_0x5abc2e) {
return _0x17635e(false);
}
_0x129a97("register");
try {
var _0x4cf904 = await navigator.serviceWorker.register(_0x23fc1a, _0x531c33);
} catch ({
message: _0x60fe3c
}) {
_0x129a97("[ERR] %s", _0x60fe3c);
return _0x17635e(false);
}
if (_0xc99d62 = _0x4cf904.active) {
_0x129a97('avtive');
_0x2d3ea4();
return _0x17635e(_0xc99d62);
}
var _0x36295c = _0x4cf904.installing || _0x4cf904.waiting;
_0x36295c.addEventListener("statechange", _0x6dcce4 => {
if ('activated' == _0x36295c.state) {
_0x36295c.removeEventListener("statechange", _0x6dcce4);
_0xc99d62 = _0x4cf904.active;
_0x129a97("avtive");
_0x2d3ea4();
return _0x17635e(_0xc99d62);
}
});
});
this.destroy = () => {
if (!_0x330ea7) {
_0x129a97("Destroy");
_0x330ea7 = true;
clearTimeout(_0x36cc89);
}
};
};
},
0x32c: (_0x1276d5, _0x34744d, _0xa5f4ec) => {
const _0xefc1a5 = _0xa5f4ec(0x341)('mp4:native');
const _0x21b223 = _0xa5f4ec(0x172);
const _0x3cd703 = _0xa5f4ec(0x30a);
const _0x509255 = _0xa5f4ec(0x11);
const _0x33b40f = _0xa5f4ec(0x350);
const _0x1f0f56 = _0xa5f4ec(0x305);
_0x1276d5.exports = function (_0xa5f20f = {}) {
const {
id: _0x1b9ce4,
options: _0x21a0da,
options: {
videoId: _0xac7bca,
slug: _0x5dae89,
md5_id: _0xbe2745,
domain: _0x5a4993,
adUrls: _0x509906
}
} = _0xa5f20f || {};
var _0x442ed2 = null;
var _0x5afc4b = 0x3;
const _0x8d76a4 = "MediaSource" in window && MediaSource.isTypeSupported("video/mp4; codecs=\"av01.0.05M.08\"") || '' !== document.createElement("video").canPlayType("video/mp4; codecs=\"av01.0.05M.08\"") || false;
var _0x1c00ba = new _0x509255(_0x1b9ce4, _0x5dae89);
const _0x407314 = new _0x21b223();
var _0x3150ec = false;
this.setup = async (_0x86983b = 0x0) => {
var _0x22019b = {
..._0x21a0da
};
delete _0x22019b.events;
if (!_0x442ed2) {
await _0x407314.expandKey(_0x5dae89);
}
var _0x47c04f = {};
var _0x26df4c = _0x21a0da.sources.length;
_0x21a0da.sources = _0x21a0da.sources.sort((_0x3fe737, _0x10eab6) => _0x3fe737.size - _0x10eab6.size);
_0x21a0da.sources.forEach(_0x54f168 => {
if (_0x54f168 && ("av1" != _0x54f168.codec || _0x8d76a4)) {
if (!_0x47c04f[_0x54f168.label]) {
_0x47c04f[_0x54f168.label] = [];
}
_0x47c04f[_0x54f168.label].push(_0x54f168);
}
});
for (const _0x494f0c in _0x47c04f) {
if ('origin' == _0x494f0c && _0x26df4c > 0x1 || ["1440p", "2160p"].includes(_0x494f0c)) {
continue;
}
let _0x2f10b2 = _0x47c04f[_0x494f0c];
_0x2f10b2 = _0x2f10b2.sort((_0x370811, _0x5b41ad) => (_0x5b41ad.status ? 0x1 : 0x0) - (_0x370811.status ? 0x1 : 0x0));
let {
file: _0x48ba20,
size: _0x5a3573,
type: _0x36b5a5
} = _0x2f10b2.shift();
let _0x4710bd = {
'type': _0x36b5a5,
'label': _0x494f0c
};
if (_0x5a3573) {
var _0x328186 = {
"slug": _0x5dae89,
"label": _0x494f0c,
"md5_id": _0xbe2745,
"size": _0x5a3573
};
var _0x3300f4 = await _0x407314.encrypt(JSON.stringify(_0x328186));
_0x3300f4 = btoa(btoa(_0x3300f4).replace(/=/g, '')).replace(/=/g, '');
_0x4710bd.size = _0x5a3573;
_0x4710bd.file = '//' + _0x5a4993 + '/' + _0xac7bca + '/' + _0x3300f4;
} else if (_0x48ba20) {
_0x4710bd.file = _0x48ba20;
}
_0x22019b.sources.push(_0x4710bd);
}
return _0x442ed2 ? (_0x442ed2.load(_0x22019b), _0x442ed2.seek(_0x86983b), _0x442ed2.play()) : (_0xefc1a5("Setup"), (_0x442ed2 = jwplayer(_0x1b9ce4)).setup(_0x22019b), _0x442ed2.on("ready", () => {
_0xefc1a5("Ready");
_0x33b40f();
if (!_0x86983b) {
_0x1c00ba.show();
}
if (_0x21a0da.addDownload) {
_0x3cd703("https://hellabyte.cloud/import/abyss/" + _0x5dae89);
}
if (_0x86983b) {
_0x442ed2.seek(_0x86983b);
}
}), _0x442ed2.on("time", ({
currentTime: _0x19068
}) => {
if (_0x19068 > _0x86983b) {
_0x5afc4b = 0x3;
}
_0x86983b = _0x19068;
_0x1c00ba.setTime(_0x19068);
}), _0x442ed2.on("seek", _0x3cc52c => {
_0x86983b = _0x3cc52c.offset;
_0xefc1a5("Seek to %s", _0x86983b);
}), _0x442ed2.on("fullscreen", ({
fullscreen: _0x3b48e5
}) => {
_0x1f0f56(_0x3b48e5, _0x509906);
}), _0x442ed2.on('error', ({
message: _0x26663d
}) => (_0xefc1a5("[ERR]: %s", _0x26663d), --_0x5afc4b <= 0x0 ? this.destroy(_0x26663d) : this.setup(_0x86983b))), _0x442ed2.on("remove", () => {
_0xefc1a5("Player remove");
this.destroy();
}), _0x442ed2);
};
this.destroy = _0x2875ba => {
if (!_0x3150ec) {
_0xefc1a5("Destroy");
_0x3150ec = true;
_0x442ed2?.["remove"]?.();
_0x442ed2 = null;
_0x1c00ba?.["destroy"]?.();
_0x1c00ba = null;
return _0xa5f20f.destroy(_0x2875ba);
}
};
};
},
0x17f: (_0x3b0676, _0x444959, _0x23b811) => {
const _0x15f57c = _0x23b811(0x341)("mp4:box");
const _0x41bb65 = _0x23b811(0x35e);
const _0x37d878 = _0x23b811(0x1c8);
const _0x515bb7 = _0x23b811(0x389);
const _0x30b9ab = _0x23b811(0x30a);
const _0x24efd7 = _0x23b811(0x11);
const _0x3d5a45 = _0x23b811(0x350);
const _0x4caf6e = _0x23b811(0x305);
_0x3b0676.exports = function (_0x416e0b) {
const {
id: _0x5dd0a3,
stores: _0x5a05df,
bitfields: _0x3d6dad,
request: _0x3dde28,
speed: _0x5049d9,
chunkLength: _0x4278f2,
chunkLengthDownload: _0x377e7e,
options: _0x6cd0ce,
options: {
slug: _0x345cf0,
adUrls: _0x4d623a
}
} = _0x416e0b || {};
const _0x11ad54 = MediaSource.isTypeSupported("video/mp4; codecs=\"av01.0.05M.08\"") || '' !== document.createElement("video").canPlayType("video/mp4; codecs=\"av01.0.05M.08\"") || false;
var _0x143859;
var _0x37ab8b;
var _0x5ecc23;
var _0x5a9fc8 = null;
var _0x10d272 = [];
var _0x26ced4 = new _0x24efd7(_0x5dd0a3, _0x345cf0);
const _0x1939c4 = {};
var _0x54f567 = false;
const _0x5d2d8a = this.setup = (_0x53599b = 0x0) => {
if (!("MediaSource" in window)) {
return this.destroy("MediaSource not support", true);
}
if (!_0x5a9fc8) {
_0x15f57c("Setup");
if ((_0x5a9fc8 = jwplayer(_0x5dd0a3)).isSetup) {
_0x5c10d6(_0x5a9fc8, _0x53599b);
}
}
const _0xc41f52 = new MediaSource();
_0xc41f52.addEventListener("sourceopen", () => (_0x15f57c("sourceopen"), _0x53599b && _0x5a9fc8 && _0x5a9fc8.seek(_0x53599b), function () {
const _0x2e9709 = _0x5a9fc8.ms;
(_0x143859 = _0x515bb7.createFile()).onReady = _0x2e6f89 => (_0x37ab8b = _0x2e6f89, _0x2e6f89.isFragmented ? _0x2e9709.duration = _0x2e6f89.fragment_duration / _0x2e6f89.timescale : _0x2e9709.duration = _0x2e6f89.duration / _0x2e6f89.timescale, function (_0x447c60) {
for (var _0x44b1c9 = 0x0; _0x44b1c9 < _0x447c60.tracks.length; _0x44b1c9++) {
_0x589ab5(_0x447c60.tracks[_0x44b1c9]);
}
return function () {
var _0x2bfeb1 = _0x143859.initializeSegmentation();
for (var _0xfa7efb = 0x0; _0xfa7efb < _0x2bfeb1.length; _0xfa7efb++) {
var _0x72fb92 = _0x2bfeb1[_0xfa7efb].user;
if (0x0 === _0xfa7efb) {
_0x72fb92.ms.pendingInits = 0x0;
}
_0x72fb92.addEventListener("updateend", _0x32f43d);
_0x72fb92.appendBuffer(_0x2bfeb1[_0xfa7efb].buffer);
_0x72fb92.segmentIndex = 0x0;
_0x72fb92.ms.pendingInits++;
}
}();
}(_0x2e6f89));
_0x143859.onSegment = (_0x2afe5a, _0xbb6acb, _0x21a9bb, _0x509238, _0x3ff784) => {
var _0x22a41d = {
id: _0x2afe5a,
"buffer": _0x21a9bb,
sampleNum: _0x509238,
"is_last": _0x3ff784
};
_0xbb6acb.segmentIndex++;
_0xbb6acb.pendingAppends.push(_0x22a41d);
_0xfdfb7c.call(_0xbb6acb, true, false);
};
const _0x26618f = _0x5a9fc8?.["getCurrentQuality"]() || 0x0;
_0x5ecc23 = -0x1 == _0x26618f ? 0x0 : _0x26618f;
const {
size: _0xf31a04,
label: _0x305c08
} = _0x10d272[_0x5ecc23];
const _0x270150 = _0x5a05df[_0x305c08];
var _0x18d73a = {
"start": 0x0
};
if (!(_0x270150 && _0x270150.length == _0xf31a04)) {
_0x5a05df[_0x305c08] = new _0x41bb65(_0x4278f2, {
'length': _0xf31a04
});
_0x3d6dad[_0x305c08] = new _0x37d878["default"](Math.ceil(_0xf31a04 / _0x4278f2));
}
return _0x341262({
'label': _0x305c08,
'range': _0x18d73a
});
}()));
_0xc41f52.addEventListener("sourceclose", () => _0x15f57c("sourceclose"));
_0x5a9fc8.ms = _0xc41f52;
_0x5a9fc8.objectUrl = URL.createObjectURL(_0xc41f52);
var _0x33f1d1 = {
..._0x6cd0ce
};
_0x10d272 = _0x33f1d1.sources = [];
delete _0x33f1d1.events;
var _0x339484 = {};
var _0x40ecd6 = _0x6cd0ce.sources.length;
_0x6cd0ce.sources = _0x6cd0ce.sources.sort((_0x5b73e8, _0x22eb37) => _0x5b73e8.size - _0x22eb37.size);
_0x6cd0ce.sources.forEach(_0x3119c4 => {
if (_0x3119c4 && ('av1' != _0x3119c4.codec || _0x11ad54)) {
if (!_0x339484[_0x3119c4.label]) {
_0x339484[_0x3119c4.label] = [];
}
_0x339484[_0x3119c4.label].push(_0x3119c4);
}
});
for (const _0x1d77de in _0x339484) {
if ("origin" == _0x1d77de && _0x40ecd6 > 0x1) {
continue;
}
let _0x12a671 = _0x339484[_0x1d77de];
_0x12a671 = _0x12a671.sort((_0x3b34f8, _0x5d2a73) => (_0x5d2a73.status ? 0x1 : 0x0) - (_0x3b34f8.status ? 0x1 : 0x0));
let {
file: _0x2cd760,
size: _0xb5b44c,
type: _0xa790fb
} = _0x12a671.shift();
let _0x2c6608 = {
'type': _0xa790fb,
'label': _0x1d77de
};
if (_0xb5b44c) {
_0x2c6608.size = _0xb5b44c;
_0x2c6608.file = _0x5a9fc8.objectUrl;
} else if (_0x2cd760) {
_0x2c6608.file = _0x2cd760;
}
_0x33f1d1.sources.push(_0x2c6608);
}
return _0x5a9fc8.isSetup ? (_0x5a9fc8.load(_0x33f1d1), _0x5a9fc8.play()) : (_0x5a9fc8.setup(_0x33f1d1), _0x5a9fc8.isSetup = true, _0x5c10d6(_0x5a9fc8, _0x53599b));
};
const _0xa3a7a8 = this.destroy = (_0x26b1a2, _0x2adb88) => {
if (!_0x54f567) {
_0x15f57c('Destroy');
_0x54f567 = true;
(function () {
if (_0x5a9fc8?.["objectUrl"]) {
window.URL.revokeObjectURL(_0x5a9fc8.objectUrl);
}
if (_0x5a9fc8?.['ms']) {
try {
_0x5a9fc8.ms.endOfStream();
} catch ({
message: _0x1b54a2
}) {
_0x15f57c("[ERR][Reset] %s", _0x1b54a2);
}
}
_0x143859?.["flush"]?.();
_0x143859 = null;
})();
try {
_0x5a9fc8?.["remove"]();
} catch ({
message: _0x346260
}) {
_0x15f57c("[destroy] %s", _0x346260);
} finally {
_0x5a9fc8 = null;
}
_0x10d272 = [];
_0x143859 = null;
_0x37ab8b = null;
_0x5ecc23 = -0x1;
_0x26ced4?.["destroy"]?.();
_0x26ced4 = null;
for (const _0x31b481 in _0x1939c4) {
clearTimeout(_0x1939c4[_0x31b481]);
delete _0x1939c4[_0x31b481];
}
return _0x416e0b.destroy(_0x26b1a2, _0x2adb88);
}
};
function _0x5c10d6(_0x3d339d, _0x1683be) {
_0x3d339d.on("ready", () => {
_0x15f57c('Ready');
const _0x4dd165 = _0x3d339d?.["getCurrentQuality"]() || 0x0;
_0x5ecc23 = -0x1 == _0x4dd165 ? 0x0 : _0x4dd165;
_0x5049d9?.['setup']();
_0x3d5a45();
_0x26ced4.show();
if (_0x6cd0ce.addDownload) {
_0x30b9ab("https://hellabyte.cloud/import/abyss/" + _0x345cf0);
}
});
_0x3d339d.on("play", () => {
_0x3d339d.isSeek = false;
_0x3d339d.isPause = false;
});
_0x3d339d.on("pause", () => {
_0x3d339d.isPause = true;
});
_0x3d339d.on("time", ({
currentTime: _0x5cdcce
}) => {
if (_0x5cdcce > _0x1683be) {
_0x3d339d.isErr = false;
}
_0x1683be = _0x5cdcce;
_0x26ced4.setTime(_0x5cdcce);
});
_0x3d339d.on("seek", _0x54bfbe => {
clearTimeout(_0x1939c4.seek);
_0x1939c4.seek = setTimeout(() => {
_0x1683be = _0x54bfbe.offset;
const _0x38cf65 = _0x143859.seek(_0x1683be, true).offset;
const {
label: _0x4b7710
} = _0x10d272[_0x5ecc23];
var _0x57f35a = {
start: _0x38cf65
};
var _0x39d837 = {
"label": _0x4b7710,
"range": _0x57f35a
};
_0x15f57c("Seek to %s", _0x1683be);
_0x3d339d.isSeek = true;
return _0x341262(_0x39d837);
}, 0x64);
});
_0x3d339d.on("levelsChanged", _0x7c3a5 => {
_0x5ecc23 = _0x7c3a5.currentQuality;
const {
size: _0x17fe97,
label: _0x2d99da
} = _0x10d272[_0x5ecc23];
_0x15f57c("Changed quality to %s", _0x2d99da);
const _0x381c83 = _0x5a05df[_0x2d99da];
if (!(_0x381c83 && _0x381c83.length == _0x17fe97)) {
_0x5a05df[_0x2d99da] = new _0x41bb65(_0x4278f2, {
'length': _0x17fe97
});
_0x3d6dad[_0x2d99da] = new _0x37d878["default"](Math.ceil(_0x17fe97 / _0x4278f2));
}
return _0x5d2d8a(_0x1683be);
});
_0x3d339d.on("fullscreen", ({
fullscreen: _0x2bd1c5
}) => {
_0x4caf6e(_0x2bd1c5, _0x4d623a);
});
_0x3d339d.on("error", ({
message: _0x55d325
}) => {
_0x15f57c("Error: %s", _0x55d325);
if (_0x3d339d.isErr) {
return _0xa3a7a8(_0x55d325, _0x1683be || true);
}
const {
label: _0x138d2a
} = _0x10d272[_0x5ecc23] || {};
if (['1440p', "2160p"].includes(_0x138d2a)) {
_0x6cd0ce.sources = _0x6cd0ce.sources.filter(_0x19d6f7 => !["1440p", '2160p'].includes(_0x19d6f7.label));
}
_0x3d339d.isErr = true;
return _0x5d2d8a(_0x1683be);
});
_0x3d339d.on("remove", () => {
if (!(_0x54f567 || _0x3d339d.isErr)) {
_0x15f57c("Player remove");
_0xa3a7a8();
}
});
return _0x3d339d;
}
async function _0x341262(_0x4d9f2f = {}) {
const {
size: _0x2ad5a2,
label: _0x33d6e2
} = _0x10d272[_0x5ecc23];
if (_0x4d9f2f.label != _0x33d6e2) {
return;
}
clearTimeout(_0x1939c4.request);
const _0x5e777e = _0x4d9f2f?.["range"]?.["start"] || 0x0;
const _0x48c290 = _0x5e777e % _0x4278f2;
var _0x18cd10 = Math.floor(_0x5e777e / _0x4278f2);
if (_0x3d6dad[_0x33d6e2].get(_0x18cd10)) {
return _0x5a05df[_0x33d6e2].get(_0x18cd10, (_0x4978f7, _0x5f088c) => {
if (_0x4978f7) {
_0x15f57c("[ERR][Read Store][%s][%s] %s", _0x33d6e2, _0x18cd10, _0x4978f7?.["message"]);
} else {
_0x5f088c = new Uint8Array(_0x5f088c);
if (_0x48c290) {
_0x5f088c = _0x5f088c.slice(_0x48c290);
}
var _0x18260d = _0x5f088c.buffer;
_0x18260d.fileStart = _0x5e777e;
try {
var _0x5cc3fe = _0x143859.appendBuffer(_0x18260d, _0x5a05df[_0x33d6e2].lastChunkIndex == _0x18cd10);
var _0x313da8 = _0x5a9fc8.isSeek && !_0x5a9fc8.isPause ? 0x1 : function () {
var _0x129766 = _0x5a9fc8.getCurrentTime();
var _0x5516f6 = _0x5a9fc8.getPlaybackRate();
var _0x4b858e = document.querySelector("video");
if (_0x4b858e && _0x4b858e?.["buffered"]?.["length"] > 0x0) {
var _0x194840 = _0x4b858e.buffered;
var _0x56ba16 = [];
for (let _0x4178ae = 0x0; _0x4178ae < _0x194840.length; _0x4178ae++) {
_0x56ba16.push({
'start': _0x194840.start(_0x4178ae),
'end': _0x194840.end(_0x4178ae)
});
}
_0x56ba16 = _0x56ba16.filter(_0x8163 => _0x129766 >= _0x8163.start).sort((_0x5c70a8, _0x5010aa) => _0x5c70a8.start - _0x5010aa.start);
var {
end: _0x5f4c2a
} = _0x56ba16.pop();
var _0x5d3f15 = Number(((_0x5f4c2a - _0x129766) / _0x5516f6).toFixed(0x2));
_0x15f57c("Buffer health: %ss", _0x5d3f15);
if (_0x5d3f15 < 0x1e) {
return 0x1;
}
var _0x29b9ca = 0x2;
if (_0x37ab8b) {
var _0x1122da = 0x3e8 * Math.ceil(_0x37ab8b.tracks.reduce((_0x1cb3b1, _0x555504) => _0x1cb3b1 + _0x555504.bitrate, 0x0) / 0x3e8) / 0x8;
if (Math.floor((_0x5049d9?.['get']?.("download") || 0x0) / _0x1122da) < 0x3) {
_0x29b9ca = 0x3;
}
}
return 0x3e8 * _0x5d3f15 / (_0x5516f6 * _0x29b9ca);
}
return 0x1;
}();
_0x15f57c("[%s] Push data %s | Next offset: %s | Next request: %sms", _0x33d6e2, _0x18cd10, _0x5cc3fe, Math.floor(_0x313da8));
if (!_0x5cc3fe) {
return;
}
_0x4d9f2f.range.start = _0x5cc3fe;
_0x1939c4.request = setTimeout(() => _0x341262(_0x4d9f2f), _0x313da8);
(function (_0x2754a8, _0x356181) {
if (!(_0x54f567 || !_0x2754a8 || _0x356181 <= 0x50)) {
delete _0x5a05df?.[_0x2754a8]?.["chunks"][_0x356181];
_0x3d6dad?.[_0x2754a8]?.["set"](_0x356181, false);
_0x15f57c("[%s] Delete data %s", _0x2754a8, _0x356181);
}
})(_0x33d6e2, _0x18cd10);
return void _0x5049d9?.["buffer"]?.(_0x5f088c.byteLength);
} catch ({
message: _0x54513f
}) {
_0x15f57c("[ERR][Push Data][%s][%s] %s", _0x33d6e2, _0x18cd10, _0x54513f);
if (!_0x143859.sampleProcessingStarted) {
_0xa3a7a8(_0x54513f, _0x5a9fc8?.["getPosition"]?.() || true);
}
return false;
}
}
});
}
var _0x336446 = _0x18cd10 * _0x4278f2;
var _0x21eb29 = _0x336446 + _0x377e7e - 0x1;
if (_0x21eb29 > _0x2ad5a2) {
_0x21eb29 = _0x2ad5a2 - 0x1;
}
return _0x3dde28({
'size': _0x2ad5a2,
'label': _0x33d6e2,
'range': {
'start': _0x336446,
'end': _0x21eb29
},
'index': _0x18cd10
}, ({
action: _0x147f91,
message: _0x395b29
}) => {
if ("reload" == _0x147f91) {
var _0x287eeb = _0x6cd0ce.sources.findIndex(_0x1a89cb => _0x1a89cb.label == _0x33d6e2 && _0x1a89cb.size == _0x2ad5a2);
if (-0x1 !== _0x287eeb) {
_0x6cd0ce.sources.splice(_0x287eeb, 0x1);
}
return _0x5d2d8a(_0x5a9fc8.getPosition() || 0x0);
}
return "buffer" == _0x147f91 ? _0x341262(_0x4d9f2f) : 'wait' == _0x147f91 ? setTimeout(() => _0x341262(_0x4d9f2f), 0x64) : "abort" == _0x147f91 ? _0x341262(_0x4d9f2f) : void _0x15f57c("[%s] %s", _0x147f91, _0x395b29);
});
}
function _0x589ab5(_0x53dd5d) {
const _0x817c8e = _0x5a9fc8.ms;
const _0x2a71b0 = _0x53dd5d.id;
const _0x203bc9 = "video/mp4; codecs=\"" + _0x53dd5d.codec + "\"";
if (MediaSource.isTypeSupported(_0x203bc9)) {
try {
const _0x597f11 = _0x817c8e.addSourceBuffer(_0x203bc9);
var _0x17a6ec = {
nbSamples: 0x64
};
_0x597f11.addEventListener("error", ({
message: _0x287873
}) => _0x15f57c("[ERR] MSE SourceBuffer #%s: %s", _0x2a71b0, _0x287873));
_0x597f11.ms = _0x817c8e;
_0x597f11.id = _0x2a71b0;
_0x143859.setSegmentOptions(_0x2a71b0, _0x597f11, _0x17a6ec);
_0x597f11.pendingAppends = [];
} catch (_0x47718c) {
_0x15f57c(_0x47718c?.["message"]);
}
}
}
function _0x32f43d(_0x23c282) {
var _0x569909 = _0x23c282.target;
if ("open" === _0x569909.ms.readyState) {
_0x569909.sampleNum = 0x0;
_0x569909.removeEventListener('updateend', _0x32f43d);
_0x569909.addEventListener("updateend", _0xfdfb7c.bind(_0x569909, true));
_0xfdfb7c.call(_0x569909, true);
_0x569909.ms.pendingInits--;
if (0x0 === _0x569909.ms.pendingInits) {
_0x143859.start();
}
}
}
function _0xfdfb7c(_0x599283) {
if (true === _0x599283 && (this.sampleNum && (_0x143859.releaseUsedSamples(this.id, this.sampleNum), delete this.sampleNum), this.is_last)) {
try {
this.ms.endOfStream();
} catch ({
message: _0x78af1d
}) {
_0x15f57c("[ERR][onUpdateEnd] %s", _0x78af1d);
}
}
if ("open" === this.ms.readyState && false === this.updating && this.pendingAppends.length > 0x0) {
var _0x4dcbcf = this.pendingAppends.shift();
this.sampleNum = _0x4dcbcf.sampleNum;
this.is_last = _0x4dcbcf.is_last;
this.appendBuffer(_0x4dcbcf.buffer);
}
}
};
},
0x1b2: (_0x25ee4e, _0x2213f7, _0xf502a9) => {
const _0x790311 = _0xf502a9(0x341)("mp4:sw");
const _0x2341d3 = _0xf502a9(0x35e);
const _0x3bd099 = _0xf502a9(0x1c8);
const _0x1acae8 = _0xf502a9(0x17f);
const _0x4bb448 = _0xf502a9(0x2ec);
const _0x4a1386 = _0xf502a9(0xb9);
const _0x122423 = _0xf502a9(0x30a);
const _0x5c7e0f = _0xf502a9(0x11);
const _0x5a2b44 = _0xf502a9(0x350);
const _0x2ab981 = _0xf502a9(0x305);
_0x25ee4e.exports = function (_0x2e8c6d = {}) {
const {
id: _0x52f4cb,
stores: _0xdf0e95,
bitfields: _0x515c60,
request: _0x10bd2e,
speed: _0x4f3c4f,
chunkLength: _0x25dfe5,
chunkLengthDownload: _0x390ad2,
options: _0x2fd380,
options: {
slug: _0x115646,
adUrls: _0x91f780
}
} = _0x2e8c6d || {};
var _0x16352b = null;
var _0x5ae28c = [];
var _0x2c2b04 = null;
var _0x4e4519 = 0x0;
var _0x101557 = -0x1;
const _0x1b4f72 = ("MediaSource" in window);
const _0x47bd41 = _0x1b4f72 && MediaSource.isTypeSupported("video/mp4; codecs=\"av01.0.05M.08\"") || '' !== document.createElement('video').canPlayType("video/mp4; codecs=\"av01.0.05M.08\"") || false;
const _0x33416 = /Firefox/.test(navigator.userAgent);
const _0x91cd22 = {};
var _0x1c83ff = new _0x5c7e0f(_0x52f4cb, _0x115646);
var _0x5e12c0 = false;
const _0xa2aa4 = this.setup = async (_0x7f995d = 0x0) => {
var _0x56cf91 = {
..._0x2fd380
};
_0x5ae28c = _0x56cf91.sources = [];
delete _0x56cf91.events;
var _0x514ff7 = {};
var _0x2243cd = _0x2fd380.sources.length;
_0x2fd380.sources = _0x2fd380.sources.sort((_0x48215c, _0x2817be) => _0x48215c.size - _0x2817be.size);
_0x2fd380.sources.forEach(_0x142da3 => {
if (_0x142da3 && ('av1' != _0x142da3.codec || _0x47bd41)) {
if (!_0x514ff7[_0x142da3.label]) {
_0x514ff7[_0x142da3.label] = [];
}
_0x514ff7[_0x142da3.label].push(_0x142da3);
}
});
for (const _0x226642 in _0x514ff7) {
if ("origin" == _0x226642 && _0x2243cd > 0x1) {
continue;
}
let _0x54d905 = _0x514ff7[_0x226642];
_0x54d905 = _0x54d905.sort((_0x3531f8, _0x2b6a38) => (_0x2b6a38.status ? 0x1 : 0x0) - (_0x3531f8.status ? 0x1 : 0x0));
let {
file: _0x3df951,
size: _0x1334f7,
type: _0x3a0124
} = _0x54d905.shift();
let _0x4389a2 = {
'type': _0x3a0124,
'label': _0x226642
};
if (_0x1334f7) {
_0x4389a2.size = _0x1334f7;
_0x4389a2.file = _0x33416 ? '/#' + _0x3a0124 + '/' + _0x1334f7 + '/' + _0x226642 : "https://storage.googleapis.com/mediastorage/" + +new Date() + '/' + _0x4a1386() + '/' + _0x1334f7 + ".mp4#" + _0x3a0124 + '/' + _0x1334f7 + '/' + _0x226642;
} else if (_0x3df951) {
_0x4389a2.file = _0x3df951;
}
_0x56cf91.sources.push(_0x4389a2);
}
return _0x16352b ? (_0x16352b.load(_0x56cf91), _0x16352b.play()) : (_0x790311('Setup'), (_0x16352b = jwplayer(_0x52f4cb)).isSetup = true, navigator.serviceWorker.onmessage = ({
data: _0x681c82,
ports: _0x510a32
}) => (_0x16352b.isSw = true, _0x7f995d && _0x16352b?.["isErr"] && _0x16352b.seek(_0x7f995d), function (_0x421496, _0x48739c) {
_0x101557 = _0x16352b?.["getCurrentQuality"]() || 0x0;
const {
size: _0x3146ee,
label: _0x4ae6d0
} = _0x5ae28c[_0x101557];
const _0x3fc7aa = _0xdf0e95[_0x4ae6d0];
if (!(_0x3fc7aa && _0x3fc7aa.length == _0x3146ee)) {
_0xdf0e95[_0x4ae6d0] = new _0x2341d3(_0x25dfe5, {
'length': _0x3146ee
});
_0x515c60[_0x4ae6d0] = new _0x3bd099['default'](Math.ceil(_0x3146ee / _0x25dfe5));
}
_0x48739c.onmessage = ({
data: _0x26adff
}) => _0x9d6f20(_0x26adff, _0x48739c);
_0x2c2b04 = _0x421496;
return void _0x48739c.postMessage({
'size': _0x3146ee,
'label': _0x4ae6d0,
'type': "video/mp4",
'chunkLength': _0x25dfe5
});
}(_0x681c82.id, _0x510a32[0x0])), _0x16352b.setup(_0x56cf91), _0x16352b.on('ready', () => {
_0x790311("Ready");
const _0x1ce611 = _0x16352b?.["getCurrentQuality"]() || 0x0;
_0x101557 = -0x1 == _0x1ce611 ? 0x0 : _0x1ce611;
_0x4f3c4f?.['setup']();
_0x5a2b44();
_0x1c83ff.show();
if (_0x2fd380.addDownload) {
_0x122423("https://hellabyte.cloud/import/abyss/" + _0x115646);
}
}), _0x16352b.on("time", ({
currentTime: _0x4e26b6
}) => {
if (_0x4e26b6 > _0x7f995d) {
_0x16352b.isErr = false;
}
_0x7f995d = _0x4e26b6;
_0x1c83ff.setTime(_0x4e26b6);
}), _0x16352b.on("seek", _0x274f79 => {
_0x7f995d = _0x274f79.offset;
_0x790311("Seek to %s", _0x7f995d);
}), _0x16352b.on("levelsChanged", _0x21662c => {
_0x4e4519 = 0x0;
_0x101557 = _0x21662c.currentQuality;
let {
label: _0x27d414
} = _0x5ae28c[_0x101557];
_0x790311("Changed quality to %s", _0x27d414);
}), _0x16352b.on('fullscreen', ({
fullscreen: _0x16445b
}) => {
_0x2ab981(_0x16445b, _0x91f780);
}), _0x16352b.on('error', ({
message: _0x52e6a5
}) => {
_0x790311("[ERR][Player] %s", _0x52e6a5);
if (_0x33416) {
return this.destroy(_0x52e6a5, _0x7f995d || true);
}
if (_0x16352b.isErr || !_0x16352b.isSw) {
if (!_0x1b4f72) {
return this.destroy(_0x52e6a5, _0x7f995d || true);
}
var _0x47749b = {
..._0x2e8c6d
};
_0x47749b.destroy = this.destroy;
return new _0x1acae8(_0x47749b).setup(_0x7f995d);
}
const {
label: _0x40b128
} = _0x5ae28c[_0x101557] || {};
if (["1440p", "2160p"].includes(_0x40b128)) {
_0x2fd380.sources = _0x2fd380.sources.filter(_0x17c46a => !["1440p", '2160p'].includes(_0x17c46a.label));
}
_0x16352b.isErr = true;
return this.setup(_0x7f995d);
}), _0x16352b.on("remove", () => {
if (!(_0x5e12c0 || _0x16352b.isErr)) {
_0x790311("Player remove");
this.destroy();
}
}), _0x16352b);
};
async function _0x9d6f20(_0x59eb31 = null, _0x40443c, _0x59ca5c = false) {
clearTimeout(_0x91cd22.request);
clearTimeout(_0x91cd22.nextData);
if (!_0x40443c || _0x5e12c0) {
return;
}
if (!_0x59eb31) {
return _0x5ea674(_0x40443c);
}
const {
id: _0x1c727a,
range: _0xdc2c99,
size: _0x18daa4,
label: _0x2bcaab
} = _0x59eb31 || {};
if (!_0x2bcaab || _0xdc2c99?.["start"] > _0x18daa4) {
return _0x5ea674(_0x40443c);
}
var _0x140dda = _0xdc2c99?.["start"] || 0x0;
var _0x370a15 = Math.floor(_0x140dda / _0x25dfe5);
if (_0x515c60[_0x2bcaab].get(_0x370a15)) {
return _0x59ca5c ? (clearTimeout(_0x91cd22.nextData), void (_0x91cd22.nextData = setTimeout(() => _0x569d69(_0x59eb31), 0x64))) : _0xdf0e95[_0x2bcaab].get(_0x370a15, (_0x208d25, _0x17d391) => {
if (_0x208d25) {
_0x790311("[ERR][Read Store][%s][%s] %s", _0x2bcaab, _0x370a15, _0x208d25?.["message"]);
return _0x5ea674(_0x40443c);
}
_0x40443c.postMessage(_0x17d391);
_0x4e4519 = _0x370a15 + 0x1;
_0x790311("[%s][%s] Push data %s", _0x2bcaab, _0x1c727a.split('-').pop(), _0x370a15);
(function (_0x28fe09, _0x267675) {
if (!(_0x5e12c0 || !_0x28fe09 || _0x267675 < 0xa1)) {
var _0x28b5e6 = _0x267675 - 0x50 - 0x1;
delete _0xdf0e95?.[_0x28fe09]?.["chunks"][_0x28b5e6];
_0x515c60?.[_0x28fe09]?.["set"](_0x28b5e6, false);
_0x790311("[%s] Delete data %s", _0x28fe09, _0x28b5e6);
}
})(_0x2bcaab, _0x370a15);
clearTimeout(_0x91cd22.nextData);
_0x91cd22.nextData = setTimeout(() => _0x569d69(_0x59eb31), 0x64);
_0x4f3c4f?.["buffer"]?.(_0x17d391.byteLength);
});
}
if (_0x1c727a != _0x2c2b04) {
_0x790311("Dismiss the data request and close the stream");
return _0x5ea674(_0x40443c);
}
var _0x4556c4 = _0x370a15 * _0x25dfe5;
var _0xc15e4a = _0x4556c4 + _0x390ad2 - 0x1;
if (_0xc15e4a > _0x18daa4) {
_0xc15e4a = _0x18daa4 - 0x1;
}
return _0x10bd2e({
'size': _0x18daa4,
'label': _0x2bcaab,
'range': {
'start': _0x4556c4,
'end': _0xc15e4a
},
'index': _0x370a15
}, ({
action: _0x54eae2,
message: _0x230ff0
}) => {
if (_0x59ca5c) {
clearTimeout(_0x91cd22.nextData);
if ("done" == _0x54eae2) {
_0x569d69(_0x59eb31);
}
return void ("wait" == _0x54eae2 && (_0x91cd22.nextData = setTimeout(() => _0x569d69(_0x59eb31), 0x64)));
}
if ("reload" == _0x54eae2) {
var _0xd23e20 = _0x2fd380.sources.findIndex(_0x4585ab => _0x4585ab.label == _0x2bcaab && _0x4585ab.size == _0x18daa4);
if (-0x1 !== _0xd23e20) {
_0x2fd380.sources.splice(_0xd23e20, 0x1);
}
_0xa2aa4(_0x16352b.getPosition() || 0x0);
return _0x5ea674(_0x40443c);
}
return "buffer" == _0x54eae2 ? _0x9d6f20(_0x59eb31, _0x40443c) : "wait" == _0x54eae2 ? setTimeout(() => _0x9d6f20(_0x59eb31, _0x40443c), 0x64) : ("abort" == _0x54eae2 && _0x5ea674(_0x40443c), void _0x790311("[%s] %s", _0x54eae2, _0x230ff0));
}, _0x59ca5c);
}
async function _0x569d69(_0x2f3663) {
if (_0x4bb448) {
return;
}
clearTimeout(_0x91cd22.nextData);
const {
label: _0x5777e2
} = _0x5ae28c[_0x101557];
if (_0x2f3663.label == _0x5777e2) {
var _0x5106cf = _0xdf0e95[_0x5777e2].lastChunkIndex;
var _0x1711df = _0x4e4519 + 0x50;
if (_0x1711df > _0x5106cf) {
_0x1711df = _0x5106cf;
}
for (let _0x2c6082 = _0x4e4519; _0x2c6082 < _0x1711df; _0x2c6082++) {
if (!_0x515c60[_0x5777e2].get(_0x2c6082)) {
var _0x4a6929 = {
"start": _0x2c6082 * _0x25dfe5
};
clearTimeout(_0x91cd22.request);
_0x2f3663.range = _0x4a6929;
_0x91cd22.request = setTimeout(() => _0x9d6f20(_0x2f3663, {}, true), 0x64);
break;
}
}
} else {
_0x790311("[NextData] Breach quality %s", _0x2f3663.label);
}
}
function _0x5ea674(_0x2e2240) {
if (_0x2e2240) {
_0x2e2240?.["postMessage"]?.(false);
}
}
this.destroy = (_0x29a07d, _0x23fbb3) => {
if (!_0x5e12c0) {
_0x790311("Destroy");
_0x5e12c0 = true;
_0x16352b?.["remove"]?.();
_0x16352b = null;
_0x5ae28c = [];
_0x2c2b04 = null;
_0x4e4519 = 0x0;
_0x101557 = -0x1;
_0x1c83ff?.["destroy"]?.();
_0x1c83ff = null;
for (const _0x3ebf83 in _0x91cd22) {
clearTimeout(_0x91cd22[_0x3ebf83]);
clearInterval(_0x91cd22[_0x3ebf83]);
delete _0x91cd22[_0x3ebf83];
}
return _0x2e8c6d.destroy(_0x29a07d, _0x23fbb3);
}
};
};
},
0x244: (_0x12b2d6, _0x74cd98, _0x5c905e) => {
_0x5c905e(0x341)("mp4:video");
const _0x3a4e25 = _0x5c905e(0x172);
_0x12b2d6.exports = function (_0x1e3fdf) {
const {
id: _0xa7e7d6,
options: _0x1ae2a4,
options: {
videoId: _0x41434b,
slug: _0x5c9267,
md5_id: _0x1df129,
domain: _0x511d41
}
} = _0x1e3fdf || {};
const _0x1af82b = document.getElementById(_0xa7e7d6);
const _0x50ea17 = new _0x3a4e25();
var _0x124aa7 = null;
var _0x5b5c22 = false;
this.setup = async () => {
if (!_0x1af82b) {
return this.destroy("Player element not found");
}
var _0x297614 = _0x1ae2a4.sources.filter(_0x10d635 => "av1" != _0x10d635.codec && _0x10d635.res_id < 0x5).sort((_0x89b76c, _0x4ef10c) => _0x89b76c.res_id - _0x4ef10c.res_id);
if (!_0x297614.length) {
return this.destroy("No playable sources found");
}
if (!_0x124aa7) {
await _0x50ea17.expandKey(_0x5c9267);
}
var {
res_id: _0x29cbd9
} = _0x297614[_0x297614.length - 0x1];
_0x297614 = _0x297614.filter(_0x1eca60 => _0x1eca60.res_id == _0x29cbd9).sort((_0x1f5882, _0x4038ed) => (_0x4038ed.status ? 0x1 : 0x0) - (_0x1f5882.status ? 0x1 : 0x0));
var {
label: _0x5e578b,
size: _0x129c6d
} = _0x297614.shift();
var _0xe91ca5 = await _0x50ea17.encrypt(JSON.stringify({
'slug': _0x5c9267,
'label': _0x5e578b,
'md5_id': _0x1df129,
'size': _0x129c6d
}));
_0xe91ca5 = btoa(btoa(_0xe91ca5).replace(/=/g, '')).replace(/=/g, '');
(_0x124aa7 = document.createElement("video")).src = '//' + _0x511d41 + '/' + _0x41434b + '/' + _0xe91ca5;
_0x124aa7.style.width = '100%';
_0x124aa7.style.height = "100%";
_0x124aa7.controls = true;
_0x124aa7.onerror = () => {
this.destroy("Video error");
};
_0x1af82b.innerHTML = '';
_0x1af82b.append(_0x124aa7);
return _0x124aa7;
};
this.destroy = _0xc18aa9 => {
if (!_0x5b5c22) {
_0x5b5c22 = true;
_0x124aa7?.["remove"]?.();
_0x124aa7 = null;
return _0x1e3fdf.destroy(_0xc18aa9);
}
};
};
},
0x39f: (_0x441cae, _0x67916b, _0x4edb23) => {
const _0x283b3e = _0x4edb23(0x341)("mp4");
const _0x4b8726 = _0x4edb23(0x32c);
const _0x50dbc0 = _0x4edb23(0x1b2);
const _0x4354b5 = _0x4edb23(0x17f);
const _0x4c72c0 = _0x4edb23(0x244);
const _0xe3acaf = _0x4edb23(0x284);
const _0x265f4b = _0x4edb23(0x2ec);
const _0x26e499 = _0x4edb23(0xb9);
const _0x624ec4 = _0x4edb23(0x172);
const _0x39e0a2 = _0x4edb23(0x3c8);
const _0x36cd24 = _0x4edb23(0x1f6);
_0x441cae.exports = function (_0x2f062b = {}) {
const {
options: {
videoId: _0x42d22f,
slug: _0x3fe587,
md5_id: _0x21d8d8,
domain: _0x1fde16,
sources: _0x1a6bd4
}
} = _0x2f062b || {};
var _0x4a2f46 = {};
var _0x2a3dd3 = null;
var _0x15e5c7 = false;
var _0x40b1b9 = null;
const _0x18c2aa = {};
const _0xa8838e = {};
const _0x22313c = {};
const _0xde881 = {};
const _0x583c66 = {};
const _0x283cc9 = new _0x624ec4();
const _0x539240 = new _0x39e0a2();
const _0x14c285 = ("MediaSource" in window);
const _0x883103 = ("serviceWorker" in navigator);
const _0x41a81c = navigator.userAgent;
const _0x440562 = /UCBrowser/.test(_0x41a81c);
const _0xff9976 = /EdgA/.test(_0x41a81c);
const _0x25b25b = /Android/.test(_0x41a81c);
const _0x266824 = _0xff9976 && _0x25b25b;
const _0x2c16ef = /HeyTapBrowser/.test(_0x41a81c);
var _0xbb7289 = false;
async function _0x111222({
size: _0x51a6cc,
label: _0x552090,
range: _0x3a1f69,
index: _0x3b88f1
}, _0x458735, _0x52677a = false) {
clearTimeout(_0x583c66.retry);
var _0x575b25 = false;
for (const _0x581e1e in _0x18c2aa) {
const {
controller: _0x44f142,
range: {
start: _0x5828a5,
end: _0x1dfc3e
},
label: _0x3e8c4c
} = _0x18c2aa[_0x581e1e];
var _0x4449b0 = {
action: "wait"
};
if (_0x1dfc3e > _0x3a1f69.start && _0x5828a5 <= _0x3a1f69.start && _0x552090 == _0x3e8c4c && _0x3a1f69.start) {
if (!_0x575b25) {
_0x575b25 = true;
if (_0x458735) {
_0x458735(_0x4449b0);
}
}
} else {
if (!_0x52677a || !_0x265f4b) {
try {
_0x44f142.abort();
delete _0x18c2aa[_0x581e1e];
} catch ({
message: _0x40f8bb
}) {
_0x283b3e("[ERR][Abort Request] %s", _0x40f8bb);
}
}
}
}
if (_0x575b25) {
return;
}
var _0x57a6aa = _0xde881[_0x51a6cc];
if (!_0x57a6aa) {
_0x57a6aa = _0xde881[_0x51a6cc] = new _0x624ec4();
await _0x57a6aa.expandKey(_0x51a6cc);
}
const _0x216a28 = _0x26e499();
const _0x138537 = new AbortController();
var _0x364e8d = {
"range": _0x3a1f69,
controller: _0x138537,
"label": _0x552090
};
_0x18c2aa[_0x216a28] = _0x364e8d;
var _0x2567ef = {
"slug": _0x3fe587,
"md5_id": _0x21d8d8,
"label": _0x552090,
"size": _0x51a6cc,
range: _0x3a1f69
};
const _0x30505c = await _0x283cc9.encrypt(JSON.stringify(_0x2567ef));
_0x283b3e("[Request]%s[%s] bytes=%s-%s", _0x52677a ? "[PRELOAD]" : '', _0x3b88f1, _0x3a1f69.start, _0x3a1f69.end);
var _0x4f6fc7 = '//' + _0x1fde16;
if (!(_0x15e5c7 || _0x40b1b9)) {
_0x15e5c7 = true;
_0x40b1b9 = await _0x36cd24(_0x4f6fc7);
}
if (_0x40b1b9) {
_0x4f6fc7 = _0x40b1b9;
}
try {
var _0x2b20e7 = {
"content-type": "application/json"
};
var _0x9f23ac = {
'hash': _0x30505c
};
var _0xf29654 = await fetch(_0x4f6fc7 + '/' + _0x42d22f, {
'method': "POST",
'headers': _0x2b20e7,
'body': JSON.stringify(_0x9f23ac),
'signal': _0x138537.signal
});
} catch ({
message: _0x4933a7
}) {
_0x283b3e("[ERR] %s", _0x4933a7);
delete _0x18c2aa[_0x216a28];
_0x40b1b9 = null;
return void (_0x583c66.retry = setTimeout(() => _0x458735 && _0x458735({
'action': 'abort',
'message': _0x4933a7
}), 0xbb8));
}
if (!_0xf29654.ok) {
delete _0x18c2aa[_0x216a28];
return 0x194 == _0xf29654.status ? _0x458735 && _0x458735({
'action': 'reload',
'message': _0xf29654.status
}) : (_0x40b1b9 = null, _0x458735 && _0x458735({
'action': "abort",
'message': _0xf29654.status
}));
}
try {
var _0x3017e3 = false;
var _0x23d167 = true;
const _0x2b07ec = _0xf29654.body.pipeThrough(new _0xe3acaf(0x10000)).getReader();
for (;;) {
const {
done: _0x5e3534,
value: _0x54a25b
} = await _0x2b07ec.read();
if (_0x5e3534) {
var _0x472977 = {
"action": "done"
};
delete _0x18c2aa[_0x216a28];
if (_0x52677a && _0x458735) {
_0x458735(_0x472977);
}
break;
}
if (_0xbb7289) {
break;
}
_0x539240?.["download"]?.(_0x54a25b.length);
var _0x447bac = _0x54a25b;
if (_0x23d167) {
_0x23d167 = false;
_0x447bac = await _0x57a6aa.decrypt(_0x54a25b);
}
_0xa8838e[_0x552090].put(_0x3b88f1, _0x447bac, _0x4c1b80 => {
if (_0x4c1b80) {
_0x283b3e("[ERR][Write Store][%s][%s] %s", _0x552090, _0x3b88f1, _0x4c1b80?.["message"]);
return _0x458735 && _0x458735({
'action': "error",
'message': _0x4c1b80?.["message"]
});
}
var _0x140f5e = {
"action": 'buffer',
"buffer": _0x54a25b
};
_0x22313c[_0x552090].set(_0x3b88f1, true);
_0x283b3e("[%s]%s Got data %s", _0x552090, _0x52677a ? "[PRELOAD]" : '', _0x3b88f1);
_0x3b88f1++;
if (!(_0x3017e3 || _0x52677a || !_0x458735)) {
_0x3017e3 = true;
_0x458735(_0x140f5e);
_0x458735 = undefined;
}
});
}
} catch ({
message: _0x4cff33
}) {
_0x283b3e("[ERR] %s", _0x4cff33);
delete _0x18c2aa[_0x216a28];
return _0x458735 && _0x458735({
'action': "error",
'message': _0x4cff33
});
}
}
this.setup = async () => {
_0x283b3e('Setup');
var _0x229b94 = [..._0x1a6bd4].filter(_0x1cc33c => "mp4" == _0x1cc33c.type);
var _0x4cb50b = {
..._0x2f062b
};
_0x4cb50b.stores = _0xa8838e;
_0x4cb50b.bitfields = _0x22313c;
_0x4cb50b.request = _0x111222;
_0x4cb50b.speed = _0x539240;
_0x4cb50b.chunkLength = 0x10000;
_0x4cb50b.chunkLengthDownload = 0x200000;
return _0x229b94.length ? ((_0x4a2f46 = _0x4cb50b).options.sources = _0x229b94, _0x4a2f46.destroy = this.destroy, await _0x283cc9.expandKey(_0x3fe587), _0x440562 ? _0x2a3dd3 = new _0x4c72c0(_0x4a2f46) : _0x229b94.find(_0x221bfd => !!_0x221bfd.size) && (!_0x883103 || _0x266824 || _0x2c16ef ? _0x14c285 && (_0x2a3dd3 = new _0x4354b5(_0x4a2f46)) : _0x2a3dd3 = new _0x50dbc0(_0x4a2f46)), _0x2a3dd3 || (_0x2a3dd3 = new _0x4b8726(_0x4a2f46)), _0x2a3dd3.setup()) : this.destroy("No playable sources found");
};
this.destroy = (_0x546519, _0xc9758f) => {
if (!_0xbb7289) {
_0x283b3e("Destroy");
_0xbb7289 = true;
_0x2a3dd3?.["destroy"]?.();
_0x2a3dd3 = null;
_0x539240?.["destroy"]?.();
_0x15e5c7 = false;
_0x40b1b9 = null;
for (const _0x555c46 in _0xa8838e) delete _0xa8838e[_0x555c46];
for (const _0x1291e6 in _0x22313c) delete _0x22313c[_0x1291e6];
for (const _0x200f24 in _0x583c66) {
clearTimeout(_0x583c66[_0x200f24]);
delete _0x583c66[_0x200f24];
}
for (const _0x5a79d6 in _0x18c2aa) {
_0x18c2aa[_0x5a79d6]?.["controller"]?.["abort"]?.();
delete _0x18c2aa[_0x5a79d6];
}
return _0xc9758f ? (_0x4a2f46.destroy = _0x2f062b.destroy, _0x4a2f46.options.sources = [..._0x1a6bd4].filter(_0xe75ed8 => "mp4" == _0xe75ed8.type), new _0x4b8726({
..._0x4a2f46
}).setup(0x1 == _0xc9758f ? 0x0 : _0xc9758f), void (_0x4a2f46 = {})) : (_0x4a2f46 = {}, _0x2f062b.destroy(_0x546519));
}
};
};
},
0x305: _0x22fc2a => {
var _0x26b7e7 = -0x1;
var _0x48fb90 = null;
function _0x5f3e3d() {
if (_0x48fb90) {
var _0x416c89 = document.createElement('a');
_0x416c89.setAttribute("href", _0x48fb90);
_0x416c89.setAttribute("target", "_blank");
_0x416c89.click();
document.onclick = null;
document.ontouchend = null;
}
}
_0x22fc2a.exports = (_0x599307 = false, _0x34cef4 = []) => {
if (!_0x599307 && _0x34cef4?.["length"]) {
_0x48fb90 = _0x34cef4[++_0x26b7e7 % _0x34cef4.length];
if (/iPhone|iPad|iPod|Mac OS/i.test(navigator.userAgent)) {
document.onclick = _0x5f3e3d;
if ("ontouchstart" in window || "onmsgesturechange" in window) {
document.ontouchend = _0x5f3e3d;
}
} else {
_0x5f3e3d();
}
}
};
},
0x30a: _0x45e93d => {
_0x45e93d.exports = _0x4d38c9 => !(!_0x4d38c9 || undefined === window.jwplayer) && jwplayer().addButton("<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\" style=\"fill:none;stroke-width:2px\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3\" /></svg>", "Download video", () => window.open(_0x4d38c9, '_blank'), "download", "download");
},
0x350: _0x49ce52 => {
_0x49ce52.exports = () => {
if (undefined === window.jwplayer) {
return false;
}
const _0x5ba621 = document.querySelector(".jw-display-icon-rewind");
if (_0x5ba621 && !document.querySelector(".jw-display-icon-forward")) {
const _0x5a5c97 = _0x5ba621.cloneNode(true);
const _0x41832a = _0x5a5c97.querySelector(".jw-icon-rewind");
if (_0x41832a) {
_0x41832a.classList.remove("jw-icon-rewind");
_0x41832a.classList.add("jw-display-icon-forward");
_0x41832a.ariaLabel = "Forward 10 Seconds";
_0x41832a.querySelector("svg").innerHTML = "<path d=\"m 25.993957,57.778 v 125.3 c 0.03604,2.63589 2.164107,4.76396 4.8,4.8 h 62.7 v -19.3 h -48.2 v -96.4 H 160.99396 v 19.3 c 0,5.3 3.6,7.2 8,4.3 l 41.8,-27.9 c 2.93574,-1.480087 4.13843,-5.04363 2.7,-8 -0.57502,-1.174985 -1.52502,-2.124979 -2.7,-2.7 l -41.8,-27.9 c -4.4,-2.9 -8,-1 -8,4.3 v 19.3 H 30.893957 c -2.689569,0.03972 -4.860275,2.210431 -4.9,4.9 z m 163.422413,73.04577 c -3.72072,-6.30626 -10.38421,-10.29683 -17.7,-10.6 -7.31579,0.30317 -13.97928,4.29374 -17.7,10.6 -8.60009,14.23525 -8.60009,32.06475 0,46.3 3.72072,6.30626 10.38421,10.29683 17.7,10.6 7.31579,-0.30317 13.97928,-4.29374 17.7,-10.6 8.60009,-14.23525 8.60009,-32.06475 0,-46.3 z m -17.7,47.2 c -7.8,0 -14.4,-11 -14.4,-24.1 0,-13.1 6.6,-24.1 14.4,-24.1 7.8,0 14.4,11 14.4,24.1 0,13.1 -6.5,24.1 -14.4,24.1 z m -47.77056,9.72863 v -51 l -4.8,4.8 -6.8,-6.8 13,-12.99999 c 3.02543,-3.03598 8.21053,-0.88605 8.2,3.4 v 62.69999 z\"></path>";
_0x41832a.onclick = () => jwplayer().seek(jwplayer().getPosition() + 0xa);
}
const _0x48baf8 = document.querySelector(".jw-display-icon-next");
if (_0x48baf8) {
_0x48baf8.parentNode.insertBefore(_0x5a5c97, _0x48baf8);
_0x48baf8.remove();
}
}
if (!document.querySelector(".forward")) {
jwplayer().addButton("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\" focusable=\"false\" class=\"jw-svg-icon jw-svg-icon-rewind\"><path d=\"m 25.993957,57.778 v 125.3 c 0.03604,2.63589 2.164107,4.76396 4.8,4.8 h 62.7 v -19.3 h -48.2 v -96.4 H 160.99396 v 19.3 c 0,5.3 3.6,7.2 8,4.3 l 41.8,-27.9 c 2.93574,-1.480087 4.13843,-5.04363 2.7,-8 -0.57502,-1.174985 -1.52502,-2.124979 -2.7,-2.7 l -41.8,-27.9 c -4.4,-2.9 -8,-1 -8,4.3 v 19.3 H 30.893957 c -2.689569,0.03972 -4.860275,2.210431 -4.9,4.9 z m 163.422413,73.04577 c -3.72072,-6.30626 -10.38421,-10.29683 -17.7,-10.6 -7.31579,0.30317 -13.97928,4.29374 -17.7,10.6 -8.60009,14.23525 -8.60009,32.06475 0,46.3 3.72072,6.30626 10.38421,10.29683 17.7,10.6 7.31579,-0.30317 13.97928,-4.29374 17.7,-10.6 8.60009,-14.23525 8.60009,-32.06475 0,-46.3 z m -17.7,47.2 c -7.8,0 -14.4,-11 -14.4,-24.1 0,-13.1 6.6,-24.1 14.4,-24.1 7.8,0 14.4,11 14.4,24.1 0,13.1 -6.5,24.1 -14.4,24.1 z m -47.77056,9.72863 v -51 l -4.8,4.8 -6.8,-6.8 13,-12.99999 c 3.02543,-3.03598 8.21053,-0.88605 8.2,3.4 v 62.69999 z\"></path></svg>", "Forward 10 Seconds", () => jwplayer().seek(jwplayer().getPosition() + 0xa), "forward", 'forward');
const _0x14e183 = document.querySelector(".forward");
const _0x15b0bf = document.querySelector(".jw-controlbar .jw-icon-next");
if (_0x14e183 && _0x15b0bf && _0x15b0bf.parentNode) {
_0x15b0bf.parentNode.insertBefore(_0x14e183, _0x15b0bf);
}
}
return true;
};
},
0x174: (_0x2148be, _0x3af775, _0x3e802c) => {
const _0x369891 = _0x3e802c(0x26b);
const _0x58142b = _0x3e802c(0x161);
function _0x5d4ae2() {
try {
if (window.jwplayer) {
jwplayer()?.["remove"]?.();
}
} catch ({
message: _0x2f064f
}) {
console.error(_0x2f064f);
} finally {
sessionStorage.setItem('devtool', "open");
}
}
_0x2148be.exports = () => {
var _0x509c03 = 'open' == sessionStorage.getItem("devtool");
if (_0x509c03) {
_0x58142b("Security alert", "Due to security concerns, your access request has been denied. Kindly close your browser completely and try again. Kindly refrain from opening the developer tools (eg: F12).");
return setInterval(() => {
_0x5d4ae2();
console.clear();
}, 0x64);
}
if ("ontouchstart" in window || "onmsgesturechange" in window) {
setInterval(() => console.clear(), 0x64);
var _0x11875b = setInterval(() => {
const _0x759d94 = new Date().getTime();
(function () {}).constructor("debugger")();
if (new Date().getTime() - _0x759d94 >= 0x64) {
clearInterval(_0x11875b);
_0x58142b("Security alert", "Due to security concerns, your access request has been denied. Kindly close your browser completely and try again. Kindly refrain from opening the developer tools (eg: F12).");
setInterval(() => _0x5d4ae2(), 0x64);
}
}, 0x64);
return _0x11875b;
}
_0x369891.addListener(_0xe3831c => {
if (_0x509c03 = _0xe3831c) {
_0x58142b("Security alert", "Due to security concerns, your access request has been denied. Kindly close your browser completely and try again. Kindly refrain from opening the developer tools (eg: F12).");
setInterval(() => _0x5d4ae2(), 0x64);
}
});
return _0x369891.launch();
};
},
0x1f6: (_0x47c4d6, _0x58891d, _0x5c56fd) => {
const _0x5c4372 = _0x5c56fd(0x3bb);
_0x47c4d6.exports = async _0x424bc0 => {
if (!_0x424bc0) {
return false;
}
var _0x23653e = await _0x5c4372(_0x424bc0 + '/tunnel');
return !!_0x23653e && _0x23653e.text();
};
},
0x2a3: (_0x3fb7f1, _0x24adff, _0x26dd65) => {
const _0x4e8474 = _0x26dd65(0x341)("load-script");
_0x3fb7f1.exports = (_0xf0096b = null) => new Promise(_0x11af9d => {
if (!_0xf0096b) {
return _0x11af9d(false);
}
var _0x3f1446 = document.createElement("script");
_0x3f1446.src = _0xf0096b;
_0x3f1446.onload = () => {
_0x4e8474("Script loaded and executed");
_0x11af9d(true);
};
_0x3f1446.onerror = () => {
_0x4e8474("Error loading script");
_0x11af9d(false);
};
return document.head.appendChild(_0x3f1446);
});
},
0x2d4: _0x3d4d53 => {
function _0x1b679a(_0x46f45d) {
var _0x235fb2 = 0x0;
var _0x41c2e2 = 0x0;
if ((_0x46f45d = Number(_0x46f45d)) >= 0x3c) {
_0x41c2e2 = _0x46f45d / 0x3c;
_0x46f45d = parseInt(_0x46f45d % 0x3c);
if (_0x41c2e2 > 0x3c) {
_0x235fb2 = parseInt(_0x41c2e2 / 0x3c);
_0x41c2e2 = parseInt(_0x41c2e2 % 0x3c);
} else {
_0x41c2e2 = parseInt(_0x41c2e2);
}
} else {
_0x46f45d = parseInt(_0x46f45d);
}
if (_0x235fb2) {
if (0x1 == _0x235fb2.toString().length) {
_0x235fb2 = '0' + _0x235fb2;
}
} else {
_0x235fb2 = '00';
}
if (_0x41c2e2) {
if (0x1 == _0x41c2e2.toString().length) {
_0x41c2e2 = '0' + _0x41c2e2;
}
} else {
_0x41c2e2 = '00';
}
if (0x1 == _0x46f45d.toString().length) {
_0x46f45d = '0' + _0x46f45d;
}
return _0x235fb2 + ':' + _0x41c2e2 + ':' + _0x46f45d + ":000";
}
_0x3d4d53.exports = (_0x5a707d = null, _0x25a682 = null) => {
if (!_0x5a707d || !_0x25a682) {
return false;
}
var _0x50a0b5 = 0x0;
var _0x3bf7cc = 0x0;
var _0x29348a = 0x0;
var _0x32f997 = 0x0;
var _0xb75441 = 0xa;
var _0xbfa583 = Math.ceil(0x708);
var _0x2db99d = "WEBVTT\n\n";
for (let _0x218aeb = 0x1; _0x218aeb < _0xbfa583; _0x218aeb++) {
_0x2db99d += _0x218aeb + "\n";
_0x2db99d += _0x1b679a(_0x32f997) + " --> " + _0x1b679a(_0xb75441) + "\n";
_0x2db99d += _0x5a707d.replace('XXX', (_0x25a682 % 0xa).toString().padStart(0x3, '0')) + '/' + _0x29348a + ".jpg#xywh=" + _0x50a0b5 + ',' + _0x3bf7cc + ",178,100\n";
_0x32f997 += 0xa;
_0xb75441 += 0xa;
_0x50a0b5 += 0xb2;
if (_0x218aeb % 0x6 == 0x0) {
_0x3bf7cc += 0x64;
_0x50a0b5 = 0x0;
}
if (_0x218aeb % 0x1e == 0x0) {
_0x50a0b5 = 0x0;
_0x3bf7cc = 0x0;
_0x29348a++;
}
if (_0x218aeb != _0xbfa583) {
_0x2db99d += "\n";
}
}
var _0xbda730 = {
"type": "text/vtt"
};
return URL.createObjectURL(new Blob([_0x2db99d], _0xbda730));
};
},
0x11: (_0x23e73c, _0x4f4310, _0x3e60f4) => {
const _0x4eb228 = _0x3e60f4(0x341)("resuming-playback");
const _0x7502ba = _0x3e60f4(0x26a);
_0x23e73c.exports = function (_0x4036ba, _0x1084df) {
const _0x180d2d = document.createElement("style");
_0x180d2d.textContent = "\n .jwp-popup {\n z-index: 9999;\n background-color: rgba(0, 0, 0, 0.8);\n color: #fff;\n border-radius: 8px;\n padding: 20px;\n text-align: center;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);\n max-width: 360px;\n width: 90%;\n box-sizing: border-box;\n display: none;\n box-shadow: 1px 1px 5px #ffffff94;\n }\n \n .jwp-popup .popup-header {\n font-size: 1.5em;\n margin-bottom: 15px;\n font-weight: bold;\n }\n \n .jwp-popup .popup-body {\n margin-bottom: 20px;\n }\n\n .jwp-popup .popup-footer {\n display: flex;\n flex-wrap: wrap; /* Cho phép các nút chuyển dòng nếu cần */\n justify-content: center;\n gap: 10px;\n }\n \n .jwp-popup button {\n background-color: #4CAF50;\n color: white;\n padding: 10px 20px;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1em;\n }\n \n .jwp-popup button:hover {\n background-color: #3e8e41;\n }\n \n .jwp-popup button.jwp-popup-cancel {\n background-color: #f44336;\n }\n \n .jwp-popup button.jwp-popup-cancel:hover {\n background-color: #c62828;\n }\n \n @media (max-width: 360px) {\n .jwp-popup {\n display: none; /* Ẩn popup khi màn hình nhỏ hơn 360px */\n }\n }\n \n /* Responsive Design cho các thiết bị lớn hơn */\n @media (min-width: 361px) {\n .jwp-popup {\n display: block; /* Hiển thị popup khi màn hình lớn hơn 360px */\n }\n }\n ";
document.head.appendChild(_0x180d2d);
var _0x4ee033 = null;
var _0x291f70 = null;
var _0x3dd8c0 = null;
var _0x5e62e6 = false;
this.show = () => {
if ("undefined" == typeof jwplayer || !_0x4036ba || !_0x1084df || _0x5e62e6) {
return;
}
var _0x5bc4e5 = function () {
if (_0x1084df) {
try {
return Number(localStorage.getItem("time_" + _0x1084df) || 0x0);
} catch ({
message: _0x2fc567
}) {
return void _0x4eb228(_0x2fc567);
}
}
}();
if (!Number.isFinite(_0x5bc4e5) || Math.floor(_0x5bc4e5) <= 0x0) {
return;
}
(_0x4ee033 = document.createElement('div')).className = "jwp-popup";
_0x4ee033.innerHTML = "\n <div class=\"popup-header\">Continue watching</div>\n <div class=\"popup-body\">\n <p>You have watched up to <u>" + _0x7502ba(_0x5bc4e5) + "</u>. Do you want to continue watching?</p>\n </div>\n <div class=\"popup-footer\">\n <button class=\"jwp-popup-continue\">Continue</button>\n <button class=\"jwp-popup-cancel\">Cancel (<span>10s</span>)</button>\n </div>\n ";
const _0x147e24 = jwplayer(_0x4036ba);
(_0x291f70 = _0x147e24.getContainer()).appendChild(_0x4ee033);
var _0x2d59a3 = 0xa;
_0x3dd8c0 = setInterval(() => {
_0x2d59a3--;
var _0x57fc87 = document.querySelector(".jwp-popup-cancel span");
if (!_0x57fc87 || _0x2d59a3 <= 0x0) {
clearInterval(_0x3dd8c0);
return _0x291f70.removeChild(_0x4ee033);
}
_0x57fc87.innerHTML = _0x2d59a3 + 's';
}, 0x3e8);
_0x4ee033.querySelector(".jwp-popup-continue").addEventListener('click', () => {
clearInterval(_0x3dd8c0);
_0x291f70.removeChild(_0x4ee033);
_0x147e24.seek(_0x5bc4e5);
_0x147e24.play();
});
_0x4ee033.querySelector(".jwp-popup-cancel").addEventListener("click", () => {
clearInterval(_0x3dd8c0);
_0x291f70.removeChild(_0x4ee033);
_0x147e24.play();
});
};
this.setTime = _0x40312e => {
if (Number.isFinite(_0x40312e) && !(_0x40312e <= 0x0) && _0x4036ba && _0x1084df && !_0x5e62e6) {
try {
localStorage.setItem("time_" + _0x1084df, _0x40312e);
return true;
} catch ({
message: _0x2d97a7
}) {
return void _0x4eb228(_0x2d97a7);
}
}
};
this.destroy = () => {
if (!_0x5e62e6) {
_0x4eb228("Destroy");
_0x5e62e6 = true;
clearInterval(_0x3dd8c0);
_0x3dd8c0 = null;
document.head.removeChild(_0x180d2d);
if (_0x4ee033 && _0x291f70) {
try {
_0x291f70.removeChild(_0x4ee033);
} catch ({
message: _0xc3d070
}) {
_0x4eb228("[ERR] %s", _0xc3d070);
}
_0x4ee033 = null;
_0x291f70 = null;
}
return true;
}
};
};
},
0x3c8: (_0x5359d1, _0x45d1ff, _0x18d809) => {
const _0x4afcd3 = _0x18d809(0x23);
const _0x384c2c = _0x18d809(0x190);
_0x5359d1.exports = function () {
var _0x3626a2 = null;
var _0x5cde7a = null;
var _0x5d2fc9 = false;
var _0x57fac3 = false;
var _0xda847e = 0x0;
var _0x38b4f9 = 0x0;
const _0x2449cf = ["download", 'buffer'];
const _0x36bb9f = {};
var _0x42f138 = false;
const _0x2409f3 = document.createElement('style');
_0x2409f3.textContent = "\n .jw-icon-display[aria-label=\"Loading\"] .player-buffer-speed {\n display: block !important;\n }\n .player-buffer-speed {\n display:none;\n position:absolute;\n color:#fff;\n font-size: 12px;\n text-shadow: 1px 1px #4f4f4fb3;\n font-weight:bold;\n z-index:9999;\n animation: colorChange 5s linear infinite;\n }\n .player-download-speed {\n display:flex;\n align-items:center;\n margin-left: 5px;\n }\n .player-download-speed svg {\n width: 18px;\n animation: colorChange 5s linear infinite;\n }\n .player-download-speed span {\n font-size: 0.75em;\n }\n @keyframes colorChange {\n 0% { color: red; }\n 33% { color: green; }\n 66% { color: blue; }\n 100% { color: red; }\n }\n ";
document.head.appendChild(_0x2409f3);
this.setup = (_0x2b53bc = _0x2449cf) => {
if (!_0x42f138) {
_0x2b53bc.forEach(_0x4c25a5 => function (_0x552dbe) {
if (_0x2449cf.includes(_0x552dbe)) {
if ("download" == _0x552dbe) {
if (_0x5d2fc9) {
return true;
}
if ((_0x25ad1a = document.querySelector(".jw-reset .jw-spacer")) && !document.querySelector(".player-download-speed")) {
var _0x5d48d1 = "\n <div class=\"jw-reset player-download-speed\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" class=\"size-6\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z\"></path></svg>\n <span></span>\n </div>\n ";
_0x25ad1a.insertAdjacentHTML("beforebegin", _0x5d48d1);
}
_0x5cde7a = new _0x4afcd3();
return _0x5d2fc9 = true;
}
if (_0x57fac3) {
return true;
}
var _0x25ad1a;
if (_0x25ad1a = document.querySelector(".jw-icon-display")) {
if (!document.querySelector(".player-buffer-speed")) {
_0x5d48d1 = "<div class=\"jw-reset player-buffer-speed\"><span></span></div>";
_0x25ad1a.insertAdjacentHTML("beforeend", _0x5d48d1);
}
_0x3626a2 = new _0x4afcd3();
return _0x57fac3 = true;
}
}
}(_0x4c25a5));
return true;
}
};
this.download = (_0x2af97f = 0x0) => {
clearInterval(_0x36bb9f.downloadSpeed);
if (!_0x5d2fc9 || !Number.isInteger(_0x2af97f) || _0x42f138) {
return;
}
const _0x250af2 = document.querySelector(".player-download-speed span");
return _0x250af2 ? (_0xda847e = _0x5cde7a(_0x2af97f), _0x250af2.innerText = _0x384c2c.kbs(_0xda847e), _0x36bb9f.downloadSpeed = setInterval(() => {
_0xda847e = _0x5cde7a(0x0);
_0x250af2.innerText = _0x384c2c.kbs(_0xda847e);
if (!_0xda847e) {
clearInterval(_0x36bb9f.downloadSpeed);
}
}, 0x3e8), _0xda847e) : undefined;
};
this.buffer = (_0x194755 = 0x0) => {
clearInterval(_0x36bb9f.bufferSpeed);
if (!_0x57fac3 || !Number.isInteger(_0x194755) || _0x42f138) {
return;
}
const _0x3b4153 = document.querySelector(".player-buffer-speed span");
return _0x3b4153 ? (_0x38b4f9 = _0x3626a2(_0x194755), _0x3b4153.innerText = _0x384c2c.bps(_0x38b4f9), _0x36bb9f.downloadSpeed = setInterval(() => {
var _0x4b8507 = _0x3626a2(0x0);
_0x3b4153.innerText = _0x384c2c.bps(_0x4b8507);
if (!_0x4b8507) {
clearInterval(_0x36bb9f.bufferSpeed);
}
}, 0x3e8), _0x38b4f9) : undefined;
};
this.get = _0x55b8c0 => _0x2449cf.includes(_0x55b8c0) ? "download" == _0x55b8c0 ? _0xda847e : _0x38b4f9 : 0x0;
this.destroy = () => {
if (!_0x42f138) {
_0x42f138 = true;
_0x3626a2 = _0x5cde7a = () => {};
_0x57fac3 = _0x5d2fc9 = false;
document.head.removeChild(_0x2409f3);
for (const _0xda65b8 in _0x36bb9f) {
clearInterval(_0x36bb9f[_0xda65b8]);
delete _0x36bb9f[_0xda65b8];
}
}
};
};
},
0x243: (_0x507562, _0x1076f8, _0xc49f1b) => {
const _0xec42c9 = _0xc49f1b(0x341)('tracker');
_0x507562.exports = function (_0x987004 = {}) {
const {
options: {
slug: _0x4da5b2,
md5_id: _0x1a1c53,
user_id: _0x285d71
}
} = _0x987004 || {};
const _0x614d80 = !!window.WebSocket;
var _0x2e4476 = null;
var _0x2dfced = null;
var _0x22c265 = false;
this.start = (_0x31b8ad = null) => {
if (_0x31b8ad && _0x614d80 && !_0x22c265) {
(_0x2e4476 = new WebSocket(_0x31b8ad, [])).binaryType = "arraybuffer";
_0x2e4476.onopen = () => {
_0xec42c9("Connect open");
var _0x7acabe = {
action: "info",
"slug": _0x4da5b2,
"md5_id": _0x1a1c53,
"user_id": _0x285d71
};
var _0x1a6710 = JSON.stringify(_0x7acabe);
_0x2e4476.send(_0x1a6710);
_0x2dfced = setInterval(() => _0x2e4476.send(_0x1a6710), 0x2710);
};
_0x2e4476.onmessage = _0x13d183 => {};
_0x2e4476.onclose = () => {
_0xec42c9("Close connect");
clearInterval(_0x2dfced);
if (!_0x22c265) {
setTimeout(() => this.start(_0x31b8ad), 0xbb8);
}
};
_0x2e4476.onerror = ({
type: _0x190664
}) => {
clearInterval(_0x2dfced);
_0xec42c9(_0x190664);
};
return _0x2e4476;
}
};
this.destroy = () => {
if (!_0x22c265) {
_0x22c265 = true;
clearInterval(_0x2dfced);
_0x2e4476?.["close"]();
_0x2e4476 = null;
}
};
};
},
0x240: (_0x1f2dec, _0x36b239, _0x17f5cd) => {
const _0x325a04 = _0x17f5cd(0x25b);
const _0x3b8214 = window.atob;
_0x1f2dec.exports = () => {
window.atob = new Proxy(_0x3b8214, {
'apply'(_0x41fdf6, _0x4113e8, _0x518115) {
var _0x4d0a10 = _0x518115[0x0];
return /_$/.test(_0x4d0a10) ? _0x325a04.decode(_0x4d0a10.replace(/_/g, '')) : _0x41fdf6.apply(_0x4113e8, _0x518115);
}
});
};
}
};
var _0x51c013 = {};
function _0x321a16(_0x16d7cd) {
var _0x370421 = _0x51c013[_0x16d7cd];
if (undefined !== _0x370421) {
return _0x370421.exports;
}
var _0x2642ae = {
'exports': {}
};
var _0x163834 = _0x51c013[_0x16d7cd] = _0x2642ae;
_0x1d1056[_0x16d7cd].call(_0x163834.exports, _0x163834, _0x163834.exports, _0x321a16);
return _0x163834.exports;
}
_0x321a16.g = function () {
if ('object' == typeof globalThis) {
return globalThis;
}
try {
return this || new Function("return this")();
} catch (_0x2069db) {
if ("object" == typeof window) {
return window;
}
}
}();
const _0x5ac7e6 = _0x321a16(0x2c);
const _0x5ddb3f = _0x321a16(0xdb);
// _0x321a16(0x174)();
_0x321a16(0x240)();
window.SoTrym = _0x84f630 => new _0x5ac7e6(_0x84f630);
new _0x5ddb3f(false).register();
})();Editor is loading...
Leave a Comment