@azinformatica/pdfjs-dist
Version:
Generic build of Mozilla's PDF.js library. (FORK)
22 lines • 169 kB
JavaScript
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2021 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* Javascript code in this page
*/
!function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pdfjs-dist/image_decoders/pdf.image_decoders",[],r):"object"==typeof exports?exports["pdfjs-dist/image_decoders/pdf.image_decoders"]=r():t["pdfjs-dist/image_decoders/pdf.image_decoders"]=t.pdfjsImageDecoders=r()}(this,(function(){return(()=>{var t=[,(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var i=0,o=0;o<r;o++)i+=arrayByteLength(t[o]);for(var a=0,c=new Uint8Array(i),l=0;l<r;l++){var u=t[l];u instanceof Uint8Array||(u="string"==typeof u?stringToBytes(u):new Uint8Array(u));var h=u.byteLength;c.set(u,a);a+=h}return c};r.assert=assert;r.bytesToString=function bytesToString(t){assert(null!==t&&"object"===_typeof(t)&&void 0!==t.length,"Invalid argument for bytesToString");var r=t.length,i=8192;if(r<i)return String.fromCharCode.apply(null,t);for(var o=[],a=0;a<r;a+=i){var c=Math.min(a+i,r),l=t.subarray(a,c);o.push(String.fromCharCode.apply(null,l))}return o.join("")};r.createObjectURL=function createObjectURL(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!i)return URL.createObjectURL(new Blob([t],{type:r}));for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="data:".concat(r,";base64,"),c=0,l=t.length;c<l;c+=3){var u=255&t[c],h=255&t[c+1],d=255&t[c+2],p=u>>2,m=(3&u)<<4|h>>4,y=c+1<l?(15&h)<<2|d>>6:64,v=c+2<l?63&d:64;a+=o[p]+o[m]+o[y]+o[v]}return a};r.createPromiseCapability=function createPromiseCapability(){var t=Object.create(null),r=!1;Object.defineProperty(t,"settled",{get:function get(){return r}});t.promise=new Promise((function(i,o){t.resolve=function(t){r=!0;i(t)};t.reject=function(t){r=!0;o(t)}}));return t};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,r){if(!t)return null;try{var i=r?new URL(t,r):new URL(t);if(function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch(t){}return null};r.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return a};r.info=function info(t){a>=o.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;for(var i=0,o=t.length;i<o;i++)if(t[i]!==r[i])return!1;return!0};r.isAscii=function isAscii(t){return/^[\x00-\x7F]*$/.test(t)};r.isBool=function isBool(t){return"boolean"==typeof t};r.isNum=function isNum(t){return"number"==typeof t};r.isSameOrigin=function isSameOrigin(t,r){var i;try{if(!(i=new URL(t)).origin||"null"===i.origin)return!1}catch(t){return!1}var o=new URL(r,i);return i.origin===o.origin};r.isString=function isString(t){return"string"==typeof t};r.objectFromMap=function objectFromMap(t){var r,i=Object.create(null),o=function _createForOfIteratorHelper(t,r){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){i&&(t=i);var o=0,a=function F(){};return{s:a,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,u=!1;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();l=t.done;return t},e:function e(t){u=!0;c=t},f:function f(){try{l||null==i.return||i.return()}finally{if(u)throw c}}}}(t);try{for(o.s();!(r=o.n()).done;){var a=(u=r.value,h=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(u)||function _iterableToArrayLimit(t,r){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var o,a,c=[],l=!0,u=!1;try{for(i=i.call(t);!(l=(o=i.next()).done);l=!0){c.push(o.value);if(r&&c.length===r)break}}catch(t){u=!0;a=t}finally{try{l||null==i.return||i.return()}finally{if(u)throw a}}return c}(u,h)||_unsupportedIterableToArray(u,h)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],l=a[1];i[c]=l}}catch(t){o.e(t)}finally{o.f()}var u,h;return i};r.objectSize=function objectSize(t){return Object.keys(t).length};r.removeNullCharacters=function removeNullCharacters(t){if("string"!=typeof t){warn("The argument for removeNullCharacters must be a string.");return t}return t.replace(v,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(a=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){var r=t.length,i=[];if("þ"===t[0]&&"ÿ"===t[1])for(var o=2;o<r;o+=2)i.push(String.fromCharCode(t.charCodeAt(o)<<8|t.charCodeAt(o+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var a=2;a<r;a+=2)i.push(String.fromCharCode(t.charCodeAt(a+1)<<8|t.charCodeAt(a)));else for(var c=0;c<r;++c){var l=_[t.charCodeAt(c)];i.push(l?String.fromCharCode(l):t.charAt(c))}return i.join("")};r.stringToUTF16BEString=function stringToUTF16BEString(t){for(var r=["þÿ"],i=0,o=t.length;i<o;i++){var a=t.charCodeAt(i);r.push(String.fromCharCode(a>>8&255),String.fromCharCode(255&a))}return r.join("")};r.stringToUTF8String=function stringToUTF8String(t){return decodeURIComponent(escape(t))};r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;r.VerbosityLevel=r.Util=r.UNSUPPORTED_FEATURES=r.UnknownErrorException=r.UnexpectedResponseException=r.TextRenderingMode=r.StreamType=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.IsLittleEndianCached=r.IsEvalSupportedCached=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;i(2);function _defineProperties(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1;o.configurable=!0;"value"in o&&(o.writable=!0);Object.defineProperty(t,o.key,o)}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);return"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var i,o=_getPrototypeOf(t);if(r){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.IDENTITY_MATRIX=[1,0,0,1,0,0];r.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];r.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};r.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};r.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};r.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};r.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};r.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};r.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};r.AnnotationReplyType={GROUP:"Group",REPLY:"R"};r.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};r.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};r.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};r.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};r.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};r.PageActionEventType={O:"PageOpen",C:"PageClose"};r.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};r.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var o={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=o;r.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};r.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var a=o.WARNINGS;function warn(t){a>=o.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}function shadow(t,r,i){Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!1});return i}var c=function BaseExceptionClosure(){function BaseException(t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=this.constructor.name}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=c;var l=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,i){var o;_classCallCheck(this,PasswordException);(o=r.call(this,t)).code=i;return o}return PasswordException}(c);r.PasswordException=l;var u=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,i){var o;_classCallCheck(this,UnknownErrorException);(o=r.call(this,t)).details=i;return o}return UnknownErrorException}(c);r.UnknownErrorException=u;var h=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return r.apply(this,arguments)}return InvalidPDFException}(c);r.InvalidPDFException=h;var d=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(c);r.MissingPDFException=d;var p=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,i){var o;_classCallCheck(this,UnexpectedResponseException);(o=r.call(this,t)).status=i;return o}return UnexpectedResponseException}(c);r.UnexpectedResponseException=p;var m=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(){_classCallCheck(this,FormatError);return r.apply(this,arguments)}return FormatError}(c);r.FormatError=m;var y=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(c);r.AbortException=y;var v=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,i=new Uint8Array(r),o=0;o<r;++o)i[o]=255&t.charCodeAt(o);return i}function arrayByteLength(t){if(void 0!==t.length)return t.length;assert(void 0!==t.byteLength,"arrayByteLength - invalid argument.");return t.byteLength}var g={get value(){return shadow(this,"value",function isLittleEndian(){var t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}};r.IsLittleEndianCached=g;var b={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=b;var x=function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(256).keys()).map((function(t){return t.toString(16).padStart(2,"0")})),w=function(){function Util(){_classCallCheck(this,Util)}!function _createClass(t,r,i){r&&_defineProperties(t.prototype,r);i&&_defineProperties(t,i);return t}(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,i){return"#".concat(x[t]).concat(x[r]).concat(x[i])}},{key:"transform",value:function transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}},{key:"applyTransform",value:function applyTransform(t,r){return[t[0]*r[0]+t[1]*r[2]+r[4],t[0]*r[1]+t[1]*r[3]+r[5]]}},{key:"applyInverseTransform",value:function applyInverseTransform(t,r){var i=r[0]*r[3]-r[1]*r[2];return[(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/i,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/i]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var i=Util.applyTransform(t,r),o=Util.applyTransform(t.slice(2,4),r),a=Util.applyTransform([t[0],t[3]],r),c=Util.applyTransform([t[2],t[1]],r);return[Math.min(i[0],o[0],a[0],c[0]),Math.min(i[1],o[1],a[1],c[1]),Math.max(i[0],o[0],a[0],c[0]),Math.max(i[1],o[1],a[1],c[1])]}},{key:"inverseTransform",value:function inverseTransform(t){var r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}},{key:"apply3dTransform",value:function apply3dTransform(t,r){return[t[0]*r[0]+t[1]*r[1]+t[2]*r[2],t[3]*r[0]+t[4]*r[1]+t[5]*r[2],t[6]*r[0]+t[7]*r[1]+t[8]*r[2]]}},{key:"singularValueDecompose2dScale",value:function singularValueDecompose2dScale(t){var r=[t[0],t[2],t[1],t[3]],i=t[0]*r[0]+t[1]*r[2],o=t[0]*r[1]+t[1]*r[3],a=t[2]*r[0]+t[3]*r[2],c=t[2]*r[1]+t[3]*r[3],l=(i+c)/2,u=Math.sqrt(Math.pow(i+c,2)-4*(i*c-a*o))/2,h=l+u||1,d=l-u||1;return[Math.sqrt(h),Math.sqrt(d)]}},{key:"normalizeRect",value:function normalizeRect(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){function compare(t,r){return t-r}var i=[t[0],t[2],r[0],r[2]].sort(compare),o=[t[1],t[3],r[1],r[3]].sort(compare),a=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0]))return null;a[0]=i[1];a[2]=i[2];if(!(o[0]===t[1]&&o[1]===r[1]||o[0]===r[1]&&o[1]===t[1]))return null;a[1]=o[1];a[3]=o[2];return a}}]);return Util}();r.Util=w;var _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]},(t,r,i)=>{"use strict";var o=i(3);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=i(4));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&o.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&o.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&o.isNodeJS&&(globalThis.DOMMatrix=i(50))}();!function checkObjectFromEntries(){Object.fromEntries||i(51)}()}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isNodeJS=void 0;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=i},(t,r,i)=>{i(5);t.exports=i(7)},(t,r,i)=>{i(6)({global:!0},{globalThis:i(7)})},(t,r,i)=>{var o=i(7),a=i(8).f,c=i(23),l=i(26),u=i(27),h=i(37),d=i(49);t.exports=function(t,r){var i,p,m,y,v,g=t.target,b=t.global,x=t.stat;if(i=b?o:x?o[g]||u(g,{}):(o[g]||{}).prototype)for(p in r){y=r[p];m=t.noTargetGet?(v=a(i,p))&&v.value:i[p];if(!d(b?p:g+(x?".":"#")+p,t.forced)&&void 0!==m){if(typeof y==typeof m)continue;h(y,m)}(t.sham||m&&m.sham)&&c(y,"sham",!0);l(i,p,y,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(t,r,i)=>{var o=i(9),a=i(11),c=i(12),l=i(13),u=i(17),h=i(19),d=i(21),p=Object.getOwnPropertyDescriptor;r.f=o?p:function getOwnPropertyDescriptor(t,r){t=l(t);r=u(r,!0);if(d)try{return p(t,r)}catch(t){}if(h(t,r))return c(!a.f.call(t,r),t[r])}},(t,r,i)=>{var o=i(10);t.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,r)=>{"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!i.call({1:2},1);r.f=a?function propertyIsEnumerable(t){var r=o(this,t);return!!r&&r.enumerable}:i},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,i)=>{var o=i(14),a=i(16);t.exports=function(t){return o(a(t))}},(t,r,i)=>{var o=i(10),a=i(15),c="".split;t.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?c.call(t,""):Object(t)}:Object},t=>{var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},(t,r,i)=>{var o=i(18);t.exports=function(t,r){if(!o(t))return t;var i,a;if(r&&"function"==typeof(i=t.toString)&&!o(a=i.call(t)))return a;if("function"==typeof(i=t.valueOf)&&!o(a=i.call(t)))return a;if(!r&&"function"==typeof(i=t.toString)&&!o(a=i.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},(t,r,i)=>{var o=i(20),a={}.hasOwnProperty;t.exports=Object.hasOwn||function hasOwn(t,r){return a.call(o(t),r)}},(t,r,i)=>{var o=i(16);t.exports=function(t){return Object(o(t))}},(t,r,i)=>{var o=i(9),a=i(10),c=i(22);t.exports=!o&&!a((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},(t,r,i)=>{var o=i(7),a=i(18),c=o.document,l=a(c)&&a(c.createElement);t.exports=function(t){return l?c.createElement(t):{}}},(t,r,i)=>{var o=i(9),a=i(24),c=i(12);t.exports=o?function(t,r,i){return a.f(t,r,c(1,i))}:function(t,r,i){t[r]=i;return t}},(t,r,i)=>{var o=i(9),a=i(21),c=i(25),l=i(17),u=Object.defineProperty;r.f=o?u:function defineProperty(t,r,i){c(t);r=l(r,!0);c(i);if(a)try{return u(t,r,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");"value"in i&&(t[r]=i.value);return t}},(t,r,i)=>{var o=i(18);t.exports=function(t){if(!o(t))throw TypeError(String(t)+" is not an object");return t}},(t,r,i)=>{var o=i(7),a=i(23),c=i(19),l=i(27),u=i(28),h=i(30),d=h.get,p=h.enforce,m=String(String).split("String");(t.exports=function(t,r,i,u){var h,d=!!u&&!!u.unsafe,y=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet;if("function"==typeof i){"string"!=typeof r||c(i,"name")||a(i,"name",r);(h=p(i)).source||(h.source=m.join("string"==typeof r?r:""))}if(t!==o){d?!v&&t[r]&&(y=!0):delete t[r];y?t[r]=i:a(t,r,i)}else y?t[r]=i:l(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||u(this)}))},(t,r,i)=>{var o=i(7),a=i(23);t.exports=function(t,r){try{a(o,t,r)}catch(i){o[t]=r}return r}},(t,r,i)=>{var o=i(29),a=Function.toString;"function"!=typeof o.inspectSource&&(o.inspectSource=function(t){return a.call(t)});t.exports=o.inspectSource},(t,r,i)=>{var o=i(7),a=i(27),c="__core-js_shared__",l=o[c]||a(c,{});t.exports=l},(t,r,i)=>{var o,a,c,l=i(31),u=i(7),h=i(18),d=i(23),p=i(19),m=i(29),y=i(32),v=i(36),g="Object already initialized",b=u.WeakMap;if(l||m.state){var x=m.state||(m.state=new b),w=x.get,_=x.has,C=x.set;o=function(t,r){if(_.call(x,t))throw new TypeError(g);r.facade=t;C.call(x,t,r);return r};a=function(t){return w.call(x,t)||{}};c=function(t){return _.call(x,t)}}else{var k=y("state");v[k]=!0;o=function(t,r){if(p(t,k))throw new TypeError(g);r.facade=t;d(t,k,r);return r};a=function(t){return p(t,k)?t[k]:{}};c=function(t){return p(t,k)}}t.exports={set:o,get:a,has:c,enforce:function(t){return c(t)?a(t):o(t,{})},getterFor:function(t){return function(r){var i;if(!h(r)||(i=a(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},(t,r,i)=>{var o=i(7),a=i(28),c=o.WeakMap;t.exports="function"==typeof c&&/native code/.test(a(c))},(t,r,i)=>{var o=i(33),a=i(35),c=o("keys");t.exports=function(t){return c[t]||(c[t]=a(t))}},(t,r,i)=>{var o=i(34),a=i(29);(t.exports=function(t,r){return a[t]||(a[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.15.2",mode:o?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},t=>{t.exports=!1},t=>{var r=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+i).toString(36)}},t=>{t.exports={}},(t,r,i)=>{var o=i(19),a=i(38),c=i(8),l=i(24);t.exports=function(t,r){for(var i=a(r),u=l.f,h=c.f,d=0;d<i.length;d++){var p=i[d];o(t,p)||u(t,p,h(r,p))}}},(t,r,i)=>{var o=i(39),a=i(41),c=i(48),l=i(25);t.exports=o("Reflect","ownKeys")||function ownKeys(t){var r=a.f(l(t)),i=c.f;return i?r.concat(i(t)):r}},(t,r,i)=>{var o=i(40),a=i(7),aFunction=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(o[t])||aFunction(a[t]):o[t]&&o[t][r]||a[t]&&a[t][r]}},(t,r,i)=>{var o=i(7);t.exports=o},(t,r,i)=>{var o=i(42),a=i(47).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return o(t,a)}},(t,r,i)=>{var o=i(19),a=i(13),c=i(43).indexOf,l=i(36);t.exports=function(t,r){var i,u=a(t),h=0,d=[];for(i in u)!o(l,i)&&o(u,i)&&d.push(i);for(;r.length>h;)o(u,i=r[h++])&&(~c(d,i)||d.push(i));return d}},(t,r,i)=>{var o=i(13),a=i(44),c=i(46),createMethod=function(t){return function(r,i,l){var u,h=o(r),d=a(h.length),p=c(l,d);if(t&&i!=i){for(;d>p;)if((u=h[p++])!=u)return!0}else for(;d>p;p++)if((t||p in h)&&h[p]===i)return t||p||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,i)=>{var o=i(45),a=Math.min;t.exports=function(t){return t>0?a(o(t),9007199254740991):0}},t=>{var r=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:r)(t)}},(t,r,i)=>{var o=i(45),a=Math.max,c=Math.min;t.exports=function(t,r){var i=o(t);return i<0?a(i+r,0):c(i,r)}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,i)=>{var o=i(10),a=/#|\.prototype\./,isForced=function(t,r){var i=l[c(t)];return i==h||i!=u&&("function"==typeof r?o(r):!!r)},c=isForced.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=isForced.data={},u=isForced.NATIVE="N",h=isForced.POLYFILL="P";t.exports=isForced},(t,r,i)=>{"use strict";var o,a,c;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}c=function(){var t=function CSSMatrix(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];this.setIdentity();return t&&t.length&&this.setMatrixValue(t)},r={isIdentity:{configurable:!0},is2D:{configurable:!0}};r.isIdentity.get=function(){var t=this;return 1===t.m11&&0===t.m12&&0===t.m13&&0===t.m14&&0===t.m21&&1===t.m22&&0===t.m23&&0===t.m24&&0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m41&&0===t.m42&&0===t.m43&&1===t.m44};r.isIdentity.set=function(t){this.isIdentity=t};r.is2D.get=function(){var t=this;return 0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m43&&1===t.m44};r.is2D.set=function(t){this.is2D=t};Object.defineProperties(t.prototype,r);var i=t.prototype;function Translate(r,i,o){var a=new t;a.m41=r;a.e=r;a.m42=i;a.f=i;a.m43=o;return a}function Rotate(r,i,o){var a=new t,c=r*Math.PI/180,l=i*Math.PI/180,u=o*Math.PI/180,h=Math.cos(c),d=-Math.sin(c),p=Math.cos(l),m=-Math.sin(l),y=Math.cos(u),v=-Math.sin(u),g=p*y,b=-p*v;a.m11=g;a.a=g;a.m12=b;a.b=b;a.m13=m;var x=d*m*y+h*v;a.m21=x;a.c=x;var w=h*y-d*m*v;a.m22=w;a.d=w;a.m23=-d*p;a.m31=d*v-h*m*y;a.m32=d*y+h*m*v;a.m33=h*p;return a}function RotateAxisAngle(r,i,o,a){var c=new t,l=a*Math.PI/360,u=Math.sin(l),h=Math.cos(l),d=u*u,p=Math.sqrt(r*r+i*i+o*o),m=0,y=0,v=1;if(0!==p){m=r/p;y=i/p;v=o/p}var g=m*m,b=y*y,x=v*v,w=1-2*(b+x)*d;c.m11=w;c.a=w;var _=2*(r*i*d+o*u*h);c.m12=_;c.b=_;c.m13=2*(r*o*d-i*u*h);var C=2*(i*r*d-o*u*h);c.m21=C;c.c=C;var k=1-2*(x+g)*d;c.m22=k;c.d=k;c.m23=2*(i*o*d+r*u*h);c.m31=2*(o*r*d+i*u*h);c.m32=2*(o*i*d-r*u*h);c.m33=1-2*(g+b)*d;c.m14=0;c.m24=0;c.m34=0;c.m41=0;c.e=0;c.m42=0;c.f=0;c.m43=0;c.m44=1;return c}function Scale(r,i,o){var a=new t;a.m11=r;a.a=r;a.m22=i;a.d=i;a.m33=o;return a}function SkewX(r){var i=r*Math.PI/180,o=new t,a=Math.tan(i);o.m21=a;o.c=a;return o}function SkewY(r){var i=r*Math.PI/180,o=new t,a=Math.tan(i);o.m12=a;o.b=a;return o}function Multiply(r,i){var o=i.m11*r.m11+i.m12*r.m21+i.m13*r.m31+i.m14*r.m41,a=i.m11*r.m12+i.m12*r.m22+i.m13*r.m32+i.m14*r.m42,c=i.m11*r.m13+i.m12*r.m23+i.m13*r.m33+i.m14*r.m43,l=i.m11*r.m14+i.m12*r.m24+i.m13*r.m34+i.m14*r.m44,u=i.m21*r.m11+i.m22*r.m21+i.m23*r.m31+i.m24*r.m41,h=i.m21*r.m12+i.m22*r.m22+i.m23*r.m32+i.m24*r.m42,d=i.m21*r.m13+i.m22*r.m23+i.m23*r.m33+i.m24*r.m43,p=i.m21*r.m14+i.m22*r.m24+i.m23*r.m34+i.m24*r.m44,m=i.m31*r.m11+i.m32*r.m21+i.m33*r.m31+i.m34*r.m41,y=i.m31*r.m12+i.m32*r.m22+i.m33*r.m32+i.m34*r.m42,v=i.m31*r.m13+i.m32*r.m23+i.m33*r.m33+i.m34*r.m43,g=i.m31*r.m14+i.m32*r.m24+i.m33*r.m34+i.m34*r.m44,b=i.m41*r.m11+i.m42*r.m21+i.m43*r.m31+i.m44*r.m41,x=i.m41*r.m12+i.m42*r.m22+i.m43*r.m32+i.m44*r.m42,w=i.m41*r.m13+i.m42*r.m23+i.m43*r.m33+i.m44*r.m43,_=i.m41*r.m14+i.m42*r.m24+i.m43*r.m34+i.m44*r.m44;return new t([o,u,m,b,a,h,y,x,c,d,v,w,l,p,g,_])}function feedFromArray(t,r){var i=Array.from(r);if(16===i.length){var o=i[0],a=i[1],c=i[2],l=i[3],u=i[4],h=i[5],d=i[6],p=i[7],m=i[8],y=i[9],v=i[10],g=i[11],b=i[12],x=i[13],w=i[14],_=i[15];t.m11=o;t.a=o;t.m21=a;t.c=a;t.m31=c;t.m41=l;t.e=l;t.m12=u;t.b=u;t.m22=h;t.d=h;t.m32=d;t.m42=p;t.f=p;t.m13=m;t.m23=y;t.m33=v;t.m43=g;t.m14=b;t.m24=x;t.m34=w;t.m44=_}else{if(6!==i.length)throw new TypeError("CSSMatrix: expecting a 6/16 values Array");var C=i[0],k=i[1],S=i[2],P=i[3],T=i[4],I=i[5];t.m11=C;t.a=C;t.m12=k;t.b=k;t.m21=S;t.c=S;t.m22=P;t.d=P;t.m14=T;t.e=T;t.m24=I;t.f=I}return t}i.setMatrixValue=function setMatrixValue(r){var i=this;if(!r||!r.length)return i;if(r.length&&"string"==typeof r[0]&&r[0].length){var o,a,c=String(r[0]).trim();if("none"===c)return i;o=c.slice(0,c.indexOf("("));a=c.slice("matrix"===o?7:9,-1).split(",").map((function(t){return Math.abs(t)<1e-6?0:+t}));if(!([6,16].indexOf(a.length)>-1))throw new TypeError("CSSMatrix: expecting valid CSS matrix() / matrix3d() syntax");feedFromArray(i,a)}else r[0]instanceof t?feedFromArray(i,r[0].toArray()):Array.isArray(r[0])?feedFromArray(i,r[0]):Array.isArray(r)&&feedFromArray(i,r);return i};i.toString=function toString(){return(this.is2D?"matrix":"matrix3d")+"("+this.toArray(1).join(",")+")"};i.toArray=function toArray(t){var r=this;return r.is2D?[r.a,r.b,r.c,r.d,r.e,r.f]:t?[r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44]:[r.m11,r.m21,r.m31,r.m41,r.m12,r.m22,r.m32,r.m42,r.m13,r.m23,r.m33,r.m43,r.m14,r.m24,r.m34,r.m44]};i.multiply=function multiply(t){return Multiply(this,t)};i.translate=function translate(t,r,i){var o=r,a=i;null==a&&(a=0);null==o&&(o=0);return Multiply(this,Translate(t,o,a))};i.scale=function scale(t,r,i){var o=r,a=i;null==o&&(o=t);null==a&&(a=t);return Multiply(this,Scale(t,o,a))};i.rotate=function rotate(t,r,i){var o=t,a=r,c=i;null==a&&(a=0);if(null==c){c=o;o=0}return Multiply(this,Rotate(o,a,c))};i.rotateAxisAngle=function rotateAxisAngle(t,r,i,o){if(4!==arguments.length)throw new TypeError("CSSMatrix: expecting 4 values");return Multiply(this,RotateAxisAngle(t,r,i,o))};i.skewX=function skewX(t){return Multiply(this,SkewX(t))};i.skewY=function skewY(t){return Multiply(this,SkewY(t))};i.setIdentity=function setIdentity(){return feedFromArray(this,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};i.transformPoint=function transformPoint(t){var r=Translate(t.x,t.y,t.z);r.m44=t.w||1;return{x:(r=this.multiply(r)).m41,y:r.m42,z:r.m43,w:r.m44}};i.transform=function transform(t){var r=this,i=r.m11*t.x+r.m12*t.y+r.m13*t.z+r.m14*t.w,o=r.m21*t.x+r.m22*t.y+r.m23*t.z+r.m24*t.w,a=r.m31*t.x+r.m32*t.y+r.m33*t.z+r.m34*t.w,c=r.m41*t.x+r.m42*t.y+r.m43*t.z+r.m44*t.w;return{x:i/c,y:o/c,z:a/c,w:c}};t.Translate=Translate;t.Rotate=Rotate;t.RotateAxisAngle=RotateAxisAngle;t.Scale=Scale;t.SkewX=SkewX;t.SkewY=SkewY;t.Multiply=Multiply;t.fromMatrix=function fromMatrix(r){return new t([r.m11,r.m21,r.m31,r.m41,r.m12,r.m22,r.m32,r.m42,r.m13,r.m23,r.m33,r.m43,r.m14,r.m24,r.m34,r.m44])};t.fromArray=function fromArray(r){return feedFromArray(new t,r)};t.feedFromArray=feedFromArray;return t},"object"===_typeof(r)?t.exports=c():void 0!==(a="function"==typeof(o=c)?o.call(r,i,r,t):o)&&(t.exports=a)},(t,r,i)=>{i(52);i(72);var o=i(40);t.exports=o.Object.fromEntries},(t,r,i)=>{"use strict";var o=i(13),a=i(53),c=i(63),l=i(30),u=i(64),h="Array Iterator",d=l.set,p=l.getterFor(h);t.exports=u(Array,"Array",(function(t,r){d(this,{type:h,target:o(t),index:0,kind:r})}),(function(){var t=p(this),r=t.target,i=t.kind,o=t.index++;if(!r||o>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==i?{value:o,done:!1}:"values"==i?{value:r[o],done:!1}:{value:[o,r[o]],done:!1}}),"values");c.Arguments=c.Array;a("keys");a("values");a("entries")},(t,r,i)=>{var o=i(54),a=i(59),c=i(24),l=o("unscopables"),u=Array.prototype;null==u[l]&&c.f(u,l,{configurable:!0,value:a(null)});t.exports=function(t){u[l][t]=!0}},(t,r,i)=>{var o=i(7),a=i(33),c=i(19),l=i(35),u=i(55),h=i(58),d=a("wks"),p=o.Symbol,m=h?p:p&&p.withoutSetter||l;t.exports=function(t){c(d,t)&&(u||"string"==typeof d[t])||(u&&c(p,t)?d[t]=p[t]:d[t]=m("Symbol."+t));return d[t]}},(t,r,i)=>{var o=i(56),a=i(10);t.exports=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},(t,r,i)=>{var o,a,c=i(7),l=i(57),u=c.process,h=u&&u.versions,d=h&&h.v8;d?a=(o=d.split("."))[0]<4?1:o[0]+o[1]:l&&(!(o=l.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=l.match(/Chrome\/(\d+)/))&&(a=o[1]);t.exports=a&&+a},(t,r,i)=>{var o=i(39);t.exports=o("navigator","userAgent")||""},(t,r,i)=>{var o=i(55);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,i)=>{var o,a=i(25),c=i(60),l=i(47),u=i(36),h=i(62),d=i(22),p=i(32),m=p("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(t){}NullProtoObject=o?function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r}(o):function(){var t,r=d("iframe");r.style.display="none";h.appendChild(r);r.src=String("javascript:");(t=r.contentWindow.document).open();t.write(scriptTag("document.F=Object"));t.close();return t.F}();for(var t=l.length;t--;)delete NullProtoObject.prototype[l[t]];return NullProtoObject()};u[m]=!0;t.exports=Object.create||function create(t,r){var i;if(null!==t){EmptyConstructor.prototype=a(t);i=new EmptyConstructor;EmptyConstructor.prototype=null;i[m]=t}else i=NullProtoObject();return void 0===r?i:c(i,r)}},(t,r,i)=>{var o=i(9),a=i(24),c=i(25),l=i(61);t.exports=o?Object.defineProperties:function defineProperties(t,r){c(t);for(var i,o=l(r),u=o.length,h=0;u>h;)a.f(t,i=o[h++],r[i]);return t}},(t,r,i)=>{var o=i(42),a=i(47);t.exports=Object.keys||function keys(t){return o(t,a)}},(t,r,i)=>{var o=i(39);t.exports=o("document","documentElement")},t=>{t.exports={}},(t,r,i)=>{"use strict";var o=i(6),a=i(65),c=i(67),l=i(70),u=i(69),h=i(23),d=i(26),p=i(54),m=i(34),y=i(63),v=i(66),g=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w="keys",_="values",C="entries",returnThis=function(){return this};t.exports=function(t,r,i,p,v,k,S){a(i,r,p);var P,T,I,getIterationMethod=function(t){if(t===v&&B)return B;if(!b&&t in A)return A[t];switch(t){case w:return function keys(){return new i(this,t)};case _:return function values(){return new i(this,t)};case C:return function entries(){return new i(this,t)}}return function(){return new i(this)}},O=r+" Iterator",E=!1,A=t.prototype,R=A[x]||A["@@iterator"]||v&&A[v],B=!b&&R||getIterationMethod(v),M="Array"==r&&A.entries||R;if(M){P=c(M.call(new t));if(g!==Object.prototype&&P.next){m||c(P)===g||(l?l(P,g):"function"!=typeof P[x]&&h(P,x,returnThis));u(P,O,!0,!0);m&&(y[O]=returnThis)}}if(v==_&&R&&R.name!==_){E=!0;B=function values(){return R.call(this)}}m&&!S||A[x]===B||h(A,x,B);y[r]=B;if(v){T={values:getIterationMethod(_),keys:k?B:getIterationMethod(w),entries:getIterationMethod(C)};if(S)for(I in T)(b||E||!(I in A))&&d(A,I,T[I]);else o({target:r,proto:!0,forced:b||E},T)}return T}},(t,r,i)=>{"use strict";var o=i(66).IteratorPrototype,a=i(59),c=i(12),l=i(69),u=i(63),returnThis=function(){return this};t.exports=function(t,r,i){var h=r+" Iterator";t.prototype=a(o,{next:c(1,i)});l(t,h,!1,!0);u[h]=returnThis;return t}},(t,r,i)=>{"use strict";var o,a,c,l=i(10),u=i(67),h=i(23),d=i(19),p=i(54),m=i(34),y=p("iterator"),v=!1;[].keys&&("next"in(c=[].keys())?(a=u(u(c)))!==Object.prototype&&(o=a):v=!0);var g=null==o||l((function(){var t={};return o[y].call(t)!==t}));g&&(o={});m&&!g||d(o,y)||h(o,y,(function(){return this}));t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:v}},(t,r,i)=>{var o=i(19),a=i(20),c=i(32),l=i(68),u=c("IE_PROTO"),h=Object.prototype;t.exports=l?Object.getPrototypeOf:function(t){t=a(t);return o(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?h:null}},(t,r,i)=>{var o=i(10);t.exports=!o((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,i)=>{var o=i(24).f,a=i(19),c=i(54)("toStringTag");t.exports=function(t,r,i){t&&!a(t=i?t:t.prototype,c)&&o(t,c,{configurable:!0,value:r})}},(t,r,i)=>{var o=i(25),a=i(71);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]);r=i instanceof Array}catch(t){}return function setPrototypeOf(i,c){o(i);a(c);r?t.call(i,c):i.__proto__=c;return i}}():void 0)},(t,r,i)=>{var o=i(18);t.exports=function(t){if(!o(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},(t,r,i)=>{var o=i(6),a=i(73),c=i(81);o({target:"Object",stat:!0},{fromEntries:function fromEntries(t){var r={};a(t,(function(t,i){c(r,t,i)}),{AS_ENTRIES:!0});return r}})},(t,r,i)=>{var o=i(25),a=i(74),c=i(44),l=i(75),u=i(77),h=i(80),Result=function(t,r){this.stopped=t;this.result=r};t.exports=function(t,r,i){var d,p,m,y,v,g,b,x=i&&i.that,w=!(!i||!i.AS_ENTRIES),_=!(!i||!i.IS_ITERATOR),C=!(!i||!i.INTERRUPTED),k=l(r,x,1+w+C),stop=function(t){d&&h(d);return new Result(!0,t)},callFn=function(t){if(w){o(t);return C?k(t[0],t[1],stop):k(t[0],t[1])}return C?k(t,stop):k(t)};if(_)d=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(a(p)){for(m=0,y=c(t.length);y>m;m++)if((v=callFn(t[m]))&&v instanceof Result)return v;return new Result(!1)}d=p.call(t)}g=d.next;for(;!(b=g.call(d)).done;){try{v=callFn(b.value)}catch(t){h(d);throw t}if("object"==typeof v&&v&&v instanceof Result)return v}return new Result(!1)}},(t,r,i)=>{var o=i(54),a=i(63),c=o("iterator"),l=Array.prototype;t.exports=function(t){return void 0!==t&&(a.Array===t||l[c]===t)}},(t,r,i)=>{var o=i(76);t.exports=function(t,r,i){o(t);if(void 0===r)return t;switch(i){case 0:return function(){return t.call(r)};case 1:return function(i){return t.call(r,i)};case 2:return function(i,o){return t.call(r,i,o)};case 3:return function(i,o,a){return t.call(r,i,o,a)}}return function(){return t.apply(r,arguments)}}},t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},(t,r,i)=>{var o=i(78),a=i(63),c=i(54)("iterator");t.exports=function(t){if(null!=t)return t[c]||t["@@iterator"]||a[o(t)]}},(t,r,i)=>{var o=i(79),a=i(15),c=i(54)("toStringTag"),l="Arguments"==a(function(){return arguments}());t.exports=o?a:function(t){var r,i,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),c))?i:l?a(r):"Object"==(o=a(r))&&"function"==typeof r.callee?"Arguments":o}},(t,r,i)=>{var o={};o[i(54)("toStringTag")]="z";t.exports="[object z]"===String(o)},(t,r,i)=>{var o=i(25);t.exports=function(t){var r=t.return;if(void 0!==r)return o(r.call(t)).value}},(t,r,i)=>{"use strict";var o=i(17),a=i(24),c=i(12);t.exports=function(t,r,i){var l=o(r);l in t?a.f(t,l,c(0,i)):t[l]=i}},(t,r,i)=>{"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Image=void 0;var o=i(1),a=i(83),c=i(88),l=i(89);function _defineProperties(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1;o.configurable=!0;"value"in o&&(o.writable=!0);Object.defineProperty(t,o.key,o)}}function _createClass(t,r,i){r&&_defineProperties(t.prototype,r);i&&_defineProperties(t,i);return t}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var i,o=_getPrototypeOf(t);if(r){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=function(t){!function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}(Jbig2Error,t);var r=_createSuper(Jbig2Error);function Jbig2Error(t){_classCallCheck(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t))}return Jbig2Error}(o.BaseException),h=function(){function ContextCache(){_classCallCheck(this,ContextCache)}_createClass(ContextCache,[{key:"getContexts",value:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}}]);return ContextCache}(),d=function(){function DecodingContext(t,r,i){_classCallCheck(this,DecodingContext);this.data=t;this.start=r;this.end=i}_createClass(DecodingContext,[{key:"decoder",get:function get(){var t=new c.ArithmeticDecoder(this.data,this.start,this.end);return(0,o.shadow)(this,"decoder",t)}},{key:"contextCache",get:function get(){var t=new h;return(0,o.shadow)(this,"contextCache",t)}}]);return DecodingContext}();function decodeInteger(t,r,i){var o=t.getContexts(r),a=1;function readBits(t){for(var r=0,c=0;c<t;c++){var l=i.readBit(o,a);a=a<256?a<<1|l:511&(a<<1|l)|256;r=r<<1|l}return r>>>0}var c=readBits(1),l=readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(1)?readBits(32)+4436:readBits(12)+340:readBits(8)+84:readBits(6)+20:readBits(4)+4:readBits(2);return 0===c?l:l>0?-l:null}function decodeIAID(t,r,i){for(var o=t.getContexts("IAID"),a=1,c=0;c<i;c++){a=a<<1|r.readBit(o,a)}return i<31?a&(1<<i)-1:2147483647&a}var p=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],m=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],y=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],v=[39717,1941,229,405],g=[32,8];function decodeBitmap(t,r,i,o,a,c,l,u){if(t){return decodeMMRBitmap(new S(u.data,u.start,u.end),r,i,!1)}if(0===o&&!c&&!a&&4===l.length&&3===l[0].x&&-1===l[0].y&&-3===l[1].x&&-1===l[1].y&&2===l[2].x&&-2===l[2].y&&-2===l[3].x&&-2===l[3].y)return function decodeBitmapTemplate0(t,r,i){var o,a,c,l,u,h,d,p=i.decoder,m=i.contextCache.getContexts("GB"),y=[];for(a=0;a<r;a++){u=y[a]=new Uint8Array(t);h=a<1?u:y[a-1];o=(d=a<2?u:y[a-2])[0]<<13|d[1]<<12|d[2]<<11|h[0]<<7|h[1]<<6|h[2]<<5|h[3]<<4;for(c=0;c<t;c++){u[c]=l=p.readBit(m,o);o=(31735&o)<<1|(c+3<t?d[c+3]<<11:0)|(c+4<t?h[c+4]<<4:0)|l}}return y}(r,i,u);var h=!!c,d=m[o].concat(l);d.sort((function(t,r){return t.y-r.y||t.x-r.x}));var p,y,g=d.length,b=new Int8Array(g),x=new Int8Array(g),w=[],_=0,C=0,k=0,P=0;for(y=0;y<g;y++){b[y]=d[y].x;x[y]=d[y].y;C=Math.min(C,d[y].x);k=Math.max(k,d[y].x);P=Math.min(P,d[y].y);y<g-1&&d[y].y===d[y+1].y&&d[y].x===d[y+1].x-1?_|=1<<g-1-y:w.push(y)}var T=w.length,I=new Int8Array(T),O=new Int8Array(T),E=new Uint16Array(T);for(p=0;p<T;p++){y=w[p];I[p]=d[y].x;O