/*! For license information please see tesseract.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[249],{1046:function(t,e,r){"use strict";var n=r(1156),i=r(1157),s=Object.prototype.toString;function o(t){return"[object Array]"===s.call(t)}function a(t){return null!==t&&"object"==typeof t}function f(t){return"[object Function]"===s.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(s)})),t.exports=f}).call(this,r(50))},1106:function(t,e,r){"use strict";(function(e){var n=r(1047),i=r(1306),s={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,f={adapter:("undefined"!=typeof XMLHttpRequest?a=r(1166):void 0!==e&&(a=r(1166)),a),transformRequest:[function(t,e){return i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(s)})),t.exports=f}).call(this,r(50))},1155:function(module,exports,__webpack_require__){"use strict";var toBytes=function(t){return[].concat(t).map((function(t){return t.charCodeAt(0)}))},xpiZipFilename=toBytes("META-INF/mozilla.rsa"),oxmlContentTypes=toBytes("[Content_Types].xml"),oxmlRels=toBytes("_rels/.rels");function readUInt64LE(t,e){void 0===e&&(e=0);for(var r=t[e],n=1,i=0;++i<8;)n*=256,r+=t[e+i]*n;return r}var fileType=function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||Buffer.isBuffer(t)))throw new TypeError("Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `"+typeof t+"`");var e=t instanceof Uint8Array?t:new Uint8Array(t);if(!(e&&e.length>1))return null;var r=function(t,r){r=Object.assign({offset:0},r);for(var n=0;n=e&&80===n[r]&&75===n[r+1]&&3===n[r+2]&&4===n[r+3]}))},s=0,o=!1,a=null;do{var f=s+30;if(o||(o=r(oxmlContentTypes,{offset:f})||r(oxmlRels,{offset:f})),a||(n("word/",{offset:f})?a={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:f})?a={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:f})&&(a={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&a)return a;s=i(e,f)}while(s>=0);if(a)return a}if(r([80,75])&&(3===e[2]||5===e[2]||7===e[2])&&(4===e[3]||6===e[3]||8===e[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===e[6]||1===e[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){var u=e.subarray(4,4100),c=u.findIndex((function(t,e,r){return 66===r[e]&&130===r[e+1]}));if(-1!==c){var h=c+3,p=function(t){return[].concat(t).every((function(t,e){return u[h+e]===t.charCodeAt(0)}))};if(p("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(p("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217])){var l=30;do{var d=readUInt64LE(e,l+16);if(r([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:l})){if(r([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:l+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(r([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:l+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}l+=d}while(l+24<=e.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(var m=0;m<2&&md&&te}function k(t,e){return y(t)&&t=e}function A(t,e){return y(t)&&t<=e}function U(t){return"string"==typeof t}function _(t){return U(t)&&""!==t}function j(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t,e){try{return t instanceof e}catch(t){return!1}}function I(t,e){var r;for(r in e)if(e.hasOwnProperty(r)){if(!1===t.hasOwnProperty(r)||typeof t[r]!=typeof e[r])return!1;if(j(t[r])&&!1===I(t[r],e[r]))return!1}return!0}function L(t){return g(t)}function T(t){return v(t)&&E(t.length,0)}function B(t){return"function"==typeof t}function C(t,e){var r={};return Object.keys(e).forEach((function(n){var i=e[n];B(i)?c.assigned(t)?r[n]=!!i.m:r[n]=i(t[n]):j(i)&&(r[n]=C(t[n],i))})),r}function P(t,e){var r;for(r=0;rr}},{n:"greaterOrEqual",f:E},{n:"lessOrEqual",f:A},{n:"inRange",f:function(t,e,r){if(e=r}},{n:"positive",f:function(t){return x(t,0)}},{n:"negative",f:function(t){return k(t,0)}},{n:"string",f:U,s:"s"},{n:"emptyString",f:function(t){return""===t},s:"s"},{n:"nonEmptyString",f:_,s:"s"},{n:"contains",f:function(t,e){return U(t)&&-1!==t.indexOf(e)},s:"s"},{n:"match",f:function(t,e){return U(t)&&!!t.match(e)},s:"s"},{n:"boolean",f:function(t){return!1===t||!0===t},s:"b"},{n:"object",f:j,s:"o"},{n:"emptyObject",f:function(t){return j(t)&&0===Object.keys(t).length},s:"o"},{n:"nonEmptyObject",f:function(t){return j(t)&&Object.keys(t).length>0},s:"o"},{n:"instanceStrict",f:S,s:"t"},{n:"instance",f:function(t,e){try{return S(t,e)||t.constructor.name===e.name||Object.prototype.toString.call(t)==="[object "+e.name+"]"}catch(t){return!1}},s:"t"},{n:"like",f:I,s:"t"},{n:"array",f:L,s:"a"},{n:"emptyArray",f:function(t){return L(t)&&0===t.length},s:"a"},{n:"nonEmptyArray",f:function(t){return L(t)&&x(t.length,0)},s:"a"},{n:"arrayLike",f:T,s:"al"},{n:"iterable",f:function(t){if(!b)return T(t);return v(t)&&B(t[Symbol.iterator])},s:"i"},{n:"date",f:function(t){return S(t,Date)&&w(t.getTime())},s:"d"},{n:"function",f:B,s:"f"},{n:"hasLength",f:function(t,e){return v(t)&&t.length===e},s:"l"}].map((function(t){var e=t.n;o[e]="Invalid "+s[t.s||"n"],a[e]=t.f})),f={apply:function(t,e){if(u.array(t),B(e))return t.map((function(t){return e(t)}));return u.array(e),u.hasLength(t,e.length),t.map((function(t,r){return e[r](t)}))},map:function(t,e){if(u.object(t),B(e))return function(t,e){var r={};return Object.keys(t).forEach((function(n){r[n]=e(t[n])})),r}(t,e);return u.object(e),C(t,e)},all:function(t){if(L(t))return P(t,!1);return u.object(t),O(t,!1)},any:function(t){if(L(t))return P(t,!0);return u.object(t),O(t,!0)}},p=["array","arrayLike","iterable","object"],l=Array.prototype.slice,d=Number.NEGATIVE_INFINITY,m=Number.POSITIVE_INFINITY,g=Array.isArray,b="function"==typeof Symbol,f=R(f,a),u=H(N,q),c=H(D,F),h=H((function(t){var e=function(){return!!c.assigned(arguments[0])||t.apply(null,arguments)};return e.l=t.length,e.m=!0,e}),(function(t){if(!1===v(t))return!0;return t})),u.not=V(N,c),u.maybe=V(N,h),p.forEach((function(t){a[t].of=G([M.bind(null,null),a[t],a,null])})),W(u,N),W(c,D),p.forEach((function(t){h[t].of=G([M.bind(null,"maybe"),a[t],a,null]),u.maybe[t].of=V(N,h[t].of),u.not[t].of=V(N,c[t].of)})),function(i){void 0===(n=function(){return i}.call(e,r,e,t))||(t.exports=n)}(R(f,{assert:u,not:c,maybe:h}))}()},1163:function(t,e,r){var n,i;void 0===(i="function"==typeof(n=function(){return function(){var t=arguments.length;if(0===t)throw new Error("resolveUrl requires at least one argument; got none.");var e=document.createElement("base");if(e.href=arguments[0],1===t)return e.href;var r=document.getElementsByTagName("head")[0];r.insertBefore(e,r.firstChild);for(var n,i=document.createElement("a"),s=1;s=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},1287:function(t,e,r){"use strict";var n=r(1046);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},1288:function(t,e,r){"use strict";var n=r(1046);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,s,o){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1289:function(t,e,r){"use strict";var n=r(1046);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},1290:function(t,e,r){"use strict";var n=r(1046),i=r(1291),s=r(1160),o=r(1105),a=r(1292),f=r(1293);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!a(t.url)&&(t.url=f(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1291:function(t,e,r){"use strict";var n=r(1046);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},1292:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},1293:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},1294:function(t,e,r){"use strict";var n=r(1161);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},1295:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1296:function(t,e,r){"use strict";t.exports=r(1297).gunzipSync},1297:function(t,e,r){(function(t){(function(){"use strict";function r(t){throw t}var n=void 0,i=!0,s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function o(t,e){this.index="number"==typeof e?e:0,this.m=0,this.buffer=t instanceof(s?Uint8Array:Array)?t:new(s?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&r(Error("invalid index")),this.buffer.length<=this.index&&this.f()}o.prototype.f=function(){var t,e=this.buffer,r=e.length,n=new(s?Uint8Array:Array)(r<<1);if(s)n.set(e);else for(t=0;t>>8&255]<<16|p[t>>>16&255]<<8|p[t>>>24&255])>>32-e:p[t]>>8-e),8>e+o)a=a<>e-n-1&1,8==++o&&(o=0,i[s++]=p[a],a=0,s===i.length&&(i=this.f()));i[s]=a,this.buffer=i,this.m=o,this.index=s},o.prototype.finish=function(){var t,e=this.buffer,r=this.index;return 0a;++a){for(var u=h=a,c=7,h=h>>>1;h;h>>>=1)u<<=1,u|=1&h,--c;f[a]=(u<>>0}var p=f;function l(t,e,r){var n,i="number"==typeof e?e:e=0,s="number"==typeof r?r:t.length;for(n=-1,i=7&s;i--;++e)n=n>>>8^m[255&(n^t[e])];for(i=s>>3;i--;e+=8)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^m[255&(n^t[e])])>>>8^m[255&(n^t[e+1])])>>>8^m[255&(n^t[e+2])])>>>8^m[255&(n^t[e+3])])>>>8^m[255&(n^t[e+4])])>>>8^m[255&(n^t[e+5])])>>>8^m[255&(n^t[e+6])])>>>8^m[255&(n^t[e+7])];return(4294967295^n)>>>0}var d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],m=s?new Uint32Array(d):d;function g(){}function b(t){this.buffer=new(s?Uint16Array:Array)(2*t),this.length=0}function v(t){var e,r,n,i,o,a,f,u,c,h,p=t.length,l=0,d=Number.POSITIVE_INFINITY;for(u=0;ul&&(l=t[u]),t[u]>=1;for(h=n<<16|u,c=a;cs[n]);)i=s[r],s[r]=s[n],s[n]=i,i=s[r+1],s[r+1]=s[n+1],s[n+1]=i,r=n;return this.length},b.prototype.pop=function(){var t,e,r,n,i,s=this.buffer;for(e=s[0],t=s[1],this.length-=2,s[0]=s[this.length],s[1]=s[this.length+1],i=0;!((n=2*i+2)>=this.length)&&(n+2s[n]&&(n+=2),s[n]>s[i]);)r=s[i],s[i]=s[n],s[n]=r,r=s[i+1],s[i+1]=s[n+1],s[n+1]=r,i=n;return{index:t,value:e,length:this.length}};var w,x=2,k={NONE:0,L:1,t:x,X:3},E=[];for(w=0;288>w;w++)switch(i){case 143>=w:E.push([w+48,8]);break;case 255>=w:E.push([w-144+400,9]);break;case 279>=w:E.push([w-256+0,7]);break;case 287>=w:E.push([w-280+192,8]);break;default:r("invalid literal: "+w)}function A(t,e){this.length=t,this.N=e}y.prototype.h=function(){var t,e,a,f,u=this.input;switch(this.k){case 0:for(a=0,f=u.length;a>>8&255,b[v++]=255&p,b[v++]=p>>>8&255,s)b.set(l,v),v+=l.length,b=b.subarray(0,v);else{for(m=0,g=l.length;mY)for(;0Y?Y:138)>Y-3&&Z=Z?(rt[K++]=17,rt[K++]=Z-3,nt[17]++):(rt[K++]=18,rt[K++]=Z-11,nt[18]++),Y-=Z;else if(rt[K++]=et[W],nt[et[W]]++,3>--Y)for(;0Y?Y:6)>Y-3&&ZM;M++)V[M]=z[G[M]];for(C=19;4=t:return[265,t-11,1];case 14>=t:return[266,t-13,1];case 16>=t:return[267,t-15,1];case 18>=t:return[268,t-17,1];case 22>=t:return[269,t-19,2];case 26>=t:return[270,t-23,2];case 30>=t:return[271,t-27,2];case 34>=t:return[272,t-31,2];case 42>=t:return[273,t-35,3];case 50>=t:return[274,t-43,3];case 58>=t:return[275,t-51,3];case 66>=t:return[276,t-59,3];case 82>=t:return[277,t-67,4];case 98>=t:return[278,t-83,4];case 114>=t:return[279,t-99,4];case 130>=t:return[280,t-115,4];case 162>=t:return[281,t-131,5];case 194>=t:return[282,t-163,5];case 226>=t:return[283,t-195,5];case 257>=t:return[284,t-227,5];case 258===t:return[285,t-258,0];default:r("invalid length: "+t)}}var e,n,s=[];for(e=3;258>=e;e++)n=t(e),s[e]=n[2]<<24|n[1]<<16|n[0];return s}(),_=s?new Uint32Array(U):U;function j(t,e){function o(t,e){var n,s,o,a,f=t.N,u=[],c=0;switch(n=_[t.length],u[c++]=65535&n,u[c++]=n>>16&255,u[c++]=n>>24,i){case 1===f:s=[0,f-1,0];break;case 2===f:s=[1,f-2,0];break;case 3===f:s=[2,f-3,0];break;case 4===f:s=[3,f-4,0];break;case 6>=f:s=[4,f-5,1];break;case 8>=f:s=[5,f-7,1];break;case 12>=f:s=[6,f-9,2];break;case 16>=f:s=[7,f-13,2];break;case 24>=f:s=[8,f-17,3];break;case 32>=f:s=[9,f-25,3];break;case 48>=f:s=[10,f-33,4];break;case 64>=f:s=[11,f-49,4];break;case 96>=f:s=[12,f-65,5];break;case 128>=f:s=[13,f-97,5];break;case 192>=f:s=[14,f-129,6];break;case 256>=f:s=[15,f-193,6];break;case 384>=f:s=[16,f-257,7];break;case 512>=f:s=[17,f-385,7];break;case 768>=f:s=[18,f-513,8];break;case 1024>=f:s=[19,f-769,8];break;case 1536>=f:s=[20,f-1025,9];break;case 2048>=f:s=[21,f-1537,9];break;case 3072>=f:s=[22,f-2049,10];break;case 4096>=f:s=[23,f-3073,10];break;case 6144>=f:s=[24,f-4097,11];break;case 8192>=f:s=[25,f-6145,11];break;case 12288>=f:s=[26,f-8193,12];break;case 16384>=f:s=[27,f-12289,12];break;case 24576>=f:s=[28,f-16385,13];break;case 32768>=f:s=[29,f-24577,13];break;default:r("invalid distance")}for(n=s,u[c++]=n[0],u[c++]=n[1],u[c++]=n[2],o=0,a=u.length;o=u;)w[u++]=0;for(u=0;29>=u;)x[u++]=0}for(w[256]=1,a=0,f=e.length;a=f){for(d&&o(d,-1),u=0,c=f-a;us&&e+su&&(i=n,u=s),258===s)break}return new A(u,e-i)}function I(t,e){var r,n,i,o,a,f=t.length,u=new b(572),c=new(s?Uint8Array:Array)(f);if(!s)for(o=0;o2*c[o-1]+h[o]&&(c[o]=2*c[o-1]+h[o]),l[o]=Array(c[o]),d[o]=Array(c[o]);for(i=0;it[i]?(l[o][a]=f,d[o][a]=e,u+=2):(l[o][a]=t[i],d[o][a]=i,++i);m[o]=0,1===h[o]&&n(o)}return p}(n,n.length,e),o=0,a=r.length;o>>=1;return o}function T(t,e){this.input=t,this.b=this.c=0,this.g={},e&&(e.flags&&(this.g=e.flags),"string"==typeof e.filename&&(this.filename=e.filename),"string"==typeof e.comment&&(this.w=e.comment),e.deflateOptions&&(this.l=e.deflateOptions)),this.l||(this.l={})}T.prototype.h=function(){var t,e,r,i,o,a,f,u,c=new(s?Uint8Array:Array)(32768),h=0,p=this.input,d=this.c,m=this.filename,g=this.w;if(c[h++]=31,c[h++]=139,c[h++]=8,t=0,this.g.fname&&(t|=P),this.g.fcomment&&(t|=O),this.g.fhcrc&&(t|=C),c[h++]=t,e=(Date.now?Date.now():+new Date)/1e3|0,c[h++]=255&e,c[h++]=e>>>8&255,c[h++]=e>>>16&255,c[h++]=e>>>24&255,c[h++]=0,c[h++]=B,this.g.fname!==n){for(f=0,u=m.length;f>>8&255),c[h++]=255&a;c[h++]=0}if(this.g.comment){for(f=0,u=g.length;f>>8&255),c[h++]=255&a;c[h++]=0}return this.g.fhcrc&&(r=65535&l(c,0,h),c[h++]=255&r,c[h++]=r>>>8&255),this.l.outputBuffer=c,this.l.outputIndex=h,c=(o=new y(p,this.l)).h(),h=o.b,s&&(h+8>c.buffer.byteLength?(this.a=new Uint8Array(h+8),this.a.set(new Uint8Array(c.buffer)),c=this.a):c=new Uint8Array(c.buffer)),i=l(p,n,n),c[h++]=255&i,c[h++]=i>>>8&255,c[h++]=i>>>16&255,c[h++]=i>>>24&255,u=p.length,c[h++]=255&u,c[h++]=u>>>8&255,c[h++]=u>>>16&255,c[h++]=u>>>24&255,this.c=d,s&&h>>=1){case 0:var e=this.input,o=this.c,a=this.a,f=this.b,u=e.length,c=n,h=a.length,p=n;switch(this.e=this.j=0,o+1>=u&&r(Error("invalid uncompressed block header: LEN")),c=e[o++]|e[o++]<<8,o+1>=u&&r(Error("invalid uncompressed block header: NLEN")),c===~(e[o++]|e[o++]<<8)&&r(Error("invalid uncompressed block header: length verify")),o+c>e.length&&r(Error("input buffer is broken")),this.q){case N:for(;f+c>a.length;){if(c-=p=h-f,s)a.set(e.subarray(o,o+p),f),f+=p,o+=p;else for(;p--;)a[f++]=e[o++];this.b=f,a=this.f(),f=this.b}break;case z:for(;f+c>a.length;)a=this.f({B:2});break;default:r(Error("invalid inflate mode"))}if(s)a.set(e.subarray(o,o+c),f),f+=c,o+=c;else for(;c--;)a[f++]=e[o++];this.c=o,this.b=f,this.a=a;break;case 1:this.r(tt,rt);break;case 2:var l,d,m,g,b=nt(this,5)+257,y=nt(this,5)+1,w=nt(this,4)+4,x=new(s?Uint8Array:Array)(M.length),k=n,E=n,A=n,U=n,_=n;for(_=0;_=q?8:255>=q?9:279>=q?7:8;var Z,Q,tt=v(K),et=new(s?Uint8Array:Array)(30);for(Z=0,Q=et.length;Z=f&&r(Error("input buffer is broken")),i|=o[a++]<>>e,t.e=s-e,t.c=a,n}function it(t,e){for(var n,i,s=t.j,o=t.e,a=t.input,f=t.c,u=a.length,c=e[0],h=e[1];o=u);)s|=a[f++]<>>16)>o&&r(Error("invalid code length: "+i)),t.j=s>>i,t.e=o-i,t.c=f,65535&n}function st(t){this.input=t,this.c=0,this.G=[],this.R=!1}function ot(t){if("string"==typeof t){var e,r,n=t.split("");for(e=0,r=n.length;e>>0;t=n}for(var i,s=1,o=0,a=t.length,f=0;0>>0}function at(t,e){var n,i;switch(this.input=t,this.c=0,!e&&(e={})||(e.index&&(this.c=e.index),e.verify&&(this.V=e.verify)),n=t[this.c++],i=t[this.c++],15&n){case ft:this.method=ft;break;default:r(Error("unsupported compression method"))}0!=((n<<8)+i)%31&&r(Error("invalid fcheck flag:"+((n<<8)+i)%31)),32&i&&r(Error("fdict flag is not supported")),this.J=new R(t,{index:this.c,bufferSize:e.bufferSize,bufferType:e.bufferType,resize:e.resize})}R.prototype.r=function(t,e){var r=this.a,n=this.b;this.A=t;for(var i,s,o,a,f=r.length-258;256!==(i=it(this,t));)if(256>i)n>=f&&(this.b=n,r=this.f(),n=this.b),r[n++]=i;else for(a=H[s=i-257],0=f&&(this.b=n,r=this.f(),n=this.b);a--;)r[n]=r[n++-o];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},R.prototype.Q=function(t,e){var r=this.a,n=this.b;this.A=t;for(var i,s,o,a,f=r.length;256!==(i=it(this,t));)if(256>i)n>=f&&(f=(r=this.f()).length),r[n++]=i;else for(a=H[s=i-257],0f&&(f=(r=this.f()).length);a--;)r[n]=r[n++-o];for(;8<=this.e;)this.e-=8,this.c--;this.b=n},R.prototype.f=function(){var t,e,r=new(s?Uint8Array:Array)(this.b-32768),n=this.b-32768,i=this.a;if(s)r.set(i.subarray(32768,r.length));else for(t=0,e=r.length;tt;++t)i[t]=i[n+t];return this.b=32768,i},R.prototype.S=function(t){var e,r,n,i=this.input.length/this.c+1|0,o=this.input,a=this.a;return t&&("number"==typeof t.B&&(i=t.B),"number"==typeof t.M&&(i+=t.M)),2>i?r=(n=(o.length-this.c)/this.A[2]/2*258|0)e&&(this.a.length=e),t=this.a),this.buffer=t},st.prototype.i=function(){for(var t=this.input.length;this.c>>0,l(e,n,n)!==m&&r(Error("invalid CRC-32 checksum: 0x"+l(e,n,n).toString(16)+" / 0x"+m.toString(16))),a.Z=f=(b[v++]|b[v++]<<8|b[v++]<<16|b[v++]<<24)>>>0,(4294967295&e.length)!==f&&r(Error("invalid input size: "+(4294967295&e.length)+" / "+f)),this.G.push(a),this.c=v}this.R=i;var y,w,x,k=this.G,E=0,A=0;for(y=0,w=k.length;y>>0!==ot(t)&&r(Error("invalid adler-32 checksum"))),t};var ft=8;function ut(t,e){this.input=t,this.a=new(s?Uint8Array:Array)(32768),this.k=ct.t;var r,n={};for(r in!e&&(e={})||"number"!=typeof e.compressionType||(this.k=e.compressionType),e)n[r]=e[r];n.outputBuffer=this.a,this.I=new y(this.input,n)}var ct=k;function ht(t,e){var r;return r=new ut(t).h(),e||(e={}),e.H?r:mt(r)}function pt(t,e){var r;return t.subarray=t.slice,r=new at(t).i(),e||(e={}),e.noBuffer?r:mt(r)}function lt(t,e){var r;return t.subarray=t.slice,r=new T(t).h(),e||(e={}),e.H?r:mt(r)}function dt(t,e){var r;return t.subarray=t.slice,r=new st(t).i(),e||(e={}),e.H?r:mt(r)}function mt(t){var e,r,n=new Buffer(t.length);for(e=0,r=t.length;e>24&255,f[u++]=a>>16&255,f[u++]=a>>8&255,f[u++]=255&a,f},e.deflate=function(e,r,n){t.nextTick((function(){var t,i;try{i=ht(e,n)}catch(e){t=e}r(t,i)}))},e.deflateSync=ht,e.inflate=function(e,r,n){t.nextTick((function(){var t,i;try{i=pt(e,n)}catch(e){t=e}r(t,i)}))},e.inflateSync=pt,e.gzip=function(e,r,n){t.nextTick((function(){var t,i;try{i=lt(e,n)}catch(e){t=e}r(t,i)}))},e.gzipSync=lt,e.gunzip=function(e,r,n){t.nextTick((function(){var t,i;try{i=dt(e,n)}catch(e){t=e}r(t,i)}))},e.gunzipSync=dt}).call(this)}).call(this,r(50))},1298:function(t,e,r){"use strict";var n=r(1299),i=r(1155);t.exports=function(t,e,r){void 0===r&&(r=70);var s=Buffer.from(e),o=i(s),a=0,f=null,u=null,c=0,h=0;if(o&&"image/bmp"===o.mime){var p=n.decode(s);f=t._malloc(p.data.length*Uint8Array.BYTES_PER_ELEMENT),t.HEAPU8.set(p.data,f),c=p.width,h=p.height,a=4}else{var l=t._malloc(s.length*Uint8Array.BYTES_PER_ELEMENT);t.HEAPU8.set(s,l),u=t._pixReadMem(l,s.length),0===t.getValue(u+28,"i32")&&t.setValue(u+28,r,"i32");var d=Array(2).fill(0).map((function(e,r){return t.getValue(u+4*r,"i32")}));c=d[0],h=d[1]}return{w:c,h:h,bytesPerPixel:a,data:f,pix:u}}},1299:function(t,e,r){var n=r(1300),i=r(1301);t.exports={encode:n,decode:i}},1300:function(t,e){function r(t){this.buffer=t.data,this.width=t.width,this.height=t.height,this.extraBytes=this.width%4,this.rgbSize=this.height*(3*this.width+this.extraBytes),this.headerInfoSize=40,this.data=[],this.flag="BM",this.reserved=0,this.offset=54,this.fileSize=this.rgbSize+this.offset,this.planes=1,this.bitPP=24,this.compress=0,this.hr=0,this.vr=0,this.colors=0,this.importantColors=0}r.prototype.encode=function(){var t=new Buffer(this.offset+this.rgbSize);this.pos=0,t.write(this.flag,this.pos,2),this.pos+=2,t.writeUInt32LE(this.fileSize,this.pos),this.pos+=4,t.writeUInt32LE(this.reserved,this.pos),this.pos+=4,t.writeUInt32LE(this.offset,this.pos),this.pos+=4,t.writeUInt32LE(this.headerInfoSize,this.pos),this.pos+=4,t.writeUInt32LE(this.width,this.pos),this.pos+=4,t.writeInt32LE(-this.height,this.pos),this.pos+=4,t.writeUInt16LE(this.planes,this.pos),this.pos+=2,t.writeUInt16LE(this.bitPP,this.pos),this.pos+=2,t.writeUInt32LE(this.compress,this.pos),this.pos+=4,t.writeUInt32LE(this.rgbSize,this.pos),this.pos+=4,t.writeUInt32LE(this.hr,this.pos),this.pos+=4,t.writeUInt32LE(this.vr,this.pos),this.pos+=4,t.writeUInt32LE(this.colors,this.pos),this.pos+=4,t.writeUInt32LE(this.importantColors,this.pos),this.pos+=4;for(var e=0,r=3*this.width+this.extraBytes,n=0;n0){var o=this.pos+n*r+3*this.width;t.fill(0,o,o+this.extraBytes)}}return t},t.exports=function(t,e){return void 0===e&&(e=100),{data:new r(t).encode(),width:t.width,height:t.height}}},1301:function(t,e){function r(t,e){if(this.pos=0,this.buffer=t,this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=this.buffer.toString("utf-8",0,this.pos+=2),"BM"!=this.flag)throw new Error("Invalid BMP File");this.parseHeader(),this.parseRGBA()}r.prototype.parseHeader=function(){if(this.fileSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.reserved=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.offset=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.headerSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.width=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.height=this.buffer.readInt32LE(this.pos),this.pos+=4,this.planes=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.bitPP=this.buffer.readUInt16LE(this.pos),this.pos+=2,this.compress=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.rawSize=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.hr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.vr=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.colors=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.importantColors=this.buffer.readUInt32LE(this.pos),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<=0?this.height-1:-this.height;for(r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>7-a&1];this.data[o+4*a]=0,this.data[o+4*a+1]=f.blue,this.data[o+4*a+2]=f.green,this.data[o+4*a+3]=f.red}0!=e&&(this.pos+=4-e)}},r.prototype.bit4=function(){if(2==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0,n=!1;e>4),1&u&&u+1>1&1)&&this.pos++}}else for(u=0;u>4),n=!n}}else{var c=Math.ceil(this.width/2),h=c%4;for(a=this.height-1;a>=0;a--){var p=this.bottom_up?a:this.height-1-a;for(o=0;o>4,d=15&s,m=this.palette[l];if(this.data[e]=0,this.data[e+1]=m.blue,this.data[e+2]=m.green,this.data[e+3]=m.red,2*o+1>=this.width)break;m=this.palette[d],this.data[e+4]=0,this.data[e+4+1]=m.blue,this.data[e+4+2]=m.green,this.data[e+4+3]=m.red}0!=h&&(this.pos+=4-h)}}},r.prototype.bit8=function(){if(1==this.compress){var t=function(t){var r=this.palette[t];this.data[e]=0,this.data[e+1]=r.blue,this.data[e+2]=r.green,this.data[e+3]=r.red,e+=4};this.data.fill(255);for(var e=0,r=this.bottom_up?this.height-1:0;e=0;o--){var c=this.bottom_up?o:this.height-1-o;for(s=0;s=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>5&e)/e*255|0,f=(s>>10&e)/e*255|0,u=s>>15?255:0,c=n*this.width*4+4*i;this.data[c]=u,this.data[c+1]=o,this.data[c+2]=a,this.data[c+3]=f}this.pos+=t}},r.prototype.bit16=function(){var t=this.width%2*2;this.maskRed=31744,this.maskGreen=992,this.maskBlue=31,this.mask0=0,3==this.compress&&(this.maskRed=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskGreen=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.maskBlue=this.buffer.readUInt32LE(this.pos),this.pos+=4,this.mask0=this.buffer.readUInt32LE(this.pos),this.pos+=4);for(var e=[0,0,0],r=0;r<16;r++)this.maskRed>>r&1&&e[0]++,this.maskGreen>>r&1&&e[1]++,this.maskBlue>>r&1&&e[2]++;e[1]+=e[0],e[2]+=e[1],e[0]=8-e[0],e[1]-=8,e[2]-=8;for(var n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s>e[1],u=(o&this.maskRed)>>e[2],c=i*this.width*4+4*s;this.data[c]=0,this.data[c+1]=a,this.data[c+2]=f,this.data[c+3]=u}this.pos+=t}},r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r=0;t--)for(e=this.bottom_up?t:this.height-1-t,r=0;r=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([r]):o[e]?o[e]+", "+r:r}})),o):o}},1311:function(t,e,r){"use strict";var n=r(1047);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},1312:function(t,e,r){"use strict";var n=r(1047);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,i,s,o){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(s)&&a.push("domain="+s),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1313:function(t,e,r){"use strict";var n=r(1047);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},1314:function(t,e,r){"use strict";var n=r(1047),i=r(1315),s=r(1168),o=r(1106),a=r(1316),f=r(1317);function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return u(t),t.baseURL&&!a(t.url)&&(t.url=f(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||o.adapter)(t).then((function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1315:function(t,e,r){"use strict";var n=r(1047);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},1316:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},1317:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},1318:function(t,e,r){"use strict";var n=r(1169);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},1319:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1320:function(t,e,r){"use strict";t.exports=function(t){return new Uint8Array(atob(t).split("").map((function(t){return t.charCodeAt(0)})))}},1321:function(t,e,r){"use strict";var n=r(1170),i=n.OEM,s=n.PSM;t.exports={defaultOptions:{langPath:"https://tessdata.projectnaptha.com/4.0.0",workerBlobURL:!0},defaultParams:{tessedit_ocr_engine_mode:i.LSTM_ONLY,tessedit_pageseg_mode:s.SINGLE_BLOCK,tessedit_char_whiltelist:"",tessjs_create_pdf:"0",tessjs_create_hocr:"1",tessjs_create_tsv:"1",tessjs_create_box:"0",tessjs_create_unlv:"0",tessjs_create_osd:"0",tessjs_textonly_pdf:"0",tessjs_pdf_name:"tesseract.js-ocr-result",tessjs_pdf_title:"Tesseract.js OCR Result",tessjs_pdf_auto_download:!0,tessjs_pdf_bin:!1,tessjs_image_rectangle_left:0,tessjs_image_rectangle_top:0,tessjs_image_rectangle_width:-1,tessjs_image_rectangle_height:-1}}},1322:function(t){t.exports=JSON.parse('{"name":"tesseract.js","version":"2.0.0-alpha.16","description":"Pure Javascript Multilingual OCR","main":"src/index.js","types":"types/index.d.ts","unpkg":"dist/tesseract.min.js","jsdelivr":"dist/tesseract.min.js","scripts":{"start":"node scripts/server.js","build":"rimraf dist && webpack --config scripts/webpack.config.prod.js","prepublishOnly":"npm run build","wait":"wait-on http://localhost:3000/package.json","test":"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:* test:node","test:node":"nyc mocha --exit --bail --require ./scripts/test-helper.js ./tests/*.test.js","test:browser-tpl":"mocha-headless-chrome -a incognito -a no-sandbox -a disable-setuid-sandbox -t 300000","test:browser:detect":"npm run test:browser-tpl -- -f ./tests/detect.test.html","test:browser:recognize":"npm run test:browser-tpl -- -f ./tests/recognize.test.html","lint":"eslint src","postinstall":"opencollective-postinstall || true"},"browser":{"./src/node/index.js":"./src/browser/index.js"},"author":"","contributors":["jeromewu"],"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","acorn":"^6.1.1","babel-loader":"^8.0.6","cors":"^2.8.5","eslint":"^5.9.0","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jsx-a11y":"^6.1.2","eslint-plugin-react":"^7.11.1","expect.js":"^0.3.1","express":"^4.16.4","mocha":"^5.2.0","mocha-headless-chrome":"^2.0.2","npm-run-all":"^4.1.5","nyc":"^13.1.0","rimraf":"^2.6.3","wait-on":"^3.2.0","webpack":"^4.26.0","webpack-cli":"^3.1.2","webpack-dev-middleware":"^3.4.0"},"dependencies":{"axios":"^0.18.0","check-types":"^7.4.0","is-url":"1.2.2","opencollective-postinstall":"^2.0.2","resolve-url":"^0.2.1","tesseract.js-core":"^2.0.0-beta.12","tesseract.js-utils":"^1.0.0-beta.8"},"repository":{"type":"git","url":"https://github.com/naptha/tesseract.js.git"},"bugs":{"url":"https://github.com/naptha/tesseract.js/issues"},"homepage":"https://github.com/naptha/tesseract.js","collective":{"type":"opencollective","url":"https://opencollective.com/tesseractjs"}}')},1323:function(t,e,r){"use strict";var n=r(56)(r(10));t.exports=function(t){var e=(0,n.default)({},t,{paragraphs:[],lines:[],words:[],symbols:[]});return e.blocks.forEach((function(t){var r=(0,n.default)({},t,{page:e,lines:[],words:[],symbols:[]});r.paragraphs.forEach((function(t){var i=(0,n.default)({},t,{block:r,page:e,words:[],symbols:[]});i.lines.forEach((function(t){var s=(0,n.default)({},t,{paragraph:i,block:r,page:e,symbols:[]});s.words.forEach((function(t){var o=(0,n.default)({},t,{line:s,paragraph:i,block:r,page:e});o.symbols.forEach((function(t){var a=(0,n.default)({},t,{word:o,line:s,paragraph:i,block:r,page:e});a.line.symbols.push(a),a.paragraph.symbols.push(a),a.block.symbols.push(a),a.page.symbols.push(a)})),o.paragraph.words.push(o),o.block.words.push(o),o.page.words.push(o)})),s.block.lines.push(s),s.page.lines.push(s)})),i.page.paragraphs.push(i)}))})),e}},1324:function(t,e,r){"use strict";var n=r(1164),i=0,s=function(){function t(t){i+=1,this.id="Job-"+i+"-"+Math.random().toString(16).slice(3,8),this._worker=t,this._resolve=[],this._reject=[],this._progress=[],this._finally=[]}var e=t.prototype;return e.then=function(t,e){var r=this;return new Promise((function(t,e){r._resolve.push?r._resolve.push(t):t(r._result),r.catch(e)})).then(t,e)},e.catch=function(t){return this._reject.push?this._reject.push(t):t(this._reject),this},e.progress=function(t){return this._progress.push(t),this},e.finally=function(t){return this._finally.push(t),this},e.send=function(t,e){n.sendPacket(this._worker,{jobId:this.id,action:t,payload:e})},e.handle=function(t){var e=t.data,r=!1;"resolve"===t.status?(0===this._resolve.length&&console.log(e),this._resolve.forEach((function(t){var r=t(e);r&&"function"==typeof r.then&&console.warn("TesseractJob instances do not chain like ES6 Promises. To convert it into a real promise, use Promise.resolve.")})),this._resolve=e,this._worker.dequeue(),r=!0):"reject"===t.status?(0===this._reject.length&&console.error(e),this._reject.forEach((function(t){return t(e)})),this._reject=e,this._worker.dequeue(),r=!0):"progress"===t.status?this._progress.forEach((function(t){return t(e)})):console.warn("Message type unknown",t.status),r&&this._finally.forEach((function(t){return t(e)}))},t}();t.exports=s},547:function(t,e,r){"use strict";var n=r(56)(r(10)),i=r(1274),s=r(1302),o=r(1170);t.exports=(0,n.default)({TesseractWorker:s,utils:i},o)}}]); //# sourceMappingURL=tesseract.js.map