10 lines
99 KiB
JavaScript
10 lines
99 KiB
JavaScript
|
|
/*
|
||
|
|
*
|
||
|
|
* decoder.js v1.0.2-beta.5
|
||
|
|
* Copyright (c) 2024-7-24 Ezviz-OpenBiz
|
||
|
|
*
|
||
|
|
* https://github.com/Ezviz-OpenBiz/EZUIKit-flv
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=!0;if((o=void 0!==o?o:{}).ENVIRONMENT)throw new Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var t,n,o={print:function(e){},printErr:function(e){postMessage({cmd:"wasmError",message:e})}},a=Object.assign({},o),i="./this.program",s="";if("undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),"object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");t=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},n=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)};var l,d,u,c=o.print||console.log.bind(console),f=o.printErr||console.error.bind(console);Object.assign(o,a),a=null,l="fetchSettings",Object.getOwnPropertyDescriptor(o,l)&&R(`\`Module.${l}\` was supplied but \`${l}\` not included in INCOMING_MODULE_JS_API`),o.arguments&&o.arguments,G("arguments","arguments_"),o.thisProgram&&(i=o.thisProgram),G("thisProgram","thisProgram"),o.quit&&o.quit,G("quit","quit_"),T(void 0===o.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),T(void 0===o.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),T(void 0===o.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),T(void 0===o.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),T(void 0===o.read,"Module.read option was removed (modify read_ in JS)"),T(void 0===o.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),T(void 0===o.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),T(void 0===o.setWindowTitle,"Module.setWindowTitle option was removed (modify emscripten_set_window_title in JS)"),T(void 0===o.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),G("asm","wasmExports"),G("read","read_"),G("readAsync","readAsync"),G("readBinary","readBinary"),G("setWindowTitle","setWindowTitle"),T(!0,"worker environment detected but not enabled at build time. Add `worker` to `-sENVIRONMENT` to enable."),T(!0,"node environment detected but not enabled at build time. Add `node` to `-sENVIRONMENT` to enable."),T(!0,"shell environment detected but not enabled at build time. Add `shell` to `-sENVIRONMENT` to enable."),o.wasmBinary&&(d=o.wasmBinary),G("wasmBinary","wasmBinary"),"object"!=typeof WebAssembly&&f("no native wasm support detected");var m,p,h,g,v,y,E,w,b=!1;function T(e,r){e||R("Assertion failed"+(r?": "+r:""))}function _(){var e=u.buffer;o.HEAP8=m=new Int8Array(e),o.HEAP16=h=new Int16Array(e),o.HEAPU8=p=new Uint8Array(e),o.HEAPU16=g=new Uint16Array(e),o.HEAP32=v=new Int32Array(e),o.HEAPU32=y=new Uint32Array(e),o.HEAPF32=E=new Float32Array(e),o.HEAPF64=w=new Float64Array(e)}function C(){if(!b){var e=lt();0==e&&(e+=4);var r=y[e>>2],t=y[e+4>>2];34821223==r&&2310721022==t||R(`Stack overflow! Stack cookie has been overwritten at ${J(e)}, expected hex dwords 0x89BACDFE and 0x2135467, but received ${J(t)} ${J(r)}`),1668509029!=y[0]&&R("Runtime error: The application has corrupted its heap memory area (address zero)!")}}T(!o.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),T("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototy
|