CyberChef/assets/tesseract/tesseract-core.wasm.js

1 line
4.5 MiB
JavaScript
Raw Normal View History

2024-10-23 17:17:24 +02:00
var TesseractCore=(()=>{var A="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(A=A||__filename),function(I={}){var g,C,B;g||(g=void 0!==I?I:{}),g.ready=new Promise(((A,I)=>{C=A,B=I}));var Q,E,D,i=Object.assign({},g),G="./this.program",o=(A,I)=>{throw I},w="object"==typeof window,K="function"==typeof importScripts,F="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,R="";if(F){var N=require("fs"),y=require("path");R=K?y.dirname(R)+"/":__dirname+"/",Q=(A,I)=>{var g=jA(A);return g?I?g:g.toString():(A=A.startsWith("file://")?new URL(A):y.normalize(A),N.readFileSync(A,I?void 0:"utf8"))},D=A=>((A=Q(A,!0)).buffer||(A=new Uint8Array(A)),A),E=(A,I,g,C=!0)=>{var B=jA(A);B&&I(B),A=A.startsWith("file://")?new URL(A):y.normalize(A),N.readFile(A,C?void 0:"utf8",((A,B)=>{A?g(A):I(C?B.buffer:B)}))},!g.thisProgram&&1<process.argv.length&&(G=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),o=(A,I)=>{throw process.exitCode=A,I},g.inspect=()=>"[Emscripten Module object]"}else(w||K)&&(K?R=self.location.href:"undefined"!=typeof document&&document.currentScript&&(R=document.currentScript.src),A&&(R=A),R=0!==R.indexOf("blob:")?R.substr(0,R.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Q=A=>{try{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.send(null),I.responseText}catch(B){if(A=jA(A)){I=[];for(var g=0;g<A.length;g++){var C=A[g];255<C&&(C&=255),I.push(String.fromCharCode(C))}return I.join("")}throw B}},K&&(D=A=>{try{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.responseType="arraybuffer",I.send(null),new Uint8Array(I.response)}catch(I){if(A=jA(A))return A;throw I}}),E=(A,I,g)=>{var C=new XMLHttpRequest;C.open("GET",A,!0),C.responseType="arraybuffer",C.onload=()=>{if(200==C.status||0==C.status&&C.response)I(C.response);else{var B=jA(A);B?I(B.buffer):g()}},C.onerror=g,C.send(null)});var h,U=g.print||console.log.bind(console),H=g.printErr||console.warn.bind(console);Object.assign(g,i),i=null,g.thisProgram&&(G=g.thisProgram),g.quit&&(o=g.quit),g.wasmBinary&&(h=g.wasmBinary);var J=g.noExitRuntime||!0;"object"!=typeof WebAssembly&&f("no native wasm support detected");var Y,S,M,k,a,L,s,c,d=!1;function q(){var A=Y.buffer;g.HEAP8=S=new Int8Array(A),g.HEAP16=k=new Int16Array(A),g.HEAP32=a=new Int32Array(A),g.HEAPU8=M=new Uint8Array(A),g.HEAPU16=new Uint16Array(A),g.HEAPU32=L=new Uint32Array(A),g.HEAPF32=s=new Float32Array(A),g.HEAPF64=c=new Float64Array(A)}var Z,t=[],l=[],n=[],W=!1;function b(){var A=g.preRun.shift();t.unshift(A)}var V=0,m=null,x=null;function p(){V++,g.monitorRunDependencies&&g.monitorRunDependencies(V)}function r(){if(V--,g.monitorRunDependencies&&g.monitorRunDependencies(V),0==V&&(null!==m&&(clearInterval(m),m=null),x)){var A=x;x=null,A()}}function f(A){throw g.onAbort&&g.onAbort(A),H(A="Aborted("+A+")"),d=!0,A=new WebAssembly.RuntimeError(A+". Build with -sASSERTIONS for more info."),B(A),A}var T,X="data:application/octet-stream;base64,";if(!(T="data:application/octet-stream;base64,AGFzbQEAAAABrgumAWABfwBgAX8Bf2ADf39/AX9gAn9/AX9gAn9/AGADf39/AGAEf39/fwBgBH9/f38Bf2AFf39/f38AYAV/f39/fwF/YAZ/f39/f38Bf2AGf39/f39/AGADf35/AX5gB39/f39/f38AYAl/f39/f39/f38AYAd/f39/f39/AX9gAX8BfWAIf39/f39/f38Bf2AAAX9gAABgAn9+AX9gCH9/f39/f39/AXxgAX8BfmAEf35/fwF+YAJ/fwF9YAF9AX1gDH9/f39/f39/f39/fwBgAn9+AX5gAXwBfGAJf39/f39/f39/AX9gA399fwF/YAJ/fQBgAn9/AX5gA39/fwF9YAV/fn5+fgBgBH9/f38BfmAFf319fX8AYAh/f39/f39/fwBgAn9/AXxgAX8BfGAFf39/f3wBf2ADf319AX9gA39/fwF8YAN/f30Bf2AFf39+f38AYAV/f39/fgF/YAp/f39/f39/f39/AGACfHwBfGADf39+AGAKf39/f39/f39/fwF/YAZ/f39/f38BfGADf35/AGALf39/f39/f39/f38Bf2ACfn8Bf2AEf35+fwBgA399fwBgA39+fwF/YAR/f399AGAAAXxgAn98AXxgAn98AGACfX0BfWABfAF9YAR/f39/AXxgAn99AX9gBH5+fn4Bf2ADf3x8AGADf3x8AXxgBn9/f399fwF/YAN8fH8BfGAFf399f38AYAN/f30AYAV/f399fwF/YAp/f39/f399f39/AGALf39/f39/f39/f38AYAx/f39/f39/f39/f38Bf2ADfH9/AGAEf31/fwBgCn9/f319fX9/f38AYAh/fX9/f39/fwBgD39/f39/f39/f39/f39/fwBgBn98f39/fwF/YA1/f39/f39/f39/f39/AGAEf35/fwF/YAR/f399AX9gCH9/f39/f399AGAEf35/fwBgB39/f39/fn4Bf2AGf39/f35+AX9gBX98f39/AGAEf35+fwF+YAJ/fAF/YAN/fX