Generic build of PDF.js library.
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
125 KiB

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("pdfjs-dist/image_decoders/pdf.image_decoders",[],e):"object"==typeof exports?exports["pdfjs-dist/image_decoders/pdf.image_decoders"]=e():t["pdfjs-dist/image_decoders/pdf.image_decoders"]=t.pdfjsImageDecoders=e()}(this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getVerbosityLevel",{enumerable:!0,get:function(){return r.getVerbosityLevel}}),Object.defineProperty(e,"setVerbosityLevel",{enumerable:!0,get:function(){return r.setVerbosityLevel}}),Object.defineProperty(e,"Jbig2mage",{enumerable:!0,get:function(){return i.Jbig2mage}}),Object.defineProperty(e,"JpegImage",{enumerable:!0,get:function(){return o.JpegImage}}),Object.defineProperty(e,"JpxImage",{enumerable:!0,get:function(){return s.JpxImage}});var r=n(1),i=n(133),o=n(136),s=n(137)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=w,e.arraysToBytes=function(t){if(1===t.length&&t[0]instanceof Uint8Array)return t[0];var e,n,r,i=0,o=t.length;for(e=0;e<o;e++)n=t[e],r=w(n),i+=r;var s=0,a=new Uint8Array(i);for(e=0;e<o;e++)(n=t[e])instanceof Uint8Array||(n="string"==typeof n?b(n):new Uint8Array(n)),r=n.byteLength,a.set(n,s),s+=r;return a},e.assert=f,e.bytesToString=function(t){f(null!==t&&"object"===o(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var n=[],r=0;r<e;r+=8192){var i=Math.min(r+8192,e),s=t.subarray(r,i);n.push(String.fromCharCode.apply(null,s))}return n.join("")},e.createPromiseCapability=function(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise(function(n,r){t.resolve=function(t){e=!0,n(t)},t.reject=function(t){e=!0,r(t)}}),t},e.getVerbosityLevel=function(){return a},e.info=function(t){a>=s.INFOS&&console.log("Info: "+t)},e.isArrayBuffer=function(t){return"object"===o(t)&&null!==t&&void 0!==t.byteLength},e.isArrayEqual=function(t,e){if(t.length!==e.length)return!1;return t.every(function(t,n){return t===e[n]})},e.isBool=function(t){return"boolean"==typeof t},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.isNum=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSpace=function(t){return 32===t||9===t||13===t||10===t},e.isSameOrigin=function(t,e){try{var n=new i.URL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}var r=new i.URL(e,n);return n.origin===r.origin},e.createValidAbsoluteUrl=function(t,e){if(!t)return null;try{var n=e?new i.URL(t,e):new i.URL(t);if(function(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(t){}return null},e.isLittleEndian=function(){var t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]},e.isEvalSupported=function(){try{return new Function(""),!0}catch(t){return!1}},e.log2=function(t){if(t<=0)return 0;return Math.ceil(Math.log2(t))},e.readInt8=function(