1 line
102 KiB
JavaScript
1 line
102 KiB
JavaScript
|
var createFFmpegCore=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t){var n,r,i;t=t||{},n||(n=void 0!==t?t:{}),n.ready=new Promise((function(e,t){r=e,i=t})),n.quit=function(e){throw n.onExit&&n.onExit(e),new Qr(e)},n.exit=$r,k=A=function(){};var a,f={};for(a in n)n.hasOwnProperty(a)&&(f[a]=n[a]);var o=[],u="./this.program";function c(e,t){throw t}var s=!1,l=!1,d=!1,h=!1;s="object"==typeof window,l="function"==typeof importScripts,d="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h=!s&&!d&&!l;var p=n.ENVIRONMENT_IS_PTHREAD||!1;p&&(q=n.buffer);var m,g,w,y,v="";function b(e){return n.locateFile?n.locateFile(e,v):v+e}if(d){var _;v=l?require("path").dirname(v)+"/":__dirname+"/",m=function(e,t){return w||(w=require("fs")),y||(y=require("path")),e=y.normalize(e),w.readFileSync(e,t?null:"utf8")},g=function(e){return(e=m(e,!0)).buffer||(e=new Uint8Array(e)),O(e.buffer),e},1<process.argv.length&&(u=process.argv[1].replace(/\\/g,"/")),o=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Qr))throw e})),process.on("unhandledRejection",he),c=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"};try{_=require("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=_.Worker}else h?("undefined"!=typeof read&&(m=function(e){return read(e)}),g=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(O("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?o=scriptArgs:void 0!==arguments&&(o=arguments),"function"==typeof quit&&(c=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(s||l)&&(l?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),e&&(v=e),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",d?(m=function(e,t){return w||(w=require("fs")),y||(y=require("path")),e=y.normalize(e),w.readFileSync(e,t?null:"utf8")},g=function(e){return(e=m(e,!0)).buffer||(e=new Uint8Array(e)),O(e.buffer),e}):(m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},l&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})));d&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);var k=n.print||console.log.bind(console),A=n.printErr||console.warn.bind(console);for(a in f)f.hasOwnProperty(a)&&(n[a]=f[a]);f=null,n.arguments&&(o=n.arguments),n.thisProgram&&(u=n.thisProgram),n.quit&&(c=n.quit);var x,E,j,S=0;n.wasmBinary&&(E=n.wasmBinary),n.noExitRuntime&&(j=n.noExitRuntime),"object"!=typeof WebAssembly&&he("no native wasm support detected");var M,T,D=0,C=0,F=!1;function O(e,t){e||he("Assertion failed: "+t)}function I(e){var t=n["_"+e];return O(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function P(e,t,n,r){var i={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);B(e,t=yr(n),n)}return t},array:function(e){var t=yr(e.length);return H.set(e,t),t}},a=I(e),f=[];if(e=0,r)for(var o=0;o<r.length;o++){var u=i[n[o]];u?(0===e&&(e=gr()),f[o]=u(r[o])):f[o]=r[o]}return n=a.apply(null,f),n="string"===t?R(n):"boolean"===t?!!n:n,0!==e&&wr(e),n}function L(e,t,n){n=t+n;for(var r="";!(t>=n);){var i=e[t++];if(!i)break;if(128&i){var a=63&e[t++];if(192==(224&i))r+=String.fromCharCode((31&i)<<6|a);else{var f=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|a<<6|f:(7&i)<<18|a<<12|f<<6|63&e[t++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r}function R(e,t){return e?L(Y,e,t):""}function N(e,t,n,r){if(!(0<r))return 0;var i=n;r=n+r-1;for(var
|