diff --git a/index.html b/index.html index ddea88f..b02ff63 100644 --- a/index.html +++ b/index.html @@ -28,5 +28,6 @@ + diff --git a/public/static/tums-player/decoder.worker.js b/public/static/tums-player/decoder.worker.js index da9fed2..523be39 100644 --- a/public/static/tums-player/decoder.worker.js +++ b/public/static/tums-player/decoder.worker.js @@ -21,16 +21,19 @@ var Module = {}; postMessage({ hasInstalled: true }); const initVideoDecoder = () => { + if (videoDecoder && videoDecoder.state === 'configured') { + videoDecoder.close(); + } videoDecoder = new VideoDecoder({ output: async (frame) => { let { timestamp, format, codedWidth, codedHeight } = frame; let param = dataParams[timestamp] || {}; - postMessage({ data: frame, width: codedWidth, height: codedHeight, timestamp, seq: param.seq, format }, [frame]); + postMessage({ data: frame, type: 'webcodecs', width: codedWidth, height: codedHeight, timestamp, seq: param.seq, pts: param.pts, format }, [frame]); frame.close(); delete dataParams[timestamp]; }, error: (err) => { - console.log('video decoder error: ', err); + console.log('video decoder error: ', err, videoDecoder.state); postMessage({ decodeError: err, state: videoDecoder.state }); } }); @@ -42,7 +45,7 @@ const initWasmDecoder = (scripts = [], wasmBinary) => { self.importScripts(...scripts); Module.onRuntimeInitialized = function () { - Module._hevc_decoder_init(); + Module._decoder_init(); this.bufferLen = 2304 * 1296 * 8; inputBuffer = Module._malloc(this.bufferLen); outputBuffer = Module._malloc(this.bufferLen); @@ -86,7 +89,7 @@ this.onmessage = async function (event) { } let chunk = new Uint8Array(event.data.data); - let { code_type, pts, timestamp, seq, type } = event.data; + let { code_type, timestamp, seq, type, pts } = event.data; if (decoderType === 'webcodecs') { if (videoDecoder.state === 'unconfigured' || videoDecoder.state === 'closed') return; @@ -97,27 +100,33 @@ this.onmessage = async function (event) { data: chunk }); videoDecoder.decode(encodedVideoChunk); - dataParams[timestamp] = { timestamp, seq, type }; + dataParams[timestamp] = { timestamp, seq, type, pts }; } else { Module.HEAP8.set(chunk, inputBuffer); if (seq) { dataSeq = seq; } - let len = Module._hevc_to_yuv(code_type, inputBuffer, chunk.length, outputBuffer, width, height); + let len = Module._decoder_to_yuv(code_type, inputBuffer, chunk.length, outputBuffer, width, height); if (len > 0) { let data1 = Module.HEAPU8.subarray(width, width + 4); let result_width = data1[0] + data1[1] * 256; let data2 = Module.HEAPU8.subarray(height, height + 4); let result_height = data2[0] + data2[1] * 256; - let outArray = Module.HEAPU8.subarray(outputBuffer, outputBuffer + len); - let outputData = new Uint8Array(outArray); - if (dataSeq) { - seq = dataSeq; - dataSeq = 0; + try { + let outArray = Module.HEAPU8.subarray(outputBuffer, outputBuffer + len); + let outputData = new Uint8Array(outArray); + if (dataSeq) { + seq = dataSeq; + dataSeq = 0; + } + postMessage({ data: outputData, type: 'wasm', pts: pts, width: result_width, height: result_height, timestamp, seq }, [outputData.buffer]); + } catch (error) { + postMessage({ wasm_error: 1 }); } - postMessage({ data: outputData, pts: pts, width: result_width, height: result_height, timestamp, seq }, [outputData.buffer]); + } else if (len < 0) { + postMessage({ wasm_error: len}); } } } else if (cmd === 'close') { @@ -125,5 +134,7 @@ this.onmessage = async function (event) { videoDecoder.close(); } close(); + } else if (cmd === 'flush') { + postMessage({ flushed: true }); } }; diff --git a/public/static/tums-player/hd_plugin_control_1.0.4.min.js b/public/static/tums-player/hd_plugin_control_1.0.4.min.js new file mode 100644 index 0000000..3fa2e42 --- /dev/null +++ b/public/static/tums-player/hd_plugin_control_1.0.4.min.js @@ -0,0 +1 @@ +(function(_0x58d227,_0x4a978b){var _0x538674=_0x62c9,_0xba57fa=_0x58d227();while(!![]){try{var _0x4685ed=-parseInt(_0x538674(0x176))/0x1+-parseInt(_0x538674(0x17a))/0x2+-parseInt(_0x538674(0x1d3))/0x3+-parseInt(_0x538674(0x1aa))/0x4*(parseInt(_0x538674(0x153))/0x5)+parseInt(_0x538674(0x1b5))/0x6*(-parseInt(_0x538674(0x1c2))/0x7)+-parseInt(_0x538674(0x1f2))/0x8*(-parseInt(_0x538674(0x1ed))/0x9)+parseInt(_0x538674(0x197))/0xa;if(_0x4685ed===_0x4a978b)break;else _0xba57fa['push'](_0xba57fa['shift']());}catch(_0x2bfc4f){_0xba57fa['push'](_0xba57fa['shift']());}}}(_0x4041,0xc1248));function _0x62c9(_0xb2f727,_0x500acb){var _0x40416f=_0x4041();return _0x62c9=function(_0x62c905,_0x10e0b8){_0x62c905=_0x62c905-0xe6;var _0x3a3ecf=_0x40416f[_0x62c905];return _0x3a3ecf;},_0x62c9(_0xb2f727,_0x500acb);}var HDPluginControl=(function(){'use strict';var _0x310b8f=_0x62c9;var _0x56c879=_0x310b8f(0x1fc)!=typeof globalThis?globalThis:'undefined'!=typeof window?window:_0x310b8f(0x1fc)!=typeof global?global:_0x310b8f(0x1fc)!=typeof self?self:{};function _0x8ec32b(_0xd67000){var _0x10605c=_0x310b8f;return _0x8ec32b=_0x10605c(0x109)==typeof Symbol&&_0x10605c(0x155)==typeof Symbol['iterator']?function(_0x3c4d9b){return typeof _0x3c4d9b;}:function(_0x1ae1a7){var _0x3d35a7=_0x10605c;return _0x1ae1a7&&_0x3d35a7(0x109)==typeof Symbol&&_0x1ae1a7[_0x3d35a7(0x178)]===Symbol&&_0x1ae1a7!==Symbol[_0x3d35a7(0x189)]?_0x3d35a7(0x155):typeof _0x1ae1a7;},_0x8ec32b(_0xd67000);}function _0xfa9576(_0x21ff17,_0x5b4b83){var _0x5c6f4e=_0x310b8f;if(!(_0x21ff17 instanceof _0x5b4b83))throw new TypeError(_0x5c6f4e(0x131));}function _0x4c323a(_0x4265f5,_0x4444e2){var _0x3274ef=_0x310b8f;for(var _0x431aa5=0x0;_0x431aa5<_0x4444e2[_0x3274ef(0x129)];_0x431aa5++){var _0x5df4ca=_0x4444e2[_0x431aa5];_0x5df4ca[_0x3274ef(0x1eb)]=_0x5df4ca[_0x3274ef(0x1eb)]||!0x1,_0x5df4ca['configurable']=!0x0;if('value'in _0x5df4ca)_0x5df4ca['writable']=!0x0;Object[_0x3274ef(0x141)](_0x4265f5,_0x5df4ca['key'],_0x5df4ca);}}function _0x6a1f6a(_0x1bda9c,_0x4533d9,_0x5f2b80){return _0x4533d9&&_0x4c323a(_0x1bda9c['prototype'],_0x4533d9),_0x5f2b80&&_0x4c323a(_0x1bda9c,_0x5f2b80),_0x1bda9c;}var _0xb8f37b,_0x3b85a9=new Uint8Array(0x10);function _0x15d9fd(){var _0x1b1fd8=_0x310b8f;if(!_0xb8f37b&&!(_0xb8f37b='undefined'!=typeof crypto&&crypto[_0x1b1fd8(0x136)]&&crypto['getRandomValues'][_0x1b1fd8(0x175)](crypto)||_0x1b1fd8(0x1fc)!=typeof msCrypto&&_0x1b1fd8(0x109)==typeof msCrypto[_0x1b1fd8(0x136)]&&msCrypto[_0x1b1fd8(0x136)][_0x1b1fd8(0x175)](msCrypto)))throw new Error(_0x1b1fd8(0x1af));return _0xb8f37b(_0x3b85a9);}var _0x5739dc=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _0x57e5e2(_0xeaa074){var _0x312574=_0x310b8f;return'string'==typeof _0xeaa074&&_0x5739dc[_0x312574(0x113)](_0xeaa074);}for(var _0x458d4f=[],_0x3932ca=0x0;_0x3932ca<0x100;++_0x3932ca)_0x458d4f['push']((_0x3932ca+0x100)[_0x310b8f(0x135)](0x10)['substr'](0x1));function _0x425b6f(_0x160e02,_0x4ae960,_0x41c024){var _0x2183b6=_0x310b8f,_0x546aef=(_0x160e02=_0x160e02||{})[_0x2183b6(0x19e)]||(_0x160e02[_0x2183b6(0x11f)]||_0x15d9fd)();if(_0x546aef[0x6]=0xf&_0x546aef[0x6]|0x40,_0x546aef[0x8]=0x3f&_0x546aef[0x8]|0x80,_0x4ae960){_0x41c024=_0x41c024||0x0;for(var _0x3c33d2=0x0;_0x3c33d2<0x10;++_0x3c33d2)_0x4ae960[_0x41c024+_0x3c33d2]=_0x546aef[_0x3c33d2];return _0x4ae960;}return function(_0x4e61e6){var _0x495ab4=_0x2183b6,_0x1188c7=arguments['length']>0x1&&void 0x0!==arguments[0x1]?arguments[0x1]:0x0,_0x66e0c5=(_0x458d4f[_0x4e61e6[_0x1188c7+0x0]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x1]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x2]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x3]]+'-'+_0x458d4f[_0x4e61e6[_0x1188c7+0x4]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x5]]+'-'+_0x458d4f[_0x4e61e6[_0x1188c7+0x6]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x7]]+'-'+_0x458d4f[_0x4e61e6[_0x1188c7+0x8]]+_0x458d4f[_0x4e61e6[_0x1188c7+0x9]]+'-'+_0x458d4f[_0x4e61e6[_0x1188c7+0xa]]+_0x458d4f[_0x4e61e6[_0x1188c7+0xb]]+_0x458d4f[_0x4e61e6[_0x1188c7+0xc]]+_0x458d4f[_0x4e61e6[_0x1188c7+0xd]]+_0x458d4f[_0x4e61e6[_0x1188c7+0xe]]+_0x458d4f[_0x4e61e6[_0x1188c7+0xf]])[_0x495ab4(0x1da)]();if(!_0x57e5e2(_0x66e0c5))throw TypeError(_0x495ab4(0x112));return _0x66e0c5;}(_0x546aef);}var _0x11dec4=(function(){var _0x369184=_0x310b8f;function _0x35d0ef(){_0xfa9576(this,_0x35d0ef);}return _0x6a1f6a(_0x35d0ef,[{'key':_0x369184(0x13c),'value':function(){var _0xa79ffe=_0x369184,_0x361443=navigator[_0xa79ffe(0x1cc)][_0xa79ffe(0x1da)](),_0x4d07c3=/(edge)[/]([\w.]+)/[_0xa79ffe(0x146)](_0x361443)||/(chrome)[/]([\w.]+)/['exec'](_0x361443)||/(safari)[/]([\w.]+)/[_0xa79ffe(0x146)](_0x361443)||/(opera)(?:.*version)?[/]([\w.]+)/[_0xa79ffe(0x146)](_0x361443)||/(trident.*rv:)([\w.]+)/[_0xa79ffe(0x146)](_0x361443)||/(msie) ([\w.]+)/['exec'](_0x361443)||_0x361443[_0xa79ffe(0x1df)]('compatible')<0x0&&/(mozilla)(?:.*? rv:([\w.]+))?/['exec'](_0x361443)||[_0xa79ffe(0x10a),'0'];_0x4d07c3[_0xa79ffe(0x129)]>0x0&&_0x4d07c3[0x1]['indexOf'](_0xa79ffe(0x19d))>-0x1&&(_0x4d07c3[0x1]='msie');var _0x57f953={};return _0x57f953[_0x4d07c3[0x1]]=!0x0,_0x57f953[_0xa79ffe(0x12a)]=_0x4d07c3[0x2],_0x57f953;}},{'key':'getCreateWndMode','value':function(){var _0x1814b0=_0x369184,_0x5c4b83=navigator[_0x1814b0(0x1cc)],_0xc0c6ea=navigator[_0x1814b0(0x1f6)],_0x40410c=_0x1814b0(0x1cb)===_0xc0c6ea||_0x1814b0(0x184)===_0xc0c6ea||_0x1814b0(0x1d6)===_0xc0c6ea,_0x15ce1c=this['browser'](),_0x337692=!0x0;return window['top']!==window?_0x337692=!0x1:_0x40410c?(_0x5c4b83['indexOf'](_0x1814b0(0xf9))>-0x1&&_0x15ce1c[_0x1814b0(0x1fd)]&&(_0x337692=!0x1),_0x15ce1c[_0x1814b0(0x1c9)]&&(_0x337692=!0x1)):_0x337692=!0x1,_0x337692;}},{'key':_0x369184(0x1b8),'value':function(_0x5a158f,_0x2708b7,_0x412f04,_0xf9b28b){var _0x516c66=_0x369184,_0x552a06=0x0,_0x352a84=0x0,_0x5469d1=_0x5a158f[_0x516c66(0xed)][_0x516c66(0x14d)],_0x522ada=_0x5a158f['getBoundingClientRect'](),_0x35bcc2=window[_0x516c66(0x15b)](_0x5a158f),_0x58f305={'top':_0x522ada[_0x516c66(0x1c8)]+parseInt(_0x35bcc2[_0x516c66(0x1a4)][_0x516c66(0x1e8)](0x0,-0x2),0xa),'left':_0x522ada[_0x516c66(0x10e)]+parseInt(_0x35bcc2[_0x516c66(0x15e)][_0x516c66(0x1e8)](0x0,-0x2),0xa)},_0x68d0dc=this['getDevicePixelRatio']();if(_0x2708b7){if(this['browser']()[_0x516c66(0x174)]){var _0x436eec=_0x5469d1[_0x516c66(0x1ac)]-_0x5469d1[_0x516c66(0x147)]-(_0x5469d1['screenLeft']-_0x5469d1[_0x516c66(0x19c)]);_0x552a06=_0x58f305[_0x516c66(0x10e)]+(_0x5469d1[_0x516c66(0x104)]-_0x5469d1[_0x516c66(0x19c)])-_0x436eec,_0x352a84=_0x58f305['top']+(_0x5469d1[_0x516c66(0x17f)]-_0x5469d1[_0x516c66(0x12b)]);}else{var _0xf94c74=0x0,_0x3b5df4=0x0,_0x5d79d2=this['browser']()['chrome']?_0x5469d1['outerWidth']/_0x68d0dc:_0x5469d1[_0x516c66(0x1ac)],_0x3f7017=this[_0x516c66(0x13c)]()['chrome']?_0x5469d1[_0x516c66(0x190)]/_0x68d0dc:_0x5469d1[_0x516c66(0x190)],_0x5c2eaa=Math[_0x516c66(0x137)]((_0x5d79d2-_0x5469d1['innerWidth'])/0x2);this[_0x516c66(0x1a7)]()&&this[_0x516c66(0x13c)]()[_0x516c66(0x158)]&&(-0x8===_0x5c2eaa||_0x5469d1[_0x516c66(0x182)][_0x516c66(0x191)]-_0x5469d1[_0x516c66(0x190)]==0x0?-0x8===_0x5c2eaa&&(_0xf94c74=0x8,_0x3b5df4=0x8):0x8===_0x5c2eaa?_0xf94c74=-0x5:0x0===_0x5c2eaa&&(_0x3b5df4=0x8)),this[_0x516c66(0x13c)]()['mozilla']&&(0x7===_0x5c2eaa||0x6===_0x5c2eaa?_0xf94c74=-0x6:0x8===_0x5c2eaa&&(_0xf94c74=-0x8)),_0x552a06=_0x58f305[_0x516c66(0x10e)]+_0x5c2eaa+_0xf94c74,_0x352a84=_0x58f305[_0x516c66(0x1c8)]+(_0x3f7017-_0x5469d1[_0x516c66(0x18e)]-_0x5c2eaa)+_0x3b5df4;}}else{var _0x4758b9=window['top'],_0x7df25b=0x0,_0x2aa1bf=0x0,_0x4a1115=0x0,_0xf324dd=0x0;try{_0x7df25b=_0x4758b9[_0x516c66(0x1ac)]-_0x4758b9['innerWidth'],_0x2aa1bf=_0x4758b9['outerHeight']-_0x4758b9['innerHeight'],_0x4a1115=_0x4758b9['screenLeft']-_0x4758b9[_0x516c66(0x19c)],_0xf324dd=_0x4758b9['screenTop']-_0x4758b9[_0x516c66(0x12b)];}catch(_0x78ed80){_0x7df25b=_0x412f04[_0x516c66(0x1ac)]-_0x412f04['innerWidth'],_0x2aa1bf=_0x412f04[_0x516c66(0x190)]-_0x412f04[_0x516c66(0x18e)],_0x4a1115=_0x412f04['screenLeft']-_0x412f04[_0x516c66(0x19c)],_0xf324dd=_0x412f04[_0x516c66(0x17f)]-_0x412f04[_0x516c66(0x12b)];}if(this['browser']()[_0x516c66(0x174)])0x0,_0x552a06=_0x58f305[_0x516c66(0x10e)]+_0x4a1115-0x0,_0x352a84=_0x58f305[_0x516c66(0x1c8)]+_0xf324dd;else{var _0x18c3fa=_0x7df25b/0x2;_0x552a06=_0x58f305[_0x516c66(0x10e)]+_0x18c3fa,_0x352a84=_0x58f305[_0x516c66(0x1c8)]+(_0x2aa1bf-_0x18c3fa),this[_0x516c66(0x1a7)]()&&this[_0x516c66(0x13c)]()[_0x516c66(0x158)]&&0x0===_0x18c3fa&&(_0x552a06+=0x8,_0x352a84+=0x8);}_0x552a06+=_0xf9b28b[_0x516c66(0x10e)],_0x352a84+=_0xf9b28b[_0x516c66(0x1c8)];}return this['isWindows']()&&(this[_0x516c66(0x13c)]()['chrome']||this[_0x516c66(0x13c)]()[_0x516c66(0x12e)])&&(_0x552a06=_0x58f305[_0x516c66(0x10e)],_0x352a84=_0x58f305['top'],_0x552a06+=_0xf9b28b['left'],_0x352a84+=_0xf9b28b['top']),this['browser']()['msie']&&_0x516c66(0x144)===this['browser']()[_0x516c66(0x12a)]&&(_0x552a06+=_0x5469d1[_0x516c66(0x1d0)],_0x352a84+=_0x5469d1[_0x516c66(0x100)]),{'left':_0x552a06=Math[_0x516c66(0x137)](_0x552a06*_0x68d0dc),'top':_0x352a84=Math[_0x516c66(0x137)](_0x352a84*_0x68d0dc)};}},{'key':'detectPort','value':function(_0x1d010f,_0x57ceff,_0x1a12f1){var _0x268949=_0x369184;if(_0x1d010f!==_0x57ceff){const _0x47cd3a=_0x268949(0x116)+_0x1d010f+'_'+_0x57ceff,_0x333a4b=sessionStorage['getItem'](_0x47cd3a),_0x23d75b=[];for(let _0x5b686b=_0x1d010f;_0x5b686b<=_0x57ceff;_0x5b686b++){_0x5b686b!==parseInt(_0x333a4b)&&_0x23d75b['push'](_0x5b686b);}_0x333a4b&&_0x23d75b[_0x268949(0x1f9)](parseInt(_0x333a4b));const _0x487748=[];let _0x5a333e=0x0;const _0x2e4ff8=new Date()[_0x268949(0xe9)](),_0x4af6fe=_0x39e86f=>{var _0xfcb47d=_0x268949;const _0x5f6e63=new WebSocket(_0xfcb47d(0x1c1)+_0x39e86f+'/ws?update='+_0x2e4ff8);_0x5f6e63[_0xfcb47d(0x143)]=()=>{var _0x5e748d=_0xfcb47d;sessionStorage[_0x5e748d(0x1ef)](_0x47cd3a,_0x39e86f),_0x1a12f1[_0x5e748d(0x156)](_0x39e86f),_0x487748[_0x5e748d(0x192)](_0x5d3451=>_0x5d3451['close']());},_0x5f6e63['onerror']=()=>{var _0x23eca0=_0xfcb47d;_0x5a333e++,_0x5a333e===_0x23d75b[_0x23eca0(0x129)]&&_0x1a12f1[_0x23eca0(0x102)]();},_0x5f6e63[_0xfcb47d(0x1cd)]=()=>{},_0x487748[_0xfcb47d(0x1a2)](_0x5f6e63);};_0x23d75b[_0x268949(0x192)](_0x358054=>_0x4af6fe(_0x358054));}else _0x1a12f1['success'](_0x1d010f);}},{'key':'isMacOS','value':function(){var _0x4ae68a=_0x369184;return'MacIntel'===navigator[_0x4ae68a(0x1f6)];}},{'key':_0x369184(0x1a7),'value':function(){var _0x7102e7=_0x369184;return navigator[_0x7102e7(0x1f6)][_0x7102e7(0x1df)]('Win')>-0x1;}},{'key':'getDevicePixelRatio','value':function(){var _0x5d1cde=_0x369184,_0x355390=0x1;return this[_0x5d1cde(0x121)]()||(_0x355390=window[_0x5d1cde(0x19a)]||window['screen'][_0x5d1cde(0x1a0)]/window[_0x5d1cde(0x182)][_0x5d1cde(0x161)]),_0x355390;}}]),_0x35d0ef;}()),_0x19982e=new _0x11dec4(),_0x355067=_0x310b8f(0x118);function _0x4ca4ba(_0x16586a){var _0x1065ab=_0x310b8f;window[_0x1065ab(0x1c8)][_0x1065ab(0x1c4)][_0x1065ab(0x16b)]=window[_0x1065ab(0x1c8)][_0x1065ab(0x1c4)][_0x1065ab(0x16b)]+_0x355067+_0x16586a;}function _0x2ac3f8(_0x2fd6aa){var _0x475d56=_0x310b8f;window[_0x475d56(0x1c8)][_0x475d56(0x1c4)][_0x475d56(0x16b)]=window[_0x475d56(0x1c8)][_0x475d56(0x1c4)][_0x475d56(0x16b)][_0x475d56(0x1f0)](_0x355067+_0x2fd6aa,'');}function _0xfd3016(_0x1246d6,_0x47fde6){(_0x47fde6||_0x4ca4ba)(_0x1246d6);}function _0x204b6a(_0x215398,_0x50194d){(_0x50194d||_0x2ac3f8)(_0x215398);}var _0x48ea84=(function(){var _0x5f57a2=_0x310b8f;function _0x19a031(_0x5dc719){var _0x25f5d6=_0x62c9;_0xfa9576(this,_0x19a031),this[_0x25f5d6(0x1c6)]=Object[_0x25f5d6(0x123)]({'iPort':-0x1,'cbConnectSuccess':null,'cbConnectError':null,'cbConnectClose':null},_0x5dc719),this['oWebSocket']=null,this[_0x25f5d6(0x196)]='',this[_0x25f5d6(0x17b)]='',this['oRequestList']={},this['bNormalClose']=![],this[_0x25f5d6(0x133)]={},this[_0x25f5d6(0xf0)]={},this[_0x25f5d6(0x203)]={},this['oUIControlCallback']={},this[_0x25f5d6(0x160)]();}return _0x6a1f6a(_0x19a031,[{'key':'init','value':function(){var _0x282315=_0x62c9,_0x120289=this,_0x205e4f=function(){var _0x3ba2ec=_0x62c9;_0x120289['oOptions'][_0x3ba2ec(0x13b)]&&_0x120289[_0x3ba2ec(0x1c6)][_0x3ba2ec(0x13b)](_0x120289[_0x3ba2ec(0xe8)]),_0x120289[_0x3ba2ec(0xe8)]=![];};_0x120289['oWebSocket']=new WebSocket(_0x282315(0x1c1)[_0x282315(0x12c)](_0x120289['oOptions'][_0x282315(0x12d)])),_0x120289[_0x282315(0x1bd)]['onerror']=function(){},_0x120289[_0x282315(0x1bd)][_0x282315(0x143)]=function(){var _0x22395c=_0x282315,_0x2bea69={'serial':_0x425b6f(),'cmd':_0x22395c(0x1e2)},_0x110785=JSON['stringify'](_0x2bea69);_0x120289[_0x22395c(0x1bd)][_0x22395c(0x1f1)](_0x110785);},_0x120289[_0x282315(0x1bd)][_0x282315(0x16a)]=function(_0x3fae84){var _0x5439b5=_0x282315,_0x52e43e=_0x3fae84[_0x5439b5(0x10c)],_0x8c40b3=JSON[_0x5439b5(0xff)](_0x52e43e),_0x113eef=_0x8c40b3[_0x5439b5(0x142)];if(_0x113eef===undefined&&_0x8c40b3[_0x5439b5(0x14e)]===undefined)_0x120289[_0x5439b5(0x196)]=_0x8c40b3['uuid'],_0x120289[_0x5439b5(0x17b)]=_0x8c40b3[_0x5439b5(0x12a)],_0x120289[_0x5439b5(0x1e3)]=_0x8c40b3[_0x5439b5(0x1ec)],_0x120289[_0x5439b5(0x1c6)][_0x5439b5(0x1de)]&&_0x120289[_0x5439b5(0x1c6)][_0x5439b5(0x1de)]();else{if(_0x8c40b3[_0x5439b5(0x14e)]!==undefined)_0x120289['parseCmd'](_0x8c40b3);else _0x120289[_0x5439b5(0x164)][_0x113eef]!==undefined&&(_0x8c40b3['error_code']===0x0?_0x120289[_0x5439b5(0x164)][_0x113eef][_0x5439b5(0x1ee)](_0x8c40b3):_0x120289[_0x5439b5(0x164)][_0x113eef][_0x5439b5(0x11d)](_0x8c40b3),delete _0x120289[_0x5439b5(0x164)][_0x113eef]);}},_0x120289['oWebSocket'][_0x282315(0x1cd)]=function(){var _0x9234ef=_0x282315;_0x120289[_0x9234ef(0x1bd)]=null,_0x19982e[_0x9234ef(0x13c)]()[_0x9234ef(0x1fd)]?setTimeout(function(){_0x205e4f();},0x64):_0x205e4f();};}},{'key':_0x5f57a2(0x13a),'value':function(){var _0x22eac4=_0x5f57a2;return this[_0x22eac4(0x196)];}},{'key':'sendRequest','value':function(_0x46801f){var _0xb26243=this;return new Promise(function(_0x213e59,_0x2df045){var _0x51c839=_0x62c9,_0x208504=_0x425b6f();_0x46801f[_0x51c839(0x142)]=_0x208504,_0xb26243[_0x51c839(0x164)][_0x208504]={'resolve':_0x213e59,'reject':_0x2df045},_0x46801f[_0x51c839(0x15f)]=_0xb26243[_0x51c839(0x196)],_0x46801f[_0x51c839(0x1c3)]=''[_0x51c839(0x12c)](new Date()[_0x51c839(0xe9)]());var _0x19b54f=JSON['stringify'](_0x46801f);_0xb26243[_0x51c839(0x1bd)]&&WebSocket['OPEN']===_0xb26243[_0x51c839(0x1bd)][_0x51c839(0x18c)]?_0xb26243[_0x51c839(0x1bd)]['send'](_0x19b54f):_0x2df045();});}},{'key':_0x5f57a2(0x1fe),'value':function(_0x238343){var _0x23230f=_0x5f57a2,_0x357b33=_0x238343[_0x23230f(0x14e)]['split']('.'),_0x4a8f15={'window':this[_0x23230f(0x133)],'play':this['oPlayCallback'],'serial':this[_0x23230f(0x203)],'ui':this[_0x23230f(0x179)]},_0x3378f9=_0x4a8f15[_0x357b33[0x0]];_0x3378f9&&_0x3378f9(_0x238343['response']);}},{'key':_0x5f57a2(0x186),'value':function(_0x54f32d){var _0x4f6613=_0x5f57a2;this[_0x4f6613(0x133)]=_0x54f32d;}},{'key':_0x5f57a2(0xf2),'value':function(_0x33cadf){var _0x51ae63=_0x5f57a2;this[_0x51ae63(0xf0)]=_0x33cadf;}},{'key':'disconnect','value':function(){var _0x562251=_0x5f57a2;this[_0x562251(0xe8)]=!0x0,this[_0x562251(0x1bd)]&&WebSocket['OPEN']===this['oWebSocket']['readyState']&&(this[_0x562251(0x1bd)]['close'](),delete this['oWebSocket']);}}]),_0x19a031;}()),_0x393060=(function(){var _0xf021c2=_0x310b8f;function _0x85d1fc(_0x2bff20){var _0x4af0f9=_0x62c9;_0xfa9576(this,_0x85d1fc),this['oOptions']=Object[_0x4af0f9(0x123)]({'szPluginContainer':'','cbConnectSuccess':null,'cbConnectError':null,'cbConnectClose':null,'iServicePortStart':-0x1,'iServicePortEnd':-0x1},_0x2bff20),this[_0x4af0f9(0x12d)]=-0x1,this[_0x4af0f9(0x1be)]=null,this[_0x4af0f9(0x1e7)]=!0x1,this[_0x4af0f9(0x188)]={},this[_0x4af0f9(0x160)]();}return _0x6a1f6a(_0x85d1fc,[{'key':_0xf021c2(0x160),'value':function(){var _0x5e0bbd=_0xf021c2,_0xb064ca=this;_0x19982e[_0x5e0bbd(0x168)](_0xb064ca[_0x5e0bbd(0x1c6)][_0x5e0bbd(0x1ad)],_0xb064ca['oOptions'][_0x5e0bbd(0x1e0)],{'success':function(_0x485643){var _0x650c6e=_0x5e0bbd;_0xb064ca[_0x650c6e(0x12d)]=_0x485643;var _0x2c3693=_0x19982e['browser']();if(_0x2c3693[_0x650c6e(0x174)])_0x650c6e(0x1a1)===_0x2c3693['version']?_0x650c6e(0x1c0)===window[_0x650c6e(0xe7)][_0x650c6e(0x119)]?_0xb064ca['oRequest']=new Pp({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x13b)]}):_0xb064ca['oRequest']=new _0x48ea84({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x13b)]}):_0xb064ca[_0x650c6e(0x1be)]=new Ep({'szPluginContainer':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1e4)],'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca['oOptions'][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x13b)]});else{if(_0x650c6e(0x1c0)===window[_0x650c6e(0xe7)]['protocol']){if(_0x2c3693[_0x650c6e(0x158)])try{_0xb064ca['oRequest']=new _0x48ea84({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)]['cbConnectError'],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)]['cbConnectClose']});}catch(_0x5db6b1){_0xb064ca[_0x650c6e(0x1be)]=new Pp({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca['oOptions'][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca['oOptions'][_0x650c6e(0x13b)]});}else _0xb064ca[_0x650c6e(0x1be)]=new Pp({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x13b)]});}else _0x650c6e(0x154)in window&&(_0xb064ca[_0x650c6e(0x1be)]=new _0x48ea84({'iPort':_0xb064ca[_0x650c6e(0x12d)],'cbConnectSuccess':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1de)],'cbConnectError':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x1a5)],'cbConnectClose':_0xb064ca[_0x650c6e(0x1c6)][_0x650c6e(0x13b)]}));}_0xb064ca[_0x650c6e(0x1e7)]=!![];for(var _0x49efc4 in _0xb064ca['oCallbacks']){_0xb064ca['oRequest'][_0x49efc4](_0xb064ca[_0x650c6e(0x188)][_0x49efc4]);}},'error':function(){var _0x17b45c=_0x5e0bbd;_0xb064ca['oOptions'][_0x17b45c(0x1a5)]&&_0xb064ca[_0x17b45c(0x1c6)]['cbConnectError']();}});}},{'key':_0xf021c2(0x13a),'value':function(){var _0x402ea6=_0xf021c2;return this[_0x402ea6(0x1be)]['getRequestUUID']();}},{'key':_0xf021c2(0x1ab),'value':function(_0x229b41){var _0xd36bf=_0xf021c2;if(!_0x229b41||typeof _0x229b41!=='object')throw new Error(_0xd36bf(0x1fb));return this[_0xd36bf(0x1be)][_0xd36bf(0x1f5)]({'cmd':_0xd36bf(0x120),'rect':{'left':_0x229b41[_0xd36bf(0x10e)],'top':_0x229b41['top'],'width':_0x229b41[_0xd36bf(0xfc)],'height':_0x229b41[_0xd36bf(0x191)]},'playMode':parseInt(_0x229b41[_0xd36bf(0x17c)]||0x0),'uuid':_0x229b41['uuid'],'embed':_0x229b41['embed'],'browserName':_0x229b41[_0xd36bf(0x195)],'toolbarMask':_0x229b41[_0xd36bf(0x1cf)]});}},{'key':_0xf021c2(0x180),'value':function(_0x42460e){var _0x2b9eac=_0xf021c2;return this[_0x2b9eac(0x1be)][_0x2b9eac(0x1f5)]({'cmd':_0x2b9eac(0x187)});}},{'key':_0xf021c2(0x106),'value':function(){var _0x388d0a=_0xf021c2;return this[_0x388d0a(0x1be)][_0x388d0a(0x1f5)]({'cmd':_0x388d0a(0x16c)});}},{'key':'hideWnd','value':function(){var _0x252ecb=_0xf021c2;return this['oRequest'][_0x252ecb(0x1f5)]({'cmd':'window.hideWindow'});}},{'key':_0xf021c2(0x1b7),'value':function(_0x4294f9,_0x379d4c,_0x17e674,_0x50f5bb){var _0x5d1be3=_0xf021c2;return this['oRequest'][_0x5d1be3(0x1f5)]({'cmd':_0x5d1be3(0x105),'rect':{'left':_0x4294f9,'top':_0x379d4c,'width':_0x17e674,'height':_0x50f5bb}});}},{'key':_0xf021c2(0x167),'value':function(_0x28c1da,_0x15d5b6,_0x198347,_0x2bdba9,_0x121b24){var _0x209b3b=this;return new Promise(function(_0x397069,_0x4b97ec){var _0x45f987=_0x62c9;_0x209b3b[_0x45f987(0x1be)]!==null?_0x209b3b[_0x45f987(0x1be)][_0x45f987(0x1f5)]({'cmd':_0x45f987(0x1d4),'rect':{'left':_0x28c1da,'top':_0x15d5b6,'width':_0x198347,'height':_0x2bdba9},'round':_0x121b24})[_0x45f987(0x1bf)](function(_0x7707df){_0x397069(_0x7707df);},function(_0x509072){_0x4b97ec(_0x509072);}):_0x4b97ec();});}},{'key':_0xf021c2(0xf3),'value':function(_0x2255bc,_0x3ceeb9,_0xfebd12,_0x4e7de0,_0x28fca9){var _0x21fb0f=this;return new Promise(function(_0x14d197,_0xa24d11){var _0x3064ad=_0x62c9;_0x21fb0f[_0x3064ad(0x1be)]!==null?_0x21fb0f[_0x3064ad(0x1be)][_0x3064ad(0x1f5)]({'cmd':_0x3064ad(0x202),'rect':{'left':_0x2255bc,'top':_0x3ceeb9,'width':_0xfebd12,'height':_0x4e7de0},'round':_0x28fca9})['then'](function(_0x48bdf4){_0x14d197(_0x48bdf4);},function(_0x32a519){_0xa24d11(_0x32a519);}):_0xa24d11();});}},{'key':_0xf021c2(0x11b),'value':function(){var _0x470666=_0xf021c2;return this[_0x470666(0x1be)][_0x470666(0x1f5)]({'cmd':_0x470666(0x1c5)});}},{'key':_0xf021c2(0x117),'value':function(_0x2d682a){var _0x510d5b=_0xf021c2;return this[_0x510d5b(0x1be)][_0x510d5b(0x1f5)]({'cmd':'window.setWindowPage','page':parseInt(_0x2d682a)});}},{'key':_0xf021c2(0x139),'value':function(_0x76505d){var _0x3f775d=_0xf021c2;return this[_0x3f775d(0x1be)][_0x3f775d(0x1f5)]({'cmd':_0x3f775d(0x183),'pageNum':parseInt(_0x76505d)});}},{'key':_0xf021c2(0x19f),'value':function(_0x53828d){var _0x265998=_0xf021c2;return this[_0x265998(0x1be)]['sendRequest']({'cmd':'window.showWindowToolbar','show':parseInt(_0x53828d)});}},{'key':_0xf021c2(0x130),'value':function(){var _0x424c64=_0xf021c2;return this['oRequest'][_0x424c64(0x1f5)]({'cmd':_0x424c64(0xfb)});}},{'key':'showPlaybackTimeline','value':function(_0x55d86b){var _0x2c6f0b=_0xf021c2;return this[_0x2c6f0b(0x1be)][_0x2c6f0b(0x1f5)]({'cmd':_0x2c6f0b(0x1ca),'show':parseInt(_0x55d86b)});}},{'key':_0xf021c2(0x1fa),'value':function(){var _0x28a830=_0xf021c2;return this[_0x28a830(0x1be)][_0x28a830(0x1f5)]({'cmd':_0x28a830(0x1d2)});}},{'key':_0xf021c2(0x1d9),'value':function(){var _0x7cd5cf=_0xf021c2;return this['oRequest'][_0x7cd5cf(0x1f5)]({'cmd':_0x7cd5cf(0x1dc)});}},{'key':_0xf021c2(0xf5),'value':function(){var _0x11f3d2=_0xf021c2;return this[_0x11f3d2(0x1be)][_0x11f3d2(0x1f5)]({'cmd':'window.exitFullScreen'});}},{'key':'setCustomLayout','value':function(_0x278092){return this['oRequest']['sendRequest']({'cmd':'window.setCustomLayout','layout':_0x278092});}},{'key':'initAuthInfo','value':function(_0x3e3afb,_0x372500){var _0xb419c7=_0xf021c2;return this[_0xb419c7(0x1be)][_0xb419c7(0x1f5)]({'cmd':_0xb419c7(0x103),'appKey':_0x3e3afb,'secertKey':_0x372500});}},{'key':_0xf021c2(0xef),'value':function(){var _0x2a2f4b=_0xf021c2;if(this[_0x2a2f4b(0x1be)]['iServerType']===0x1)return this[_0x2a2f4b(0x1be)][_0x2a2f4b(0x1f5)]({'cmd':'play.startPreview','deviceQrCode':arguments[0x0],'deviceMac':arguments[0x1],'channelId':parseInt(arguments[0x2]),'windowIndex':parseInt(arguments[0x3]),'resolution':parseInt(arguments[0x4])});else{if(this[_0x2a2f4b(0x1be)][_0x2a2f4b(0x1e3)]===0x2)return this[_0x2a2f4b(0x1be)]['sendRequest']({'cmd':_0x2a2f4b(0x19b),'deviceId':arguments[0x0],'windowIndex':parseInt(arguments[0x1]),'resolution':parseInt(arguments[0x2]),'channelId':parseInt(arguments[0x3])});}}},{'key':_0xf021c2(0x173),'value':function(_0x354803){var _0x396f2c=_0xf021c2;return this[_0x396f2c(0x1be)]['sendRequest']({'cmd':'play.stopPlay','windowIndex':parseInt(_0x354803)});}},{'key':_0xf021c2(0x13e),'value':function(_0x38763e,_0x32c94c){var _0x5e8306=_0xf021c2;return this[_0x5e8306(0x1be)]['sendRequest']({'cmd':_0x5e8306(0x1ae),'windowIndex':parseInt(_0x38763e),'resolution':parseInt(_0x32c94c)});}},{'key':_0xf021c2(0x18a),'value':function(_0x28df02){var _0x58c2e9=_0xf021c2;return this[_0x58c2e9(0x1be)]['sendRequest']({'cmd':_0x58c2e9(0x1b3),'windowIndex':parseInt(_0x28df02)});}},{'key':'stopTalk','value':function(_0x48ecbf){var _0x115916=_0xf021c2;return this[_0x115916(0x1be)][_0x115916(0x1f5)]({'cmd':_0x115916(0x110),'windowIndex':parseInt(_0x48ecbf)});}},{'key':_0xf021c2(0x1ce),'value':function(_0x39dba9,_0x4b4d6e){var _0x38784c=_0xf021c2;if(this['oRequest']['iServerType']===0x1)return this['oRequest'][_0x38784c(0x1f5)]({'cmd':_0x38784c(0x162),'deviceQrCode':_0x39dba9,'deviceMac':_0x4b4d6e});}},{'key':_0xf021c2(0x18f),'value':function(){var _0x3459d3=_0xf021c2;if(this[_0x3459d3(0x1be)][_0x3459d3(0x1e3)]===0x1)return this[_0x3459d3(0x1be)][_0x3459d3(0x1f5)]({'cmd':'play.stopNVRTalk'});}},{'key':_0xf021c2(0x14f),'value':function(_0x48e4ca,_0x527034){var _0xd2e58b=_0xf021c2;if(this[_0xd2e58b(0x1be)][_0xd2e58b(0x1e3)]===0x1)return this['oRequest'][_0xd2e58b(0x1f5)]({'cmd':_0xd2e58b(0x114)});}},{'key':_0xf021c2(0x170),'value':function(){var _0xd58dba=_0xf021c2;if(this[_0xd58dba(0x1be)][_0xd58dba(0x1e3)]===0x1)return this['oRequest'][_0xd58dba(0x1f5)]({'cmd':_0xd58dba(0x1f7)});}},{'key':'startPlayback','value':function(_0x56ade8,_0x47e46b,_0x980972,_0x312219,_0x20b832,_0x4675ac,_0x1ad80e){var _0x141a36=_0xf021c2;if(this['oRequest'][_0x141a36(0x1e3)]===0x1)return this['oRequest']['sendRequest']({'cmd':_0x141a36(0x14c),'deviceQrCode':arguments[0x0],'deviceMac':arguments[0x1],'channelId':parseInt(arguments[0x2]),'windowIndex':parseInt(arguments[0x3]),'startTime':arguments[0x4],'endTime':arguments[0x5]});else{if(this[_0x141a36(0x1be)][_0x141a36(0x1e3)]===0x2)return this[_0x141a36(0x1be)]['sendRequest']({'cmd':_0x141a36(0x14c),'deviceId':arguments[0x0],'storageId':arguments[0x1],'windowIndex':parseInt(arguments[0x2]),'startTime':arguments[0x3],'endTime':arguments[0x4],'storageType':parseInt(arguments[0x5]),'channelId':parseInt(arguments[0x6])});}}},{'key':'pausePlayback','value':function(_0x4f5e54){var _0x195a06=_0xf021c2;return this[_0x195a06(0x1be)][_0x195a06(0x1f5)]({'cmd':'play.pausePlayback','windowIndex':parseInt(_0x4f5e54)});}},{'key':'resumePlayback','value':function(_0x4e54d1){var _0x346c5a=_0xf021c2;return this[_0x346c5a(0x1be)]['sendRequest']({'cmd':_0x346c5a(0x10d),'windowIndex':parseInt(_0x4e54d1)});}},{'key':'stopPlayback','value':function(_0x272738){var _0x5a43b9=_0xf021c2;return this[_0x5a43b9(0x1be)][_0x5a43b9(0x1f5)]({'cmd':_0x5a43b9(0x181),'windowIndex':parseInt(_0x272738)});}},{'key':_0xf021c2(0x204),'value':function(){var _0x10b002=_0xf021c2;return this[_0x10b002(0x1be)][_0x10b002(0x1f5)]({'cmd':_0x10b002(0xea)});}},{'key':_0xf021c2(0xfd),'value':function(_0x4f39ad,_0x3bd519){var _0x1341e5=_0xf021c2;return this[_0x1341e5(0x1be)][_0x1341e5(0x1f5)]({'cmd':_0x1341e5(0x132),'windowIndex':parseInt(_0x4f39ad),'volume':parseInt(_0x3bd519)});}},{'key':_0xf021c2(0x1ea),'value':function(_0x4f8380,_0x4b1f0d,_0x4f0cd6){var _0x3a0e97=_0xf021c2;return this[_0x3a0e97(0x1be)][_0x3a0e97(0x1f5)]({'cmd':_0x3a0e97(0x205),'windowIndex':parseInt(_0x4f8380),'numrator':parseInt(_0x4b1f0d),'denominator':parseInt(_0x4f0cd6)});}},{'key':_0xf021c2(0x171),'value':function(_0x4d1ce8,_0x3a314a){var _0xcd0544=_0xf021c2;return this[_0xcd0544(0x1be)]['sendRequest']({'cmd':'system.setToken','pluginToken':_0x4d1ce8,'relayToken':_0x3a314a});}},{'key':_0xf021c2(0xfa),'value':function(_0x53b778,_0x1a2488,_0x339638,_0x52f699){var _0x26222f=_0xf021c2;return this[_0x26222f(0x1be)][_0x26222f(0x1f5)]({'cmd':'system.login','userName':_0x53b778,'password':_0x1a2488,'domain':_0x339638,'port':parseInt(_0x52f699)});}},{'key':_0xf021c2(0x14a),'value':function(){var _0x8c1b11=_0xf021c2;return this['oRequest'][_0x8c1b11(0x1f5)]({'cmd':_0x8c1b11(0x1a3)});}},{'key':_0xf021c2(0x1b0),'value':function(_0x230dea){var _0x463944=_0xf021c2;return this[_0x463944(0x1be)]['sendRequest']({'cmd':_0x463944(0xf6),'path':_0x230dea});}},{'key':'getWindowStatus','value':function(_0x415671){var _0x553589=_0xf021c2;return this[_0x553589(0x1be)][_0x553589(0x1f5)]({'cmd':_0x553589(0x1e9)});}},{'key':_0xf021c2(0x186),'value':function(_0x454bef){var _0x3b6ef1=_0xf021c2;this[_0x3b6ef1(0x1be)][_0x3b6ef1(0x186)](_0x454bef);}},{'key':_0xf021c2(0xf2),'value':function(_0x43b41a){var _0x140ae2=_0xf021c2;this['oRequest'][_0x140ae2(0xf2)](_0x43b41a);}},{'key':_0xf021c2(0x17e),'value':function(_0x1b2a40,_0x5eb934){var _0x59c544=_0xf021c2;return this[_0x59c544(0x1be)]['sendRequest']({'cmd':_0x59c544(0x166),'msg':_0x1b2a40,'type':_0x5eb934});}},{'key':'screenshot2Base64','value':function(_0x3ea98e){var _0x3e9e04=_0xf021c2;return this[_0x3e9e04(0x1be)][_0x3e9e04(0x1f5)]({'cmd':_0x3e9e04(0x11c),'windowIndex':parseInt(_0x3ea98e)});}},{'key':_0xf021c2(0x126),'value':function(){var _0x130915=_0xf021c2;return this[_0x130915(0x1be)][_0x130915(0x1f5)]({'cmd':_0x130915(0x165)});}},{'key':'disconnect','value':function(){var _0x489619=this;return new Promise(function(_0x1b11b9,_0x256629){var _0x2ff6e5=_0x62c9;null!==_0x489619[_0x2ff6e5(0x1be)]?(_0x489619[_0x2ff6e5(0x1be)][_0x2ff6e5(0x10f)](),_0x1b11b9(_0x2ff6e5(0x134))):_0x256629();});}}]),_0x85d1fc;}()),_0xde51d=(function(){var _0x5cfea8=_0x310b8f;function _0x4a672c(_0x3957f3){var _0x14ca66=_0x62c9;_0xfa9576(this,_0x4a672c);var _0x4fa9d8=this;this[_0x14ca66(0x1c6)]=Object['assign']({'szPluginContainer':'','cbConnectSuccess':null,'cbConnectError':null,'cbConnectClose':null,'iServicePortStart':0x3c32,'iServicePortEnd':0x3c32},_0x3957f3),this[_0x14ca66(0x1e3)]=0x0,this[_0x14ca66(0x200)]=!0x1,this[_0x14ca66(0x1e1)]=!0x0,this['bEmbed']=_0x19982e['getCreateWndMode'](),this[_0x14ca66(0x18d)]='',this[_0x14ca66(0x1ff)]=-0x1,this[_0x14ca66(0x172)]=-0x1,this[_0x14ca66(0x10b)]=!0x1,this['iVCTimeStart']=-0x1,this[_0x14ca66(0x108)]=-0x1,this[_0x14ca66(0x111)]={'left':0x0,'top':0x0,'right':0x0,'bottom':0x0},this[_0x14ca66(0xf7)]={'left':0x0,'top':0x0},this['szTitle']='',this['oWindowAttr']={'outerWidth':0x0,'innerWidth':0x0,'outerHeight':0x0,'innerHeight':0x0,'screenTop':0x0,'screenLeft':0x0,'screenX':0x0,'screenY':0x0},this[_0x14ca66(0x14b)]=-0x1,this['fVisibilityChange']=function(){var _0xf8882=_0x14ca66;if(_0x19982e['isMacOS']())document['hidden']?_0x4fa9d8[_0xf8882(0x124)]():_0x4fa9d8[_0xf8882(0x194)]();else{if(document[_0xf8882(0x1db)])_0x4fa9d8[_0xf8882(0x150)]=new Date()[_0xf8882(0xe9)](),_0x4fa9d8['fHideWnd']();else{_0x4fa9d8[_0xf8882(0x108)]=new Date()[_0xf8882(0xe9)]();var _0x146956=_0x19982e[_0xf8882(0x13c)]();if(_0x146956[_0xf8882(0x158)]||_0x146956['mozilla']){_0x4fa9d8[_0xf8882(0x172)]>0x0&&(clearTimeout(_0x4fa9d8[_0xf8882(0x172)]),_0x4fa9d8[_0xf8882(0x172)]=-0x1);if(_0x4fa9d8['iVCTimeEnd']-_0x4fa9d8[_0xf8882(0x150)]<0x64){var _0x3cb022=_0x4fa9d8[_0xf8882(0x1be)]['getRequestUUID']();_0xfd3016(_0x3cb022,_0x4fa9d8[_0xf8882(0x1c6)][_0xf8882(0xf1)]),_0x4fa9d8[_0xf8882(0x172)]=setTimeout(function(){var _0x4e4efb=_0xf8882;_0x4fa9d8[_0x4e4efb(0x1be)][_0x4e4efb(0x11b)]()[_0x4e4efb(0x1bf)](function(){var _0x318c31=_0x4e4efb;_0x204b6a(_0x3cb022,_0x4fa9d8[_0x318c31(0x1c6)][_0x318c31(0x1a8)]),(!_0x4fa9d8[_0x318c31(0x200)]||!_0x4fa9d8[_0x318c31(0x10b)])&&_0x4fa9d8[_0x318c31(0x194)]();},function(){var _0x25156a=_0x4e4efb;_0x204b6a(_0x3cb022,_0x4fa9d8[_0x25156a(0x1c6)][_0x25156a(0x1a8)]);});},0x64);}else(!_0x4fa9d8[_0xf8882(0x200)]||!_0x4fa9d8[_0xf8882(0x10b)])&&_0x4fa9d8['fShowWnd']();}else(!_0x4fa9d8[_0xf8882(0x200)]||!_0x4fa9d8[_0xf8882(0x10b)])&&_0x4fa9d8['fShowWnd']();}}},this[_0x14ca66(0x124)]=function(){var _0x5581bd=_0x14ca66;_0x4fa9d8[_0x5581bd(0x1be)][_0x5581bd(0x15c)]()[_0x5581bd(0x1bf)](function(){},function(){});},this['fShowWnd']=function(){var _0x432f89=_0x14ca66;_0x4fa9d8['oRequest']['showWnd']()[_0x432f89(0x1bf)](function(){},function(){});},this[_0x14ca66(0x177)]=function(){var _0x588983=_0x14ca66;_0x4fa9d8[_0x588983(0x1e1)]=!0x0,setTimeout(function(){var _0x3f02d5=_0x588983;document['hidden']||_0x4fa9d8['bFreeze']||_0x4fa9d8[_0x3f02d5(0x10b)]||_0x4fa9d8[_0x3f02d5(0x194)]();},0xc8);},this['fBlur']=function(){var _0x176275=_0x14ca66;_0x4fa9d8[_0x176275(0x1e1)]=!0x1;},this[_0x14ca66(0x1be)]=new _0x393060({'szPluginContainer':this[_0x14ca66(0x1c6)]['szPluginContainer'],'cbConnectSuccess':this[_0x14ca66(0x1c6)][_0x14ca66(0x1de)],'cbConnectError':this[_0x14ca66(0x1c6)][_0x14ca66(0x1a5)],'cbConnectClose':function(_0x391ddd){var _0x3a69ee=_0x14ca66;_0x4fa9d8[_0x3a69ee(0x1ff)]>0x0&&(clearTimeout(_0x4fa9d8['iCreateWndTimer']),_0x4fa9d8[_0x3a69ee(0x1ff)]=-0x1),_0x4fa9d8['oOptions']['cbConnectClose']&&_0x4fa9d8[_0x3a69ee(0x1c6)]['cbConnectClose'](_0x391ddd);},'iServicePortStart':this[_0x14ca66(0x1c6)][_0x14ca66(0x1ad)],'iServicePortEnd':this[_0x14ca66(0x1c6)][_0x14ca66(0x1e0)]});}return _0x6a1f6a(_0x4a672c,[{'key':_0x5cfea8(0x152),'value':function(_0x42d34e,_0xff20c7,_0x36d3af,_0x233fd1,_0x1cc8ab){var _0x1315ad=_0x5cfea8,_0x16b3e9=this;_0x16b3e9['szWndId']=_0x42d34e;var _0x2235d1=_0x233fd1;_0x1cc8ab===undefined&&(_0x1cc8ab={});void 0x0!==(_0x1cc8ab=_0x1cc8ab||{})[_0x1315ad(0x1bb)]&&(_0x16b3e9[_0x1315ad(0x1bb)]=_0x1cc8ab[_0x1315ad(0x1bb)]);var _0x9b2ca5=!0x0;return void 0x0!==_0x1cc8ab[_0x1315ad(0x1f4)]&&(_0x9b2ca5=_0x1cc8ab[_0x1315ad(0x1f4)]),new Promise(function(_0x118344,_0x8b41b0){var _0x452075=_0x1315ad,_0x3162c5=document[_0x452075(0x1d5)](_0x42d34e);if(_0x3162c5){var _0x49b795='';if(_0x19982e[_0x452075(0x13c)]()['msie'])_0x49b795=_0x452075(0x1d8);else{if(_0x19982e['browser']()[_0x452075(0x158)])_0x49b795=_0x452075(0x1b6);else _0x19982e[_0x452075(0x13c)]()[_0x452075(0x12e)]&&(_0x49b795=window[_0x452075(0x1c8)]['document'][_0x452075(0x16b)]);}_0x1cc8ab[_0x452075(0xf1)]&&(_0x16b3e9[_0x452075(0x1c6)][_0x452075(0xf1)]=_0x1cc8ab['cbSetDocTitle']);_0x1cc8ab[_0x452075(0x1a8)]&&(_0x16b3e9[_0x452075(0x1c6)][_0x452075(0x1a8)]=_0x1cc8ab['cbUnsetDocTitle']);var _0x3cc91b=_0x16b3e9['oRequest'][_0x452075(0x13a)]();_0xfd3016(_0x3cc91b,_0x1cc8ab[_0x452075(0xf1)]),_0x16b3e9['iCreateWndTimer']=setTimeout(function(){var _0x581c39=_0x452075;if(!_0x16b3e9['bDevTool']){var _0x47fdb2=_0x19982e[_0x581c39(0x145)](),_0xc1c152=_0x19982e[_0x581c39(0x1b8)](_0x3162c5,_0x16b3e9[_0x581c39(0x1bb)],_0x16b3e9['oWindowAttr'],_0x16b3e9['oDocOffset']);_0xff20c7=Math[_0x581c39(0x137)](_0xff20c7*_0x47fdb2),_0x36d3af=Math[_0x581c39(0x137)](_0x36d3af*_0x47fdb2),_0x1cc8ab['left']=_0xc1c152[_0x581c39(0x10e)],_0x1cc8ab['top']=_0xc1c152[_0x581c39(0x1c8)],_0x1cc8ab[_0x581c39(0xfc)]=_0xff20c7,_0x1cc8ab[_0x581c39(0x191)]=_0x36d3af,_0x1cc8ab['playMode']=parseInt(_0x2235d1||0x0),_0x1cc8ab[_0x581c39(0x15f)]=_0x3cc91b,_0x1cc8ab[_0x581c39(0x1d7)]=_0x16b3e9['bEmbed'],_0x1cc8ab[_0x581c39(0x195)]=_0x49b795,_0x16b3e9[_0x581c39(0x1be)][_0x581c39(0x1ab)](_0x1cc8ab)['then'](function(){_0x204b6a(_0x3cc91b,_0x1cc8ab['cbUnsetDocTitle']),_0x118344();},function(_0x537935){var _0x4eeb89=_0x581c39;_0x204b6a(_0x3cc91b,_0x1cc8ab[_0x4eeb89(0x1a8)]),0x1389===_0x537935[_0x4eeb89(0x138)]?(!document[_0x4eeb89(0x1db)]||_0x16b3e9[_0x4eeb89(0x200)]||!_0x16b3e9[_0x4eeb89(0x1e1)]||_0x16b3e9[_0x4eeb89(0x194)]())&&_0x118344():_0x8b41b0(_0x537935);});}},0x12c),document['addEventListener'](_0x452075(0x16f),_0x16b3e9[_0x452075(0x15d)],!0x1),window[_0x452075(0x1dd)](_0x452075(0x199),_0x16b3e9[_0x452075(0x177)]),window[_0x452075(0x1dd)](_0x452075(0x13d),_0x16b3e9[_0x452075(0x18b)]);}else _0x8b41b0();});}},{'key':_0x5cfea8(0x115),'value':function(){var _0x4a185a=_0x5cfea8;return document[_0x4a185a(0x157)]('visibilitychange',this[_0x4a185a(0x15d)],!0x1),window['removeEventListener']('focus',this[_0x4a185a(0x177)]),window['removeEventListener']('blur',this[_0x4a185a(0x18b)]),this[_0x4a185a(0x1be)]['destroyWnd']();}},{'key':_0x5cfea8(0x12f),'value':function(_0xcef0a4,_0x48885a,_0x553ded,_0xa2950b,_0x2f7ee7){var _0x4625c7=_0x5cfea8,_0x491c72=_0x19982e[_0x4625c7(0x145)]();return _0xcef0a4=Math[_0x4625c7(0x137)](_0xcef0a4*_0x491c72),_0x48885a=Math[_0x4625c7(0x137)](_0x48885a*_0x491c72),_0x553ded=Math[_0x4625c7(0x137)](_0x553ded*_0x491c72),_0xa2950b=Math[_0x4625c7(0x137)](_0xa2950b*_0x491c72),_0x2f7ee7=Math[_0x4625c7(0x137)](_0x2f7ee7*_0x491c72),this['oRequest'][_0x4625c7(0x167)](_0xcef0a4,_0x48885a,_0x553ded,_0xa2950b,_0x2f7ee7);}},{'key':_0x5cfea8(0xee),'value':function(_0xf6d807,_0x449f0e,_0x5aa46f,_0x52f84e,_0x11b259){var _0x2d8aed=_0x5cfea8,_0x3f5805=_0x19982e[_0x2d8aed(0x145)]();return _0xf6d807=Math[_0x2d8aed(0x137)](_0xf6d807*_0x3f5805),_0x449f0e=Math['round'](_0x449f0e*_0x3f5805),_0x5aa46f=Math[_0x2d8aed(0x137)](_0x5aa46f*_0x3f5805),_0x52f84e=Math[_0x2d8aed(0x137)](_0x52f84e*_0x3f5805),_0x11b259=Math['round'](_0x11b259*_0x3f5805),this[_0x2d8aed(0x1be)][_0x2d8aed(0xf3)](_0xf6d807,_0x449f0e,_0x5aa46f,_0x52f84e,_0x11b259);}},{'key':_0x5cfea8(0xec),'value':function(){var _0x4850d5=_0x5cfea8;this[_0x4850d5(0x200)]=!0x1,document[_0x4850d5(0x1db)]||this[_0x4850d5(0x10b)]||this[_0x4850d5(0x194)]();}},{'key':_0x5cfea8(0xfe),'value':function(){var _0xa530c6=_0x5cfea8;this['bFreeze']=!0x0,this[_0xa530c6(0x124)]();}},{'key':_0x5cfea8(0x13f),'value':function(_0x2090ad,_0xa1a45c,_0x5dc9bb){var _0x51d87a=_0x5cfea8,_0x64aa52=this,_0x1665fc=null,_0x30b163=_0x2090ad,_0x1e0caa=_0xa1a45c;if(this[_0x51d87a(0x18d)]&&(_0x1665fc=document[_0x51d87a(0x1d5)](this[_0x51d87a(0x18d)])),_0x1665fc){var _0x341fa3=_0x19982e[_0x51d87a(0x1b8)](_0x1665fc,this['bEmbed'],this['oWindowAttr'],this['oDocOffset']),_0x35e03d=_0x19982e['getDevicePixelRatio'](),{msie:_0xac0521,version:_0x35c8b1}=_0x19982e[_0x51d87a(0x13c)](),{left:_0x26694a,top:_0x2e96d9,right:_0x265095,bottom:_0x57ce52}=this['oWndCover'];(!_0xac0521||_0xac0521&&_0x35c8b1===_0x51d87a(0x1a1))&&(_0x26694a>0x0&&(_0x341fa3[_0x51d87a(0x10e)]+=Math['round'](_0x26694a*_0x35e03d),_0x2090ad-=_0x26694a),_0x2e96d9>0x0&&(_0x341fa3[_0x51d87a(0x1c8)]+=Math[_0x51d87a(0x137)](_0x2e96d9*_0x35e03d),_0xa1a45c-=_0x2e96d9),_0x265095>0x0&&(_0x2090ad-=_0x265095),_0x57ce52>0x0&&(_0xa1a45c-=_0x57ce52)),_0x2090ad=Math[_0x51d87a(0x137)](_0x2090ad*_0x35e03d),_0xa1a45c=Math['round'](_0xa1a45c*_0x35e03d),this[_0x51d87a(0x1be)]['setWndGeometry'](_0x341fa3[_0x51d87a(0x10e)],_0x341fa3['top'],_0x2090ad,_0xa1a45c),(_0xac0521&&_0x35c8b1===_0x51d87a(0x1a1)||!_0x19982e[_0x51d87a(0x1a7)]())&&(_0x5dc9bb&&_0x5dc9bb[_0x51d87a(0x1ba)]?this[_0x51d87a(0x14b)]=-0x1:(this['iFixedResizeTimer']>-0x1&&(clearTimeout(this[_0x51d87a(0x14b)]),this[_0x51d87a(0x14b)]=-0x1),this[_0x51d87a(0x14b)]=setTimeout(()=>_0x64aa52[_0x51d87a(0x13f)](_0x30b163,_0x1e0caa,{'bFixed':!![]}),0x12c)));}}},{'key':_0x5cfea8(0x193),'value':function(_0x201807){var _0x3a618b=_0x5cfea8;return this['oRequest'][_0x3a618b(0x117)](_0x201807);}},{'key':_0x5cfea8(0x128),'value':function(_0x3c6fc1){var _0x174b7b=_0x5cfea8;return this['oRequest'][_0x174b7b(0x139)](_0x3c6fc1);}},{'key':_0x5cfea8(0xeb),'value':function(_0xc83e3c){var _0x840ff1=_0x5cfea8;return this[_0x840ff1(0x1be)][_0x840ff1(0x19f)](_0xc83e3c);}},{'key':_0x5cfea8(0x1e6),'value':function(){var _0x39dfbd=_0x5cfea8;return this[_0x39dfbd(0x1be)][_0x39dfbd(0x130)]();}},{'key':_0x5cfea8(0x151),'value':function(_0x38b6f5){var _0x593ed4=_0x5cfea8;return this[_0x593ed4(0x1be)][_0x593ed4(0x1a9)](_0x38b6f5);}},{'key':_0x5cfea8(0x107),'value':function(){var _0x5f488d=_0x5cfea8;return this[_0x5f488d(0x1be)][_0x5f488d(0x1fa)]();}},{'key':_0x5cfea8(0x127),'value':function(){var _0x546375=_0x5cfea8;return this[_0x546375(0x1be)]['showFullScreen']();}},{'key':'ExitFullScreen','value':function(){var _0x30c716=_0x5cfea8;return this[_0x30c716(0x1be)][_0x30c716(0xf5)]();}},{'key':'SetCustomLayout','value':function(_0x49ded9){var _0x1d2b4b=_0x5cfea8;return this['oRequest'][_0x1d2b4b(0x125)](_0x49ded9);}},{'key':_0x5cfea8(0x1a6),'value':function(_0x1396b9,_0x42dd48){var _0x21a2ca=_0x5cfea8;return this[_0x21a2ca(0x1be)][_0x21a2ca(0x1e5)](_0x1396b9,_0x42dd48);}},{'key':_0x5cfea8(0x122),'value':function(){var _0x35c8c7=_0x5cfea8;return this[_0x35c8c7(0x1be)][_0x35c8c7(0xef)][_0x35c8c7(0x1f8)](this[_0x35c8c7(0x1be)],arguments);}},{'key':_0x5cfea8(0x159),'value':function(_0x1598ad){var _0x256842=_0x5cfea8;return this['oRequest'][_0x256842(0x173)](_0x1598ad);}},{'key':_0x5cfea8(0x16d),'value':function(_0x12dbdc,_0x39ef2e){var _0x28f516=_0x5cfea8;return this[_0x28f516(0x1be)][_0x28f516(0x13e)](_0x12dbdc,_0x39ef2e);}},{'key':'StartTalk','value':function(_0x6ddd5e){var _0x56532a=_0x5cfea8;return this[_0x56532a(0x1be)]['startTalk'](_0x6ddd5e);}},{'key':_0x5cfea8(0x206),'value':function(_0x2c5792){var _0x5c036=_0x5cfea8;return this['oRequest'][_0x5c036(0x1b9)](_0x2c5792);}},{'key':'StartNVRTalk','value':function(){var _0x159186=_0x5cfea8;return this[_0x159186(0x1be)][_0x159186(0x1ce)][_0x159186(0x1f8)](this[_0x159186(0x1be)],arguments);}},{'key':_0x5cfea8(0x1d1),'value':function(){var _0x50d6f6=_0x5cfea8;return this[_0x50d6f6(0x1be)][_0x50d6f6(0x18f)]();}},{'key':'StartNVRSpeak','value':function(){var _0x1f2a68=_0x5cfea8;return this[_0x1f2a68(0x1be)]['startNVRSpeak']();}},{'key':_0x5cfea8(0x101),'value':function(){var _0x2d10c9=_0x5cfea8;return this[_0x2d10c9(0x1be)][_0x2d10c9(0x170)]();}},{'key':_0x5cfea8(0x1c7),'value':function(){var _0x4ac738=_0x5cfea8;return this[_0x4ac738(0x1be)]['startPlayback'][_0x4ac738(0x1f8)](this[_0x4ac738(0x1be)],arguments);}},{'key':'PausePlayback','value':function(_0x2b6c2e){var _0x297f4e=_0x5cfea8;return this['oRequest'][_0x297f4e(0x1f3)](_0x2b6c2e);}},{'key':_0x5cfea8(0x15a),'value':function(_0x140d17){var _0x2ea455=_0x5cfea8;return this[_0x2ea455(0x1be)][_0x2ea455(0x1b4)](_0x140d17);}},{'key':_0x5cfea8(0x11e),'value':function(_0x43ab25){var _0x4ac4c3=_0x5cfea8;return this['oRequest'][_0x4ac4c3(0x17d)](_0x43ab25);}},{'key':'StopAllPlay','value':function(){var _0x28eac0=_0x5cfea8;return this[_0x28eac0(0x1be)][_0x28eac0(0x204)]();}},{'key':_0x5cfea8(0x198),'value':function(_0x5af19e,_0x4d09bf){var _0x119100=_0x5cfea8;return this[_0x119100(0x1be)]['setVolume'](_0x5af19e,_0x4d09bf);}},{'key':_0x5cfea8(0x149),'value':function(_0x4b0092,_0x4c97fe,_0x2090a9){var _0x3d140f=_0x5cfea8;return this[_0x3d140f(0x1be)]['setPlaybackSpeed'](_0x4b0092,_0x4c97fe,_0x2090a9);}},{'key':_0x5cfea8(0x148),'value':function(_0x9421a6,_0x384676){var _0x519991=_0x5cfea8;return this['oRequest'][_0x519991(0x171)](_0x9421a6,_0x384676);}},{'key':_0x5cfea8(0x1b1),'value':function(_0x46a98f,_0x3f749c,_0xe834df,_0x462b57){var _0x296d5f=_0x5cfea8;return this[_0x296d5f(0x1be)]['loginTUMS'](_0x46a98f,_0x3f749c,_0xe834df,_0x462b57);}},{'key':'LogoutTUMS','value':function(){var _0xf24e2c=_0x5cfea8;return this[_0xf24e2c(0x1be)][_0xf24e2c(0x14a)]();}},{'key':_0x5cfea8(0x185),'value':function(_0x4f31fe){var _0x276ed6=_0x5cfea8;return this[_0x276ed6(0x1be)][_0x276ed6(0x1b0)](_0x4f31fe);}},{'key':_0x5cfea8(0x16e),'value':function(_0x1c6391){var _0x1cee67=_0x5cfea8;return this['oRequest'][_0x1cee67(0x186)](_0x1c6391);}},{'key':_0x5cfea8(0x1bc),'value':function(_0x4b6c0d){var _0x370c4c=_0x5cfea8;return this[_0x370c4c(0x1be)][_0x370c4c(0xf2)](_0x4b6c0d);}},{'key':_0x5cfea8(0x163),'value':function(){var _0x5b609f=_0x5cfea8;return this[_0x5b609f(0x1be)][_0x5b609f(0xf4)]();}},{'key':_0x5cfea8(0xe6),'value':function(_0x415239,_0x283d0c){var _0x3319dc=_0x5cfea8;return this[_0x3319dc(0x1be)]['showToast'](_0x415239,_0x283d0c);}},{'key':_0x5cfea8(0x11a),'value':function(_0x5de891){var _0x3ef63b=_0x5cfea8;return this[_0x3ef63b(0x1be)][_0x3ef63b(0x201)](_0x5de891);}},{'key':'ScreenshotAll2Base64','value':function(){var _0x29d772=_0x5cfea8;return this[_0x29d772(0x1be)][_0x29d772(0x126)]();}},{'key':'Destroy','value':function(){var _0x291b4a=_0x5cfea8;try{return this['StopAllPlay'](),document[_0x291b4a(0x157)](_0x291b4a(0x16f),this[_0x291b4a(0x15d)],![]),window[_0x291b4a(0x157)](_0x291b4a(0x199),this[_0x291b4a(0x177)]),window[_0x291b4a(0x157)](_0x291b4a(0x13d),this['fBlur']),this[_0x291b4a(0x115)](),this[_0x291b4a(0x1be)]&&(this[_0x291b4a(0x1be)]['disconnect'](),this[_0x291b4a(0x1be)][_0x291b4a(0x186)]&&this['oRequest'][_0x291b4a(0x186)](null),this[_0x291b4a(0x1be)][_0x291b4a(0xf2)]&&this[_0x291b4a(0x1be)][_0x291b4a(0xf2)](null)),!![];}catch(_0x59b2a6){return![];}}}],[{'key':'WakeUpPlugin','value':function(_0x5ebc8b){var _0x4af847=_0x5cfea8,_0x525ed1=window[_0x4af847(0x140)](_0x5ebc8b,_0x4af847(0x1b2));_0x525ed1?setTimeout(()=>{_0x525ed1['close']();},0xbb8):console[_0x4af847(0x102)](_0x4af847(0xf8),_0x5ebc8b);}}]),_0x4a672c;}());return _0xde51d[_0x310b8f(0x12a)]=_0x310b8f(0x169),_0xde51d;}());function _0x4041(){var _0x3a1f36=['42448080jXHphP','SetVolume','focus','devicePixelRatio','play.startPreview','screenX','trident','random','showWndToolbar','deviceXDPI','11.0','push','system.logout','border-top-width','cbConnectError','InitAuthInfo','isWindows','cbUnsetDocTitle','showPlaybackTimeline','108ItNmQD','createWnd','outerWidth','iServicePortStart','play.changeResolution','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setStoragePath','LoginTUMS','_blank','play.startTalk','resumePlayback','8054754QDDJjJ','Chrome','setWndGeometry','getWndPostion','stopTalk','bFixed','bEmbed','SetPlayCallback','oWebSocket','oRequest','then','https:','ws://127.0.0.1:','7XKQkwC','timestamp','document','window.updateParentWindow','oOptions','StartPlayback','top','edge','window.showPlaybackTimeline','Win64','userAgent','onclose','startNVRTalk','toolbarMask','pageXOffset','StopNVRTalk','window.hidePlaybackTimeline','3791154ZbIass','window.cutWindow','getElementById','Windows','embed','IEFrame','showFullScreen','toLowerCase','hidden','window.showFullScreen','addEventListener','cbConnectSuccess','indexOf','iServicePortEnd','bFocus','system.connect','iServerType','szPluginContainer','initAuthInfo','HideWndToolbar','bInit','slice','window.getWindowStatus','setPlaybackSpeed','enumerable','server_type','306OTLnbZ','resolve','setItem','replace','send','162728LDsnfR','pausePlayback','bActiveXParentWnd','sendRequest','platform','play.stopNVRSpeak','apply','unshift','hidePlaybackTimeline','params\x20must\x20be\x20an\x20object','undefined','mozilla','parseCmd','iCreateWndTimer','bFreeze','screenshot2Base64','window.repairWindow','oSerialCallback','stopAllPlay','play.setPlaybackSpeed','StopTalk','ShowToast','location','bNormalClose','getTime','play.stopAllPlay','ShowWndToolbar','ShowWnd','ownerDocument','RepairPartWindow','startPreview','oPlayCallback','cbSetDocTitle','setPlayCallback','repairPartWindow','getWindowStatus','exitFullScreen','system.setStoragePath','oDocOffset','Failed\x20to\x20open\x20new\x20window\x20for:','Windows\x20NT\x2010.0','loginTUMS','window.hideWindowToolbar','width','setVolume','HideWnd','parse','pageYOffset','StopNVRSpeak','error','system.initAuthInfo','screenLeft','window.setWindowGeometry','showWnd','HidePlaybackTimeline','iVCTimeEnd','function','unknown','bDevTool','data','play.resumePlayback','left','disconnect','play.stopTalk','oWndCover','Stringified\x20UUID\x20is\x20invalid','test','play.startNVRSpeak','DestroyWnd','TPWebControlPort_','setLayout','\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000','protocol','Screenshot2Base64','updateParentWnd','play.screenshot2Base64','reject','StopPlayback','rng','window.createWnd','isMacOS','StartPreview','assign','fHideWnd','setCustomLayout','screenshotAll2Base64','ShowFullScreen','SetPageIndex','length','version','screenY','concat','iPort','safari','CuttingPartWindow','hideWndToolbar','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','play.setVolume','oWindowControlCallback','cbConnectClose\x20callback\x20is\x20really\x20success','toString','getRandomValues','round','errorCode','setPageIndex','getRequestUUID','cbConnectClose','browser','blur','changeResolution','Resize','open','defineProperty','serial','onopen','10.0','getDevicePixelRatio','exec','innerWidth','SetToken','SetPlaybackSpeed','logoutTUMS','iFixedResizeTimer','play.startPlayback','defaultView','cmd','startNVRSpeak','iVCTimeStart','ShowPlaybackTimeline','CreateWnd','86085AVUQYU','WebSocket','symbol','success','removeEventListener','chrome','StopPreview','ResumePlayback','getComputedStyle','hideWnd','fVisibilityChange','border-left-width','uuid','init','logicalXDPI','play.startNVRTalk','GetWindowStatus','oRequestList','play.screenshotAll2Base64','window.showToast','cuttingPartWindow','detectPort','1.0.3','onmessage','title','window.showWindow','ChangeResolution','SetWindowCallback','visibilitychange','stopNVRSpeak','setToken','iUpdateParentWndTimer','stopPreview','msie','bind','55611YaFeWI','fFocus','constructor','oUIControlCallback','2037286duXfAs','szVersion','playMode','stopPlayback','showToast','screenTop','destroyWnd','play.stopPlay','screen','window.setPageNum','Win32','SetStoragePath','setWindowCallback','window.destoryWindow','oCallbacks','prototype','startTalk','fBlur','readyState','szWndId','innerHeight','stopNVRTalk','outerHeight','height','forEach','SetLayout','fShowWnd','browserName','szUUID'];_0x4041=function(){return _0x3a1f36;};return _0x4041();} \ No newline at end of file diff --git a/public/static/tums-player/libaudio.js b/public/static/tums-player/libaudio.js index 73ae24a..5326491 100644 --- a/public/static/tums-player/libaudio.js +++ b/public/static/tums-player/libaudio.js @@ -1 +1 @@ -var Module=typeof Module!="undefined"?Module:{};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";var ENVIRONMENT_IS_WORKER=typeof importScripts=="function";var ENVIRONMENT_IS_NODE=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;function logExceptionOnExit(e){if(e instanceof ExitStatus)return;let toLog=e;err("exiting due to exception: "+toLog)}if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}var fs;var nodePath;var requireNodeFS=()=>{if(!nodePath){fs=require("fs");nodePath=require("path")}};read_=(filename,binary)=>{requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?undefined:"utf8")};readBinary=filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret};readAsync=(filename,onload,onerror)=>{requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);if(typeof module!="undefined"){module["exports"]=Module}process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",function(reason){throw reason});quit_=(status,toThrow)=>{if(keepRuntimeAlive()){process["exitCode"]=status;throw toThrow}logExceptionOnExit(toThrow);process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=url=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=(url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=title=>document.title=title}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);Object.assign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;if(typeof WebAssembly!="object"){abort("no native wasm support detected")}var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var UTF8Decoder=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heapOrArray,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heapOrArray[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heapOrArray.buffer&&UTF8Decoder){return UTF8Decoder.decode(heapOrArray.subarray(idx,endPtr))}var str="";while(idx>10,56320|ch&1023)}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&c<=57343){len+=4;++i}else{len+=3}}return len}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function keepRuntimeAlive(){return noExitRuntime}function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();FS.ignorePermissions=false;TTY.init();callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}function abort(what){{if(Module["onAbort"]){Module["onAbort"](what)}}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(what);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="libaudio.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(file)}throw"both async and sync fetching of the wasm failed"}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch=="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmMemory=Module["asm"]["g"];updateGlobalBufferAndViews(wasmMemory.buffer);wasmTable=Module["asm"]["u"];addOnInit(Module["asm"]["h"]);removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming=="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&!ENVIRONMENT_IS_NODE&&typeof fetch=="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else{return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){callbacks.shift()(Module)}}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function abortOnCannotGrowMemory(requestedSize){abort("OOM")}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;abortOnCannotGrowMemory(requestedSize)}var PATH={isAbs:path=>path.charAt(0)==="/",splitPath:filename=>{var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:(parts,allowAboveRoot)=>{var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:path=>{var isAbsolute=PATH.isAbs(path),trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(p=>!!p),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:path=>{var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:path=>{if(path==="/")return"/";path=PATH.normalize(path);path=path.replace(/\/$/,"");var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},join:function(){var paths=Array.prototype.slice.call(arguments);return PATH.normalize(paths.join("/"))},join2:(l,r)=>{return PATH.normalize(l+"/"+r)}};function getRandomDevice(){if(typeof crypto=="object"&&typeof crypto["getRandomValues"]=="function"){var randomBuffer=new Uint8Array(1);return()=>{crypto.getRandomValues(randomBuffer);return randomBuffer[0]}}else if(ENVIRONMENT_IS_NODE){try{var crypto_module=require("crypto");return()=>crypto_module["randomBytes"](1)[0]}catch(e){}}return()=>abort("randomDevice")}var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=PATH.isAbs(path)}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(p=>!!p),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:(from,to)=>{from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var TTY={ttys:[],init:function(){},shutdown:function(){},register:function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)},stream_ops:{open:function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(43)}stream.tty=tty;stream.seekable=false},close:function(stream){stream.tty.ops.fsync(stream.tty)},fsync:function(stream){stream.tty.ops.fsync(stream.tty)},read:function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(60)}var bytesRead=0;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},fsync:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};function mmapAlloc(size){abort()}var MEMFS={ops_table:null,mount:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node;parent.timestamp=node.timestamp}return node},getFileDataAsTypedArray:function(node){if(!node.contents)return new Uint8Array(0);if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)},expandFileStorage:function(node,newCapacity){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0)},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0}else{var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize}},node_ops:{getattr:function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr},setattr:function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}},lookup:function(parent,name){throw FS.genericErrors[44]},mknod:function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)},rename:function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(55)}}}delete old_node.parent.contents[old_node.name];old_node.parent.timestamp=Date.now();old_node.name=new_name;new_dir.contents[new_name]=old_node;new_dir.timestamp=old_node.parent.timestamp;old_node.parent=new_dir},unlink:function(parent,name){delete parent.contents[name];parent.timestamp=Date.now()},rmdir:function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(55)}delete parent.contents[name];parent.timestamp=Date.now()},readdir:function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries},symlink:function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node},readlink:function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(28)}return node.link}},stream_ops:{read:function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length{assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(dep)removeRunDependency(dep)},event=>{if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}});if(dep)addRunDependency(dep)}var FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(path,opts={})=>{path=PATH_FS.resolve(FS.cwd(),path);if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};opts=Object.assign(defaults,opts);if(opts.recurse_count>8){throw new FS.ErrnoError(32)}var parts=PATH.normalizeArray(path.split("/").filter(p=>!!p),false);var current=FS.root;var current_path="/";for(var i=0;i40){throw new FS.ErrnoError(32)}}}}return{path:current_path,node:current}},getPath:node=>{var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}},hashName:(parentid,name)=>{var hash=0;for(var i=0;i>>0)%FS.nameTable.length},hashAddNode:node=>{var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode:node=>{var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode:(parent,name)=>{var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode:(parent,name,mode,rdev)=>{var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode:node=>{FS.hashRemoveNode(node)},isRoot:node=>{return node===node.parent},isMountpoint:node=>{return!!node.mounted},isFile:mode=>{return(mode&61440)===32768},isDir:mode=>{return(mode&61440)===16384},isLink:mode=>{return(mode&61440)===40960},isChrdev:mode=>{return(mode&61440)===8192},isBlkdev:mode=>{return(mode&61440)===24576},isFIFO:mode=>{return(mode&61440)===4096},isSocket:mode=>{return(mode&49152)===49152},flagModes:{"r":0,"r+":2,"w":577,"w+":578,"a":1089,"a+":1090},modeStringToFlags:str=>{var flags=FS.flagModes[str];if(typeof flags=="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:flag=>{var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:(node,perms)=>{if(FS.ignorePermissions){return 0}if(perms.includes("r")&&!(node.mode&292)){return 2}else if(perms.includes("w")&&!(node.mode&146)){return 2}else if(perms.includes("x")&&!(node.mode&73)){return 2}return 0},mayLookup:dir=>{var errCode=FS.nodePermissions(dir,"x");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate:(dir,name)=>{try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,"wx")},mayDelete:(dir,name,isdir)=>{var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,"wx");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen:(node,flags)=>{if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:(fd_start=0,fd_end=FS.MAX_OPEN_FDS)=>{for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:fd=>FS.streams[fd],createStream:(stream,fd_start,fd_end)=>{if(!FS.FSStream){FS.FSStream=function(){this.shared={}};FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},flags:{get:function(){return this.shared.flags},set:function(val){this.shared.flags=val}},position:{get:function(){return this.shared.position},set:function(val){this.shared.position=val}}})}stream=Object.assign(new FS.FSStream,stream);var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:fd=>{FS.streams[fd]=null},chrdev_stream_ops:{open:stream=>{var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:()=>{throw new FS.ErrnoError(70)}},major:dev=>dev>>8,minor:dev=>dev&255,makedev:(ma,mi)=>ma<<8|mi,registerDevice:(dev,ops)=>{FS.devices[dev]={stream_ops:ops}},getDevice:dev=>FS.devices[dev],getMounts:mount=>{var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts},syncfs:(populate,callback)=>{if(typeof populate=="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach(mount=>{if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)})},mount:(type,opts,mountpoint)=>{var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount:mountpoint=>{var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach(hash=>{var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.includes(current.mount)){FS.destroyNode(current)}current=next}});node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup:(parent,name)=>{return parent.node_ops.lookup(parent,name)},mknod:(path,mode,dev)=>{var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(28)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},create:(path,mode)=>{mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:(path,mode)=>{mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree:(path,mode)=>{var dirs=path.split("/");var d="";for(var i=0;i{if(typeof dev=="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)},symlink:(oldpath,newpath)=>{if(!PATH_FS.resolve(oldpath)){throw new FS.ErrnoError(44)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(44)}var newname=PATH.basename(newpath);var errCode=FS.mayCreate(parent,newname);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(63)}return parent.node_ops.symlink(parent,newname,oldpath)},rename:(old_path,new_path)=>{var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node;if(!old_dir||!new_dir)throw new FS.ErrnoError(44);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(75)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH_FS.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(28)}relative=PATH_FS.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(55)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var errCode=FS.mayDelete(old_dir,old_name,isdir);if(errCode){throw new FS.ErrnoError(errCode)}errCode=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(errCode){throw new FS.ErrnoError(errCode)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(63)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(10)}if(new_dir!==old_dir){errCode=FS.nodePermissions(old_dir,"w");if(errCode){throw new FS.ErrnoError(errCode)}}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}},rmdir:path=>{var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,true);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node)},readdir:path=>{var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(54)}return node.node_ops.readdir(node)},unlink:path=>{var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(44)}var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var errCode=FS.mayDelete(parent,name,false);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(63)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}parent.node_ops.unlink(parent,name);FS.destroyNode(node)},readlink:path=>{var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(44)}if(!link.node_ops.readlink){throw new FS.ErrnoError(28)}return PATH_FS.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))},stat:(path,dontFollow)=>{var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(44)}if(!node.node_ops.getattr){throw new FS.ErrnoError(63)}return node.node_ops.getattr(node)},lstat:path=>{return FS.stat(path,true)},chmod:(path,mode,dontFollow)=>{var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})},lchmod:(path,mode)=>{FS.chmod(path,mode,true)},fchmod:(fd,mode)=>{var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}FS.chmod(stream.node,mode)},chown:(path,uid,gid,dontFollow)=>{var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}node.node_ops.setattr(node,{timestamp:Date.now()})},lchown:(path,uid,gid)=>{FS.chown(path,uid,gid,true)},fchown:(fd,uid,gid)=>{var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}FS.chown(stream.node,uid,gid)},truncate:(path,len)=>{if(len<0){throw new FS.ErrnoError(28)}var node;if(typeof path=="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(63)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(31)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(28)}var errCode=FS.nodePermissions(node,"w");if(errCode){throw new FS.ErrnoError(errCode)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})},ftruncate:(fd,len)=>{var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(28)}FS.truncate(stream.node,len)},utime:(path,atime,mtime)=>{var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})},open:(path,flags,mode)=>{if(path===""){throw new FS.ErrnoError(44)}flags=typeof flags=="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode=="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path=="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(20)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(44)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}if(!created){var errCode=FS.mayOpen(node,flags);if(errCode){throw new FS.ErrnoError(errCode)}}if(flags&512&&!created){FS.truncate(node,0)}flags&=~(128|512|131072);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false});if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1}}return stream},close:stream=>{if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}stream.fd=null},isClosed:stream=>{return stream.fd===null},llseek:(stream,offset,whence)=>{if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(70)}if(whence!=0&&whence!=1&&whence!=2){throw new FS.ErrnoError(28)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position},read:(stream,buffer,offset,length,position)=>{if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.read){throw new FS.ErrnoError(28)}var seeking=typeof position!="undefined";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead},write:(stream,buffer,offset,length,position,canOwn)=>{if(length<0||position<0){throw new FS.ErrnoError(28)}if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(8)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(31)}if(!stream.stream_ops.write){throw new FS.ErrnoError(28)}if(stream.seekable&&stream.flags&1024){FS.llseek(stream,0,2)}var seeking=typeof position!="undefined";if(!seeking){position=stream.position}else if(!stream.seekable){throw new FS.ErrnoError(70)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;return bytesWritten},allocate:(stream,offset,length)=>{if(FS.isClosed(stream)){throw new FS.ErrnoError(8)}if(offset<0||length<=0){throw new FS.ErrnoError(28)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(8)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(stream.node.mode)){throw new FS.ErrnoError(43)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(138)}stream.stream_ops.allocate(stream,offset,length)},mmap:(stream,length,position,prot,flags)=>{if((prot&2)!==0&&(flags&2)===0&&(stream.flags&2097155)!==2){throw new FS.ErrnoError(2)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(2)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(43)}return stream.stream_ops.mmap(stream,length,position,prot,flags)},msync:(stream,buffer,offset,length,mmapFlags)=>{if(!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)},munmap:stream=>0,ioctl:(stream,cmd,arg)=>{if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(59)}return stream.stream_ops.ioctl(stream,cmd,arg)},readFile:(path,opts={})=>{opts.flags=opts.flags||0;opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret},writeFile:(path,data,opts={})=>{opts.flags=opts.flags||577;var stream=FS.open(path,opts.flags,opts.mode);if(typeof data=="string"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,undefined,opts.canOwn)}else if(ArrayBuffer.isView(data)){FS.write(stream,data,0,data.byteLength,undefined,opts.canOwn)}else{throw new Error("Unsupported data type")}FS.close(stream)},cwd:()=>FS.currentPath,chdir:path=>{var lookup=FS.lookupPath(path,{follow:true});if(lookup.node===null){throw new FS.ErrnoError(44)}if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(54)}var errCode=FS.nodePermissions(lookup.node,"x");if(errCode){throw new FS.ErrnoError(errCode)}FS.currentPath=lookup.path},createDefaultDirectories:()=>{FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")},createDefaultDevices:()=>{FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(stream,buffer,offset,length,pos)=>length});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device=getRandomDevice();FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{FS.mkdir("/proc");var proc_self=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount:()=>{var node=FS.createNode(proc_self,"fd",16384|511,73);node.node_ops={lookup:(parent,name)=>{var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>stream.path}};ret.parent=ret;return ret}};return node}},{},"/proc/self/fd")},createStandardStreams:()=>{if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin",0);var stdout=FS.open("/dev/stdout",1);var stderr=FS.open("/dev/stderr",1)},ensureErrnoError:()=>{if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=function(errno){this.errno=errno};this.setErrno(errno);this.message="FS error"};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[44].forEach(code=>{FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack=""})},staticInit:()=>{FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={"MEMFS":MEMFS}},init:(input,output,error)=>{FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()},quit:()=>{FS.init.initialized=false;for(var i=0;i{var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode},findObject:(path,dontResolveLastLink)=>{var ret=FS.analyzePath(path,dontResolveLastLink);if(!ret.exists){return null}return ret.object},analyzePath:(path,dontResolveLastLink)=>{try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret},createPath:(parent,path,canRead,canWrite)=>{parent=typeof parent=="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current},createFile:(parent,name,properties,canRead,canWrite)=>{var path=PATH.join2(typeof parent=="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)},createDataFile:(parent,name,data,canRead,canWrite,canOwn)=>{var path=name;if(parent){parent=typeof parent=="string"?parent:FS.getPath(parent);path=name?PATH.join2(parent,name):parent}var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data=="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i{var path=PATH.join2(typeof parent=="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:stream=>{stream.seekable=false},close:stream=>{if(output&&output.buffer&&output.buffer.length){output(10)}},read:(stream,buffer,offset,length,pos)=>{var bytesRead=0;for(var i=0;i{for(var i=0;i{if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;if(typeof XMLHttpRequest!="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(read_){try{obj.contents=intArrayFromString(read_(obj.url),true);obj.usedBytes=obj.contents.length}catch(e){throw new FS.ErrnoError(29)}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}},createLazyFile:(parent,name,url,canRead,canWrite)=>{function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(from,to)=>{if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}return intArrayFromString(xhr.responseText||"",true)};var lazyArray=this;lazyArray.setDataGetter(chunkNum=>{var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]=="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]=="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(key=>{var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){FS.forceLoadFile(node);return fn.apply(null,arguments)}});function writeChunks(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i{FS.forceLoadFile(node);return writeChunks(stream,buffer,offset,length,position)};stream_ops.mmap=(stream,length,position,prot,flags)=>{FS.forceLoadFile(node);var ptr=mmapAlloc(length);if(!ptr){throw new FS.ErrnoError(48)}writeChunks(stream,HEAP8,ptr,length,position);return{ptr:ptr,allocated:true}};node.stream_ops=stream_ops;return node},createPreloadedFile:(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish)=>{var fullname=name?PATH_FS.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}if(Browser.handledByPreloadPlugin(byteArray,fullname,finish,()=>{if(onerror)onerror();removeRunDependency(dep)})){return}finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){asyncLoad(url,byteArray=>processData(byteArray),onerror)}else{processData(url)}},indexedDB:()=>{return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:()=>{return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(paths,onload,onerror)=>{onload=onload||(()=>{});onerror=onerror||(()=>{});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=()=>{out("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=()=>{var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=()=>{ok++;if(ok+fail==total)finish()};putRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror},loadFilesFromDB:(paths,onload,onerror)=>{onload=onload||(()=>{});onerror=onerror||(()=>{});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=()=>{var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach(path=>{var getRequest=files.get(path);getRequest.onsuccess=()=>{if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=()=>{fail++;if(ok+fail==total)finish()}});transaction.onerror=onerror};openRequest.onerror=onerror}};var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(dirfd,path,allowEmpty){if(PATH.isAbs(path)){return path}var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=SYSCALLS.getStreamFromFD(dirfd);dir=dirstream.path}if(path.length==0){if(!allowEmpty){throw new FS.ErrnoError(44)}return dir}return PATH.join2(dir,path)},doStat:function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-54}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAPU32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+40>>2]=tempI64[0],HEAP32[buf+44>>2]=tempI64[1];HEAP32[buf+48>>2]=4096;HEAP32[buf+52>>2]=stat.blocks;tempI64=[Math.floor(stat.atime.getTime()/1e3)>>>0,(tempDouble=Math.floor(stat.atime.getTime()/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+56>>2]=tempI64[0],HEAP32[buf+60>>2]=tempI64[1];HEAPU32[buf+64>>2]=0;tempI64=[Math.floor(stat.mtime.getTime()/1e3)>>>0,(tempDouble=Math.floor(stat.mtime.getTime()/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+72>>2]=tempI64[0],HEAP32[buf+76>>2]=tempI64[1];HEAPU32[buf+80>>2]=0;tempI64=[Math.floor(stat.ctime.getTime()/1e3)>>>0,(tempDouble=Math.floor(stat.ctime.getTime()/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+88>>2]=tempI64[0],HEAP32[buf+92>>2]=tempI64[1];HEAPU32[buf+96>>2]=0;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+104>>2]=tempI64[0],HEAP32[buf+108>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(43)}if(flags&2){return 0}var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream}};function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS=="undefined"||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(lo,hi){return hi+2097152>>>0<4194305-!!lo?(lo>>>0)+hi*4294967296:NaN}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){try{var offset=convertI32PairToI53Checked(offset_low,offset_high);if(isNaN(offset))return 61;var stream=SYSCALLS.getStreamFromFD(fd);FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math.abs(tempDouble)>=1?tempDouble>0?(Math.min(+Math.floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[newOffset>>2]=tempI64[0],HEAP32[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS=="undefined"||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=HEAPU32[iov+4>>2];iov+=8;var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret}function _fd_write(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=doWritev(stream,iov,iovcnt);HEAPU32[pnum>>2]=num;return 0}catch(e){if(typeof FS=="undefined"||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function getCFunc(ident){var func=Module["_"+ident];return func}function ccall(ident,returnType,argTypes,args,opts){var toC={"string":str=>{var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=stackAlloc(len);stringToUTF8(str,ret,len)}return ret},"array":arr=>{var ret=stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}};function convertReturnValue(ret){if(returnType==="string"){return UTF8ToString(ret)}if(returnType==="boolean")return Boolean(ret);return ret}var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;itype==="number"||type==="boolean");var numericRet=returnType!=="string";if(numericRet&&numericArgs&&!opts){return getCFunc(ident)}return function(){return ccall(ident,returnType,argTypes,arguments,opts)}}function uleb128Encode(n,target){if(n<128){target.push(n)}else{target.push(n%128|128,n>>7)}}function sigToWasmTypes(sig){var typeNames={"i":"i32","j":"i64","f":"f32","d":"f64","p":"i32"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function updateTableMap(offset,count){if(functionsInTableMap){for(var i=offset;i0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}run(); +var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){var data;if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=ret+size+15&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;return ret}function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;return Math.ceil(size/factor)*factor}function convertJsFunctionToWasm(func,sig){if(typeof WebAssembly.Function==="function"){var typeNames={"i":"i32","j":"i64","f":"f32","d":"f64"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}var WASM_PAGE_SIZE=65536;var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var DYNAMIC_BASE=5396144,DYNAMICTOP_PTR=153248;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();TTY.init();callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=false;callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="libaudio.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;__ATINIT__.push({func:function(){___wasm_call_ctors()}});function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}function ___assert_fail(condition,filename,line,func){abort("Assertion failed: "+UTF8ToString(condition)+", at: "+[filename?UTF8ToString(filename):"unknown filename",line,func?UTF8ToString(func):"unknown function"])}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function abortOnCannotGrowMemory(requestedSize){abort("OOM")}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;abortOnCannotGrowMemory(requestedSize)}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";path=PATH.normalize(path);path=path.replace(/\/$/,"");var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};function setErrNo(value){HEAP32[___errno_location()>>2]=value;return value}var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:function(from,to){from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};var MEMFS={ops_table:null,mount:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node},getFileDataAsRegularArray:function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length8){throw new FS.ErrnoError(32)}var parts=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),false);var current=FS.root;var current_path="/";for(var i=0;i40){throw new FS.ErrnoError(32)}}}}return{path:current_path,node:current}},getPath:function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}},hashName:function(parentid,name){var hash=0;for(var i=0;i>>0)%FS.nameTable.length},hashAddNode:function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode:function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode:function(parent,name){var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode:function(parent,name,mode,rdev){var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode:function(node){FS.hashRemoveNode(node)},isRoot:function(node){return node===node.parent},isMountpoint:function(node){return!!node.mounted},isFile:function(mode){return(mode&61440)===32768},isDir:function(mode){return(mode&61440)===16384},isLink:function(mode){return(mode&61440)===40960},isChrdev:function(mode){return(mode&61440)===8192},isBlkdev:function(mode){return(mode&61440)===24576},isFIFO:function(mode){return(mode&61440)===4096},isSocket:function(mode){return(mode&49152)===49152},flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return 2}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return 2}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return 2}return 0},mayLookup:function(dir){var errCode=FS.nodePermissions(dir,"x");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate:function(dir,name){try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,"wx")},mayDelete:function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,"wx");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen:function(node,flags){if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:function(fd){return FS.streams[fd]},createStream:function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=function(){};FS.FSStream.prototype={object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}}}}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:function(fd){FS.streams[fd]=null},chrdev_stream_ops:{open:function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:function(){throw new FS.ErrnoError(70)}},major:function(dev){return dev>>8},minor:function(dev){return dev&255},makedev:function(ma,mi){return ma<<8|mi},registerDevice:function(dev,ops){FS.devices[dev]={stream_ops:ops}},getDevice:function(dev){return FS.devices[dev]},getMounts:function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts},syncfs:function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach(function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)})},mount:function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount:function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach(function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}});node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup:function(parent,name){return parent.node_ops.lookup(parent,name)},mknod:function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(28)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},create:function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree:function(path,mode){var dirs=path.split("/");var d="";for(var i=0;ithis.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}};var lazyArray=this;lazyArray.setDataGetter(function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}return fn.apply(null,arguments)}});stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+40>>2]=tempI64[0],HEAP32[buf+44>>2]=tempI64[1];HEAP32[buf+48>>2]=4096;HEAP32[buf+52>>2]=stat.blocks;HEAP32[buf+56>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+76>>2]=0;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+80>>2]=tempI64[0],HEAP32[buf+84>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},doMkdir:function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0},doMknod:function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}FS.mknod(path,mode,dev);return 0},doReadlink:function(path,buf,bufsize){if(bufsize<=0)return-28;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len},doAccess:function(path,amode){if(amode&~7){return-28}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;if(!node){return-44}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-2}return 0},doDup:function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd},doReadv:function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream},get64:function(low,high){return low}};function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){try{var stream=SYSCALLS.getStreamFromFD(fd);var HIGH_OFFSET=4294967296;var offset=offset_high*HIGH_OFFSET+(offset_low>>>0);var DOUBLE_LIMIT=9007199254740992;if(offset<=-DOUBLE_LIMIT||offset>=DOUBLE_LIMIT){return-61}FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[newOffset>>2]=tempI64[0],HEAP32[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_write(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doWritev(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}var FSNode=function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev};var readMode=292|73;var writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(val){val?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(val){val?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}});FS.FSNode=FSNode;FS.staticInit();Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var asmLibraryArg={"b":___assert_fail,"d":_emscripten_memcpy_big,"e":_emscripten_resize_heap,"f":_fd_close,"c":_fd_seek,"a":_fd_write,"memory":wasmMemory,"table":wasmTable};var asm=createWasm();var ___wasm_call_ctors=Module["___wasm_call_ctors"]=function(){return(___wasm_call_ctors=Module["___wasm_call_ctors"]=Module["asm"]["g"]).apply(null,arguments)};var _tp_audio_deinit=Module["_tp_audio_deinit"]=function(){return(_tp_audio_deinit=Module["_tp_audio_deinit"]=Module["asm"]["h"]).apply(null,arguments)};var _free=Module["_free"]=function(){return(_free=Module["_free"]=Module["asm"]["i"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return(_malloc=Module["_malloc"]=Module["asm"]["j"]).apply(null,arguments)};var _tp_audio_init=Module["_tp_audio_init"]=function(){return(_tp_audio_init=Module["_tp_audio_init"]=Module["asm"]["k"]).apply(null,arguments)};var _tp_audio_process=Module["_tp_audio_process"]=function(){return(_tp_audio_process=Module["_tp_audio_process"]=Module["asm"]["l"]).apply(null,arguments)};var _decodeG711a=Module["_decodeG711a"]=function(){return(_decodeG711a=Module["_decodeG711a"]=Module["asm"]["m"]).apply(null,arguments)};var _decodeG711u=Module["_decodeG711u"]=function(){return(_decodeG711u=Module["_decodeG711u"]=Module["asm"]["n"]).apply(null,arguments)};var _encodeG711a=Module["_encodeG711a"]=function(){return(_encodeG711a=Module["_encodeG711a"]=Module["asm"]["o"]).apply(null,arguments)};var _encodeG711u=Module["_encodeG711u"]=function(){return(_encodeG711u=Module["_encodeG711u"]=Module["asm"]["p"]).apply(null,arguments)};var _initG726State=Module["_initG726State"]=function(){return(_initG726State=Module["_initG726State"]=Module["asm"]["q"]).apply(null,arguments)};var _decodeG726=Module["_decodeG726"]=function(){return(_decodeG726=Module["_decodeG726"]=Module["asm"]["r"]).apply(null,arguments)};var _encodeG726=Module["_encodeG726"]=function(){return(_encodeG726=Module["_encodeG726"]=Module["asm"]["s"]).apply(null,arguments)};var _decodeAAC=Module["_decodeAAC"]=function(){return(_decodeAAC=Module["_decodeAAC"]=Module["asm"]["t"]).apply(null,arguments)};var _destroy_AAC_decoder=Module["_destroy_AAC_decoder"]=function(){return(_destroy_AAC_decoder=Module["_destroy_AAC_decoder"]=Module["asm"]["u"]).apply(null,arguments)};var _tp_resampler_deinit=Module["_tp_resampler_deinit"]=function(){return(_tp_resampler_deinit=Module["_tp_resampler_deinit"]=Module["asm"]["v"]).apply(null,arguments)};var _tp_resampler_init=Module["_tp_resampler_init"]=function(){return(_tp_resampler_init=Module["_tp_resampler_init"]=Module["asm"]["w"]).apply(null,arguments)};var _tp_resampler_process=Module["_tp_resampler_process"]=function(){return(_tp_resampler_process=Module["_tp_resampler_process"]=Module["asm"]["x"]).apply(null,arguments)};var _tp_audio_buffer_deinit=Module["_tp_audio_buffer_deinit"]=function(){return(_tp_audio_buffer_deinit=Module["_tp_audio_buffer_deinit"]=Module["asm"]["y"]).apply(null,arguments)};var _tp_audio_buffer_init=Module["_tp_audio_buffer_init"]=function(){return(_tp_audio_buffer_init=Module["_tp_audio_buffer_init"]=Module["asm"]["z"]).apply(null,arguments)};var _tp_audio_buffer_reset=Module["_tp_audio_buffer_reset"]=function(){return(_tp_audio_buffer_reset=Module["_tp_audio_buffer_reset"]=Module["asm"]["A"]).apply(null,arguments)};var _tp_audio_buffer_set_data=Module["_tp_audio_buffer_set_data"]=function(){return(_tp_audio_buffer_set_data=Module["_tp_audio_buffer_set_data"]=Module["asm"]["B"]).apply(null,arguments)};var _tp_audio_buffer_used_space=Module["_tp_audio_buffer_used_space"]=function(){return(_tp_audio_buffer_used_space=Module["_tp_audio_buffer_used_space"]=Module["asm"]["C"]).apply(null,arguments)};var _tp_audio_buffer_get_data=Module["_tp_audio_buffer_get_data"]=function(){return(_tp_audio_buffer_get_data=Module["_tp_audio_buffer_get_data"]=Module["asm"]["D"]).apply(null,arguments)};var ___errno_location=Module["___errno_location"]=function(){return(___errno_location=Module["___errno_location"]=Module["asm"]["E"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return(stackSave=Module["stackSave"]=Module["asm"]["F"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return(stackRestore=Module["stackRestore"]=Module["asm"]["G"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return(stackAlloc=Module["stackAlloc"]=Module["asm"]["H"]).apply(null,arguments)};Module["ccall"]=ccall;Module["cwrap"]=cwrap;Module["getMemory"]=getMemory;Module["addRunDependency"]=addRunDependency;Module["removeRunDependency"]=removeRunDependency;Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;Module["addFunction"]=addFunction;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(args){args=args||arguments_;if(runDependencies>0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}noExitRuntime=true;run(); diff --git a/public/static/tums-player/libaudio.wasm b/public/static/tums-player/libaudio.wasm index 879b629..4b6e5a6 100644 Binary files a/public/static/tums-player/libaudio.wasm and b/public/static/tums-player/libaudio.wasm differ diff --git a/public/static/tums-player/libffmpeg.js b/public/static/tums-player/libffmpeg.js index dcea960..eebf0f8 100644 --- a/public/static/tums-player/libffmpeg.js +++ b/public/static/tums-player/libffmpeg.js @@ -1 +1 @@ -var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){var data;if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=ret+size+15&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;return ret}function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;return Math.ceil(size/factor)*factor}function convertJsFunctionToWasm(func,sig){if(typeof WebAssembly.Function==="function"){var typeNames={"i":"i32","j":"i64","f":"f32","d":"f64"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var DYNAMIC_BASE=6605808,DYNAMICTOP_PTR=1362912;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||33554432;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();TTY.init();callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=false;callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="libffmpeg.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;__ATINIT__.push({func:function(){___wasm_call_ctors()}});function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}function setErrNo(value){HEAP32[___errno_location()>>2]=value;return value}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";path=PATH.normalize(path);path=path.replace(/\/$/,"");var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:function(from,to){from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};var MEMFS={ops_table:null,mount:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node},getFileDataAsRegularArray:function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length8){throw new FS.ErrnoError(32)}var parts=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),false);var current=FS.root;var current_path="/";for(var i=0;i40){throw new FS.ErrnoError(32)}}}}return{path:current_path,node:current}},getPath:function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}},hashName:function(parentid,name){var hash=0;for(var i=0;i>>0)%FS.nameTable.length},hashAddNode:function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode:function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode:function(parent,name){var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode:function(parent,name,mode,rdev){var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode:function(node){FS.hashRemoveNode(node)},isRoot:function(node){return node===node.parent},isMountpoint:function(node){return!!node.mounted},isFile:function(mode){return(mode&61440)===32768},isDir:function(mode){return(mode&61440)===16384},isLink:function(mode){return(mode&61440)===40960},isChrdev:function(mode){return(mode&61440)===8192},isBlkdev:function(mode){return(mode&61440)===24576},isFIFO:function(mode){return(mode&61440)===4096},isSocket:function(mode){return(mode&49152)===49152},flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return 2}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return 2}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return 2}return 0},mayLookup:function(dir){var errCode=FS.nodePermissions(dir,"x");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate:function(dir,name){try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,"wx")},mayDelete:function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,"wx");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen:function(node,flags){if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:function(fd){return FS.streams[fd]},createStream:function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=function(){};FS.FSStream.prototype={object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}}}}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:function(fd){FS.streams[fd]=null},chrdev_stream_ops:{open:function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:function(){throw new FS.ErrnoError(70)}},major:function(dev){return dev>>8},minor:function(dev){return dev&255},makedev:function(ma,mi){return ma<<8|mi},registerDevice:function(dev,ops){FS.devices[dev]={stream_ops:ops}},getDevice:function(dev){return FS.devices[dev]},getMounts:function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts},syncfs:function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach(function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)})},mount:function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount:function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach(function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}});node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup:function(parent,name){return parent.node_ops.lookup(parent,name)},mknod:function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(28)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},create:function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree:function(path,mode){var dirs=path.split("/");var d="";for(var i=0;ithis.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}};var lazyArray=this;lazyArray.setDataGetter(function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}return fn.apply(null,arguments)}});stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+40>>2]=tempI64[0],HEAP32[buf+44>>2]=tempI64[1];HEAP32[buf+48>>2]=4096;HEAP32[buf+52>>2]=stat.blocks;HEAP32[buf+56>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+76>>2]=0;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+80>>2]=tempI64[0],HEAP32[buf+84>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},doMkdir:function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0},doMknod:function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}FS.mknod(path,mode,dev);return 0},doReadlink:function(path,buf,bufsize){if(bufsize<=0)return-28;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len},doAccess:function(path,amode){if(amode&~7){return-28}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;if(!node){return-44}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-2}return 0},doDup:function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd},doReadv:function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream},get64:function(low,high){return low}};function ___sys_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(cmd){case 0:{var arg=SYSCALLS.get();if(arg<0){return-28}var newStream;newStream=FS.open(stream.path,stream.flags,0,arg);return newStream.fd}case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=SYSCALLS.get();stream.flags|=arg;return 0}case 12:{var arg=SYSCALLS.get();var offset=0;HEAP16[arg+offset>>1]=2;return 0}case 13:case 14:return 0;case 16:case 8:return-28;case 9:setErrNo(28);return-1;default:{return-28}}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___sys_open(path,flags,varargs){SYSCALLS.varargs=varargs;try{var pathname=SYSCALLS.getStr(path);var mode=SYSCALLS.get();var stream=FS.open(pathname,flags,mode);return stream.fd}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___sys_read(fd,buf,count){try{var stream=SYSCALLS.getStreamFromFD(fd);return FS.read(stream,HEAP8,buf,count)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _abort(){abort()}function _clock(){if(_clock.start===undefined)_clock.start=Date.now();return(Date.now()-_clock.start)*(1e6/1e3)|0}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_fdstat_get(fd,pbuf){try{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4;HEAP8[pbuf>>0]=type;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){try{var stream=SYSCALLS.getStreamFromFD(fd);var HIGH_OFFSET=4294967296;var offset=offset_high*HIGH_OFFSET+(offset_low>>>0);var DOUBLE_LIMIT=9007199254740992;if(offset<=-DOUBLE_LIMIT||offset>=DOUBLE_LIMIT){return-61}FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[newOffset>>2]=tempI64[0],HEAP32[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_write(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doWritev(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}var FSNode=function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev};var readMode=292|73;var writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(val){val?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(val){val?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}});FS.FSNode=FSNode;FS.staticInit();Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var asmLibraryArg={"h":___sys_fcntl64,"g":___sys_open,"f":___sys_read,"a":_abort,"n":_clock,"k":_emscripten_memcpy_big,"l":_emscripten_resize_heap,"m":_environ_get,"d":_environ_sizes_get,"c":_fd_close,"e":_fd_fdstat_get,"j":_fd_seek,"b":_fd_write,"i":_gettimeofday,"memory":wasmMemory,"table":wasmTable};var asm=createWasm();var ___wasm_call_ctors=Module["___wasm_call_ctors"]=function(){return(___wasm_call_ctors=Module["___wasm_call_ctors"]=Module["asm"]["o"]).apply(null,arguments)};var _hevc_decoder_init=Module["_hevc_decoder_init"]=function(){return(_hevc_decoder_init=Module["_hevc_decoder_init"]=Module["asm"]["p"]).apply(null,arguments)};var _hevc_to_yuv=Module["_hevc_to_yuv"]=function(){return(_hevc_to_yuv=Module["_hevc_to_yuv"]=Module["asm"]["q"]).apply(null,arguments)};var ___errno_location=Module["___errno_location"]=function(){return(___errno_location=Module["___errno_location"]=Module["asm"]["r"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return(_malloc=Module["_malloc"]=Module["asm"]["s"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return(stackSave=Module["stackSave"]=Module["asm"]["t"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return(stackRestore=Module["stackRestore"]=Module["asm"]["u"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return(stackAlloc=Module["stackAlloc"]=Module["asm"]["v"]).apply(null,arguments)};Module["ccall"]=ccall;Module["cwrap"]=cwrap;Module["getMemory"]=getMemory;Module["addRunDependency"]=addRunDependency;Module["removeRunDependency"]=removeRunDependency;Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;Module["addFunction"]=addFunction;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(args){args=args||arguments_;if(runDependencies>0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}noExitRuntime=true;run(); +var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;var nodeFS;var nodePath;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}read_=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);return nodeFS["readFileSync"](filename,binary?null:"utf8")};readBinary=function readBinary(filename){var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",function(ex){if(!(ex instanceof ExitStatus)){throw ex}});process["on"]("unhandledRejection",abort);quit_=function(status){process["exit"](status)};Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_SHELL){if(typeof read!="undefined"){read_=function shell_read(f){return read(f)}}readBinary=function readBinary(f){var data;if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){arguments_=scriptArgs}else if(typeof arguments!="undefined"){arguments_=arguments}if(typeof quit==="function"){quit_=function(status){quit(status)}}if(typeof print!=="undefined"){if(typeof console==="undefined")console={};console.log=print;console.warn=console.error=typeof printErr!=="undefined"?printErr:print}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(document.currentScript){scriptDirectory=document.currentScript.src}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){readBinary=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}readAsync=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}onerror()};xhr.onerror=onerror;xhr.send(null)}}setWindowTitle=function(title){document.title=title}}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);for(key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var STACK_ALIGN=16;function dynamicAlloc(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=ret+size+15&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;return ret}function alignMemory(size,factor){if(!factor)factor=STACK_ALIGN;return Math.ceil(size/factor)*factor}function convertJsFunctionToWasm(func,sig){if(typeof WebAssembly.Function==="function"){var typeNames={"i":"i32","j":"i64","f":"f32","d":"f64"};var type={parameters:[],results:sig[0]=="v"?[]:[typeNames[sig[0]]]};for(var i=1;i=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i=55296&&u<=57343){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}function lengthBytesUTF8(str){var len=0;for(var i=0;i=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127)++len;else if(u<=2047)len+=2;else if(u<=65535)len+=3;else len+=4}return len}function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}var WASM_PAGE_SIZE=65536;function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var DYNAMIC_BASE=5514832,DYNAMICTOP_PTR=271936;var INITIAL_INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_INITIAL_MEMORY/WASM_PAGE_SIZE,"maximum":2147483648/WASM_PAGE_SIZE})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=true;if(!Module["noFSInit"]&&!FS.init.initialized)FS.init();TTY.init();callRuntimeCallbacks(__ATINIT__)}function preMain(){FS.ignorePermissions=false;callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var Math_abs=Math.abs;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_min=Math.min;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){if(Module["onAbort"]){Module["onAbort"](what)}what+="";err(what);ABORT=true;EXITSTATUS=1;what="abort("+what+"). Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);throw e}function hasPrefix(str,prefix){return String.prototype.startsWith?str.startsWith(prefix):str.indexOf(prefix)===0}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return hasPrefix(filename,dataURIPrefix)}var fileURIPrefix="file://";function isFileURI(filename){return hasPrefix(filename,fileURIPrefix)}var wasmBinaryFile="libffmpeg.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(){try{if(wasmBinary){return new Uint8Array(wasmBinary)}if(readBinary){return readBinary(wasmBinaryFile)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&typeof fetch==="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary()})}return Promise.resolve().then(getBinary)}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiatedSource(output){receiveInstance(output["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiatedSource,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiatedSource)})})}else{return instantiateArrayBuffer(receiveInstantiatedSource)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync();return{}}var tempDouble;var tempI64;__ATINIT__.push({func:function(){___wasm_call_ctors()}});function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){wasmTable.get(func)()}else{wasmTable.get(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}function demangle(func){return func}function demangleAll(text){var regex=/\b_Z[\w\d_]+/g;return text.replace(regex,function(x){var y=demangle(x);return x===y?x:y+" ["+x+"]"})}function jsStackTrace(){var error=new Error;if(!error.stack){try{throw new Error}catch(e){error=e}if(!error.stack){return"(no stack trace available)"}}return error.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}function setErrNo(value){HEAP32[___errno_location()>>2]=value;return value}var PATH={splitPath:function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)},normalizeArray:function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up;up--){parts.unshift("..")}}return parts},normalize:function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path},dirname:function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir},basename:function(path){if(path==="/")return"/";path=PATH.normalize(path);path=path.replace(/\/$/,"");var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)},extname:function(path){return PATH.splitPath(path)[3]},join:function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))},join2:function(l,r){return PATH.normalize(l+"/"+r)}};var PATH_FS={resolve:function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter(function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."},relative:function(from,to){from=PATH_FS.resolve(from).substr(1);to=PATH_FS.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()},put_char:function(tty,val){if(val===null||val===10){out(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){out(UTF8ArrayToString(tty.output,0));tty.output=[]}}},default_tty1_ops:{put_char:function(tty,val){if(val===null||val===10){err(UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}},flush:function(tty){if(tty.output&&tty.output.length>0){err(UTF8ArrayToString(tty.output,0));tty.output=[]}}}};var MEMFS={ops_table:null,mount:function(mount){return MEMFS.createNode(null,"/",16384|511,0)},createNode:function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(63)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node},getFileDataAsRegularArray:function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity>>0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return},resizeFileStorage:function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(newSize);if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i0||position+length8){throw new FS.ErrnoError(32)}var parts=PATH.normalizeArray(path.split("/").filter(function(p){return!!p}),false);var current=FS.root;var current_path="/";for(var i=0;i40){throw new FS.ErrnoError(32)}}}}return{path:current_path,node:current}},getPath:function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}},hashName:function(parentid,name){var hash=0;for(var i=0;i>>0)%FS.nameTable.length},hashAddNode:function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node},hashRemoveNode:function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}},lookupNode:function(parent,name){var errCode=FS.mayLookup(parent);if(errCode){throw new FS.ErrnoError(errCode,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)},createNode:function(parent,name,mode,rdev){var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node},destroyNode:function(node){FS.hashRemoveNode(node)},isRoot:function(node){return node===node.parent},isMountpoint:function(node){return!!node.mounted},isFile:function(mode){return(mode&61440)===32768},isDir:function(mode){return(mode&61440)===16384},isLink:function(mode){return(mode&61440)===40960},isChrdev:function(mode){return(mode&61440)===8192},isBlkdev:function(mode){return(mode&61440)===24576},isFIFO:function(mode){return(mode&61440)===4096},isSocket:function(mode){return(mode&49152)===49152},flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags},flagsToPermissionString:function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms},nodePermissions:function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return 2}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return 2}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return 2}return 0},mayLookup:function(dir){var errCode=FS.nodePermissions(dir,"x");if(errCode)return errCode;if(!dir.node_ops.lookup)return 2;return 0},mayCreate:function(dir,name){try{var node=FS.lookupNode(dir,name);return 20}catch(e){}return FS.nodePermissions(dir,"wx")},mayDelete:function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var errCode=FS.nodePermissions(dir,"wx");if(errCode){return errCode}if(isdir){if(!FS.isDir(node.mode)){return 54}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return 10}}else{if(FS.isDir(node.mode)){return 31}}return 0},mayOpen:function(node,flags){if(!node){return 44}if(FS.isLink(node.mode)){return 32}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return 31}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))},MAX_OPEN_FDS:4096,nextfd:function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(33)},getStream:function(fd){return FS.streams[fd]},createStream:function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=function(){};FS.FSStream.prototype={object:{get:function(){return this.node},set:function(val){this.node=val}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}}}}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream},closeStream:function(fd){FS.streams[fd]=null},chrdev_stream_ops:{open:function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}},llseek:function(){throw new FS.ErrnoError(70)}},major:function(dev){return dev>>8},minor:function(dev){return dev&255},makedev:function(ma,mi){return ma<<8|mi},registerDevice:function(dev,ops){FS.devices[dev]={stream_ops:ops}},getDevice:function(dev){return FS.devices[dev]},getMounts:function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts},syncfs:function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){err("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(errCode){FS.syncFSRequests--;return callback(errCode)}function done(errCode){if(errCode){if(!done.errored){done.errored=true;return doCallback(errCode)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach(function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)})},mount:function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(10)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(10)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(54)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot},unmount:function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(28)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach(function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}});node.mounted=null;var idx=node.mount.mounts.indexOf(mount);node.mount.mounts.splice(idx,1)},lookup:function(parent,name){return parent.node_ops.lookup(parent,name)},mknod:function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(28)}var errCode=FS.mayCreate(parent,name);if(errCode){throw new FS.ErrnoError(errCode)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(63)}return parent.node_ops.mknod(parent,name,mode,dev)},create:function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)},mkdir:function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)},mkdirTree:function(path,mode){var dirs=path.split("/");var d="";for(var i=0;ithis.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}};var lazyArray=this;lazyArray.setDataGetter(function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]});if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;out("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._length}},chunkSize:{get:function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize}}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:function(){return this.contents.length}}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach(function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}return fn.apply(null,arguments)}});stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(29)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);if(contents.slice){for(var i=0;i>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;tempI64=[stat.size>>>0,(tempDouble=stat.size,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+40>>2]=tempI64[0],HEAP32[buf+44>>2]=tempI64[1];HEAP32[buf+48>>2]=4096;HEAP32[buf+52>>2]=stat.blocks;HEAP32[buf+56>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+76>>2]=0;tempI64=[stat.ino>>>0,(tempDouble=stat.ino,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[buf+80>>2]=tempI64[0],HEAP32[buf+84>>2]=tempI64[1];return 0},doMsync:function(addr,stream,len,flags,offset){var buffer=HEAPU8.slice(addr,addr+len);FS.msync(stream,buffer,offset,len,flags)},doMkdir:function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0},doMknod:function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}FS.mknod(path,mode,dev);return 0},doReadlink:function(path,buf,bufsize){if(bufsize<=0)return-28;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len},doAccess:function(path,amode){if(amode&~7){return-28}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;if(!node){return-44}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-2}return 0},doDup:function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd},doReadv:function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret},varargs:undefined,get:function(){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret},getStr:function(ptr){var ret=UTF8ToString(ptr);return ret},getStreamFromFD:function(fd){var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(8);return stream},get64:function(low,high){return low}};function ___sys_fcntl64(fd,cmd,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(fd);switch(cmd){case 0:{var arg=SYSCALLS.get();if(arg<0){return-28}var newStream;newStream=FS.open(stream.path,stream.flags,0,arg);return newStream.fd}case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=SYSCALLS.get();stream.flags|=arg;return 0}case 12:{var arg=SYSCALLS.get();var offset=0;HEAP16[arg+offset>>1]=2;return 0}case 13:case 14:return 0;case 16:case 8:return-28;case 9:setErrNo(28);return-1;default:{return-28}}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___sys_open(path,flags,varargs){SYSCALLS.varargs=varargs;try{var pathname=SYSCALLS.getStr(path);var mode=SYSCALLS.get();var stream=FS.open(pathname,flags,mode);return stream.fd}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___sys_read(fd,buf,count){try{var stream=SYSCALLS.getStreamFromFD(fd);return FS.read(stream,HEAP8,buf,count)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function _abort(){abort()}function _clock(){if(_clock.start===undefined)_clock.start=Date.now();return(Date.now()-_clock.start)*(1e6/1e3)|0}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function _emscripten_get_heap_size(){return HEAPU8.length}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){requestedSize=requestedSize>>>0;var oldSize=_emscripten_get_heap_size();var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}var minHeapSize=16777216;for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(minHeapSize,requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ENV={};function getExecutableName(){return thisProgram||"./this.program"}function getEnvStrings(){if(!getEnvStrings.strings){var lang=(typeof navigator==="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8";var env={"USER":"web_user","LOGNAME":"web_user","PATH":"/","PWD":"/","HOME":"/home/web_user","LANG":lang,"_":getExecutableName()};for(var x in ENV){env[x]=ENV[x]}var strings=[];for(var x in env){strings.push(x+"="+env[x])}getEnvStrings.strings=strings}return getEnvStrings.strings}function _environ_get(__environ,environ_buf){var bufSize=0;getEnvStrings().forEach(function(string,i){var ptr=environ_buf+bufSize;HEAP32[__environ+i*4>>2]=ptr;writeAsciiToMemory(string,ptr);bufSize+=string.length+1});return 0}function _environ_sizes_get(penviron_count,penviron_buf_size){var strings=getEnvStrings();HEAP32[penviron_count>>2]=strings.length;var bufSize=0;strings.forEach(function(string){bufSize+=string.length+1});HEAP32[penviron_buf_size>>2]=bufSize;return 0}function _fd_close(fd){try{var stream=SYSCALLS.getStreamFromFD(fd);FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_fdstat_get(fd,pbuf){try{var stream=SYSCALLS.getStreamFromFD(fd);var type=stream.tty?2:FS.isDir(stream.mode)?3:FS.isLink(stream.mode)?7:4;HEAP8[pbuf>>0]=type;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_seek(fd,offset_low,offset_high,whence,newOffset){try{var stream=SYSCALLS.getStreamFromFD(fd);var HIGH_OFFSET=4294967296;var offset=offset_high*HIGH_OFFSET+(offset_low>>>0);var DOUBLE_LIMIT=9007199254740992;if(offset<=-DOUBLE_LIMIT||offset>=DOUBLE_LIMIT){return-61}FS.llseek(stream,offset,whence);tempI64=[stream.position>>>0,(tempDouble=stream.position,+Math_abs(tempDouble)>=1?tempDouble>0?(Math_min(+Math_floor(tempDouble/4294967296),4294967295)|0)>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[newOffset>>2]=tempI64[0],HEAP32[newOffset+4>>2]=tempI64[1];if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _fd_write(fd,iov,iovcnt,pnum){try{var stream=SYSCALLS.getStreamFromFD(fd);var num=SYSCALLS.doWritev(stream,iov,iovcnt);HEAP32[pnum>>2]=num;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return e.errno}}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}var FSNode=function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev};var readMode=292|73;var writeMode=146;Object.defineProperties(FSNode.prototype,{read:{get:function(){return(this.mode&readMode)===readMode},set:function(val){val?this.mode|=readMode:this.mode&=~readMode}},write:{get:function(){return(this.mode&writeMode)===writeMode},set:function(val){val?this.mode|=writeMode:this.mode&=~writeMode}},isFolder:{get:function(){return FS.isDir(this.mode)}},isDevice:{get:function(){return FS.isChrdev(this.mode)}}});FS.FSNode=FSNode;FS.staticInit();Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}var asmLibraryArg={"h":___sys_fcntl64,"g":___sys_open,"f":___sys_read,"a":_abort,"n":_clock,"k":_emscripten_memcpy_big,"l":_emscripten_resize_heap,"m":_environ_get,"d":_environ_sizes_get,"c":_fd_close,"e":_fd_fdstat_get,"j":_fd_seek,"b":_fd_write,"i":_gettimeofday,"memory":wasmMemory,"table":wasmTable};var asm=createWasm();var ___wasm_call_ctors=Module["___wasm_call_ctors"]=function(){return(___wasm_call_ctors=Module["___wasm_call_ctors"]=Module["asm"]["o"]).apply(null,arguments)};var _decoder_init=Module["_decoder_init"]=function(){return(_decoder_init=Module["_decoder_init"]=Module["asm"]["p"]).apply(null,arguments)};var _decoder_to_yuv=Module["_decoder_to_yuv"]=function(){return(_decoder_to_yuv=Module["_decoder_to_yuv"]=Module["asm"]["q"]).apply(null,arguments)};var _decoder_deinit=Module["_decoder_deinit"]=function(){return(_decoder_deinit=Module["_decoder_deinit"]=Module["asm"]["r"]).apply(null,arguments)};var ___errno_location=Module["___errno_location"]=function(){return(___errno_location=Module["___errno_location"]=Module["asm"]["s"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return(_malloc=Module["_malloc"]=Module["asm"]["t"]).apply(null,arguments)};var stackSave=Module["stackSave"]=function(){return(stackSave=Module["stackSave"]=Module["asm"]["u"]).apply(null,arguments)};var stackRestore=Module["stackRestore"]=function(){return(stackRestore=Module["stackRestore"]=Module["asm"]["v"]).apply(null,arguments)};var stackAlloc=Module["stackAlloc"]=function(){return(stackAlloc=Module["stackAlloc"]=Module["asm"]["w"]).apply(null,arguments)};Module["ccall"]=ccall;Module["cwrap"]=cwrap;Module["getMemory"]=getMemory;Module["addRunDependency"]=addRunDependency;Module["removeRunDependency"]=removeRunDependency;Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;Module["addFunction"]=addFunction;var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(args){args=args||arguments_;if(runDependencies>0){return}preRun();if(runDependencies>0)return;function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}noExitRuntime=true;run(); diff --git a/public/static/tums-player/libffmpeg.wasm b/public/static/tums-player/libffmpeg.wasm index 28d3ed8..6e4d526 100644 Binary files a/public/static/tums-player/libffmpeg.wasm and b/public/static/tums-player/libffmpeg.wasm differ diff --git a/public/static/tums-player/libs.worker.js b/public/static/tums-player/libs.worker.js index ae77d8b..5f9af01 100644 --- a/public/static/tums-player/libs.worker.js +++ b/public/static/tums-player/libs.worker.js @@ -14,11 +14,24 @@ let finalOutputBuffer; let has_init = 0; let isG726 = true; var Module = {}; +let audioDeviceDataBuffer; +let sendDeviceBuffer; +let has_audio_init = 0; +let lastAACSampleRate = 0; +let has_post_audio_process_init = 0; +let lastAudioDecodeSampleRate = 0; postMessage({ hasInstalled: true }); this.onmessage = function (event) { let { cmd } = event.data; + let { isStop, decoderType } = event.data; + if (isStop) { + if (has_post_audio_process_init || has_audio_init) { + Module._tp_audio_deinit(); + } + return; + } if (cmd === 'init') { let { scripts, wasmBinary } = event.data; Module.wasmBinary = wasmBinary; @@ -28,15 +41,41 @@ this.onmessage = function (event) { if (!Module['asm']) return; if (!has_init) { - Module._tp_ns2_init(event.data.samplerate || 8000); has_init = 1; - inputBuffer = Module._malloc(1024 * 2); - outputBuffer = Module._malloc(1024 * 2); - finalOutputBuffer = Module._malloc(1024 * 2); + audioDeviceDataBuffer = Module._malloc(1024 * 2); + inputBuffer = Module._malloc(1024 * 4); + outputBuffer = Module._malloc(1024 * 4); + finalOutputBuffer = Module._malloc(1024 * 4); postMessage({ hasInit: true }); return; } - let { dts, pts, timestamp, seq, type, samplerate, bitCount, decoderType } = event.data; + if (cmd === 'flush') { + postMessage({ flushed: true }); + return; + } + let { dts, pts, timestamp, seq, type, samplerate, bitCount, mode } = event.data; + if (decoderType !== '_decodePCM') { + let newSampleRate = samplerate || 8000; + if (lastAudioDecodeSampleRate != newSampleRate) { + if (has_post_audio_process_init) { + Module._tp_audio_deinit(); + } + has_post_audio_process_init = 1; + // _tp_audio_init(sample_rate, + // ns_enable, ns_mode, ns_intensity, ns_threshold, ns_twice_process_enable, ns_gain, + // echo_intensity, aec_gain, + // tp_ao_agc_enable, ao_target_level, ao_none_motor_compression_gain) + let initRet = Module._tp_audio_init(newSampleRate, + 1, 1, 10, 30000, 0, 1, + 4, 1, + 0, -1, 12); + if (initRet !== 0) { + has_post_audio_process_init = 0; + Module._tp_audio_deinit(); + } + lastAudioDecodeSampleRate = newSampleRate; + } + } let param = { pts: pts, dts: dts, @@ -57,8 +96,12 @@ this.onmessage = function (event) { chunk_num = Module._decodeG726(0, inputBuffer, chunk.length, outputBuffer); if (chunk_num === 1) { let getLength = ((chunk.length << 4) / bitCount) >>> 1; - Module._tp_ns2_process(outputBuffer, getLength, finalOutputBuffer); - let finalOutArray = Module.HEAP16.subarray(finalOutputBuffer >> 1, (finalOutputBuffer + getLength * 2) >> 1); + let procRet = -1; + if (has_post_audio_process_init) { + procRet = Module._tp_audio_process(outputBuffer, null, inputBuffer, getLength * 2); + } + let resultPCM = procRet !== 0 ? outputBuffer : inputBuffer; + let finalOutArray = Module.HEAP16.subarray(resultPCM >> 1, (resultPCM + getLength * 2) >> 1); finalOutArray = new Int16Array(finalOutArray); postMessage({ data: finalOutArray.buffer, @@ -66,22 +109,61 @@ this.onmessage = function (event) { }); } } else if (decoderType === '_decodeAAC') { + if (lastAACSampleRate <= 0) { + lastAACSampleRate = samplerate; + } + if (lastAACSampleRate != samplerate) { + Module._destroy_AAC_decoder(); + } + lastAACSampleRate = samplerate; var pcmLen = Module._decodeAAC(outputBuffer, inputBuffer, chunk.length); if (pcmLen >= 0) { - Module._tp_ns2_process(outputBuffer, pcmLen, finalOutputBuffer); - let finalOutArray = Module.HEAP16.subarray(finalOutputBuffer >> 1, (finalOutputBuffer + pcmLen * 2) >> 1); + let procRet = -1; + if (has_post_audio_process_init) { + procRet = Module._tp_audio_process(outputBuffer, null, inputBuffer, pcmLen * 2); + } + let resultPCM = procRet !== 0 ? outputBuffer : inputBuffer; + let finalOutArray = Module.HEAP16.subarray(resultPCM >> 1, (resultPCM + pcmLen * 2) >> 1); finalOutArray = new Int16Array(finalOutArray); postMessage({ data: finalOutArray.buffer, ...param }); } + } else if (decoderType === '_decodePCM') { + if (!has_audio_init) { + has_audio_init = 1; + // _tp_audio_init(sample_rate, + // ns_enable, ns_mode, ns_intensity, ns_threshold, ns_twice_process_enable, ns_gain, + // echo_intensity, aec_gain, + // tp_ao_agc_enable, ao_target_level, ao_none_motor_compression_gain) + Module._tp_audio_init(samplerate || 8000, + 1, 1, 35, 30000, 0, 1, + 4, 1, + 0, -1, 12); + } + Module._tp_audio_process(inputBuffer, null, outputBuffer, chunk.length, 0); + chunk_num = Module._encodeG711a(inputBuffer, outputBuffer, chunk.length / 2); + if (chunk_num === 1) { + // 播放数据 + let finalOutArray = Module.HEAPU8.subarray(inputBuffer, inputBuffer + chunk.length / 2); + finalOutArray = new Uint8Array(finalOutArray); + postMessage({ + data: finalOutArray.buffer, + ...param + }); + } } else { chunk_num = Module[decoderType](outputBuffer, inputBuffer, chunk.length); if (chunk_num === 1) { - Module._tp_ns2_process(outputBuffer, chunk.length, finalOutputBuffer); - let finalOutArray = Module.HEAP16.subarray(finalOutputBuffer >> 1, (finalOutputBuffer + chunk.length * 2) >> 1); + let procRet = -1; + if (has_post_audio_process_init) { + procRet = Module._tp_audio_process(outputBuffer, null, inputBuffer, chunk.length * 2); + } + let resultPCM = procRet !== 0 ? outputBuffer : inputBuffer; + // 播放数据 + let finalOutArray = Module.HEAP16.subarray(resultPCM >> 1, (resultPCM + chunk.length * 2) >> 1); finalOutArray = new Int16Array(finalOutArray); postMessage({ data: finalOutArray.buffer, @@ -89,4 +171,4 @@ this.onmessage = function (event) { }); } } -}; +}; \ No newline at end of file diff --git a/public/static/tums-player/tums-player.umd.min.js b/public/static/tums-player/tums-player.umd.min.js index e3ff4e2..93cad4b 100644 --- a/public/static/tums-player/tums-player.umd.min.js +++ b/public/static/tums-player/tums-player.umd.min.js @@ -1,4 +1,4 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["tums-player"]=t():e["tums-player"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({0:function(e,t){},"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("e330"),s=n("1626"),c=n("861d"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),f=i.Error,l=o(/./.test);r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=this.exec;if(!s(t))return l(this,e);var n=a(t,this,e);if(null!==n&&!c(n))throw new f("RegExp exec method returned something other than an Object or null");return!!n}})},"00bb":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o1?arguments[1]:void 0),i=new(f(t,a("Map"))),d=c(i.set);return h(n,(function(e,n){s(d,i,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),a=n("f6b4"),o=n("5270"),s=n("4a7b"),c=n("848b"),u=c.validators;function f(e){this.defaults=e,this.interceptors={request:new a,response:new a}}f.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var f=[o,void 0];Array.prototype.unshift.apply(f,n),f=f.concat(a),i=Promise.resolve(e);while(f.length)i=i.then(f.shift(),f.shift());return i}var l=e;while(n.length){var h=n.shift(),d=n.shift();try{l=h(l)}catch(p){d(p);break}}try{i=o(l)}catch(p){return Promise.reject(p)}while(a.length)i=i.then(a.shift(),a.shift());return i},f.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){f.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=f},"0a0d":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),a=n("825a");e.exports=function(){for(var e,t=a(this),n=i(t["delete"]),o=!0,s=0,c=arguments.length;s]*>)/g,f=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,l,h){var d=n+e.length,p=r.length,v=f;return void 0!==l&&(l=i(l),v=u),s(h,v,(function(i,s){var u;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,d);case"<":u=l[c(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>p){var h=a(f/10);return 0===h?i:h<=p?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}u=r[f-1]}return void 0===u?"":u}))}},"0ccb":function(e,t,n){var r=n("e330"),i=n("50c4"),a=n("577e"),o=n("1148"),s=n("1d80"),c=r(o),u=r("".slice),f=Math.ceil,l=function(e){return function(t,n,r){var o,l,h=a(s(t)),d=i(n),p=h.length,v=void 0===r?" ":a(r);return d<=p||""==v?h:(o=d-p,l=c(v,f(o/v.length)),l.length>o&&(l=u(l,0,o)),e?h+l:l+h)}};e.exports={start:l(!1),end:l(!0)}},"0ce4":function(e,t,n){"use strict";var r=n("23e7"),i=n("2ba4"),a=n("825a"),o=n("f8cd"),s=n("d195"),c=s((function(e,t){var n=this;return new e((function(r,o){var s=function(){try{e.resolve(a(i(n.next,n.iterator,n.remaining?[]:t))).then((function(e){try{a(e).done?(n.done=!0,r({done:!0,value:void 0})):n.remaining?(n.remaining--,s()):r({done:!1,value:e.value})}catch(t){o(t)}}),o)}catch(c){o(c)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{drop:function(e){return new c({iterator:a(this),remaining:o(e)})}})},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),a=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d03":function(e,t,n){var r=n("e330"),i=n("6eeb"),a=Date.prototype,o="Invalid Date",s="toString",c=r(a[s]),u=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var e=u(this);return e===e?c(this):o}))},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),a=n("c430"),o=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0d51":function(e,t,n){var r=n("da84"),i=r.String;e.exports=function(e){try{return i(e)}catch(t){return"Object"}}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e13":function(e,t,n){n("a1f0")},"0eb6":function(e,t,n){"use strict";var r=n("23e7"),i=n("7c37"),a=n("d066"),o=n("d039"),s=n("7c73"),c=n("5c6c"),u=n("9bf2").f,f=n("37e8").f,l=n("6eeb"),h=n("1a2d"),d=n("19aa"),p=n("825a"),v=n("aa1f"),m=n("e391"),y=n("cf98"),g=n("c770"),b=n("69f3"),T=n("83ab"),S=n("c430"),_="DOMException",E="DATA_CLONE_ERR",w=a("Error"),k=a(_)||function(){try{var e=a("MessageChannel")||i("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if(t.name==E&&25==t.code)return t.constructor}}(),A=k&&k.prototype,R=w.prototype,x=b.set,I=b.getterFor(_),C="stack"in w(_),P=function(e){return h(y,e)&&y[e].m?y[e].c:0},O=function(){d(this,D);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=P(n);if(x(this,{type:_,name:n,message:t,code:r}),T||(this.name=n,this.message=t,this.code=r),C){var i=w(t);i.name=_,u(this,"stack",c(1,g(i.stack,1)))}},D=O.prototype=s(R),U=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return U((function(){return I(this)[e]}))};T&&f(D,{name:M("name"),message:M("message"),code:M("code")}),u(D,"constructor",c(1,O));var B=o((function(){return!(new k instanceof w)})),N=B||o((function(){return R.toString!==v||"2: 1"!==String(new k(1,2))})),L=B||o((function(){return 25!==new k(1,"DataCloneError").code})),F=B||25!==k[E]||25!==A[E],j=S?N||L||F:B;r({global:!0,forced:j},{DOMException:j?O:k});var W=a(_),H=W.prototype;for(var V in N&&(S||k===W)&&l(H,"toString",v),L&&T&&k===W&&u(H,"code",U((function(){return P(p(this).name)}))),y)if(h(y,V)){var z=y[V],q=z.s,G=c(6,z.c);h(W,q)||u(W,q,G),h(H,q)||u(H,q,G)}},"0ebb":function(e,t,n){n("dbfa")},1034:function(e,t,n){var r=n("23e7"),i=n("a799"),a=n("d066"),o=n("2ba4");r({global:!0},{compositeSymbol:function(){return 1==arguments.length&&"string"==typeof arguments[0]?a("Symbol")["for"](arguments[0]):o(i,null,arguments).get("symbol",a("Symbol"))}})},"107c":function(e,t,n){var r=n("d039"),i=n("da84"),a=i.RegExp;e.exports=r((function(){var e=a("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"10b7":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){ +(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["tums-player"]=e():t["tums-player"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({0:function(t,e){},"0094":function(t,e,i){"use strict";var r,n=i("bb2f"),s=i("cfe9"),a=i("e330"),o=i("6964"),h=i("f183"),c=i("6d61"),u=i("acac"),l=i("861d"),d=i("69f3").enforce,f=i("d039"),p=i("cdce"),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,b=g.isSealed,_=g.freeze,T=g.seal,S=!s.ActiveXObject&&"ActiveXObject"in s,w=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",w,u),x=E.prototype,A=a(x.set),C=function(){return n&&f((function(){var t=_([]);return A(new E,t,1),!y(t)}))};if(p)if(S){r=u.getConstructor(w,"WeakMap",!0),h.enable();var R=a(x["delete"]),P=a(x.has),I=a(x.get);o(x,{delete:function(t){if(l(t)&&!v(t)){var e=d(this);return e.frozen||(e.frozen=new r),R(this,t)||e.frozen["delete"](t)}return R(this,t)},has:function(t){if(l(t)&&!v(t)){var e=d(this);return e.frozen||(e.frozen=new r),P(this,t)||e.frozen.has(t)}return P(this,t)},get:function(t){if(l(t)&&!v(t)){var e=d(this);return e.frozen||(e.frozen=new r),P(this,t)?I(this,t):e.frozen.get(t)}return I(this,t)},set:function(t,e){if(l(t)&&!v(t)){var i=d(this);i.frozen||(i.frozen=new r),P(this,t)?A(this,t,e):i.frozen.set(t,e)}else A(this,t,e);return this}})}else C()&&o(x,{set:function(t,e){var i;return m(t)&&(y(t)?i=_:b(t)&&(i=T)),A(this,t,e),i&&i(t),this}})},"00b4":function(t,e,i){"use strict";i("ac1f");var r=i("23e7"),n=i("c65b"),s=i("1626"),a=i("825a"),o=i("577e"),h=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!h},{test:function(t){var e=a(this),i=o(t),r=e.exec;if(!s(r))return n(c,e,i);var h=n(r,e,i);return null!==h&&(a(h),!0)}})},"00bb":function(t,e,i){(function(e,r,n){t.exports=r(i("21bf"),i("38ba"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function i(t,e,i,r){var n,s=this._iv;s?(n=s.slice(0),this._iv=void 0):n=this._prevBlock,r.encryptBlock(n,0);for(var a=0;a=i)e|=1&t,t>>=1;return t+e}function s(t,e,i,r){var n=e+1;if(n===i)return 1;if(r(t[n++],t[e])<0){while(n=0)n++;return n-e}function a(t,e,i){i--;while(e>>1,n(a,t[s])<0?h=s:o=s+1;var c=r-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:while(c>0)t[o+c]=t[o+c-1],c--}t[o]=a}}function h(t,e,i,r,n,s){var a=0,o=0,h=1;if(s(t,e[i+n])>0){o=r-n;while(h0)a=h,h=1+(h<<1),h<=0&&(h=o);h>o&&(h=o),a+=n,h+=n}else{o=n+1;while(ho&&(h=o);var c=a;a=n-h,h=n-c}a++;while(a>>1);s(t,e[i+u])>0?a=u+1:h=u}return h}function c(t,e,i,r,n,s){var a=0,o=0,h=1;if(s(t,e[i+n])<0){o=n+1;while(ho&&(h=o);var c=a;a=n-h,h=n-c}else{o=r-n;while(h=0)a=h,h=1+(h<<1),h<=0&&(h=o);h>o&&(h=o),a+=n,h+=n}a++;while(a>>1);s(t,e[i+u])<0?h=u:a=u+1}return h}function u(t,e){var i,n,s=r,a=0,o=0;a=t.length;var u=[];function l(t,e){i[o]=t,n[o]=e,o+=1}function d(){while(o>1){var t=o-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;p(t)}}function f(){while(o>1){var t=o-2;t>0&&n[t-1]=r||m>=r);if(v)break;y<0&&(y=0),y+=2}if(s=y,s<1&&(s=1),1===n){for(l=0;l=0;l--)t[m+l]=t[g+l];if(0===n){_=!0;break}}if(t[p--]=u[f--],1===--o){_=!0;break}if(b=o-h(t[d],u,0,o,o-1,e),0!==b){for(p-=b,f-=b,o-=b,m=p+1,g=f+1,l=0;l=r||b>=r);if(_)break;v<0&&(v=0),v+=2}if(s=v,s<1&&(s=1),1===o){for(p-=n,d-=n,m=p+1,g=d+1,l=n-1;l>=0;l--)t[m+l]=t[g+l];t[p]=u[f]}else{if(0===o)throw new Error;for(g=p-(o-1),l=0;l=0;l--)t[m+l]=t[g+l];t[p]=u[f]}else for(g=p-(o-1),l=0;ld&&(f=d),o(t,r,r+f,r+c,e),c=f}l.pushRun(r,c),l.mergeRuns(),h-=c,r+=c}while(0!==h);l.forceMergeRuns()}}t.exports=l},"04f8":function(t,e,i){"use strict";var r=i("1212"),n=i("d039"),s=i("cfe9"),a=s.String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"0538":function(t,e,i){"use strict";var r=i("e330"),n=i("59ed"),s=i("861d"),a=i("1a2d"),o=i("f36a"),h=i("40d5"),c=Function,u=r([].concat),l=r([].join),d={},f=function(t,e,i){if(!a(d,e)){for(var r=[],n=0;n.5?e:t}function d(t,e,i,r,n){var s=t.length;if(1===n)for(var a=0;an;if(s)t.length=n;else for(var a=r;a=0;i--)if(R[i]<=e)break;i=Math.min(i,T-2)}else{for(i=H;ie)break;i=Math.min(i-1,T-2)}H=i,j=e;var r=R[i+1]-R[i];if(0!==r)if(L=(e-R[i])/r,_)if(z=P[i],U=P[0===i?i:i-1],F=P[i>T-2?T-1:i+1],W=P[i>T-3?T-1:i+2],E)g(U,z,F,W,L,L*L,L*L*L,c(t,o),C);else{if(x)n=g(U,z,F,W,L,L*L,L*L*L,V,1),n=y(V);else{if(A)return l(z,F,L);n=m(U,z,F,W,L,L*L,L*L*L)}v(t,o,n)}else if(E)d(P[i],P[i+1],L,c(t,o),C);else{var n;if(x)d(P[i],P[i+1],L,V,1),n=y(V);else{if(A)return l(P[i],P[i+1],L);n=u(P[i],P[i+1],L)}v(t,o,n)}},G=new r({target:t._target,life:S,loop:t._loop,delay:t._delay,onframe:q,ondestroy:i});return e&&"spline"!==e&&(G.easing=e),G}}}var T=function(t,e,i,r){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||h,this._setter=r||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};T.prototype={when:function(t,e){var i=this._tracks;for(var r in e)if(e.hasOwnProperty(r)){if(!i[r]){i[r]=[];var n=this._getter(this._target,r);if(null==n)continue;0!==t&&i[r].push({time:0,value:v(n)})}i[r].push({time:t,value:e[r]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t1?arguments[1]:void 0),r=new h;return o(e,(function(t,n){c(r,n,i(t,n,e))})),r}})},"0a00":function(t,e,i){"use strict";var r=i("23e7"),n=i("cfe9"),s=i("8a96"),a=i("6b37"),o=i("2005"),h=i("015d");n.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(t){a(this),s(t),o(this.buffer);var e=h(t,this).read;return{read:e,written:e/2}}})},"0a06":function(t,e,i){"use strict";var r=i("c532"),n=i("30b5"),s=i("f6b4"),a=i("5270"),o=i("4a7b"),h=i("848b"),c=h.validators;function u(t){this.defaults=t,this.interceptors={request:new s,response:new s}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=o(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&h.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var n,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!r){var u=[a,void 0];Array.prototype.unshift.apply(u,i),u=u.concat(s),n=Promise.resolve(t);while(u.length)n=n.then(u.shift(),u.shift());return n}var l=t;while(i.length){var d=i.shift(),f=i.shift();try{l=d(l)}catch(p){f(p);break}}try{n=a(l)}catch(p){return Promise.reject(p)}while(s.length)n=n.then(s.shift(),s.shift());return n},u.prototype.getUri=function(t){return t=o(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,i){return this.request(o(i||{},{method:t,url:e,data:(i||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,i,r){return this.request(o(r||{},{method:t,url:e,data:i}))}})),t.exports=u},"0a8d":function(t,e,i){"use strict";var r=i("23e7"),n=i("c65b"),s=i("ebe8"),a=i("395e");r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return n(a,this,s(t))}})},"0a90":function(t,e,i){"use strict";var r=i("23e7"),n=i("e330"),s=i("d039"),a=s((function(){return 120!==new Date(16e11).getYear()})),o=n(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},"0ac8":function(t,e,i){"use strict";var r=i("23e7"),n=i("8eb5");r({target:"Math",stat:!0,forced:n!==Math.expm1},{expm1:n})},"0b25":function(t,e,i){"use strict";var r=i("5926"),n=i("50c4"),s=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),i=n(e);if(e!==i)throw new s("Wrong length or index");return i}},"0b42":function(t,e,i){"use strict";var r=i("e8b5"),n=i("68ee"),s=i("861d"),a=i("b622"),o=a("species"),h=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,n(e)&&(e===h||r(e.prototype))?e=void 0:s(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?h:e}},"0b43":function(t,e,i){"use strict";var r=i("04f8");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b44":function(t,e,i){var r=i("607d"),n=function(){this._track=[]};function s(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function a(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}n.prototype={constructor:n,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var s={points:[],touches:[],target:e,event:t},a=0,o=n.length;a1&&r&&r.length>1){var o=s(r)/s(n);!isFinite(o)&&(o=1),e.pinchScale=o;var h=a(r);return e.pinchX=h[0],e.pinchY=h[1],{type:"pinch",target:t[0].target,event:e}}}}},h=n;t.exports=h},"0b52":function(t,e,i){"use strict";var r=i("23e7"),n=i("c65b"),s=i("ebe8"),a=i("b4bc");r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return n(a,this,s(t))}})},"0c12":function(t,e){function i(){}function r(t,e,i,r){for(var n=0,s=e.length,a=0,o=0;n=a&&l+1>=o){for(var d=[],f=0;f=a&&f+1>=o)return r(s,c.components,e,t);u[i]=c}else u[i]=void 0}h++}while(h<=c){var g=p();if(g)return g}},pushComponent:function(t,e,i){var r=t[t.length-1];r&&r.added===e&&r.removed===i?t[t.length-1]={count:r.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,r){var n=e.length,s=i.length,a=t.newPos,o=a-r,h=0;while(a+1]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,r,l,d){var f=i+t.length,p=r.length,g=u;return void 0!==l&&(l=n(l),g=c),o(d,g,(function(n,o){var c;switch(a(o,0)){case"$":return"$";case"&":return t;case"`":return h(e,0,i);case"'":return h(e,f);case"<":c=l[h(o,1,-1)];break;default:var u=+o;if(0===u)return n;if(u>p){var d=s(u/10);return 0===d?n:d<=p?void 0===r[d-1]?a(o,1):r[d-1]+a(o,1):n}c=r[u-1]}return void 0===c?"":c}))}},"0ccb":function(t,e,i){"use strict";var r=i("e330"),n=i("50c4"),s=i("577e"),a=i("1148"),o=i("1d80"),h=r(a),c=r("".slice),u=Math.ceil,l=function(t){return function(e,i,r){var a,l,d=s(o(e)),f=n(i),p=d.length,g=void 0===r?" ":s(r);return f<=p||""===g?d:(a=f-p,l=h(g,u(a/g.length)),l.length>a&&(l=c(l,0,a)),t?d+l:l+d)}};t.exports={start:l(!1),end:l(!0)}},"0cde":function(t,e,i){var r=i("1687"),n=i("401b"),s=r.identity,a=5e-5;function o(t){return t>a||t<-a}var h=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=h.prototype;c.transform=null,c.needLocalTransform=function(){return o(this.rotation)||o(this.position[0])||o(this.position[1])||o(this.scale[0]-1)||o(this.scale[1]-1)};var u=[];c.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(i||e){n=n||r.create(),i?this.getLocalTransform(n):s(n),e&&(i?r.mul(n,t.transform,n):r.copy(n,t.transform)),this.transform=n;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(u);var o=u[0]<0?-1:1,h=u[1]<0?-1:1,c=((u[0]-o)*a+o)/u[0]||0,l=((u[1]-h)*a+h)/u[1]||0;n[0]*=c,n[1]*=c,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,n)}else n&&s(n)},c.getLocalTransform=function(t){return h.getLocalTransform(this,t)},c.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},c.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var l=[],d=r.create();c.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=this.position,n=this.scale;o(e-1)&&(e=Math.sqrt(e)),o(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),r[0]=t[4],r[1]=t[5],n[0]=e,n[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},c.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(l,t.invTransform,e),e=l);var i=this.origin;i&&(i[0]||i[1])&&(d[4]=i[0],d[5]=i[1],r.mul(l,e,d),l[4]-=i[0],l[5]-=i[1],e=l),this.setLocalTransform(e)}},c.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},c.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n.applyTransform(i,i,r),i},c.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&n.applyTransform(i,i,r),i},h.getLocalTransform=function(t,e){e=e||[],s(e);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,o=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),r.scale(e,e,n),a&&r.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var f=h;t.exports=f},"0ce4":function(t,e,i){"use strict";var r=i("23e7"),n=i("c65b"),s=i("825a"),a=i("46c4"),o=i("abc1"),h=i("f8cd"),c=i("d195"),u=i("4754"),l=i("c430"),d=c((function(t){var e=this;return new t((function(i,r){var a=function(t){e.done=!0,r(t)},o=function(){try{t.resolve(s(n(e.next,e.iterator))).then((function(t){try{s(t).done?(e.done=!0,i(u(void 0,!0))):e.remaining?(e.remaining--,o()):i(u(t.value,!1))}catch(r){a(r)}}),a)}catch(r){a(r)}};o()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:l},{drop:function(t){s(this);var e=h(o(+t));return new d(a(this),{remaining:e})}})},"0cfb":function(t,e,i){"use strict";var r=i("83ab"),n=i("d039"),s=i("cc12");t.exports=!r&&!n((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"0d03":function(t,e,i){"use strict";var r=i("e330"),n=i("cb2d"),s=Date.prototype,a="Invalid Date",o="toString",h=r(s[o]),c=r(s.getTime);String(new Date(NaN))!==a&&n(s,o,(function(){var t=c(this);return t===t?h(this):a}))},"0d26":function(t,e,i){"use strict";var r=i("e330"),n=Error,s=r("".replace),a=function(t){return String(new n(t).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,h=o.test(a);t.exports=function(t,e){if(h&&"string"==typeof t&&!n.prepareStackTrace)while(e--)t=s(t,o,"");return t}},"0d51":function(t,e,i){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},"0da8":function(t,e,i){var r=i("19eb"),n=i("9850"),s=i("6d8b"),a=i("5e76");function o(t){r.call(this,t)}o.prototype={constructor:o,type:"image",brush:function(t,e){var i=this.style,r=i.image;i.bind(t,this,e);var n=this._image=a.createOrUpdateImage(r,this._image,this,this.onload);if(n&&a.isImageReady(n)){var s=i.x||0,o=i.y||0,h=i.width,c=i.height,u=n.width/n.height;if(null==h&&null!=c?h=c*u:null==c&&null!=h?c=h/u:null==h&&null==c&&(h=n.width,c=n.height),this.setTransform(t),i.sWidth&&i.sHeight){var l=i.sx||0,d=i.sy||0;t.drawImage(n,l,d,i.sWidth,i.sHeight,s,o,h,c)}else if(i.sx&&i.sy){l=i.sx,d=i.sy;var f=h-l,p=c-d;t.drawImage(n,l,d,f,p,s,o,h,c)}else t.drawImage(n,s,o,h,c);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},s.inherits(o,r);var h=o;t.exports=h},"0df6":function(t,e,i){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e13":function(t,e,i){"use strict";i("a1f0")},"0eb6":function(t,e,i){"use strict";var r=i("23e7"),n=i("d066"),s=i("2a07"),a=i("d039"),o=i("7c73"),h=i("5c6c"),c=i("9bf2").f,u=i("cb2d"),l=i("edd0"),d=i("1a2d"),f=i("19aa"),p=i("825a"),g=i("aa1f"),m=i("e391"),v=i("cf98"),y=i("0d26"),b=i("69f3"),_=i("83ab"),T=i("c430"),S="DOMException",w="DATA_CLONE_ERR",E=n("Error"),x=n(S)||function(){try{var t=n("MessageChannel")||s("worker_threads").MessageChannel;(new t).port1.postMessage(new WeakMap)}catch(e){if(e.name===w&&25===e.code)return e.constructor}}(),A=x&&x.prototype,C=E.prototype,R=b.set,P=b.getterFor(S),I="stack"in new E(S),k=function(t){return d(v,t)&&v[t].m?v[t].c:0},D=function(){f(this,O);var t=arguments.length,e=m(t<1?void 0:arguments[0]),i=m(t<2?void 0:arguments[1],"Error"),r=k(i);if(R(this,{type:S,name:i,message:e,code:r}),_||(this.name=i,this.message=e,this.code=r),I){var n=new E(e);n.name=S,c(this,"stack",h(1,y(n.stack,1)))}},O=D.prototype=o(C),M=function(t){return{enumerable:!0,configurable:!0,get:t}},N=function(t){return M((function(){return P(this)[t]}))};_&&(l(O,"code",N("code")),l(O,"message",N("message")),l(O,"name",N("name"))),c(O,"constructor",h(1,D));var B=a((function(){return!(new x instanceof E)})),L=B||a((function(){return C.toString!==g||"2: 1"!==String(new x(1,2))})),U=B||a((function(){return 25!==new x(1,"DataCloneError").code})),z=B||25!==x[w]||25!==A[w],F=T?L||U||z:B;r({global:!0,constructor:!0,forced:F},{DOMException:F?D:x});var W=n(S),H=W.prototype;for(var j in L&&(T||x===W)&&u(H,"toString",g),U&&_&&x===W&&l(H,"code",M((function(){return k(p(this).name)}))),v)if(d(v,j)){var V=v[j],q=V.s,G=h(6,V.c);d(W,q)||c(W,q,G),d(H,q)||c(H,q,G)}},"0ebb":function(t,e,i){"use strict";i("dbfa")},1034:function(t,e,i){"use strict";var r=i("23e7"),n=i("a799"),s=i("d066"),a=i("2ba4");r({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?s("Symbol")["for"](arguments[0]):a(n,null,arguments).get("symbol",s("Symbol"))}})},"107c":function(t,e,i){"use strict";var r=i("d039"),n=i("cfe9"),s=n.RegExp;t.exports=r((function(){var t=s("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"109c":function(t,e,i){"use strict";i("249d")},"10b7":function(t,e,i){(function(e,r){t.exports=r(i("21bf"))})(0,(function(t){ /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -9,27 +9,27 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,o,d,T,S,_,E,w,k,A,R,x=this._hash.words,I=l.words,C=h.words,P=s.words,O=c.words,D=u.words,U=f.words;_=a=x[0],E=o=x[1],w=d=x[2],k=T=x[3],A=S=x[4];for(n=0;n<80;n+=1)R=a+e[t+P[n]]|0,R+=n<16?p(o,d,T)+I[0]:n<32?v(o,d,T)+I[1]:n<48?m(o,d,T)+I[2]:n<64?y(o,d,T)+I[3]:g(o,d,T)+I[4],R|=0,R=b(R,D[n]),R=R+S|0,a=S,S=T,T=b(d,10),d=o,o=R,R=_+e[t+O[n]]|0,R+=n<16?g(E,w,k)+C[0]:n<32?y(E,w,k)+C[1]:n<48?m(E,w,k)+C[2]:n<64?v(E,w,k)+C[3]:p(E,w,k)+C[4],R|=0,R=b(R,U[n]),R=R+A|0,_=A,A=k,k=b(w,10),w=E,E=R;R=x[1]+d+k|0,x[1]=x[2]+T+A|0,x[2]=x[3]+S+_|0,x[3]=x[4]+a+E|0,x[4]=x[0]+o+w|0,x[0]=R},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function v(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function b(e,t){return e<>>32-t}n.RIPEMD160=a._createHelper(d),n.HmacRIPEMD160=a._createHmacHelper(d)}(Math),e.RIPEMD160}))},"10d1":function(e,t,n){"use strict";var r,i=n("da84"),a=n("e330"),o=n("e2cc"),s=n("f183"),c=n("6d61"),u=n("acac"),f=n("861d"),l=n("4fad"),h=n("69f3").enforce,d=n("7f9a"),p=!i.ActiveXObject&&"ActiveXObject"in i,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},m=c("WeakMap",v,u);if(d&&p){r=u.getConstructor(v,"WeakMap",!0),s.enable();var y=m.prototype,g=a(y["delete"]),b=a(y.has),T=a(y.get),S=a(y.set);o(y,{delete:function(e){if(f(e)&&!l(e)){var t=h(this);return t.frozen||(t.frozen=new r),g(this,e)||t.frozen["delete"](e)}return g(this,e)},has:function(e){if(f(e)&&!l(e)){var t=h(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(f(e)&&!l(e)){var t=h(this);return t.frozen||(t.frozen=new r),b(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(f(e)&&!l(e)){var n=h(this);n.frozen||(n.frozen=new r),b(this,e)?S(this,e,t):n.frozen.set(e,t)}else S(this,e,t);return this}})}},"10d3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("20a2"),i=n("3eb5"),a=n("b639"),o=n("1434"),s=n("66c3");function c(e){return t.ebmlBlock(new t.Buffer(e))}function u(e,n,r){return void 0===r&&(r=!1),E([e,r?new t.Buffer("01ffffffffffffff","hex"):t.writeVint(n.length),n])}function f(e){return l(e).reduce((function(e,n){var r=t.ebmlBlock(n.data);return r.frames.reduce((function(e,t){var n=h(t),r=new Blob([n],{type:"image/webp"});return e.concat(r)}),e)}),[])}function l(e){return e.reduce((function(e,n){if("b"!==n.type)return e;if("SimpleBlock"!==n.name)return e;var r=t.ebmlBlock(n.data),i=r.frames.some((function(e){var t=e.slice(3,6).toString("hex");return"9d012a"===t}));return i?e.concat(n):e}),[])}function h(e){var n=d("VP8 ",e),r=E([new t.Buffer("WEBP","ascii"),n]);return d("RIFF",r)}function d(e,n){var r=new t.Buffer(4);return r.writeUInt32LE(n.byteLength,0),E([new t.Buffer(e.substr(0,4),"ascii"),r,n,new t.Buffer(n.byteLength%2===0?0:1)])}function p(e,n,r){var a=m("EBML",e),o=g(a),s=o+12,c=e[e.length-1].dataEnd-s,u=m("Info",e);v("Duration",u),u.splice(1,0,{name:"Duration",type:"f",data:R(n,8)});for(var f=g(u),l=m("Tracks",e),h=g(l),d=47,p=[],y=5+15*r.length,b=[],T=-1,S=10,_=function(e){var n=d,i=n+f,a=i+h,o=a+y,u=o-c;if(p=[],p.push({name:"SeekHead",type:"m",isEnd:!1}),p.push({name:"Seek",type:"m",isEnd:!1}),p.push({name:"SeekID",type:"b",data:new t.Buffer([21,73,169,102])}),p.push({name:"SeekPosition",type:"u",data:k(n)}),p.push({name:"Seek",type:"m",isEnd:!0}),p.push({name:"Seek",type:"m",isEnd:!1}),p.push({name:"SeekID",type:"b",data:new t.Buffer([22,84,174,107])}),p.push({name:"SeekPosition",type:"u",data:k(i)}),p.push({name:"Seek",type:"m",isEnd:!0}),p.push({name:"Seek",type:"m",isEnd:!1}),p.push({name:"SeekID",type:"b",data:new t.Buffer([28,83,187,107])}),p.push({name:"SeekPosition",type:"u",data:k(a)}),p.push({name:"Seek",type:"m",isEnd:!0}),p.push({name:"SeekHead",type:"m",isEnd:!0}),d=g(p),b=[],b.push({name:"Cues",type:"m",isEnd:!1}),r.forEach((function(e){var t=e.CueTrack,n=e.CueClusterPosition,r=e.CueTime;b.push({name:"CuePoint",type:"m",isEnd:!1}),b.push({name:"CueTime",type:"u",data:k(r)}),b.push({name:"CueTrackPositions",type:"m",isEnd:!1}),b.push({name:"CueTrack",type:"u",data:k(t)}),n-=s,n+=u,b.push({name:"CueClusterPosition",type:"u",data:k(n)}),b.push({name:"CueTrackPositions",type:"m",isEnd:!0}),b.push({name:"CuePoint",type:"m",isEnd:!0})})),b.push({name:"Cues",type:"m",isEnd:!0}),y=g(b),T===u)return"break";if(T=u,e===S-1)throw new Error("Failed to converge to a stable metadata size")},E=0;E0))throw new Error("metadata dataEnd has wrong number");var c,u=a[a.length-1].dataEnd,f=r[r.length-1].dataEnd,l=(new i.default).encode(r).byteLength,h=l-f,d=u-a[0].tagStart,p=(a[0].tagStart,a[0].tagStart,new t.Buffer([24,83,128,103])),v=new t.Buffer("01ffffffffffffff","hex"),m=p.byteLength+v.byteLength,y=d;for(c=1;c<20;c++){var g=f+m+y,T=g-u,S=h+T,_=b(a,S,n),E=(new i.default).encode(_).byteLength;if(E===y)return(new i.default).encode([].concat(r,[{type:"m",name:"Segment",isEnd:!1,unknownSize:!0}],_));y=E}throw new Error("unable to refine metadata, stable size could not be found in "+c+" iterations!")}function g(e){var t=new i.default;return e.reduce((function(e,n){return e.concat(t.encode([n]))}),[]).reduce((function(e,t){return e+t.byteLength}),0)}function b(e,t,n){var r=n.duration,i=n.clusterPtrs,a=n.cues,o=e.slice(0);if("number"===typeof r){var s=!1;o.forEach((function(e){"f"===e.type&&"Duration"===e.name&&(s=!0,e.data=R(r,8))})),s||_(o,"Info",[{name:"Duration",type:"f",data:R(r,8)}])}Array.isArray(a)&&_(o,"Cues",S(a,t));var c=[];return Array.isArray(i)&&(console.warn("append cluster pointers to seekhead is deprecated. please use cues"),c=T(i,t)),_(o,"SeekHead",c,!0),o}function T(e,n){var r=[];return e.forEach((function(e){r.push({name:"Seek",type:"m",isEnd:!1}),r.push({name:"SeekID",type:"b",data:new t.Buffer([31,67,182,117])}),r.push({name:"SeekPosition",type:"u",data:k(e+n)}),r.push({name:"Seek",type:"m",isEnd:!0})})),r}function S(e,t){var n=[];return e.forEach((function(e){var r=e.CueTrack,i=e.CueClusterPosition,a=e.CueTime;n.push({name:"CuePoint",type:"m",isEnd:!1}),n.push({name:"CueTime",type:"u",data:k(a)}),n.push({name:"CueTrackPositions",type:"m",isEnd:!1}),n.push({name:"CueTrack",type:"u",data:k(r)}),n.push({name:"CueClusterPosition",type:"u",data:k(i+t)}),n.push({name:"CueTrackPositions",type:"m",isEnd:!0}),n.push({name:"CuePoint",type:"m",isEnd:!0})})),n}function _(e,t,n,r){void 0===r&&(r=!1);for(var i=-1,a=0;a=0?Array.prototype.splice.apply(e,[i+1,0].concat(n)):r?[].concat([{name:t,type:"m",isEnd:!1}],n,[{name:t,type:"m",isEnd:!0}]).reverse().forEach((function(t){e.unshift(t)})):(e.push({name:t,type:"m",isEnd:!1}),n.forEach((function(t){e.push(t)})),e.push({name:t,type:"m",isEnd:!0}))}function E(e){for(var n=0,r=0;n=Math.pow(2,8*n);n++);if(n>=7)return console.warn("7bit or more bigger uint not supported."),new r.Uint64BE(e).toBuffer();var i=new t.Buffer(n);return i.writeUIntBE(e,0,n),i}function A(e){for(var n=1;e>=Math.pow(2,8*n);n++);if(n>=7)return console.warn("7bit or more bigger uint not supported."),new r.Int64BE(e).toBuffer();var i=new t.Buffer(n);return i.writeIntBE(e,0,n),i}function R(e,n){if(void 0===n&&(n=8),8===n){var r=new t.Buffer(8);return r.writeDoubleBE(e,0),r}if(4===n){r=new t.Buffer(4);return r.writeFloatBE(e,0),r}throw new Error("float type bits must 4bytes or 8bytes")}function x(e){return e instanceof Date?e:new Date(new Date("2001-01-01T00:00:00.000Z").getTime()+Number(e)/1e3/1e3)}t.Buffer=a.Buffer,t.readVint=o.readVint,t.writeVint=o.writeVint,t.ebmlBlock=s,t.readBlock=c,t.encodeTag=u,t.WebPFrameFilter=f,t.WebPBlockFilter=l,t.VP8BitStreamToRiffWebPBuffer=h,t.createRIFFChunk=d,t.makeMetadataSeekable=p,t.removeElement=v,t.extractElement=m,t.putRefinedMetaData=y,t.concat=E,t.encodeValueToBuffer=w,t.createUIntBuffer=k,t.createIntBuffer=A,t.createFloatBuffer=R,t.convertEBMLDateToJSDate=x},1132:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,c=t[a+2>>>2]>>>24-(a+2)%4*8&255,u=o<<16|s<<8|c,f=0;f<4&&a+.75*f>>6*(3-f)&63));var l=r.charAt(64);if(l)while(i.length%4)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>6-o%4*2,u=s|c;i[a>>>2]|=u<<24-a%4*8,a++}return r.create(i,a)}}(),e.enc.Base64}))},1148:function(e,t,n){"use strict";var r=n("da84"),i=n("5926"),a=n("577e"),o=n("1d80"),s=r.RangeError;e.exports=function(e){var t=a(o(this)),n="",r=i(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},1276:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),s=n("44e7"),c=n("825a"),u=n("1d80"),f=n("4840"),l=n("8aa5"),h=n("50c4"),d=n("577e"),p=n("dc4a"),v=n("4dae"),m=n("14c3"),y=n("9263"),g=n("9f7f"),b=n("d039"),T=g.UNSUPPORTED_Y,S=4294967295,_=Math.min,E=[].push,w=a(/./.exec),k=a(E),A=a("".slice),R=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=d(u(this)),o=void 0===n?S:n>>>0;if(0===o)return[];if(void 0===e)return[a];if(!s(e))return i(t,a,e,o);var c,f,l,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,p+"g");while(c=i(y,g,a)){if(f=g.lastIndex,f>m&&(k(h,A(a,m,c.index)),c.length>1&&c.index=o))break;g.lastIndex===c.index&&g.lastIndex++}return m===a.length?!l&&w(g,"")||k(h,""):k(h,A(a,m)),h.length>o?v(h,0,o):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=u(this),o=void 0==t?void 0:p(t,e);return o?i(o,t,r,n):i(a,d(r),t,n)},function(e,r){var i=c(this),o=d(e),s=n(a,i,o,r,a!==t);if(s.done)return s.value;var u=f(i,RegExp),p=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(T?"g":"y"),y=new u(T?"^(?:"+i.source+")":i,v),g=void 0===r?S:r>>>0;if(0===g)return[];if(0===o.length)return null===m(y,o)?[o]:[];var b=0,E=0,w=[];while(E>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=c>>>16|4294901760&f,h=f<<16|65535&c;i[0]^=c,i[1]^=l,i[2]^=f,i[3]^=h,i[4]^=c,i[5]^=l,i[6]^=f,i[7]^=h;for(n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(c)}(),e.Rabbit}))},1393:function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("big")},{big:function(){return i(this,"big","","")}})},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),o=n("2d00"),s=n("605d"),c=a("reduce"),u=!s&&o>79&&o<83;r({target:"Array",proto:!0,forced:!c||u},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},1434:function(e,t,n){(function(t){var n={readVint:function(e,t){t=t||0;for(var n=1;n<=8;n++)if(e[t]>=Math.pow(2,8-n))break;if(n>8)throw new Error("Unrepresentable length: "+n+" "+e.toString("hex",t,t+n));if(t+n>e.length)return null;for(var r=e[t]&(1<<8-n)-1,i=1;i=Math.pow(2,45)&&e[t+7]>0)return{length:n,value:-1};r*=Math.pow(2,8),r+=e[t+i]}return{length:n,value:r}},writeVint:function(e){if(e<0||e>Math.pow(2,53))throw new Error("Unrepresentable value: "+e);for(var n=1;n<=8;n++)if(e2?arguments[2]:void 0,l=o((void 0===f?s:i(f,s))-u,s-c),h=1;u0)u in n?n[c]=n[u]:delete n[c],c+=h,u+=h;return n}},"14c3":function(e,t,n){var r=n("da84"),i=n("c65b"),a=n("825a"),o=n("1626"),s=n("c6b6"),c=n("9263"),u=r.TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var r=i(n,e,t);return null!==r&&a(r),r}if("RegExp"===s(e))return i(c,e,t);throw u("RegExp#exec called on incompatible receiver")}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),a=n("785a"),o=n("17c2"),s=n("9112"),c=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(a)},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),a=n("23cb"),o=n("b6b7"),s=r.aTypedArray,c=r.exportTypedArrayMethod;c("subarray",(function(e,t){var n=s(this),r=n.length,c=a(e,r),u=o(n);return new u(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((void 0===t?r:a(t,r))-c))}))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),a=i("forEach");e.exports=a?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17e1":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,i=r.init,a=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r>>2]|=e[r]<<24-r%4*8;i.call(this,n,t)}else i.apply(this,arguments)};a.prototype=r}}(),e.lib.WordArray}))},"182d":function(e,t,n){var r=n("da84"),i=n("f8cd"),a=r.RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw a("Wrong offset");return n}},"18a5":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},"18d5":function(e,t,n){"use strict";var r=n("d066"),i=n("5087"),a=n("a95f"),o=n("8aa7"),s=n("ebb5"),c=n("dfb9"),u=s.aTypedArrayConstructor,f=s.exportTypedArrayStaticMethod;f("fromAsync",(function(e){var t=this,n=arguments.length,o=n>1?arguments[1]:void 0,s=n>2?arguments[2]:void 0;return new(r("Promise"))((function(n){i(t),n(a(e,o,s))})).then((function(e){return c(u(t),e)}))}),o)},1913:function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},"191b":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("94f8"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=t.algo,a=i.SHA256,o=i.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=a._createHelper(o),t.HmacSHA224=a._createHmacHelper(o)}(),e.SHA224}))},"197b":function(e,t,n){var r=n("746f");r("species")},"19aa":function(e,t,n){var r=n("da84"),i=n("3a9b"),a=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw a("Incorrect invocation")}},"1a2d":function(e,t,n){var r=n("e330"),i=n("7b0b"),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},"1b22":function(e,t,n){"use strict";var r=n("23e7"),i=n("dd2f").toArray;r({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return i(this,void 0,[])}})},"1b29":function(e,t,n){"use strict";var r={128:{name:"ChapterDisplay",level:4,type:"m",multiple:!0,webm:!0,description:"Contains all possible strings to use for the chapter display."},131:{name:"TrackType",level:3,type:"u",mandatory:!0,description:"The `TrackType` defines the type of each frame found in the Track. The value **SHOULD** be stored on 1 octet."},133:{name:"ChapString",cppname:"ChapterString",level:5,type:"8",mandatory:!0,webm:!0,description:"Contains the string to use as the chapter atom."},134:{name:"CodecID",level:3,type:"s",mandatory:!0,description:"An ID corresponding to the codec, see [@!MatroskaCodec] for more info."},136:{name:"FlagDefault",cppname:"TrackFlagDefault",level:3,type:"u",mandatory:!0,default:"1",range:"0-1",description:"Set if that track (audio, video or subs) **SHOULD** be eligible for automatic selection by the player; see (#default-track-selection) for more details."},137:{name:"ChapterTrackUID",cppname:"ChapterTrackNumber",level:5,type:"u",mandatory:!0,multiple:!0,range:"not 0",description:"UID of the Track to apply this chapter to. In the absence of a control track, choosing this chapter will select the listed Tracks and deselect unlisted tracks. Absence of this Element indicates that the Chapter **SHOULD** be applied to any currently used Tracks."},142:{name:"Slices",level:3,type:"m",maxver:0,description:"Contains slices description."},143:{name:"ChapterTrack",level:4,type:"m",description:"List of tracks on which the chapter applies. If this Element is not present, all tracks apply"},145:{name:"ChapterTimeStart",level:4,type:"u",mandatory:!0,webm:!0,description:"Timestamp of the start of Chapter, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks)."},146:{name:"ChapterTimeEnd",level:4,type:"u",webm:!0,description:"Timestamp of the end of Chapter timestamp excluded, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks). The value **MUST** be greater than or equal to the `ChapterTimeStart` of the same `ChapterAtom`."},150:{name:"CueRefTime",level:5,type:"u",mandatory:!0,minver:2,description:"Timestamp of the referenced Block, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks)."},151:{name:"CueRefCluster",level:5,type:"u",mandatory:!0,minver:0,maxver:0,description:"The Segment Position of the Cluster containing the referenced Block."},152:{name:"ChapterFlagHidden",level:4,type:"u",mandatory:!0,default:"0",range:"0-1",description:"Set to 1 if a chapter is hidden. Hidden chapters **SHOULD NOT** be available to the user interface (but still to Control Tracks; see (#chapterflaghidden) on Chapter flags)."},154:{name:"FlagInterlaced",cppname:"VideoFlagInterlaced",level:4,type:"u",mandatory:!0,minver:2,webm:!0,default:"0",description:"Specify whether the video frames in this track are interlaced or not."},155:{name:"BlockDuration",level:3,type:"u",description:"The duration of the Block, expressed in Track Ticks; see (#timestamp-ticks). The BlockDuration Element can be useful at the end of a Track to define the duration of the last frame (as there is no subsequent Block available), or when there is a break in a track like for subtitle tracks."},156:{name:"FlagLacing",cppname:"TrackFlagLacing",level:3,type:"u",mandatory:!0,default:"1",range:"0-1",description:"Set to 1 if the track **MAY** contain blocks using lacing. When set to 0 all blocks **MUST** have their lacing flags set to No lacing; see (#block-lacing) on Block Lacing."},157:{name:"FieldOrder",cppname:"VideoFieldOrder",level:4,type:"u",mandatory:!0,minver:4,default:"2",description:"Specify the field ordering of video frames in this track."},159:{name:"Channels",cppname:"AudioChannels",level:4,type:"u",mandatory:!0,default:"1",range:"not 0",description:"Numbers of channels in the track."},160:{name:"BlockGroup",level:2,type:"m",multiple:!0,description:"Basic container of information containing a single Block and information specific to that Block."},161:{name:"Block",level:3,type:"b",mandatory:!0,description:"Block containing the actual data to be rendered and a timestamp relative to the Cluster Timestamp; see (#block-structure) on Block Structure."},162:{name:"BlockVirtual",level:3,type:"b",minver:0,maxver:0,description:"A Block with no data. It **MUST** be stored in the stream at the place the real Block would be in display order. "},163:{name:"SimpleBlock",level:2,type:"b",multiple:!0,minver:2,webm:!0,divx:!0,description:"Similar to Block, see (#block-structure), but without all the extra information, mostly used to reduced overhead when no extra feature is needed; see (#simpleblock-structure) on SimpleBlock Structure."},164:{name:"CodecState",level:3,type:"b",minver:2,description:"The new codec state to use. Data interpretation is private to the codec. This information **SHOULD** always be referenced by a seek entry."},165:{name:"BlockAdditional",level:5,type:"b",mandatory:!0,webm:!0,description:"Interpreted by the codec as it wishes (using the BlockAddID)."},166:{name:"BlockMore",level:4,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"Contain the BlockAdditional and some parameters."},167:{name:"Position",cppname:"ClusterPosition",level:2,type:"u",description:"The Segment Position of the Cluster in the Segment (0 in live streams). It might help to resynchronise offset on damaged streams."},170:{name:"CodecDecodeAll",level:3,type:"u",mandatory:!0,maxver:0,default:"1",range:"0-1",description:"Set to 1 if the codec can decode potentially damaged data."},171:{name:"PrevSize",cppname:"ClusterPrevSize",level:2,type:"u",description:"Size of the previous Cluster, in octets. Can be useful for backward playing."},174:{name:"TrackEntry",level:2,type:"m",mandatory:!0,multiple:!0,description:"Describes a track with all Elements."},175:{name:"EncryptedBlock",level:2,type:"b",multiple:!0,minver:0,maxver:0,description:"Similar to SimpleBlock, see (#simpleblock-structure), but the data inside the Block are Transformed (encrypt and/or signed)."},176:{name:"PixelWidth",cppname:"VideoPixelWidth",level:4,type:"u",mandatory:!0,range:"not 0",description:"Width of the encoded video frames in pixels."},178:{name:"CueDuration",level:4,type:"u",minver:4,webm:!0,description:"The duration of the block, expressed in Segment Ticks which is based on TimestampScale; see (#timestamp-ticks). If missing, the track's DefaultDuration does not apply and no duration information is available in terms of the cues."},179:{name:"CueTime",level:3,type:"u",mandatory:!0,description:"Absolute timestamp of the seek point, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks)."},181:{name:"SamplingFrequency",cppname:"AudioSamplingFreq",level:4,type:"f",mandatory:!0,default:"0x1.f4p+12",range:"> 0x0p+0",description:"Sampling frequency in Hz."},182:{name:"ChapterAtom",level:3,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"Contains the atom information to use as the chapter atom (apply to all tracks)."},183:{name:"CueTrackPositions",level:3,type:"m",mandatory:!0,multiple:!0,description:"Contain positions for different tracks corresponding to the timestamp."},185:{name:"FlagEnabled",cppname:"TrackFlagEnabled",level:3,type:"u",mandatory:!0,minver:2,webm:!0,default:"1",range:"0-1",description:"Set to 1 if the track is usable. It is possible to turn a not usable track into a usable track using chapter codecs or control tracks."},186:{name:"PixelHeight",cppname:"VideoPixelHeight",level:4,type:"u",mandatory:!0,range:"not 0",description:"Height of the encoded video frames in pixels."},187:{name:"CuePoint",level:2,type:"m",mandatory:!0,multiple:!0,description:"Contains all information relative to a seek point in the Segment."},191:{name:"CRC-32",level:-1,type:"b",minver:1,webm:!1,description:"The CRC is computed on all the data of the Master element it's in. The CRC element should be the first in it's parent master for easier reading. All level 1 elements should include a CRC-32. The CRC in use is the IEEE CRC32 Little Endian.",crc:!0},192:{name:"TrickTrackUID",level:3,type:"u",minver:0,maxver:0,divx:!0,description:"The TrackUID of the Smooth FF/RW video in the paired EBML structure corresponding to this video track. See [@?DivXTrickTrack]."},193:{name:"TrickTrackSegmentUID",level:3,type:"b",minver:0,maxver:0,divx:!0,description:"The SegmentUID of the Segment containing the track identified by TrickTrackUID. See [@?DivXTrickTrack]."},196:{name:"TrickMasterTrackSegmentUID",level:3,type:"b",minver:0,maxver:0,divx:!0,description:"The SegmentUID of the Segment containing the track identified by MasterTrackUID. See [@?DivXTrickTrack]."},198:{name:"TrickTrackFlag",level:3,type:"u",minver:0,maxver:0,divx:!0,default:"0",description:"Set to 1 if this video track is a Smooth FF/RW track. If set to 1, MasterTrackUID and MasterTrackSegUID should must be present and BlockGroups for this track must contain ReferenceFrame structures. Otherwise, TrickTrackUID and TrickTrackSegUID must be present if this track has a corresponding Smooth FF/RW track. See [@?DivXTrickTrack]."},199:{name:"TrickMasterTrackUID",level:3,type:"u",minver:0,maxver:0,divx:!0,description:"The TrackUID of the video track in the paired EBML structure that corresponds to this Smooth FF/RW track. See [@?DivXTrickTrack]."},200:{name:"ReferenceFrame",level:3,type:"m",minver:0,maxver:0,divx:!0,description:"Contains information about the last reference frame. See [@?DivXTrickTrack]."},201:{name:"ReferenceOffset",level:4,type:"u",mandatory:!0,minver:0,maxver:0,divx:!0,description:"The relative offset, in bytes, from the previous BlockGroup element for this Smooth FF/RW video track to the containing BlockGroup element. See [@?DivXTrickTrack]."},202:{name:"ReferenceTimestamp",cppname:"ReferenceTimeCode",level:4,type:"u",mandatory:!0,minver:0,maxver:0,divx:!0,description:"The timestamp of the BlockGroup pointed to by ReferenceOffset, expressed in Track Ticks; see (#timestamp-ticks). See [@?DivXTrickTrack]."},203:{name:"BlockAdditionID",cppname:"SliceBlockAddID",level:5,type:"u",minver:0,maxver:0,default:"0",description:"The ID of the BlockAdditional Element (0 is the main Block)."},204:{name:"LaceNumber",cppname:"SliceLaceNumber",level:5,type:"u",minver:0,maxver:0,description:"The reverse number of the frame in the lace (0 is the last frame, 1 is the next to last, etc). Being able to interpret this Element is not **REQUIRED** for playback."},205:{name:"FrameNumber",cppname:"SliceFrameNumber",level:5,type:"u",minver:0,maxver:0,default:"0",description:"The number of the frame to generate from this lace with this delay (allow you to generate many frames from the same Block/Frame)."},206:{name:"Delay",cppname:"SliceDelay",level:5,type:"u",minver:0,maxver:0,default:"0",description:"The delay to apply to the Element, expressed in Track Ticks; see (#timestamp-ticks)."},207:{name:"SliceDuration",level:5,type:"u",minver:0,maxver:0,default:"0",description:"The duration to apply to the Element, expressed in Track Ticks; see (#timestamp-ticks)."},215:{name:"TrackNumber",level:3,type:"u",mandatory:!0,range:"not 0",description:"The track number as used in the Block Header (using more than 127 tracks is not encouraged, though the design allows an unlimited number)."},219:{name:"CueReference",level:4,type:"m",multiple:!0,minver:2,description:"The Clusters containing the referenced Blocks."},224:{name:"Video",cppname:"TrackVideo",level:3,type:"m",description:"Video settings."},225:{name:"Audio",cppname:"TrackAudio",level:3,type:"m",description:"Audio settings."},226:{name:"TrackOperation",level:3,type:"m",minver:3,description:"Operation that needs to be applied on tracks to create this virtual track. For more details look at (#track-operation)."},227:{name:"TrackCombinePlanes",level:4,type:"m",minver:3,description:"Contains the list of all video plane tracks that need to be combined to create this 3D track"},228:{name:"TrackPlane",level:5,type:"m",mandatory:!0,multiple:!0,minver:3,description:"Contains a video plane track that need to be combined to create this 3D track"},229:{name:"TrackPlaneUID",level:6,type:"u",mandatory:!0,minver:3,range:"not 0",description:"The trackUID number of the track representing the plane."},230:{name:"TrackPlaneType",level:6,type:"u",mandatory:!0,minver:3,description:"The kind of plane this track corresponds to."},231:{name:"Timestamp",cppname:"ClusterTimecode",level:2,type:"u",mandatory:!0,description:"Absolute timestamp of the cluster, expressed in Segment Ticks which is based on TimestampScale; see (#timestamp-ticks)."},232:{name:"TimeSlice",level:4,type:"m",multiple:!0,minver:0,maxver:0,description:"Contains extra time information about the data contained in the Block. Being able to interpret this Element is not **REQUIRED** for playback."},233:{name:"TrackJoinBlocks",level:4,type:"m",minver:3,description:"Contains the list of all tracks whose Blocks need to be combined to create this virtual track"},234:{name:"CueCodecState",level:4,type:"u",mandatory:!0,minver:2,default:"0",description:"The Segment Position of the Codec State corresponding to this Cue Element. 0 means that the data is taken from the initial Track Entry."},235:{name:"CueRefCodecState",level:5,type:"u",minver:0,maxver:0,default:"0",description:"The Segment Position of the Codec State corresponding to this referenced Element. 0 means that the data is taken from the initial Track Entry."},236:{name:"Void",level:-1,type:"b",minver:1,description:"Used to void damaged data, to avoid unexpected behaviors when using damaged data. The content is discarded. Also used to reserve space in a sub-element for later use."},237:{name:"TrackJoinUID",level:5,type:"u",mandatory:!0,multiple:!0,minver:3,range:"not 0",description:"The trackUID number of a track whose blocks are used to create this virtual track."},238:{name:"BlockAddID",level:5,type:"u",mandatory:!0,webm:!0,default:"1",range:"not 0",description:"An ID to identify the BlockAdditional level. If BlockAddIDType of the corresponding block is 0, this value is also the value of BlockAddIDType for the meaning of the content of BlockAdditional."},240:{name:"CueRelativePosition",level:4,type:"u",minver:4,webm:!0,description:"The relative position inside the Cluster of the referenced SimpleBlock or BlockGroup with 0 being the first possible position for an Element inside that Cluster."},241:{name:"CueClusterPosition",level:4,type:"u",mandatory:!0,description:"The Segment Position of the Cluster containing the associated Block."},247:{name:"CueTrack",level:4,type:"u",mandatory:!0,range:"not 0",description:"The track for which a position is given."},250:{name:"ReferencePriority",level:3,type:"u",mandatory:!0,default:"0",description:"This frame is referenced and has the specified cache priority. In cache only a frame of the same or higher priority can replace this frame. A value of 0 means the frame is not referenced."},251:{name:"ReferenceBlock",level:3,type:"i",multiple:!0,description:"A timestamp value, relative to the timestamp of the Block in this BlockGroup, expressed in Track Ticks; see (#timestamp-ticks). This is used to reference other frames necessary to decode this frame. The relative value **SHOULD** correspond to a valid `Block` this `Block` depends on. Historically Matroska Writer didn't write the actual `Block(s)` this `Block` depends on, but *some* `Block` in the past. The value \"0\" **MAY** also be used to signify this `Block` cannot be decoded on its own, but without knownledge of which `Block` is necessary. In this case, other `ReferenceBlock` **MUST NOT** be found in the same `BlockGroup`. If the `BlockGroup` doesn't have any `ReferenceBlock` element, then the `Block` it contains can be decoded without using any other `Block` data."},253:{name:"ReferenceVirtual",level:3,type:"i",minver:0,maxver:0,description:"The Segment Position of the data that would otherwise be in position of the virtual block."},16804:{name:"BlockAddIDName",level:4,type:"s",minver:4,description:"A human-friendly name describing the type of BlockAdditional data, as defined by the associated Block Additional Mapping."},16868:{name:"BlockAdditionMapping",level:3,type:"m",multiple:!0,minver:4,description:"Contains elements that extend the track format, by adding content either to each frame, with BlockAddID ((#blockaddid-element)), or to the track as a whole with BlockAddIDExtraData."},16871:{name:"BlockAddIDType",level:4,type:"u",mandatory:!0,minver:4,default:"0",description:"Stores the registered identifier of the Block Additional Mapping to define how the BlockAdditional data should be handled."},16877:{name:"BlockAddIDExtraData",level:4,type:"b",minver:4,description:"Extra binary data that the BlockAddIDType can use to interpret the BlockAdditional data. The interpretation of the binary data depends on the BlockAddIDType value and the corresponding Block Additional Mapping."},16880:{name:"BlockAddIDValue",level:4,type:"u",minver:4,range:">=2",description:"If the track format extension needs content beside frames, the value refers to the BlockAddID ((#blockaddid-element)), value being described. To keep MaxBlockAdditionID as low as possible, small values **SHOULD** be used."},16980:{name:"ContentCompAlgo",level:6,type:"u",mandatory:!0,default:"0",description:"The compression algorithm used."},16981:{name:"ContentCompSettings",level:6,type:"b",description:"Settings that might be needed by the decompressor. For Header Stripping (`ContentCompAlgo`=3), the bytes that were removed from the beginning of each frames of the track."},17026:{name:"DocType",level:1,type:"s",mandatory:!0,default:"matroska",minver:1,description:"A string that describes the type of document that follows this EBML header. 'matroska' in our case or 'webm' for webm files."},17029:{name:"DocTypeReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum DocType version an interpreter has to support to read this file."},17030:{name:"EBMLVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of EBML parser used to create the file."},17031:{name:"DocTypeVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The version of DocType interpreter used to create the file."},17138:{name:"EBMLMaxIDLength",level:1,type:"u",mandatory:!0,default:"4",range:">=4"},17139:{name:"EBMLMaxSizeLength",level:1,type:"u",mandatory:!0,default:"8",range:"not 0"},17143:{name:"EBMLReadVersion",level:1,type:"u",mandatory:!0,default:1,minver:1,description:"The minimum EBML version a parser has to support to read this file."},17276:{name:"ChapLanguage",cppname:"ChapterLanguage",level:5,type:"s",mandatory:!0,multiple:!0,webm:!0,default:"eng",description:"A language corresponding to the string, in the bibliographic ISO-639-2 form [@!ISO639-2]. This Element **MUST** be ignored if a ChapLanguageIETF Element is used within the same ChapterDisplay Element."},17277:{name:"ChapLanguageIETF",level:5,type:"s",multiple:!0,minver:4,description:"Specifies a language corresponding to the ChapString in the format defined in [@!BCP47] and using the IANA Language Subtag Registry [@!IANALangRegistry]. If a ChapLanguageIETF Element is used, then any ChapLanguage and ChapCountry Elements used in the same ChapterDisplay **MUST** be ignored."},17278:{name:"ChapCountry",cppname:"ChapterCountry",level:5,type:"s",multiple:!0,webm:!0,description:"A country corresponding to the string, using the same 2 octets country-codes as in Internet domains [@!IANADomains] based on [@!ISO3166-1] alpha-2 codes. This Element **MUST** be ignored if a ChapLanguageIETF Element is used within the same ChapterDisplay Element."},17476:{name:"SegmentFamily",level:2,type:"b",multiple:!0,description:"A randomly generated unique ID that all Segments of a Linked Segment **MUST** share (128 bits)."},17505:{name:"DateUTC",level:2,type:"d",description:"The date and time that the Segment was created by the muxing application or library."},17530:{name:"TagLanguage",cppname:"TagLangue",level:4,type:"s",mandatory:!0,webm:!0,default:"und",description:"Specifies the language of the tag specified, in the Matroska languages form; see (#language-codes) on language codes. This Element **MUST** be ignored if the TagLanguageIETF Element is used within the same SimpleTag Element."},17531:{name:"TagLanguageIETF",level:4,type:"s",minver:4,description:"Specifies the language used in the TagString according to [@!BCP47] and using the IANA Language Subtag Registry [@!IANALangRegistry]. If this Element is used, then any TagLanguage Elements used in the same SimpleTag **MUST** be ignored."},17540:{name:"TagDefault",level:4,type:"u",mandatory:!0,webm:!0,default:"1",range:"0-1",description:"A boolean value to indicate if this is the default/original language to use for the given tag."},17541:{name:"TagBinary",level:4,type:"b",webm:!0,description:"The values of the Tag, if it is binary. Note that this cannot be used in the same SimpleTag as TagString."},17543:{name:"TagString",level:4,type:"8",webm:!0,description:"The value of the Tag."},17545:{name:"Duration",level:2,type:"f",range:"> 0x0p+0",description:"Duration of the Segment, expressed in Segment Ticks which is based on TimestampScale; see (#timestamp-ticks)."},17588:{name:"TagDefaultBogus",level:4,type:"u",mandatory:!0,minver:0,maxver:0,default:"1",range:"0-1",description:"A variant of the TagDefault element with a bogus Element ID; see (#tagdefault-element)."},17677:{name:"ChapProcessPrivate",cppname:"ChapterProcessPrivate",level:5,type:"b",description:'Some optional data attached to the ChapProcessCodecID information. For ChapProcessCodecID = 1, it is the "DVD level" equivalent; see (#menu-features) on DVD menus.'},17816:{name:"ChapterFlagEnabled",level:4,type:"u",mandatory:!0,default:"1",range:"0-1",description:"Set to 1 if the chapter is enabled. It can be enabled/disabled by a Control Track. When disabled, the movie **SHOULD** skip all the content between the TimeStart and TimeEnd of this chapter; see (#chapter-flags) on Chapter flags."},17827:{name:"TagName",level:4,type:"8",mandatory:!0,webm:!0,description:"The name of the Tag that is going to be stored."},17849:{name:"EditionEntry",level:2,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"Contains all information about a Segment edition."},17852:{name:"EditionUID",level:3,type:"u",range:"not 0",description:"A unique ID to identify the edition. It's useful for tagging an edition."},17853:{name:"EditionFlagHidden",level:3,type:"u",mandatory:!0,default:"0",range:"0-1",description:"Set to 1 if an edition is hidden. Hidden editions **SHOULD NOT** be available to the user interface (but still to Control Tracks; see (#chapter-flags) on Chapter flags)."},17883:{name:"EditionFlagDefault",level:3,type:"u",mandatory:!0,default:"0",range:"0-1",description:"Set to 1 if the edition **SHOULD** be used as the default one."},17885:{name:"EditionFlagOrdered",level:3,type:"u",mandatory:!0,default:"0",range:"0-1",description:"Set to 1 if the chapters can be defined multiple times and the order to play them is enforced; see (#editionflagordered)."},18012:{name:"FileData",level:3,type:"b",mandatory:!0,description:"The data of the file."},18016:{name:"FileMimeType",cppname:"MimeType",level:3,type:"s",mandatory:!0,description:"MIME type of the file."},18017:{name:"FileUsedStartTime",level:3,type:"u",minver:0,maxver:0,divx:!0,description:"The timestamp at which this optimized font attachment comes into context, expressed in Segment Ticks which is based on TimestampScale. See [@?DivXWorldFonts]."},18018:{name:"FileUsedEndTime",level:3,type:"u",minver:0,maxver:0,divx:!0,description:"The timestamp at which this optimized font attachment goes out of context, expressed in Segment Ticks which is based on TimestampScale. See [@?DivXWorldFonts]."},18030:{name:"FileName",level:3,type:"8",mandatory:!0,description:"Filename of the attached file."},18037:{name:"FileReferral",level:3,type:"b",minver:0,maxver:0,description:"A binary value that a track/codec can refer to when the attachment is needed."},18046:{name:"FileDescription",level:3,type:"8",description:"A human-friendly name for the attached file."},18094:{name:"FileUID",level:3,type:"u",mandatory:!0,range:"not 0",description:"Unique ID representing the file, as random as possible."},18401:{name:"ContentEncAlgo",level:6,type:"u",mandatory:!0,webm:!0,default:"0",description:'The encryption algorithm used. The value "0" means that the contents have not been encrypted.'},18402:{name:"ContentEncKeyID",level:6,type:"b",webm:!0,description:"For public key algorithms this is the ID of the public key the the data was encrypted with."},18403:{name:"ContentSignature",level:6,type:"b",maxver:0,description:"A cryptographic signature of the contents."},18404:{name:"ContentSigKeyID",level:6,type:"b",maxver:0,description:"This is the ID of the private key the data was signed with."},18405:{name:"ContentSigAlgo",level:6,type:"u",maxver:0,default:"0",description:"The algorithm used for the signature."},18406:{name:"ContentSigHashAlgo",level:6,type:"u",maxver:0,default:"0",description:"The hash algorithm used for the signature."},18407:{name:"ContentEncAESSettings",level:6,type:"m",minver:4,webm:!0,description:"Settings describing the encryption algorithm used. If `ContentEncAlgo` != 5 this **MUST** be ignored."},18408:{name:"AESSettingsCipherMode",level:7,type:"u",mandatory:!0,minver:4,webm:!0,description:"The AES cipher mode used in the encryption."},19840:{name:"MuxingApp",level:2,type:"8",mandatory:!0,description:'Muxing application or library (example: "libmatroska-0.4.3").'},19899:{name:"Seek",level:2,type:"m",mandatory:!0,multiple:!0,description:"Contains a single seek entry to an EBML Element."},20529:{name:"ContentEncodingOrder",level:5,type:"u",mandatory:!0,webm:!0,default:"0",description:"Tells when this modification was used during encoding/muxing starting with 0 and counting upwards. The decoder/demuxer has to start with the highest order number it finds and work its way down. This value has to be unique over all ContentEncodingOrder Elements in the TrackEntry that contains this ContentEncodingOrder element."},20530:{name:"ContentEncodingScope",level:5,type:"u",mandatory:!0,webm:!0,default:"1",description:"A bit field that describes which Elements have been modified in this way. Values (big-endian) can be OR'ed."},20531:{name:"ContentEncodingType",level:5,type:"u",mandatory:!0,webm:!0,default:"0",description:"A value describing what kind of transformation is applied."},20532:{name:"ContentCompression",level:5,type:"m",description:"Settings describing the compression used. This Element **MUST** be present if the value of ContentEncodingType is 0 and absent otherwise. Each block **MUST** be decompressable even if no previous block is available in order not to prevent seeking."},20533:{name:"ContentEncryption",level:5,type:"m",webm:!0,description:"Settings describing the encryption used. This Element **MUST** be present if the value of `ContentEncodingType` is 1 (encryption) and **MUST** be ignored otherwise."},21343:{name:"CueRefNumber",level:5,type:"u",minver:0,maxver:0,default:"1",range:"not 0",description:"Number of the referenced Block of Track X in the specified Cluster."},21358:{name:"Name",cppname:"TrackName",level:3,type:"8",description:"A human-readable track name."},21368:{name:"CueBlockNumber",level:4,type:"u",range:"not 0",description:"Number of the Block in the specified Cluster."},21375:{name:"TrackOffset",level:3,type:"i",minver:0,maxver:0,default:"0",description:"A value to add to the Block's Timestamp, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks). This can be used to adjust the playback offset of a track."},21419:{name:"SeekID",level:3,type:"b",mandatory:!0,description:"The binary ID corresponding to the Element name."},21420:{name:"SeekPosition",level:3,type:"u",mandatory:!0,description:"The Segment Position of the Element."},21432:{name:"StereoMode",cppname:"VideoStereoMode",level:4,type:"u",mandatory:!0,minver:3,webm:!0,default:"0",description:"Stereo-3D video mode. There are some more details in (#multi-planar-and-3d-videos)."},21433:{name:"OldStereoMode",level:4,type:"u",maxver:0,description:"DEPRECATED, DO NOT USE. Bogus StereoMode value used in old versions of libmatroska."},21440:{name:"AlphaMode",cppname:"VideoAlphaMode",level:4,type:"u",mandatory:!0,minver:3,webm:!0,default:"0",description:'Indicate whether the BlockAdditional Element with BlockAddID of "1" contains Alpha data, as defined by to the Codec Mapping for the `CodecID`. Undefined values **SHOULD NOT** be used as the behavior of known implementations is different (considered either as 0 or 1).'},21674:{name:"PixelCropBottom",cppname:"VideoPixelCropBottom",level:4,type:"u",mandatory:!0,default:"0",description:"The number of video pixels to remove at the bottom of the image."},21680:{name:"DisplayWidth",cppname:"VideoDisplayWidth",level:4,type:"u",range:"not 0",description:"Width of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements)."},21682:{name:"DisplayUnit",cppname:"VideoDisplayUnit",level:4,type:"u",mandatory:!0,default:"0",description:"How DisplayWidth & DisplayHeight are interpreted."},21683:{name:"AspectRatioType",cppname:"VideoAspectRatio",level:4,type:"u",minver:0,maxver:0,default:"0",description:"Specify the possible modifications to the aspect ratio."},21690:{name:"DisplayHeight",cppname:"VideoDisplayHeight",level:4,type:"u",range:"not 0",description:"Height of the video frames to display. Applies to the video frame after cropping (PixelCrop* Elements)."},21691:{name:"PixelCropTop",cppname:"VideoPixelCropTop",level:4,type:"u",mandatory:!0,default:"0",description:"The number of video pixels to remove at the top of the image."},21708:{name:"PixelCropLeft",cppname:"VideoPixelCropLeft",level:4,type:"u",mandatory:!0,default:"0",description:"The number of video pixels to remove on the left of the image."},21725:{name:"PixelCropRight",cppname:"VideoPixelCropRight",level:4,type:"u",mandatory:!0,default:"0",description:"The number of video pixels to remove on the right of the image."},21930:{name:"FlagForced",cppname:"TrackFlagForced",level:3,type:"u",mandatory:!0,default:"0",range:"0-1",description:"Applies only to subtitles. Set if that track **SHOULD** be eligible for automatic selection by the player if it matches the user's language preference, even if the user's preferences would normally not enable subtitles with the selected audio track; this can be used for tracks containing only translations of foreign-language audio or onscreen text. See (#default-track-selection) for more details."},21931:{name:"FlagHearingImpaired",level:3,type:"u",minver:4,range:"0-1",description:"Set to 1 if that track is suitable for users with hearing impairments, set to 0 if it is unsuitable for users with hearing impairments."},21932:{name:"FlagVisualImpaired",level:3,type:"u",minver:4,range:"0-1",description:"Set to 1 if that track is suitable for users with visual impairments, set to 0 if it is unsuitable for users with visual impairments."},21933:{name:"FlagTextDescriptions",level:3,type:"u",minver:4,range:"0-1",description:"Set to 1 if that track contains textual descriptions of video content, set to 0 if that track does not contain textual descriptions of video content."},21934:{name:"FlagOriginal",level:3,type:"u",minver:4,range:"0-1",description:"Set to 1 if that track is in the content's original language, set to 0 if it is a translation."},21935:{name:"FlagCommentary",level:3,type:"u",minver:4,range:"0-1",description:"Set to 1 if that track contains commentary, set to 0 if it does not contain commentary."},21936:{name:"Colour",cppname:"VideoColour",level:4,type:"m",minver:4,webm:!0,description:"Settings describing the colour format."},21937:{name:"MatrixCoefficients",cppname:"VideoColourMatrix",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"2",description:"The Matrix Coefficients of the video used to derive luma and chroma values from red, green, and blue color primaries. For clarity, the value and meanings for MatrixCoefficients are adopted from Table 4 of ISO/IEC 23001-8:2016 or ITU-T H.273."},21938:{name:"BitsPerChannel",cppname:"VideoBitsPerChannel",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"Number of decoded bits per channel. A value of 0 indicates that the BitsPerChannel is unspecified."},21939:{name:"ChromaSubsamplingHorz",cppname:"VideoChromaSubsampHorz",level:5,type:"u",minver:4,webm:!0,description:"The amount of pixels to remove in the Cr and Cb channels for every pixel not removed horizontally. Example: For video with 4:2:0 chroma subsampling, the ChromaSubsamplingHorz **SHOULD** be set to 1."},21940:{name:"ChromaSubsamplingVert",cppname:"VideoChromaSubsampVert",level:5,type:"u",minver:4,webm:!0,description:"The amount of pixels to remove in the Cr and Cb channels for every pixel not removed vertically. Example: For video with 4:2:0 chroma subsampling, the ChromaSubsamplingVert **SHOULD** be set to 1."},21941:{name:"CbSubsamplingHorz",cppname:"VideoCbSubsampHorz",level:5,type:"u",minver:4,webm:!0,description:"The amount of pixels to remove in the Cb channel for every pixel not removed horizontally. This is additive with ChromaSubsamplingHorz. Example: For video with 4:2:1 chroma subsampling, the ChromaSubsamplingHorz **SHOULD** be set to 1 and CbSubsamplingHorz **SHOULD** be set to 1."},21942:{name:"CbSubsamplingVert",cppname:"VideoCbSubsampVert",level:5,type:"u",minver:4,webm:!0,description:"The amount of pixels to remove in the Cb channel for every pixel not removed vertically. This is additive with ChromaSubsamplingVert."},21943:{name:"ChromaSitingHorz",cppname:"VideoChromaSitHorz",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"How chroma is subsampled horizontally."},21944:{name:"ChromaSitingVert",cppname:"VideoChromaSitVert",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"How chroma is subsampled vertically."},21945:{name:"Range",cppname:"VideoColourRange",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"Clipping of the color ranges."},21946:{name:"TransferCharacteristics",cppname:"VideoColourTransferCharacter",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"2",description:"The transfer characteristics of the video. For clarity, the value and meanings for TransferCharacteristics are adopted from Table 3 of ISO/IEC 23091-4 or ITU-T H.273."},21947:{name:"Primaries",cppname:"VideoColourPrimaries",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"2",description:"The colour primaries of the video. For clarity, the value and meanings for Primaries are adopted from Table 2 of ISO/IEC 23091-4 or ITU-T H.273."},21948:{name:"MaxCLL",cppname:"VideoColourMaxCLL",level:5,type:"u",minver:4,webm:!0,description:"Maximum brightness of a single pixel (Maximum Content Light Level) in candelas per square meter (cd/m^2^)."},21949:{name:"MaxFALL",cppname:"VideoColourMaxFALL",level:5,type:"u",minver:4,webm:!0,description:"Maximum brightness of a single full frame (Maximum Frame-Average Light Level) in candelas per square meter (cd/m^2^)."},21968:{name:"MasteringMetadata",cppname:"VideoColourMasterMeta",level:5,type:"m",minver:4,webm:!0,description:"SMPTE 2086 mastering data."},21969:{name:"PrimaryRChromaticityX",cppname:"VideoRChromaX",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Red X chromaticity coordinate, as defined by CIE 1931."},21970:{name:"PrimaryRChromaticityY",cppname:"VideoRChromaY",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Red Y chromaticity coordinate, as defined by CIE 1931."},21971:{name:"PrimaryGChromaticityX",cppname:"VideoGChromaX",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Green X chromaticity coordinate, as defined by CIE 1931."},21972:{name:"PrimaryGChromaticityY",cppname:"VideoGChromaY",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Green Y chromaticity coordinate, as defined by CIE 1931."},21973:{name:"PrimaryBChromaticityX",cppname:"VideoBChromaX",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Blue X chromaticity coordinate, as defined by CIE 1931."},21974:{name:"PrimaryBChromaticityY",cppname:"VideoBChromaY",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"Blue Y chromaticity coordinate, as defined by CIE 1931."},21975:{name:"WhitePointChromaticityX",cppname:"VideoWhitePointChromaX",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"White X chromaticity coordinate, as defined by CIE 1931."},21976:{name:"WhitePointChromaticityY",cppname:"VideoWhitePointChromaY",level:6,type:"f",minver:4,webm:!0,range:"0-1",description:"White Y chromaticity coordinate, as defined by CIE 1931."},21977:{name:"LuminanceMax",cppname:"VideoLuminanceMax",level:6,type:"f",minver:4,webm:!0,range:">= 0x0p+0",description:"Maximum luminance. Represented in candelas per square meter (cd/m^2^)."},21978:{name:"LuminanceMin",cppname:"VideoLuminanceMin",level:6,type:"f",minver:4,webm:!0,range:">= 0x0p+0",description:"Minimum luminance. Represented in candelas per square meter (cd/m^2^)."},21998:{name:"MaxBlockAdditionID",level:3,type:"u",mandatory:!0,default:"0",description:"The maximum value of BlockAddID ((#blockaddid-element)). A value 0 means there is no BlockAdditions ((#blockadditions-element)) for this track."},22100:{name:"ChapterStringUID",level:4,type:"8",minver:3,webm:!0,description:"A unique string ID to identify the Chapter. Use for WebVTT cue identifier storage [@!WebVTT]."},22186:{name:"CodecDelay",level:3,type:"u",mandatory:!0,minver:4,webm:!0,description:"CodecDelay is The codec-built-in delay, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks). It represents the amount of codec samples that will be discarded by the decoder during playback. This timestamp value **MUST** be subtracted from each frame timestamp in order to get the timestamp that will be actually played. The value **SHOULD** be small so the muxing of tracks with the same actual timestamp are in the same Cluster."},22203:{name:"SeekPreRoll",level:3,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"After a discontinuity, SeekPreRoll is the duration of the data the decoder **MUST** decode before the decoded data is valid, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks)."},22337:{name:"WritingApp",level:2,type:"8",mandatory:!0,description:'Writing application (example: "mkvmerge-0.3.3").'},22612:{name:"SilentTracks",cppname:"ClusterSilentTracks",level:2,type:"m",minver:0,maxver:0,description:"The list of tracks that are not used in that part of the stream. It is useful when using overlay tracks on seeking or to decide what track to use."},22743:{name:"SilentTrackNumber",cppname:"ClusterSilentTrackNumber",level:3,type:"u",multiple:!0,minver:0,maxver:0,description:"One of the track number that are not used from now on in the stream. It could change later if not specified as silent in a further Cluster."},24999:{name:"AttachedFile",cppname:"Attached",level:2,type:"m",mandatory:!0,multiple:!0,description:"An attached file."},25152:{name:"ContentEncoding",level:4,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"Settings for one content encoding like compression or encryption."},25188:{name:"BitDepth",cppname:"AudioBitDepth",level:4,type:"u",range:"not 0",description:"Bits per sample, mostly used for PCM."},25506:{name:"CodecPrivate",level:3,type:"b",description:"Private data only known to the codec."},25536:{name:"Targets",cppname:"TagTargets",level:3,type:"m",mandatory:!0,webm:!0,description:"Specifies which other elements the metadata represented by the Tag applies to. If empty or not present, then the Tag describes everything in the Segment."},25539:{name:"ChapterPhysicalEquiv",level:4,type:"u",description:'Specify the physical equivalent of this ChapterAtom like "DVD" (60) or "SIDE" (50); see (#physical-types) for a complete list of values.'},25540:{name:"TagChapterUID",level:4,type:"u",multiple:!0,default:"0",description:"A unique ID to identify the Chapter(s) the tags belong to."},25541:{name:"TagTrackUID",level:4,type:"u",multiple:!0,webm:!0,default:"0",description:"A unique ID to identify the Track(s) the tags belong to."},25542:{name:"TagAttachmentUID",level:4,type:"u",multiple:!0,default:"0",description:"A unique ID to identify the Attachment(s) the tags belong to."},25545:{name:"TagEditionUID",level:4,type:"u",multiple:!0,default:"0",description:"A unique ID to identify the EditionEntry(s) the tags belong to."},25546:{name:"TargetType",cppname:"TagTargetType",level:4,type:"s",webm:!0,description:'An informational string that can be used to display the logical level of the target like "ALBUM", "TRACK", "MOVIE", "CHAPTER", etc ; see Section 6.4 of [@!MatroskaTags].'},25906:{name:"SignedElement",level:2,type:"b",multiple:!0,webm:!1,description:"An element ID whose data will be used to compute the signature."},26148:{name:"TrackTranslate",level:3,type:"m",multiple:!0,description:"The mapping between this `TrackEntry` and a track value in the given Chapter Codec."},26277:{name:"TrackTranslateTrackID",level:4,type:"b",mandatory:!0,description:"The binary value used to represent this `TrackEntry` in the chapter codec data. The format depends on the `ChapProcessCodecID` used; see (#chapprocesscodecid-element)."},26303:{name:"TrackTranslateCodec",level:4,type:"u",mandatory:!0,description:"This `TrackTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element)."},26364:{name:"TrackTranslateEditionUID",level:4,type:"u",multiple:!0,description:"Specify a chapter edition UID on which this `TrackTranslate` applies."},26568:{name:"SimpleTag",cppname:"TagSimple",level:3,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"Contains general information about the target."},26826:{name:"TargetTypeValue",cppname:"TagTargetTypeValue",level:4,type:"u",mandatory:!0,webm:!0,default:"50",description:"A number to indicate the logical level of the target."},26897:{name:"ChapProcessCommand",cppname:"ChapterProcessCommand",level:5,type:"m",multiple:!0,description:"Contains all the commands associated to the Atom."},26914:{name:"ChapProcessTime",cppname:"ChapterProcessTime",level:6,type:"u",mandatory:!0,description:"Defines when the process command **SHOULD** be handled"},26916:{name:"ChapterTranslate",level:2,type:"m",multiple:!0,description:"The mapping between this `Segment` and a segment value in the given Chapter Codec."},26931:{name:"ChapProcessData",cppname:"ChapterProcessData",level:6,type:"b",mandatory:!0,description:"Contains the command information. The data **SHOULD** be interpreted depending on the ChapProcessCodecID value. For ChapProcessCodecID = 1, the data correspond to the binary DVD cell pre/post commands; see (#menu-features) on DVD menus."},26948:{name:"ChapProcess",cppname:"ChapterProcess",level:4,type:"m",multiple:!0,description:"Contains all the commands associated to the Atom."},26965:{name:"ChapProcessCodecID",cppname:"ChapterProcessCodecID",level:5,type:"u",mandatory:!0,default:"0",description:"Contains the type of the codec used for the processing. A value of 0 means native Matroska processing (to be defined), a value of 1 means the DVD command set is used; see (#menu-features) on DVD menus. More codec IDs can be added later."},27045:{name:"ChapterTranslateID",level:3,type:"b",mandatory:!0,description:"The binary value used to represent this Segment in the chapter codec data. The format depends on the ChapProcessCodecID used; see (#chapprocesscodecid-element)."},27071:{name:"ChapterTranslateCodec",level:3,type:"u",mandatory:!0,description:"This `ChapterTranslate` applies to this chapter codec of the given chapter edition(s); see (#chapprocesscodecid-element)."},27132:{name:"ChapterTranslateEditionUID",level:3,type:"u",multiple:!0,description:"Specify a chapter edition UID on which this `ChapterTranslate` applies."},28032:{name:"ContentEncodings",level:3,type:"m",webm:!0,description:"Settings for several content encoding mechanisms like compression or encryption."},28135:{name:"MinCache",cppname:"TrackMinCache",level:3,type:"u",mandatory:!0,default:"0",description:"The minimum number of frames a player **SHOULD** be able to cache during playback. If set to 0, the reference pseudo-cache system is not used."},28152:{name:"MaxCache",cppname:"TrackMaxCache",level:3,type:"u",description:"The maximum cache size necessary to store referenced frames in and the current frame. 0 means no cache is needed."},28263:{name:"ChapterSegmentUID",level:4,type:"b",range:">0",description:"The SegmentUID of another Segment to play during this chapter."},28348:{name:"ChapterSegmentEditionUID",level:4,type:"u",range:"not 0",description:"The EditionUID to play from the Segment linked in ChapterSegmentUID. If ChapterSegmentEditionUID is undeclared, then no Edition of the linked Segment is used; see (#medium-linking) on medium-linking Segments."},28587:{name:"TrackOverlay",level:3,type:"u",multiple:!0,description:"Specify that this track is an overlay track for the Track specified (in the u-integer). That means when this track has a gap, see (#silenttracks-element) on SilentTracks, the overlay track **SHOULD** be used instead. The order of multiple TrackOverlay matters, the first one is the one that **SHOULD** be used. If not found it **SHOULD** be the second, etc."},29555:{name:"Tag",level:2,type:"m",mandatory:!0,multiple:!0,webm:!0,description:"A single metadata descriptor."},29572:{name:"SegmentFilename",level:2,type:"8",description:"A filename corresponding to this Segment."},29604:{name:"SegmentUID",level:2,type:"b",range:"not 0",description:"A randomly generated unique ID to identify the Segment amongst many others (128 bits)."},29636:{name:"ChapterUID",level:4,type:"u",mandatory:!0,webm:!0,range:"not 0",description:"A unique ID to identify the Chapter."},29637:{name:"TrackUID",level:3,type:"u",mandatory:!0,range:"not 0",description:"A unique ID to identify the Track."},29766:{name:"AttachmentLink",cppname:"TrackAttachmentLink",level:3,type:"u",maxver:3,range:"not 0",description:"The UID of an attachment that is used by this codec."},30113:{name:"BlockAdditions",level:3,type:"m",webm:!0,description:"Contain additional blocks to complete the main one. An EBML parser that has no knowledge of the Block structure could still see and use/skip these data."},30114:{name:"DiscardPadding",level:3,type:"i",minver:4,webm:!0,description:"Duration of the silent data added to the Block, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks) (padding at the end of the Block for positive value, at the beginning of the Block for negative value). The duration of DiscardPadding is not calculated in the duration of the TrackEntry and **SHOULD** be discarded during playback."},30320:{name:"Projection",cppname:"VideoProjection",level:4,type:"m",minver:4,webm:!0,description:"Describes the video projection details. Used to render spherical, VR videos or flipping videos horizontally/vertically."},30321:{name:"ProjectionType",cppname:"VideoProjectionType",level:5,type:"u",mandatory:!0,minver:4,webm:!0,default:"0",description:"Describes the projection used for this video track."},30322:{name:"ProjectionPrivate",cppname:"VideoProjectionPrivate",level:5,type:"b",minver:4,webm:!0,description:"Private data that only applies to a specific projection. * If `ProjectionType` equals 0 (Rectangular), then this element must not be present. * If `ProjectionType` equals 1 (Equirectangular), then this element must be present and contain the same binary data that would be stored inside an ISOBMFF Equirectangular Projection Box ('equi'). * If `ProjectionType` equals 2 (Cubemap), then this element must be present and contain the same binary data that would be stored inside an ISOBMFF Cubemap Projection Box ('cbmp'). * If `ProjectionType` equals 3 (Mesh), then this element must be present and contain the same binary data that would be stored inside an ISOBMFF Mesh Projection Box ('mshp')."},30323:{name:"ProjectionPoseYaw",cppname:"VideoProjectionPoseYaw",level:5,type:"f",mandatory:!0,minver:4,webm:!0,default:"0x0p+0",range:">= -0xB4p+0, <= 0xB4p+0",description:"Specifies a yaw rotation to the projection. Value represents a clockwise rotation, in degrees, around the up vector. This rotation must be applied before any `ProjectionPosePitch` or `ProjectionPoseRoll` rotations. The value of this element **MUST** be in the -180 to 180 degree range, both included. Setting `ProjectionPoseYaw` to 180 or -180 degrees, with the `ProjectionPoseRoll` and `ProjectionPosePitch` set to 0 degrees flips the image horizontally."},30324:{name:"ProjectionPosePitch",cppname:"VideoProjectionPosePitch",level:5,type:"f",mandatory:!0,minver:4,webm:!0,default:"0x0p+0",range:">= -0x5Ap+0, <= 0x5Ap+0",description:"Specifies a pitch rotation to the projection. Value represents a counter-clockwise rotation, in degrees, around the right vector. This rotation must be applied after the `ProjectionPoseYaw` rotation and before the `ProjectionPoseRoll` rotation. The value of this element **MUST** be in the -90 to 90 degree range, both included."},30325:{name:"ProjectionPoseRoll",cppname:"VideoProjectionPoseRoll",level:5,type:"f",mandatory:!0,minver:4,webm:!0,default:"0x0p+0",range:">= -0xB4p+0, <= 0xB4p+0",description:"Specifies a roll rotation to the projection. Value represents a counter-clockwise rotation, in degrees, around the forward vector. This rotation must be applied after the `ProjectionPoseYaw` and `ProjectionPosePitch` rotations. The value of this element **MUST** be in the -180 to 180 degree range, both included. Setting `ProjectionPoseRoll` to 180 or -180 degrees, the `ProjectionPoseYaw` to 180 or -180 degrees with `ProjectionPosePitch` set to 0 degrees flips the image vertically. Setting `ProjectionPoseRoll` to 180 or -180 degrees, with the `ProjectionPoseYaw` and `ProjectionPosePitch` set to 0 degrees flips the image horizontally and vertically."},30901:{name:"OutputSamplingFrequency",cppname:"AudioOutputSamplingFreq",level:4,type:"f",range:"> 0x0p+0",description:"Real output sampling frequency in Hz (used for SBR techniques)."},31657:{name:"Title",level:2,type:"8",webm:!0,description:"General name of the Segment."},32123:{name:"ChannelPositions",cppname:"AudioPosition",level:4,type:"b",minver:0,maxver:0,description:"Table of horizontal angles for each successive channel."},32347:{name:"SignatureElements",level:1,type:"m",webm:!1,description:"Contains elements that will be used to compute the signature."},32379:{name:"SignatureElementList",level:2,type:"m",multiple:!0,webm:!1,i:"Cluster|Block|BlockAdditional",description:"A list consists of a number of consecutive elements that represent one case where data is used in signature. Ex: means that the BlockAdditional of all Blocks in all Clusters is used for encryption."},32394:{name:"SignatureAlgo",level:2,type:"u",webm:!1,description:"Signature algorithm used (1=RSA, 2=elliptic)."},32410:{name:"SignatureHash",level:2,type:"u",webm:!1,description:"Hash algorithm used (1=SHA1-160, 2=MD5)."},32421:{name:"SignaturePublicKey",level:2,type:"b",webm:!1,description:"The public key to use with the algorithm (in the case of a PKI-based signature)."},32437:{name:"Signature",level:2,type:"b",webm:!1,description:"The signature of the data (until a new."},2274716:{name:"Language",cppname:"TrackLanguage",level:3,type:"s",mandatory:!0,default:"eng",description:"Specifies the language of the track in the Matroska languages form; see (#language-codes) on language codes. This Element **MUST** be ignored if the LanguageIETF Element is used in the same TrackEntry."},2274717:{name:"LanguageIETF",level:3,type:"s",minver:4,description:"Specifies the language of the track according to [@!BCP47] and using the IANA Language Subtag Registry [@!IANALangRegistry]. If this Element is used, then any Language Elements used in the same TrackEntry **MUST** be ignored."},2306383:{name:"TrackTimestampScale",cppname:"TrackTimecodeScale",level:3,type:"f",mandatory:!0,maxver:3,default:"0x1p+0",range:"> 0x0p+0",description:"DEPRECATED, DO NOT USE. The scale to apply on this track to work at normal speed in relation with other tracks (mostly used to adjust video speed when the audio length differs)."},2313850:{name:"DefaultDecodedFieldDuration",cppname:"TrackDefaultDecodedFieldDuration",level:3,type:"u",minver:4,range:"not 0",description:"The period between two successive fields at the output of the decoding process, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks). see (#defaultdecodedfieldduration) for more information"},2327523:{name:"FrameRate",cppname:"VideoFrameRate",level:4,type:"f",minver:0,maxver:0,range:"> 0x0p+0",description:"Number of frames per second. This value is Informational only. It is intended for constant frame rate streams, and **SHOULD NOT** be used for a variable frame rate TrackEntry."},2352003:{name:"DefaultDuration",cppname:"TrackDefaultDuration",level:3,type:"u",range:"not 0",description:"Number of nanoseconds per frame, expressed in Matroska Ticks -- ie in nanoseconds; see (#timestamp-ticks) (frame in the Matroska sense -- one Element put into a (Simple)Block)."},2459272:{name:"CodecName",level:3,type:"8",description:"A human-readable string specifying the codec."},2536e3:{name:"CodecDownloadURL",level:3,type:"s",multiple:!0,minver:0,maxver:0,description:"A URL to download about the codec used."},2807729:{name:"TimestampScale",cppname:"TimecodeScale",level:2,type:"u",mandatory:!0,default:"1000000",range:"not 0",description:"Base unit for Segment Ticks and Track Ticks, in nanoseconds. A TimestampScale value of 1.000.000 means scaled timestamps in the Segment are expressed in milliseconds; see (#timestamps) on how to interpret timestamps."},2807730:{name:"TimecodeScaleDenominator",level:2,type:"u",mandatory:!0,minver:4,default:"1000000000",description:"Timestamp scale numerator, see TimecodeScale."},3061028:{name:"UncompressedFourCC",cppname:"VideoColourSpace",level:4,type:"b",description:"Specify the uncompressed pixel format used for the Track's data as a FourCC. This value is similar in scope to the biCompression value of AVI's `BITMAPINFO` [@?AVIFormat]. See the YUV video formats [@?FourCC-YUV] and RGB video formats [@?FourCC-RGB] for common values."},3126563:{name:"GammaValue",cppname:"VideoGamma",level:4,type:"f",minver:0,maxver:0,range:"> 0x0p+0",description:"Gamma Value."},3839639:{name:"CodecSettings",level:3,type:"8",minver:0,maxver:0,description:"A string describing the encoding setting used."},3883072:{name:"CodecInfoURL",level:3,type:"s",multiple:!0,minver:0,maxver:0,description:"A URL to find information about the codec used."},3965867:{name:"PrevFilename",level:2,type:"8",description:"A filename corresponding to the file of the previous Linked Segment."},3979555:{name:"PrevUID",level:2,type:"b",description:"A unique ID to identify the previous Segment of a Linked Segment (128 bits)."},4096955:{name:"NextFilename",level:2,type:"8",description:"A filename corresponding to the file of the next Linked Segment."},4110627:{name:"NextUID",level:2,type:"b",description:"A unique ID to identify the next Segment of a Linked Segment (128 bits)."},272869232:{name:"Chapters",level:1,type:"m",webm:!0,description:"A system to define basic menus and partition data. For more detailed information, look at the Chapters explanation in (#chapters)."},290298740:{name:"SeekHead",level:1,type:"m",multiple:!0,description:"Contains the Segment Position of other Top-Level Elements."},307544935:{name:"Tags",level:1,type:"m",multiple:!0,webm:!0,description:"Element containing metadata describing Tracks, Editions, Chapters, Attachments, or the Segment as a whole. A list of valid tags can be found in [@!MatroskaTags]."},357149030:{name:"Info",level:1,type:"m",mandatory:!0,description:"Contains general information about the Segment."},374648427:{name:"Tracks",level:1,type:"m",description:"A Top-Level Element of information with many tracks described."},408125543:{name:"Segment",level:0,type:"m",mandatory:!0,description:"The Root Element that contains all other Top-Level Elements (Elements defined only at Level 1). A Matroska file is composed of 1 Segment."},423732329:{name:"Attachments",level:1,type:"m",description:"Contain attached files."},440786851:{name:"EBML",level:"0",type:"m",mandatory:!0,multiple:!1,minver:1,description:"Set the EBML characteristics of the data to follow. Each EBML document has to start with this."},458458727:{name:"SignatureSlot",level:1,type:"m",multiple:!0,webm:!1,description:"Contain signature of some (coming) elements in the stream."},475249515:{name:"Cues",level:1,type:"m",description:"A Top-Level Element to speed seeking access. All entries are local to the Segment."},524531317:{name:"Cluster",level:1,type:"m",multiple:!0,description:"The Top-Level Element containing the (monolithic) Block structure."}},i={},a={byEbmlID:r,byName:i};for(var o in r){var s=r[o];i[s.name.replace("-","_")]=parseInt(o,10)}e.exports=a},"1b3b":function(e,t,n){"use strict";var r=n("df7e"),i=n("ebb5"),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.TYPED_ARRAY_CONSTRUCTOR;o("toReversed",(function(){return r(a(this),this[s])}))},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1bf2":function(e,t,n){var r=n("23e7"),i=n("56ef");r({target:"Reflect",stat:!0},{ownKeys:i})},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d10":function(e,t,n){"use strict";var r=n("23e7"),i=n("dd2f").some;r({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},"1d1c":function(e,t,n){var r=n("23e7"),i=n("83ab"),a=n("37e8").f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e25":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").end,a=n("c8d2"),o=a("trimEnd"),s=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,name:"trimEnd",forced:o},{trimEnd:s,trimRight:s})},"1ec1":function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"1fb5":function(e,t,n){"use strict";t.byteLength=f,t.toByteArray=h,t.fromByteArray=v;for(var r=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function f(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function l(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=u(e),o=r[0],s=r[1],c=new a(l(e,o,s)),f=0,h=s>0?o-4:o;for(n=0;n>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fe2":function(e,t,n){"use strict";var r=n("6d61"),i=n("acac");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"20a2":function(e,t,n){(function(e){!function(t){var n,r="undefined",i=r!==typeof e&&e,a=r!==typeof Uint8Array&&Uint8Array,o=r!==typeof ArrayBuffer&&ArrayBuffer,s=[0,0,0,0,0,0,0,0],c=Array.isArray||_,u=4294967296,f=16777216;function l(e,c,l){var _=c?0:4,E=c?4:0,w=c?0:3,k=c?1:2,A=c?2:1,R=c?3:0,x=c?g:T,I=c?b:S,C=D.prototype,P="is"+e,O="_"+P;return C.buffer=void 0,C.offset=0,C[O]=!0,C.toNumber=N,C.toString=L,C.toJSON=N,C.toArray=h,i&&(C.toBuffer=d),a&&(C.toArrayBuffer=p),D[P]=U,t[e]=D,D;function D(e,t,n,r){return this instanceof D?M(this,e,t,n,r):new D(e,t,n,r)}function U(e){return!(!e||!e[O])}function M(e,t,i,c,u){if(a&&o&&(t instanceof o&&(t=new a(t)),c instanceof o&&(c=new a(c))),t||i||c||n){if(!v(t,i)){var f=n||Array;u=i,c=t,i=0,t=new f(8)}e.buffer=t,e.offset=i|=0,r!==typeof c&&("string"===typeof c?B(t,i,c,u||10):v(c,u)?m(t,i,c,u):"number"===typeof u?(F(t,i+_,c),F(t,i+E,u)):c>0?x(t,i,c):c<0?I(t,i,c):m(t,i,s,0))}else e.buffer=y(s,0)}function B(e,t,n,r){var i=0,a=n.length,o=0,s=0;"-"===n[0]&&i++;var c=i;while(i=0))break;s=s*r+f,o=o*r+Math.floor(s/u),s%=u}c&&(o=~o,s?s=u-s:o++),F(e,t+_,o),F(e,t+E,s)}function N(){var e=this.buffer,t=this.offset,n=j(e,t+_),r=j(e,t+E);return l||(n|=0),n?n*u+r:r}function L(e){var t=this.buffer,n=this.offset,r=j(t,n+_),i=j(t,n+E),a="",o=!l&&2147483648&r;o&&(r=~r,i=u-i),e=e||10;while(1){var s=r%e*u+i;if(r=Math.floor(r/e),i=Math.floor(s/e),a=(s%e).toString(e)+a,!r&&!i)break}return o&&(a="-"+a),a}function F(e,t,n){e[t+R]=255&n,n>>=8,e[t+A]=255&n,n>>=8,e[t+k]=255&n,n>>=8,e[t+w]=255&n}function j(e,t){return e[t+w]*f+(e[t+k]<<16)+(e[t+A]<<8)+e[t+R]}}function h(e){var t=this.buffer,r=this.offset;return n=null,!1!==e&&0===r&&8===t.length&&c(t)?t:y(t,r)}function d(t){var r=this.buffer,a=this.offset;if(n=i,!1!==t&&0===a&&8===r.length&&e.isBuffer(r))return r;var o=new i(8);return m(o,0,r,a),o}function p(e){var t=this.buffer,r=this.offset,i=t.buffer;if(n=a,!1!==e&&0===r&&i instanceof o&&8===i.byteLength)return i;var s=new a(8);return m(s,0,t,r),s.buffer}function v(e,t){var n=e&&e.length;return t|=0,n&&t+8<=n&&"string"!==typeof e[t]}function m(e,t,n,r){t|=0,r|=0;for(var i=0;i<8;i++)e[t++]=255&n[r++]}function y(e,t){return Array.prototype.slice.call(e,t,t+8)}function g(e,t,n){var r=t+8;while(r>t)e[--r]=255&n,n/=256}function b(e,t,n){var r=t+8;n++;while(r>t)e[--r]=255&-n^255,n/=256}function T(e,t,n){var r=t+8;while(t0&&1/n<0?1:-1:t>n}};v("sort",(function(e){return void 0!==e&&o(e),b?y(this,e):s(p(this),T(e))}),!b||g)},"21bf":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof t&&t.crypto&&(i=t.crypto),!i)try{i=n(0)}catch(y){}var a=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(y){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},c=s.lib={},u=c.Base=function(){return{extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=r?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new f.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new f.init(n,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=4*o,c=a/s;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var u=c*o,l=e.min(4*u,a);if(u){for(var h=0;hg;g++)if(T=I(e[g]),T&&f(m,T))return T;return new v(!1)}r=l(e,y)}S=r.next;while(!(_=a(S,r)).done){try{T=I(_.value)}catch(C){d(r,"throw",C)}if("object"==typeof T&&T&&f(m,T))return T}return new v(!1)}},2315:function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("strike")},{strike:function(){return i(this,"strike","","")}})},2351:function(e,t,n){var r=n("746f");r("split")},2382:function(e,t,n){"use strict";var r=n("23e7"),i=n("2ba4"),a=n("59ed"),o=n("825a"),s=n("c5cc"),c=n("9bdd"),u=s((function(e){var t,n,r,a=this.iterator,s=this.filterer,u=this.next;while(1){if(t=o(i(u,a,e)),n=this.done=!!t.done,n)return;if(r=t.value,c(a,s,r))return r}}));r({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new u({iterator:o(this),filterer:a(e)})}})},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},"23dc":function(e,t,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,a=n("9112"),o=n("6eeb"),s=n("ce4e"),c=n("e893"),u=n("94ca");e.exports=function(e,t){var n,f,l,h,d,p,v=e.target,m=e.global,y=e.stat;if(f=m?r:y?r[v]||s(v,{}):(r[v]||{}).prototype,f)for(l in t){if(d=t[l],e.noTargetGet?(p=i(f,l),h=p&&p.value):h=f[l],n=u(m?l:v+(y?".":"#")+l,e.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&a(d,"sham",!0),o(f,l,d,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),a=n("387f"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var f={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(o)})),e.exports=f}).call(this,n("4362"))},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("5a34"),o=n("1d80"),s=n("577e"),c=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").right,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("reduceRight",(function(e){var t=arguments.length;return i(a(this),e,t,t>1?arguments[1]:void 0)}))},"25eb":function(e,t,n){var r=n("23e7"),i=n("c20d");r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},"25f0":function(e,t,n){"use strict";var r=n("e330"),i=n("5e77").PROPER,a=n("6eeb"),o=n("825a"),s=n("3a9b"),c=n("577e"),u=n("d039"),f=n("ad6d"),l="toString",h=RegExp.prototype,d=h[l],p=r(f),v=u((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),m=i&&d.name!=l;(v||m)&&a(RegExp.prototype,l,(function(){var e=o(this),t=c(e.source),n=e.flags,r=c(void 0===n&&s(h,e)&&!("flags"in h)?p(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),a=n("b622"),o=n("83ab"),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26ad":function(e,t,n){"use strict";var r=n("23e7"),i=n("dd2f").forEach;r({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},"26e9":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("e8b5"),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},2705:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c430"),o=n("59ed"),s=n("825a"),c=n("5860"),u=n("2266"),f=i.TypeError;r({target:"Set",proto:!0,real:!0,forced:a},{reduce:function(e){var t=s(this),n=c(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),{IS_ITERATOR:!0}),r)throw f("Reduce of empty set with no initial value");return i}})},2713:function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),a=n("825a");e.exports=function(e,t){var n=a(this),o=i(n.get),s=i(n.has),c=i(n.set),u=r(s,n,e)&&"update"in t?t.update(r(o,n,e),e,n):t.insert(e,n);return r(c,n,e,u),u}},"277d":function(e,t,n){var r=n("23e7"),i=n("e8b5");r({target:"Array",stat:!0},{isArray:i})},2954:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b6b7"),a=n("d039"),o=n("f36a"),s=r.aTypedArray,c=r.exportTypedArrayMethod,u=a((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=o(s(this),e,t),r=i(this),a=0,c=n.length,u=new r(c);while(c>a)u[a]=n[a++];return u}),u)},"2a1b":function(e,t,n){var r=n("746f");r("match")},"2a62":function(e,t,n){var r=n("c65b"),i=n("825a"),a=n("dc4a");e.exports=function(e,t,n){var o,s;i(e);try{if(o=a(e,"return"),!o){if("throw"===t)throw n;return n}o=r(o,e)}catch(c){s=!0,o=c}if("throw"===t)throw n;if(s)throw o;return i(o),n}},"2a66":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}))},"2abc":function(e,t,n){var r=n("23e7"),i=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*i}})},"2af1":function(e,t,n){var r=n("23e7"),i=n("f748");r({target:"Math",stat:!0},{sign:i})},"2b19":function(e,t,n){var r=n("23e7"),i=n("129f");r({target:"Object",stat:!0},{is:i})},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),a=n("83ab"),o=n("0d3b"),s=n("da84"),c=n("0366"),u=n("e330"),f=n("37e8").f,l=n("6eeb"),h=n("19aa"),d=n("1a2d"),p=n("60da"),v=n("4df4"),m=n("4dae"),y=n("6547").codeAt,g=n("5fb2"),b=n("577e"),T=n("d44e"),S=n("9861"),_=n("69f3"),E=_.set,w=_.getterFor("URL"),k=S.URLSearchParams,A=S.getState,R=s.URL,x=s.TypeError,I=s.parseInt,C=Math.floor,P=Math.pow,O=u("".charAt),D=u(/./.exec),U=u([].join),M=u(1..toString),B=u([].pop),N=u([].push),L=u("".replace),F=u([].shift),j=u("".split),W=u("".slice),H=u("".toLowerCase),V=u([].unshift),z="Invalid authority",q="Invalid scheme",G="Invalid host",Y="Invalid port",K=/[a-z]/i,X=/[\d+-.a-z]/i,Q=/\d/,$=/^0x/i,Z=/^[0-7]+$/,J=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ie=/[\t\n\r]/g,ae=function(e){var t,n,r,i,a,o,s,c=j(e,".");if(c.length&&""==c[c.length-1]&&c.length--,t=c.length,t>4)return e;for(n=[],r=0;r1&&"0"==O(i,0)&&(a=D($,i)?16:8,i=W(i,8==a?1:2)),""===i)o=0;else{if(!D(10==a?J:8==a?Z:ee,i))return e;o=I(i,a)}N(n,o)}for(r=0;r=P(256,5-t))return null}else if(o>255)return null;for(s=B(n),r=0;r6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;l++}if(!D(Q,h()))return;while(D(Q,h())){if(a=I(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;l++}c[u]=256*c[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[u++]=t}else{if(null!==f)return;l++,u++,f=u}}if(null!==f){o=u-f,u=7;while(0!=u&&o>0)s=c[u],c[u--]=c[f+o-1],c[f+--o]=s}else if(8!=u)return;return c},se=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t},ce=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)V(t,e%256),e=C(e/256);return U(t,".")}if("object"==typeof e){for(t="",r=se(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=M(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},fe=p({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),le=p({},fe,{"#":1,"?":1,"{":1,"}":1}),he=p({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=y(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2==e.length&&D(K,O(e,0))&&(":"==(n=O(e,1))||!t&&"|"==n)},me=function(e){var t;return e.length>1&&ve(W(e,0,2))&&(2==e.length||"/"===(t=O(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===H(e)},ge=function(e){return e=H(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},be={},Te={},Se={},_e={},Ee={},we={},ke={},Ae={},Re={},xe={},Ie={},Ce={},Pe={},Oe={},De={},Ue={},Me={},Be={},Ne={},Le={},Fe={},je=function(e,t,n){var r,i,a,o=b(e);if(t){if(i=this.parse(o),i)throw x(i);this.searchParams=null}else{if(void 0!==n&&(r=new je(n,!0)),i=this.parse(o,null,r),i)throw x(i);a=A(new k),a.bindURL(this),this.searchParams=a}};je.prototype={type:"URL",parse:function(e,t,n){var i,a,o,s,c=this,u=t||be,f=0,l="",h=!1,p=!1,y=!1;e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=L(e,re,"")),e=L(e,ie,""),i=v(e);while(f<=i.length){switch(a=i[f],u){case be:if(!a||!D(K,a)){if(t)return q;u=Se;continue}l+=H(a),u=Te;break;case Te:if(a&&(D(X,a)||"+"==a||"-"==a||"."==a))l+=H(a);else{if(":"!=a){if(t)return q;l="",u=Se,f=0;continue}if(t&&(c.isSpecial()!=d(pe,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&pe[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?u=Oe:c.isSpecial()&&n&&n.scheme==c.scheme?u=_e:c.isSpecial()?u=Ae:"/"==i[f+1]?(u=Ee,f++):(c.cannotBeABaseURL=!0,N(c.path,""),u=Ne)}break;case Se:if(!n||n.cannotBeABaseURL&&"#"!=a)return q;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=m(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Fe;break}u="file"==n.scheme?Oe:we;continue;case _e:if("/"!=a||"/"!=i[f+1]){u=we;continue}u=Re,f++;break;case Ee:if("/"==a){u=xe;break}u=Be;continue;case we:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())u=ke;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query="",u=Le;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.path.length--,u=Be;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query,c.fragment="",u=Fe}break;case ke:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Be;continue}u=xe}else u=Re;break;case Ae:if(u=Re,"/"!=a||"/"!=O(l,f+1))continue;f++;break;case Re:if("/"!=a&&"\\"!=a){u=xe;continue}break;case xe:if("@"==a){h&&(l="%40"+l),h=!0,o=v(l);for(var g=0;g65535)return Y;c.port=c.isSpecial()&&_===pe[c.scheme]?null:_,l=""}if(t)return;u=Me;continue}return Y}l+=a;break;case Oe:if(c.scheme="file","/"==a||"\\"==a)u=De;else{if(!n||"file"!=n.scheme){u=Be;continue}if(a==r)c.host=n.host,c.path=m(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=m(n.path),c.query="",u=Le;else{if("#"!=a){me(U(m(i,f),""))||(c.host=n.host,c.path=m(n.path),c.shortenPath()),u=Be;continue}c.host=n.host,c.path=m(n.path),c.query=n.query,c.fragment="",u=Fe}}break;case De:if("/"==a||"\\"==a){u=Ue;break}n&&"file"==n.scheme&&!me(U(m(i,f),""))&&(ve(n.path[0],!0)?N(c.path,n.path[0]):c.host=n.host),u=Be;continue;case Ue:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&ve(l))u=Be;else if(""==l){if(c.host="",t)return;u=Me}else{if(s=c.parseHost(l),s)return s;if("localhost"==c.host&&(c.host=""),t)return;l="",u=Me}continue}l+=a;break;case Me:if(c.isSpecial()){if(u=Be,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=r&&(u=Be,"/"!=a))continue}else c.fragment="",u=Fe;else c.query="",u=Le;break;case Be:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!t&&("?"==a||"#"==a)){if(ge(l)?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||N(c.path,"")):ye(l)?"/"==a||"\\"==a&&c.isSpecial()||N(c.path,""):("file"==c.scheme&&!c.path.length&&ve(l)&&(c.host&&(c.host=""),l=O(l,0)+":"),N(c.path,l)),l="","file"==c.scheme&&(a==r||"?"==a||"#"==a))while(c.path.length>1&&""===c.path[0])F(c.path);"?"==a?(c.query="",u=Le):"#"==a&&(c.fragment="",u=Fe)}else l+=de(a,le);break;case Ne:"?"==a?(c.query="",u=Le):"#"==a?(c.fragment="",u=Fe):a!=r&&(c.path[0]+=de(a,ue));break;case Le:t||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":de(a,ue)):(c.fragment="",u=Fe);break;case Fe:a!=r&&(c.fragment+=de(a,fe));break}f++}},parseHost:function(e){var t,n,r;if("["==O(e,0)){if("]"!=O(e,e.length-1))return G;if(t=oe(W(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=g(e),D(te,e))return G;if(t=ae(e),null===t)return G;this.host=t}else{if(D(ne,e))return G;for(t="",n=v(e),r=0;r1?arguments[1]:void 0,r=E(t,new je(e,!1,n));a||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},He=We.prototype,Ve=function(e,t){return{get:function(){return w(this)[e]()},set:t&&function(e){return w(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&f(He,{href:Ve("serialize","setHref"),origin:Ve("getOrigin"),protocol:Ve("getProtocol","setProtocol"),username:Ve("getUsername","setUsername"),password:Ve("getPassword","setPassword"),host:Ve("getHost","setHost"),hostname:Ve("getHostname","setHostname"),port:Ve("getPort","setPort"),pathname:Ve("getPathname","setPathname"),search:Ve("getSearch","setSearch"),searchParams:Ve("getSearchParams"),hash:Ve("getHash","setHash")}),l(He,"toJSON",(function(){return w(this).serialize()}),{enumerable:!0}),l(He,"toString",(function(){return w(this).serialize()}),{enumerable:!0}),R){var ze=R.createObjectURL,qe=R.revokeObjectURL;ze&&l(We,"createObjectURL",c(ze,R)),qe&&l(We,"revokeObjectURL",c(qe,R))}T(We,"URL"),i({global:!0,forced:!o,sham:!a},{URL:We})},"2b79":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n,r=this.cfg,a=r.hasher.create(),o=i.create(),s=o.words,c=r.keySize,u=r.iterations;while(s.length1?arguments[1]:void 0,t.length)),r=s(e);return h?h(t,r,n):d(t,n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,i,a,o,s=n("da84"),c=n("2ba4"),u=n("0366"),f=n("1626"),l=n("1a2d"),h=n("d039"),d=n("1be4"),p=n("f36a"),v=n("cc12"),m=n("1cdc"),y=n("605d"),g=s.setImmediate,b=s.clearImmediate,T=s.process,S=s.Dispatch,_=s.Function,E=s.MessageChannel,w=s.String,k=0,A={},R="onreadystatechange";try{r=s.location}catch(O){}var x=function(e){if(l(A,e)){var t=A[e];delete A[e],t()}},I=function(e){return function(){x(e)}},C=function(e){x(e.data)},P=function(e){s.postMessage(w(e),r.protocol+"//"+r.host)};g&&b||(g=function(e){var t=p(arguments,1);return A[++k]=function(){c(f(e)?e:_(e),void 0,t)},i(k),k},b=function(e){delete A[e]},y?i=function(e){T.nextTick(I(e))}:S&&S.now?i=function(e){S.now(I(e))}:E&&!m?(a=new E,o=a.port2,a.port1.onmessage=C,i=u(o.postMessage,o)):s.addEventListener&&f(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(P)?(i=P,s.addEventListener("message",C,!1)):i=R in v("script")?function(e){d.appendChild(v("script"))[R]=function(){d.removeChild(this),x(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:g,clear:b}},"2d00":function(e,t,n){var r,i,a=n("da84"),o=n("342f"),s=a.process,c=a.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f&&(r=f.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},3252:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=n.x64={};o.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r1?[e,arguments[1]]:[e])}))},3393:function(e,t,n){"use strict";var r=n("23e7"),i=n("fd81");r({target:"Number",stat:!0},{range:function(e,t,n){return new i(e,t,n,"number",0,1)}})},"33d1":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("07fa"),o=n("5926"),s=n("44d2");r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=a(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),a=n("7b0b"),o=n("e163"),s=n("e177"),c=i((function(){o(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},3452:function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(e){return e}))},"34a3":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filterReject,a=n("44d2");r({target:"Array",proto:!0},{filterReject:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("filterReject")},"355d":function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("825a"),o=n("e285"),s=n("9ed3"),c=n("69f3"),u="Seeded Random",f=u+" Generator",l='Math.seededPRNG() argument should have a "seed" field with a finite value.',h=c.set,d=c.getterFor(f),p=i.TypeError,v=s((function(e){h(this,{type:f,seed:e%2147483647})}),u,(function(){var e=d(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return{value:(1073741823&t)/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=a(e).seed;if(!o(t))throw p(l);return new v(t)}})},"35a1":function(e,t,n){var r=n("f5df"),i=n("dc4a"),a=n("3f8c"),o=n("b622"),s=o("iterator");e.exports=function(e){if(void 0!=e)return i(e,s)||i(e,"@@iterator")||a[r(e)]}},"35b3":function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},"36a4":function(e,t,n){var r=n("23e7");r({target:"Math",stat:!0},{isubh:function(e,t,n,r){var i=e>>>0,a=t>>>0,o=n>>>0;return a-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},"37e8":function(e,t,n){var r=n("83ab"),i=n("aed9"),a=n("9bf2"),o=n("825a"),s=n("fc6a"),c=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){o(e);var n,r=s(t),i=c(t),u=i.length,f=0;while(u>f)a.f(e,n=i[f++],r[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},"38ba":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("2b79"))})(0,(function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=n.enc,c=(s.Utf8,s.Base64),u=n.algo,f=u.EvpKDF,l=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?E:T}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),h=(r.StreamCipher=l.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),d=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=h.CBC=function(){var e=d.extend();function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o>>2];e.sigBytes-=t}},y=(r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:m}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=n.format={},b=g.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?a.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),y.create({ciphertext:n,salt:t})}},T=r.SerializableCipher=i.extend({cfg:i.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return y.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=e.createDecryptor(n,r).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),S=n.kdf={},_=S.OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var i=f.create({keySize:t+n}).compute(e,r),o=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,y.create({key:i,iv:o,salt:r})}},E=r.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var a=T.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);r.iv=i.iv;var a=T.decrypt.call(this,e,t,i.key,r);return a}})}()}))},"38cf":function(e,t,n){var r=n("23e7"),i=n("1148");r({target:"String",proto:!0},{repeat:i})},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"39c3":function(e,t,n){"use strict";var r=n("23e7"),i=n("63fa");r({target:"Iterator",proto:!0,real:!0},{toAsync:function(){return new i(this)}})},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findIndex",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(e,t,n){var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){var r=n("da84"),i=n("1626"),a=r.String,o=r.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+a(e)+" as a prototype")}},"3c5d":function(e,t,n){"use strict";var r=n("da84"),i=n("c65b"),a=n("ebb5"),o=n("07fa"),s=n("182d"),c=n("7b0b"),u=n("d039"),f=r.RangeError,l=r.Int8Array,h=l&&l.prototype,d=h&&h.set,p=a.aTypedArray,v=a.exportTypedArrayMethod,m=!u((function(){var e=new Uint8ClampedArray(2);return i(d,e,{length:1,0:3},1),3!==e[1]})),y=m&&a.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new l(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(m)return i(d,this,n,t);var r=this.length,a=o(n),u=0;if(a+t>r)throw f("Wrong length");while(u=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3d5a":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.StreamCipher,i=t.algo,a=[],o=[],s=[],c=i.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=c>>>16|4294901760&f,h=f<<16|65535&c;r[0]^=c,r[1]^=l,r[2]^=f,r[3]^=h,r[4]^=c,r[5]^=l,r[6]^=f,r[7]^=h;for(i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)a[r]=16711935&(a[r]<<8|a[r]>>>24)|4278255360&(a[r]<<24|a[r]>>>8),e[t+r]^=a[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,c=((i*i>>>17)+i*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(c)}(),e.RabbitLegacy}))},"3d71":function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),a=n("59ed"),o=n("dfb9"),s=r.aTypedArray,c=r.exportTypedArrayMethod,u=r.TYPED_ARRAY_CONSTRUCTOR,f=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&a(e);var t=s(this),n=o(t[u],t);return f(n,e)}))},"3ea3":function(e,t,n){var r=n("23e7"),i=n("f748"),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return i(e=+e)*o(a(e),1/3)}})},"3eb5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("10d3"),i=n("10d3"),a=n("1b29"),o=a.byEbmlID,s=function(){function e(){this._schema=o,this._buffers=[],this._stack=[]}return e.prototype.encode=function(e){var t=this;return r.concat(e.reduce((function(e,n){return e.concat(t.encodeChunk(n))}),[])).buffer},e.prototype.encodeChunk=function(e){return"m"===e.type?e.isEnd?this.endTag(e):this.startTag(e):this.writeTag(e),this.flush()},e.prototype.flush=function(){var e=this._buffers;return this._buffers=[],e},e.prototype.getSchemaInfo=function(e){for(var t=Object.keys(this._schema).map(Number),n=0;n0){var o=this._stack[this._stack.length-1];o.children.push({tagId:n,elm:e,children:[],data:a})}else this._buffers=this._buffers.concat(a)},e.prototype.startTag=function(e){var t=e.name,n=this.getSchemaInfo(t);if(null==n)throw new Error("No schema entry found for "+t);if(e.unknownSize){var a=r.encodeTag(n,new i.Buffer(0),e.unknownSize);this._buffers=this._buffers.concat(a)}else{var o={tagId:n,elm:e,children:[],data:null};this._stack.length>0&&this._stack[this._stack.length-1].children.push(o),this._stack.push(o)}},e.prototype.endTag=function(e){e.name;var t=this._stack.pop();if(null==t)throw new Error("EBML structure is broken");if(t.elm.name!==e.name)throw new Error("EBML structure is broken");var n=t.children.reduce((function(e,t){if(null===t.data)throw new Error("EBML structure is broken");return e.concat(t.data)}),[]),i=r.concat(n);"m"===t.elm.type?t.data=r.encodeTag(t.tagId,i,t.elm.unknownSize):t.data=r.encodeTag(t.tagId,i),this._stack.length<1&&(this._buffers=this._buffers.concat(t.data))},e}();t.default=s},"3f3a":function(e,t,n){var r=n("23e7"),i=n("83ab"),a=n("825a"),o=n("a04b"),s=n("9bf2"),c=n("d039"),u=c((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}));r({target:"Reflect",stat:!0,forced:u,sham:!i},{defineProperty:function(e,t,n){a(e);var r=o(t);a(n);try{return s.f(e,r,n),!0}catch(i){return!1}}})},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").map,a=n("b6b7"),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(a(e))(t)}))}))},"3fde":function(e,t,n){"use strict";var r=n("f36a");e.exports=function(){return new this(r(arguments))}},"3ff8":function(e,t,n){var r=n("23e7"),i=n("a95f");r({target:"Array",stat:!0},{fromAsync:i})},4057:function(e,t,n){var r=n("23e7"),i=Math.hypot,a=Math.abs,o=Math.sqrt,s=!!i&&i(1/0,NaN)!==1/0;r({target:"Math",stat:!0,forced:s},{hypot:function(e,t){var n,r,i=0,s=0,c=arguments.length,u=0;while(s0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*o(i)}})},4069:function(e,t,n){var r=n("44d2");r("flat")},"408a":function(e,t,n){var r=n("e330");e.exports=r(1..valueOf)},"40d5":function(e,t,n){var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"40d9":function(e,t,n){var r=n("23e7"),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-i(a(e+.5)*o):32}})},4160:function(e,t,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(e,t,n){var r=n("da84");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43b3":function(e,t,n){"use strict";var r=n("c430"),i=n("23e7"),a=n("825a"),o=n("4acb"),s=n("8b85"),c=n("2266");i({target:"Map",proto:!0,real:!0,forced:r},{includes:function(e){return c(o(a(this)),(function(t,n,r){if(s(n,e))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},4417:function(e,t,n){"use strict";var r=n("23e7"),i=n("2ba4"),a=n("825a"),o=n("f8cd"),s=n("c5cc"),c=n("2a62"),u=s((function(e){var t=this.iterator;if(!this.remaining--)return this.done=!0,c(t,"normal",void 0);var n=a(i(this.next,t,e)),r=this.done=!!n.done;return r?void 0:n.value}));r({target:"Iterator",proto:!0,real:!0},{take:function(e){return new u({iterator:a(this),remaining:o(e)})}})},"44ad":function(e,t,n){var r=n("da84"),i=n("e330"),a=n("d039"),o=n("c6b6"),s=r.Object,c=i("".split);e.exports=a((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?c(e,""):s(e)}:s},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),a=n("9bf2"),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),a=n("b622"),o=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},"45e3":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("825a"),s=n("d195"),c=n("a1b3"),u=s((function(e){var t,n=this,r=n.mapper;return new e((function(s,u){var f=function(){try{e.resolve(o(i(n.next,n.iterator))).then((function(i){try{o(i).done?(n.done=!0,s({done:!0,value:void 0})):e.resolve(r(i.value)).then((function(e){try{return n.innerIterator=t=c(e),n.innerNext=a(t.next),l()}catch(r){u(r)}}),u)}catch(f){u(f)}}),u)}catch(f){u(f)}},l=function(){if(t=n.innerIterator)try{e.resolve(o(i(n.innerNext,t))).then((function(e){try{o(e).done?(n.innerIterator=n.innerNext=null,f()):s({done:!1,value:e.value})}catch(t){u(t)}}),u)}catch(r){u(r)}else f()};l()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(e){return new u({iterator:o(this),mapper:a(e),innerIterator:null,innerNext:null})}})},"45fc":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").some,a=n("a640"),o=a("some");r({target:"Array",proto:!0,forced:!o},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),a=n("825a"),o=n("50c4"),s=n("577e"),c=n("1d80"),u=n("dc4a"),f=n("8aa5"),l=n("14c3");i("match",(function(e,t,n){return[function(t){var n=c(this),i=void 0==t?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](s(n))},function(e){var r=a(this),i=s(e),c=n(t,r,i);if(c.done)return c.value;if(!r.global)return l(r,i);var u=r.unicode;r.lastIndex=0;var h,d=[],p=0;while(null!==(h=l(r,i))){var v=s(h[0]);d[p]=v,""===v&&(r.lastIndex=f(i,o(r.lastIndex),u)),p++}return 0===p?null:d}]}))},4673:function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),a=n("59ed"),o=n("07fa"),s=n("7b0b"),c=n("65f0"),u=r("Map"),f=u.prototype,l=i(f.forEach),h=i(f.has),d=i(f.set),p=i([].push);e.exports=function(e){var t,n,r,i=s(this),f=o(i),v=c(i,0),m=new u,y=null!=e?a(e):function(e){return e};for(t=0;t1?arguments[1]:void 0);return!c(n,(function(e,n,i){if(!r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},4795:function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("2ba4"),o=n("1626"),s=n("342f"),c=n("f36a"),u=/MSIE .\./.test(s),f=i.Function,l=function(e){return function(t,n){var r=arguments.length>2,i=r?c(arguments,2):void 0;return e(r?function(){a(o(t)?t:f(t),this,i)}:t,n)}};r({global:!0,bind:!0,forced:u},{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},4840:function(e,t,n){var r=n("825a"),i=n("5087"),a=n("b622"),o=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},"485a":function(e,t,n){var r=n("da84"),i=n("c65b"),a=n("1626"),o=n("861d"),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&a(n=e.toString)&&!o(r=i(n,e)))return r;if(a(n=e.valueOf)&&!o(r=i(n,e)))return r;if("string"!==t&&a(n=e.toString)&&!o(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},"48be":function(e,t,n){var r=n("23e7"),i=n("be8c"),a=n("be8e");r({target:"Math",stat:!0},{fscale:function(e,t,n,r,o){return a(i(e,t,n,r,o))}})},4930:function(e,t,n){var r=n("2d00"),i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,a=n("c8d2");r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},"4a2e":function(e,t,n){"use strict";var r=n("c430"),i=n("23e7"),a=n("d066"),o=n("c65b"),s=n("59ed"),c=n("825a"),u=n("4840"),f=n("2266");i({target:"Set",proto:!0,real:!0,forced:r},{symmetricDifference:function(e){var t=c(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]),i=s(n.add);return f(e,(function(e){o(r,n,e)||o(i,n,e)})),n}})},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||a,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},"4a9b":function(e,t,n){var r=n("74e8");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"4acb":function(e,t,n){var r=n("c65b");e.exports=function(e){return r(Map.prototype.entries,e)}},"4ae1":function(e,t,n){var r=n("23e7"),i=n("d066"),a=n("2ba4"),o=n("0538"),s=n("5087"),c=n("825a"),u=n("861d"),f=n("7c73"),l=n("d039"),h=i("Reflect","construct"),d=Object.prototype,p=[].push,v=l((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!l((function(){h((function(){}))})),y=v||m;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),c(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!v)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return a(p,r,t),new(a(o,e,r))}var i=n.prototype,l=f(u(i)?i:d),y=a(e,l,t);return u(y)?y:l}})},"4ba9":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o@^][^\s!#%&*+<=>@^]*>/,M=/a/g,B=/a/g,N=new k(M)!==M,L=v.MISSED_STICKY,F=v.UNSUPPORTED_Y,j=r&&(!N||L||_||E||y((function(){return B[w]=!1,k(M)!=M||k(B)==B||"/a/i"!=k(M,"i")}))),W=function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)t=C(e,r),"\\"!==t?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+C(e,++r);return i},H=function(e){for(var t,n=e.length,r=0,i="",a=[],o={},s=!1,c=!1,u=0,f="";r<=n;r++){if(t=C(e,r),"\\"===t)t+=C(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:I(U,D(e,r+1))&&(r+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===f||g(o,f))throw new R("Invalid capture group name");o[f]=!0,a[a.length]=[f,u],c=!1,f="";continue}c?f+=t:i+=t}return[i,a]};if(o("RegExp",j)){for(var V=function(e,t){var n,r,i,a,o,u,f=l(A,this),p=h(e),v=void 0===t,m=[],y=e;if(!f&&p&&v&&e.constructor===V)return e;if((p||l(A,e))&&(e=e.source,v&&(t="flags"in y?y.flags:x(y))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),y=e,_&&"dotAll"in M&&(r=!!t&&O(t,"s")>-1,r&&(t=P(t,/s/g,""))),n=t,L&&"sticky"in M&&(i=!!t&&O(t,"y")>-1,i&&F&&(t=P(t,/y/g,""))),E&&(a=H(e),e=a[0],m=a[1]),o=s(k(e,t),f?this:A,V),(r||i||m.length)&&(u=b(o),r&&(u.dotAll=!0,u.raw=V(W(e),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),e!==y)try{c(o,"source",""===y?"(?:)":y)}catch(g){}return o},z=function(e){e in V||u(V,e,{configurable:!0,get:function(){return k[e]},set:function(t){k[e]=t}})},q=f(k),G=0;q.length>G;)z(q[G++]);A.constructor=V,V.prototype=A,m(i,"RegExp",V)}T("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("23cb"),a=n("07fa"),o=function(e){return function(t,n,o){var s,c=r(t),u=a(c),f=i(o,u);if(e&&n!=n){while(u>f)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((e||f in c)&&c[f]===n)return e||f||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4d90":function(e,t,n){"use strict";var r=n("23e7"),i=n("0ccb").start,a=n("9a0c");r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4dae":function(e,t,n){var r=n("da84"),i=n("23cb"),a=n("07fa"),o=n("8418"),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=a(e),u=i(t,r),f=i(void 0===n?r:n,r),l=s(c(f-u,0)),h=0;u1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("da84"),i=n("0366"),a=n("c65b"),o=n("7b0b"),s=n("9bdd"),c=n("e95a"),u=n("68ee"),f=n("07fa"),l=n("8418"),h=n("9a1f"),d=n("35a1"),p=r.Array;e.exports=function(e){var t=o(e),n=u(this),r=arguments.length,v=r>1?arguments[1]:void 0,m=void 0!==v;m&&(v=i(v,r>2?arguments[2]:void 0));var y,g,b,T,S,_,E=d(t),w=0;if(!E||this==p&&c(E))for(y=f(t),g=n?new this(y):p(y);y>w;w++)_=m?v(t[w],w):t[w],l(g,w,_);else for(T=h(t,E),S=T.next,g=n?new this:[];!(b=a(S,T)).done;w++)_=m?s(T,v,[b.value,w],!0):b.value,l(g,w,_);return g.length=w,g}},"4e16":function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("825a"),o=n("0366"),s=n("4acb"),c=n("2266");r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0);return c(n,(function(e,n,i){if(r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},"4e3e":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),a=n("825a");r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(a(this),e,{IS_ITERATOR:!0})}})},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("59ed"),o=n("7b0b"),s=n("07fa"),c=n("577e"),u=n("d039"),f=n("addb"),l=n("a640"),h=n("04d1"),d=n("d998"),p=n("2d00"),v=n("512c"),m=[],y=i(m.sort),g=i(m.push),b=u((function(){m.sort(void 0)})),T=u((function(){m.sort(null)})),S=l("sort"),_=!u((function(){if(p)return p<70;if(!(h&&h>3)){if(d)return!0;if(v)return v<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;rc(n)?1:-1}};r({target:"Array",proto:!0,forced:E},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(_)return void 0===e?y(t):y(t,e);var n,r,i=[],c=s(t);for(r=0;r0?i(r(e),9007199254740991):0}},"512a":function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n("faa1"),a=n("10d3"),o=function(e){function t(){var t=e.call(this)||this;return t.logGroup="",t.hasLoggingStarted=!1,t.metadataloaded=!1,t.chunks=[],t.stack=[],t.segmentOffset=0,t.last2SimpleBlockVideoTrackTimecode=[0,0],t.last2SimpleBlockAudioTrackTimecode=[0,0],t.lastClusterTimecode=0,t.lastClusterPosition=0,t.timecodeScale=1e6,t.metadataSize=0,t.metadatas=[],t.cues=[],t.firstVideoBlockRead=!1,t.firstAudioBlockRead=!1,t.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null},t.trackTypes=[],t.trackDefaultDuration=[],t.trackCodecDelay=[],t.trackInfo={type:"nothing"},t.ended=!1,t.logging=!1,t.use_duration_every_simpleblock=!1,t.use_webp=!1,t.use_segment_info=!0,t.drop_default_duration=!0,t}return r(t,e),t.prototype.stop=function(){this.ended=!0,this.emit_segment_info();while(this.stack.length)this.stack.pop(),this.logging&&console.groupEnd();this.logging&&this.hasLoggingStarted&&this.logGroup&&console.groupEnd()},t.prototype.emit_segment_info=function(){var e=this.chunks;if(this.chunks=[],this.metadataloaded){if(!this.use_segment_info)return;var t=this.lastClusterTimecode,n=this.duration,r=this.timecodeScale;this.emit("cluster",{timecode:t,data:e}),this.emit("duration",{timecodeScale:r,duration:n})}else{this.metadataloaded=!0,this.metadatas=e;var i=this.trackTypes.indexOf(1),a=this.trackTypes.indexOf(2);if(this.trackInfo=i>=0&&a>=0?{type:"both",trackNumber:i}:i>=0?{type:"video",trackNumber:i}:a>=0?{type:"audio",trackNumber:a}:{type:"nothing"},!this.use_segment_info)return;this.emit("metadata",{data:e,metadataSize:this.metadataSize})}},t.prototype.read=function(e){var t=this,n=!1;if(!this.ended){if("m"===e.type)if(e.isEnd)this.stack.pop();else{var r=this.stack[this.stack.length-1];if(null!=r&&r.level>=e.level){this.stack.pop(),this.logging&&console.groupEnd(),r.dataEnd=e.dataEnd,r.dataSize=e.dataEnd-r.dataStart,r.unknownSize=!1;var i=Object.assign({},r,{name:r.name,type:r.type,isEnd:!0});this.chunks.push(i)}this.stack.push(e)}if("m"===e.type&&"Segment"==e.name)0!=this.segmentOffset&&console.warn("Multiple segments detected!"),this.segmentOffset=e.dataStart,this.emit("segment_offset",this.segmentOffset);else if("b"===e.type&&"SimpleBlock"===e.name){var o=a.ebmlBlock(e.data),s=o.timecode,c=o.trackNumber,u=o.frames;if(1===this.trackTypes[c]){if(!this.firstVideoBlockRead&&(this.firstVideoBlockRead=!0,"both"===this.trackInfo.type||"video"===this.trackInfo.type)){var f=this.lastClusterTimecode+s;this.cues.push({CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:f}),this.emit("cue_info",{CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:f})}this.last2SimpleBlockVideoTrackTimecode=[this.last2SimpleBlockVideoTrackTimecode[1],s]}else if(2===this.trackTypes[c]){if(!this.firstAudioBlockRead&&(this.firstAudioBlockRead=!0,"audio"===this.trackInfo.type)){f=this.lastClusterTimecode+s;this.cues.push({CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:f}),this.emit("cue_info",{CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:this.lastClusterTimecode}),this.emit("cue",{CueTrack:c,CueClusterPosition:this.lastClusterPosition,CueTime:f})}this.last2SimpleBlockAudioTrackTimecode=[this.last2SimpleBlockAudioTrackTimecode[1],s]}this.use_duration_every_simpleblock&&this.emit("duration",{timecodeScale:this.timecodeScale,duration:this.duration}),this.use_webp&&u.forEach((function(e){var n=e.slice(3,6).toString("hex");if("9d012a"===n){var r=a.VP8BitStreamToRiffWebPBuffer(e),i=new Blob([r],{type:"image/webp"}),o=t.duration;t.emit("webp",{currentTime:o,webp:i})}}))}else"m"===e.type&&"Cluster"===e.name&&!1===e.isEnd?(this.firstVideoBlockRead=!1,this.firstAudioBlockRead=!1,this.emit_segment_info(),this.emit("cluster_ptr",e.tagStart),this.lastClusterPosition=e.tagStart):"u"===e.type&&"Timecode"===e.name?this.lastClusterTimecode=e.value:"u"===e.type&&"TimecodeScale"===e.name?this.timecodeScale=e.value:"m"===e.type&&"TrackEntry"===e.name?e.isEnd?(this.trackTypes[this.currentTrack.TrackNumber]=this.currentTrack.TrackType,this.trackDefaultDuration[this.currentTrack.TrackNumber]=this.currentTrack.DefaultDuration,this.trackCodecDelay[this.currentTrack.TrackNumber]=this.currentTrack.CodecDelay):this.currentTrack={TrackNumber:-1,TrackType:-1,DefaultDuration:null,CodecDelay:null}:"u"===e.type&&"TrackType"===e.name?this.currentTrack.TrackType=e.value:"u"===e.type&&"TrackNumber"===e.name?this.currentTrack.TrackNumber=e.value:"u"===e.type&&"CodecDelay"===e.name?this.currentTrack.CodecDelay=e.value:"u"===e.type&&"DefaultDuration"===e.name?this.drop_default_duration?(console.warn("DefaultDuration detected!, remove it"),n=!0):this.currentTrack.DefaultDuration=e.value:"unknown"===e.name&&console.warn(e);!this.metadataloaded&&e.dataEnd>0&&(this.metadataSize=e.dataEnd),n||this.chunks.push(e),this.logging&&this.put(e)}},Object.defineProperty(t.prototype,"duration",{get:function(){if("nothing"===this.trackInfo.type)return console.warn("no video, no audio track"),0;var e=0,t=0,n=0,r=this.trackDefaultDuration[this.trackInfo.trackNumber];if("number"===typeof r)e=r;else if("both"===this.trackInfo.type)if(this.last2SimpleBlockAudioTrackTimecode[1]>this.last2SimpleBlockVideoTrackTimecode[1]){e=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;var i=this.trackCodecDelay[this.trackTypes.indexOf(2)];"number"===typeof i&&(t=i),n=this.last2SimpleBlockAudioTrackTimecode[1]}else{e=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;i=this.trackCodecDelay[this.trackTypes.indexOf(1)];"number"===typeof i&&(t=i),n=this.last2SimpleBlockVideoTrackTimecode[1]}else if("video"===this.trackInfo.type){e=(this.last2SimpleBlockVideoTrackTimecode[1]-this.last2SimpleBlockVideoTrackTimecode[0])*this.timecodeScale;i=this.trackCodecDelay[this.trackInfo.trackNumber];"number"===typeof i&&(t=i),n=this.last2SimpleBlockVideoTrackTimecode[1]}else if("audio"===this.trackInfo.type){e=(this.last2SimpleBlockAudioTrackTimecode[1]-this.last2SimpleBlockAudioTrackTimecode[0])*this.timecodeScale;i=this.trackCodecDelay[this.trackInfo.trackNumber];"number"===typeof i&&(t=i),n=this.last2SimpleBlockAudioTrackTimecode[1]}var a=(this.lastClusterTimecode+n)*this.timecodeScale+e-t,o=a/this.timecodeScale;return Math.floor(o)},enumerable:!0,configurable:!0}),t.prototype.addListener=function(t,n){return e.prototype.addListener.call(this,t,n)},t.prototype.put=function(e){this.hasLoggingStarted||(this.hasLoggingStarted=!0,this.logging&&this.logGroup&&console.groupCollapsed(this.logGroup)),"m"===e.type?e.isEnd?console.groupEnd():console.group(e.name+":"+e.tagStart):"b"===e.type?console.log(e.name,e.type):console.log(e.name,e.tagStart,e.type,e.value)},t}(i.EventEmitter);t.default=o},"512c":function(e,t,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},"51cf":function(e,t,n){var r=n("da84");e.exports=function(e){return r[e].prototype}},"51eb":function(e,t,n){"use strict";var r=n("da84"),i=n("825a"),a=n("485a"),o=r.TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw o("Incorrect hint");return a(this,e)}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),a=n("2e67"),o=n("2444"),s=n("7a77");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||o.adapter;return t(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),a=n("e330"),o=n("d784"),s=n("d039"),c=n("825a"),u=n("1626"),f=n("5926"),l=n("50c4"),h=n("577e"),d=n("1d80"),p=n("8aa5"),v=n("dc4a"),m=n("0cb2"),y=n("14c3"),g=n("b622"),b=g("replace"),T=Math.max,S=Math.min,_=a([].concat),E=a([].push),w=a("".indexOf),k=a("".slice),A=function(e){return void 0===e?e:String(e)},R=function(){return"$0"==="a".replace(/./,"$0")}(),x=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),I=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));o("replace",(function(e,t,n){var a=x?"$":"$0";return[function(e,n){var r=d(this),a=void 0==e?void 0:v(e,b);return a?i(a,e,r,n):i(t,h(r),e,n)},function(e,i){var o=c(this),s=h(e);if("string"==typeof i&&-1===w(i,a)&&-1===w(i,"$<")){var d=n(t,o,s,i);if(d.done)return d.value}var v=u(i);v||(i=h(i));var g=o.global;if(g){var b=o.unicode;o.lastIndex=0}var R=[];while(1){var x=y(o,s);if(null===x)break;if(E(R,x),!g)break;var I=h(x[0]);""===I&&(o.lastIndex=p(s,l(o.lastIndex),b))}for(var C="",P=0,O=0;O=P&&(C+=k(s,P,U)+F,P=U+D.length)}return C+k(s,P)}]}),!I||!R||x)},5327:function(e,t,n){var r=n("23e7"),i=n("1ec1"),a=Math.acosh,o=Math.log,s=Math.sqrt,c=Math.LN2,u=!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0;r({target:"Math",stat:!0,forced:u},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+c:i(e-1+s(e-1)*s(e+1))}})},5333:function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),a=n("1d80"),o=n("577e"),s=n("69f3"),c=n("6547"),u=c.codeAt,f=c.charAt,l="String Iterator",h=s.set,d=s.getterFor(l),p=i((function(e){h(this,{type:l,string:e,index:0})}),"String",(function(){var e,t=d(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=f(n,r),t.index+=e.length,{value:{codePoint:u(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(o(a(this)))}})},5377:function(e,t,n){var r=n("83ab"),i=n("9bf2"),a=n("ad6d"),o=n("d039"),s=RegExp.prototype,c=r&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}));c&&i.f(s,"flags",{configurable:!0,get:a})},"542d":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),a=n("d039"),o=n("408a"),s=i(1..toPrecision),c=a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}));r({target:"Number",proto:!0,forced:c},{toPrecision:function(e){return void 0===e?s(o(this)):s(o(this),e)}})},"54c8":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filterReject,a=n("44d2");r({target:"Array",proto:!0},{filterOut:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("filterOut")},"54ec":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c430"),o=n("825a"),s=n("59ed"),c=n("4acb"),u=n("2266"),f=i.TypeError;r({target:"Map",proto:!0,real:!0,forced:a},{reduce:function(e){var t=o(this),n=c(t),r=arguments.length<2,i=r?void 0:arguments[1];if(s(e),u(n,(function(n,a){r?(r=!1,i=a):i=e(i,a,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw f("Reduce of empty map with no initial value");return i}})},5585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("e1db");t.Decoder=r.default;var i=n("3eb5");t.Encoder=i.default;var a=n("512a");t.Reader=a.default;var o=n("10d3");t.tools=o;var s=n("67c0").version;t.version=s},"567a":function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("825a"),o=n("4acb"),s=n("2266");r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(o(a(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.20.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var r=n("d066"),i=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?c(t,n(e)):t}},"577e":function(e,t,n){var r=n("da84"),i=n("f5df"),a=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return a(e)}},"583b":function(e,t,n){var r=n("23e7"),i=n("eac5"),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&a(e)<=9007199254740991}})},5860:function(e,t,n){var r=n("c65b");e.exports=function(e){return r(Set.prototype.values,e)}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("e330"),i=n("1d80"),a=n("577e"),o=n("5899"),s=r("".replace),c="["+o+"]",u=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(e){return function(t){var n=a(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,f,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},"58fc":function(e,t,n){var r=n("23e7"),i=n("be8c");r({target:"Math",stat:!0},{scale:i})},5926:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?r:n)(t)}},5980:function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){(function(){var t=e,n=t.lib,r=n.Base,i=t.enc,a=i.Utf8,o=t.algo;o.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,u=0;ue.length?-1:""===t?n:T(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,o,h,p,k,A,R,x=s(this),I=0,C=0,P="";if(null!=e){if(n=u(e),n&&(r=f(s("flags"in y?e.flags:b(e))),!~T(r,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(i=l(e,m),i)return a(i,e,x,t);if(v&&n)return S(f(x),e,t)}o=f(x),h=f(e),p=c(t),p||(t=f(t)),k=h.length,A=E(1,k),I=w(o,h,0);while(-1!==I)R=p?f(t(h,I,o)):d(h,o,I,[],void 0,t),P+=_(o,C,I)+R,C=I+k,I=w(o,h,I+A);return C1?arguments[1]:void 0),t}})},"5ded":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d039"),o=n("68ee"),s=n("8418"),c=i.Array,u=a((function(){function e(){}return!(c.of.call(e)instanceof e)}));r({target:"Array",stat:!0,forced:u},{of:function(){var e=0,t=arguments.length,n=new(o(this)?this:c)(t);while(t>e)s(n,e,arguments[e++]);return n.length=t,n}})},"5dfc":function(e,t,n){"use strict";var r=n("ebb5"),i=n("f36a"),a=n("ad02"),o=r.aTypedArray,s=r.exportTypedArrayMethod,c=r.TYPED_ARRAY_CONSTRUCTOR;s("toSpliced",(function(e,t){return a(o(this),this[c],i(arguments))}))},"5e77":function(e,t,n){var r=n("83ab"),i=n("1a2d"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(e){return s(a(this),e)}))},"5fb2":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),a=2147483647,o=36,s=1,c=26,u=38,f=700,l=72,h=128,d="-",p=/[^\0-\u007E]/,v=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",y=o-s,g=r.RangeError,b=i(v.exec),T=Math.floor,S=String.fromCharCode,_=i("".charCodeAt),E=i([].join),w=i([].push),k=i("".replace),A=i("".split),R=i("".toLowerCase),x=function(e){var t=[],n=0,r=e.length;while(n=55296&&i<=56319&&n>1,e+=T(e/t);while(e>y*c>>1)e=T(e/y),r+=o;return T(r+(y+1)*e/(e+u))},P=function(e){var t=[];e=x(e);var n,r,i=e.length,u=h,f=0,p=l;for(n=0;n=u&&rT((a-f)/_))throw g(m);for(f+=(b-u)*_,u=b,n=0;na)throw g(m);if(r==u){var k=f,A=o;while(1){var R=A<=p?s:A>=p+c?c:A-p;if(ko){var v,m=l(arguments[o++]),y=h?p(s(m),h(m)):s(m),g=y.length,b=0;while(g>b)v=y[b++],r&&!a(d,m,v)||(n[v]=m[v])}return n}:h},"621a":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),a=n("83ab"),o=n("a981"),s=n("5e77"),c=n("9112"),u=n("e2cc"),f=n("d039"),l=n("19aa"),h=n("5926"),d=n("50c4"),p=n("0b25"),v=n("77a7"),m=n("e163"),y=n("d2bb"),g=n("241c").f,b=n("9bf2").f,T=n("81d5"),S=n("4dae"),_=n("d44e"),E=n("69f3"),w=s.PROPER,k=s.CONFIGURABLE,A=E.get,R=E.set,x="ArrayBuffer",I="DataView",C="prototype",P="Wrong length",O="Wrong index",D=r[x],U=D,M=U&&U[C],B=r[I],N=B&&B[C],L=Object.prototype,F=r.Array,j=r.RangeError,W=i(T),H=i([].reverse),V=v.pack,z=v.unpack,q=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return V(e,23,4)},Q=function(e){return V(e,52,8)},$=function(e,t){b(e[C],t,{get:function(){return A(this)[t]}})},Z=function(e,t,n,r){var i=p(n),a=A(e);if(i+t>a.byteLength)throw j(O);var o=A(a.buffer).bytes,s=i+a.byteOffset,c=S(o,s,s+t);return r?c:H(c)},J=function(e,t,n,r,i,a){var o=p(n),s=A(e);if(o+t>s.byteLength)throw j(O);for(var c=A(s.buffer).bytes,u=o+s.byteOffset,f=r(+i),l=0;lre;)(te=ne[re++])in U||c(U,te,D[te]);M.constructor=U}y&&m(N)!==L&&y(N,L);var ie=new B(new U(2)),ae=i(N.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(N,{setInt8:function(e,t){ae(this,e,t<<24>>24)},setUint8:function(e,t){ae(this,e,t<<24>>24)}},{unsafe:!0})}else U=function(e){l(this,M);var t=p(e);R(this,{bytes:W(F(t),0),byteLength:t}),a||(this.byteLength=t)},M=U[C],B=function(e,t,n){l(this,N),l(e,M);var r=A(e).byteLength,i=h(t);if(i<0||i>r)throw j("Wrong offset");if(n=void 0===n?r-i:d(n),i+n>r)throw j(P);R(this,{buffer:e,byteLength:n,byteOffset:i}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},N=B[C],a&&($(U,"byteLength"),$(B,"buffer"),$(B,"byteLength"),$(B,"byteOffset")),u(N,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return K(Z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return K(Z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return z(Z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return z(Z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,q,t)},setUint8:function(e,t){J(this,1,e,q,t)},setInt16:function(e,t){J(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,X,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,Q,t,arguments.length>2?arguments[2]:void 0)}});_(U,x),_(B,I),e.exports={ArrayBuffer:U,DataView:B}},6380:function(e,t,n){var r=n("23e7"),i=n("783c"),a=n("825a"),o=i.toKey,s=i.getMap,c=i.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=s(a(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var i=c.get(t);return i["delete"](n),!!i.size||c["delete"](t)}})},"63fa":function(e,t,n){"use strict";var r=n("2ba4"),i=n("825a"),a=n("7c73"),o=n("dc4a"),s=n("e2cc"),c=n("69f3"),u=n("d066"),f=n("a91f"),l=u("Promise"),h="AsyncFromSyncIterator",d=c.set,p=c.getterFor(h),v=function(e,t,n){var r=e.done;l.resolve(e.value).then((function(e){t({done:r,value:e})}),n)},m=function(e){d(this,{type:h,iterator:i(e),next:e.next})};m.prototype=s(a(f),{next:function(e){var t=p(this),n=!!arguments.length;return new l((function(a,o){var s=i(r(t.next,t.iterator,n?[e]:[]));v(s,a,o)}))},return:function(e){var t=p(this).iterator,n=!!arguments.length;return new l((function(a,s){var c=o(t,"return");if(void 0===c)return a({done:!0,value:e});var u=i(r(c,t,n?[e]:[]));v(u,a,s)}))},throw:function(e){var t=p(this).iterator,n=!!arguments.length;return new l((function(a,s){var c=o(t,"throw");if(void 0===c)return s(e);var u=i(r(c,t,n?[e]:[]));v(u,a,s)}))}}),e.exports=m},"649e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").some,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("some",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"64e5":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),a=n("d039"),o=n("0ccb").start,s=r.RangeError,c=Math.abs,u=Date.prototype,f=u.toISOString,l=i(u.getTime),h=i(u.getUTCDate),d=i(u.getUTCFullYear),p=i(u.getUTCHours),v=i(u.getUTCMilliseconds),m=i(u.getUTCMinutes),y=i(u.getUTCMonth),g=i(u.getUTCSeconds);e.exports=a((function(){return"0385-07-25T07:06:39.999Z"!=f.call(new Date(-50000000000001))}))||!a((function(){f.call(new Date(NaN))}))?function(){if(!isFinite(l(this)))throw s("Invalid time value");var e=this,t=d(e),n=v(e),r=t<0?"-":t>9999?"+":"";return r+o(c(t),r?6:4,0)+"-"+o(y(e)+1,2,0)+"-"+o(h(e),2,0)+"T"+o(p(e),2,0)+":"+o(m(e),2,0)+":"+o(g(e),2,0)+"."+o(n,3,0)+"Z"}:f},6547:function(e,t,n){var r=n("e330"),i=n("5926"),a=n("577e"),o=n("1d80"),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),f=function(e){return function(t,n){var r,f,l=a(o(t)),h=i(n),d=l.length;return h<0||h>=d?e?"":void 0:(r=c(l,h),r<55296||r>56319||h+1===d||(f=c(l,h+1))<56320||f>57343?e?s(l,h):r:e?u(l,h,h+2):f-56320+(r-55296<<10)+65536)}};e.exports={codeAt:f(!1),charAt:f(!0)}},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),a=n("e2cc"),o=n("0366"),s=n("19aa"),c=n("2266"),u=n("7dd0"),f=n("2626"),l=n("83ab"),h=n("f183").fastKey,d=n("69f3"),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var f=e((function(e,r){s(e,d),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),l||(e.size=0),void 0!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),d=f.prototype,m=v(t),y=function(e,t,n){var r,i,a=m(e),o=g(e,t);return o?o.value=n:(a.last=o={index:i=h(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),l?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},g=function(e,t){var n,r=m(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(d,{clear:function(){var e=this,t=m(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,l?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),r=g(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),l?n.size--:t.size--}return!!r},forEach:function(e){var t,n=m(this),r=o(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!g(this,e)}}),a(d,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),l&&r(d,"size",{get:function(){return m(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(t)}}},"658e":function(e,t,n){"use strict";var r=n("c430"),i=n("23e7"),a=n("d066"),o=n("c65b"),s=n("59ed"),c=n("825a"),u=n("4840"),f=n("2266");i({target:"Set",proto:!0,real:!0,forced:r},{intersection:function(e){var t=c(this),n=new(u(t,a("Set"))),r=s(t.has),i=s(n.add);return f(e,(function(e){o(r,t,e)&&o(i,n,e)})),n}})},"65f0":function(e,t,n){var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"660e":function(e,t,n){"use strict";var r=n("23e7"),i=n("2ba4"),a=n("c65b"),o=n("825a"),s=n("f8cd"),c=n("d195"),u=c((function(e,t){var n,r,o=this.iterator;return this.remaining--?i(this.next,o,t):(r={done:!0,value:void 0},this.done=!0,n=o["return"],void 0!==n?e.resolve(a(n,o)).then((function(){return r})):r)}));r({target:"AsyncIterator",proto:!0,real:!0},{take:function(e){return new u({iterator:o(this),remaining:s(e)})}})},"664f":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),a=n("af03");r({target:"String",proto:!0,forced:a("sup")},{sup:function(){return i(this,"sup","","")}})},"66c1":function(e,t,n){var r=n("23e7"),i=n("783c"),a=n("825a"),o=n("e163"),s=i.has,c=i.get,u=i.toKey,f=function(e,t,n){var r=s(e,t,n);if(r)return c(e,t,n);var i=o(t);return null!==i?f(e,i,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return f(e,a(t),n)}})},"66c3":function(e,t,n){var r=n("8104"),i=1,a=3,o=2;function s(e,t){if(!t)return[e.nextBuffer()];var n,r,s=[],c=e.nextUInt8()+1;if(t===o){if(e.length%c!==0)throw new Error("Fixed-Size Lacing Error");for(r=e.length/c,n=0;n>1;return t.frames=s(n,a),t}},6720:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("e330"),o=n("59ed"),s=n("fc6a"),c=n("dfb9"),u=n("51cf"),f=n("44d2"),l=i.Array,h=a(u("Array").sort);r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=s(this),n=c(l,t);return h(n,e)}}),f("toSorted")},6789:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("7d72");r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:a})},"67c0":function(e){e.exports=JSON.parse('{"_args":[["ts-ebml@2.0.2","E:\\\\workspace\\\\tumsPlayer\\\\tums-player-forLocal"]],"_from":"ts-ebml@2.0.2","_id":"ts-ebml@2.0.2","_inBundle":false,"_integrity":"sha512-V/HdlCn3FITQrFHQlVE02XtfMiRLab2QB/YOCfkbJWqiFYG/j5v7gHKV+wem6g0PD6/uxXs5oxMQfDXILmts/Q==","_location":"/ts-ebml","_phantomChildren":{"base64-js":"1.5.1","ieee754":"1.2.1"},"_requested":{"type":"version","registry":true,"raw":"ts-ebml@2.0.2","name":"ts-ebml","escapedName":"ts-ebml","rawSpec":"2.0.2","saveSpec":null,"fetchSpec":"2.0.2"},"_requiredBy":["/fix-webm-metainfo"],"_resolved":"http://rdsource.tp-link.com.cn:8081/repository/npm-official/ts-ebml/-/ts-ebml-2.0.2.tgz","_spec":"2.0.2","_where":"E:\\\\workspace\\\\tumsPlayer\\\\tums-player-forLocal","author":{"name":"legokichi duckscallion"},"bin":{"ts-ebml":"./lib/cli.js"},"bugs":{"url":"https://github.com/legokichi/ts-ebml/issues"},"dependencies":{"buffer":"^5.0.7","commander":"^2.11.0","ebml":"^2.2.1","ebml-block":"^1.1.0","events":"^1.1.1","int64-buffer":"^0.1.9","matroska":"^2.2.3"},"description":"ebml decoder and encoder","devDependencies":{"@types/commander":"^2.9.1","@types/qunit":"^2.0.31","browserify":"^13.1.0","empower":"^1.2.3","espower-cli":"^1.1.0","power-assert":"^1.4.4","power-assert-formatter":"^1.4.1","qunit-tap":"^1.5.1","qunitjs":"^2.4.0","tslint":"^3.15.1","typedoc":"^0.5.3","typescript":"^2.4.2","watchify":"^3.7.0"},"homepage":"https://github.com/legokichi/ts-ebml#readme","keywords":["ebml","webm","mkv","matrosika","webp"],"license":"MIT","main":"./lib/index.js","name":"ts-ebml","repository":{"type":"git","url":"git+https://github.com/legokichi/ts-ebml.git"},"scripts":{"browserify":"browserify lib/index.js --standalone EBML -o dist/EBML.js","build":"npm run clean && tsc -p .; npm run browserify","check":"tsc -w --noEmit -p ./","clean":"rm -rf lib/* dist/* test/*.js; mkdir -p dist","doc":"typedoc --mode modules --out doc --disableOutputCheck","example":"tsc; browserify lib/example_seekable.js -o test/example_seekable.js","examples":"tsc; for file in `find lib -name \'example_*.js\' -type f -printf \'%f\\\\n\'`; do browserify lib/$file -o test/$file; done","examples_bsd":"tsc; for file in `find lib -name \'example_*.js\' -type f -print`; do browserify lib/$(basename $file) -o test/$(basename $file); done","init":"npm run update; npm run mkdir; npm run build","lint":"tslint -c ./tslint.json --project ./tsconfig.json --type-check","mkdir":"mkdir lib dist 2>/dev/null","reset":"rm -rf node_modules","setup":"npm install -g http-server;","start":"http-server . -s & tsc -w -p .& watchify lib/example_seekable.js -o test/example_seekable.js","stop":"killall -- node */tsc -w -p","test":"tsc; espower lib/test.js > lib/test.tmp; mv -f lib/test.tmp lib/test.js; browserify lib/test.js -o test/test.js","update":"npm run reset; npm update","watchify":"watchify lib/index.js --standalone EBML -o dist/EBMl.js -v"},"typings":"./lib/index.d.ts","version":"2.0.2"}')},6899:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").filterReject,a=n("1448"),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("filterReject",(function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},"68ee":function(e,t,n){var r=n("e330"),i=n("d039"),a=n("1626"),o=n("f5df"),s=n("d066"),c=n("8925"),u=function(){},f=[],l=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.exec(u),v=function(e){if(!a(e))return!1;try{return l(u,f,e),!0}catch(t){return!1}},m=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,c(e))}catch(t){return!0}};m.sham=!0,e.exports=!l||i((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?m:v},"69f3":function(e,t,n){var r,i,a,o=n("7f9a"),s=n("da84"),c=n("e330"),u=n("861d"),f=n("9112"),l=n("1a2d"),h=n("c6cd"),d=n("f772"),p=n("d012"),v="Object already initialized",m=s.TypeError,y=s.WeakMap,g=function(e){return a(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(o||h.state){var T=h.state||(h.state=new y),S=c(T.get),_=c(T.has),E=c(T.set);r=function(e,t){if(_(T,e))throw new m(v);return t.facade=e,E(T,e,t),t},i=function(e){return S(T,e)||{}},a=function(e){return _(T,e)}}else{var w=d("state");p[w]=!0,r=function(e,t){if(l(e,w))throw new m(v);return t.facade=e,f(e,w,t),t},i=function(e){return l(e,w)?e[w]:{}},a=function(e){return l(e,w)}}e.exports={set:r,get:i,has:a,enforce:g,getterFor:b}},"6a86":function(e,t,n){"use strict";var r=n("e330"),i=n("ebb5"),a=n("4673"),o=n("1448"),s=i.aTypedArray,c=i.exportTypedArrayMethod,u=r(a);c("uniqueBy",(function(e){return o(this,u(s(this),e))}))},"6a90":function(e,t,n){var r=n("746f");r("dispose")},"6b93":function(e,t,n){var r=n("23e7"),i=n("867a");r({target:"Math",stat:!0},{log10:i})},"6b9e":function(e,t,n){var r=n("746f");r("search")},"6b9f":function(e,t,n){var r=n("23e7");r({target:"Math",stat:!0},{umulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>>16,c=i>>>16,u=(s*o>>>0)+(a*o>>>16);return s*c+(u>>>16)+((a*c>>>0)+(u&n)>>>16)}})},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0},{globalThis:i})},"6d08":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("38ba"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.CipherParams,a=n.enc,o=a.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}}}(),e.format.Hex}))},"6d54":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d429"),o=n("fc6a"),s=i.Array;r({target:"Array",proto:!0},{with:function(e,t){return a(o(this),s,e,t)}})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("e330"),o=n("94ca"),s=n("6eeb"),c=n("f183"),u=n("2266"),f=n("19aa"),l=n("1626"),h=n("861d"),d=n("d039"),p=n("1c7e"),v=n("d44e"),m=n("7156");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),b=y?"set":"add",T=i[e],S=T&&T.prototype,_=T,E={},w=function(e){var t=a(S[e]);s(S,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return g&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},k=o(e,!l(T)||!(g||S.forEach&&!d((function(){(new T).entries().next()}))));if(k)_=n.getConstructor(t,e,y,b),c.enable();else if(o(e,!0)){var A=new _,R=A[b](g?{}:-0,1)!=A,x=d((function(){A.has(1)})),I=p((function(e){new T(e)})),C=!g&&d((function(){var e=new T,t=5;while(t--)e[b](t,t);return!e.has(-0)}));I||(_=t((function(e,t){f(e,S);var n=m(new T,e,_);return void 0!=t&&u(t,n[b],{that:n,AS_ENTRIES:y}),n})),_.prototype=S,S.constructor=_),(x||C)&&(w("delete"),w("has"),y&&w("get")),(C||R)&&w(b),g&&S.clear&&delete S.clear}return E[e]=_,r({global:!0,forced:_!=T},E),v(_,e),g||n.setStrong(_,e,y),_}},"6dd7":function(e,t,n){var r=n("23e7"),i=n("783c"),a=n("825a"),o=n("e163"),s=i.has,c=i.toKey,u=function(e,t,n){var r=s(e,t,n);if(r)return!0;var i=o(t);return null!==i&&u(e,i,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return u(e,a(t),n)}})},"6eba":function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("e330"),o=i.Date,s=a(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},"6eeb":function(e,t,n){var r=n("da84"),i=n("1626"),a=n("1a2d"),o=n("9112"),s=n("ce4e"),c=n("8925"),u=n("69f3"),f=n("5e77").CONFIGURABLE,l=u.get,h=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,c){var u,l=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet,m=c&&void 0!==c.name?c.name:t;i(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||f&&n.name!==m)&&o(n,"name",m),u=h(n),u.source||(u.source=d.join("string"==typeof m?m:""))),e!==r?(l?!v&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||c(this)}))},"6f53":function(e,t,n){var r=n("83ab"),i=n("e330"),a=n("df75"),o=n("fc6a"),s=n("d1e7").f,c=i(s),u=i([].push),f=function(e){return function(t){var n,i=o(t),s=a(i),f=s.length,l=0,h=[];while(f>l)n=s[l++],r&&!c(i,n)||u(h,e?[n,i[n]]:i[n]);return h}};e.exports={entries:f(!0),values:f(!1)}},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),a=n("057f").f,o=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},"70e3":function(e,t,n){var r=n("23e7"),i=Math.min,a=Math.max;r({target:"Math",stat:!0},{clamp:function(e,t,n){return i(n,a(t,e))}})},7156:function(e,t,n){var r=n("1626"),i=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},"71f8":function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("0a0d");r({target:"WeakMap",proto:!0,real:!0,forced:i},{deleteAll:a})},7245:function(e,t,n){var r=n("23e7"),i=n("2ba4"),a=n("825a"),o=n("7b0b"),s=n("3a9b"),c=n("a91f"),u=n("d195"),f=n("a1b3"),l=n("9a1f"),h=n("35a1"),d=n("dc4a"),p=n("b622"),v=n("63fa"),m=p("asyncIterator"),y=u((function(e,t){return a(i(this.next,this.iterator,t))}),!0);r({target:"AsyncIterator",stat:!0},{from:function(e){var t,n=o(e),r=d(n,m);return r&&(t=f(n,r),s(c,t))?t:void 0===t&&(r=h(n),r)?new v(l(n,r)):new y({iterator:void 0!==t?t:n})}})},"72ba":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("fc6a"),o=n("f36a"),s=n("ad02"),c=n("44d2"),u=i.Array;r({target:"Array",proto:!0},{toSpliced:function(e,t){return s(a(this),u,o(arguments))}}),c("toSpliced")},"72d0":function(e,t,n){"use strict";var r=n("c430"),i=n("23e7"),a=n("d066"),o=n("0366"),s=n("c65b"),c=n("59ed"),u=n("825a"),f=n("4840"),l=n("5860"),h=n("2266");i({target:"Set",proto:!0,real:!0,forced:r},{map:function(e){var t=u(this),n=l(t),r=o(e,arguments.length>1?arguments[1]:void 0),i=new(f(t,a("Set"))),d=c(i.add);return h(n,(function(e){s(d,i,r(e,e,t))}),{IS_ITERATOR:!0}),i}})},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,i=n("d039"),a=n("da84"),o=n("e330"),s=a.Uint8Array,c=s&&s.prototype||{},u=[].toString,f=o([].join);i((function(){u.call({})}))&&(u=function(){return f(this)});var l=c.toString!=u;r("toString",u,l)},"72fe":function(e,t,n){(function(t,r){e.exports=r(n("21bf"))})(0,(function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],v=e[t+4],m=e[t+5],y=e[t+6],g=e[t+7],b=e[t+8],T=e[t+9],S=e[t+10],_=e[t+11],E=e[t+12],w=e[t+13],k=e[t+14],A=e[t+15],R=a[0],x=a[1],I=a[2],C=a[3];R=u(R,x,I,C,o,7,s[0]),C=u(C,R,x,I,c,12,s[1]),I=u(I,C,R,x,d,17,s[2]),x=u(x,I,C,R,p,22,s[3]),R=u(R,x,I,C,v,7,s[4]),C=u(C,R,x,I,m,12,s[5]),I=u(I,C,R,x,y,17,s[6]),x=u(x,I,C,R,g,22,s[7]),R=u(R,x,I,C,b,7,s[8]),C=u(C,R,x,I,T,12,s[9]),I=u(I,C,R,x,S,17,s[10]),x=u(x,I,C,R,_,22,s[11]),R=u(R,x,I,C,E,7,s[12]),C=u(C,R,x,I,w,12,s[13]),I=u(I,C,R,x,k,17,s[14]),x=u(x,I,C,R,A,22,s[15]),R=f(R,x,I,C,c,5,s[16]),C=f(C,R,x,I,y,9,s[17]),I=f(I,C,R,x,_,14,s[18]),x=f(x,I,C,R,o,20,s[19]),R=f(R,x,I,C,m,5,s[20]),C=f(C,R,x,I,S,9,s[21]),I=f(I,C,R,x,A,14,s[22]),x=f(x,I,C,R,v,20,s[23]),R=f(R,x,I,C,T,5,s[24]),C=f(C,R,x,I,k,9,s[25]),I=f(I,C,R,x,p,14,s[26]),x=f(x,I,C,R,b,20,s[27]),R=f(R,x,I,C,w,5,s[28]),C=f(C,R,x,I,d,9,s[29]),I=f(I,C,R,x,g,14,s[30]),x=f(x,I,C,R,E,20,s[31]),R=l(R,x,I,C,m,4,s[32]),C=l(C,R,x,I,b,11,s[33]),I=l(I,C,R,x,_,16,s[34]),x=l(x,I,C,R,k,23,s[35]),R=l(R,x,I,C,c,4,s[36]),C=l(C,R,x,I,v,11,s[37]),I=l(I,C,R,x,g,16,s[38]),x=l(x,I,C,R,S,23,s[39]),R=l(R,x,I,C,w,4,s[40]),C=l(C,R,x,I,o,11,s[41]),I=l(I,C,R,x,p,16,s[42]),x=l(x,I,C,R,y,23,s[43]),R=l(R,x,I,C,T,4,s[44]),C=l(C,R,x,I,E,11,s[45]),I=l(I,C,R,x,A,16,s[46]),x=l(x,I,C,R,d,23,s[47]),R=h(R,x,I,C,o,6,s[48]),C=h(C,R,x,I,g,10,s[49]),I=h(I,C,R,x,k,15,s[50]),x=h(x,I,C,R,m,21,s[51]),R=h(R,x,I,C,E,6,s[52]),C=h(C,R,x,I,p,10,s[53]),I=h(I,C,R,x,S,15,s[54]),x=h(x,I,C,R,c,21,s[55]),R=h(R,x,I,C,b,6,s[56]),C=h(C,R,x,I,A,10,s[57]),I=h(I,C,R,x,y,15,s[58]),x=h(x,I,C,R,w,21,s[59]),R=h(R,x,I,C,v,6,s[60]),C=h(C,R,x,I,_,10,s[61]),I=h(I,C,R,x,d,15,s[62]),x=h(x,I,C,R,T,21,s[63]),a[0]=a[0]+R|0,a[1]=a[1]+x|0,a[2]=a[2]+I|0,a[3]=a[3]+C|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function l(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function h(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)}(Math),e.MD5}))},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("c65b"),a=n("81d5"),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("fill",(function(e){var t=arguments.length;return i(a,o(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},"73d9":function(e,t,n){var r=n("44d2");r("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("1a2d"),a=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},"74d4":function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),a=n("825a"),o=n("0366"),s=n("5860"),c=n("2266");r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=a(this),n=s(t),r=o(e,arguments.length>1?arguments[1]:void 0);return!c(n,(function(e,n){if(!r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("83ab"),s=n("8aa7"),c=n("ebb5"),u=n("621a"),f=n("19aa"),l=n("5c6c"),h=n("9112"),d=n("eac5"),p=n("50c4"),v=n("0b25"),m=n("182d"),y=n("a04b"),g=n("1a2d"),b=n("f5df"),T=n("861d"),S=n("d9b5"),_=n("7c73"),E=n("3a9b"),w=n("d2bb"),k=n("241c").f,A=n("a078"),R=n("b727").forEach,x=n("2626"),I=n("9bf2"),C=n("06cf"),P=n("69f3"),O=n("7156"),D=P.get,U=P.set,M=I.f,B=C.f,N=Math.round,L=i.RangeError,F=u.ArrayBuffer,j=F.prototype,W=u.DataView,H=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_CONSTRUCTOR,z=c.TYPED_ARRAY_TAG,q=c.TypedArray,G=c.TypedArrayPrototype,Y=c.aTypedArrayConstructor,K=c.isTypedArray,X="BYTES_PER_ELEMENT",Q="Wrong length",$=function(e,t){Y(e);var n=0,r=t.length,i=new e(r);while(r>n)i[n]=t[n++];return i},Z=function(e,t){M(e,t,{get:function(){return D(this)[t]}})},J=function(e){var t;return E(j,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return K(e)&&!S(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?l(2,e[t]):B(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&T(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?M(e,t,n):(e[t]=n.value,e)};o?(H||(C.f=te,I.f=ne,Z(G,"buffer"),Z(G,"byteOffset"),Z(G,"byteLength"),Z(G,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",u="get"+e,l="set"+e,d=i[c],y=d,g=y&&y.prototype,b={},S=function(e,t){var n=D(e);return n.view[u](t*o+n.byteOffset,!0)},E=function(e,t,r){var i=D(e);n&&(r=(r=N(r))<0?0:r>255?255:255&r),i.view[l](t*o+i.byteOffset,r,!0)},I=function(e,t){M(e,t,{get:function(){return S(this,t)},set:function(e){return E(this,t,e)},enumerable:!0})};H?s&&(y=t((function(e,t,n,r){return f(e,g),O(function(){return T(t)?J(t)?void 0!==r?new d(t,m(n,o),r):void 0!==n?new d(t,m(n,o)):new d(t):K(t)?$(y,t):a(A,y,t):new d(v(t))}(),e,y)})),w&&w(y,q),R(k(d),(function(e){e in y||h(y,e,d[e])})),y.prototype=g):(y=t((function(e,t,n,r){f(e,g);var i,s,c,u=0,l=0;if(T(t)){if(!J(t))return K(t)?$(y,t):a(A,y,t);i=t,l=m(n,o);var h=t.byteLength;if(void 0===r){if(h%o)throw L(Q);if(s=h-l,s<0)throw L(Q)}else if(s=p(r)*o,s+l>h)throw L(Q);c=s/o}else c=v(t),s=c*o,i=new F(s);U(e,{buffer:i,byteOffset:l,byteLength:s,length:c,view:new W(i)});while(u>1,m=23===t?o(2,-24)-o(2,-77):0,y=e<0||0===e&&1/e<0?1:0,g=0;e=a(e),e!=e||e===1/0?(f=e!=e?1:0,r=p):(r=s(c(e)/u),l=o(2,-r),e*l<1&&(r--,l*=2),e+=r+v>=1?m/l:m*o(2,1-v),e*l>=2&&(r++,l/=2),r+v>=p?(f=0,r=p):r+v>=1?(f=(e*l-1)*o(2,t),r+=v):(f=e*o(2,v-1)*o(2,t),r=0));while(t>=8)h[g++]=255&f,f/=256,t-=8;r=r<0)h[g++]=255&r,r/=256,d-=8;return h[--g]|=128*y,h},l=function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<>1,c=i-7,u=r-1,f=e[u--],l=127&f;f>>=7;while(c>0)l=256*l+e[u--],c-=8;n=l&(1<<-c)-1,l>>=-c,c+=t;while(c>0)n=256*n+e[u--],c-=8;if(0===l)l=1-s;else{if(l===a)return n?NaN:f?-1/0:1/0;n+=o(2,t),l-=s}return(f?-1:1)*n*o(2,l-t)};e.exports={pack:f,unpack:l}},"77d9":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLastIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findLastIndex",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"783c":function(e,t,n){n("4ec9"),n("10d1");var r=n("d066"),i=n("e330"),a=n("5692"),o=r("Map"),s=r("WeakMap"),c=i([].push),u=a("metadata"),f=u.store||(u.store=new s),l=function(e,t,n){var r=f.get(e);if(!r){if(!n)return;f.set(e,r=new o)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new o)}return i},h=function(e,t,n){var r=l(t,n,!1);return void 0!==r&&r.has(e)},d=function(e,t,n){var r=l(t,n,!1);return void 0===r?void 0:r.get(e)},p=function(e,t,n,r){l(n,r,!0).set(e,t)},v=function(e,t){var n=l(e,t,!1),r=[];return n&&n.forEach((function(e,t){c(r,t)})),r},m=function(e){return void 0===e||"symbol"==typeof e?e:String(e)};e.exports={store:f,getMap:l,has:h,get:d,set:p,keys:v,toKey:m}},"785a":function(e,t,n){var r=n("cc12"),i=r("span").classList,a=i&&i.constructor&&i.constructor.prototype;e.exports=a===Object.prototype?void 0:a},7898:function(e,t,n){var r=n("23e7"),i=n("8eb5"),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},"78ed":function(e,t,n){var r=n("23e7");r({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,i=+t,a=r&n,o=i&n,s=r>>16,c=i>>16,u=(s*o>>>0)+(a*o>>>16);return s*c+(u>>16)+((a*c>>>0)+(u&n)>>16)}})},"79a8":function(e,t,n){var r=n("23e7"),i=Math.asinh,a=Math.log,o=Math.sqrt;function s(e){return isFinite(e=+e)&&0!=e?e<0?-s(-e):a(e+o(e*e+1)):e}r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:s})},"7a5b":function(e,t,n){var r=n("23e7"),i=n("68ee");r({target:"Function",stat:!0},{isConstructor:i})},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7a82":function(e,t,n){var r=n("23e7"),i=n("83ab"),a=n("9bf2").f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var r=n("da84"),i=n("1d80"),a=r.Object;e.exports=function(e){return a(i(e))}},"7b8b":function(e,t,n){"use strict";var r=n("23e7"),i=n("2ba4"),a=n("59ed"),o=n("825a"),s=n("d195"),c=s((function(e,t){var n=this,r=n.mapper;return e.resolve(o(i(n.next,n.iterator,t))).then((function(t){return o(t).done?(n.done=!0,{done:!0,value:void 0}):e.resolve(r(t.value)).then((function(e){return{done:!1,value:e}}))}))}));r({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new c({iterator:o(this),mapper:a(e)})}})},"7bbc":function(e,t,n){(function(t,r,i){e.exports=r(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.SHA1,s=a.HMAC,c=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),c=a.words,u=o.words,f=n.keySize,l=n.iterations;while(c.length",h="<",d="prototype",p="script",v=f("IE_PROTO"),m=function(){},y=function(e){return h+p+l+e+h+"/"+p+l},g=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},T=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}T="undefined"!=typeof document?document.domain&&r?g(r):b():g(r);var e=o.length;while(e--)delete T[d][o[e]];return T()};s[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=i(e),n=new m,m[d]=null,n[v]=e):n=T(),void 0===t?n:a.f(n,t)}},"7cdf":function(e,t,n){"use strict";var r=n("23e7"),i=n("6547").charAt,a=n("d039"),o=n("1d80"),s=n("5926"),c=n("577e"),u=a((function(){return"𠮷"!=="𠮷".at(-2)}));r({target:"String",proto:!0,forced:u},{at:function(e){var t=c(o(this)),n=t.length,r=s(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:i(t,a)}})},"7d72":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),a=n("825a");e.exports=function(){for(var e=a(this),t=i(e.add),n=0,o=arguments.length;n1?arguments[1]:void 0)}}),a(o)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("c430"),o=n("5e77"),s=n("1626"),c=n("9ed3"),u=n("e163"),f=n("d2bb"),l=n("d44e"),h=n("9112"),d=n("6eeb"),p=n("b622"),v=n("3f8c"),m=n("ae93"),y=o.PROPER,g=o.CONFIGURABLE,b=m.IteratorPrototype,T=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),_="keys",E="values",w="entries",k=function(){return this};e.exports=function(e,t,n,o,p,m,A){c(n,t,o);var R,x,I,C=function(e){if(e===p&&M)return M;if(!T&&e in D)return D[e];switch(e){case _:return function(){return new n(this,e)};case E:return function(){return new n(this,e)};case w:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",O=!1,D=e.prototype,U=D[S]||D["@@iterator"]||p&&D[p],M=!T&&U||C(p),B="Array"==t&&D.entries||U;if(B&&(R=u(B.call(new e)),R!==Object.prototype&&R.next&&(a||u(R)===b||(f?f(R,b):s(R[S])||d(R,S,k)),l(R,P,!0,!0),a&&(v[P]=k))),y&&p==E&&U&&U.name!==E&&(!a&&g?h(D,"name",E):(O=!0,M=function(){return i(U,this)})),p)if(x={values:C(E),keys:m?M:C(_),entries:C(w)},A)for(I in x)(T||O||!(I in D))&&d(D,I,x[I]);else r({target:t,proto:!0,forced:T||O},x);return a&&!A||D[S]===M||d(D,S,M,{name:p}),v[t]=M,x}},"7e12":function(e,t,n){var r=n("da84"),i=n("d039"),a=n("e330"),o=n("577e"),s=n("58a8").trim,c=n("5899"),u=a("".charAt),f=r.parseFloat,l=r.Symbol,h=l&&l.iterator,d=1/f(c+"-0")!==-1/0||h&&!i((function(){f(Object(h))}));e.exports=d?function(e){var t=s(o(e)),n=f(t);return 0===n&&"-"==u(t,0)?-0:n}:f},"7ed3":function(e,t,n){var r=n("23e7"),i=n("c65b"),a=n("825a"),o=n("861d"),s=n("c60d"),c=n("d039"),u=n("9bf2"),f=n("06cf"),l=n("e163"),h=n("5c6c");function d(e,t,n){var r,c,p,v=arguments.length<4?e:arguments[3],m=f.f(a(e),t);if(!m){if(o(c=l(e)))return d(c,t,n,v);m=h(0)}if(s(m)){if(!1===m.writable||!o(v))return!1;if(r=f.f(v,t)){if(r.get||r.set||!1===r.writable)return!1;r.value=n,u.f(v,t,r)}else u.f(v,t,h(0,n))}else{if(p=m.set,void 0===p)return!1;i(p,v,n)}return!0}var p=c((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}));r({target:"Reflect",stat:!0,forced:p},{set:d})},"7f78":function(e,t,n){var r=n("23e7"),i=n("825a"),a=n("e163"),o=n("e177");r({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(e){return a(i(e))}})},"7f9a":function(e,t,n){var r=n("da84"),i=n("1626"),a=n("8925"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(a(o))},8009:function(e,t,n){var r=n("746f");r("replaceAll")},"802d":function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("e330"),o=n("fc6a"),s=n("577e"),c=n("07fa"),u=i.TypeError,f=Array.prototype,l=a(f.push),h=a(f.join);r({target:"String",stat:!0},{cooked:function(e){var t=o(e),n=c(t),r=arguments.length,i=[],a=0;while(n>a){var f=t[a++];if(void 0===f)throw u("Incorrect template");if(l(i,s(f)),a===n)return h(i,"");a1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>s)t[s++]=e;return t}},"820e":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),a=n("59ed"),o=n("f069"),s=n("e667"),c=n("2266");r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,u=n.reject,f=s((function(){var n=a(t.resolve),o=[],s=0,u=1;c(e,(function(e){var a=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,o[a]={status:"fulfilled",value:e},--u||r(o))}),(function(e){c||(c=!0,o[a]={status:"rejected",reason:e},--u||r(o))}))})),--u||r(o)}));return f.error&&u(f.value),n.promise}})},"825a":function(e,t,n){var r=n("da84"),i=n("861d"),a=r.String,o=r.TypeError;e.exports=function(e){if(i(e))return e;throw o(a(e)+" is not an object")}},8260:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("c65b"),o=n("59ed"),s=n("825a"),c=n("d066"),u=c("Promise"),f=i.TypeError;r({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=s(this),n=o(t.next),r=arguments.length<2,i=r?void 0:arguments[1];return o(e),new u((function(o,c){var l=function(){try{u.resolve(s(a(n,t))).then((function(t){try{if(s(t).done)r?c(f("Reduce of empty iterator with no initial value")):o(i);else{var n=t.value;r?(r=!1,i=n,l()):u.resolve(e(i,n)).then((function(e){i=e,l()}),c)}}catch(a){c(a)}}),c)}catch(h){c(h)}};l()}))}})},"82da":function(e,t,n){var r=n("23e7"),i=n("ebb5"),a=i.NATIVE_ARRAY_BUFFER_VIEWS;r({target:"ArrayBuffer",stat:!0,forced:!a},{isView:i.isView})},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},"83e6":function(e,t,n){var r=n("23e7"),i=n("e8b5"),a=Object.isFrozen,o=function(e,t){if(!a||!i(e)||!a(e))return!1;var n,r=0,o=e.length;while(r1?arguments[1]:void 0;return i(this,e,t)}}),a("groupBy")},8418:function(e,t,n){"use strict";var r=n("a04b"),i=n("9bf2"),a=n("5c6c");e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},"841c":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),a=n("825a"),o=n("1d80"),s=n("129f"),c=n("577e"),u=n("dc4a"),f=n("14c3");i("search",(function(e,t,n){return[function(t){var n=o(this),i=void 0==t?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=a(this),i=c(e),o=n(t,r,i);if(o.done)return o.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var l=f(r,i);return s(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},"843c":function(e,t,n){"use strict";var r=n("23e7"),i=n("0ccb").end,a=n("9a0c");r({target:"String",proto:!0,forced:a},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"848b":function(e,t,n){"use strict";var r=n("5cce").version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};function o(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var a=r[i],o=t[a];if(o){var s=e[a],c=void 0===s||o(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}}i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:o,validators:i}},"84c3":function(e,t,n){var r=n("74e8");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"857a":function(e,t,n){var r=n("e330"),i=n("1d80"),a=n("577e"),o=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var c=a(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(a(r),o,""")+'"'),u+">"+c+""}},"85ca":function(e,t,n){"use strict";var r=n("c430"),i=n("23e7"),a=n("d066"),o=n("c65b"),s=n("59ed"),c=n("825a"),u=n("4840"),f=n("2266");i({target:"Set",proto:!0,real:!0,forced:r},{difference:function(e){var t=c(this),n=new(u(t,a("Set")))(t),r=s(n["delete"]);return f(e,(function(e){o(r,n,e)})),n}})},"861d":function(e,t,n){var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"867a":function(e,t){var n=Math.log,r=Math.LOG10E;e.exports=Math.log10||function(e){return n(e)*r}},8875:function(e,t,n){var r,i,a;(function(n,o){i=[],r=o,a="function"===typeof r?r.apply(t,i):r,void 0===a||(e.exports=a)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(d.stack)||o.exec(d.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");c===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*