/** * @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;o1&&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,u=t.length;c>2,m=(3&l)<<4|h>>4,g=c+1>6:64,y=c+20&&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=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,u=!0,l=!1;return{s:function s(){i=t[Symbol.iterator]()},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=!0;c=t},f:function f(){try{u||null==i.return||i.return()}finally{if(l)throw c}}}}(t);try{for(o.s();!(r=o.n()).done;){var a=(l=r.value,h=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(l)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var i=[],o=!0,a=!1,c=void 0;try{for(var u,l=t[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){i.push(u.value);if(r&&i.length===r)break}}catch(t){a=!0;c=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw c}}return i}(l,h)||_unsupportedIterableToArray(l,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],u=a[1];i[c]=u}}catch(t){o.e(t)}finally{o.f()}var l,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(y,"")};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>8&255));r.push(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;it.length)&&(r=t.length);for(var i=0,o=new Array(r);i=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 u=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=u;var l=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=l;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 p=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(c);r.MissingPDFException=p;var d=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=d;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 g=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(c);r.AbortException=g;var y=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,i=new Uint8Array(r),o=0;ot[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 checkObjectFromEntries(){Object.fromEntries||i(49)}();!function checkStringPadStart(){String.prototype.padStart||i(82)}();!function checkStringPadEnd(){String.prototype.padEnd||i(88)}();!function checkObjectValues(){Object.values||(Object.values=i(90))}();!function checkObjectEntries(){Object.entries||(Object.entries=i(93))}()}},(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(22),u=i(25),l=i(26),h=i(36),p=i(48);t.exports=function(t,r){var i,d,m,g,y,v=t.target,b=t.global,x=t.stat;if(i=b?o:x?o[v]||l(v,{}):(o[v]||{}).prototype)for(d in r){g=r[d];m=t.noTargetGet?(y=a(i,d))&&y.value:i[d];if(!p(b?d:v+(x?".":"#")+d,t.forced)&&void 0!==m){if(typeof g==typeof m)continue;h(g,m)}(t.sham||m&&m.sham)&&c(g,"sham",!0);u(i,d,g,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),u=i(13),l=i(17),h=i(19),p=i(20),d=Object.getOwnPropertyDescriptor;r.f=o?d:function getOwnPropertyDescriptor(t,r){t=u(t);r=l(r,!0);if(p)try{return d(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=>{var r={}.hasOwnProperty;t.exports=function(t,i){return r.call(t,i)}},(t,r,i)=>{var o=i(9),a=i(10),c=i(21);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,u=a(c)&&a(c.createElement);t.exports=function(t){return u?c.createElement(t):{}}},(t,r,i)=>{var o=i(9),a=i(23),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(20),c=i(24),u=i(17),l=Object.defineProperty;r.f=o?l:function defineProperty(t,r,i){c(t);r=u(r,!0);c(i);if(a)try{return l(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(22),c=i(19),u=i(26),l=i(27),h=i(29),p=h.get,d=h.enforce,m=String(String).split("String");(t.exports=function(t,r,i,l){var h,p=!!l&&!!l.unsafe,g=!!l&&!!l.enumerable,y=!!l&&!!l.noTargetGet;if("function"==typeof i){"string"!=typeof r||c(i,"name")||a(i,"name",r);(h=d(i)).source||(h.source=m.join("string"==typeof r?r:""))}if(t!==o){p?!y&&t[r]&&(g=!0):delete t[r];g?t[r]=i:a(t,r,i)}else g?t[r]=i:u(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&p(this).source||l(this)}))},(t,r,i)=>{var o=i(7),a=i(22);t.exports=function(t,r){try{a(o,t,r)}catch(i){o[t]=r}return r}},(t,r,i)=>{var o=i(28),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(26),c="__core-js_shared__",u=o[c]||a(c,{});t.exports=u},(t,r,i)=>{var o,a,c,u=i(30),l=i(7),h=i(18),p=i(22),d=i(19),m=i(28),g=i(31),y=i(35),v=l.WeakMap;if(u){var b=m.state||(m.state=new v),x=b.get,w=b.has,_=b.set;o=function(t,r){r.facade=t;_.call(b,t,r);return r};a=function(t){return x.call(b,t)||{}};c=function(t){return w.call(b,t)}}else{var S=g("state");y[S]=!0;o=function(t,r){r.facade=t;p(t,S,r);return r};a=function(t){return d(t,S)?t[S]:{}};c=function(t){return d(t,S)}}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(27),c=o.WeakMap;t.exports="function"==typeof c&&/native code/.test(a(c))},(t,r,i)=>{var o=i(32),a=i(34),c=o("keys");t.exports=function(t){return c[t]||(c[t]=a(t))}},(t,r,i)=>{var o=i(33),a=i(28);(t.exports=function(t,r){return a[t]||(a[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.10.0",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(37),c=i(8),u=i(23);t.exports=function(t,r){for(var i=a(r),l=u.f,h=c.f,p=0;p{var o=i(38),a=i(40),c=i(47),u=i(24);t.exports=o("Reflect","ownKeys")||function ownKeys(t){var r=a.f(u(t)),i=c.f;return i?r.concat(i(t)):r}},(t,r,i)=>{var o=i(39),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(41),a=i(46).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(42).indexOf,u=i(35);t.exports=function(t,r){var i,l=a(t),h=0,p=[];for(i in l)!o(u,i)&&o(l,i)&&p.push(i);for(;r.length>h;)o(l,i=r[h++])&&(~c(p,i)||p.push(i));return p}},(t,r,i)=>{var o=i(13),a=i(43),c=i(45),createMethod=function(t){return function(r,i,u){var l,h=o(r),p=a(h.length),d=c(u,p);if(t&&i!=i){for(;p>d;)if((l=h[d++])!=l)return!0}else for(;p>d;d++)if((t||d in h)&&h[d]===i)return t||d||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,i)=>{var o=i(44),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(44),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=u[c(t)];return i==h||i!=l&&("function"==typeof r?o(r):!!r)},c=isForced.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=isForced.data={},l=isForced.NATIVE="N",h=isForced.POLYFILL="P";t.exports=isForced},(t,r,i)=>{i(50);i(72);var o=i(39);t.exports=o.Object.fromEntries},(t,r,i)=>{"use strict";var o=i(13),a=i(51),c=i(62),u=i(29),l=i(63),h="Array Iterator",p=u.set,d=u.getterFor(h);t.exports=l(Array,"Array",(function(t,r){p(this,{type:h,target:o(t),index:0,kind:r})}),(function(){var t=d(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(52),a=i(58),c=i(23),u=o("unscopables"),l=Array.prototype;null==l[u]&&c.f(l,u,{configurable:!0,value:a(null)});t.exports=function(t){l[u][t]=!0}},(t,r,i)=>{var o=i(7),a=i(32),c=i(19),u=i(34),l=i(53),h=i(57),p=a("wks"),d=o.Symbol,m=h?d:d&&d.withoutSetter||u;t.exports=function(t){c(p,t)&&(l||"string"==typeof p[t])||(l&&c(d,t)?p[t]=d[t]:p[t]=m("Symbol."+t));return p[t]}},(t,r,i)=>{var o=i(54),a=i(55),c=i(10);t.exports=!!Object.getOwnPropertySymbols&&!c((function(){return!Symbol.sham&&(o?38===a:a>37&&a<41)}))},(t,r,i)=>{var o=i(15),a=i(7);t.exports="process"==o(a.process)},(t,r,i)=>{var o,a,c=i(7),u=i(56),l=c.process,h=l&&l.versions,p=h&&h.v8;p?a=(o=p.split("."))[0]+o[1]:u&&(!(o=u.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=u.match(/Chrome\/(\d+)/))&&(a=o[1]);t.exports=a&&+a},(t,r,i)=>{var o=i(38);t.exports=o("navigator","userAgent")||""},(t,r,i)=>{var o=i(53);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,i)=>{var o,a=i(24),c=i(59),u=i(46),l=i(35),h=i(61),p=i(21),d=i(31),m=d("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"