You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.0 MiB
1 line
1.0 MiB
|
6 years ago
|
var Module=void 0!==Module?Module:{};function cjpeg(A,Q,E){if(void 0!==A){var B="",e="",D=["-outfile","/output.jpg"];if(Array.isArray(Q))D=D.concat(Q);else for(var r in Q)"string"==typeof Q[r]&&(D.push("-"+r),"boolean"!=typeof Q[r]&&D.push(String(Q[r])));D.push("/input.jpg");var i={print:function(A){B+=A+"\n","function"==typeof E&&E(A)},printErr:function(A){e+=A+"\n","function"==typeof E&&E(A)},preRun:[function(){fA.writeFile("/input.jpg",A,{encoding:"binary"})}],arguments:D,ENVIRONMENT:"SHELL"},w={};for(r in i)i.hasOwnProperty(r)&&(w[r]=i[r]);i.arguments=[],i.thisProgram="./this.program",i.quit=function(A,Q){throw Q},i.preRun=[],i.postRun=[];var t,n,o=!1,a=!1,f=!1,P=!1;if(i.ENVIRONMENT)if("WEB"===i.ENVIRONMENT)o=!0;else if("WORKER"===i.ENVIRONMENT)a=!0;else if("NODE"===i.ENVIRONMENT)f=!0;else{if("SHELL"!==i.ENVIRONMENT)throw new Error("Module['ENVIRONMENT'] value is not valid. must be one of: WEB|WORKER|NODE|SHELL.");P=!0}else o="object"==typeof window,a="function"==typeof importScripts,f="object"==typeof process&&"function"==typeof require&&!o&&!a,P=!o&&!f&&!a;if(f)i.read=function(A,Q){var E;return(E=TQ(A))||(t||(t=require("fs")),n||(n=require("path")),A=n.normalize(A),E=t.readFileSync(A)),Q?E:E.toString()},i.readBinary=function(A){var Q=i.read(A,!0);return Q.buffer||(Q=new Uint8Array(Q)),wQ(Q.buffer),Q},process.argv.length>1&&(i.thisProgram=process.argv[1].replace(/\\/g,"/")),i.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=i),process.on("uncaughtException",function(A){if(!(A instanceof RQ))throw A}),process.on("unhandledRejection",function(A,Q){i.printErr("node.js exiting due to unhandled promise rejection"),process.exit(1)}),i.inspect=function(){return"[Emscripten Module object]"};else if(P)"undefined"!=typeof read&&(i.read=function(A){var Q=TQ(A);return Q?_Q(Q):read(A)}),i.readBinary=function(A){var Q;return(Q=TQ(A))?Q:"function"==typeof readbuffer?new Uint8Array(readbuffer(A)):(wQ("object"==typeof(Q=read(A,"binary"))),Q)},"undefined"!=typeof scriptArgs?i.arguments=scriptArgs:void 0!==arguments&&(i.arguments=arguments),"function"==typeof quit&&(i.quit=function(A,Q){quit(A)});else{if(!o&&!a)throw new Error("unknown runtime environment");i.read=function(A){try{var Q=new XMLHttpRequest;return Q.open("GET",A,!1),Q.send(null),Q.responseText}catch(Q){var E=TQ(A);if(E)return _Q(E);throw Q}},a&&(i.readBinary=function(A){try{var Q=new XMLHttpRequest;return Q.open("GET",A,!1),Q.responseType="arraybuffer",Q.send(null),new Uint8Array(Q.response)}catch(Q){var E=TQ(A);if(E)return E;throw Q}}),i.readAsync=function(A,Q,E){var B=new XMLHttpRequest;B.open("GET",A,!0),B.responseType="arraybuffer",B.onload=function(){if(200==B.status||0==B.status&&B.response)Q(B.response);else{var e=TQ(A);e?Q(e.buffer):E()}},B.onerror=E,B.send(null)},i.setWindowTitle=function(A){document.title=A}}for(r in i.print="undefined"!=typeof console?console.log.bind(console):"undefined"!=typeof print?print:null,i.printErr="undefined"!=typeof printErr?printErr:"undefined"!=typeof console&&console.warn.bind(console)||i.print,i.print=i.print,i.printErr=i.printErr,w)w.hasOwnProperty(r)&&(i[r]=w[r]);w=void 0;var s=16;zA=HA=function(){SQ("cannot use the stack before compiled code is ready to run, and has provided stack access")};new Array(0);var g,l,c,u,O,d,b,k,h,N,v,m,p,C,M,y,I=0,_=2,T=4,R="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,F=("undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le"),65536),G=16777216,S=16777216;h=m=p=M=0,N=!1,i.reallocBuffer||(i.reallocBuffer=function(A){var Q;try{if(ArrayBuffer.transfer)Q=ArrayBuffer.transfer(g,A);else{var E=l;Q=new ArrayBuffer(A),new Int8Array(Q).set(E)}}catch(A){return!1}return!!YA(Q)&&Q});try{(y=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get))(new ArrayBuffer(4))}catch(A){y=function(A){return A.byteLength}}var Z=i.TOTAL_STACK||5242880,L=i.TOTAL_MEMORY||16777216;if(L<Z&&i.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+L+"! (TOTAL_STACK="+Z+")"),wQ("undefined"!=typeof Int32Array&&"undefined"!=typeof
|