/** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2022 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/build/pdf.worker",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(this,(()=>(()=>{var t=[,(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var c=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),l=o(4),u=o(158),h=o(159),d=o(220),g=o(226),m=o(6),y=o(255),v=o(256),k=o(161);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var c=0,l=function F(){};return{s:l,n:function n(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}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.")}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o=l.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:N,sink:r,task:u,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(u);h&&(0,l.info)("page=".concat(c+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);if(!u.terminated){N.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));N.on("GetTextContent",(function wphExtractText(t,r){var c=t.pageIndex;o.getPage(c).then((function(o){var u=new _("GetTextContent: page "+c);startWorkerTask(u);var h=x>=l.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:N,task:u,sink:r,includeMarkedContent:t.includeMarkedContent,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,l.info)("page=".concat(c+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));N.on("GetStructTree",(function wphGetStructTree(t){return o.getPage(t.pageIndex).then((function(t){return o.ensure(t,"getStructTree")}))}));N.on("FontFallback",(function(t){return o.fontFallback(t.id,N)}));N.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));N.on("Terminate",(function wphTerminate(t){w=!0;var r=[];if(o){o.terminate(new l.AbortException("Worker was terminated."));var c=o.cleanup();r.push(c);o=null}else(0,d.clearGlobalCaches)();S&&S(new l.AbortException("Worker was terminated."));var u,h=_createForOfIteratorHelper(C);try{for(h.s();!(u=h.n()).done;){var g=u.value;r.push(g.finished);g.terminate()}}catch(t){h.e(t)}finally{h.f()}return Promise.all(r).then((function(){N.destroy();N=null}))}));N.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();N.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof l.PasswordException){var r=new _("PasswordException: response ".concat(t.code));startWorkerTask(r);N.sendWithPromise("PasswordRequest",t).then((function(t){var c=t.password;finishWorkerTask(r);o.updatePassword(c);pdfManagerReady()})).catch((function(){finishWorkerTask(r);N.send("DocException",t)}))}else t instanceof l.InvalidPDFException||t instanceof l.MissingPDFException||t instanceof l.UnexpectedResponseException||t instanceof l.UnknownErrorException?N.send("DocException",t):N.send("DocException",new l.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof k.XRefParseException){o.requestLoadedStream();o.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(t)}))}ensureNotTerminated();getPdfManager(t,{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,useSystemFonts:t.useSystemFonts,cMapUrl:t.cMapUrl,standardFontDataUrl:t.standardFontDataUrl},t.enableXfa).then((function(t){if(w){t.terminate(new l.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){N.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return L}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new y.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=w;"undefined"==typeof window&&!m.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&w.initializeFromPort(self)},(t,r,o)=>{"use strict";t.exports=o(3)},(t,r,o)=>{"use strict";function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var c=function(t){var r,o=Object.prototype,c=o.hasOwnProperty,l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function define(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0});return t[r]}try{define({},"")}catch(t){define=function define(t,r,o){return t[r]=o}}function wrap(t,r,o,c){var l=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(l.prototype),h=new Context(c||[]);u._invoke=function makeInvokeMethod(t,r,o){var c=g;return function invoke(l,u){if(c===y)throw new Error("Generator is already running");if(c===v){if("throw"===l)throw u;return doneResult()}o.method=l;o.arg=u;for(;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===k)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(c===g){c=v;throw o.arg}o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c=y;var _=tryCatch(t,r,o);if("normal"===_.type){c=o.done?v:m;if(_.arg===k)continue;return{value:_.arg,done:o.done}}if("throw"===_.type){c=v;o.method="throw";o.arg=_.arg}}}}(t,o,h);return u}t.wrap=wrap;function tryCatch(t,r,o){try{return{type:"normal",arg:t.call(r,o)}}catch(t){return{type:"throw",arg:t}}}var g="suspendedStart",m="suspendedYield",y="executing",v="completed",k={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var _={};define(_,u,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(values([])));S&&S!==o&&c.call(S,u)&&(_=S);var C=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(_);GeneratorFunction.prototype=GeneratorFunctionPrototype;define(C,"constructor",GeneratorFunctionPrototype);define(GeneratorFunctionPrototype,"constructor",GeneratorFunction);GeneratorFunction.displayName=define(GeneratorFunctionPrototype,d,"GeneratorFunction");function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))};t.mark=function(t){if(Object.setPrototypeOf)Object.setPrototypeOf(t,GeneratorFunctionPrototype);else{t.__proto__=GeneratorFunctionPrototype;define(t,d,"GeneratorFunction")}t.prototype=Object.create(C);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(o,l,u,h){var d=tryCatch(t[o],t,l);if("throw"!==d.type){var g=d.arg,m=g.value;return m&&"object"===_typeof(m)&&c.call(m,"__await")?r.resolve(m.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(m).then((function(t){g.value=t;u(g)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;this._invoke=function enqueue(t,c){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,c,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);define(AsyncIterator.prototype,h,(function(){return this}));t.AsyncIterator=AsyncIterator;t.async=function(r,o,c,l,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(r,o,c,l),u);return t.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))};function maybeInvokeDelegate(t,o){var c=t.iterator[o.method];if(c===r){o.delegate=null;if("throw"===o.method){if(t.iterator.return){o.method="return";o.arg=r;maybeInvokeDelegate(t,o);if("throw"===o.method)return k}o.method="throw";o.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var l=tryCatch(c,t.iterator,o.arg);if("throw"===l.type){o.method="throw";o.arg=l.arg;o.delegate=null;return k}var u=l.arg;if(!u){o.method="throw";o.arg=new TypeError("iterator result is not an object");o.delegate=null;return k}if(!u.done)return u;o[t.resultName]=u.value;o.next=t.nextLoc;if("return"!==o.method){o.method="next";o.arg=r}o.delegate=null;return k}defineIteratorMethods(C);define(C,d,"Generator");define(C,u,(function(){return this}));define(C,"toString",(function(){return"[object Generator]"}));function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]);if(2 in t){r.finallyLoc=t[2];r.afterLoc=t[3]}this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(pushTryEntry,this);this.reset(!0)}t.keys=function(t){var r=[];for(var o in t)r.push(o);r.reverse();return function next(){for(;r.length;){var o=r.pop();if(o in t){next.value=o;next.done=!1;return next}}next.done=!0;return next}};function values(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var l=-1,h=function next(){for(;++l=0;--l){var u=this.tryEntries[l],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=c.call(u,"catchLoc"),g=c.call(u,"finallyLoc");if(d&&g){if(this.prev=0;--o){var l=this.tryEntries[o];if(l.tryLoc<=this.prev&&c.call(l,"finallyLoc")&&this.prev=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t){this.complete(o.completion,o.afterLoc);resetTryEntry(o);return k}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var l=c.arg;resetTryEntry(o)}return l}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,o,c){this.delegate={iterator:values(t),resultName:o,nextLoc:c};"next"===this.method&&(this.arg=r);return k}};return t}("object"===_typeof(t=o.nmd(t))?t.exports:{});try{regeneratorRuntime=c}catch(t){"object"===("undefined"==typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FeatureTest=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 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 o=0,c=0;c1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(o&&"string"==typeof t){if(o.addDefaultProtocol&&t.startsWith("www.")){var c=t.match(/\./g);c&&c.length>=2&&(t="http://".concat(t))}if(o.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var l=r?new URL(t,r):new URL(t);if(_isValidProtocol(l))return l}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 l};r.info=function info(t){l>=c.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 o=0,c=t.length;o=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function e(t){throw t},f:l}}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 u,h=!0,d=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();h=t.done;return t},e:function e(t){d=!0;u=t},f:function f(){try{h||null==o.return||o.return()}finally{if(d)throw u}}}}(t);try{for(c.s();!(r=c.n()).done;){var l=(d=r.value,g=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(d)||function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==o)return;var c,l,u=[],h=!0,d=!1;try{for(o=o.call(t);!(h=(c=o.next()).done);h=!0){u.push(c.value);if(r&&u.length===r)break}}catch(t){d=!0;l=t}finally{try{h||null==o.return||o.return()}finally{if(d)throw l}}return u}(d,g)||_unsupportedIterableToArray(d,g)||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.")}()),u=l[0],h=l[1];o[u]=h}}catch(t){c.e(t)}finally{c.f()}var d,g;return o};r.objectSize=function objectSize(t){return Object.keys(t).length};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(l=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){if(t[0]>="ï"){var r;"þ"===t[0]&&"ÿ"===t[1]?r="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?r="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(r="utf-8");if(r)try{var o=new TextDecoder(r,{fatal:!0}),c=stringToBytes(t);return o.decode(c)}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}for(var l=[],u=0,h=t.length;u>8&255),String.fromCharCode(255&l))}return r.join("")};r.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;o(5);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.")}()}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);return"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,c=new Array(r);o=c.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}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}}function shadow(t,r,o){Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!1});return o}var u=function BaseExceptionClosure(){function BaseException(t,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=u;var h=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var c;_classCallCheck(this,PasswordException);(c=r.call(this,t,"PasswordException")).code=o;return c}return _createClass(PasswordException)}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var c;_classCallCheck(this,UnknownErrorException);(c=r.call(this,t,"UnknownErrorException")).details=o;return c}return _createClass(UnknownErrorException)}(u);r.UnknownErrorException=d;var g=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return _createClass(InvalidPDFException)}(u);r.InvalidPDFException=g;var m=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(u);r.MissingPDFException=m;var y=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var c;_classCallCheck(this,UnexpectedResponseException);(c=r.call(this,t,"UnexpectedResponseException")).status=o;return c}return _createClass(UnexpectedResponseException)}(u);r.UnexpectedResponseException=y;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(u);r.FormatError=v;var k=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return _createClass(AbortException)}(u);r.AbortException=k;function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),c=0;ct[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){var o=Math.max(Math.min(t[0],t[2]),Math.min(r[0],r[2])),c=Math.min(Math.max(t[0],t[2]),Math.max(r[0],r[2]));if(o>c)return null;var l=Math.max(Math.min(t[1],t[3]),Math.min(r[1],r[3])),u=Math.min(Math.max(t[1],t[3]),Math.max(r[1],r[3]));return l>u?null:[o,l,c,u]}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,o,c,l,u,h,d){for(var g,m,y,v,k,_,w,S,C=[],x=[[],[]],O=0;O<2;++O){if(0===O){m=6*t-12*o+6*l;g=-3*t+9*o-9*l+3*h;y=3*o-3*t}else{m=6*r-12*c+6*u;g=-3*r+9*c-9*u+3*d;y=3*c-3*r}if(Math.abs(g)<1e-12){if(Math.abs(m)<1e-12)continue;0<(v=-y/m)&&v<1&&C.push(v)}else{w=m*m-4*y*g;S=Math.sqrt(w);if(!(w<0)){0<(k=(-m+S)/(2*g))&&k<1&&C.push(k);0<(_=(-m-S)/(2*g))&&_<1&&C.push(_)}}}for(var T,E=C.length,M=E;E--;){T=1-(v=C[E]);x[0][E]=T*T*T*t+3*T*T*v*o+3*T*v*v*l+v*v*v*h;x[1][E]=T*T*T*r+3*T*T*v*c+3*T*v*v*u+v*v*v*d}x[0][M]=t;x[1][M]=r;x[0][M+1]=h;x[1][M+1]=d;x[0].length=x[1].length=M+2;return[Math.min.apply(Math,_toConsumableArray(x[0])),Math.min.apply(Math,_toConsumableArray(x[1])),Math.max.apply(Math,_toConsumableArray(x[0])),Math.max.apply(Math,_toConsumableArray(x[1]))]}}]);return Util}();r.Util=S;var C=[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];function stringToUTF8String(t){return decodeURIComponent(escape(t))}},(t,r,o)=>{"use strict";var c=o(6);if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&c.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&c.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&c.isNodeJS&&(globalThis.DOMMatrix=require("dommatrix/dist/dommatrix.js"))}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=o(7))}();!function checkReadableStream(){!globalThis.ReadableStream&&c.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkStructuredClone(){globalThis.structuredClone||o(140)}()}},(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(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var o=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=o},(t,r,o)=>{o(8);o(94);o(100);o(102);o(134);o(135);o(136);o(137);var c=o(139);t.exports=c.Promise},(t,r,o)=>{o(9)},(t,r,o)=>{"use strict";var c=o(10),l=o(11),u=o(30),h=o(72),d=o(74),g=o(60),m=o(76),y=o(49),v=o(18),k=o(80),_=o(81),w=o(82),S=o(91),C=o(39),x=o(93),O=C("toStringTag"),T=l.Error,E=[].push,M=function AggregateError(t,r){var o,c=arguments.length>2?arguments[2]:void 0,l=u(R,this);if(d)o=d(new T,l?h(this):R);else{o=l?this:m(R);y(o,O,"Error")}void 0!==r&&y(o,"message",S(r));x&&y(o,"stack",k(o.stack,1));_(o,c);var g=[];w(t,E,{that:g});y(o,"errors",g);return o};d?d(M,T):g(M,T,{name:!0});var R=M.prototype=m(T.prototype,{constructor:v(1,M),message:v(1,""),name:v(1,"AggregateError")});c({global:!0},{AggregateError:M})},(t,r,o)=>{var c=o(11),l=o(12).f,u=o(49),h=o(53),d=o(43),g=o(60),m=o(71);t.exports=function(t,r){var o,y,v,k,_,w=t.target,S=t.global,C=t.stat;if(o=S?c:C?c[w]||d(w,{}):(c[w]||{}).prototype)for(y in r){k=r[y];v=t.noTargetGet?(_=l(o,y))&&_.value:o[y];if(!m(S?y:w+(C?".":"#")+y,t.forced)&&void 0!==v){if(typeof k==typeof v)continue;g(k,v)}(t.sham||v&&v.sham)&&u(k,"sham",!0);h(o,y,k,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,o)=>{var c=o(13),l=o(15),u=o(17),h=o(18),d=o(19),g=o(24),m=o(44),y=o(47),v=Object.getOwnPropertyDescriptor;r.f=c?v:function getOwnPropertyDescriptor(t,r){t=d(t);r=g(r);if(y)try{return v(t,r)}catch(t){}if(m(t,r))return h(!l(u.f,t,r),t[r])}},(t,r,o)=>{var c=o(14);t.exports=!c((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,o)=>{var c=o(16),l=Function.prototype.call;t.exports=c?l.bind(l):function(){return l.apply(l,arguments)}},(t,r,o)=>{var c=o(14);t.exports=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,r)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,l=c&&!o.call({1:2},1);r.f=l?function propertyIsEnumerable(t){var r=c(this,t);return!!r&&r.enumerable}:o},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,o)=>{var c=o(20),l=o(23);t.exports=function(t){return c(l(t))}},(t,r,o)=>{var c=o(11),l=o(21),u=o(14),h=o(22),d=c.Object,g=l("".split);t.exports=u((function(){return!d("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?g(t,""):d(t)}:d},(t,r,o)=>{var c=o(16),l=Function.prototype,u=l.bind,h=l.call,d=c&&u.bind(h,h);t.exports=c?function(t){return t&&d(t)}:function(t){return t&&function(){return h.apply(t,arguments)}}},(t,r,o)=>{var c=o(21),l=c({}.toString),u=c("".slice);t.exports=function(t){return u(l(t),8,-1)}},(t,r,o)=>{var c=o(11).TypeError;t.exports=function(t){if(null==t)throw c("Can't call method on "+t);return t}},(t,r,o)=>{var c=o(25),l=o(28);t.exports=function(t){var r=c(t,"string");return l(r)?r:r+""}},(t,r,o)=>{var c=o(11),l=o(15),u=o(26),h=o(28),d=o(35),g=o(38),m=o(39),y=c.TypeError,v=m("toPrimitive");t.exports=function(t,r){if(!u(t)||h(t))return t;var o,c=d(t,v);if(c){void 0===r&&(r="default");o=l(c,t,r);if(!u(o)||h(o))return o;throw y("Can't convert object to primitive value")}void 0===r&&(r="number");return g(t,r)}},(t,r,o)=>{var c=o(27);t.exports=function(t){return"object"==typeof t?null!==t:c(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,r,o)=>{var c=o(11),l=o(29),u=o(27),h=o(30),d=o(31),g=c.Object;t.exports=d?function(t){return"symbol"==typeof t}:function(t){var r=l("Symbol");return u(r)&&h(r.prototype,g(t))}},(t,r,o)=>{var c=o(11),l=o(27),aFunction=function(t){return l(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(c[t]):c[t]&&c[t][r]}},(t,r,o)=>{var c=o(21);t.exports=c({}.isPrototypeOf)},(t,r,o)=>{var c=o(32);t.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var c=o(33),l=o(14);t.exports=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&c&&c<41}))},(t,r,o)=>{var c,l,u=o(11),h=o(34),d=u.process,g=u.Deno,m=d&&d.versions||g&&g.version,y=m&&m.v8;y&&(l=(c=y.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1]));!l&&h&&(!(c=h.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=h.match(/Chrome\/(\d+)/))&&(l=+c[1]);t.exports=l},(t,r,o)=>{var c=o(29);t.exports=c("navigator","userAgent")||""},(t,r,o)=>{var c=o(36);t.exports=function(t,r){var o=t[r];return null==o?void 0:c(o)}},(t,r,o)=>{var c=o(11),l=o(27),u=o(37),h=c.TypeError;t.exports=function(t){if(l(t))return t;throw h(u(t)+" is not a function")}},(t,r,o)=>{var c=o(11).String;t.exports=function(t){try{return c(t)}catch(t){return"Object"}}},(t,r,o)=>{var c=o(11),l=o(15),u=o(27),h=o(26),d=c.TypeError;t.exports=function(t,r){var o,c;if("string"===r&&u(o=t.toString)&&!h(c=l(o,t)))return c;if(u(o=t.valueOf)&&!h(c=l(o,t)))return c;if("string"!==r&&u(o=t.toString)&&!h(c=l(o,t)))return c;throw d("Can't convert object to primitive value")}},(t,r,o)=>{var c=o(11),l=o(40),u=o(44),h=o(46),d=o(32),g=o(31),m=l("wks"),y=c.Symbol,v=y&&y.for,k=g?y:y&&y.withoutSetter||h;t.exports=function(t){if(!u(m,t)||!d&&"string"!=typeof m[t]){var r="Symbol."+t;d&&u(y,t)?m[t]=y[t]:m[t]=g&&v?v(r):k(r)}return m[t]}},(t,r,o)=>{var c=o(41),l=o(42);(t.exports=function(t,r){return l[t]||(l[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.22.3",mode:c?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,r,o)=>{var c=o(11),l=o(43),u="__core-js_shared__",h=c[u]||l(u,{});t.exports=h},(t,r,o)=>{var c=o(11),l=Object.defineProperty;t.exports=function(t,r){try{l(c,t,{value:r,configurable:!0,writable:!0})}catch(o){c[t]=r}return r}},(t,r,o)=>{var c=o(21),l=o(45),u=c({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return u(l(t),r)}},(t,r,o)=>{var c=o(11),l=o(23),u=c.Object;t.exports=function(t){return u(l(t))}},(t,r,o)=>{var c=o(21),l=0,u=Math.random(),h=c(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+h(++l+u,36)}},(t,r,o)=>{var c=o(13),l=o(14),u=o(48);t.exports=!c&&!l((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var c=o(11),l=o(26),u=c.document,h=l(u)&&l(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var c=o(13),l=o(50),u=o(18);t.exports=c?function(t,r,o){return l.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var c=o(11),l=o(13),u=o(47),h=o(51),d=o(52),g=o(24),m=c.TypeError,y=Object.defineProperty,v=Object.getOwnPropertyDescriptor,k="enumerable",_="configurable",w="writable";r.f=l?h?function defineProperty(t,r,o){d(t);r=g(r);d(o);if("function"==typeof t&&"prototype"===r&&"value"in o&&w in o&&!o.writable){var c=v(t,r);if(c&&c.writable){t[r]=o.value;o={configurable:_ in o?o.configurable:c.configurable,enumerable:k in o?o.enumerable:c.enumerable,writable:!1}}}return y(t,r,o)}:y:function defineProperty(t,r,o){d(t);r=g(r);d(o);if(u)try{return y(t,r,o)}catch(t){}if("get"in o||"set"in o)throw m("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var c=o(13),l=o(14);t.exports=c&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,r,o)=>{var c=o(11),l=o(26),u=c.String,h=c.TypeError;t.exports=function(t){if(l(t))return t;throw h(u(t)+" is not an object")}},(t,r,o)=>{var c=o(11),l=o(27),u=o(44),h=o(49),d=o(43),g=o(54),m=o(55),y=o(59).CONFIGURABLE,v=m.get,k=m.enforce,_=String(String).split("String");(t.exports=function(t,r,o,g){var m,v=!!g&&!!g.unsafe,w=!!g&&!!g.enumerable,S=!!g&&!!g.noTargetGet,C=g&&void 0!==g.name?g.name:r;if(l(o)){"Symbol("===String(C).slice(0,7)&&(C="["+String(C).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!u(o,"name")||y&&o.name!==C)&&h(o,"name",C);(m=k(o)).source||(m.source=_.join("string"==typeof C?C:""))}if(t!==c){v?!S&&t[r]&&(w=!0):delete t[r];w?t[r]=o:h(t,r,o)}else w?t[r]=o:d(r,o)})(Function.prototype,"toString",(function toString(){return l(this)&&v(this).source||g(this)}))},(t,r,o)=>{var c=o(21),l=o(27),u=o(42),h=c(Function.toString);l(u.inspectSource)||(u.inspectSource=function(t){return h(t)});t.exports=u.inspectSource},(t,r,o)=>{var c,l,u,h=o(56),d=o(11),g=o(21),m=o(26),y=o(49),v=o(44),k=o(42),_=o(57),w=o(58),S="Object already initialized",C=d.TypeError,x=d.WeakMap;if(h||k.state){var O=k.state||(k.state=new x),T=g(O.get),E=g(O.has),M=g(O.set);c=function(t,r){if(E(O,t))throw new C(S);r.facade=t;M(O,t,r);return r};l=function(t){return T(O,t)||{}};u=function(t){return E(O,t)}}else{var R=_("state");w[R]=!0;c=function(t,r){if(v(t,R))throw new C(S);r.facade=t;y(t,R,r);return r};l=function(t){return v(t,R)?t[R]:{}};u=function(t){return v(t,R)}}t.exports={set:c,get:l,has:u,enforce:function(t){return u(t)?l(t):c(t,{})},getterFor:function(t){return function(r){var o;if(!m(r)||(o=l(r)).type!==t)throw C("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var c=o(11),l=o(27),u=o(54),h=c.WeakMap;t.exports=l(h)&&/native code/.test(u(h))},(t,r,o)=>{var c=o(40),l=o(46),u=c("keys");t.exports=function(t){return u[t]||(u[t]=l(t))}},t=>{t.exports={}},(t,r,o)=>{var c=o(13),l=o(44),u=Function.prototype,h=c&&Object.getOwnPropertyDescriptor,d=l(u,"name"),g=d&&"something"===function something(){}.name,m=d&&(!c||c&&h(u,"name").configurable);t.exports={EXISTS:d,PROPER:g,CONFIGURABLE:m}},(t,r,o)=>{var c=o(44),l=o(61),u=o(12),h=o(50);t.exports=function(t,r,o){for(var d=l(r),g=h.f,m=u.f,y=0;y{var c=o(29),l=o(21),u=o(62),h=o(70),d=o(52),g=l([].concat);t.exports=c("Reflect","ownKeys")||function ownKeys(t){var r=u.f(d(t)),o=h.f;return o?g(r,o(t)):r}},(t,r,o)=>{var c=o(63),l=o(69).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return c(t,l)}},(t,r,o)=>{var c=o(21),l=o(44),u=o(19),h=o(64).indexOf,d=o(58),g=c([].push);t.exports=function(t,r){var o,c=u(t),m=0,y=[];for(o in c)!l(d,o)&&l(c,o)&&g(y,o);for(;r.length>m;)l(c,o=r[m++])&&(~h(y,o)||g(y,o));return y}},(t,r,o)=>{var c=o(19),l=o(65),u=o(67),createMethod=function(t){return function(r,o,h){var d,g=c(r),m=u(g),y=l(h,m);if(t&&o!=o){for(;m>y;)if((d=g[y++])!=d)return!0}else for(;m>y;y++)if((t||y in g)&&g[y]===o)return t||y||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var c=o(66),l=Math.max,u=Math.min;t.exports=function(t,r){var o=c(t);return o<0?l(o+r,0):u(o,r)}},t=>{var r=Math.ceil,o=Math.floor;t.exports=function(t){var c=+t;return c!=c||0===c?0:(c>0?o:r)(c)}},(t,r,o)=>{var c=o(68);t.exports=function(t){return c(t.length)}},(t,r,o)=>{var c=o(66),l=Math.min;t.exports=function(t){return t>0?l(c(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,o)=>{var c=o(14),l=o(27),u=/#|\.prototype\./,isForced=function(t,r){var o=d[h(t)];return o==m||o!=g&&(l(r)?c(r):!!r)},h=isForced.normalize=function(t){return String(t).replace(u,".").toLowerCase()},d=isForced.data={},g=isForced.NATIVE="N",m=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{var c=o(11),l=o(44),u=o(27),h=o(45),d=o(57),g=o(73),m=d("IE_PROTO"),y=c.Object,v=y.prototype;t.exports=g?y.getPrototypeOf:function(t){var r=h(t);if(l(r,m))return r[m];var o=r.constructor;return u(o)&&r instanceof o?o.prototype:r instanceof y?v:null}},(t,r,o)=>{var c=o(14);t.exports=!c((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,o)=>{var c=o(21),l=o(52),u=o(75);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(o,[]);r=o instanceof Array}catch(t){}return function setPrototypeOf(o,c){l(o);u(c);r?t(o,c):o.__proto__=c;return o}}():void 0)},(t,r,o)=>{var c=o(11),l=o(27),u=c.String,h=c.TypeError;t.exports=function(t){if("object"==typeof t||l(t))return t;throw h("Can't set "+u(t)+" as a prototype")}},(t,r,o)=>{var c,l=o(52),u=o(77),h=o(69),d=o(58),g=o(79),m=o(48),y=o(57),v=y("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"