2
0

pdf.worker.min.js 1.1 MB

12345678910111213141516171819202122
  1. /**
  2. * @licstart The following is the entire license notice for the
  3. * Javascript code in this page
  4. *
  5. * Copyright 2021 Mozilla Foundation
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * @licend The above is the entire license notice for the
  20. * Javascript code in this page
  21. */
  22. !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,(function(){return(()=>{var t=[,(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerTask=r.WorkerMessageHandler=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(126),d=o(168),m=o(6),g=o(189),y=o(190),v=o(128);function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var S=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=(0,c.createPromiseCapability)()}_createClass(WorkerTask,[{key:"finished",get:function get(){return this._capability.promise}},{key:"finish",value:function finish(){this._capability.resolve()}},{key:"terminate",value:function terminate(){this.terminated=!0}},{key:"ensureNotTerminated",value:function ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}]);return WorkerTask}();r.WorkerTask=S;var k=function(){function WorkerMessageHandler(){_classCallCheck(this,WorkerMessageHandler)}_createClass(WorkerMessageHandler,null,[{key:"setup",value:function setup(t,r){var o=!1;t.on("test",(function wphSetupTest(r){if(!o){o=!0;if(r instanceof Uint8Array){var l=255===r[0];t.postMessageTransfers=l;t.send("test",{supportTransfers:l})}else t.send("test",null)}}));t.on("configure",(function wphConfigure(t){(0,c.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function wphSetupDoc(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var o,m=!1,k=null,C=[],w=(0,c.getVerbosityLevel)(),_=t.apiVersion,O="2.8.335";if(_!==O)throw new Error('The API version "'.concat(_,'" does not match ')+'the Worker version "'.concat(O,'".'));var x=[];for(var T in[])x.push(T);if(x.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+x.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var R=t.docId,E=t.docBaseUrl,D=t.docId+"_worker",j=new g.MessageHandler(D,R,r);j.postMessageTransfers=t.postMessageTransfers;function ensureNotTerminated(){if(m)throw new Error("Worker was terminated")}function startWorkerTask(t){C.push(t)}function finishWorkerTask(t){t.finish();var r=C.indexOf(t);C.splice(r,1)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(l.default.mark((function _callee(t){var r,c,u,h,d;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return o.ensureDoc("checkHeader");case 2:l.next=4;return o.ensureDoc("parseStartXRef");case 4:l.next=6;return o.ensureDoc("parse",[t]);case 6:if(t){l.next=9;break}l.next=9;return o.ensureDoc("checkFirstPage");case 9:l.next=11;return Promise.all([o.ensureDoc("numPages"),o.ensureDoc("fingerprint"),o.ensureDoc("isPureXfa")]);case 11:r=l.sent;c=_slicedToArray(r,3);u=c[0];h=c[1];d=c[2];return l.abrupt("return",{numPages:u,fingerprint:h,isPureXfa:d});case 17:case"end":return l.stop()}}),_callee)})))).apply(this,arguments)}function getPdfManager(t,r,o){var l,u=(0,c.createPromiseCapability)(),d=t.source;if(d.data){try{l=new h.LocalPdfManager(R,d.data,d.password,r,o,E);u.resolve(l)}catch(t){u.reject(t)}return u.promise}var m,g=[];try{m=new y.PDFWorkerStream(j)}catch(t){u.reject(t);return u.promise}var v=m.getFullReader();v.headersReady.then((function(){if(v.isRangeSupported){var t=d.disableAutoFetch||v.isStreamingSupported;l=new h.NetworkPdfManager(R,m,{msgHandler:j,password:d.password,length:v.contentLength,disableAutoFetch:t,rangeChunkSize:d.rangeChunkSize},r,o,E);for(var c=0;c<g.length;c++)l.sendProgressiveData(g[c]);g=[];u.resolve(l);k=null}})).catch((function(t){u.reject(t);k=null}));var S=0;new Promise((function(t,m){v.read().then((function readChunk(t){var y=t.value,C=t.done;try{ensureNotTerminated();if(C){l||function flushChunks(){var t=(0,c.arraysToBytes)(g);d.length&&t.length!==d.length&&(0,c.warn)("reported HTTP length is different from actual");try{l=new h.LocalPdfManager(R,t,d.password,r,o,E);u.resolve(l)}catch(t){u.reject(t)}g=[]}();k=null;return}S+=(0,c.arrayByteLength)(y);v.isStreamingSupported||j.send("DocProgress",{loaded:S,total:Math.max(S,v.contentLength||0)});l?l.sendProgressiveData(y):g.push(y);v.read().then(readChunk,m)}catch(t){m(t)}}),m)})).catch((function(t){u.reject(t);k=null}));k=function cancelXHRs(t){m.cancelAllRequests(t)};return u.promise}j.on("GetPage",(function wphSetupGetPage(t){return o.getPage(t.pageIndex).then((function(t){return Promise.all([o.ensure(t,"rotate"),o.ensure(t,"ref"),o.ensure(t,"userUnit"),o.ensure(t,"view")]).then((function(t){var r=_slicedToArray(t,4);return{rotate:r[0],ref:r[1],userUnit:r[2],view:r[3]}}))}))}));j.on("GetPageIndex",(function wphSetupGetPageIndex(t){var r=t.ref,l=u.Ref.get(r.num,r.gen);return o.ensureCatalog("getPageIndex",[l])}));j.on("GetDestinations",(function wphSetupGetDestinations(t){return o.ensureCatalog("destinations")}));j.on("GetDestination",(function wphSetupGetDestination(t){return o.ensureCatalog("getDestination",[t.id])}));j.on("GetPageLabels",(function wphSetupGetPageLabels(t){return o.ensureCatalog("pageLabels")}));j.on("GetPageLayout",(function wphSetupGetPageLayout(t){return o.ensureCatalog("pageLayout")}));j.on("GetPageMode",(function wphSetupGetPageMode(t){return o.ensureCatalog("pageMode")}));j.on("GetViewerPreferences",(function(t){return o.ensureCatalog("viewerPreferences")}));j.on("GetOpenAction",(function(t){return o.ensureCatalog("openAction")}));j.on("GetAttachments",(function wphSetupGetAttachments(t){return o.ensureCatalog("attachments")}));j.on("GetJavaScript",(function wphSetupGetJavaScript(t){return o.ensureCatalog("javaScript")}));j.on("GetDocJSActions",(function wphSetupGetDocJSActions(t){return o.ensureCatalog("jsActions")}));j.on("GetPageJSActions",(function(t){var r=t.pageIndex;return o.getPage(r).then((function(t){return t.jsActions}))}));j.on("GetPageXfa",(function wphSetupGetXfa(t){var r=t.pageIndex;return o.getPage(r).then((function(t){return o.ensure(t,"xfaData")}))}));j.on("GetIsPureXfa",(function wphSetupGetIsPureXfa(t){return o.ensureDoc("isPureXfa")}));j.on("GetOutline",(function wphSetupGetOutline(t){return o.ensureCatalog("documentOutline")}));j.on("GetOptionalContentConfig",(function(t){return o.ensureCatalog("optionalContentConfig")}));j.on("GetPermissions",(function(t){return o.ensureCatalog("permissions")}));j.on("GetMetadata",(function wphSetupGetMetadata(t){return Promise.all([o.ensureDoc("documentInfo"),o.ensureCatalog("metadata")])}));j.on("GetMarkInfo",(function wphSetupGetMarkInfo(t){return o.ensureCatalog("markInfo")}));j.on("GetData",(function wphSetupGetData(t){o.requestLoadedStream();return o.onLoadedStream().then((function(t){return t.bytes}))}));j.on("GetStats",(function wphSetupGetStats(t){return o.ensureXRef("stats")}));j.on("GetAnnotations",(function(t){var r=t.pageIndex,l=t.intent;return o.getPage(r).then((function(t){return t.getAnnotationsData(l)}))}));j.on("GetFieldObjects",(function(t){return o.ensureDoc("fieldObjects")}));j.on("HasJSActions",(function(t){return o.ensureDoc("hasJSActions")}));j.on("GetCalculationOrderIds",(function(t){return o.ensureDoc("calculationOrderIds")}));j.on("SaveDocument",(function(t){var r=t.numPages,l=t.annotationStorage,h=t.filename;o.requestLoadedStream();for(var m=[o.onLoadedStream(),o.ensureCatalog("acroForm"),o.ensureDoc("xref"),o.ensureDoc("startXRef")],g=function _loop(t){m.push(o.getPage(t).then((function(r){var o=new S("Save: page ".concat(t));startWorkerTask(o);return r.save(j,o,l).finally((function(){finishWorkerTask(o)}))})))},y=0;y<r;y++)g(y);return Promise.all(m).then((function(t){var r,o=_toArray(t),l=o[0],m=o[1],g=o[2],y=o[3],v=[],S=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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}}}}(o.slice(4));try{for(S.s();!(r=S.n()).done;){v=r.value.filter((function(t){return null!==t})).reduce((function(t,r){return t.concat(r)}),v)}}catch(t){S.e(t)}finally{S.f()}if(0===v.length)return l.bytes;var k=m instanceof u.Dict&&m.get("XFA")||[],C=null;if(Array.isArray(k))for(var w=0,_=k.length;w<_;w+=2)"datasets"===k[w]&&(C=k[w+1]);else(0,c.warn)("Unsupported XFA type.");var O=Object.create(null);if(g.trailer){var x=Object.create(null),T=g.trailer.get("Info")||null;T instanceof u.Dict&&T.forEach((function(t,r){(0,c.isString)(t)&&(0,c.isString)(r)&&(x[t]=(0,c.stringToPDFString)(r))}));O={rootRef:g.trailer.getRaw("Root")||null,encrypt:g.trailer.getRaw("Encrypt")||null,newRef:g.getNewRef(),infoRef:g.trailer.getRaw("Info")||null,info:x,fileIds:g.trailer.getRaw("ID")||null,startXRef:y,filename:h}}g.resetNewRef();return(0,d.incrementalUpdate)({originalData:l.bytes,xrefInfo:O,newRefs:v,xref:g,datasetsRef:C})}))}));j.on("GetOperatorList",(function wphSetupRenderPage(t,r){var l=t.pageIndex;o.getPage(l).then((function(o){var u=new S("GetOperatorList: page ".concat(l));startWorkerTask(u);var h=w>=c.VerbosityLevel.INFOS?Date.now():0;o.getOperatorList({handler:j,sink:r,task:u,intent:t.intent,renderInteractiveForms:t.renderInteractiveForms,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getOperatorList: time=")+"".concat(Date.now()-h,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(u);if(!u.terminated){j.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}));j.on("GetTextContent",(function wphExtractText(t,r){var l=t.pageIndex;r.onPull=function(t){};r.onCancel=function(t){};o.getPage(l).then((function(o){var u=new S("GetTextContent: page "+l);startWorkerTask(u);var h=w>=c.VerbosityLevel.INFOS?Date.now():0;o.extractTextContent({handler:j,task:u,sink:r,normalizeWhitespace:t.normalizeWhitespace,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(u);h&&(0,c.info)("page=".concat(l+1," - getTextContent: time=")+"".concat(Date.now()-h,"ms"));r.close()}),(function(t){finishWorkerTask(u);u.terminated||r.error(t)}))}))}));j.on("FontFallback",(function(t){return o.fontFallback(t.id,j)}));j.on("Cleanup",(function wphCleanup(t){return o.cleanup(!0)}));j.on("Terminate",(function wphTerminate(t){m=!0;var r=[];if(o){o.terminate(new c.AbortException("Worker was terminated."));var l=o.cleanup();r.push(l);o=null}else(0,u.clearPrimitiveCaches)();k&&k(new c.AbortException("Worker was terminated."));C.forEach((function(t){r.push(t.finished);t.terminate()}));return Promise.all(r).then((function(){j.destroy();j=null}))}));j.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();j.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof c.PasswordException){var r=new S("PasswordException: response ".concat(t.code));startWorkerTask(r);j.sendWithPromise("PasswordRequest",t).then((function(t){var l=t.password;finishWorkerTask(r);o.updatePassword(l);pdfManagerReady()})).catch((function(){finishWorkerTask(r);j.send("DocException",t)}))}else t instanceof c.InvalidPDFException||t instanceof c.MissingPDFException||t instanceof c.UnexpectedResponseException||t instanceof c.UnknownErrorException?j.send("DocException",t):j.send("DocException",new c.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof v.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},t.enableXfa).then((function(t){if(m){t.terminate(new c.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(o=t).onLoadedStream().then((function(t){j.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));return D}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new g.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=k;"undefined"==typeof window&&!m.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&k.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 _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=function(t){var r,o=Object.prototype,l=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",d=c.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,l){var c=r&&r.prototype instanceof Generator?r:Generator,u=Object.create(c.prototype),h=new Context(l||[]);u._invoke=function makeInvokeMethod(t,r,o){var l=m;return function invoke(c,u){if(l===y)throw new Error("Generator is already running");if(l===v){if("throw"===c)throw u;return doneResult()}o.method=c;o.arg=u;for(;;){var h=o.delegate;if(h){var d=maybeInvokeDelegate(h,o);if(d){if(d===S)continue;return d}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(l===m){l=v;throw o.arg}o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l=y;var k=tryCatch(t,r,o);if("normal"===k.type){l=o.done?v:g;if(k.arg===S)continue;return{value:k.arg,done:o.done}}if("throw"===k.type){l=v;o.method="throw";o.arg=k.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 m="suspendedStart",g="suspendedYield",y="executing",v="completed",S={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var k={};k[u]=function(){return this};var C=Object.getPrototypeOf,w=C&&C(C(values([])));w&&w!==o&&l.call(w,u)&&(k=w);var _=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(k);GeneratorFunction.prototype=_.constructor=GeneratorFunctionPrototype;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(_);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){function invoke(o,c,u,h){var d=tryCatch(t[o],t,c);if("throw"!==d.type){var m=d.arg,g=m.value;return g&&"object"===_typeof(g)&&l.call(g,"__await")?r.resolve(g.__await).then((function(t){invoke("next",t,u,h)}),(function(t){invoke("throw",t,u,h)})):r.resolve(g).then((function(t){m.value=t;u(m)}),(function(t){return invoke("throw",t,u,h)}))}h(d.arg)}var o;this._invoke=function enqueue(t,l){function callInvokeWithMethodAndArg(){return new r((function(r,o){invoke(t,l,r,o)}))}return o=o?o.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[h]=function(){return this};t.AsyncIterator=AsyncIterator;t.async=function(r,o,l,c,u){void 0===u&&(u=Promise);var h=new AsyncIterator(wrap(r,o,l,c),u);return t.isGeneratorFunction(o)?h:h.next().then((function(t){return t.done?t.value:h.next()}))};function maybeInvokeDelegate(t,o){var l=t.iterator[o.method];if(l===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 S}o.method="throw";o.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var c=tryCatch(l,t.iterator,o.arg);if("throw"===c.type){o.method="throw";o.arg=c.arg;o.delegate=null;return S}var u=c.arg;if(!u){o.method="throw";o.arg=new TypeError("iterator result is not an object");o.delegate=null;return S}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 S}defineIteratorMethods(_);define(_,d,"Generator");_[u]=function(){return this};_.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 c=-1,h=function next(){for(;++c<t.length;)if(l.call(t,c)){next.value=t[c];next.done=!1;return next}next.value=r;next.done=!0;return next};return h.next=h}}return{next:doneResult}}t.values=values;function doneResult(){return{value:r,done:!0}}Context.prototype={constructor:Context,reset:function reset(t){this.prev=0;this.next=0;this.sent=this._sent=r;this.done=!1;this.delegate=null;this.method="next";this.arg=r;this.tryEntries.forEach(resetTryEntry);if(!t)for(var o in this)"t"===o.charAt(0)&&l.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=r)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var o=this;function handle(l,c){h.type="throw";h.arg=t;o.next=l;if(c){o.method="next";o.arg=r}return!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var u=this.tryEntries[c],h=u.completion;if("root"===u.tryLoc)return handle("end");if(u.tryLoc<=this.prev){var d=l.call(u,"catchLoc"),m=l.call(u,"finallyLoc");if(d&&m){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0);if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}else if(d){if(this.prev<u.catchLoc)return handle(u.catchLoc,!0)}else{if(!m)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return handle(u.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&l.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var u=c;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var h=u?u.completion:{};h.type=t;h.arg=r;if(u){this.method="next";this.next=u.finallyLoc;return S}return this.complete(h)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;if("break"===t.type||"continue"===t.type)this.next=t.arg;else if("return"===t.type){this.rval=this.arg=t.arg;this.method="return";this.next="end"}else"normal"===t.type&&r&&(this.next=r);return S},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===t){this.complete(o.completion,o.afterLoc);resetTryEntry(o);return S}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===t){var l=o.completion;if("throw"===l.type){var c=l.arg;resetTryEntry(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,o,l){this.delegate={iterator:values(t),resultName:o,nextLoc:l};"next"===this.method&&(this.arg=r);return S}};return t}("object"===_typeof(t=o.nmd(t))?t.exports:{});try{regeneratorRuntime=l}catch(t){Function("r","regeneratorRuntime = r")(l)}},(t,r,o)=>{"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 o=0,l=0;l<r;l++)o+=arrayByteLength(t[l]);for(var c=0,u=new Uint8Array(o),h=0;h<r;h++){var d=t[h];d instanceof Uint8Array||(d="string"==typeof d?stringToBytes(d):new Uint8Array(d));var m=d.byteLength;u.set(d,c);c+=m}return u};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,o=8192;if(r<o)return String.fromCharCode.apply(null,t);for(var l=[],c=0;c<r;c+=o){var u=Math.min(c+o,r),h=t.subarray(c,u);l.push(String.fromCharCode.apply(null,h))}return l.join("")};r.createObjectURL=function createObjectURL(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!o)return URL.createObjectURL(new Blob([t],{type:r}));for(var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="data:".concat(r,";base64,"),u=0,h=t.length;u<h;u+=3){var d=255&t[u],m=255&t[u+1],g=255&t[u+2],y=d>>2,v=(3&d)<<4|m>>4,S=u+1<h?(15&m)<<2|g>>6:64,k=u+2<h?63&g:64;c+=l[y]+l[v]+l[S]+l[k]}return c};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(o,l){t.resolve=function(t){r=!0;o(t)};t.reject=function(t){r=!0;l(t)}}));return t};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,r){if(!t)return null;try{var o=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}}(o))return o}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 c};r.info=function info(t){c>=l.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,l=t.length;o<l;o++)if(t[o]!==r[o])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 o;try{if(!(o=new URL(t)).origin||"null"===o.origin)return!1}catch(t){return!1}var l=new URL(r,o);return o.origin===l.origin};r.isString=function isString(t){return"string"==typeof t};r.objectFromMap=function objectFromMap(t){var r,o=Object.create(null),l=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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(l.s();!(r=l.n()).done;){var c=(d=r.value,m=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(d)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(d,m)||_unsupportedIterableToArray(d,m)||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=c[0],h=c[1];o[u]=h}}catch(t){l.e(t)}finally{l.f()}var d,m;return o};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(k,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(c=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,o=[];if("þ"===t[0]&&"ÿ"===t[1])for(var l=2;l<r;l+=2)o.push(String.fromCharCode(t.charCodeAt(l)<<8|t.charCodeAt(l+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var c=2;c<r;c+=2)o.push(String.fromCharCode(t.charCodeAt(c+1)<<8|t.charCodeAt(c)));else for(var u=0;u<r;++u){var h=x[t.charCodeAt(u)];o.push(h?String.fromCharCode(h):t.charAt(u))}return o.join("")};r.stringToUTF16BEString=function stringToUTF16BEString(t){for(var r=["þÿ"],o=0,l=t.length;o<l;o++){var c=t.charCodeAt(o);r.push(String.fromCharCode(c>>8&255));r.push(String.fromCharCode(255&c))}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;o(5);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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,l=new Array(r);o<r;o++)l[o]=t[o];return l}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var l={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=l;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",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",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var c=l.WARNINGS;function warn(t){c>=l.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}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){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=u;var h=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,o){var l;_classCallCheck(this,PasswordException);(l=r.call(this,t)).code=o;return l}return PasswordException}(u);r.PasswordException=h;var d=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,o){var l;_classCallCheck(this,UnknownErrorException);(l=r.call(this,t)).details=o;return l}return UnknownErrorException}(u);r.UnknownErrorException=d;var m=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return r.apply(this,arguments)}return InvalidPDFException}(u);r.InvalidPDFException=m;var g=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(u);r.MissingPDFException=g;var y=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,o){var l;_classCallCheck(this,UnexpectedResponseException);(l=r.call(this,t)).status=o;return l}return UnexpectedResponseException}(u);r.UnexpectedResponseException=y;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(){_classCallCheck(this,FormatError);return r.apply(this,arguments)}return FormatError}(u);r.FormatError=v;var S=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(u);r.AbortException=S;var k=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,o=new Uint8Array(r),l=0;l<r;++l)o[l]=255&t.charCodeAt(l);return o}function arrayByteLength(t){if(void 0!==t.length)return t.length;assert(void 0!==t.byteLength,"arrayByteLength - invalid argument.");return t.byteLength}var C={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=C;var w={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=w;var _=function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))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")})),O=function(){function Util(){_classCallCheck(this,Util)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Util,null,[{key:"makeHexColor",value:function makeHexColor(t,r,o){return"#".concat(_[t]).concat(_[r]).concat(_[o])}},{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 o=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])/o,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/o]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var o=Util.applyTransform(t,r),l=Util.applyTransform(t.slice(2,4),r),c=Util.applyTransform([t[0],t[3]],r),u=Util.applyTransform([t[2],t[1]],r);return[Math.min(o[0],l[0],c[0],u[0]),Math.min(o[1],l[1],c[1],u[1]),Math.max(o[0],l[0],c[0],u[0]),Math.max(o[1],l[1],c[1],u[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]],o=t[0]*r[0]+t[1]*r[2],l=t[0]*r[1]+t[1]*r[3],c=t[2]*r[0]+t[3]*r[2],u=t[2]*r[1]+t[3]*r[3],h=(o+u)/2,d=Math.sqrt(Math.pow(o+u,2)-4*(o*u-c*l))/2,m=h+d||1,g=h-d||1;return[Math.sqrt(m),Math.sqrt(g)]}},{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 o=[t[0],t[2],r[0],r[2]].sort(compare),l=[t[1],t[3],r[1],r[3]].sort(compare),c=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0]))return null;c[0]=o[1];c[2]=o[2];if(!(l[0]===t[1]&&l[1]===r[1]||l[0]===r[1]&&l[1]===t[1]))return null;c[1]=l[1];c[3]=l[2];return c}}]);return Util}();r.Util=O;var x=[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,o)=>{"use strict";var l=o(6);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=o(7));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&l.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&l.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkObjectFromEntries(){Object.fromEntries||o(52)}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=o(85))}();!function checkReadableStream(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function start(t){t.close()}});t=!0}catch(t){}t||(globalThis.ReadableStream=o(111).ReadableStream)}();!function checkStringPadStart(){String.prototype.padStart||o(112)}();!function checkStringPadEnd(){String.prototype.padEnd||o(118)}();!function checkObjectValues(){Object.values||(Object.values=o(120))}();!function checkObjectEntries(){Object.entries||(Object.entries=o(123))}()}},(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 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);t.exports=o(10)},(t,r,o)=>{o(9)({global:!0},{globalThis:o(10)})},(t,r,o)=>{var l=o(10),c=o(11).f,u=o(25),h=o(28),d=o(29),m=o(39),g=o(51);t.exports=function(t,r){var o,y,v,S,k,C=t.target,w=t.global,_=t.stat;if(o=w?l:_?l[C]||d(C,{}):(l[C]||{}).prototype)for(y in r){S=r[y];v=t.noTargetGet?(k=c(o,y))&&k.value:o[y];if(!g(w?y:C+(_?".":"#")+y,t.forced)&&void 0!==v){if(typeof S==typeof v)continue;m(S,v)}(t.sham||v&&v.sham)&&u(S,"sham",!0);h(o,y,S,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 l=o(12),c=o(14),u=o(15),h=o(16),d=o(20),m=o(22),g=o(23),y=Object.getOwnPropertyDescriptor;r.f=l?y:function getOwnPropertyDescriptor(t,r){t=h(t);r=d(r,!0);if(g)try{return y(t,r)}catch(t){}if(m(t,r))return u(!c.f.call(t,r),t[r])}},(t,r,o)=>{var l=o(13);t.exports=!l((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 o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!o.call({1:2},1);r.f=c?function propertyIsEnumerable(t){var r=l(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 l=o(17),c=o(19);t.exports=function(t){return l(c(t))}},(t,r,o)=>{var l=o(13),c=o(18),u="".split;t.exports=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?u.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,o)=>{var l=o(21);t.exports=function(t,r){if(!l(t))return t;var o,c;if(r&&"function"==typeof(o=t.toString)&&!l(c=o.call(t)))return c;if("function"==typeof(o=t.valueOf)&&!l(c=o.call(t)))return c;if(!r&&"function"==typeof(o=t.toString)&&!l(c=o.call(t)))return c;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,o){return r.call(t,o)}},(t,r,o)=>{var l=o(12),c=o(13),u=o(24);t.exports=!l&&!c((function(){return 7!=Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a}))},(t,r,o)=>{var l=o(10),c=o(21),u=l.document,h=c(u)&&c(u.createElement);t.exports=function(t){return h?u.createElement(t):{}}},(t,r,o)=>{var l=o(12),c=o(26),u=o(15);t.exports=l?function(t,r,o){return c.f(t,r,u(1,o))}:function(t,r,o){t[r]=o;return t}},(t,r,o)=>{var l=o(12),c=o(23),u=o(27),h=o(20),d=Object.defineProperty;r.f=l?d:function defineProperty(t,r,o){u(t);r=h(r,!0);u(o);if(c)try{return d(t,r,o)}catch(t){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");"value"in o&&(t[r]=o.value);return t}},(t,r,o)=>{var l=o(21);t.exports=function(t){if(!l(t))throw TypeError(String(t)+" is not an object");return t}},(t,r,o)=>{var l=o(10),c=o(25),u=o(22),h=o(29),d=o(30),m=o(32),g=m.get,y=m.enforce,v=String(String).split("String");(t.exports=function(t,r,o,d){var m,g=!!d&&!!d.unsafe,S=!!d&&!!d.enumerable,k=!!d&&!!d.noTargetGet;if("function"==typeof o){"string"!=typeof r||u(o,"name")||c(o,"name",r);(m=y(o)).source||(m.source=v.join("string"==typeof r?r:""))}if(t!==l){g?!k&&t[r]&&(S=!0):delete t[r];S?t[r]=o:c(t,r,o)}else S?t[r]=o:h(r,o)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&g(this).source||d(this)}))},(t,r,o)=>{var l=o(10),c=o(25);t.exports=function(t,r){try{c(l,t,r)}catch(o){l[t]=r}return r}},(t,r,o)=>{var l=o(31),c=Function.toString;"function"!=typeof l.inspectSource&&(l.inspectSource=function(t){return c.call(t)});t.exports=l.inspectSource},(t,r,o)=>{var l=o(10),c=o(29),u="__core-js_shared__",h=l[u]||c(u,{});t.exports=h},(t,r,o)=>{var l,c,u,h=o(33),d=o(10),m=o(21),g=o(25),y=o(22),v=o(31),S=o(34),k=o(38),C=d.WeakMap;if(h){var w=v.state||(v.state=new C),_=w.get,O=w.has,x=w.set;l=function(t,r){r.facade=t;x.call(w,t,r);return r};c=function(t){return _.call(w,t)||{}};u=function(t){return O.call(w,t)}}else{var T=S("state");k[T]=!0;l=function(t,r){r.facade=t;g(t,T,r);return r};c=function(t){return y(t,T)?t[T]:{}};u=function(t){return y(t,T)}}t.exports={set:l,get:c,has:u,enforce:function(t){return u(t)?c(t):l(t,{})},getterFor:function(t){return function(r){var o;if(!m(r)||(o=c(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}}}},(t,r,o)=>{var l=o(10),c=o(30),u=l.WeakMap;t.exports="function"==typeof u&&/native code/.test(c(u))},(t,r,o)=>{var l=o(35),c=o(37),u=l("keys");t.exports=function(t){return u[t]||(u[t]=c(t))}},(t,r,o)=>{var l=o(36),c=o(31);(t.exports=function(t,r){return c[t]||(c[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.10.0",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},t=>{t.exports=!1},t=>{var r=0,o=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+o).toString(36)}},t=>{t.exports={}},(t,r,o)=>{var l=o(22),c=o(40),u=o(11),h=o(26);t.exports=function(t,r){for(var o=c(r),d=h.f,m=u.f,g=0;g<o.length;g++){var y=o[g];l(t,y)||d(t,y,m(r,y))}}},(t,r,o)=>{var l=o(41),c=o(43),u=o(50),h=o(27);t.exports=l("Reflect","ownKeys")||function ownKeys(t){var r=c.f(h(t)),o=u.f;return o?r.concat(o(t)):r}},(t,r,o)=>{var l=o(42),c=o(10),aFunction=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(l[t])||aFunction(c[t]):l[t]&&l[t][r]||c[t]&&c[t][r]}},(t,r,o)=>{var l=o(10);t.exports=l},(t,r,o)=>{var l=o(44),c=o(49).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return l(t,c)}},(t,r,o)=>{var l=o(22),c=o(16),u=o(45).indexOf,h=o(38);t.exports=function(t,r){var o,d=c(t),m=0,g=[];for(o in d)!l(h,o)&&l(d,o)&&g.push(o);for(;r.length>m;)l(d,o=r[m++])&&(~u(g,o)||g.push(o));return g}},(t,r,o)=>{var l=o(16),c=o(46),u=o(48),createMethod=function(t){return function(r,o,h){var d,m=l(r),g=c(m.length),y=u(h,g);if(t&&o!=o){for(;g>y;)if((d=m[y++])!=d)return!0}else for(;g>y;y++)if((t||y in m)&&m[y]===o)return t||y||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,o)=>{var l=o(47),c=Math.min;t.exports=function(t){return t>0?c(l(t),9007199254740991):0}},t=>{var r=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)}},(t,r,o)=>{var l=o(47),c=Math.max,u=Math.min;t.exports=function(t,r){var o=l(t);return o<0?c(o+r,0):u(o,r)}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,o)=>{var l=o(13),c=/#|\.prototype\./,isForced=function(t,r){var o=h[u(t)];return o==m||o!=d&&("function"==typeof r?l(r):!!r)},u=isForced.normalize=function(t){return String(t).replace(c,".").toLowerCase()},h=isForced.data={},d=isForced.NATIVE="N",m=isForced.POLYFILL="P";t.exports=isForced},(t,r,o)=>{o(53);o(75);var l=o(42);t.exports=l.Object.fromEntries},(t,r,o)=>{"use strict";var l=o(16),c=o(54),u=o(65),h=o(32),d=o(66),m="Array Iterator",g=h.set,y=h.getterFor(m);t.exports=d(Array,"Array",(function(t,r){g(this,{type:m,target:l(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,o=t.kind,l=t.index++;if(!r||l>=r.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==o?{value:l,done:!1}:"values"==o?{value:r[l],done:!1}:{value:[l,r[l]],done:!1}}),"values");u.Arguments=u.Array;c("keys");c("values");c("entries")},(t,r,o)=>{var l=o(55),c=o(61),u=o(26),h=l("unscopables"),d=Array.prototype;null==d[h]&&u.f(d,h,{configurable:!0,value:c(null)});t.exports=function(t){d[h][t]=!0}},(t,r,o)=>{var l=o(10),c=o(35),u=o(22),h=o(37),d=o(56),m=o(60),g=c("wks"),y=l.Symbol,v=m?y:y&&y.withoutSetter||h;t.exports=function(t){u(g,t)&&(d||"string"==typeof g[t])||(d&&u(y,t)?g[t]=y[t]:g[t]=v("Symbol."+t));return g[t]}},(t,r,o)=>{var l=o(57),c=o(58),u=o(13);t.exports=!!Object.getOwnPropertySymbols&&!u((function(){return!Symbol.sham&&(l?38===c:c>37&&c<41)}))},(t,r,o)=>{var l=o(18),c=o(10);t.exports="process"==l(c.process)},(t,r,o)=>{var l,c,u=o(10),h=o(59),d=u.process,m=d&&d.versions,g=m&&m.v8;g?c=(l=g.split("."))[0]+l[1]:h&&(!(l=h.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=h.match(/Chrome\/(\d+)/))&&(c=l[1]);t.exports=c&&+c},(t,r,o)=>{var l=o(41);t.exports=l("navigator","userAgent")||""},(t,r,o)=>{var l=o(56);t.exports=l&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,o)=>{var l,c=o(27),u=o(62),h=o(49),d=o(38),m=o(64),g=o(24),y=o(34),v=y("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<script>"+t+"</"+"script>"},NullProtoObject=function(){try{l=document.domain&&new ActiveXObject("htmlfile")}catch(t){}NullProtoObject=l?function(t){t.write(scriptTag(""));t.close();var r=t.parentWindow.Object;t=null;return r}(l):function(){var t,r=g("iframe");r.style.display="none";m.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=h.length;t--;)delete NullProtoObject.prototype[h[t]];return NullProtoObject()};d[v]=!0;t.exports=Object.create||function create(t,r){var o;if(null!==t){EmptyConstructor.prototype=c(t);o=new EmptyConstructor;EmptyConstructor.prototype=null;o[v]=t}else o=NullProtoObject();return void 0===r?o:u(o,r)}},(t,r,o)=>{var l=o(12),c=o(26),u=o(27),h=o(63);t.exports=l?Object.defineProperties:function defineProperties(t,r){u(t);for(var o,l=h(r),d=l.length,m=0;d>m;)c.f(t,o=l[m++],r[o]);return t}},(t,r,o)=>{var l=o(44),c=o(49);t.exports=Object.keys||function keys(t){return l(t,c)}},(t,r,o)=>{var l=o(41);t.exports=l("document","documentElement")},t=>{t.exports={}},(t,r,o)=>{"use strict";var l=o(9),c=o(67),u=o(69),h=o(73),d=o(72),m=o(25),g=o(28),y=o(55),v=o(36),S=o(65),k=o(68),C=k.IteratorPrototype,w=k.BUGGY_SAFARI_ITERATORS,_=y("iterator"),O="keys",x="values",T="entries",returnThis=function(){return this};t.exports=function(t,r,o,y,k,R,E){c(o,r,y);var D,j,M,getIterationMethod=function(t){if(t===k&&X)return X;if(!w&&t in U)return U[t];switch(t){case O:return function keys(){return new o(this,t)};case x:return function values(){return new o(this,t)};case T:return function entries(){return new o(this,t)}}return function(){return new o(this)}},N=r+" Iterator",L=!1,U=t.prototype,q=U[_]||U["@@iterator"]||k&&U[k],X=!w&&q||getIterationMethod(k),W="Array"==r&&U.entries||q;if(W){D=u(W.call(new t));if(C!==Object.prototype&&D.next){v||u(D)===C||(h?h(D,C):"function"!=typeof D[_]&&m(D,_,returnThis));d(D,N,!0,!0);v&&(S[N]=returnThis)}}if(k==x&&q&&q.name!==x){L=!0;X=function values(){return q.call(this)}}v&&!E||U[_]===X||m(U,_,X);S[r]=X;if(k){j={values:getIterationMethod(x),keys:R?X:getIterationMethod(O),entries:getIterationMethod(T)};if(E)for(M in j)(w||L||!(M in U))&&g(U,M,j[M]);else l({target:r,proto:!0,forced:w||L},j)}return j}},(t,r,o)=>{"use strict";var l=o(68).IteratorPrototype,c=o(61),u=o(15),h=o(72),d=o(65),returnThis=function(){return this};t.exports=function(t,r,o){var m=r+" Iterator";t.prototype=c(l,{next:u(1,o)});h(t,m,!1,!0);d[m]=returnThis;return t}},(t,r,o)=>{"use strict";var l,c,u,h=o(13),d=o(69),m=o(25),g=o(22),y=o(55),v=o(36),S=y("iterator"),k=!1;[].keys&&("next"in(u=[].keys())?(c=d(d(u)))!==Object.prototype&&(l=c):k=!0);var C=null==l||h((function(){var t={};return l[S].call(t)!==t}));C&&(l={});v&&!C||g(l,S)||m(l,S,(function(){return this}));t.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:k}},(t,r,o)=>{var l=o(22),c=o(70),u=o(34),h=o(71),d=u("IE_PROTO"),m=Object.prototype;t.exports=h?Object.getPrototypeOf:function(t){t=c(t);return l(t,d)?t[d]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?m:null}},(t,r,o)=>{var l=o(19);t.exports=function(t){return Object(l(t))}},(t,r,o)=>{var l=o(13);t.exports=!l((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,o)=>{var l=o(26).f,c=o(22),u=o(55)("toStringTag");t.exports=function(t,r,o){t&&!c(t=o?t:t.prototype,u)&&l(t,u,{configurable:!0,value:r})}},(t,r,o)=>{var l=o(27),c=o(74);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,o={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(o,[]);r=o instanceof Array}catch(t){}return function setPrototypeOf(o,u){l(o);c(u);r?t.call(o,u):o.__proto__=u;return o}}():void 0)},(t,r,o)=>{var l=o(21);t.exports=function(t){if(!l(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},(t,r,o)=>{var l=o(9),c=o(76),u=o(84);l({target:"Object",stat:!0},{fromEntries:function fromEntries(t){var r={};c(t,(function(t,o){u(r,t,o)}),{AS_ENTRIES:!0});return r}})},(t,r,o)=>{var l=o(27),c=o(77),u=o(46),h=o(78),d=o(80),m=o(83),Result=function(t,r){this.stopped=t;this.result=r};t.exports=function(t,r,o){var g,y,v,S,k,C,w,_=o&&o.that,O=!(!o||!o.AS_ENTRIES),x=!(!o||!o.IS_ITERATOR),T=!(!o||!o.INTERRUPTED),R=h(r,_,1+O+T),stop=function(t){g&&m(g);return new Result(!0,t)},callFn=function(t){if(O){l(t);return T?R(t[0],t[1],stop):R(t[0],t[1])}return T?R(t,stop):R(t)};if(x)g=t;else{if("function"!=typeof(y=d(t)))throw TypeError("Target is not iterable");if(c(y)){for(v=0,S=u(t.length);S>v;v++)if((k=callFn(t[v]))&&k instanceof Result)return k;return new Result(!1)}g=y.call(t)}C=g.next;for(;!(w=C.call(g)).done;){try{k=callFn(w.value)}catch(t){m(g);throw t}if("object"==typeof k&&k&&k instanceof Result)return k}return new Result(!1)}},(t,r,o)=>{var l=o(55),c=o(65),u=l("iterator"),h=Array.prototype;t.exports=function(t){return void 0!==t&&(c.Array===t||h[u]===t)}},(t,r,o)=>{var l=o(79);t.exports=function(t,r,o){l(t);if(void 0===r)return t;switch(o){case 0:return function(){return t.call(r)};case 1:return function(o){return t.call(r,o)};case 2:return function(o,l){return t.call(r,o,l)};case 3:return function(o,l,c){return t.call(r,o,l,c)}}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,o)=>{var l=o(81),c=o(65),u=o(55)("iterator");t.exports=function(t){if(null!=t)return t[u]||t["@@iterator"]||c[l(t)]}},(t,r,o)=>{var l=o(82),c=o(18),u=o(55)("toStringTag"),h="Arguments"==c(function(){return arguments}());t.exports=l?c:function(t){var r,o,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),u))?o:h?c(r):"Object"==(l=c(r))&&"function"==typeof r.callee?"Arguments":l}},(t,r,o)=>{var l={};l[o(55)("toStringTag")]="z";t.exports="[object z]"===String(l)},(t,r,o)=>{var l=o(27);t.exports=function(t){var r=t.return;if(void 0!==r)return l(r.call(t)).value}},(t,r,o)=>{"use strict";var l=o(20),c=o(26),u=o(15);t.exports=function(t,r,o){var h=l(r);h in t?c.f(t,h,u(0,o)):t[h]=o}},(t,r,o)=>{o(86);o(87);o(89);o(104);o(105);o(106);o(107);o(109);var l=o(42);t.exports=l.Promise},(t,r,o)=>{"use strict";var l=o(9),c=o(69),u=o(73),h=o(61),d=o(25),m=o(15),g=o(76),y=function AggregateError(t,r){var o=this;if(!(o instanceof y))return new y(t,r);u&&(o=u(new Error(void 0),c(o)));void 0!==r&&d(o,"message",String(r));var l=[];g(t,l.push,{that:l});d(o,"errors",l);return o};y.prototype=h(Error.prototype,{constructor:m(5,y),message:m(5,""),name:m(5,"AggregateError")});l({global:!0},{AggregateError:y})},(t,r,o)=>{var l=o(82),c=o(28),u=o(88);l||c(Object.prototype,"toString",u,{unsafe:!0})},(t,r,o)=>{"use strict";var l=o(82),c=o(81);t.exports=l?{}.toString:function toString(){return"[object "+c(this)+"]"}},(t,r,o)=>{"use strict";var l,c,u,h,d=o(9),m=o(36),g=o(10),y=o(41),v=o(90),S=o(28),k=o(91),C=o(72),w=o(92),_=o(21),O=o(79),x=o(93),T=o(30),R=o(76),E=o(94),D=o(95),j=o(96).set,M=o(98),N=o(100),L=o(102),U=o(101),q=o(103),X=o(32),W=o(51),H=o(55),z=o(57),G=o(58),V=H("species"),$="Promise",K=X.get,Y=X.set,J=X.getterFor($),Q=v,Z=g.TypeError,ee=g.document,te=g.process,re=y("fetch"),ae=U.f,ne=ae,ie=!!(ee&&ee.createEvent&&g.dispatchEvent),oe="function"==typeof PromiseRejectionEvent,se="unhandledrejection",le=W($,(function(){if(!(T(Q)!==String(Q))){if(66===G)return!0;if(!z&&!oe)return!0}if(m&&!Q.prototype.finally)return!0;if(G>=51&&/native code/.test(Q))return!1;var t=Q.resolve(1),FakePromise=function(t){t((function(){}),(function(){}))};(t.constructor={})[V]=FakePromise;return!(t.then((function(){}))instanceof FakePromise)})),ce=le||!E((function(t){Q.all(t).catch((function(){}))})),isThenable=function(t){var r;return!(!_(t)||"function"!=typeof(r=t.then))&&r},notify=function(t,r){if(!t.notified){t.notified=!0;var o=t.reactions;M((function(){for(var l=t.value,c=1==t.state,u=0;o.length>u;){var h,d,m,g=o[u++],y=c?g.ok:g.fail,v=g.resolve,S=g.reject,k=g.domain;try{if(y){if(!c){2===t.rejection&&onHandleUnhandled(t);t.rejection=1}if(!0===y)h=l;else{k&&k.enter();h=y(l);if(k){k.exit();m=!0}}h===g.promise?S(Z("Promise-chain cycle")):(d=isThenable(h))?d.call(h,v,S):v(h)}else S(l)}catch(t){k&&!m&&k.exit();S(t)}}t.reactions=[];t.notified=!1;r&&!t.rejection&&onUnhandled(t)}))}},dispatchEvent=function(t,r,o){var l,c;if(ie){(l=ee.createEvent("Event")).promise=r;l.reason=o;l.initEvent(t,!1,!0);g.dispatchEvent(l)}else l={promise:r,reason:o};!oe&&(c=g["on"+t])?c(l):t===se&&L("Unhandled promise rejection",o)},onUnhandled=function(t){j.call(g,(function(){var r,o=t.facade,l=t.value;if(isUnhandled(t)){r=q((function(){z?te.emit("unhandledRejection",l,o):dispatchEvent(se,o,l)}));t.rejection=z||isUnhandled(t)?2:1;if(r.error)throw r.value}}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){j.call(g,(function(){var r=t.facade;z?te.emit("rejectionHandled",r):dispatchEvent("rejectionhandled",r,t.value)}))},bind=function(t,r,o){return function(l){t(r,l,o)}},internalReject=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);t.value=r;t.state=2;notify(t,!0)}},internalResolve=function(t,r,o){if(!t.done){t.done=!0;o&&(t=o);try{if(t.facade===r)throw Z("Promise can't be resolved itself");var l=isThenable(r);if(l)M((function(){var o={done:!1};try{l.call(r,bind(internalResolve,o,t),bind(internalReject,o,t))}catch(r){internalReject(o,r,t)}}));else{t.value=r;t.state=1;notify(t,!1)}}catch(r){internalReject({done:!1},r,t)}}};if(le){Q=function Promise(t){x(this,Q,$);O(t);l.call(this);var r=K(this);try{t(bind(internalResolve,r),bind(internalReject,r))}catch(t){internalReject(r,t)}};(l=function Promise(t){Y(this,{type:$,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=k(Q.prototype,{then:function then(t,r){var o=J(this),l=ae(D(this,Q));l.ok="function"!=typeof t||t;l.fail="function"==typeof r&&r;l.domain=z?te.domain:void 0;o.parent=!0;o.reactions.push(l);0!=o.state&&notify(o,!1);return l.promise},catch:function(t){return this.then(void 0,t)}});c=function(){var t=new l,r=K(t);this.promise=t;this.resolve=bind(internalResolve,r);this.reject=bind(internalReject,r)};U.f=ae=function(t){return t===Q||t===u?new c(t):ne(t)};if(!m&&"function"==typeof v){h=v.prototype.then;S(v.prototype,"then",(function then(t,r){var o=this;return new Q((function(t,r){h.call(o,t,r)})).then(t,r)}),{unsafe:!0});"function"==typeof re&&d({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(t){return N(Q,re.apply(g,arguments))}})}}d({global:!0,wrap:!0,forced:le},{Promise:Q});C(Q,$,!1,!0);w($);u=y($);d({target:$,stat:!0,forced:le},{reject:function reject(t){var r=ae(this);r.reject.call(void 0,t);return r.promise}});d({target:$,stat:!0,forced:m||le},{resolve:function resolve(t){return N(m&&this===u?Q:this,t)}});d({target:$,stat:!0,forced:ce},{all:function all(t){var r=this,o=ae(r),l=o.resolve,c=o.reject,u=q((function(){var o=O(r.resolve),u=[],h=0,d=1;R(t,(function(t){var m=h++,g=!1;u.push(void 0);d++;o.call(r,t).then((function(t){if(!g){g=!0;u[m]=t;--d||l(u)}}),c)}));--d||l(u)}));u.error&&c(u.value);return o.promise},race:function race(t){var r=this,o=ae(r),l=o.reject,c=q((function(){var c=O(r.resolve);R(t,(function(t){c.call(r,t).then(o.resolve,l)}))}));c.error&&l(c.value);return o.promise}})},(t,r,o)=>{var l=o(10);t.exports=l.Promise},(t,r,o)=>{var l=o(28);t.exports=function(t,r,o){for(var c in r)l(t,c,r[c],o);return t}},(t,r,o)=>{"use strict";var l=o(41),c=o(26),u=o(55),h=o(12),d=u("species");t.exports=function(t){var r=l(t),o=c.f;h&&r&&!r[d]&&o(r,d,{configurable:!0,get:function(){return this}})}},t=>{t.exports=function(t,r,o){if(!(t instanceof r))throw TypeError("Incorrect "+(o?o+" ":"")+"invocation");return t}},(t,r,o)=>{var l=o(55)("iterator"),c=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){c=!0}};h[l]=function(){return this};Array.from(h,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!c)return!1;var o=!1;try{var u={};u[l]=function(){return{next:function(){return{done:o=!0}}}};t(u)}catch(t){}return o}},(t,r,o)=>{var l=o(27),c=o(79),u=o(55)("species");t.exports=function(t,r){var o,h=l(t).constructor;return void 0===h||null==(o=l(h)[u])?r:c(o)}},(t,r,o)=>{var l,c,u,h=o(10),d=o(13),m=o(78),g=o(64),y=o(24),v=o(97),S=o(57),k=h.location,C=h.setImmediate,w=h.clearImmediate,_=h.process,O=h.MessageChannel,x=h.Dispatch,T=0,R={},E="onreadystatechange",run=function(t){if(R.hasOwnProperty(t)){var r=R[t];delete R[t];r()}},runner=function(t){return function(){run(t)}},listener=function(t){run(t.data)},post=function(t){h.postMessage(t+"",k.protocol+"//"+k.host)};if(!C||!w){C=function setImmediate(t){for(var r=[],o=1;arguments.length>o;)r.push(arguments[o++]);R[++T]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)};l(T);return T};w=function clearImmediate(t){delete R[t]};if(S)l=function(t){_.nextTick(runner(t))};else if(x&&x.now)l=function(t){x.now(runner(t))};else if(O&&!v){u=(c=new O).port2;c.port1.onmessage=listener;l=m(u.postMessage,u,1)}else if(h.addEventListener&&"function"==typeof postMessage&&!h.importScripts&&k&&"file:"!==k.protocol&&!d(post)){l=post;h.addEventListener("message",listener,!1)}else l=E in y("script")?function(t){g.appendChild(y("script")).onreadystatechange=function(){g.removeChild(this);run(t)}}:function(t){setTimeout(runner(t),0)}}t.exports={set:C,clear:w}},(t,r,o)=>{var l=o(59);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(l)},(t,r,o)=>{var l,c,u,h,d,m,g,y,v=o(10),S=o(11).f,k=o(96).set,C=o(97),w=o(99),_=o(57),O=v.MutationObserver||v.WebKitMutationObserver,x=v.document,T=v.process,R=v.Promise,E=S(v,"queueMicrotask"),D=E&&E.value;if(!D){l=function(){var t,r;_&&(t=T.domain)&&t.exit();for(;c;){r=c.fn;c=c.next;try{r()}catch(t){c?h():u=void 0;throw t}}u=void 0;t&&t.enter()};if(C||_||w||!O||!x)if(R&&R.resolve){g=R.resolve(void 0);y=g.then;h=function(){y.call(g,l)}}else h=_?function(){T.nextTick(l)}:function(){k.call(v,l)};else{d=!0;m=x.createTextNode("");new O(l).observe(m,{characterData:!0});h=function(){m.data=d=!d}}}t.exports=D||function(t){var r={fn:t,next:void 0};u&&(u.next=r);if(!c){c=r;h()}u=r}},(t,r,o)=>{var l=o(59);t.exports=/web0s(?!.*chrome)/i.test(l)},(t,r,o)=>{var l=o(27),c=o(21),u=o(101);t.exports=function(t,r){l(t);if(c(r)&&r.constructor===t)return r;var o=u.f(t);(0,o.resolve)(r);return o.promise}},(t,r,o)=>{"use strict";var l=o(79),PromiseCapability=function(t){var r,o;this.promise=new t((function(t,l){if(void 0!==r||void 0!==o)throw TypeError("Bad Promise constructor");r=t;o=l}));this.resolve=l(r);this.reject=l(o)};t.exports.f=function(t){return new PromiseCapability(t)}},(t,r,o)=>{var l=o(10);t.exports=function(t,r){var o=l.console;o&&o.error&&(1===arguments.length?o.error(t):o.error(t,r))}},t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},(t,r,o)=>{"use strict";var l=o(9),c=o(79),u=o(101),h=o(103),d=o(76);l({target:"Promise",stat:!0},{allSettled:function allSettled(t){var r=this,o=u.f(r),l=o.resolve,m=o.reject,g=h((function(){var o=c(r.resolve),u=[],h=0,m=1;d(t,(function(t){var c=h++,d=!1;u.push(void 0);m++;o.call(r,t).then((function(t){if(!d){d=!0;u[c]={status:"fulfilled",value:t};--m||l(u)}}),(function(t){if(!d){d=!0;u[c]={status:"rejected",reason:t};--m||l(u)}}))}));--m||l(u)}));g.error&&m(g.value);return o.promise}})},(t,r,o)=>{"use strict";var l=o(9),c=o(79),u=o(41),h=o(101),d=o(103),m=o(76),g="No one promise resolved";l({target:"Promise",stat:!0},{any:function any(t){var r=this,o=h.f(r),l=o.resolve,y=o.reject,v=d((function(){var o=c(r.resolve),h=[],d=0,v=1,S=!1;m(t,(function(t){var c=d++,m=!1;h.push(void 0);v++;o.call(r,t).then((function(t){if(!m&&!S){S=!0;l(t)}}),(function(t){if(!m&&!S){m=!0;h[c]=t;--v||y(new(u("AggregateError"))(h,g))}}))}));--v||y(new(u("AggregateError"))(h,g))}));v.error&&y(v.value);return o.promise}})},(t,r,o)=>{"use strict";var l=o(9),c=o(36),u=o(90),h=o(13),d=o(41),m=o(95),g=o(100),y=o(28);l({target:"Promise",proto:!0,real:!0,forced:!!u&&h((function(){u.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var r=m(this,d("Promise")),o="function"==typeof t;return this.then(o?function(o){return g(r,t()).then((function(){return o}))}:t,o?function(o){return g(r,t()).then((function(){throw o}))}:t)}});c||"function"!=typeof u||u.prototype.finally||y(u.prototype,"finally",d("Promise").prototype.finally)},(t,r,o)=>{"use strict";var l=o(108).charAt,c=o(32),u=o(66),h="String Iterator",d=c.set,m=c.getterFor(h);u(String,"String",(function(t){d(this,{type:h,string:String(t),index:0})}),(function next(){var t,r=m(this),o=r.string,c=r.index;if(c>=o.length)return{value:void 0,done:!0};t=l(o,c);r.index+=t.length;return{value:t,done:!1}}))},(t,r,o)=>{var l=o(47),c=o(19),createMethod=function(t){return function(r,o){var u,h,d=String(c(r)),m=l(o),g=d.length;return m<0||m>=g?t?"":void 0:(u=d.charCodeAt(m))<55296||u>56319||m+1===g||(h=d.charCodeAt(m+1))<56320||h>57343?t?d.charAt(m):u:t?d.slice(m,m+2):h-56320+(u-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},(t,r,o)=>{var l=o(10),c=o(110),u=o(53),h=o(25),d=o(55),m=d("iterator"),g=d("toStringTag"),y=u.values;for(var v in c){var S=l[v],k=S&&S.prototype;if(k){if(k[m]!==y)try{h(k,m,y)}catch(t){k[m]=y}k[g]||h(k,g,v);if(c[v])for(var C in u)if(k[C]!==u[C])try{h(k,C,u[C])}catch(t){k[C]=u[C]}}}},t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,r){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function noop(){}var o=function getGlobals(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}();function typeIsObject(t){return"object"==typeof t&&null!==t||"function"==typeof t}var l=noop,c=Promise,u=Promise.prototype.then,h=Promise.resolve.bind(c),d=Promise.reject.bind(c);function newPromise(t){return new c(t)}function promiseResolvedWith(t){return h(t)}function promiseRejectedWith(t){return d(t)}function PerformPromiseThen(t,r,o){return u.call(t,r,o)}function uponPromise(t,r,o){PerformPromiseThen(PerformPromiseThen(t,r,o),void 0,l)}function uponFulfillment(t,r){uponPromise(t,r)}function uponRejection(t,r){uponPromise(t,void 0,r)}function transformPromiseWith(t,r,o){return PerformPromiseThen(t,r,o)}function setPromiseIsHandledToTrue(t){PerformPromiseThen(t,void 0,l)}var m=function(){var t=o&&o.queueMicrotask;if("function"==typeof t)return t;var r=promiseResolvedWith(void 0);return function(t){return PerformPromiseThen(r,t)}}();function reflectCall(t,r,o){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,r,o)}function promiseCall(t,r,o){try{return promiseResolvedWith(reflectCall(t,r,o))}catch(t){return promiseRejectedWith(t)}}var g=function(){function SimpleQueue(){this._cursor=0;this._size=0;this._front={_elements:[],_next:void 0};this._back=this._front;this._cursor=0;this._size=0}Object.defineProperty(SimpleQueue.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0});SimpleQueue.prototype.push=function(t){var r=this._back,o=r;16383===r._elements.length&&(o={_elements:[],_next:void 0});r._elements.push(t);if(o!==r){this._back=o;r._next=o}++this._size};SimpleQueue.prototype.shift=function(){var t=this._front,r=t,o=this._cursor,l=o+1,c=t._elements,u=c[o];if(16384===l){r=t._next;l=0}--this._size;this._cursor=l;t!==r&&(this._front=r);c[o]=void 0;return u};SimpleQueue.prototype.forEach=function(t){for(var r=this._cursor,o=this._front,l=o._elements;r!==l.length||void 0!==o._next;){if(r===l.length){r=0;if(0===(l=(o=o._next)._elements).length)break}t(l[r]);++r}};SimpleQueue.prototype.peek=function(){var t=this._front,r=this._cursor;return t._elements[r]};return SimpleQueue}();function ReadableStreamReaderGenericInitialize(t,r){t._ownerReadableStream=r;r._reader=t;"readable"===r._state?defaultReaderClosedPromiseInitialize(t):"closed"===r._state?function defaultReaderClosedPromiseInitializeAsResolved(t){defaultReaderClosedPromiseInitialize(t);defaultReaderClosedPromiseResolve(t)}(t):defaultReaderClosedPromiseInitializeAsRejected(t,r._storedError)}function ReadableStreamReaderGenericCancel(t,r){return ReadableStreamCancel(t._ownerReadableStream,r)}function ReadableStreamReaderGenericRelease(t){"readable"===t._ownerReadableStream._state?defaultReaderClosedPromiseReject(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function defaultReaderClosedPromiseResetToRejected(t,r){defaultReaderClosedPromiseInitializeAsRejected(t,r)}(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));t._ownerReadableStream._reader=void 0;t._ownerReadableStream=void 0}function readerLockException(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function defaultReaderClosedPromiseInitialize(t){t._closedPromise=newPromise((function(r,o){t._closedPromise_resolve=r;t._closedPromise_reject=o}))}function defaultReaderClosedPromiseInitializeAsRejected(t,r){defaultReaderClosedPromiseInitialize(t);defaultReaderClosedPromiseReject(t,r)}function defaultReaderClosedPromiseReject(t,r){if(void 0!==t._closedPromise_reject){setPromiseIsHandledToTrue(t._closedPromise);t._closedPromise_reject(r);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0}}function defaultReaderClosedPromiseResolve(t){if(void 0!==t._closedPromise_resolve){t._closedPromise_resolve(void 0);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0}}var y=r("[[AbortSteps]]"),v=r("[[ErrorSteps]]"),S=r("[[CancelSteps]]"),k=r("[[PullSteps]]"),C=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},w=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};function assertDictionary(t,r){if(void 0!==t&&!function isDictionary(t){return"object"==typeof t||"function"==typeof t}(t))throw new TypeError(r+" is not an object.")}function assertFunction(t,r){if("function"!=typeof t)throw new TypeError(r+" is not a function.")}function assertObject(t,r){if(!function isObject(t){return"object"==typeof t&&null!==t||"function"==typeof t}(t))throw new TypeError(r+" is not an object.")}function assertRequiredArgument(t,r,o){if(void 0===t)throw new TypeError("Parameter "+r+" is required in '"+o+"'.")}function assertRequiredField(t,r,o){if(void 0===t)throw new TypeError(r+" is required in '"+o+"'.")}function convertUnrestrictedDouble(t){return Number(t)}function censorNegativeZero(t){return 0===t?0:t}function convertUnsignedLongLongWithEnforceRange(t,r){var o=Number.MAX_SAFE_INTEGER,l=Number(t);l=censorNegativeZero(l);if(!C(l))throw new TypeError(r+" is not a finite number");if((l=function integerPart(t){return censorNegativeZero(w(t))}(l))<0||l>o)throw new TypeError(r+" is outside the accepted range of 0 to "+o+", inclusive");return C(l)&&0!==l?l:0}function assertReadableStream(t,r){if(!IsReadableStream(t))throw new TypeError(r+" is not a ReadableStream.")}function AcquireReadableStreamDefaultReader(t){return new x(t)}function ReadableStreamAddReadRequest(t,r){t._reader._readRequests.push(r)}function ReadableStreamFulfillReadRequest(t,r,o){var l=t._reader._readRequests.shift();o?l._closeSteps():l._chunkSteps(r)}function ReadableStreamGetNumReadRequests(t){return t._reader._readRequests.length}function ReadableStreamHasDefaultReader(t){var r=t._reader;return void 0!==r&&!!IsReadableStreamDefaultReader(r)}var _,O,x=function(){function ReadableStreamDefaultReader(t){assertRequiredArgument(t,1,"ReadableStreamDefaultReader");assertReadableStream(t,"First parameter");if(IsReadableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ReadableStreamReaderGenericInitialize(this,t);this._readRequests=new g}Object.defineProperty(ReadableStreamDefaultReader.prototype,"closed",{get:function(){return IsReadableStreamDefaultReader(this)?this._closedPromise:promiseRejectedWith(defaultReaderBrandCheckException("closed"))},enumerable:!1,configurable:!0});ReadableStreamDefaultReader.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStreamDefaultReader(this)?void 0===this._ownerReadableStream?promiseRejectedWith(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,t):promiseRejectedWith(defaultReaderBrandCheckException("cancel"))};ReadableStreamDefaultReader.prototype.read=function(){if(!IsReadableStreamDefaultReader(this))return promiseRejectedWith(defaultReaderBrandCheckException("read"));if(void 0===this._ownerReadableStream)return promiseRejectedWith(readerLockException("read from"));var t,r,o=newPromise((function(o,l){t=o;r=l}));ReadableStreamDefaultReaderRead(this,{_chunkSteps:function(r){return t({value:r,done:!1})},_closeSteps:function(){return t({value:void 0,done:!0})},_errorSteps:function(t){return r(t)}});return o};ReadableStreamDefaultReader.prototype.releaseLock=function(){if(!IsReadableStreamDefaultReader(this))throw defaultReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}};return ReadableStreamDefaultReader}();Object.defineProperties(x.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(x.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function IsReadableStreamDefaultReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function ReadableStreamDefaultReaderRead(t,r){var o=t._ownerReadableStream;o._disturbed=!0;"closed"===o._state?r._closeSteps():"errored"===o._state?r._errorSteps(o._storedError):o._readableStreamController[k](r)}function defaultReaderBrandCheckException(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}if("symbol"==typeof r.asyncIterator){O=((_={})[r.asyncIterator]=function(){return this},_);Object.defineProperty(O,r.asyncIterator,{enumerable:!1})}var T=function(){function ReadableStreamAsyncIteratorImpl(t,r){this._ongoingPromise=void 0;this._isFinished=!1;this._reader=t;this._preventCancel=r}ReadableStreamAsyncIteratorImpl.prototype.next=function(){var t=this,nextSteps=function(){return t._nextSteps()};this._ongoingPromise=this._ongoingPromise?transformPromiseWith(this._ongoingPromise,nextSteps,nextSteps):nextSteps();return this._ongoingPromise};ReadableStreamAsyncIteratorImpl.prototype.return=function(t){var r=this,returnSteps=function(){return r._returnSteps(t)};return this._ongoingPromise?transformPromiseWith(this._ongoingPromise,returnSteps,returnSteps):returnSteps()};ReadableStreamAsyncIteratorImpl.prototype._nextSteps=function(){var t=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var r,o,l=this._reader;if(void 0===l._ownerReadableStream)return promiseRejectedWith(readerLockException("iterate"));var c=newPromise((function(t,l){r=t;o=l}));ReadableStreamDefaultReaderRead(l,{_chunkSteps:function(o){t._ongoingPromise=void 0;m((function(){return r({value:o,done:!1})}))},_closeSteps:function(){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(l);r({value:void 0,done:!0})},_errorSteps:function(r){t._ongoingPromise=void 0;t._isFinished=!0;ReadableStreamReaderGenericRelease(l);o(r)}});return c};ReadableStreamAsyncIteratorImpl.prototype._returnSteps=function(t){if(this._isFinished)return Promise.resolve({value:t,done:!0});this._isFinished=!0;var r=this._reader;if(void 0===r._ownerReadableStream)return promiseRejectedWith(readerLockException("finish iterating"));if(!this._preventCancel){var o=ReadableStreamReaderGenericCancel(r,t);ReadableStreamReaderGenericRelease(r);return transformPromiseWith(o,(function(){return{value:t,done:!0}}))}ReadableStreamReaderGenericRelease(r);return promiseResolvedWith({value:t,done:!0})};return ReadableStreamAsyncIteratorImpl}(),R={next:function(){return IsReadableStreamAsyncIterator(this)?this._asyncIteratorImpl.next():promiseRejectedWith(streamAsyncIteratorBrandCheckException("next"))},return:function(t){return IsReadableStreamAsyncIterator(this)?this._asyncIteratorImpl.return(t):promiseRejectedWith(streamAsyncIteratorBrandCheckException("return"))}};void 0!==O&&Object.setPrototypeOf(R,O);function IsReadableStreamAsyncIterator(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorImpl")}function streamAsyncIteratorBrandCheckException(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}var E=Number.isNaN||function(t){return t!=t};function IsFiniteNonNegativeNumber(t){return!!function IsNonNegativeNumber(t){return"number"==typeof t&&(!E(t)&&!(t<0))}(t)&&t!==1/0}function DequeueValue(t){var r=t._queue.shift();t._queueTotalSize-=r.size;t._queueTotalSize<0&&(t._queueTotalSize=0);return r.value}function EnqueueValueWithSize(t,r,o){if(!IsFiniteNonNegativeNumber(o=Number(o)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:r,size:o});t._queueTotalSize+=o}function ResetQueue(t){t._queue=new g;t._queueTotalSize=0}function CreateArrayFromList(t){return t.slice()}var D=function(){function ReadableStreamBYOBRequest(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableStreamBYOBRequest.prototype,"view",{get:function(){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("view");return this._view},enumerable:!1,configurable:!0});ReadableStreamBYOBRequest.prototype.respond=function(t){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respond");assertRequiredArgument(t,1,"respond");t=convertUnsignedLongLongWithEnforceRange(t,"First parameter");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer;!function ReadableByteStreamControllerRespond(t,r){if(!IsFiniteNonNegativeNumber(r=Number(r)))throw new RangeError("bytesWritten must be a finite");ReadableByteStreamControllerRespondInternal(t,r)}(this._associatedReadableByteStreamController,t)};ReadableStreamBYOBRequest.prototype.respondWithNewView=function(t){if(!IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respondWithNewView");assertRequiredArgument(t,1,"respondWithNewView");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");if(0===t.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===t.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function ReadableByteStreamControllerRespondWithNewView(t,r){var o=t._pendingPullIntos.peek();if(o.byteOffset+o.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(o.byteLength!==r.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");o.buffer=r.buffer;ReadableByteStreamControllerRespondInternal(t,r.byteLength)}(this._associatedReadableByteStreamController,t)};return ReadableStreamBYOBRequest}();Object.defineProperties(D.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(D.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var j=function(){function ReadableByteStreamController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableByteStreamController.prototype,"byobRequest",{get:function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(D.prototype);!function SetUpReadableStreamBYOBRequest(t,r,o){t._associatedReadableByteStreamController=r;t._view=o}(o,this,r);this._byobRequest=o}return this._byobRequest},enumerable:!1,configurable:!0});Object.defineProperty(ReadableByteStreamController.prototype,"desiredSize",{get:function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("desiredSize");return ReadableByteStreamControllerGetDesiredSize(this)},enumerable:!1,configurable:!0});ReadableByteStreamController.prototype.close=function(){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function ReadableByteStreamControllerClose(t){var r=t._controlledReadableByteStream;if(!t._closeRequested&&"readable"===r._state)if(t._queueTotalSize>0)t._closeRequested=!0;else{if(t._pendingPullIntos.length>0&&t._pendingPullIntos.peek().bytesFilled>0){var o=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,o);throw o}ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamClose(r)}}(this)};ReadableByteStreamController.prototype.enqueue=function(t){if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("enqueue");assertRequiredArgument(t,1,"enqueue");if(!ArrayBuffer.isView(t))throw new TypeError("chunk must be an array buffer view");if(0===t.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===t.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var r=this._controlledReadableByteStream._state;if("readable"!==r)throw new TypeError("The stream (in "+r+" state) is not in the readable state and cannot be enqueued to");!function ReadableByteStreamControllerEnqueue(t,r){var o=t._controlledReadableByteStream;if(!t._closeRequested&&"readable"===o._state){var l=r.buffer,c=r.byteOffset,u=r.byteLength,h=l;if(ReadableStreamHasDefaultReader(o))0===ReadableStreamGetNumReadRequests(o)?ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u):ReadableStreamFulfillReadRequest(o,new Uint8Array(h,c,u),!1);else if(ReadableStreamHasBYOBReader(o)){ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}else ReadableByteStreamControllerEnqueueChunkToQueue(t,h,c,u);ReadableByteStreamControllerCallPullIfNeeded(t)}}(this,t)};ReadableByteStreamController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("error");ReadableByteStreamControllerError(this,t)};ReadableByteStreamController.prototype[S]=function(t){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0);ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableByteStreamControllerClearAlgorithms(this);return r};ReadableByteStreamController.prototype[k]=function(t){var r=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength;ReadableByteStreamControllerHandleQueueDrain(this);var l=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);t._chunkSteps(l)}else{var c=this._autoAllocateChunkSize;if(void 0!==c){var u=void 0;try{u=new ArrayBuffer(c)}catch(r){t._errorSteps(r);return}var h={buffer:u,byteOffset:0,byteLength:c,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(h)}ReadableStreamAddReadRequest(r,t);ReadableByteStreamControllerCallPullIfNeeded(this)}};return ReadableByteStreamController}();Object.defineProperties(j.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(j.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function IsReadableByteStreamController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function IsReadableStreamBYOBRequest(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function ReadableByteStreamControllerCallPullIfNeeded(t){if(function ReadableByteStreamControllerShouldCallPull(t){var r=t._controlledReadableByteStream;return"readable"===r._state&&(!t._closeRequested&&(!!t._started&&(!!(ReadableStreamHasDefaultReader(r)&&ReadableStreamGetNumReadRequests(r)>0)||(!!(ReadableStreamHasBYOBReader(r)&&ReadableStreamGetNumReadIntoRequests(r)>0)||ReadableByteStreamControllerGetDesiredSize(t)>0))))}(t))if(t._pulling)t._pullAgain=!0;else{t._pulling=!0;uponPromise(t._pullAlgorithm(),(function(){t._pulling=!1;if(t._pullAgain){t._pullAgain=!1;ReadableByteStreamControllerCallPullIfNeeded(t)}}),(function(r){ReadableByteStreamControllerError(t,r)}))}}function ReadableByteStreamControllerCommitPullIntoDescriptor(t,r){var o=!1;"closed"===t._state&&(o=!0);var l=ReadableByteStreamControllerConvertPullIntoDescriptor(r);"default"===r.readerType?ReadableStreamFulfillReadRequest(t,l,o):function ReadableStreamFulfillReadIntoRequest(t,r,o){var l=t._reader._readIntoRequests.shift();o?l._closeSteps(r):l._chunkSteps(r)}(t,l,o)}function ReadableByteStreamControllerConvertPullIntoDescriptor(t){var r=t.bytesFilled,o=t.elementSize;return new t.viewConstructor(t.buffer,t.byteOffset,r/o)}function ReadableByteStreamControllerEnqueueChunkToQueue(t,r,o,l){t._queue.push({buffer:r,byteOffset:o,byteLength:l});t._queueTotalSize+=l}function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,r){var o=r.elementSize,l=r.bytesFilled-r.bytesFilled%o,c=Math.min(t._queueTotalSize,r.byteLength-r.bytesFilled),u=r.bytesFilled+c,h=u-u%o,d=c,m=!1;if(h>l){d=h-r.bytesFilled;m=!0}for(var g,y,v,S,k,C=t._queue;d>0;){var w=C.peek(),_=Math.min(d,w.byteLength),O=r.byteOffset+r.bytesFilled;g=r.buffer,y=O,v=w.buffer,S=w.byteOffset,k=_,new Uint8Array(g).set(new Uint8Array(v,S,k),y);if(w.byteLength===_)C.shift();else{w.byteOffset+=_;w.byteLength-=_}t._queueTotalSize-=_;ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,_,r);d-=_}return m}function ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,r,o){ReadableByteStreamControllerInvalidateBYOBRequest(t);o.bytesFilled+=r}function ReadableByteStreamControllerHandleQueueDrain(t){if(0===t._queueTotalSize&&t._closeRequested){ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamClose(t._controlledReadableByteStream)}else ReadableByteStreamControllerCallPullIfNeeded(t)}function ReadableByteStreamControllerInvalidateBYOBRequest(t){if(null!==t._byobRequest){t._byobRequest._associatedReadableByteStreamController=void 0;t._byobRequest._view=null;t._byobRequest=null}}function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var r=t._pendingPullIntos.peek();if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,r)){ReadableByteStreamControllerShiftPendingPullInto(t);ReadableByteStreamControllerCommitPullIntoDescriptor(t._controlledReadableByteStream,r)}}}function ReadableByteStreamControllerRespondInternal(t,r){var o=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==r)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function ReadableByteStreamControllerRespondInClosedState(t,r){r.buffer=r.buffer;var o=t._controlledReadableByteStream;if(ReadableStreamHasBYOBReader(o))for(;ReadableStreamGetNumReadIntoRequests(o)>0;)ReadableByteStreamControllerCommitPullIntoDescriptor(o,ReadableByteStreamControllerShiftPendingPullInto(t))}(t,o)}else!function ReadableByteStreamControllerRespondInReadableState(t,r,o){if(o.bytesFilled+r>o.byteLength)throw new RangeError("bytesWritten out of range");ReadableByteStreamControllerFillHeadPullIntoDescriptor(t,r,o);if(!(o.bytesFilled<o.elementSize)){ReadableByteStreamControllerShiftPendingPullInto(t);var l=o.bytesFilled%o.elementSize;if(l>0){var c=o.byteOffset+o.bytesFilled,u=o.buffer.slice(c-l,c);ReadableByteStreamControllerEnqueueChunkToQueue(t,u,0,u.byteLength)}o.buffer=o.buffer;o.bytesFilled-=l;ReadableByteStreamControllerCommitPullIntoDescriptor(t._controlledReadableByteStream,o);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(t)}}(t,r,o);ReadableByteStreamControllerCallPullIfNeeded(t)}function ReadableByteStreamControllerShiftPendingPullInto(t){var r=t._pendingPullIntos.shift();ReadableByteStreamControllerInvalidateBYOBRequest(t);return r}function ReadableByteStreamControllerClearAlgorithms(t){t._pullAlgorithm=void 0;t._cancelAlgorithm=void 0}function ReadableByteStreamControllerError(t,r){var o=t._controlledReadableByteStream;if("readable"===o._state){!function ReadableByteStreamControllerClearPendingPullIntos(t){ReadableByteStreamControllerInvalidateBYOBRequest(t);t._pendingPullIntos=new g}(t);ResetQueue(t);ReadableByteStreamControllerClearAlgorithms(t);ReadableStreamError(o,r)}}function ReadableByteStreamControllerGetDesiredSize(t){var r=t._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function SetUpReadableByteStreamControllerFromUnderlyingSource(t,r,o){var l=Object.create(j.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(l)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(l)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});var c=r.autoAllocateChunkSize;if(0===c)throw new TypeError("autoAllocateChunkSize must be greater than 0");!function SetUpReadableByteStreamController(t,r,o,l,c,u,h){r._controlledReadableByteStream=t;r._pullAgain=!1;r._pulling=!1;r._byobRequest=null;r._queue=r._queueTotalSize=void 0;ResetQueue(r);r._closeRequested=!1;r._started=!1;r._strategyHWM=u;r._pullAlgorithm=l;r._cancelAlgorithm=c;r._autoAllocateChunkSize=h;r._pendingPullIntos=new g;t._readableStreamController=r;uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;ReadableByteStreamControllerCallPullIfNeeded(r)}),(function(t){ReadableByteStreamControllerError(r,t)}))}(t,l,startAlgorithm,pullAlgorithm,cancelAlgorithm,o,c)}function byobRequestBrandCheckException(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function byteStreamControllerBrandCheckException(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function ReadableStreamAddReadIntoRequest(t,r){t._reader._readIntoRequests.push(r)}function ReadableStreamGetNumReadIntoRequests(t){return t._reader._readIntoRequests.length}function ReadableStreamHasBYOBReader(t){var r=t._reader;return void 0!==r&&!!IsReadableStreamBYOBReader(r)}var M=function(){function ReadableStreamBYOBReader(t){assertRequiredArgument(t,1,"ReadableStreamBYOBReader");assertReadableStream(t,"First parameter");if(IsReadableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!IsReadableByteStreamController(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");ReadableStreamReaderGenericInitialize(this,t);this._readIntoRequests=new g}Object.defineProperty(ReadableStreamBYOBReader.prototype,"closed",{get:function(){return IsReadableStreamBYOBReader(this)?this._closedPromise:promiseRejectedWith(byobReaderBrandCheckException("closed"))},enumerable:!1,configurable:!0});ReadableStreamBYOBReader.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStreamBYOBReader(this)?void 0===this._ownerReadableStream?promiseRejectedWith(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,t):promiseRejectedWith(byobReaderBrandCheckException("cancel"))};ReadableStreamBYOBReader.prototype.read=function(t){if(!IsReadableStreamBYOBReader(this))return promiseRejectedWith(byobReaderBrandCheckException("read"));if(!ArrayBuffer.isView(t))return promiseRejectedWith(new TypeError("view must be an array buffer view"));if(0===t.byteLength)return promiseRejectedWith(new TypeError("view must have non-zero byteLength"));if(0===t.buffer.byteLength)return promiseRejectedWith(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return promiseRejectedWith(readerLockException("read from"));var r,o,l=newPromise((function(t,l){r=t;o=l}));!function ReadableStreamBYOBReaderRead(t,r,o){var l=t._ownerReadableStream;l._disturbed=!0;"errored"===l._state?o._errorSteps(l._storedError):function ReadableByteStreamControllerPullInto(t,r,o){var l=t._controlledReadableByteStream,c=1;r.constructor!==DataView&&(c=r.constructor.BYTES_PER_ELEMENT);var u=r.constructor,h={buffer:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:c,viewConstructor:u,readerType:"byob"};if(t._pendingPullIntos.length>0){t._pendingPullIntos.push(h);ReadableStreamAddReadIntoRequest(l,o)}else if("closed"!==l._state){if(t._queueTotalSize>0){if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(t,h)){var d=ReadableByteStreamControllerConvertPullIntoDescriptor(h);ReadableByteStreamControllerHandleQueueDrain(t);o._chunkSteps(d);return}if(t._closeRequested){var m=new TypeError("Insufficient bytes to fill elements in the given buffer");ReadableByteStreamControllerError(t,m);o._errorSteps(m);return}}t._pendingPullIntos.push(h);ReadableStreamAddReadIntoRequest(l,o);ReadableByteStreamControllerCallPullIfNeeded(t)}else{var g=new u(h.buffer,h.byteOffset,0);o._closeSteps(g)}}(l._readableStreamController,r,o)}(this,t,{_chunkSteps:function(t){return r({value:t,done:!1})},_closeSteps:function(t){return r({value:t,done:!0})},_errorSteps:function(t){return o(t)}});return l};ReadableStreamBYOBReader.prototype.releaseLock=function(){if(!IsReadableStreamBYOBReader(this))throw byobReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}};return ReadableStreamBYOBReader}();Object.defineProperties(M.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(M.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function IsReadableStreamBYOBReader(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function byobReaderBrandCheckException(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}function ExtractHighWaterMark(t,r){var o=t.highWaterMark;if(void 0===o)return r;if(E(o)||o<0)throw new RangeError("Invalid highWaterMark");return o}function ExtractSizeAlgorithm(t){var r=t.size;return r||function(){return 1}}function convertQueuingStrategy(t,r){assertDictionary(t,r);var o=null==t?void 0:t.highWaterMark,l=null==t?void 0:t.size;return{highWaterMark:void 0===o?void 0:convertUnrestrictedDouble(o),size:void 0===l?void 0:convertQueuingStrategySize(l,r+" has member 'size' that")}}function convertQueuingStrategySize(t,r){assertFunction(t,r);return function(r){return convertUnrestrictedDouble(t(r))}}function convertUnderlyingSinkAbortCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSinkCloseCallback(t,r,o){assertFunction(t,o);return function(){return promiseCall(t,r,[])}}function convertUnderlyingSinkStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}function convertUnderlyingSinkWriteCallback(t,r,o){assertFunction(t,o);return function(o,l){return promiseCall(t,r,[o,l])}}function assertWritableStream(t,r){if(!IsWritableStream(t))throw new TypeError(r+" is not a WritableStream.")}var N=function(){function WritableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var o=convertQueuingStrategy(r,"Second parameter"),l=function convertUnderlyingSink(t,r){assertDictionary(t,r);var o=null==t?void 0:t.abort,l=null==t?void 0:t.close,c=null==t?void 0:t.start,u=null==t?void 0:t.type,h=null==t?void 0:t.write;return{abort:void 0===o?void 0:convertUnderlyingSinkAbortCallback(o,t,r+" has member 'abort' that"),close:void 0===l?void 0:convertUnderlyingSinkCloseCallback(l,t,r+" has member 'close' that"),start:void 0===c?void 0:convertUnderlyingSinkStartCallback(c,t,r+" has member 'start' that"),write:void 0===h?void 0:convertUnderlyingSinkWriteCallback(h,t,r+" has member 'write' that"),type:u}}(t,"First parameter");InitializeWritableStream(this);if(void 0!==l.type)throw new RangeError("Invalid type is specified");var c=ExtractSizeAlgorithm(o);!function SetUpWritableStreamDefaultControllerFromUnderlyingSink(t,r,o,l){var c=Object.create(q.prototype),startAlgorithm=function(){},writeAlgorithm=function(){return promiseResolvedWith(void 0)},closeAlgorithm=function(){return promiseResolvedWith(void 0)},abortAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(c)});void 0!==r.write&&(writeAlgorithm=function(t){return r.write(t,c)});void 0!==r.close&&(closeAlgorithm=function(){return r.close()});void 0!==r.abort&&(abortAlgorithm=function(t){return r.abort(t)});SetUpWritableStreamDefaultController(t,c,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,o,l)}(this,l,ExtractHighWaterMark(o,1),c)}Object.defineProperty(WritableStream.prototype,"locked",{get:function(){if(!IsWritableStream(this))throw streamBrandCheckException("locked");return IsWritableStreamLocked(this)},enumerable:!1,configurable:!0});WritableStream.prototype.abort=function(t){void 0===t&&(t=void 0);return IsWritableStream(this)?IsWritableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot abort a stream that already has a writer")):WritableStreamAbort(this,t):promiseRejectedWith(streamBrandCheckException("abort"))};WritableStream.prototype.close=function(){return IsWritableStream(this)?IsWritableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot close a stream that already has a writer")):WritableStreamCloseQueuedOrInFlight(this)?promiseRejectedWith(new TypeError("Cannot close an already-closing stream")):WritableStreamClose(this):promiseRejectedWith(streamBrandCheckException("close"))};WritableStream.prototype.getWriter=function(){if(!IsWritableStream(this))throw streamBrandCheckException("getWriter");return AcquireWritableStreamDefaultWriter(this)};return WritableStream}();Object.defineProperties(N.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(N.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});function AcquireWritableStreamDefaultWriter(t){return new L(t)}function InitializeWritableStream(t){t._state="writable";t._storedError=void 0;t._writer=void 0;t._writableStreamController=void 0;t._writeRequests=new g;t._inFlightWriteRequest=void 0;t._closeRequest=void 0;t._inFlightCloseRequest=void 0;t._pendingAbortRequest=void 0;t._backpressure=!1}function IsWritableStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function IsWritableStreamLocked(t){return void 0!==t._writer}function WritableStreamAbort(t,r){var o=t._state;if("closed"===o||"errored"===o)return promiseResolvedWith(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var l=!1;if("erroring"===o){l=!0;r=void 0}var c=newPromise((function(o,c){t._pendingAbortRequest={_promise:void 0,_resolve:o,_reject:c,_reason:r,_wasAlreadyErroring:l}}));t._pendingAbortRequest._promise=c;l||WritableStreamStartErroring(t,r);return c}function WritableStreamClose(t){var r=t._state;if("closed"===r||"errored"===r)return promiseRejectedWith(new TypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"));var o=newPromise((function(r,o){var l={_resolve:r,_reject:o};t._closeRequest=l})),l=t._writer;void 0!==l&&t._backpressure&&"writable"===r&&defaultWriterReadyPromiseResolve(l);!function WritableStreamDefaultControllerClose(t){EnqueueValueWithSize(t,U,0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(t._writableStreamController);return o}function WritableStreamDealWithRejection(t,r){"writable"!==t._state?WritableStreamFinishErroring(t):WritableStreamStartErroring(t,r)}function WritableStreamStartErroring(t,r){var o=t._writableStreamController;t._state="erroring";t._storedError=r;var l=t._writer;void 0!==l&&WritableStreamDefaultWriterEnsureReadyPromiseRejected(l,r);!function WritableStreamHasOperationMarkedInFlight(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}(t)&&o._started&&WritableStreamFinishErroring(t)}function WritableStreamFinishErroring(t){t._state="errored";t._writableStreamController[v]();var r=t._storedError;t._writeRequests.forEach((function(t){t._reject(r)}));t._writeRequests=new g;if(void 0!==t._pendingAbortRequest){var o=t._pendingAbortRequest;t._pendingAbortRequest=void 0;if(o._wasAlreadyErroring){o._reject(r);WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}else uponPromise(t._writableStreamController[y](o._reason),(function(){o._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}),(function(r){o._reject(r);WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}))}else WritableStreamRejectCloseAndClosedPromiseIfNeeded(t)}function WritableStreamCloseQueuedOrInFlight(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function WritableStreamRejectCloseAndClosedPromiseIfNeeded(t){if(void 0!==t._closeRequest){t._closeRequest._reject(t._storedError);t._closeRequest=void 0}var r=t._writer;void 0!==r&&defaultWriterClosedPromiseReject(r,t._storedError)}function WritableStreamUpdateBackpressure(t,r){var o=t._writer;void 0!==o&&r!==t._backpressure&&(r?function defaultWriterReadyPromiseReset(t){defaultWriterReadyPromiseInitialize(t)}(o):defaultWriterReadyPromiseResolve(o));t._backpressure=r}var L=function(){function WritableStreamDefaultWriter(t){assertRequiredArgument(t,1,"WritableStreamDefaultWriter");assertWritableStream(t,"First parameter");if(IsWritableStreamLocked(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t;t._writer=this;var r=t._state;if("writable"===r){!WritableStreamCloseQueuedOrInFlight(t)&&t._backpressure?defaultWriterReadyPromiseInitialize(this):defaultWriterReadyPromiseInitializeAsResolved(this);defaultWriterClosedPromiseInitialize(this)}else if("erroring"===r){defaultWriterReadyPromiseInitializeAsRejected(this,t._storedError);defaultWriterClosedPromiseInitialize(this)}else if("closed"===r){defaultWriterReadyPromiseInitializeAsResolved(this);!function defaultWriterClosedPromiseInitializeAsResolved(t){defaultWriterClosedPromiseInitialize(t);defaultWriterClosedPromiseResolve(t)}(this)}else{var o=t._storedError;defaultWriterReadyPromiseInitializeAsRejected(this,o);defaultWriterClosedPromiseInitializeAsRejected(this,o)}}Object.defineProperty(WritableStreamDefaultWriter.prototype,"closed",{get:function(){return IsWritableStreamDefaultWriter(this)?this._closedPromise:promiseRejectedWith(defaultWriterBrandCheckException("closed"))},enumerable:!1,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"desiredSize",{get:function(){if(!IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("desiredSize");if(void 0===this._ownerWritableStream)throw defaultWriterLockException("desiredSize");return function WritableStreamDefaultWriterGetDesiredSize(t){var r=t._ownerWritableStream,o=r._state;return"errored"===o||"erroring"===o?null:"closed"===o?0:WritableStreamDefaultControllerGetDesiredSize(r._writableStreamController)}(this)},enumerable:!1,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"ready",{get:function(){return IsWritableStreamDefaultWriter(this)?this._readyPromise:promiseRejectedWith(defaultWriterBrandCheckException("ready"))},enumerable:!1,configurable:!0});WritableStreamDefaultWriter.prototype.abort=function(t){void 0===t&&(t=void 0);return IsWritableStreamDefaultWriter(this)?void 0===this._ownerWritableStream?promiseRejectedWith(defaultWriterLockException("abort")):function WritableStreamDefaultWriterAbort(t,r){return WritableStreamAbort(t._ownerWritableStream,r)}(this,t):promiseRejectedWith(defaultWriterBrandCheckException("abort"))};WritableStreamDefaultWriter.prototype.close=function(){if(!IsWritableStreamDefaultWriter(this))return promiseRejectedWith(defaultWriterBrandCheckException("close"));var t=this._ownerWritableStream;return void 0===t?promiseRejectedWith(defaultWriterLockException("close")):WritableStreamCloseQueuedOrInFlight(t)?promiseRejectedWith(new TypeError("Cannot close an already-closing stream")):WritableStreamDefaultWriterClose(this)};WritableStreamDefaultWriter.prototype.releaseLock=function(){if(!IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("releaseLock");void 0!==this._ownerWritableStream&&WritableStreamDefaultWriterRelease(this)};WritableStreamDefaultWriter.prototype.write=function(t){void 0===t&&(t=void 0);return IsWritableStreamDefaultWriter(this)?void 0===this._ownerWritableStream?promiseRejectedWith(defaultWriterLockException("write to")):WritableStreamDefaultWriterWrite(this,t):promiseRejectedWith(defaultWriterBrandCheckException("write"))};return WritableStreamDefaultWriter}();Object.defineProperties(L.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(L.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function IsWritableStreamDefaultWriter(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function WritableStreamDefaultWriterClose(t){return WritableStreamClose(t._ownerWritableStream)}function WritableStreamDefaultWriterEnsureClosedPromiseRejected(t,r){"pending"===t._closedPromiseState?defaultWriterClosedPromiseReject(t,r):function defaultWriterClosedPromiseResetToRejected(t,r){defaultWriterClosedPromiseInitializeAsRejected(t,r)}(t,r)}function WritableStreamDefaultWriterEnsureReadyPromiseRejected(t,r){"pending"===t._readyPromiseState?defaultWriterReadyPromiseReject(t,r):function defaultWriterReadyPromiseResetToRejected(t,r){defaultWriterReadyPromiseInitializeAsRejected(t,r)}(t,r)}function WritableStreamDefaultWriterRelease(t){var r=t._ownerWritableStream,o=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");WritableStreamDefaultWriterEnsureReadyPromiseRejected(t,o);WritableStreamDefaultWriterEnsureClosedPromiseRejected(t,o);r._writer=void 0;t._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(t,r){var o=t._ownerWritableStream,l=o._writableStreamController,c=function WritableStreamDefaultControllerGetChunkSize(t,r){try{return t._strategySizeAlgorithm(r)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return 1}}(l,r);if(o!==t._ownerWritableStream)return promiseRejectedWith(defaultWriterLockException("write to"));var u=o._state;if("errored"===u)return promiseRejectedWith(o._storedError);if(WritableStreamCloseQueuedOrInFlight(o)||"closed"===u)return promiseRejectedWith(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===u)return promiseRejectedWith(o._storedError);var h=function WritableStreamAddWriteRequest(t){return newPromise((function(r,o){var l={_resolve:r,_reject:o};t._writeRequests.push(l)}))}(o);!function WritableStreamDefaultControllerWrite(t,r,o){try{EnqueueValueWithSize(t,r,o)}catch(r){WritableStreamDefaultControllerErrorIfNeeded(t,r);return}var l=t._controlledWritableStream;WritableStreamCloseQueuedOrInFlight(l)||"writable"!==l._state||WritableStreamUpdateBackpressure(l,WritableStreamDefaultControllerGetBackpressure(t));WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}(l,r,c);return h}var U={},q=function(){function WritableStreamDefaultController(){throw new TypeError("Illegal constructor")}WritableStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!function IsWritableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledWritableStream")}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&WritableStreamDefaultControllerError(this,t)};WritableStreamDefaultController.prototype[y]=function(t){var r=this._abortAlgorithm(t);WritableStreamDefaultControllerClearAlgorithms(this);return r};WritableStreamDefaultController.prototype[v]=function(){ResetQueue(this)};return WritableStreamDefaultController}();Object.defineProperties(q.prototype,{error:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(q.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function SetUpWritableStreamDefaultController(t,r,o,l,c,u,h,d){r._controlledWritableStream=t;t._writableStreamController=r;r._queue=void 0;r._queueTotalSize=void 0;ResetQueue(r);r._started=!1;r._strategySizeAlgorithm=d;r._strategyHWM=h;r._writeAlgorithm=l;r._closeAlgorithm=c;r._abortAlgorithm=u;var m=WritableStreamDefaultControllerGetBackpressure(r);WritableStreamUpdateBackpressure(t,m);uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(r)}),(function(o){r._started=!0;WritableStreamDealWithRejection(t,o)}))}function WritableStreamDefaultControllerClearAlgorithms(t){t._writeAlgorithm=void 0;t._closeAlgorithm=void 0;t._abortAlgorithm=void 0;t._strategySizeAlgorithm=void 0}function WritableStreamDefaultControllerGetDesiredSize(t){return t._strategyHWM-t._queueTotalSize}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(t){var r=t._controlledWritableStream;if(t._started&&void 0===r._inFlightWriteRequest)if("erroring"!==r._state){if(0!==t._queue.length){var o=function PeekQueueValue(t){return t._queue.peek().value}(t);o===U?function WritableStreamDefaultControllerProcessClose(t){var r=t._controlledWritableStream;!function WritableStreamMarkCloseRequestInFlight(t){t._inFlightCloseRequest=t._closeRequest;t._closeRequest=void 0}(r);DequeueValue(t);var o=t._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(t);uponPromise(o,(function(){!function WritableStreamFinishInFlightClose(t){t._inFlightCloseRequest._resolve(void 0);t._inFlightCloseRequest=void 0;if("erroring"===t._state){t._storedError=void 0;if(void 0!==t._pendingAbortRequest){t._pendingAbortRequest._resolve();t._pendingAbortRequest=void 0}}t._state="closed";var r=t._writer;void 0!==r&&defaultWriterClosedPromiseResolve(r)}(r)}),(function(t){!function WritableStreamFinishInFlightCloseWithError(t,r){t._inFlightCloseRequest._reject(r);t._inFlightCloseRequest=void 0;if(void 0!==t._pendingAbortRequest){t._pendingAbortRequest._reject(r);t._pendingAbortRequest=void 0}WritableStreamDealWithRejection(t,r)}(r,t)}))}(t):function WritableStreamDefaultControllerProcessWrite(t,r){var o=t._controlledWritableStream;!function WritableStreamMarkFirstWriteRequestInFlight(t){t._inFlightWriteRequest=t._writeRequests.shift()}(o);uponPromise(t._writeAlgorithm(r),(function(){!function WritableStreamFinishInFlightWrite(t){t._inFlightWriteRequest._resolve(void 0);t._inFlightWriteRequest=void 0}(o);var r=o._state;DequeueValue(t);if(!WritableStreamCloseQueuedOrInFlight(o)&&"writable"===r){var l=WritableStreamDefaultControllerGetBackpressure(t);WritableStreamUpdateBackpressure(o,l)}WritableStreamDefaultControllerAdvanceQueueIfNeeded(t)}),(function(r){"writable"===o._state&&WritableStreamDefaultControllerClearAlgorithms(t);!function WritableStreamFinishInFlightWriteWithError(t,r){t._inFlightWriteRequest._reject(r);t._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(t,r)}(o,r)}))}(t,o)}}else WritableStreamFinishErroring(r)}function WritableStreamDefaultControllerErrorIfNeeded(t,r){"writable"===t._controlledWritableStream._state&&WritableStreamDefaultControllerError(t,r)}function WritableStreamDefaultControllerGetBackpressure(t){return WritableStreamDefaultControllerGetDesiredSize(t)<=0}function WritableStreamDefaultControllerError(t,r){var o=t._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(t);WritableStreamStartErroring(o,r)}function streamBrandCheckException(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(t){t._closedPromise=newPromise((function(r,o){t._closedPromise_resolve=r;t._closedPromise_reject=o;t._closedPromiseState="pending"}))}function defaultWriterClosedPromiseInitializeAsRejected(t,r){defaultWriterClosedPromiseInitialize(t);defaultWriterClosedPromiseReject(t,r)}function defaultWriterClosedPromiseReject(t,r){if(void 0!==t._closedPromise_reject){setPromiseIsHandledToTrue(t._closedPromise);t._closedPromise_reject(r);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0;t._closedPromiseState="rejected"}}function defaultWriterClosedPromiseResolve(t){if(void 0!==t._closedPromise_resolve){t._closedPromise_resolve(void 0);t._closedPromise_resolve=void 0;t._closedPromise_reject=void 0;t._closedPromiseState="resolved"}}function defaultWriterReadyPromiseInitialize(t){t._readyPromise=newPromise((function(r,o){t._readyPromise_resolve=r;t._readyPromise_reject=o}));t._readyPromiseState="pending"}function defaultWriterReadyPromiseInitializeAsRejected(t,r){defaultWriterReadyPromiseInitialize(t);defaultWriterReadyPromiseReject(t,r)}function defaultWriterReadyPromiseInitializeAsResolved(t){defaultWriterReadyPromiseInitialize(t);defaultWriterReadyPromiseResolve(t)}function defaultWriterReadyPromiseReject(t,r){if(void 0!==t._readyPromise_reject){setPromiseIsHandledToTrue(t._readyPromise);t._readyPromise_reject(r);t._readyPromise_resolve=void 0;t._readyPromise_reject=void 0;t._readyPromiseState="rejected"}}function defaultWriterReadyPromiseResolve(t){if(void 0!==t._readyPromise_resolve){t._readyPromise_resolve(void 0);t._readyPromise_resolve=void 0;t._readyPromise_reject=void 0;t._readyPromiseState="fulfilled"}}var X="undefined"!=typeof DOMException?DOMException:void 0,W=function isDOMExceptionConstructor(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{new t;return!0}catch(t){return!1}}(X)?X:function createDOMExceptionPolyfill(){var t=function DOMException(t,r){this.message=t||"";this.name=r||"Error";Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};t.prototype=Object.create(Error.prototype);Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,configurable:!0});return t}();function ReadableStreamPipeTo(t,r,o,l,c,u){var h=AcquireReadableStreamDefaultReader(t),d=AcquireWritableStreamDefaultWriter(r);t._disturbed=!0;var m=!1,g=promiseResolvedWith(void 0);return newPromise((function(y,v){var S;if(void 0!==u){S=function(){var o=new W("Aborted","AbortError"),u=[];l||u.push((function(){return"writable"===r._state?WritableStreamAbort(r,o):promiseResolvedWith(void 0)}));c||u.push((function(){return"readable"===t._state?ReadableStreamCancel(t,o):promiseResolvedWith(void 0)}));shutdownWithAction((function(){return Promise.all(u.map((function(t){return t()})))}),!0,o)};if(u.aborted){S();return}u.addEventListener("abort",S)}isOrBecomesErrored(t,h._closedPromise,(function(t){l?shutdown(!0,t):shutdownWithAction((function(){return WritableStreamAbort(r,t)}),!0,t)}));isOrBecomesErrored(r,d._closedPromise,(function(r){c?shutdown(!0,r):shutdownWithAction((function(){return ReadableStreamCancel(t,r)}),!0,r)}));!function isOrBecomesClosed(t,r,o){"closed"===t._state?o():uponFulfillment(r,o)}(t,h._closedPromise,(function(){o?shutdown():shutdownWithAction((function(){return function WritableStreamDefaultWriterCloseWithErrorPropagation(t){var r=t._ownerWritableStream,o=r._state;return WritableStreamCloseQueuedOrInFlight(r)||"closed"===o?promiseResolvedWith(void 0):"errored"===o?promiseRejectedWith(r._storedError):WritableStreamDefaultWriterClose(t)}(d)}))}));if(WritableStreamCloseQueuedOrInFlight(r)||"closed"===r._state){var k=new TypeError("the destination writable stream closed before all data could be piped to it");c?shutdown(!0,k):shutdownWithAction((function(){return ReadableStreamCancel(t,k)}),!0,k)}setPromiseIsHandledToTrue(function pipeLoop(){return newPromise((function(t,r){!function next(o){o?t():PerformPromiseThen(function pipeStep(){return m?promiseResolvedWith(!0):PerformPromiseThen(d._readyPromise,(function(){return newPromise((function(t,r){ReadableStreamDefaultReaderRead(h,{_chunkSteps:function(r){g=PerformPromiseThen(WritableStreamDefaultWriterWrite(d,r),void 0,noop);t(!1)},_closeSteps:function(){return t(!0)},_errorSteps:r})}))}))}(),next,r)}(!1)}))}());function waitForWritesToFinish(){var t=g;return PerformPromiseThen(g,(function(){return t!==g?waitForWritesToFinish():void 0}))}function isOrBecomesErrored(t,r,o){"errored"===t._state?o(t._storedError):uponRejection(r,o)}function shutdownWithAction(t,o,l){if(!m){m=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?doTheRest():uponFulfillment(waitForWritesToFinish(),doTheRest)}function doTheRest(){uponPromise(t(),(function(){return finalize(o,l)}),(function(t){return finalize(!0,t)}))}}function shutdown(t,o){if(!m){m=!0;"writable"!==r._state||WritableStreamCloseQueuedOrInFlight(r)?finalize(t,o):uponFulfillment(waitForWritesToFinish(),(function(){return finalize(t,o)}))}}function finalize(t,r){WritableStreamDefaultWriterRelease(d);ReadableStreamReaderGenericRelease(h);void 0!==u&&u.removeEventListener("abort",S);t?v(r):y(void 0)}}))}var H=function(){function ReadableStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(ReadableStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this)},enumerable:!1,configurable:!0});ReadableStreamDefaultController.prototype.close=function(){if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("close");if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits close");ReadableStreamDefaultControllerClose(this)};ReadableStreamDefaultController.prototype.enqueue=function(t){void 0===t&&(t=void 0);if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("enqueue");if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits enqueue");return ReadableStreamDefaultControllerEnqueue(this,t)};ReadableStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("error");ReadableStreamDefaultControllerError(this,t)};ReadableStreamDefaultController.prototype[S]=function(t){ResetQueue(this);var r=this._cancelAlgorithm(t);ReadableStreamDefaultControllerClearAlgorithms(this);return r};ReadableStreamDefaultController.prototype[k]=function(t){var r=this._controlledReadableStream;if(this._queue.length>0){var o=DequeueValue(this);if(this._closeRequested&&0===this._queue.length){ReadableStreamDefaultControllerClearAlgorithms(this);ReadableStreamClose(r)}else ReadableStreamDefaultControllerCallPullIfNeeded(this);t._chunkSteps(o)}else{ReadableStreamAddReadRequest(r,t);ReadableStreamDefaultControllerCallPullIfNeeded(this)}};return ReadableStreamDefaultController}();Object.defineProperties(H.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(H.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function IsReadableStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function ReadableStreamDefaultControllerCallPullIfNeeded(t){if(ReadableStreamDefaultControllerShouldCallPull(t))if(t._pulling)t._pullAgain=!0;else{t._pulling=!0;uponPromise(t._pullAlgorithm(),(function(){t._pulling=!1;if(t._pullAgain){t._pullAgain=!1;ReadableStreamDefaultControllerCallPullIfNeeded(t)}}),(function(r){ReadableStreamDefaultControllerError(t,r)}))}}function ReadableStreamDefaultControllerShouldCallPull(t){var r=t._controlledReadableStream;return!!ReadableStreamDefaultControllerCanCloseOrEnqueue(t)&&!!t._started&&(!!(IsReadableStreamLocked(r)&&ReadableStreamGetNumReadRequests(r)>0)||ReadableStreamDefaultControllerGetDesiredSize(t)>0)}function ReadableStreamDefaultControllerClearAlgorithms(t){t._pullAlgorithm=void 0;t._cancelAlgorithm=void 0;t._strategySizeAlgorithm=void 0}function ReadableStreamDefaultControllerClose(t){if(ReadableStreamDefaultControllerCanCloseOrEnqueue(t)){var r=t._controlledReadableStream;t._closeRequested=!0;if(0===t._queue.length){ReadableStreamDefaultControllerClearAlgorithms(t);ReadableStreamClose(r)}}}function ReadableStreamDefaultControllerEnqueue(t,r){if(ReadableStreamDefaultControllerCanCloseOrEnqueue(t)){var o=t._controlledReadableStream;if(IsReadableStreamLocked(o)&&ReadableStreamGetNumReadRequests(o)>0)ReadableStreamFulfillReadRequest(o,r,!1);else{var l=void 0;try{l=t._strategySizeAlgorithm(r)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}try{EnqueueValueWithSize(t,r,l)}catch(r){ReadableStreamDefaultControllerError(t,r);throw r}}ReadableStreamDefaultControllerCallPullIfNeeded(t)}}function ReadableStreamDefaultControllerError(t,r){var o=t._controlledReadableStream;if("readable"===o._state){ResetQueue(t);ReadableStreamDefaultControllerClearAlgorithms(t);ReadableStreamError(o,r)}}function ReadableStreamDefaultControllerGetDesiredSize(t){var r=t._controlledReadableStream._state;return"errored"===r?null:"closed"===r?0:t._strategyHWM-t._queueTotalSize}function ReadableStreamDefaultControllerCanCloseOrEnqueue(t){var r=t._controlledReadableStream._state;return!t._closeRequested&&"readable"===r}function SetUpReadableStreamDefaultController(t,r,o,l,c,u,h){r._controlledReadableStream=t;r._queue=void 0;r._queueTotalSize=void 0;ResetQueue(r);r._started=!1;r._closeRequested=!1;r._pullAgain=!1;r._pulling=!1;r._strategySizeAlgorithm=h;r._strategyHWM=u;r._pullAlgorithm=l;r._cancelAlgorithm=c;t._readableStreamController=r;uponPromise(promiseResolvedWith(o()),(function(){r._started=!0;ReadableStreamDefaultControllerCallPullIfNeeded(r)}),(function(t){ReadableStreamDefaultControllerError(r,t)}))}function defaultControllerBrandCheckException(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}function convertUnderlyingSourceCancelCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSourcePullCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertUnderlyingSourceStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}function convertReadableStreamType(t,r){if("bytes"!=(t=""+t))throw new TypeError(r+" '"+t+"' is not a valid enumeration value for ReadableStreamType");return t}function convertReadableStreamReaderMode(t,r){if("byob"!=(t=""+t))throw new TypeError(r+" '"+t+"' is not a valid enumeration value for ReadableStreamReaderMode");return t}function convertPipeOptions(t,r){assertDictionary(t,r);var o=null==t?void 0:t.preventAbort,l=null==t?void 0:t.preventCancel,c=null==t?void 0:t.preventClose,u=null==t?void 0:t.signal;void 0!==u&&function assertAbortSignal(t,r){if(!function isAbortSignal(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}(t))throw new TypeError(r+" is not an AbortSignal.")}(u,r+" has member 'signal' that");return{preventAbort:Boolean(o),preventCancel:Boolean(l),preventClose:Boolean(c),signal:u}}var z=function(){function ReadableStream(t,r){void 0===t&&(t={});void 0===r&&(r={});void 0===t?t=null:assertObject(t,"First parameter");var o=convertQueuingStrategy(r,"Second parameter"),l=function convertUnderlyingDefaultOrByteSource(t,r){assertDictionary(t,r);var o=t,l=null==o?void 0:o.autoAllocateChunkSize,c=null==o?void 0:o.cancel,u=null==o?void 0:o.pull,h=null==o?void 0:o.start,d=null==o?void 0:o.type;return{autoAllocateChunkSize:void 0===l?void 0:convertUnsignedLongLongWithEnforceRange(l,r+" has member 'autoAllocateChunkSize' that"),cancel:void 0===c?void 0:convertUnderlyingSourceCancelCallback(c,o,r+" has member 'cancel' that"),pull:void 0===u?void 0:convertUnderlyingSourcePullCallback(u,o,r+" has member 'pull' that"),start:void 0===h?void 0:convertUnderlyingSourceStartCallback(h,o,r+" has member 'start' that"),type:void 0===d?void 0:convertReadableStreamType(d,r+" has member 'type' that")}}(t,"First parameter");InitializeReadableStream(this);if("bytes"===l.type){if(void 0!==o.size)throw new RangeError("The strategy for a byte stream cannot have a size function");SetUpReadableByteStreamControllerFromUnderlyingSource(this,l,ExtractHighWaterMark(o,0))}else{var c=ExtractSizeAlgorithm(o);!function SetUpReadableStreamDefaultControllerFromUnderlyingSource(t,r,o,l){var c=Object.create(H.prototype),startAlgorithm=function(){},pullAlgorithm=function(){return promiseResolvedWith(void 0)},cancelAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.start&&(startAlgorithm=function(){return r.start(c)});void 0!==r.pull&&(pullAlgorithm=function(){return r.pull(c)});void 0!==r.cancel&&(cancelAlgorithm=function(t){return r.cancel(t)});SetUpReadableStreamDefaultController(t,c,startAlgorithm,pullAlgorithm,cancelAlgorithm,o,l)}(this,l,ExtractHighWaterMark(o,1),c)}}Object.defineProperty(ReadableStream.prototype,"locked",{get:function(){if(!IsReadableStream(this))throw streamBrandCheckException$1("locked");return IsReadableStreamLocked(this)},enumerable:!1,configurable:!0});ReadableStream.prototype.cancel=function(t){void 0===t&&(t=void 0);return IsReadableStream(this)?IsReadableStreamLocked(this)?promiseRejectedWith(new TypeError("Cannot cancel a stream that already has a reader")):ReadableStreamCancel(this,t):promiseRejectedWith(streamBrandCheckException$1("cancel"))};ReadableStream.prototype.getReader=function(t){void 0===t&&(t=void 0);if(!IsReadableStream(this))throw streamBrandCheckException$1("getReader");return void 0===function convertReaderOptions(t,r){assertDictionary(t,r);var o=null==t?void 0:t.mode;return{mode:void 0===o?void 0:convertReadableStreamReaderMode(o,r+" has member 'mode' that")}}(t,"First parameter").mode?AcquireReadableStreamDefaultReader(this):function AcquireReadableStreamBYOBReader(t){return new M(t)}(this)};ReadableStream.prototype.pipeThrough=function(t,r){void 0===r&&(r={});if(!IsReadableStream(this))throw streamBrandCheckException$1("pipeThrough");assertRequiredArgument(t,1,"pipeThrough");var o=function convertReadableWritablePair(t,r){assertDictionary(t,r);var o=null==t?void 0:t.readable;assertRequiredField(o,"readable","ReadableWritablePair");assertReadableStream(o,r+" has member 'readable' that");var l=null==t?void 0:t.writable;assertRequiredField(l,"writable","ReadableWritablePair");assertWritableStream(l,r+" has member 'writable' that");return{readable:o,writable:l}}(t,"First parameter"),l=convertPipeOptions(r,"Second parameter");if(IsReadableStreamLocked(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(IsWritableStreamLocked(o.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");setPromiseIsHandledToTrue(ReadableStreamPipeTo(this,o.writable,l.preventClose,l.preventAbort,l.preventCancel,l.signal));return o.readable};ReadableStream.prototype.pipeTo=function(t,r){void 0===r&&(r={});if(!IsReadableStream(this))return promiseRejectedWith(streamBrandCheckException$1("pipeTo"));if(void 0===t)return promiseRejectedWith("Parameter 1 is required in 'pipeTo'.");if(!IsWritableStream(t))return promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var o;try{o=convertPipeOptions(r,"Second parameter")}catch(t){return promiseRejectedWith(t)}return IsReadableStreamLocked(this)?promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):IsWritableStreamLocked(t)?promiseRejectedWith(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ReadableStreamPipeTo(this,t,o.preventClose,o.preventAbort,o.preventCancel,o.signal)};ReadableStream.prototype.tee=function(){if(!IsReadableStream(this))throw streamBrandCheckException$1("tee");var t=function ReadableStreamTee(t,r){var o,l,c,u,h,d=AcquireReadableStreamDefaultReader(t),g=!1,y=!1,v=!1,S=newPromise((function(t){h=t}));function pullAlgorithm(){if(g)return promiseResolvedWith(void 0);g=!0;ReadableStreamDefaultReaderRead(d,{_chunkSteps:function(t){m((function(){g=!1;var r=t,o=t;y||ReadableStreamDefaultControllerEnqueue(c._readableStreamController,r);v||ReadableStreamDefaultControllerEnqueue(u._readableStreamController,o);h(void 0)}))},_closeSteps:function(){g=!1;y||ReadableStreamDefaultControllerClose(c._readableStreamController);v||ReadableStreamDefaultControllerClose(u._readableStreamController)},_errorSteps:function(){g=!1}});return promiseResolvedWith(void 0)}function startAlgorithm(){}c=CreateReadableStream(startAlgorithm,pullAlgorithm,(function cancel1Algorithm(r){y=!0;o=r;if(v){var c=CreateArrayFromList([o,l]),u=ReadableStreamCancel(t,c);h(u)}return S}));u=CreateReadableStream(startAlgorithm,pullAlgorithm,(function cancel2Algorithm(r){v=!0;l=r;if(y){var c=CreateArrayFromList([o,l]),u=ReadableStreamCancel(t,c);h(u)}return S}));uponRejection(d._closedPromise,(function(t){ReadableStreamDefaultControllerError(c._readableStreamController,t);ReadableStreamDefaultControllerError(u._readableStreamController,t);h(void 0)}));return[c,u]}(this);return CreateArrayFromList(t)};ReadableStream.prototype.values=function(t){void 0===t&&(t=void 0);if(!IsReadableStream(this))throw streamBrandCheckException$1("values");return function AcquireReadableStreamAsyncIterator(t,r){var o=AcquireReadableStreamDefaultReader(t),l=new T(o,r),c=Object.create(R);c._asyncIteratorImpl=l;return c}(this,function convertIteratorOptions(t,r){assertDictionary(t,r);var o=null==t?void 0:t.preventCancel;return{preventCancel:Boolean(o)}}(t,"First parameter").preventCancel)};return ReadableStream}();Object.defineProperties(z.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(z.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0});"symbol"==typeof r.asyncIterator&&Object.defineProperty(z.prototype,r.asyncIterator,{value:z.prototype.values,writable:!0,configurable:!0});function CreateReadableStream(t,r,o,l,c){void 0===l&&(l=1);void 0===c&&(c=function(){return 1});var u=Object.create(z.prototype);InitializeReadableStream(u);SetUpReadableStreamDefaultController(u,Object.create(H.prototype),t,r,o,l,c);return u}function InitializeReadableStream(t){t._state="readable";t._reader=void 0;t._storedError=void 0;t._disturbed=!1}function IsReadableStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function IsReadableStreamLocked(t){return void 0!==t._reader}function ReadableStreamCancel(t,r){t._disturbed=!0;if("closed"===t._state)return promiseResolvedWith(void 0);if("errored"===t._state)return promiseRejectedWith(t._storedError);ReadableStreamClose(t);return transformPromiseWith(t._readableStreamController[S](r),noop)}function ReadableStreamClose(t){t._state="closed";var r=t._reader;if(void 0!==r){defaultReaderClosedPromiseResolve(r);if(IsReadableStreamDefaultReader(r)){r._readRequests.forEach((function(t){t._closeSteps()}));r._readRequests=new g}}}function ReadableStreamError(t,r){t._state="errored";t._storedError=r;var o=t._reader;if(void 0!==o){defaultReaderClosedPromiseReject(o,r);if(IsReadableStreamDefaultReader(o)){o._readRequests.forEach((function(t){t._errorSteps(r)}));o._readRequests=new g}else{o._readIntoRequests.forEach((function(t){t._errorSteps(r)}));o._readIntoRequests=new g}}}function streamBrandCheckException$1(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}function convertQueuingStrategyInit(t,r){assertDictionary(t,r);var o=null==t?void 0:t.highWaterMark;assertRequiredField(o,"highWaterMark","QueuingStrategyInit");return{highWaterMark:convertUnrestrictedDouble(o)}}var G=function size(t){return t.byteLength},V=function(){function ByteLengthQueuingStrategy(t){assertRequiredArgument(t,1,"ByteLengthQueuingStrategy");t=convertQueuingStrategyInit(t,"First parameter");this._byteLengthQueuingStrategyHighWaterMark=t.highWaterMark}Object.defineProperty(ByteLengthQueuingStrategy.prototype,"highWaterMark",{get:function(){if(!IsByteLengthQueuingStrategy(this))throw byteLengthBrandCheckException("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0});Object.defineProperty(ByteLengthQueuingStrategy.prototype,"size",{get:function(){if(!IsByteLengthQueuingStrategy(this))throw byteLengthBrandCheckException("size");return G},enumerable:!1,configurable:!0});return ByteLengthQueuingStrategy}();Object.defineProperties(V.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(V.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function byteLengthBrandCheckException(t){return new TypeError("ByteLengthQueuingStrategy.prototype."+t+" can only be used on a ByteLengthQueuingStrategy")}function IsByteLengthQueuingStrategy(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_byteLengthQueuingStrategyHighWaterMark")}var $=function size(){return 1},K=function(){function CountQueuingStrategy(t){assertRequiredArgument(t,1,"CountQueuingStrategy");t=convertQueuingStrategyInit(t,"First parameter");this._countQueuingStrategyHighWaterMark=t.highWaterMark}Object.defineProperty(CountQueuingStrategy.prototype,"highWaterMark",{get:function(){if(!IsCountQueuingStrategy(this))throw countBrandCheckException("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0});Object.defineProperty(CountQueuingStrategy.prototype,"size",{get:function(){if(!IsCountQueuingStrategy(this))throw countBrandCheckException("size");return $},enumerable:!1,configurable:!0});return CountQueuingStrategy}();Object.defineProperties(K.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(K.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function countBrandCheckException(t){return new TypeError("CountQueuingStrategy.prototype."+t+" can only be used on a CountQueuingStrategy")}function IsCountQueuingStrategy(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_countQueuingStrategyHighWaterMark")}function convertTransformerFlushCallback(t,r,o){assertFunction(t,o);return function(o){return promiseCall(t,r,[o])}}function convertTransformerStartCallback(t,r,o){assertFunction(t,o);return function(o){return reflectCall(t,r,[o])}}function convertTransformerTransformCallback(t,r,o){assertFunction(t,o);return function(o,l){return promiseCall(t,r,[o,l])}}var Y=function(){function TransformStream(t,r,o){void 0===t&&(t={});void 0===r&&(r={});void 0===o&&(o={});void 0===t&&(t=null);var l=convertQueuingStrategy(r,"Second parameter"),c=convertQueuingStrategy(o,"Third parameter"),u=function convertTransformer(t,r){assertDictionary(t,r);var o=null==t?void 0:t.flush,l=null==t?void 0:t.readableType,c=null==t?void 0:t.start,u=null==t?void 0:t.transform,h=null==t?void 0:t.writableType;return{flush:void 0===o?void 0:convertTransformerFlushCallback(o,t,r+" has member 'flush' that"),readableType:l,start:void 0===c?void 0:convertTransformerStartCallback(c,t,r+" has member 'start' that"),transform:void 0===u?void 0:convertTransformerTransformCallback(u,t,r+" has member 'transform' that"),writableType:h}}(t,"First parameter");if(void 0!==u.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==u.writableType)throw new RangeError("Invalid writableType specified");var h,d=ExtractHighWaterMark(c,0),m=ExtractSizeAlgorithm(c),g=ExtractHighWaterMark(l,1),y=ExtractSizeAlgorithm(l);!function InitializeTransformStream(t,r,o,l,c,u){function startAlgorithm(){return r}function writeAlgorithm(r){return function TransformStreamDefaultSinkWriteAlgorithm(t,r){var o=t._transformStreamController;return t._backpressure?transformPromiseWith(t._backpressureChangePromise,(function(){var l=t._writable;if("erroring"===l._state)throw l._storedError;return TransformStreamDefaultControllerPerformTransform(o,r)})):TransformStreamDefaultControllerPerformTransform(o,r)}(t,r)}function abortAlgorithm(r){return function TransformStreamDefaultSinkAbortAlgorithm(t,r){TransformStreamError(t,r);return promiseResolvedWith(void 0)}(t,r)}function closeAlgorithm(){return function TransformStreamDefaultSinkCloseAlgorithm(t){var r=t._readable,o=t._transformStreamController,l=o._flushAlgorithm();TransformStreamDefaultControllerClearAlgorithms(o);return transformPromiseWith(l,(function(){if("errored"===r._state)throw r._storedError;ReadableStreamDefaultControllerClose(r._readableStreamController)}),(function(o){TransformStreamError(t,o);throw r._storedError}))}(t)}t._writable=function CreateWritableStream(t,r,o,l,c,u){void 0===c&&(c=1);void 0===u&&(u=function(){return 1});var h=Object.create(N.prototype);InitializeWritableStream(h);SetUpWritableStreamDefaultController(h,Object.create(q.prototype),t,r,o,l,c,u);return h}(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,o,l);function pullAlgorithm(){return function TransformStreamDefaultSourcePullAlgorithm(t){TransformStreamSetBackpressure(t,!1);return t._backpressureChangePromise}(t)}function cancelAlgorithm(r){TransformStreamErrorWritableAndUnblockWrite(t,r);return promiseResolvedWith(void 0)}t._readable=CreateReadableStream(startAlgorithm,pullAlgorithm,cancelAlgorithm,c,u);t._backpressure=void 0;t._backpressureChangePromise=void 0;t._backpressureChangePromise_resolve=void 0;TransformStreamSetBackpressure(t,!0);t._transformStreamController=void 0}(this,newPromise((function(t){h=t})),g,y,d,m);!function SetUpTransformStreamDefaultControllerFromTransformer(t,r){var o=Object.create(J.prototype),transformAlgorithm=function(t){try{TransformStreamDefaultControllerEnqueue(o,t);return promiseResolvedWith(void 0)}catch(t){return promiseRejectedWith(t)}},flushAlgorithm=function(){return promiseResolvedWith(void 0)};void 0!==r.transform&&(transformAlgorithm=function(t){return r.transform(t,o)});void 0!==r.flush&&(flushAlgorithm=function(){return r.flush(o)});!function SetUpTransformStreamDefaultController(t,r,o,l){r._controlledTransformStream=t;t._transformStreamController=r;r._transformAlgorithm=o;r._flushAlgorithm=l}(t,o,transformAlgorithm,flushAlgorithm)}(this,u);void 0!==u.start?h(u.start(this._transformStreamController)):h(void 0)}Object.defineProperty(TransformStream.prototype,"readable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException$2("readable");return this._readable},enumerable:!1,configurable:!0});Object.defineProperty(TransformStream.prototype,"writable",{get:function(){if(!IsTransformStream(this))throw streamBrandCheckException$2("writable");return this._writable},enumerable:!1,configurable:!0});return TransformStream}();Object.defineProperties(Y.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(Y.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});function IsTransformStream(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function TransformStreamError(t,r){ReadableStreamDefaultControllerError(t._readable._readableStreamController,r);TransformStreamErrorWritableAndUnblockWrite(t,r)}function TransformStreamErrorWritableAndUnblockWrite(t,r){TransformStreamDefaultControllerClearAlgorithms(t._transformStreamController);WritableStreamDefaultControllerErrorIfNeeded(t._writable._writableStreamController,r);t._backpressure&&TransformStreamSetBackpressure(t,!1)}function TransformStreamSetBackpressure(t,r){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve();t._backpressureChangePromise=newPromise((function(r){t._backpressureChangePromise_resolve=r}));t._backpressure=r}var J=function(){function TransformStreamDefaultController(){throw new TypeError("Illegal constructor")}Object.defineProperty(TransformStreamDefaultController.prototype,"desiredSize",{get:function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0});TransformStreamDefaultController.prototype.enqueue=function(t){void 0===t&&(t=void 0);if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("enqueue");TransformStreamDefaultControllerEnqueue(this,t)};TransformStreamDefaultController.prototype.error=function(t){void 0===t&&(t=void 0);if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("error");!function TransformStreamDefaultControllerError(t,r){TransformStreamError(t._controlledTransformStream,r)}(this,t)};TransformStreamDefaultController.prototype.terminate=function(){if(!IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("terminate");!function TransformStreamDefaultControllerTerminate(t){var r=t._controlledTransformStream;ReadableStreamDefaultControllerClose(r._readable._readableStreamController);var o=new TypeError("TransformStream terminated");TransformStreamErrorWritableAndUnblockWrite(r,o)}(this)};return TransformStreamDefaultController}();Object.defineProperties(J.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}});"symbol"==typeof r.toStringTag&&Object.defineProperty(J.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function IsTransformStreamDefaultController(t){return!!typeIsObject(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function TransformStreamDefaultControllerClearAlgorithms(t){t._transformAlgorithm=void 0;t._flushAlgorithm=void 0}function TransformStreamDefaultControllerEnqueue(t,r){var o=t._controlledTransformStream,l=o._readable._readableStreamController;if(!ReadableStreamDefaultControllerCanCloseOrEnqueue(l))throw new TypeError("Readable side is not in a state that permits enqueue");try{ReadableStreamDefaultControllerEnqueue(l,r)}catch(t){TransformStreamErrorWritableAndUnblockWrite(o,t);throw o._readable._storedError}(function ReadableStreamDefaultControllerHasBackpressure(t){return!ReadableStreamDefaultControllerShouldCallPull(t)})(l)!==o._backpressure&&TransformStreamSetBackpressure(o,!0)}function TransformStreamDefaultControllerPerformTransform(t,r){return transformPromiseWith(t._transformAlgorithm(r),void 0,(function(r){TransformStreamError(t._controlledTransformStream,r);throw r}))}function defaultControllerBrandCheckException$1(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function streamBrandCheckException$2(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=V;t.CountQueuingStrategy=K;t.ReadableByteStreamController=j;t.ReadableStream=z;t.ReadableStreamBYOBReader=M;t.ReadableStreamBYOBRequest=D;t.ReadableStreamDefaultController=H;t.ReadableStreamDefaultReader=x;t.TransformStream=Y;t.TransformStreamDefaultController=J;t.WritableStream=N;t.WritableStreamDefaultController=q;t.WritableStreamDefaultWriter=L;Object.defineProperty(t,"__esModule",{value:!0})})(r)},(t,r,o)=>{o(113);var l=o(117);t.exports=l("String","padStart")},(t,r,o)=>{"use strict";var l=o(9),c=o(114).start;l({target:"String",proto:!0,forced:o(116)},{padStart:function padStart(t){return c(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{var l=o(46),c=o(115),u=o(19),h=Math.ceil,createMethod=function(t){return function(r,o,d){var m,g,y=String(u(r)),v=y.length,S=void 0===d?" ":String(d),k=l(o);if(k<=v||""==S)return y;m=k-v;(g=c.call(S,h(m/S.length))).length>m&&(g=g.slice(0,m));return t?y+g:g+y}};t.exports={start:createMethod(!1),end:createMethod(!0)}},(t,r,o)=>{"use strict";var l=o(47),c=o(19);t.exports=function repeat(t){var r=String(c(this)),o="",u=l(t);if(u<0||u==1/0)throw RangeError("Wrong number of repetitions");for(;u>0;(u>>>=1)&&(r+=r))1&u&&(o+=r);return o}},(t,r,o)=>{var l=o(59);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(l)},(t,r,o)=>{var l=o(10),c=o(78),u=Function.call;t.exports=function(t,r,o){return c(u,l[t].prototype[r],o)}},(t,r,o)=>{o(119);var l=o(117);t.exports=l("String","padEnd")},(t,r,o)=>{"use strict";var l=o(9),c=o(114).end;l({target:"String",proto:!0,forced:o(116)},{padEnd:function padEnd(t){return c(this,t,arguments.length>1?arguments[1]:void 0)}})},(t,r,o)=>{o(121);var l=o(42);t.exports=l.Object.values},(t,r,o)=>{var l=o(9),c=o(122).values;l({target:"Object",stat:!0},{values:function values(t){return c(t)}})},(t,r,o)=>{var l=o(12),c=o(63),u=o(16),h=o(14).f,createMethod=function(t){return function(r){for(var o,d=u(r),m=c(d),g=m.length,y=0,v=[];g>y;){o=m[y++];l&&!h.call(d,o)||v.push(t?[o,d[o]]:d[o])}return v}};t.exports={entries:createMethod(!0),values:createMethod(!1)}},(t,r,o)=>{o(124);var l=o(42);t.exports=l.Object.entries},(t,r,o)=>{var l=o(9),c=o(122).entries;l({target:"Object",stat:!0},{entries:function entries(t){return c(t)}})},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.clearPrimitiveCaches=function clearPrimitiveCaches(){d._clearCache();h._clearCache();g._clearCache()};r.isCmd=function isCmd(t,r){return t instanceof d&&(void 0===r||t.cmd===r)};r.isDict=function isDict(t,r){return t instanceof m&&(void 0===r||isName(t.get("Type"),r))};r.isEOF=function isEOF(t){return t===u};r.isName=isName;r.isRef=function isRef(t){return t instanceof g};r.isRefsEqual=function isRefsEqual(t,r){return t.num===r.num&&t.gen===r.gen};r.isStream=function isStream(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.getBytes};r.RefSetCache=r.RefSet=r.Ref=r.Name=r.EOF=r.Dict=r.Cmd=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4);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 _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}var u={};r.EOF=u;var h=function NameClosure(){var t=Object.create(null);function Name(t){this.name=t}Name.prototype={};Name.get=function Name_get(r){var o=t[r];return o||(t[r]=new Name(r))};Name._clearCache=function(){t=Object.create(null)};return Name}();r.Name=h;var d=function CmdClosure(){var t=Object.create(null);function Cmd(t){this.cmd=t}Cmd.prototype={};Cmd.get=function Cmd_get(r){var o=t[r];return o||(t[r]=new Cmd(r))};Cmd._clearCache=function(){t=Object.create(null)};return Cmd}();r.Cmd=d;var m=function DictClosure(){var t=function nonSerializableClosure(){return t};function Dict(r){this._map=Object.create(null);this.xref=r;this.objId=null;this.suppressEncryption=!1;this.__nonSerializable__=t}Dict.prototype={assignXref:function Dict_assignXref(t){this.xref=t},get size(){return Object.keys(this._map).length},get:function get(t,r,o){var l=this._map[t];void 0===l&&void 0!==r&&void 0===(l=this._map[r])&&void 0!==o&&(l=this._map[o]);return l instanceof g&&this.xref?this.xref.fetch(l,this.suppressEncryption):l},getAsync:function getAsync(t,r,o){var c=this;return function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(){var u;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:void 0===(u=c._map[t])&&void 0!==r&&void 0===(u=c._map[r])&&void 0!==o&&(u=c._map[o]);if(!(u instanceof g&&c.xref)){l.next=4;break}return l.abrupt("return",c.xref.fetchAsync(u,c.suppressEncryption));case 4:return l.abrupt("return",u);case 5:case"end":return l.stop()}}),_callee)})))()},getArray:function getArray(t,r,o){var l=this.get(t,r,o);if(!Array.isArray(l)||!this.xref)return l;for(var c=0,u=(l=l.slice()).length;c<u;c++)l[c]instanceof g&&(l[c]=this.xref.fetch(l[c],this.suppressEncryption));return l},getRaw:function Dict_getRaw(t){return this._map[t]},getKeys:function Dict_getKeys(){return Object.keys(this._map)},getRawValues:function Dict_getRawValues(){return Object.values(this._map)},set:function Dict_set(t,r){this._map[t]=r},has:function Dict_has(t){return void 0!==this._map[t]},forEach:function Dict_forEach(t){for(var r in this._map)t(r,this.get(r))}};Dict.empty=function(){var t=new Dict(null);t.set=function(t,r){(0,c.unreachable)("Should not call `set` on the empty dictionary.")};return t}();Dict.merge=function(t){var r=t.xref,o=t.dictArray,l=t.mergeSubDicts,c=void 0!==l&&l,u=new Dict(r);if(!c){var h,d=_createForOfIteratorHelper(o);try{for(d.s();!(h=d.n()).done;){var m=h.value;if(m instanceof Dict)for(var g=0,y=Object.entries(m._map);g<y.length;g++){var v=_slicedToArray(y[g],2),S=v[0],k=v[1];void 0===u._map[S]&&(u._map[S]=k)}}}catch(t){d.e(t)}finally{d.f()}return u.size>0?u:Dict.empty}var C,w=new Map,_=_createForOfIteratorHelper(o);try{for(_.s();!(C=_.n()).done;){var O=C.value;if(O instanceof Dict)for(var x=0,T=Object.entries(O._map);x<T.length;x++){var R=_slicedToArray(T[x],2),E=R[0],D=R[1],j=w.get(E);if(void 0===j){j=[];w.set(E,j)}j.push(D)}}}catch(t){_.e(t)}finally{_.f()}var M,N=_createForOfIteratorHelper(w);try{for(N.s();!(M=N.n()).done;){var L=_slicedToArray(M.value,2),U=L[0],q=L[1];if(1!==q.length&&q[0]instanceof Dict){var X,W=new Dict(r),H=_createForOfIteratorHelper(q);try{for(H.s();!(X=H.n()).done;){var z=X.value;if(z instanceof Dict)for(var G=0,V=Object.entries(z._map);G<V.length;G++){var $=_slicedToArray(V[G],2),K=$[0],Y=$[1];void 0===W._map[K]&&(W._map[K]=Y)}}}catch(t){H.e(t)}finally{H.f()}W.size>0&&(u._map[U]=W)}else u._map[U]=q[0]}}catch(t){N.e(t)}finally{N.f()}w.clear();return u.size>0?u:Dict.empty};return Dict}();r.Dict=m;var g=function RefClosure(){var t=Object.create(null);function Ref(t,r){this.num=t;this.gen=r}Ref.prototype={toString:function Ref_toString(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}};Ref.get=function(r,o){var l=0===o?"".concat(r,"R"):"".concat(r,"R").concat(o),c=t[l];return c||(t[l]=new Ref(r,o))};Ref._clearCache=function(){t=Object.create(null)};return Ref}();r.Ref=g;var y=function(){function RefSet(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,RefSet);this._set=new Set(t&&t._set)}_createClass(RefSet,[{key:"has",value:function has(t){return this._set.has(t.toString())}},{key:"put",value:function put(t){this._set.add(t.toString())}},{key:"remove",value:function remove(t){this._set.delete(t.toString())}},{key:"forEach",value:function forEach(t){var r,o=_createForOfIteratorHelper(this._set.values());try{for(o.s();!(r=o.n()).done;){t(r.value)}}catch(t){o.e(t)}finally{o.f()}}},{key:"clear",value:function clear(){this._set.clear()}}]);return RefSet}();r.RefSet=y;var v=function(){function RefSetCache(){_classCallCheck(this,RefSetCache);this._map=new Map}_createClass(RefSetCache,[{key:"size",get:function get(){return this._map.size}},{key:"get",value:function get(t){return this._map.get(t.toString())}},{key:"has",value:function has(t){return this._map.has(t.toString())}},{key:"put",value:function put(t,r){this._map.set(t.toString(),r)}},{key:"putAlias",value:function putAlias(t,r){this._map.set(t.toString(),this.get(r))}},{key:"forEach",value:function forEach(t){var r,o=_createForOfIteratorHelper(this._map.values());try{for(o.s();!(r=o.n()).done;){t(r.value)}}catch(t){o.e(t)}finally{o.f()}}},{key:"clear",value:function clear(){this._map.clear()}}]);return RefSetCache}();r.RefSetCache=v;function isName(t,r){return t instanceof h&&(void 0===r||t.name===r)}},(t,r,o)=>{"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.NetworkPdfManager=r.LocalPdfManager=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(127),h=o(128),d=o(129),m=o(132);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?_assertThisInitialized(t):r}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function parseDocBaseUrl(t){if(t){var r=(0,c.createValidAbsoluteUrl)(t);if(r)return r.href;(0,c.warn)('Invalid absolute docBaseUrl: "'.concat(t,'".'))}return null}var g=function(){function BasePdfManager(){_classCallCheck(this,BasePdfManager);this.constructor===BasePdfManager&&(0,c.unreachable)("Cannot initialize BasePdfManager.")}_createClass(BasePdfManager,[{key:"docId",get:function get(){return this._docId}},{key:"password",get:function get(){return this._password}},{key:"docBaseUrl",get:function get(){return this._docBaseUrl}},{key:"onLoadedStream",value:function onLoadedStream(){(0,c.unreachable)("Abstract method `onLoadedStream` called")}},{key:"ensureDoc",value:function ensureDoc(t,r){return this.ensure(this.pdfDocument,t,r)}},{key:"ensureXRef",value:function ensureXRef(t,r){return this.ensure(this.pdfDocument.xref,t,r)}},{key:"ensureCatalog",value:function ensureCatalog(t,r){return this.ensure(this.pdfDocument.catalog,t,r)}},{key:"getPage",value:function getPage(t){return this.pdfDocument.getPage(t)}},{key:"fontFallback",value:function fontFallback(t,r){return this.pdfDocument.fontFallback(t,r)}},{key:"cleanup",value:function cleanup(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(t)}},{key:"ensure",value:(t=_asyncToGenerator(l.default.mark((function _callee(t,r,o){return l.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:(0,c.unreachable)("Abstract method `ensure` called");case 1:case"end":return t.stop()}}),_callee)}))),function ensure(r,o,l){return t.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){(0,c.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function requestLoadedStream(){(0,c.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function sendProgressiveData(t){(0,c.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function updatePassword(t){this._password=t}},{key:"terminate",value:function terminate(t){(0,c.unreachable)("Abstract method `terminate` called")}}]);var t;return BasePdfManager}(),y=function(t){_inherits(LocalPdfManager,t);var r,o=_createSuper(LocalPdfManager);function LocalPdfManager(t,r,l,c,u,h){var g;_classCallCheck(this,LocalPdfManager);(g=o.call(this))._docId=t;g._password=l;g._docBaseUrl=parseDocBaseUrl(h);g.evaluatorOptions=c;g.enableXfa=u;var y=new m.Stream(r);g.pdfDocument=new d.PDFDocument(_assertThisInitialized(g),y);g._loadedStreamPromise=Promise.resolve(y);return g}_createClass(LocalPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(l.default.mark((function _callee2(t,r,o){var c;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if("function"!=typeof(c=t[r])){l.next=3;break}return l.abrupt("return",c.apply(t,o));case 3:return l.abrupt("return",c);case 4:case"end":return l.stop()}}),_callee2)}))),function ensure(t,o,l){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return Promise.resolve()}},{key:"requestLoadedStream",value:function requestLoadedStream(){}},{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamPromise}},{key:"terminate",value:function terminate(t){}}]);return LocalPdfManager}(g);r.LocalPdfManager=y;var v=function(t){_inherits(NetworkPdfManager,t);var r,o=_createSuper(NetworkPdfManager);function NetworkPdfManager(t,r,l,c,h,m){var g;_classCallCheck(this,NetworkPdfManager);(g=o.call(this))._docId=t;g._password=l.password;g._docBaseUrl=parseDocBaseUrl(m);g.msgHandler=l.msgHandler;g.evaluatorOptions=c;g.enableXfa=h;g.streamManager=new u.ChunkedStreamManager(r,{msgHandler:l.msgHandler,length:l.length,disableAutoFetch:l.disableAutoFetch,rangeChunkSize:l.rangeChunkSize});g.pdfDocument=new d.PDFDocument(_assertThisInitialized(g),g.streamManager.getStream());return g}_createClass(NetworkPdfManager,[{key:"ensure",value:(r=_asyncToGenerator(l.default.mark((function _callee3(t,r,o){var c;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;if("function"!=typeof(c=t[r])){l.next=4;break}return l.abrupt("return",c.apply(t,o));case 4:return l.abrupt("return",c);case 7:l.prev=7;l.t0=l.catch(0);if(l.t0 instanceof h.MissingDataException){l.next=11;break}throw l.t0;case 11:l.next=13;return this.requestRange(l.t0.begin,l.t0.end);case 13:return l.abrupt("return",this.ensure(t,r,o));case 14:case"end":return l.stop()}}),_callee3,this,[[0,7]])}))),function ensure(t,o,l){return r.apply(this,arguments)})},{key:"requestRange",value:function requestRange(t,r){return this.streamManager.requestRange(t,r)}},{key:"requestLoadedStream",value:function requestLoadedStream(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}},{key:"onLoadedStream",value:function onLoadedStream(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function terminate(t){this.streamManager.abort(t)}}]);return NetworkPdfManager}(g);r.NetworkPdfManager=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ChunkedStreamManager=r.ChunkedStream=void 0;var l=o(4),c=o(128);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var u=function(){function ChunkedStream(t,r,o){_classCallCheck(this,ChunkedStream);this.bytes=new Uint8Array(t);this.start=0;this.pos=0;this.end=t;this.chunkSize=r;this._loadedChunks=new Set;this.numChunks=Math.ceil(t/r);this.manager=o;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}_createClass(ChunkedStream,[{key:"getMissingChunks",value:function getMissingChunks(){for(var t=[],r=0,o=this.numChunks;r<o;++r)this._loadedChunks.has(r)||t.push(r);return t}},{key:"getBaseStreams",value:function getBaseStreams(){return[this]}},{key:"numChunksLoaded",get:function get(){return this._loadedChunks.size}},{key:"allChunksLoaded",value:function allChunksLoaded(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function onReceiveData(t,r){var o=this.chunkSize;if(t%o!=0)throw new Error("Bad begin offset: ".concat(t));var l=t+r.byteLength;if(l%o!=0&&l!==this.bytes.length)throw new Error("Bad end offset: ".concat(l));this.bytes.set(new Uint8Array(r),t);for(var c=Math.floor(t/o),u=Math.floor((l-1)/o)+1,h=c;h<u;++h)this._loadedChunks.add(h)}},{key:"onReceiveProgressiveData",value:function onReceiveProgressiveData(t){var r=this.progressiveDataLength,o=Math.floor(r/this.chunkSize);this.bytes.set(new Uint8Array(t),r);r+=t.byteLength;this.progressiveDataLength=r;for(var l=r>=this.end?this.numChunks:Math.floor(r/this.chunkSize),c=o;c<l;++c)this._loadedChunks.add(c)}},{key:"ensureByte",value:function ensureByte(t){if(!(t<this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(r!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(r))throw new c.MissingDataException(t,t+1);this.lastSuccessfulEnsureByteChunk=r}}}},{key:"ensureRange",value:function ensureRange(t,r){if(!(t>=r||r<=this.progressiveDataLength))for(var o=this.chunkSize,l=Math.floor(t/o),u=Math.floor((r-1)/o)+1,h=l;h<u;++h)if(!this._loadedChunks.has(h))throw new c.MissingDataException(t,r)}},{key:"nextEmptyChunk",value:function nextEmptyChunk(t){for(var r=this.numChunks,o=0;o<r;++o){var l=(t+o)%r;if(!this._loadedChunks.has(l))return l}return null}},{key:"hasChunk",value:function hasChunk(t){return this._loadedChunks.has(t)}},{key:"length",get:function get(){return this.end-this.start}},{key:"isEmpty",get:function get(){return 0===this.length}},{key:"getByte",value:function getByte(){var t=this.pos;if(t>=this.end)return-1;t>=this.progressiveDataLength&&this.ensureByte(t);return this.bytes[this.pos++]}},{key:"getUint16",value:function getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r}},{key:"getInt32",value:function getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getBytes",value:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.bytes,l=this.pos,c=this.end;if(!t){c>this.progressiveDataLength&&this.ensureRange(l,c);var u=o.subarray(l,c);return r?new Uint8ClampedArray(u):u}var h=l+t;h>c&&(h=c);h>this.progressiveDataLength&&this.ensureRange(l,h);this.pos=h;var d=o.subarray(l,h);return r?new Uint8ClampedArray(d):d}},{key:"peekByte",value:function peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t}},{key:"peekBytes",value:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getBytes(t,r);this.pos-=o.length;return o}},{key:"getByteRange",value:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);r>this.progressiveDataLength&&this.ensureRange(t,r);return this.bytes.subarray(t,r)}},{key:"skip",value:function skip(t){t||(t=1);this.pos+=t}},{key:"reset",value:function reset(){this.pos=this.start}},{key:"moveStart",value:function moveStart(){this.start=this.pos}},{key:"makeSubStream",value:function makeSubStream(t,r,o){r?t+r>this.progressiveDataLength&&this.ensureRange(t,t+r):t>=this.progressiveDataLength&&this.ensureByte(t);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){for(var t=this.chunkSize,r=Math.floor(this.start/t),o=Math.floor((this.end-1)/t)+1,l=[],c=r;c<o;++c)this._loadedChunks.has(c)||l.push(c);return l};ChunkedStreamSubstream.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};var l=new ChunkedStreamSubstream;l.pos=l.start=t;l.end=t+r||this.end;l.dict=o;return l}}]);return ChunkedStream}();r.ChunkedStream=u;var h=function(){function ChunkedStreamManager(t,r){_classCallCheck(this,ChunkedStreamManager);this.length=r.length;this.chunkSize=r.rangeChunkSize;this.stream=new u(this.length,this.chunkSize,this);this.pdfNetworkStream=t;this.disableAutoFetch=r.disableAutoFetch;this.msgHandler=r.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=!1;this._loadedStreamCapability=(0,l.createPromiseCapability)()}_createClass(ChunkedStreamManager,[{key:"onLoadedStream",value:function onLoadedStream(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function sendRequest(t,r){var o=this,c=this.pdfNetworkStream.getRangeReader(t,r);c.isStreamingSupported||(c.onProgress=this.onProgress.bind(this));var u=[],h=0;new Promise((function(t,r){c.read().then((function readChunk(d){try{if(!d.done){var m=d.value;u.push(m);h+=(0,l.arrayByteLength)(m);c.isStreamingSupported&&o.onProgress({loaded:h});c.read().then(readChunk,r);return}var g=(0,l.arraysToBytes)(u);u=null;t(g)}catch(t){r(t)}}),r)})).then((function(r){o.aborted||o.onReceiveData({chunk:r,begin:t})}))}},{key:"requestAllChunks",value:function requestAllChunks(){var t=this.stream.getMissingChunks();this._requestChunks(t);return this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function _requestChunks(t){var r=this,o=this.currRequestId++,c=new Set;this._chunksNeededByRequest.set(o,c);var u,h=_createForOfIteratorHelper(t);try{for(h.s();!(u=h.n()).done;){var d=u.value;this.stream.hasChunk(d)||c.add(d)}}catch(t){h.e(t)}finally{h.f()}if(0===c.size)return Promise.resolve();var m=(0,l.createPromiseCapability)();this._promisesByRequest.set(o,m);var g,y=[],v=_createForOfIteratorHelper(c);try{for(v.s();!(g=v.n()).done;){var S=g.value,k=this._requestsByChunk.get(S);if(!k){k=[];this._requestsByChunk.set(S,k);y.push(S)}k.push(o)}}catch(t){v.e(t)}finally{v.f()}if(y.length>0){var C,w=_createForOfIteratorHelper(this.groupChunks(y));try{for(w.s();!(C=w.n()).done;){var _=C.value,O=_.beginChunk*this.chunkSize,x=Math.min(_.endChunk*this.chunkSize,this.length);this.sendRequest(O,x)}}catch(t){w.e(t)}finally{w.f()}}return m.promise.catch((function(t){if(!r.aborted)throw t}))}},{key:"getStream",value:function getStream(){return this.stream}},{key:"requestRange",value:function requestRange(t,r){r=Math.min(r,this.length);for(var o=this.getBeginChunk(t),l=this.getEndChunk(r),c=[],u=o;u<l;++u)c.push(u);return this._requestChunks(c)}},{key:"requestRanges",value:function requestRanges(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],l=_createForOfIteratorHelper(r);try{for(l.s();!(t=l.n()).done;)for(var c=t.value,u=this.getBeginChunk(c.begin),h=this.getEndChunk(c.end),d=u;d<h;++d)o.includes(d)||o.push(d)}catch(t){l.e(t)}finally{l.f()}o.sort((function(t,r){return t-r}));return this._requestChunks(o)}},{key:"groupChunks",value:function groupChunks(t){for(var r=[],o=-1,l=-1,c=0,u=t.length;c<u;++c){var h=t[c];o<0&&(o=h);if(l>=0&&l+1!==h){r.push({beginChunk:o,endChunk:l+1});o=h}c+1===t.length&&r.push({beginChunk:o,endChunk:h+1});l=h}return r}},{key:"onProgress",value:function onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}},{key:"onReceiveData",value:function onReceiveData(t){var r=t.chunk,o=void 0===t.begin,l=o?this.progressiveDataLength:t.begin,c=l+r.byteLength,u=Math.floor(l/this.chunkSize),h=c<this.length?Math.floor(c/this.chunkSize):Math.ceil(c/this.chunkSize);if(o){this.stream.onReceiveProgressiveData(r);this.progressiveDataLength=c}else this.stream.onReceiveData(l,r);this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);for(var d=[],m=u;m<h;++m){var g=this._requestsByChunk.get(m);if(g){this._requestsByChunk.delete(m);var y,v=_createForOfIteratorHelper(g);try{for(v.s();!(y=v.n()).done;){var S=y.value,k=this._chunksNeededByRequest.get(S);k.has(m)&&k.delete(m);k.size>0||d.push(S)}}catch(t){v.e(t)}finally{v.f()}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){var C;if(1===this.stream.numChunksLoaded){var w=this.stream.numChunks-1;this.stream.hasChunk(w)||(C=w)}else C=this.stream.nextEmptyChunk(h);Number.isInteger(C)&&this._requestChunks([C])}for(var _=0,O=d;_<O.length;_++){var x=O[_],T=this._promisesByRequest.get(x);this._promisesByRequest.delete(x);T.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function onError(t){this._loadedStreamCapability.reject(t)}},{key:"getBeginChunk",value:function getBeginChunk(t){return Math.floor(t/this.chunkSize)}},{key:"getEndChunk",value:function getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}},{key:"abort",value:function abort(t){this.aborted=!0;this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(t);var r,o=_createForOfIteratorHelper(this._promisesByRequest.values());try{for(o.s();!(r=o.n()).done;){r.value.reject(t)}}catch(t){o.e(t)}finally{o.f()}}}]);return ChunkedStreamManager}();r.ChunkedStreamManager=h},(t,r,o)=>{"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.collectActions=function collectActions(t,r,o){var u=Object.create(null),h=getInheritableProperty({dict:r,key:"AA",stopWhenFound:!1});if(h)for(var d=h.length-1;d>=0;d--){var m=h[d];if(m instanceof c.Dict){var g,y=_createForOfIteratorHelper(m.getKeys());try{for(y.s();!(g=y.n()).done;){var v=g.value,S=o[v];if(S){var k=m.getRaw(v),C=new c.RefSet,w=[];_collectJS(k,t,w,C);w.length>0&&(u[S]=w)}}}catch(t){y.e(t)}finally{y.f()}}}if(r.has("A")){var _=r.get("A"),O=new c.RefSet,x=[];_collectJS(_,t,x,O);x.length>0&&(u.Action=x)}return(0,l.objectSize)(u)>0?u:null};r.encodeToXmlString=function encodeToXmlString(t){for(var r=[],o=0,l=0,c=t.length;l<c;l++){var u=t.codePointAt(l);if(32<=u&&u<=126){var h=g[u];if(h){o<l&&r.push(t.substring(o,l));r.push(h);o=l+1}}else{o<l&&r.push(t.substring(o,l));r.push("&#x".concat(u.toString(16).toUpperCase(),";"));u>55295&&(u<57344||u>65533)&&l++;o=l+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")};r.escapePDFName=function escapePDFName(t){for(var r=[],o=0,l=0,c=t.length;l<c;l++){var u=t.charCodeAt(l);if(u<33||u>126||35===u||40===u||41===u||60===u||62===u||91===u||93===u||123===u||125===u||47===u||37===u){o<l&&r.push(t.substring(o,l));r.push("#".concat(u.toString(16)));o=l+1}}if(0===r.length)return t;o<t.length&&r.push(t.substring(o,t.length));return r.join("")};r.getArrayLookupTableFactory=function getArrayLookupTableFactory(t){var r;return function(){if(t){var o=t();t=null;r=Object.create(null);for(var l=0,c=o.length;l<c;l+=2)r[o[l]]=o[l+1];o=null}return r}};r.getInheritableProperty=getInheritableProperty;r.getLookupTableFactory=function getLookupTableFactory(t){var r;return function(){if(t){r=Object.create(null);t(r);t=null}return r}};r.isWhiteSpace=function isWhiteSpace(t){return 32===t||9===t||13===t||10===t};r.log2=function log2(t){if(t<=0)return 0;return Math.ceil(Math.log2(t))};r.parseXFAPath=function parseXFAPath(t){var r=/(.+)\[([0-9]+)\]$/;return t.split(".").map((function(t){var o=t.match(r);return o?{name:o[1],pos:parseInt(o[2],10)}:{name:t,pos:0}}))};r.readInt8=function readInt8(t,r){return t[r]<<24>>24};r.readUint16=function readUint16(t,r){return t[r]<<8|t[r+1]};r.readUint32=function readUint32(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0};r.toRomanNumerals=function toRomanNumerals(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,l.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");var o,c=[];for(;t>=1e3;){t-=1e3;c.push("M")}o=t/100|0;t%=100;c.push(m[o]);o=t/10|0;t%=10;c.push(m[10+o]);c.push(m[20+t]);var u=c.join("");return r?u.toLowerCase():u};r.XRefParseException=r.XRefEntryException=r.MissingDataException=void 0;var l=o(4),c=o(125);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){_inherits(MissingDataException,t);var r=_createSuper(MissingDataException);function MissingDataException(t,o){var l;_classCallCheck(this,MissingDataException);(l=r.call(this,"Missing data [".concat(t,", ").concat(o,")"))).begin=t;l.end=o;return l}return MissingDataException}(l.BaseException);r.MissingDataException=u;var h=function(t){_inherits(XRefEntryException,t);var r=_createSuper(XRefEntryException);function XRefEntryException(){_classCallCheck(this,XRefEntryException);return r.apply(this,arguments)}return XRefEntryException}(l.BaseException);r.XRefEntryException=h;var d=function(t){_inherits(XRefParseException,t);var r=_createSuper(XRefParseException);function XRefParseException(){_classCallCheck(this,XRefParseException);return r.apply(this,arguments)}return XRefParseException}(l.BaseException);r.XRefParseException=d;function getInheritableProperty(t){for(var r,o=t.dict,l=t.key,u=t.getArray,h=void 0!==u&&u,d=t.stopWhenFound,m=void 0===d||d,g=new c.RefSet;o instanceof c.Dict&&(!o.objId||!g.has(o.objId));){o.objId&&g.put(o.objId);var y=h?o.getArray(l):o.get(l);if(void 0!==y){if(m)return y;r||(r=[]);r.push(y)}o=o.get("Parent")}return r}var m=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function _collectJS(t,r,o,u){if(t){var h=null;if((0,c.isRef)(t)){if(u.has(t))return;h=t;u.put(h);t=r.fetch(t)}if(Array.isArray(t)){var d,m=_createForOfIteratorHelper(t);try{for(m.s();!(d=m.n()).done;){_collectJS(d.value,r,o,u)}}catch(t){m.e(t)}finally{m.f()}}else if(t instanceof c.Dict){if((0,c.isName)(t.get("S"),"JavaScript")&&t.has("JS")){var g,y=t.get("JS");g=(0,c.isStream)(y)?(0,l.bytesToString)(y.getBytes()):y;(g=(0,l.stringToPDFString)(g))&&o.push(g)}_collectJS(t.getRaw("Next"),r,o,u)}h&&u.remove(h)}}var g={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"}},(t,r,o)=>{"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.PDFDocument=r.Page=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(130),h=o(125),d=o(128),m=o(132),g=o(147),y=o(142),v=o(131),S=o(166),k=o(149),C=o(169);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var w=[0,0,612,792];function isAnnotationRenderable(t,r){return"display"===r&&t.viewable||"print"===r&&t.printable}var _=function(){function Page(t){var r=t.pdfManager,o=t.xref,l=t.pageIndex,c=t.pageDict,u=t.ref,h=t.globalIdFactory,d=t.fontCache,m=t.builtInCMapCache,g=t.globalImageCache,y=t.nonBlendModesSet,v=t.xfaFactory;_classCallCheck(this,Page);this.pdfManager=r;this.pageIndex=l;this.pageDict=c;this.xref=o;this.ref=u;this.fontCache=d;this.builtInCMapCache=m;this.globalImageCache=g;this.nonBlendModesSet=y;this.evaluatorOptions=r.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=v;var S={obj:0};this._localIdFactory=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)}(_class,t);var r=_createSuper(_class);function _class(){_classCallCheck(this,_class);return r.apply(this,arguments)}_createClass(_class,null,[{key:"createObjId",value:function createObjId(){return"p".concat(l,"_").concat(++S.obj)}}]);return _class}(h)}_createClass(Page,[{key:"_getInheritableProperty",value:function _getInheritableProperty(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,d.getInheritableProperty)({dict:this.pageDict,key:t,getArray:r,stopWhenFound:!1});return Array.isArray(o)?1!==o.length&&(0,h.isDict)(o[0])?h.Dict.merge({xref:this.xref,dictArray:o}):o[0]:o}},{key:"content",get:function get(){return this.pageDict.get("Contents")}},{key:"resources",get:function get(){return(0,c.shadow)(this,"resources",this._getInheritableProperty("Resources")||h.Dict.empty)}},{key:"_getBoundingBox",value:function _getBoundingBox(t){if(this.xfaData){var r=this.xfaData.attributes.style,o=r.width,l=r.height;return[0,0,parseInt(o),parseInt(l)]}var u=this._getInheritableProperty(t,!0);if(Array.isArray(u)&&4===u.length){if(u[2]-u[0]!=0&&u[3]-u[1]!=0)return u;(0,c.warn)("Empty /".concat(t," entry."))}return null}},{key:"mediaBox",get:function get(){return(0,c.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||w)}},{key:"cropBox",get:function get(){return(0,c.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function get(){var t=this.pageDict.get("UserUnit");(!(0,c.isNum)(t)||t<=0)&&(t=1);return(0,c.shadow)(this,"userUnit",t)}},{key:"view",get:function get(){var t,r=this.cropBox,o=this.mediaBox;if(r===o||(0,c.isArrayEqual)(r,o))t=o;else{var l=c.Util.intersect(r,o);l&&l[2]-l[0]!=0&&l[3]-l[1]!=0?t=l:(0,c.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,c.shadow)(this,"view",t||o)}},{key:"rotate",get:function get(){var t=this._getInheritableProperty("Rotate")||0;t%90!=0?t=0:t>=360?t%=360:t<0&&(t=(t%360+360)%360);return(0,c.shadow)(this,"rotate",t)}},{key:"getContentStream",value:function getContentStream(){var t,r=this.content;if(Array.isArray(r)){var o,l=this.xref,c=[],u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){var d=o.value;c.push(l.fetchIfRef(d))}}catch(t){u.e(t)}finally{u.f()}t=new m.StreamsSequenceStream(c)}else t=(0,h.isStream)(r)?r:new m.NullStream;return t}},{key:"xfaData",get:function get(){return this.xfaFactory?(0,c.shadow)(this,"xfaData",this.xfaFactory.getPage(this.pageIndex)):(0,c.shadow)(this,"xfaData",null)}},{key:"save",value:function save(t,r,o){var l=new k.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){var u,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var m=u.value;isAnnotationRenderable(m,"print")&&h.push(m.save(l,r,o).catch((function(t){(0,c.warn)("save - ignoring annotation data during "+'"'.concat(r.name,'" task: "').concat(t,'".'));return null})))}}catch(t){d.e(t)}finally{d.f()}return Promise.all(h)}))}},{key:"loadResources",value:function loadResources(t){var r=this;this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources"));return this.resourcesPromise.then((function(){return new u.ObjectLoader(r.resources,t,r.xref).load()}))}},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.handler,l=t.sink,u=t.task,h=t.intent,d=t.renderInteractiveForms,m=t.annotationStorage,g=this.pdfManager.ensure(this,"getContentStream"),y=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),v=new k.PartialEvaluator({xref:this.xref,handler:o,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),C=Promise.all([g,y]).then((function(t){var c=_slicedToArray(t,1)[0],d=new S.OperatorList(h,l);o.send("StartRenderPage",{transparency:v.hasBlendModes(r.resources,r.nonBlendModesSet),pageIndex:r.pageIndex,intent:h});return v.getOperatorList({stream:c,task:u,resources:r.resources,operatorList:d}).then((function(){return d}))}));return Promise.all([C,this._parsedAnnotations]).then((function(t){var r=_slicedToArray(t,2),o=r[0],l=r[1];if(0===l.length){o.flush(!0);return{length:o.totalLength}}var g,y=[],S=_createForOfIteratorHelper(l);try{for(S.s();!(g=S.n()).done;){var k=g.value;isAnnotationRenderable(k,h)&&!k.isHidden(m)&&y.push(k.getOperatorList(v,u,d,m).catch((function(t){(0,c.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(u.name,'" task: "').concat(t,'".'));return null})))}}catch(t){S.e(t)}finally{S.f()}return Promise.all(y).then((function(t){o.addOp(c.OPS.beginAnnotations,[]);var r,l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var u=r.value;o.addOpList(u)}}catch(t){l.e(t)}finally{l.f()}o.addOp(c.OPS.endAnnotations,[]);o.flush(!0);return{length:o.totalLength}}))}))}},{key:"extractTextContent",value:function extractTextContent(t){var r=this,o=t.handler,l=t.task,c=t.normalizeWhitespace,u=t.sink,h=t.combineTextItems,d=this.pdfManager.ensure(this,"getContentStream"),m=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([d,m]).then((function(t){var d=_slicedToArray(t,1)[0];return new k.PartialEvaluator({xref:r.xref,handler:o,pageIndex:r.pageIndex,idFactory:r._localIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,globalImageCache:r.globalImageCache,options:r.evaluatorOptions}).getTextContent({stream:d,task:l,resources:r.resources,normalizeWhitespace:c,combineTextItems:h,sink:u})}))}},{key:"getAnnotationsData",value:function getAnnotationsData(t){return this._parsedAnnotations.then((function(r){for(var o=[],l=0,c=r.length;l<c;l++)t&&!isAnnotationRenderable(r[l],t)||o.push(r[l].data);return o}))}},{key:"annotations",get:function get(){var t=this._getInheritableProperty("Annots");return(0,c.shadow)(this,"annotations",Array.isArray(t)?t:[])}},{key:"_parsedAnnotations",get:function get(){var t=this,r=this.pdfManager.ensure(this,"annotations").then((function(){var r,o=[],l=_createForOfIteratorHelper(t.annotations);try{for(l.s();!(r=l.n()).done;){var u=r.value;o.push(g.AnnotationFactory.create(t.xref,u,t.pdfManager,t._localIdFactory,!1).catch((function(t){(0,c.warn)('_parsedAnnotations: "'.concat(t,'".'));return null})))}}catch(t){l.e(t)}finally{l.f()}return Promise.all(o).then((function(t){return t.filter((function(t){return!!t}))}))}));return(0,c.shadow)(this,"_parsedAnnotations",r)}},{key:"jsActions",get:function get(){var t=(0,d.collectActions)(this.xref,this.pageDict,c.PageActionEventType);return(0,c.shadow)(this,"jsActions",t)}}]);return Page}();r.Page=_;var O=new Uint8Array([37,80,68,70,45]),x=new Uint8Array([115,116,97,114,116,120,114,101,102]),T=new Uint8Array([101,110,100,111,98,106]),R=/^[1-9]\.[0-9]$/;function find(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=r.length,u=t.peekBytes(o),h=u.length-c;if(h<=0)return!1;if(l)for(var d=c-1,m=u.length-1;m>=d;){for(var g=0;g<c&&u[m-g]===r[d-g];)g++;if(g>=c){t.pos+=m-d;return!0}m--}else for(var y=0;y<=h;){for(var v=0;v<c&&u[y+v]===r[v];)v++;if(v>=c){t.pos+=y;return!0}y++}return!1}var E=function(){function PDFDocument(t,r){_classCallCheck(this,PDFDocument);var o;if((0,h.isStream)(r))o=r;else{if(!(0,c.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");o=new m.Stream(r)}if(o.length<=0)throw new c.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t;this.stream=o;this.xref=new u.XRef(o,t);this._pagePromises=[];this._version=null;var l={font:0};this._globalIdFactory=function(){function _class2(){_classCallCheck(this,_class2)}_createClass(_class2,null,[{key:"getDocId",value:function getDocId(){return"g_".concat(t.docId)}},{key:"createFontId",value:function createFontId(){return"f".concat(++l.font)}},{key:"createObjId",value:function createObjId(){(0,c.unreachable)("Abstract method `createObjId` called.")}}]);return _class2}()}_createClass(PDFDocument,[{key:"parse",value:function parse(t){this.xref.parse(t);this.catalog=new u.Catalog(this.pdfManager,this.xref);this.catalog.version&&(this._version=this.catalog.version)}},{key:"linearization",get:function get(){var t=null;try{t=v.Linearization.create(this.stream)}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.info)(t)}return(0,c.shadow)(this,"linearization",t)}},{key:"startXRef",get:function get(){var t=this.stream,r=0;if(this.linearization){t.reset();find(t,T)&&(r=t.pos+6-t.start)}else{for(var o=x.length,l=!1,u=t.end;!l&&u>0;){(u-=1024-o)<0&&(u=0);t.pos=u;l=find(t,x,1024,!0)}if(l){t.skip(9);var h;do{h=t.getByte()}while((0,d.isWhiteSpace)(h));for(var m="";h>=32&&h<=57;){m+=String.fromCharCode(h);h=t.getByte()}r=parseInt(m,10);isNaN(r)&&(r=0)}}return(0,c.shadow)(this,"startXRef",r)}},{key:"checkHeader",value:function checkHeader(){var t=this.stream;t.reset();if(find(t,O)){t.moveStart();for(var r,o="";(r=t.getByte())>32&&!(o.length>=12);)o+=String.fromCharCode(r);this._version||(this._version=o.substring(5))}}},{key:"parseStartXRef",value:function parseStartXRef(){this.xref.setStartXRef(this.startXRef)}},{key:"numPages",get:function get(){if(this.xfaFactory)return(0,c.shadow)(this,"numPages",this.xfaFactory.numberPages);var t=this.linearization,r=t?t.numPages:this.catalog.numPages;return(0,c.shadow)(this,"numPages",r)}},{key:"_hasOnlyDocumentSignatures",value:function _hasOnlyDocumentSignatures(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=10;return!!Array.isArray(t)&&t.every((function(t){if(!((t=r.xref.fetchIfRef(t))instanceof h.Dict))return!1;if(t.has("Kids")){if(++o>l){(0,c.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return r._hasOnlyDocumentSignatures(t.get("Kids"),o)}var u=(0,h.isName)(t.get("FT"),"Sig"),d=t.get("Rect"),m=Array.isArray(d)&&d.every((function(t){return 0===t}));return u&&m}))}},{key:"xfaData",get:function get(){var t=this.catalog.acroForm;if(!t)return null;var r=t.get("XFA"),o={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if((0,h.isStream)(r)&&!r.isEmpty)try{o["xdp:xdp"]=(0,c.stringToUTF8String)((0,c.bytesToString)(r.getBytes()));return o}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");return null}if(!Array.isArray(r)||0===r.length)return null;for(var l=0,u=r.length;l<u;l+=2){var d=void 0;d=0===l?"xdp:xdp":l===u-2?"/xdp:xdp":r[l];if(o.hasOwnProperty(d)){var m=this.xref.fetchIfRef(r[l+1]);if((0,h.isStream)(m)&&!m.isEmpty)try{o[d]=(0,c.stringToUTF8String)((0,c.bytesToString)(m.getBytes()))}catch(t){(0,c.warn)("XFA - Invalid utf-8 string.");return null}}}return o}},{key:"xfaFactory",get:function get(){if(this.pdfManager.enableXfa&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){var t=this.xfaData;return(0,c.shadow)(this,"xfaFactory",t?new C.XFAFactory(t):null)}return(0,c.shadow)(this,"xfaFaxtory",null)}},{key:"isPureXfa",get:function get(){return null!==this.xfaFactory}},{key:"formInfo",get:function get(){var t={hasFields:!1,hasAcroForm:!1,hasXfa:!1},r=this.catalog.acroForm;if(!r)return(0,c.shadow)(this,"formInfo",t);try{var o=r.get("Fields"),l=Array.isArray(o)&&o.length>0;t.hasFields=l;var u=r.get("XFA");t.hasXfa=Array.isArray(u)&&u.length>0||(0,h.isStream)(u)&&!u.isEmpty;var m=!!(1&r.get("SigFlags"))&&this._hasOnlyDocumentSignatures(o);t.hasAcroForm=l&&!m}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.warn)('Cannot fetch form information: "'.concat(t,'".'))}return(0,c.shadow)(this,"formInfo",t)}},{key:"documentInfo",get:function get(){var t={Title:c.isString,Author:c.isString,Subject:c.isString,Keywords:c.isString,Creator:c.isString,Producer:c.isString,CreationDate:c.isString,ModDate:c.isString,Trapped:h.isName},r=this._version;if("string"!=typeof r||!R.test(r)){(0,c.warn)("Invalid PDF header version number: ".concat(r));r=null}var o,l={PDFFormatVersion:r,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection};try{o=this.xref.trailer.get("Info")}catch(t){if(t instanceof d.MissingDataException)throw t;(0,c.info)("The document information dictionary is invalid.")}if((0,h.isDict)(o)){var u,m=_createForOfIteratorHelper(o.getKeys());try{for(m.s();!(u=m.n()).done;){var g=u.value,y=o.get(g);if(t[g])t[g](y)?l[g]="string"!=typeof y?y:(0,c.stringToPDFString)(y):(0,c.info)('Bad value in document info for "'.concat(g,'".'));else if("string"==typeof g){var v=void 0;if((0,c.isString)(y))v=(0,c.stringToPDFString)(y);else{if(!((0,h.isName)(y)||(0,c.isNum)(y)||(0,c.isBool)(y))){(0,c.info)('Unsupported value in document info for (custom) "'.concat(g,'".'));continue}v=y}l.Custom||(l.Custom=Object.create(null));l.Custom[g]=v}}}catch(t){m.e(t)}finally{m.f()}}return(0,c.shadow)(this,"documentInfo",l)}},{key:"fingerprint",get:function get(){for(var t,r=this.xref.trailer.get("ID"),o=[],l=0,u=(t=Array.isArray(r)&&r[0]&&(0,c.isString)(r[0])&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==r[0]?(0,c.stringToBytes)(r[0]):(0,y.calculateMD5)(this.stream.getByteRange(0,1024),0,1024)).length;l<u;l++){var h=t[l].toString(16);o.push(h.padStart(2,"0"))}return(0,c.shadow)(this,"fingerprint",o.join(""))}},{key:"_getLinearizationPage",value:function _getLinearizationPage(t){var r=this.catalog,o=this.linearization,l=h.Ref.get(o.objectNumberFirst,0);return this.xref.fetchAsync(l).then((function(t){if((0,h.isDict)(t,"Page")||(0,h.isDict)(t)&&!t.has("Type")&&t.has("Contents")){l&&!r.pageKidsCountCache.has(l)&&r.pageKidsCountCache.put(l,1);return[t,l]}throw new c.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(o){(0,c.info)(o);return r.getPageDict(t)}))}},{key:"getPage",value:function getPage(t){var r=this;if(void 0!==this._pagePromises[t])return this._pagePromises[t];var o=this.catalog,l=this.linearization;if(this.xfaFactory)return Promise.resolve(new _({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:h.Dict.empty,ref:null,globalIdFactory:this._globalIdFactory,fontCache:o.fontCache,builtInCMapCache:o.builtInCMapCache,globalImageCache:o.globalImageCache,nonBlendModesSet:o.nonBlendModesSet,xfaFactory:this.xfaFactory}));var c=l&&l.pageFirst===t?this._getLinearizationPage(t):o.getPageDict(t);return this._pagePromises[t]=c.then((function(l){var c=_slicedToArray(l,2),u=c[0],h=c[1];return new _({pdfManager:r.pdfManager,xref:r.xref,pageIndex:t,pageDict:u,ref:h,globalIdFactory:r._globalIdFactory,fontCache:o.fontCache,builtInCMapCache:o.builtInCMapCache,globalImageCache:o.globalImageCache,nonBlendModesSet:o.nonBlendModesSet,xfaFactory:null})}))}},{key:"checkFirstPage",value:function checkFirstPage(){var t=this;return this.getPage(0).catch(function(){var r=_asyncToGenerator(l.default.mark((function _callee(r){return l.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:if(!(r instanceof d.XRefEntryException)){o.next=5;break}t._pagePromises.length=0;o.next=4;return t.cleanup();case 4:throw new d.XRefParseException;case 5:case"end":return o.stop()}}),_callee)})));return function(t){return r.apply(this,arguments)}}())}},{key:"fontFallback",value:function fontFallback(t,r){return this.catalog.fontFallback(t,r)}},{key:"cleanup",value:(t=_asyncToGenerator(l.default.mark((function _callee2(){var t,r=arguments;return l.default.wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:t=r.length>0&&void 0!==r[0]&&r[0];return o.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,h.clearPrimitiveCaches)());case 2:case"end":return o.stop()}}),_callee2,this)}))),function cleanup(){return t.apply(this,arguments)})},{key:"_collectFieldObjects",value:function _collectFieldObjects(t,r,o){var l=this.xref.fetchIfRef(r);if(l.has("T")){var u=(0,c.stringToPDFString)(l.get("T"));t=""===t?u:"".concat(t,".").concat(u)}o.has(t)||o.set(t,[]);o.get(t).push(g.AnnotationFactory.create(this.xref,r,this.pdfManager,this._localIdFactory,!0).then((function(t){return t&&t.getFieldObject()})).catch((function(t){(0,c.warn)('_collectFieldObjects: "'.concat(t,'".'));return null})));if(l.has("Kids")){var h,d=_createForOfIteratorHelper(l.get("Kids"));try{for(d.s();!(h=d.n()).done;){var m=h.value;this._collectFieldObjects(t,m,o)}}catch(t){d.e(t)}finally{d.f()}}}},{key:"fieldObjects",get:function get(){if(!this.formInfo.hasFields)return(0,c.shadow)(this,"fieldObjects",Promise.resolve(null));var t,r=Object.create(null),o=new Map,l=_createForOfIteratorHelper(this.catalog.acroForm.get("Fields"));try{for(l.s();!(t=l.n()).done;){var u=t.value;this._collectFieldObjects("",u,o)}}catch(t){l.e(t)}finally{l.f()}var h,d=[],m=_createForOfIteratorHelper(o);try{var g=function _loop(){var t=_slicedToArray(h.value,2),o=t[0],l=t[1];d.push(Promise.all(l).then((function(t){(t=t.filter((function(t){return!!t}))).length>0&&(r[o]=t)})))};for(m.s();!(h=m.n()).done;)g()}catch(t){m.e(t)}finally{m.f()}return(0,c.shadow)(this,"fieldObjects",Promise.all(d).then((function(){return r})))}},{key:"hasJSActions",get:function get(){var t=this;return(0,c.shadow)(this,"hasJSActions",this.fieldObjects.then((function(r){return null!==r&&Object.values(r).some((function(t){return t.some((function(t){return null!==t.actions}))}))||!!t.catalog.jsActions})))}},{key:"calculationOrderIds",get:function get(){var t=this.catalog.acroForm;if(!t||!t.has("CO"))return(0,c.shadow)(this,"calculationOrderIds",null);var r=t.get("CO");if(!Array.isArray(r)||0===r.length)return(0,c.shadow)(this,"calculationOrderIds",null);var o=r.filter(h.isRef).map((function(t){return t.toString()}));return 0===o.length?(0,c.shadow)(this,"calculationOrderIds",null):(0,c.shadow)(this,"calculationOrderIds",o)}}]);var t;return PDFDocument}();r.PDFDocument=E},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XRef=r.ObjectLoader=r.FileSpec=r.Catalog=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(128),d=o(131),m=o(142),g=o(143),y=o(144),v=o(145);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(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)}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function fetchDestination(t){return(0,u.isDict)(t)?t.get("D"):t}var S=function(){function Catalog(t,r){_classCallCheck(this,Catalog);this.pdfManager=t;this.xref=r;this._catDict=r.getCatalogObj();if(!(0,u.isDict)(this._catDict))throw new c.FormatError("Catalog object is not a dictionary.");this.fontCache=new u.RefSetCache;this.builtInCMapCache=new Map;this.globalImageCache=new y.GlobalImageCache;this.pageKidsCountCache=new u.RefSetCache;this.nonBlendModesSet=new u.RefSet}_createClass(Catalog,[{key:"version",get:function get(){var t=this._catDict.get("Version");return(0,u.isName)(t)?(0,c.shadow)(this,"version",t.name):(0,c.shadow)(this,"version",null)}},{key:"collection",get:function get(){var t=null;try{var r=this._catDict.get("Collection");(0,u.isDict)(r)&&r.size>0&&(t=r)}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,c.shadow)(this,"collection",t)}},{key:"acroForm",get:function get(){var t=null;try{var r=this._catDict.get("AcroForm");(0,u.isDict)(r)&&r.size>0&&(t=r)}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,c.shadow)(this,"acroForm",t)}},{key:"metadata",get:function get(){var t=this._catDict.getRaw("Metadata");if(!(0,u.isRef)(t))return(0,c.shadow)(this,"metadata",null);var r=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),o=this.xref.fetch(t,r),l=null;if((0,u.isStream)(o)&&(0,u.isDict)(o.dict)){var d=o.dict.get("Type"),m=o.dict.get("Subtype");if((0,u.isName)(d,"Metadata")&&(0,u.isName)(m,"XML"))try{var g=(0,c.stringToUTF8String)((0,c.bytesToString)(o.getBytes()));g&&(l=new v.MetadataParser(g).serializable)}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("Skipping invalid metadata.")}}return(0,c.shadow)(this,"metadata",l)}},{key:"markInfo",get:function get(){var t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("Unable to read mark info.")}return(0,c.shadow)(this,"markInfo",t)}},{key:"_readMarkInfo",value:function _readMarkInfo(){var t=this._catDict.get("MarkInfo");if(!(0,u.isDict)(t))return null;var r=Object.assign(Object.create(null),{Marked:!1,UserProperties:!1,Suspects:!1});for(var o in r)if(t.has(o)){var l=t.get(o);(0,c.isBool)(l)&&(r[o]=l)}return r}},{key:"toplevelPagesDict",get:function get(){var t=this._catDict.get("Pages");if(!(0,u.isDict)(t))throw new c.FormatError("Invalid top-level pages dictionary.");return(0,c.shadow)(this,"toplevelPagesDict",t)}},{key:"documentOutline",get:function get(){var t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("Unable to read document outline.")}return(0,c.shadow)(this,"documentOutline",t)}},{key:"_readDocumentOutline",value:function _readDocumentOutline(){var t=this._catDict.get("Outlines");if(!(0,u.isDict)(t))return null;t=t.getRaw("First");if(!(0,u.isRef)(t))return null;var r={items:[]},o=[{obj:t,parent:r}],l=new u.RefSet;l.put(t);for(var h=this.xref,d=new Uint8ClampedArray(3);o.length>0;){var m=o.shift(),y=h.fetchIfRef(m.obj);if(null!==y){if(!y.has("Title"))throw new c.FormatError("Invalid outline item encountered.");var v={url:null,dest:null};Catalog.parseDestDictionary({destDict:y,resultObj:v,docBaseUrl:this.pdfManager.docBaseUrl});var S=y.get("Title"),k=y.get("F")||0,C=y.getArray("C"),w=y.get("Count"),_=d;!Array.isArray(C)||3!==C.length||0===C[0]&&0===C[1]&&0===C[2]||(_=g.ColorSpace.singletons.rgb.getRgb(C,0));var O={dest:v.dest,url:v.url,unsafeUrl:v.unsafeUrl,newWindow:v.newWindow,title:(0,c.stringToPDFString)(S),color:_,count:Number.isInteger(w)?w:void 0,bold:!!(2&k),italic:!!(1&k),items:[]};m.parent.items.push(O);t=y.getRaw("First");if((0,u.isRef)(t)&&!l.has(t)){o.push({obj:t,parent:O});l.put(t)}t=y.getRaw("Next");if((0,u.isRef)(t)&&!l.has(t)){o.push({obj:t,parent:m.parent});l.put(t)}}}return r.items.length>0?r.items:null}},{key:"permissions",get:function get(){var t=null;try{t=this._readPermissions()}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("Unable to read permissions.")}return(0,c.shadow)(this,"permissions",t)}},{key:"_readPermissions",value:function _readPermissions(){var t=this.xref.trailer.get("Encrypt");if(!(0,u.isDict)(t))return null;var r=t.get("P");if(!(0,c.isNum)(r))return null;r+=Math.pow(2,32);var o=[];for(var l in c.PermissionFlag){var h=c.PermissionFlag[l];r&h&&o.push(h)}return o}},{key:"optionalContentConfig",get:function get(){var t=null;try{var r=this._catDict.get("OCProperties");if(!r)return(0,c.shadow)(this,"optionalContentConfig",null);var o=r.get("D");if(!o)return(0,c.shadow)(this,"optionalContentConfig",null);var l=r.get("OCGs");if(!Array.isArray(l))return(0,c.shadow)(this,"optionalContentConfig",null);var d,m=[],g=[],y=_createForOfIteratorHelper(l);try{for(y.s();!(d=y.n()).done;){var v=d.value;if((0,u.isRef)(v)){g.push(v);var S=this.xref.fetchIfRef(v);m.push({id:v.toString(),name:(0,c.isString)(S.get("Name"))?(0,c.stringToPDFString)(S.get("Name")):null,intent:(0,c.isString)(S.get("Intent"))?(0,c.stringToPDFString)(S.get("Intent")):null})}}}catch(t){y.e(t)}finally{y.f()}(t=this._readOptionalContentConfig(o,g)).groups=m}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("Unable to read optional content config: ".concat(t))}return(0,c.shadow)(this,"optionalContentConfig",t)}},{key:"_readOptionalContentConfig",value:function _readOptionalContentConfig(t,r){function parseOnOff(t){var o=[];if(Array.isArray(t)){var l,c=_createForOfIteratorHelper(t);try{for(c.s();!(l=c.n()).done;){var h=l.value;(0,u.isRef)(h)&&(r.includes(h)&&o.push(h.toString()))}}catch(t){c.e(t)}finally{c.f()}}return o}function parseOrder(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Array.isArray(t))return null;var c,h=[],d=_createForOfIteratorHelper(t);try{for(d.s();!(c=d.n()).done;){var m=c.value;if((0,u.isRef)(m)&&r.includes(m)){l.put(m);h.push(m.toString())}else{var g=parseNestedOrder(m,o);g&&h.push(g)}}}catch(t){d.e(t)}finally{d.f()}if(o>0)return h;var y,v=[],S=_createForOfIteratorHelper(r);try{for(S.s();!(y=S.n()).done;){var k=y.value;l.has(k)||v.push(k.toString())}}catch(t){S.e(t)}finally{S.f()}v.length&&h.push({name:null,order:v});return h}function parseNestedOrder(t,r){if(++r>h){(0,c.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}var l=o.fetchIfRef(t);if(!Array.isArray(l))return null;var u=o.fetchIfRef(l[0]);if("string"!=typeof u)return null;var d=parseOrder(l.slice(1),r);return d&&d.length?{name:(0,c.stringToPDFString)(u),order:d}:null}var o=this.xref,l=new u.RefSet,h=10;return{name:(0,c.isString)(t.get("Name"))?(0,c.stringToPDFString)(t.get("Name")):null,creator:(0,c.isString)(t.get("Creator"))?(0,c.stringToPDFString)(t.get("Creator")):null,baseState:(0,u.isName)(t.get("BaseState"))?t.get("BaseState").name:null,on:parseOnOff(t.get("ON")),off:parseOnOff(t.get("OFF")),order:parseOrder(t.get("Order")),groups:null}}},{key:"numPages",get:function get(){var t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t))throw new c.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,c.shadow)(this,"numPages",t)}},{key:"destinations",get:function get(){var t=this._readDests(),r=Object.create(null);if(t instanceof w){var o=t.getAll();for(var l in o)r[l]=fetchDestination(o[l])}else t instanceof u.Dict&&t.forEach((function(t,o){o&&(r[t]=fetchDestination(o))}));return(0,c.shadow)(this,"destinations",r)}},{key:"getDestination",value:function getDestination(t){var r=this._readDests();return r instanceof w||r instanceof u.Dict?fetchDestination(r.get(t)||null):null}},{key:"_readDests",value:function _readDests(){var t=this._catDict.get("Names");return t&&t.has("Dests")?new w(t.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}},{key:"pageLabels",get:function get(){var t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("Unable to read page labels.")}return(0,c.shadow)(this,"pageLabels",t)}},{key:"_readPageLabels",value:function _readPageLabels(){var t=this._catDict.getRaw("PageLabels");if(!t)return null;for(var r=new Array(this.numPages),o=null,l="",d=new _(t,this.xref).getAll(),m="",g=1,y=0,v=this.numPages;y<v;y++){if(y in d){var S=d[y];if(!(0,u.isDict)(S))throw new c.FormatError("PageLabel is not a dictionary.");if(S.has("Type")&&!(0,u.isName)(S.get("Type"),"PageLabel"))throw new c.FormatError("Invalid type in PageLabel dictionary.");if(S.has("S")){var k=S.get("S");if(!(0,u.isName)(k))throw new c.FormatError("Invalid style in PageLabel dictionary.");o=k.name}else o=null;if(S.has("P")){var C=S.get("P");if(!(0,c.isString)(C))throw new c.FormatError("Invalid prefix in PageLabel dictionary.");l=(0,c.stringToPDFString)(C)}else l="";if(S.has("St")){var w=S.get("St");if(!(Number.isInteger(w)&&w>=1))throw new c.FormatError("Invalid start in PageLabel dictionary.");g=w}else g=1}switch(o){case"D":m=g;break;case"R":case"r":m=(0,h.toRomanNumerals)(g,"r"===o);break;case"A":case"a":for(var O="a"===o?97:65,x=g-1,T=String.fromCharCode(O+x%26),R=[],E=0,D=x/26|0;E<=D;E++)R.push(T);m=R.join("");break;default:if(o)throw new c.FormatError('Invalid style "'.concat(o,'" in PageLabel dictionary.'));m=""}r[y]=l+m;g++}return r}},{key:"pageLayout",get:function get(){var t=this._catDict.get("PageLayout"),r="";if((0,u.isName)(t))switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":r=t.name}return(0,c.shadow)(this,"pageLayout",r)}},{key:"pageMode",get:function get(){var t=this._catDict.get("PageMode"),r="UseNone";if((0,u.isName)(t))switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":r=t.name}return(0,c.shadow)(this,"pageMode",r)}},{key:"viewerPreferences",get:function get(){var t=this,r={HideToolbar:c.isBool,HideMenubar:c.isBool,HideWindowUI:c.isBool,FitWindow:c.isBool,CenterWindow:c.isBool,DisplayDocTitle:c.isBool,NonFullScreenPageMode:u.isName,Direction:u.isName,ViewArea:u.isName,ViewClip:u.isName,PrintArea:u.isName,PrintClip:u.isName,PrintScaling:u.isName,Duplex:u.isName,PickTrayByPDFSize:c.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},o=this._catDict.get("ViewerPreferences"),l=null;if((0,u.isDict)(o))for(var h in r)if(o.has(h)){var d=o.get(h);if(r[h](d)){var m=void 0;switch(h){case"NonFullScreenPageMode":switch(d.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":m=d.name;break;default:m="UseNone"}break;case"Direction":switch(d.name){case"L2R":case"R2L":m=d.name;break;default:m="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(d.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":m=d.name;break;default:m="CropBox"}break;case"PrintScaling":switch(d.name){case"None":case"AppDefault":m=d.name;break;default:m="AppDefault"}break;case"Duplex":switch(d.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":m=d.name;break;default:m="None"}break;case"PrintPageRange":if(d.length%2!=0)break;d.every((function(r,o,l){return Number.isInteger(r)&&r>0&&(0===o||r>=l[o-1])&&r<=t.numPages}))&&(m=d);break;case"NumCopies":d>0&&(m=d);break;default:if("boolean"!=typeof d)throw new c.FormatError("viewerPreferences - expected a boolean value for: ".concat(h));m=d}if(void 0!==m){l||(l=Object.create(null));l[h]=m}else(0,c.info)('Bad value in ViewerPreferences for "'.concat(h,'".'))}else(0,c.info)('Bad value in ViewerPreferences for "'.concat(h,'".'))}return(0,c.shadow)(this,"viewerPreferences",l)}},{key:"openAction",get:function get(){var t=this._catDict.get("OpenAction"),r=Object.create(null);if((0,u.isDict)(t)){var o=new u.Dict(this.xref);o.set("A",t);var l={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:o,resultObj:l});Array.isArray(l.dest)?r.dest=l.dest:l.action&&(r.action=l.action)}else Array.isArray(t)&&(r.dest=t);return(0,c.shadow)(this,"openAction",(0,c.objectSize)(r)>0?r:null)}},{key:"attachments",get:function get(){var t=this._catDict.get("Names"),r=null;if(t&&t.has("EmbeddedFiles")){var o=new w(t.getRaw("EmbeddedFiles"),this.xref).getAll();for(var l in o){var u=new O(o[l],this.xref);r||(r=Object.create(null));r[(0,c.stringToPDFString)(l)]=u.serializable}}return(0,c.shadow)(this,"attachments",r)}},{key:"_collectJavaScript",value:function _collectJavaScript(){var t=this._catDict.get("Names"),r=null;function appendIfJavaScriptDict(t,o){var l=o.get("S");if((0,u.isName)(l,"JavaScript")){var h=o.get("JS");if((0,u.isStream)(h))h=(0,c.bytesToString)(h.getBytes());else if(!(0,c.isString)(h))return;null===r&&(r=Object.create(null));r[t]=(0,c.stringToPDFString)(h)}}if(t&&t.has("JavaScript")){var o=new w(t.getRaw("JavaScript"),this.xref).getAll();for(var l in o){var h=o[l];(0,u.isDict)(h)&&appendIfJavaScriptDict(l,h)}}var d=this._catDict.get("OpenAction");(0,u.isDict)(d)&&(0,u.isName)(d.get("S"),"JavaScript")&&appendIfJavaScriptDict("OpenAction",d);return r}},{key:"javaScript",get:function get(){var t=this._collectJavaScript();return(0,c.shadow)(this,"javaScript",t?Object.values(t):null)}},{key:"jsActions",get:function get(){var t=this._collectJavaScript(),r=(0,h.collectActions)(this.xref,this._catDict,c.DocumentActionEventType);!r&&t&&(r=Object.create(null));if(r&&t)for(var o=0,l=Object.entries(t);o<l.length;o++){var u=_slicedToArray(l[o],2),d=u[0],m=u[1];d in r?r[d].push(m):r[d]=[m]}return(0,c.shadow)(this,"jsActions",r)}},{key:"fontFallback",value:function fontFallback(t,r){var o=[];this.fontCache.forEach((function(t){o.push(t)}));return Promise.all(o).then((function(o){var l,c=_createForOfIteratorHelper(o);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.loadedName===t){u.fallback(r);return}}}catch(t){c.e(t)}finally{c.f()}}))}},{key:"cleanup",value:function cleanup(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,u.clearPrimitiveCaches)();this.globalImageCache.clear(r);this.pageKidsCountCache.clear();this.nonBlendModesSet.clear();var o=[];this.fontCache.forEach((function(t){o.push(t)}));return Promise.all(o).then((function(r){var o,l=_createForOfIteratorHelper(r);try{for(l.s();!(o=l.n()).done;){delete o.value.dict.cacheKey}}catch(t){l.e(t)}finally{l.f()}t.fontCache.clear();t.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function getPageDict(t){var r,o=(0,c.createPromiseCapability)(),l=[this._catDict.getRaw("Pages")],h=new u.RefSet,d=this.xref,m=this.pageKidsCountCache,g=0;!function next(){for(var y=function _loop(){var y=l.pop();if((0,u.isRef)(y)){if((r=m.get(y))>0&&g+r<t){g+=r;return"continue"}if(h.has(y)){o.reject(new c.FormatError("Pages tree contains circular reference."));return{v:void 0}}h.put(y);d.fetchAsync(y).then((function(r){if((0,u.isDict)(r,"Page")||(0,u.isDict)(r)&&!r.has("Kids"))if(t===g){y&&!m.has(y)&&m.put(y,1);o.resolve([r,y])}else{g++;next()}else{l.push(r);next()}}),o.reject);return{v:void 0}}if(!(0,u.isDict)(y)){o.reject(new c.FormatError("Page dictionary kid reference points to wrong type of object."));return{v:void 0}}r=y.get("Count");if(Number.isInteger(r)&&r>=0){var v=y.objId;v&&!m.has(v)&&m.put(v,r);if(g+r<=t){g+=r;return"continue"}}var S=y.get("Kids");if(!Array.isArray(S)){if((0,u.isName)(y.get("Type"),"Page")||!y.has("Type")&&y.has("Contents")){if(g===t){o.resolve([y,null]);return{v:void 0}}g++;return"continue"}o.reject(new c.FormatError("Page dictionary kids object is not an array."));return{v:void 0}}for(var k=S.length-1;k>=0;k--)l.push(S[k])};l.length;){var v=y();if("continue"!==v&&"object"===_typeof(v))return v.v}o.reject(new Error("Page index ".concat(t," not found.")))}();return o.promise}},{key:"getPageIndex",value:function getPageIndex(t){var r=this.xref;var o=0;return function next(l){return function pagesBeforeRef(o){var l,h=0;return r.fetchAsync(o).then((function(r){if((0,u.isRefsEqual)(o,t)&&!(0,u.isDict)(r,"Page")&&(!(0,u.isDict)(r)||r.has("Type")||!r.has("Contents")))throw new c.FormatError("The reference does not point to a /Page dictionary.");if(!r)return null;if(!(0,u.isDict)(r))throw new c.FormatError("Node must be a dictionary.");l=r.getRaw("Parent");return r.getAsync("Parent")})).then((function(t){if(!t)return null;if(!(0,u.isDict)(t))throw new c.FormatError("Parent must be a dictionary.");return t.getAsync("Kids")})).then((function(t){if(!t)return null;for(var d=[],m=!1,g=0,y=t.length;g<y;g++){var v=t[g];if(!(0,u.isRef)(v))throw new c.FormatError("Kid must be a reference.");if((0,u.isRefsEqual)(v,o)){m=!0;break}d.push(r.fetchAsync(v).then((function(t){if(!(0,u.isDict)(t))throw new c.FormatError("Kid node must be a dictionary.");t.has("Count")?h+=t.get("Count"):h++})))}if(!m)throw new c.FormatError("Kid reference not found in parent's kids.");return Promise.all(d).then((function(){return[h,l]}))}))}(l).then((function(t){if(!t)return o;var r=_slicedToArray(t,2),l=r[0],c=r[1];o+=l;return next(c)}))}(t)}}],[{key:"parseDestDictionary",value:function parseDestDictionary(t){var r=t.destDict;if((0,u.isDict)(r)){var o=t.resultObj;if("object"===_typeof(o)){var l,h,d=t.docBaseUrl||null,m=r.get("A");if(!(0,u.isDict)(m))if(r.has("Dest"))m=r.get("Dest");else{m=r.get("AA");(0,u.isDict)(m)&&(m.has("D")?m=m.get("D"):m.has("U")&&(m=m.get("U")))}if((0,u.isDict)(m)){var g=m.get("S");if(!(0,u.isName)(g)){(0,c.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}var y=g.name;switch(y){case"URI":l=m.get("URI");(0,u.isName)(l)?l="/"+l.name:(0,c.isString)(l)&&(l=function addDefaultProtocolToUrl(t){return t.startsWith("www.")?"http://".concat(t):t}(l));break;case"GoTo":h=m.get("D");break;case"Launch":case"GoToR":var v=m.get("F");(0,u.isDict)(v)?l=v.get("F")||null:(0,c.isString)(v)&&(l=v);var S=m.get("D");if(S){(0,u.isName)(S)&&(S=S.name);if((0,c.isString)(l)){var k=l.split("#")[0];(0,c.isString)(S)?l=k+"#"+S:Array.isArray(S)&&(l=k+"#"+JSON.stringify(S))}}var C=m.get("NewWindow");(0,c.isBool)(C)&&(o.newWindow=C);break;case"Named":var w=m.get("N");(0,u.isName)(w)&&(o.action=w.name);break;case"JavaScript":var _,O=m.get("JS");(0,u.isStream)(O)?_=(0,c.bytesToString)(O.getBytes()):(0,c.isString)(O)&&(_=O);if(_){var x=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,c.stringToPDFString)(_));if(x&&x[2]){l=x[2];"true"===x[3]&&"app.launchURL"===x[1]&&(o.newWindow=!0);break}}default:if("JavaScript"===y||"ResetForm"===y||"SubmitForm"===y)break;(0,c.warn)('parseDestDictionary - unsupported action: "'.concat(y,'".'))}}else r.has("Dest")&&(h=r.get("Dest"));if((0,c.isString)(l)){l=function tryConvertUrlEncoding(t){try{return(0,c.stringToUTF8String)(t)}catch(r){return t}}(l);var T=(0,c.createValidAbsoluteUrl)(l,d);T&&(o.url=T.href);o.unsafeUrl=l}if(h){(0,u.isName)(h)&&(h=h.name);((0,c.isString)(h)||Array.isArray(h))&&(o.dest=h)}}else(0,c.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,c.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]);return Catalog}();r.Catalog=S;var k=function XRefClosure(){function XRef(t,r){this.stream=t;this.pdfManager=r;this.entries=[];this.xrefstms=Object.create(null);this._cacheMap=new Map;this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)};this._newRefNum=null}XRef.prototype={getNewRef:function XRef_getNewRef(){null===this._newRefNum&&(this._newRefNum=this.entries.length);return u.Ref.get(this._newRefNum++,0)},resetNewRef:function XRef_resetNewRef(){this._newRefNum=null},setStartXRef:function XRef_setStartXRef(t){this.startXRefQueue=[t]},parse:function XRef_parse(t){var r,o,l;if(t){(0,c.warn)("Indexing all PDF objects");r=this.indexObjects()}else r=this.readXRef();r.assignXref(this);this.trailer=r;try{o=r.get("Encrypt")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(t,'".'))}if((0,u.isDict)(o)){var d=r.get("ID"),g=d&&d.length?d[0]:"";o.suppressEncryption=!0;this.encrypt=new m.CipherTransformFactory(o,g,this.pdfManager.password)}try{l=r.get("Root")}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('XRef.parse - Invalid "Root" reference: "'.concat(t,'".'))}if(!(0,u.isDict)(l)||!l.has("Pages")){if(!t)throw new h.XRefParseException;throw new c.FormatError("Invalid root reference")}this.root=l},processXRefTable:function XRef_processXRefTable(t){"tableState"in this||(this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2});var r=this.readXRefTable(t);if(!(0,u.isCmd)(r,"trailer"))throw new c.FormatError("Invalid XRef table: could not find trailer dictionary");var o=t.getObj();!(0,u.isDict)(o)&&o.dict&&(o=o.dict);if(!(0,u.isDict)(o))throw new c.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this.tableState;return o},readXRefTable:function XRef_readXRefTable(t){var r,o=t.lexer.stream,l=this.tableState;o.pos=l.streamPos;t.buf1=l.parserBuf1;t.buf2=l.parserBuf2;for(;;){if(!("firstEntryNum"in l)||!("entryCount"in l)){if((0,u.isCmd)(r=t.getObj(),"trailer"))break;l.firstEntryNum=r;l.entryCount=t.getObj()}var h=l.firstEntryNum,d=l.entryCount;if(!Number.isInteger(h)||!Number.isInteger(d))throw new c.FormatError("Invalid XRef table: wrong types in subsection header");for(var m=l.entryNum;m<d;m++){l.streamPos=o.pos;l.entryNum=m;l.parserBuf1=t.buf1;l.parserBuf2=t.buf2;var g={};g.offset=t.getObj();g.gen=t.getObj();var y=t.getObj();if(y instanceof u.Cmd)switch(y.cmd){case"f":g.free=!0;break;case"n":g.uncompressed=!0}if(!Number.isInteger(g.offset)||!Number.isInteger(g.gen)||!g.free&&!g.uncompressed)throw new c.FormatError("Invalid entry in XRef subsection: ".concat(h,", ").concat(d));0===m&&g.free&&1===h&&(h=0);this.entries[m+h]||(this.entries[m+h]=g)}l.entryNum=0;l.streamPos=o.pos;l.parserBuf1=t.buf1;l.parserBuf2=t.buf2;delete l.firstEntryNum;delete l.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new c.FormatError("Invalid XRef table: unexpected first object");return r},processXRefStream:function XRef_processXRefStream(t){if(!("streamState"in this)){var r=t.dict,o=r.get("W"),l=r.get("Index");l||(l=[0,r.get("Size")]);this.streamState={entryRanges:l,byteWidths:o,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict},readXRefStream:function XRef_readXRefStream(t){var r,o,l=this.streamState;t.pos=l.streamPos;for(var u=l.byteWidths,h=u[0],d=u[1],m=u[2],g=l.entryRanges;g.length>0;){var y=g[0],v=g[1];if(!Number.isInteger(y)||!Number.isInteger(v))throw new c.FormatError("Invalid XRef range fields: ".concat(y,", ").concat(v));if(!Number.isInteger(h)||!Number.isInteger(d)||!Number.isInteger(m))throw new c.FormatError("Invalid XRef entry fields length: ".concat(y,", ").concat(v));for(r=l.entryNum;r<v;++r){l.entryNum=r;l.streamPos=t.pos;var S=0,k=0,C=0;for(o=0;o<h;++o)S=S<<8|t.getByte();0===h&&(S=1);for(o=0;o<d;++o)k=k<<8|t.getByte();for(o=0;o<m;++o)C=C<<8|t.getByte();var w={};w.offset=k;w.gen=C;switch(S){case 0:w.free=!0;break;case 1:w.uncompressed=!0;break;case 2:break;default:throw new c.FormatError("Invalid XRef entry type: ".concat(S))}this.entries[y+r]||(this.entries[y+r]=w)}l.entryNum=0;l.streamPos=t.pos;g.splice(0,2)}},indexObjects:function XRef_indexObjects(){function readToken(t,r){for(var o="",l=t[r];10!==l&&13!==l&&60!==l&&!(++r>=t.length);){o+=String.fromCharCode(l);l=t[r]}return o}function skipUntil(t,r,o){for(var l=o.length,c=t.length,u=0;r<c;){for(var h=0;h<l&&t[r+h]===o[h];)++h;if(h>=l)break;r++;u++}return u}var t=/^(\d+)\s+(\d+)\s+obj\b/,r=/\bendobj[\b\s]$/,o=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,l=new Uint8Array([116,114,97,105,108,101,114]),h=new Uint8Array([115,116,97,114,116,120,114,101,102]),m=new Uint8Array([111,98,106]),g=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var y=this.stream;y.pos=0;for(var v,S=y.getBytes(),k=y.start,C=S.length,w=[],_=[];k<C;){var O=S[k];if(9!==O&&10!==O&&13!==O&&32!==O)if(37!==O){var x,T=readToken(S,k);if(T.startsWith("xref")&&(4===T.length||/\s/.test(T[4]))){k+=skipUntil(S,k,l);w.push(k);k+=skipUntil(S,k,h)}else if(x=t.exec(T)){var R=0|x[1],E=0|x[2];this.entries[R]&&this.entries[R].gen!==E||(this.entries[R]={offset:k-y.start,gen:E,uncompressed:!0});for(var D=void 0,j=k+T.length;j<S.length;){var M=j+skipUntil(S,j,m)+4;D=M-k;var N=Math.max(M-25,j),L=(0,c.bytesToString)(S.subarray(N,M));if(r.test(L))break;var U=o.exec(L);if(U&&U[1]){(0,c.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.');D-=U[1].length;break}j=M}var q=S.subarray(k,k+D),X=skipUntil(q,0,g);if(X<D&&q[X+5]<64){_.push(k-y.start);this.xrefstms[k-y.start]=1}k+=D}else if(T.startsWith("trailer")&&(7===T.length||/\s/.test(T[7]))){w.push(k);k+=skipUntil(S,k,h)}else k+=T.length+1}else do{if(++k>=C)break;O=S[k]}while(10!==O&&13!==O);else++k}for(var W=0,H=_.length;W<H;++W){this.startXRefQueue.push(_[W]);this.readXRef(!0)}for(var z=0,G=w.length;z<G;++z){y.pos=w[z];var V=new d.Parser({lexer:new d.Lexer(y),xref:this,allowStreams:!0,recoveryMode:!0}),$=V.getObj();if((0,u.isCmd)($,"trailer")){var K=V.getObj();if((0,u.isDict)(K)){try{var Y=K.get("Root");if(!(Y instanceof u.Dict))continue;var J=Y.get("Pages");if(!(J instanceof u.Dict))continue;var Q=J.get("Count");if(!Number.isInteger(Q))continue}catch(t){continue}if(K.has("ID"))return K;v=K}}}if(v)return v;throw new c.InvalidPDFException("Invalid PDF structure.")},readXRef:function XRef_readXRef(t){var r=this.stream,o=Object.create(null);try{for(;this.startXRefQueue.length;){var l=this.startXRefQueue[0];if(o[l]){(0,c.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift()}else{o[l]=!0;r.pos=l+r.start;var m,g=new d.Parser({lexer:new d.Lexer(r),xref:this,allowStreams:!0}),y=g.getObj();if((0,u.isCmd)(y,"xref")){m=this.processXRefTable(g);this.topDict||(this.topDict=m);y=m.get("XRefStm");if(Number.isInteger(y)){var v=y;if(!(v in this.xrefstms)){this.xrefstms[v]=1;this.startXRefQueue.push(v)}}}else{if(!Number.isInteger(y))throw new c.FormatError("Invalid XRef stream header");if(!Number.isInteger(g.getObj())||!(0,u.isCmd)(g.getObj(),"obj")||!(0,u.isStream)(y=g.getObj()))throw new c.FormatError("Invalid XRef stream");m=this.processXRefStream(y);this.topDict||(this.topDict=m);if(!m)throw new c.FormatError("Failed to read XRef stream")}y=m.get("Prev");Number.isInteger(y)?this.startXRefQueue.push(y):(0,u.isRef)(y)&&this.startXRefQueue.push(y.num);this.startXRefQueue.shift()}}return this.topDict}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.info)("(while reading XRef): "+t)}if(!t)throw new h.XRefParseException},getEntry:function XRef_getEntry(t){var r=this.entries[t];return r&&!r.free&&r.offset?r:null},fetchIfRef:function XRef_fetchIfRef(t,r){return t instanceof u.Ref?this.fetch(t,r):t},fetch:function XRef_fetch(t,r){if(!(t instanceof u.Ref))throw new Error("ref object is not a reference");var o=t.num,l=this._cacheMap.get(o);if(void 0!==l){l instanceof u.Dict&&!l.objId&&(l.objId=t.toString());return l}var c=this.getEntry(o);if(null===c){this._cacheMap.set(o,c);return c}c=c.uncompressed?this.fetchUncompressed(t,c,r):this.fetchCompressed(t,c,r);(0,u.isDict)(c)?c.objId=t.toString():(0,u.isStream)(c)&&(c.dict.objId=t.toString());return c},fetchUncompressed:function fetchUncompressed(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=t.gen,c=t.num;if(r.gen!==l)throw new h.XRefEntryException("Inconsistent generation in XRef: ".concat(t));var m=this.stream.makeSubStream(r.offset+this.stream.start),g=new d.Parser({lexer:new d.Lexer(m),xref:this,allowStreams:!0}),y=g.getObj(),v=g.getObj(),S=g.getObj();if(y!==c||v!==l||!(S instanceof u.Cmd))throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t));if("obj"!==S.cmd){if(S.cmd.startsWith("obj")){c=parseInt(S.cmd.substring(3),10);if(!Number.isNaN(c))return c}throw new h.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(t))}r=this.encrypt&&!o?g.getObj(this.encrypt.createCipherTransform(c,l)):g.getObj();(0,u.isStream)(r)||this._cacheMap.set(c,r);return r},fetchCompressed:function fetchCompressed(t,r){var o=r.offset,l=this.fetch(u.Ref.get(o,0));if(!(0,u.isStream)(l))throw new c.FormatError("bad ObjStm stream");var m=l.dict.get("First"),g=l.dict.get("N");if(!Number.isInteger(m)||!Number.isInteger(g))throw new c.FormatError("invalid first and n parameters for ObjStm stream");for(var y=new d.Parser({lexer:new d.Lexer(l),xref:this,allowStreams:!0}),v=new Array(g),S=new Array(g),k=0;k<g;++k){var C=y.getObj();if(!Number.isInteger(C))throw new c.FormatError("invalid object number in the ObjStm stream: ".concat(C));var w=y.getObj();if(!Number.isInteger(w))throw new c.FormatError("invalid object offset in the ObjStm stream: ".concat(w));v[k]=C;S[k]=w}for(var _=(l.start||0)+m,O=new Array(g),x=0;x<g;++x){var T=x<g-1?S[x+1]-S[x]:void 0;if(T<0)throw new c.FormatError("Invalid offset in the ObjStm stream.");var R=(y=new d.Parser({lexer:new d.Lexer(l.makeSubStream(_+S[x],T,l.dict)),xref:this,allowStreams:!0})).getObj();O[x]=R;if(!(0,u.isStream)(R)){var E=v[x],D=this.entries[E];D&&D.offset===o&&D.gen===x&&this._cacheMap.set(E,R)}}if(void 0===(r=O[r.gen]))throw new h.XRefEntryException("Bad (compressed) XRef entry: ".concat(t));return r},fetchIfRefAsync:function fetchIfRefAsync(t,r){var o=this;return _asyncToGenerator(l.default.mark((function _callee(){return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:if(!(t instanceof u.Ref)){l.next=2;break}return l.abrupt("return",o.fetchAsync(t,r));case 2:return l.abrupt("return",t);case 3:case"end":return l.stop()}}),_callee)})))()},fetchAsync:function fetchAsync(t,r){var o=this;return _asyncToGenerator(l.default.mark((function _callee2(){return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:l.prev=0;return l.abrupt("return",o.fetch(t,r));case 4:l.prev=4;l.t0=l.catch(0);if(l.t0 instanceof h.MissingDataException){l.next=8;break}throw l.t0;case 8:l.next=10;return o.pdfManager.requestRange(l.t0.begin,l.t0.end);case 10:return l.abrupt("return",o.fetchAsync(t,r));case 11:case"end":return l.stop()}}),_callee2,null,[[0,4]])})))()},getCatalogObj:function XRef_getCatalogObj(){return this.root}};return XRef}();r.XRef=k;var C=function(){function NameOrNumberTree(t,r,o){_classCallCheck(this,NameOrNumberTree);this.constructor===NameOrNumberTree&&(0,c.unreachable)("Cannot initialize NameOrNumberTree.");this.root=t;this.xref=r;this._type=o}_createClass(NameOrNumberTree,[{key:"getAll",value:function getAll(){var t=Object.create(null);if(!this.root)return t;var r=this.xref,o=new u.RefSet;o.put(this.root);for(var l=[this.root];l.length>0;){var h=r.fetchIfRef(l.shift());if((0,u.isDict)(h))if(h.has("Kids"))for(var d=h.get("Kids"),m=0,g=d.length;m<g;m++){var y=d[m];if(o.has(y))throw new c.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));l.push(y);o.put(y)}else{var v=h.get(this._type);if(Array.isArray(v))for(var S=0,k=v.length;S<k;S+=2)t[r.fetchIfRef(v[S])]=r.fetchIfRef(v[S+1])}}return t}},{key:"get",value:function get(t){if(!this.root)return null;for(var r=this.xref,o=r.fetchIfRef(this.root),l=0;o.has("Kids");){if(++l>10){(0,c.warn)('Search depth limit reached for "'.concat(this._type,'" tree.'));return null}var u=o.get("Kids");if(!Array.isArray(u))return null;for(var h=0,d=u.length-1;h<=d;){var m=h+d>>1,g=r.fetchIfRef(u[m]).get("Limits");if(t<r.fetchIfRef(g[0]))d=m-1;else{if(!(t>r.fetchIfRef(g[1]))){o=r.fetchIfRef(u[m]);break}h=m+1}}if(h>d)return null}var y=o.get(this._type);if(Array.isArray(y)){for(var v=0,S=y.length-2;v<=S;){var k=v+S>>1,C=k+(1&k),w=r.fetchIfRef(y[C]);if(t<w)S=C-2;else{if(!(t>w))return r.fetchIfRef(y[C+1]);v=C+2}}(0,c.info)('Falling back to an exhaustive search, for key "'.concat(t,'", ')+'in "'.concat(this._type,'" tree.'));for(var _=0,O=y.length;_<O;_+=2){if(r.fetchIfRef(y[_])===t){(0,c.warn)('The "'.concat(t,'" key was found at an incorrect, ')+'i.e. out-of-order, position in "'.concat(this._type,'" tree.'));return r.fetchIfRef(y[_+1])}}}return null}}]);return NameOrNumberTree}(),w=function(t){_inherits(NameTree,t);var r=_createSuper(NameTree);function NameTree(t,o){_classCallCheck(this,NameTree);return r.call(this,t,o,"Names")}return NameTree}(C),_=function(t){_inherits(NumberTree,t);var r=_createSuper(NumberTree);function NumberTree(t,o){_classCallCheck(this,NumberTree);return r.call(this,t,o,"Nums")}return NumberTree}(C),O=function FileSpecClosure(){function FileSpec(t,r){if(t&&(0,u.isDict)(t)){this.xref=r;this.root=t;t.has("FS")&&(this.fs=t.get("FS"));this.description=t.has("Desc")?(0,c.stringToPDFString)(t.get("Desc")):"";t.has("RF")&&(0,c.warn)("Related file specifications are not supported");this.contentAvailable=!0;if(!t.has("EF")){this.contentAvailable=!1;(0,c.warn)("Non-embedded file specifications are not supported")}}}function pickPlatformItem(t){return t.has("UF")?t.get("UF"):t.has("F")?t.get("F"):t.has("Unix")?t.get("Unix"):t.has("Mac")?t.get("Mac"):t.has("DOS")?t.get("DOS"):null}FileSpec.prototype={get filename(){if(!this._filename&&this.root){var t=pickPlatformItem(this.root)||"unnamed";this._filename=(0,c.stringToPDFString)(t).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=pickPlatformItem(this.root.get("EF")));var t=null;if(this.contentRef){var r=this.xref.fetchIfRef(this.contentRef);r&&(0,u.isStream)(r)?t=r.getBytes():(0,c.warn)("Embedded file specification points to non-existing/invalid content")}else(0,c.warn)("Embedded file specification does not have a content");return t},get serializable(){return{filename:this.filename,content:this.content}}};return FileSpec}();r.FileSpec=O;var x=function(){function addChildren(t,r){if(t instanceof u.Dict)t=t.getRawValues();else if((0,u.isStream)(t))t=t.dict.getRawValues();else if(!Array.isArray(t))return;var o,l,c=_createForOfIteratorHelper(t);try{for(c.s();!(o=c.n()).done;){var h=o.value;((l=h)instanceof u.Ref||l instanceof u.Dict||Array.isArray(l)||(0,u.isStream)(l))&&r.push(h)}}catch(t){c.e(t)}finally{c.f()}}function ObjectLoader(t,r,o){this.dict=t;this.keys=r;this.xref=o;this.refSet=null}ObjectLoader.prototype={load:function load(){var t=this;return _asyncToGenerator(l.default.mark((function _callee3(){var r,o,c,h,d,m;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:if(t.xref.stream.allChunksLoaded&&!t.xref.stream.allChunksLoaded()){l.next=2;break}return l.abrupt("return",void 0);case 2:r=t.keys,o=t.dict;t.refSet=new u.RefSet;c=[];for(h=0,d=r.length;h<d;h++)void 0!==(m=o.getRaw(r[h]))&&c.push(m);return l.abrupt("return",t._walk(c));case 7:case"end":return l.stop()}}),_callee3)})))()},_walk:function _walk(t){var r=this;return _asyncToGenerator(l.default.mark((function _callee4(){var o,d,m,g,y,v,S,k,C,w,_,O;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:o=[];d=[];case 2:if(!t.length){l.next=25;break}if(!((m=t.pop())instanceof u.Ref)){l.next=21;break}if(!r.refSet.has(m)){l.next=7;break}return l.abrupt("continue",2);case 7:l.prev=7;r.refSet.put(m);m=r.xref.fetch(m);l.next=21;break;case 12:l.prev=12;l.t0=l.catch(7);if(l.t0 instanceof h.MissingDataException){l.next=19;break}(0,c.warn)('ObjectLoader._walk - requesting all data: "'.concat(l.t0,'".'));r.refSet=null;g=r.xref.stream.manager;return l.abrupt("return",g.requestAllChunks());case 19:o.push(m);d.push({begin:l.t0.begin,end:l.t0.end});case 21:if(m&&m.getBaseStreams){y=m.getBaseStreams();v=!1;for(S=0,k=y.length;S<k;S++)if((C=y[S]).allChunksLoaded&&!C.allChunksLoaded()){v=!0;d.push({begin:C.start,end:C.end})}v&&o.push(m)}addChildren(m,t);l.next=2;break;case 25:if(!d.length){l.next=30;break}l.next=28;return r.xref.stream.manager.requestRanges(d);case 28:for(w=0,_=o.length;w<_;w++)(O=o[w])instanceof u.Ref&&r.refSet.remove(O);return l.abrupt("return",r._walk(o));case 30:r.refSet=null;return l.abrupt("return",void 0);case 32:case"end":return l.stop()}}),_callee4,null,[[7,12]])})))()}};return ObjectLoader}();r.ObjectLoader=x},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Parser=r.Linearization=r.Lexer=void 0;var l=o(132),c=o(4),u=o(125),h=o(128),d=o(133),m=o(135),g=o(138),y=o(140);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function computeAdler32(t){for(var r=t.length,o=1,l=0,c=0;c<r;++c)l+=o+=255&t[c];return l%65521<<16|o%65521}var v=function(){function Parser(t){var r=t.lexer,o=t.xref,l=t.allowStreams,c=void 0!==l&&l,u=t.recoveryMode,h=void 0!==u&&u;_classCallCheck(this,Parser);this.lexer=r;this.xref=o;this.allowStreams=c;this.recoveryMode=h;this.imageCache=Object.create(null);this.refill()}_createClass(Parser,[{key:"refill",value:function refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}},{key:"shift",value:function shift(){if(this.buf2 instanceof u.Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}},{key:"tryShift",value:function tryShift(){try{this.shift();return!0}catch(t){if(t instanceof h.MissingDataException)throw t;return!1}}},{key:"getObj",value:function getObj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=this.buf1;this.shift();if(r instanceof u.Cmd)switch(r.cmd){case"BI":return this.makeInlineImage(t);case"[":for(var o=[];!(0,u.isCmd)(this.buf1,"]")&&!(0,u.isEOF)(this.buf1);)o.push(this.getObj(t));if((0,u.isEOF)(this.buf1)){if(!this.recoveryMode)throw new c.FormatError("End of file inside array");return o}this.shift();return o;case"<<":for(var l=new u.Dict(this.xref);!(0,u.isCmd)(this.buf1,">>")&&!(0,u.isEOF)(this.buf1);)if((0,u.isName)(this.buf1)){var h=this.buf1.name;this.shift();if((0,u.isEOF)(this.buf1))break;l.set(h,this.getObj(t))}else{(0,c.info)("Malformed dictionary: key must be a name object");this.shift()}if((0,u.isEOF)(this.buf1)){if(!this.recoveryMode)throw new c.FormatError("End of file inside dictionary");return l}if((0,u.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(l,t):l;this.shift();return l;default:return r}if(Number.isInteger(r)){if(Number.isInteger(this.buf1)&&(0,u.isCmd)(this.buf2,"R")){var d=u.Ref.get(r,this.buf1);this.shift();this.shift();return d}return r}return"string"==typeof r&&t?t.decryptString(r):r}},{key:"findDefaultInlineStreamEnd",value:function findDefaultInlineStreamEnd(t){for(var r,o,l=this.lexer,d=t.pos,m=0;-1!==(r=t.getByte());)if(0===m)m=69===r?1:0;else if(1===m)m=73===r?2:0;else{(0,c.assert)(2===m,"findDefaultInlineStreamEnd - invalid state.");if(32===r||10===r||13===r){o=t.pos;for(var g=t.peekBytes(10),y=0,v=g.length;y<v;y++)if((0!==(r=g[y])||0===g[y+1])&&10!==r&&13!==r&&(r<32||r>127)){m=0;break}if(2!==m)continue;if(l.knownCommands){var S=l.peekObj();S instanceof u.Cmd&&!l.knownCommands[S.cmd]&&(m=0)}else(0,c.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(2===m)break}else m=0}if(-1===r){(0,c.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(o){(0,c.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-o))}}var k=4;t.skip(-k);r=t.peekByte();t.skip(k);(0,h.isWhiteSpace)(r)||k--;return t.pos-k-d}},{key:"findDCTDecodeInlineStreamEnd",value:function findDCTDecodeInlineStreamEnd(t){for(var r,o,l=t.pos,u=!1;-1!==(r=t.getByte());)if(255===r){switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:u=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(o=t.getUint16())>2?t.skip(o-2):t.skip(-2)}if(u)break}var h=t.pos-l;if(-1===r){(0,c.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");t.skip(-h);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return h}},{key:"findASCII85DecodeInlineStreamEnd",value:function findASCII85DecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte());)if(126===r){var l=t.pos;r=t.peekByte();for(;(0,h.isWhiteSpace)(r);){t.skip();r=t.peekByte()}if(62===r){t.skip();break}if(t.pos>l){var u=t.peekBytes(2);if(69===u[0]&&73===u[1])break}}var d=t.pos-o;if(-1===r){(0,c.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-d);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return d}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function findASCIIHexDecodeInlineStreamEnd(t){for(var r,o=t.pos;-1!==(r=t.getByte())&&62!==r;);var l=t.pos-o;if(-1===r){(0,c.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");t.skip(-l);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return l}},{key:"inlineStreamSkipEI",value:function inlineStreamSkipEI(t){for(var r,o=0;-1!==(r=t.getByte());)if(0===o)o=69===r?1:0;else if(1===o)o=73===r?2:0;else if(2===o)break}},{key:"makeInlineImage",value:function makeInlineImage(t){for(var r,o=this.lexer,l=o.stream,h=new u.Dict(this.xref);!(0,u.isCmd)(this.buf1,"ID")&&!(0,u.isEOF)(this.buf1);){if(!(0,u.isName)(this.buf1))throw new c.FormatError("Dictionary key must be a name object");var d=this.buf1.name;this.shift();if((0,u.isEOF)(this.buf1))break;h.set(d,this.getObj(t))}-1!==o.beginInlineImagePos&&(r=l.pos-o.beginInlineImagePos);var m,g=h.get("Filter","F");if((0,u.isName)(g))m=g.name;else if(Array.isArray(g)){var y=this.xref.fetchIfRef(g[0]);(0,u.isName)(y)&&(m=y.name)}var v,S=l.pos;v="DCTDecode"===m||"DCT"===m?this.findDCTDecodeInlineStreamEnd(l):"ASCII85Decode"===m||"A85"===m?this.findASCII85DecodeInlineStreamEnd(l):"ASCIIHexDecode"===m||"AHx"===m?this.findASCIIHexDecodeInlineStreamEnd(l):this.findDefaultInlineStreamEnd(l);var k,C=l.makeSubStream(S,v,h);if(v<1e3&&r<5552){var w=C.getBytes();C.reset();var _=l.pos;l.pos=o.beginInlineImagePos;var O=l.getBytes(r);l.pos=_;k=computeAdler32(w)+"_"+computeAdler32(O);var x=this.imageCache[k];if(void 0!==x){this.buf2=u.Cmd.get("EI");this.shift();x.reset();return x}}t&&(C=t.createStream(C,v));(C=this.filter(C,h,v)).dict=h;if(void 0!==k){C.cacheKey="inline_".concat(v,"_").concat(k);this.imageCache[k]=C}this.buf2=u.Cmd.get("EI");this.shift();return C}},{key:"_findStreamLength",value:function _findStreamLength(t,r){var o=this.lexer.stream;o.pos=t;for(var l=r.length;o.pos<o.end;){var c=o.peekBytes(2048),u=c.length-l;if(u<=0)break;for(var h=0;h<u;){for(var d=0;d<l&&c[h+d]===r[d];)d++;if(d>=l){o.pos+=h;return o.pos-t}h++}o.pos+=u}return-1}},{key:"makeStream",value:function makeStream(t,r){var o=this.lexer,l=o.stream;o.skipToNextLine();var d=l.pos-1,m=t.get("Length");if(!Number.isInteger(m)){(0,c.info)('Bad length "'.concat(m,'" in stream'));m=0}l.pos=d+m;o.nextChar();if(this.tryShift()&&(0,u.isCmd)(this.buf2,"endstream"))this.shift();else{var g=new Uint8Array([101,110,100,115,116,114,101,97,109]),y=this._findStreamLength(d,g);if(y<0){for(var v=1;v<=1;v++){var S=g.length-v,k=g.slice(0,S),C=this._findStreamLength(d,k);if(C>=0){var w=l.peekBytes(S+1)[S];if(!(0,h.isWhiteSpace)(w))break;(0,c.info)('Found "'.concat((0,c.bytesToString)(k),'" when ')+"searching for endstream command.");y=C;break}}if(y<0)throw new c.FormatError("Missing endstream command.")}m=y;o.nextChar();this.shift();this.shift()}this.shift();l=l.makeSubStream(d,m,t);r&&(l=r.createStream(l,m));(l=this.filter(l,t,m)).dict=t;return l}},{key:"filter",value:function filter(t,r,o){var filter=r.get("Filter","F"),l=r.get("DecodeParms","DP");if((0,u.isName)(filter)){Array.isArray(l)&&(0,c.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name.");return this.makeFilter(t,filter.name,o,l)}var h=o;if(Array.isArray(filter))for(var d=filter,m=l,g=0,y=d.length;g<y;++g){filter=this.xref.fetchIfRef(d[g]);if(!(0,u.isName)(filter))throw new c.FormatError('Bad filter name "'.concat(filter,'"'));l=null;Array.isArray(m)&&g in m&&(l=this.xref.fetchIfRef(m[g]));t=this.makeFilter(t,filter.name,h,l);h=null}return t}},{key:"makeFilter",value:function makeFilter(t,r,o,u){if(0===o){(0,c.warn)('Empty "'.concat(r,'" stream.'));return new l.NullStream}try{var v=this.xref.stats.streamTypes;if("FlateDecode"===r||"Fl"===r){v[c.StreamType.FLATE]=!0;return u?new l.PredictorStream(new l.FlateStream(t,o),o,u):new l.FlateStream(t,o)}if("LZWDecode"===r||"LZW"===r){v[c.StreamType.LZW]=!0;var S=1;if(u){u.has("EarlyChange")&&(S=u.get("EarlyChange"));return new l.PredictorStream(new l.LZWStream(t,o,S),o,u)}return new l.LZWStream(t,o,S)}if("DCTDecode"===r||"DCT"===r){v[c.StreamType.DCT]=!0;return new g.JpegStream(t,o,t.dict,u)}if("JPXDecode"===r||"JPX"===r){v[c.StreamType.JPX]=!0;return new y.JpxStream(t,o,t.dict,u)}if("ASCII85Decode"===r||"A85"===r){v[c.StreamType.A85]=!0;return new l.Ascii85Stream(t,o)}if("ASCIIHexDecode"===r||"AHx"===r){v[c.StreamType.AHX]=!0;return new l.AsciiHexStream(t,o)}if("CCITTFaxDecode"===r||"CCF"===r){v[c.StreamType.CCF]=!0;return new d.CCITTFaxStream(t,o,u)}if("RunLengthDecode"===r||"RL"===r){v[c.StreamType.RLX]=!0;return new l.RunLengthStream(t,o)}if("JBIG2Decode"===r){v[c.StreamType.JBIG]=!0;return new m.Jbig2Stream(t,o,t.dict,u)}(0,c.warn)('Filter "'.concat(r,'" is not supported.'));return t}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)('Invalid stream: "'.concat(t,'"'));return new l.NullStream}}}]);return Parser}();r.Parser=v;var S=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,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,2,0,2,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,2,0,2,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,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];function toHexDigit(t){return t>=48&&t<=57?15&t:t>=65&&t<=70||t>=97&&t<=102?9+(15&t):-1}var k=function(){function Lexer(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;_classCallCheck(this,Lexer);this.stream=t;this.nextChar();this.strBuf=[];this.knownCommands=r;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}_createClass(Lexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function peekChar(){return this.stream.peekByte()}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=!1,o=0,l=0;if(45===t){l=-1;45===(t=this.nextChar())&&(t=this.nextChar())}else if(43===t){l=1;t=this.nextChar()}if(10===t||13===t)do{t=this.nextChar()}while(10===t||13===t);if(46===t){o=10;t=this.nextChar()}if(t<48||t>57){if(10===o&&0===l&&((0,h.isWhiteSpace)(t)||-1===t)){(0,c.warn)("Lexer.getNumber - treating a single decimal point as zero.");return 0}throw new c.FormatError("Invalid number: ".concat(String.fromCharCode(t)," (charCode ").concat(t,")"))}l=l||1;for(var u=t-48,d=0,m=1;(t=this.nextChar())>=0;)if(t>=48&&t<=57){var g=t-48;if(r)d=10*d+g;else{0!==o&&(o*=10);u=10*u+g}}else if(46===t){if(0!==o)break;o=1}else if(45===t)(0,c.warn)("Badly formatted number: minus sign in the middle");else{if(69!==t&&101!==t)break;if(43===(t=this.peekChar())||45===t){m=45===t?-1:1;this.nextChar()}else if(t<48||t>57)break;r=!0}0!==o&&(u/=o);r&&(u*=Math.pow(10,m*d));return l*u}},{key:"getString",value:function getString(){var t=1,r=!1,o=this.strBuf;o.length=0;for(var l=this.nextChar();;){var u=!1;switch(0|l){case-1:(0,c.warn)("Unterminated string");r=!0;break;case 40:++t;o.push("(");break;case 41:if(0==--t){this.nextChar();r=!0}else o.push(")");break;case 92:switch(l=this.nextChar()){case-1:(0,c.warn)("Unterminated string");r=!0;break;case 110:o.push("\n");break;case 114:o.push("\r");break;case 116:o.push("\t");break;case 98:o.push("\b");break;case 102:o.push("\f");break;case 92:case 40:case 41:o.push(String.fromCharCode(l));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var h=15&l;u=!0;if((l=this.nextChar())>=48&&l<=55){h=(h<<3)+(15&l);if((l=this.nextChar())>=48&&l<=55){u=!1;h=(h<<3)+(15&l)}}o.push(String.fromCharCode(h));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:o.push(String.fromCharCode(l))}break;default:o.push(String.fromCharCode(l))}if(r)break;u||(l=this.nextChar())}return o.join("")}},{key:"getName",value:function getName(){var t,r,o=this.strBuf;o.length=0;for(;(t=this.nextChar())>=0&&!S[t];)if(35===t){t=this.nextChar();if(S[t]){(0,c.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");o.push("#");break}var l=toHexDigit(t);if(-1!==l){r=t;var h=toHexDigit(t=this.nextChar());if(-1===h){(0,c.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(t),") ")+"in hexadecimal number.");o.push("#",String.fromCharCode(r));if(S[t])break;o.push(String.fromCharCode(t));continue}o.push(String.fromCharCode(l<<4|h))}else o.push("#",String.fromCharCode(t))}else o.push(String.fromCharCode(t));o.length>127&&(0,c.warn)("Name token is longer than allowed by the spec: ".concat(o.length));return u.Name.get(o.join(""))}},{key:"_hexStringWarn",value:function _hexStringWarn(t){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,c.warn)("getHexString - ignoring invalid character: ".concat(t)):(0,c.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function getHexString(){var t=this.strBuf;t.length=0;var r,o,l=this.currentChar,u=!0;this._hexStringNumWarn=0;for(;;){if(l<0){(0,c.warn)("Unterminated hex string");break}if(62===l){this.nextChar();break}if(1!==S[l]){if(u){if(-1===(r=toHexDigit(l))){this._hexStringWarn(l);l=this.nextChar();continue}}else{if(-1===(o=toHexDigit(l))){this._hexStringWarn(l);l=this.nextChar();continue}t.push(String.fromCharCode(r<<4|o))}u=!u;l=this.nextChar()}else l=this.nextChar()}return t.join("")}},{key:"getObj",value:function getObj(){for(var t=!1,r=this.currentChar;;){if(r<0)return u.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(1!==S[r])break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return u.Cmd.get("[");case 93:this.nextChar();return u.Cmd.get("]");case 60:if(60===(r=this.nextChar())){this.nextChar();return u.Cmd.get("<<")}return this.getHexString();case 62:if(62===(r=this.nextChar())){this.nextChar();return u.Cmd.get(">>")}return u.Cmd.get(">");case 123:this.nextChar();return u.Cmd.get("{");case 125:this.nextChar();return u.Cmd.get("}");case 41:this.nextChar();throw new c.FormatError("Illegal character: ".concat(r))}for(var o=String.fromCharCode(r),l=this.knownCommands,h=l&&void 0!==l[o];(r=this.nextChar())>=0&&!S[r];){var d=o+String.fromCharCode(r);if(h&&void 0===l[d])break;if(128===o.length)throw new c.FormatError("Command token too long: ".concat(o.length));o=d;h=l&&void 0!==l[o]}if("true"===o)return!0;if("false"===o)return!1;if("null"===o)return null;"BI"===o&&(this.beginInlineImagePos=this.stream.pos);return u.Cmd.get(o)}},{key:"peekObj",value:function peekObj(){var t,r=this.stream.pos,o=this.currentChar,l=this.beginInlineImagePos;try{t=this.getObj()}catch(t){if(t instanceof h.MissingDataException)throw t;(0,c.warn)("peekObj: ".concat(t))}this.stream.pos=r;this.currentChar=o;this.beginInlineImagePos=l;return t}},{key:"skipToNextLine",value:function skipToNextLine(){for(var t=this.currentChar;t>=0;){if(13===t){10===(t=this.nextChar())&&this.nextChar();break}if(10===t){this.nextChar();break}t=this.nextChar()}}}]);return Lexer}();r.Lexer=k;var C=function(){function Linearization(){_classCallCheck(this,Linearization)}_createClass(Linearization,null,[{key:"create",value:function create(t){function getInt(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=t.get(r);if(Number.isInteger(l)&&(o?l>=0:l>0))return l;throw new Error('The "'.concat(r,'" parameter in the linearization ')+"dictionary is invalid.")}var r,o,l=new v({lexer:new k(t),xref:null}),h=l.getObj(),d=l.getObj(),m=l.getObj(),g=l.getObj();if(!(Number.isInteger(h)&&Number.isInteger(d)&&(0,u.isCmd)(m,"obj")&&(0,u.isDict)(g)&&(0,c.isNum)(r=g.get("Linearized"))&&r>0))return null;if((o=getInt(g,"L"))!==t.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:function getHints(t){var r,o=t.get("H");if(Array.isArray(o)&&(2===(r=o.length)||4===r)){for(var l=0;l<r;l++){var c=o[l];if(!(Number.isInteger(c)&&c>0))throw new Error("Hint (".concat(l,") in the linearization dictionary is invalid."))}return o}throw new Error("Hint array in the linearization dictionary is invalid.")}(g),objectNumberFirst:getInt(g,"O"),endFirst:getInt(g,"E"),numPages:getInt(g,"N"),mainXRefEntriesOffset:getInt(g,"T"),pageFirst:g.has("P")?getInt(g,"P",!0):0}}}]);return Linearization}();r.Linearization=C},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.StringStream=r.StreamsSequenceStream=r.Stream=r.RunLengthStream=r.PredictorStream=r.NullStream=r.LZWStream=r.FlateStream=r.DecryptStream=r.DecodeStream=r.AsciiHexStream=r.Ascii85Stream=void 0;var l=o(4),c=o(125),u=o(128);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var h=function StreamClosure(){function Stream(t,r,o,l){this.bytes=t instanceof Uint8Array?t:new Uint8Array(t);this.start=r||0;this.pos=this.start;this.end=r+o||this.bytes.length;this.dict=l}Stream.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function Stream_getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function Stream_getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r},getInt32:function Stream_getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function getBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.bytes,l=this.pos,c=this.end;if(!t){var u=o.subarray(l,c);return r?new Uint8ClampedArray(u):u}var h=l+t;h>c&&(h=c);this.pos=h;var d=o.subarray(l,h);return r?new Uint8ClampedArray(d):d},peekByte:function Stream_peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t},peekBytes:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getBytes(t,r);this.pos-=o.length;return o},getByteRange:function getByteRange(t,r){t<0&&(t=0);r>this.end&&(r=this.end);return this.bytes.subarray(t,r)},skip:function Stream_skip(t){t||(t=1);this.pos+=t},reset:function Stream_reset(){this.pos=this.start},moveStart:function Stream_moveStart(){this.start=this.pos},makeSubStream:function Stream_makeSubStream(t,r,o){return new Stream(this.bytes.buffer,t,r,o)}};return Stream}();r.Stream=h;var d=function StringStreamClosure(){function StringStream(t){var r=(0,l.stringToBytes)(t);h.call(this,r)}StringStream.prototype=h.prototype;return StringStream}();r.StringStream=d;var m=function DecodeStreamClosure(){var t=new Uint8Array(0);function DecodeStream(r){this._rawMinBufferLength=r||0;this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=t;this.minBufferLength=512;if(r)for(;this.minBufferLength<r;)this.minBufferLength*=2}DecodeStream.prototype={get length(){(0,l.unreachable)("Should not access DecodeStream.length")},get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function DecodeStream_ensureBuffer(t){var r=this.buffer;if(t<=r.byteLength)return r;for(var o=this.minBufferLength;o<t;)o*=2;var l=new Uint8Array(o);l.set(r);return this.buffer=l},getByte:function DecodeStream_getByte(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function DecodeStream_getUint16(){var t=this.getByte(),r=this.getByte();return-1===t||-1===r?-1:(t<<8)+r},getInt32:function DecodeStream_getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function getBytes(t){var r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.pos;if(t){this.ensureBuffer(l+t);r=l+t;for(;!this.eof&&this.bufferLength<r;)this.readBlock();var c=this.bufferLength;r>c&&(r=c)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var u=this.buffer.subarray(l,r);return!o||u instanceof Uint8ClampedArray?u:new Uint8ClampedArray(u)},peekByte:function DecodeStream_peekByte(){var t=this.getByte();-1!==t&&this.pos--;return t},peekBytes:function peekBytes(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getBytes(t,r);this.pos-=o.length;return o},makeSubStream:function DecodeStream_makeSubStream(t,r,o){if(void 0===r)for(;!this.eof;)this.readBlock();else for(var l=t+r;this.bufferLength<=l&&!this.eof;)this.readBlock();return new h(this.buffer,t,r,o)},getByteRange:function getByteRange(t,r){(0,l.unreachable)("Should not call DecodeStream.getByteRange")},skip:function DecodeStream_skip(t){t||(t=1);this.pos+=t},reset:function DecodeStream_reset(){this.pos=0},getBaseStreams:function DecodeStream_getBaseStreams(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}};return DecodeStream}();r.DecodeStream=m;var g=function StreamsSequenceStreamClosure(){function StreamsSequenceStream(t){this.streams=t;for(var r=0,o=0,l=t.length;o<l;o++){var c=t[o];r+=c instanceof m?c._rawMinBufferLength:c.length}m.call(this,r)}StreamsSequenceStream.prototype=Object.create(m.prototype);StreamsSequenceStream.prototype.readBlock=function streamSequenceStreamReadBlock(){var t=this.streams;if(0!==t.length){var r=t.shift().getBytes(),o=this.bufferLength,l=o+r.length;this.ensureBuffer(l).set(r,o);this.bufferLength=l}else this.eof=!0};StreamsSequenceStream.prototype.getBaseStreams=function StreamsSequenceStream_getBaseStreams(){for(var t=[],r=0,o=this.streams.length;r<o;r++){var l=this.streams[r];l.getBaseStreams&&t.push.apply(t,_toConsumableArray(l.getBaseStreams()))}return t};return StreamsSequenceStream}();r.StreamsSequenceStream=g;var y=function FlateStreamClosure(){var t=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],u=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function FlateStream(t,r){this.str=t;this.dict=t.dict;var o=t.getByte(),c=t.getByte();if(-1===o||-1===c)throw new l.FormatError("Invalid header in flate stream: ".concat(o,", ").concat(c));if(8!=(15&o))throw new l.FormatError("Unknown compression method in flate stream: ".concat(o,", ").concat(c));if(((o<<8)+c)%31!=0)throw new l.FormatError("Bad FCHECK in flate stream: ".concat(o,", ").concat(c));if(32&c)throw new l.FormatError("FDICT bit set in flate stream: ".concat(o,", ").concat(c));this.codeSize=0;this.codeBuf=0;m.call(this,r)}FlateStream.prototype=Object.create(m.prototype);FlateStream.prototype.getBits=function FlateStream_getBits(t){for(var r,o=this.str,c=this.codeSize,u=this.codeBuf;c<t;){if(-1===(r=o.getByte()))throw new l.FormatError("Bad encoding in flate stream");u|=r<<c;c+=8}r=u&(1<<t)-1;this.codeBuf=u>>t;this.codeSize=c-=t;return r};FlateStream.prototype.getCode=function FlateStream_getCode(t){for(var r,o=this.str,c=t[0],u=t[1],h=this.codeSize,d=this.codeBuf;h<u&&-1!==(r=o.getByte());){d|=r<<h;h+=8}var m=c[d&(1<<u)-1],g=m>>16,y=65535&m;if(g<1||h<g)throw new l.FormatError("Bad encoding in flate stream");this.codeBuf=d>>g;this.codeSize=h-g;return y};FlateStream.prototype.generateHuffmanTable=function flateStreamGenerateHuffmanTable(t){var r,o=t.length,l=0;for(r=0;r<o;++r)t[r]>l&&(l=t[r]);for(var c=1<<l,u=new Int32Array(c),h=1,d=0,m=2;h<=l;++h,d<<=1,m<<=1)for(var g=0;g<o;++g)if(t[g]===h){var y=0,v=d;for(r=0;r<h;++r){y=y<<1|1&v;v>>=1}for(r=y;r<c;r+=m)u[r]=h<<16|g;++d}return[u,l]};FlateStream.prototype.readBlock=function FlateStream_readBlock(){var h,d,m=this.str,g=this.getBits(3);1&g&&(this.eof=!0);if(0!==(g>>=1)){var y,v;if(1===g){y=c;v=u}else{if(2!==g)throw new l.FormatError("Unknown block type in flate stream");var S,k=this.getBits(5)+257,C=this.getBits(5)+1,w=this.getBits(4)+4,_=new Uint8Array(t.length);for(S=0;S<w;++S)_[t[S]]=this.getBits(3);var O=this.generateHuffmanTable(_);d=0;S=0;for(var x,T,R,E=k+C,D=new Uint8Array(E);S<E;){var j=this.getCode(O);if(16===j){x=2;T=3;R=d}else if(17===j){x=3;T=3;R=d=0}else{if(18!==j){D[S++]=d=j;continue}x=7;T=11;R=d=0}for(var M=this.getBits(x)+T;M-- >0;)D[S++]=R}y=this.generateHuffmanTable(D.subarray(0,k));v=this.generateHuffmanTable(D.subarray(k,E))}for(var N=(h=this.buffer)?h.length:0,L=this.bufferLength;;){var U=this.getCode(y);if(U<256){L+1>=N&&(N=(h=this.ensureBuffer(L+1)).length);h[L++]=U}else{if(256===U){this.bufferLength=L;return}var q=(U=r[U-=257])>>16;q>0&&(q=this.getBits(q));d=(65535&U)+q;U=this.getCode(v);(q=(U=o[U])>>16)>0&&(q=this.getBits(q));var X=(65535&U)+q;L+d>=N&&(N=(h=this.ensureBuffer(L+d)).length);for(var W=0;W<d;++W,++L)h[L]=h[L-X]}}}else{var H;if(-1===(H=m.getByte()))throw new l.FormatError("Bad block header in flate stream");var z=H;if(-1===(H=m.getByte()))throw new l.FormatError("Bad block header in flate stream");z|=H<<8;if(-1===(H=m.getByte()))throw new l.FormatError("Bad block header in flate stream");var G=H;if(-1===(H=m.getByte()))throw new l.FormatError("Bad block header in flate stream");if((G|=H<<8)!==(65535&~z)&&(0!==z||0!==G))throw new l.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;var V=this.bufferLength,$=V+z;h=this.ensureBuffer($);this.bufferLength=$;if(0===z)-1===m.peekByte()&&(this.eof=!0);else{var K=m.getBytes(z);h.set(K,V);K.length<z&&(this.eof=!0)}}};return FlateStream}();r.FlateStream=y;var v=function PredictorStreamClosure(){function PredictorStream(t,r,o){if(!(0,c.isDict)(o))return t;var u=this.predictor=o.get("Predictor")||1;if(u<=1)return t;if(2!==u&&(u<10||u>15))throw new l.FormatError("Unsupported predictor: ".concat(u));this.readBlock=2===u?this.readBlockTiff:this.readBlockPng;this.str=t;this.dict=t.dict;var h=this.colors=o.get("Colors")||1,d=this.bits=o.get("BitsPerComponent")||8,g=this.columns=o.get("Columns")||1;this.pixBytes=h*d+7>>3;this.rowBytes=g*h*d+7>>3;m.call(this,r);return this}PredictorStream.prototype=Object.create(m.prototype);PredictorStream.prototype.readBlockTiff=function predictorStreamReadBlockTiff(){var t=this.rowBytes,r=this.bufferLength,o=this.ensureBuffer(r+t),l=this.bits,c=this.colors,u=this.str.getBytes(t);this.eof=!u.length;if(!this.eof){var h,d=0,m=0,g=0,y=0,v=r;if(1===l&&1===c)for(h=0;h<t;++h){var S=u[h]^d;S^=S>>1;S^=S>>2;d=(1&(S^=S>>4))<<7;o[v++]=S}else if(8===l){for(h=0;h<c;++h)o[v++]=u[h];for(;h<t;++h){o[v]=o[v-c]+u[h];v++}}else if(16===l){var k=2*c;for(h=0;h<k;++h)o[v++]=u[h];for(;h<t;h+=2){var C=((255&u[h])<<8)+(255&u[h+1])+((255&o[v-k])<<8)+(255&o[v-k+1]);o[v++]=C>>8&255;o[v++]=255&C}}else{var w=new Uint8Array(c+1),_=(1<<l)-1,O=0,x=r,T=this.columns;for(h=0;h<T;++h)for(var R=0;R<c;++R){if(g<l){d=d<<8|255&u[O++];g+=8}w[R]=w[R]+(d>>g-l)&_;g-=l;m=m<<l|w[R];if((y+=l)>=8){o[x++]=m>>y-8&255;y-=8}}y>0&&(o[x++]=(m<<8-y)+(d&(1<<8-y)-1))}this.bufferLength+=t}};PredictorStream.prototype.readBlockPng=function predictorStreamReadBlockPng(){var t=this.rowBytes,r=this.pixBytes,o=this.str.getByte(),c=this.str.getBytes(t);this.eof=!c.length;if(!this.eof){var u=this.bufferLength,h=this.ensureBuffer(u+t),d=h.subarray(u-t,u);0===d.length&&(d=new Uint8Array(t));var m,g,y,v=u;switch(o){case 0:for(m=0;m<t;++m)h[v++]=c[m];break;case 1:for(m=0;m<r;++m)h[v++]=c[m];for(;m<t;++m){h[v]=h[v-r]+c[m]&255;v++}break;case 2:for(m=0;m<t;++m)h[v++]=d[m]+c[m]&255;break;case 3:for(m=0;m<r;++m)h[v++]=(d[m]>>1)+c[m];for(;m<t;++m){h[v]=(d[m]+h[v-r]>>1)+c[m]&255;v++}break;case 4:for(m=0;m<r;++m){g=d[m];y=c[m];h[v++]=g+y}for(;m<t;++m){g=d[m];var S=d[m-r],k=h[v-r],C=k+g-S,w=C-k;w<0&&(w=-w);var _=C-g;_<0&&(_=-_);var O=C-S;O<0&&(O=-O);y=c[m];h[v++]=w<=_&&w<=O?k+y:_<=O?g+y:S+y}break;default:throw new l.FormatError("Unsupported predictor: ".concat(o))}this.bufferLength+=t}};return PredictorStream}();r.PredictorStream=v;var S=function DecryptStreamClosure(){function DecryptStream(t,r,o){this.str=t;this.dict=t.dict;this.decrypt=o;this.nextChunk=null;this.initialized=!1;m.call(this,r)}DecryptStream.prototype=Object.create(m.prototype);DecryptStream.prototype.readBlock=function DecryptStream_readBlock(){var t;if(this.initialized)t=this.nextChunk;else{t=this.str.getBytes(512);this.initialized=!0}if(t&&0!==t.length){this.nextChunk=this.str.getBytes(512);var r=this.nextChunk&&this.nextChunk.length>0;t=(0,this.decrypt)(t,!r);var o,l=this.bufferLength,c=t.length,u=this.ensureBuffer(l+c);for(o=0;o<c;o++)u[l++]=t[o];this.bufferLength=l}else this.eof=!0};return DecryptStream}();r.DecryptStream=S;var k=function Ascii85StreamClosure(){function Ascii85Stream(t,r){this.str=t;this.dict=t.dict;this.input=new Uint8Array(5);r&&(r*=.8);m.call(this,r)}Ascii85Stream.prototype=Object.create(m.prototype);Ascii85Stream.prototype.readBlock=function Ascii85Stream_readBlock(){for(var t=this.str,r=t.getByte();(0,u.isWhiteSpace)(r);)r=t.getByte();if(-1!==r&&126!==r){var o,l,c=this.bufferLength;if(122===r){o=this.ensureBuffer(c+4);for(l=0;l<4;++l)o[c+l]=0;this.bufferLength+=4}else{var h=this.input;h[0]=r;for(l=1;l<5;++l){r=t.getByte();for(;(0,u.isWhiteSpace)(r);)r=t.getByte();h[l]=r;if(-1===r||126===r)break}o=this.ensureBuffer(c+l-1);this.bufferLength+=l-1;if(l<5){for(;l<5;++l)h[l]=117;this.eof=!0}var d=0;for(l=0;l<5;++l)d=85*d+(h[l]-33);for(l=3;l>=0;--l){o[c+l]=255&d;d>>=8}}}else this.eof=!0};return Ascii85Stream}();r.Ascii85Stream=k;var C=function AsciiHexStreamClosure(){function AsciiHexStream(t,r){this.str=t;this.dict=t.dict;this.firstDigit=-1;r&&(r*=.5);m.call(this,r)}AsciiHexStream.prototype=Object.create(m.prototype);AsciiHexStream.prototype.readBlock=function AsciiHexStream_readBlock(){var t=this.str.getBytes(8e3);if(t.length){for(var r=t.length+1>>1,o=this.ensureBuffer(this.bufferLength+r),l=this.bufferLength,c=this.firstDigit,u=0,h=t.length;u<h;u++){var d,m=t[u];if(m>=48&&m<=57)d=15&m;else{if(!(m>=65&&m<=70||m>=97&&m<=102)){if(62===m){this.eof=!0;break}continue}d=9+(15&m)}if(c<0)c=d;else{o[l++]=c<<4|d;c=-1}}if(c>=0&&this.eof){o[l++]=c<<4;c=-1}this.firstDigit=c;this.bufferLength=l}else this.eof=!0};return AsciiHexStream}();r.AsciiHexStream=C;var w=function RunLengthStreamClosure(){function RunLengthStream(t,r){this.str=t;this.dict=t.dict;m.call(this,r)}RunLengthStream.prototype=Object.create(m.prototype);RunLengthStream.prototype.readBlock=function RunLengthStream_readBlock(){var t=this.str.getBytes(2);if(!t||t.length<2||128===t[0])this.eof=!0;else{var r,o=this.bufferLength,l=t[0];if(l<128){(r=this.ensureBuffer(o+l+1))[o++]=t[1];if(l>0){var c=this.str.getBytes(l);r.set(c,o);o+=l}}else{l=257-l;var u=t[1];r=this.ensureBuffer(o+l+1);for(var h=0;h<l;h++)r[o++]=u}this.bufferLength=o}};return RunLengthStream}();r.RunLengthStream=w;var _=function LZWStreamClosure(){function LZWStream(t,r,o){this.str=t;this.dict=t.dict;this.cachedData=0;this.bitsCached=0;for(var l=4096,c={earlyChange:o,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(l),dictionaryLengths:new Uint16Array(l),dictionaryPrevCodes:new Uint16Array(l),currentSequence:new Uint8Array(l),currentSequenceLength:0},u=0;u<256;++u){c.dictionaryValues[u]=u;c.dictionaryLengths[u]=1}this.lzwState=c;m.call(this,r)}LZWStream.prototype=Object.create(m.prototype);LZWStream.prototype.readBits=function LZWStream_readBits(t){for(var r=this.bitsCached,o=this.cachedData;r<t;){var l=this.str.getByte();if(-1===l){this.eof=!0;return null}o=o<<8|l;r+=8}this.bitsCached=r-=t;this.cachedData=o;this.lastCode=null;return o>>>r&(1<<t)-1};LZWStream.prototype.readBlock=function LZWStream_readBlock(){var t,r,o,l=1024,c=this.lzwState;if(c){var u=c.earlyChange,h=c.nextCode,d=c.dictionaryValues,m=c.dictionaryLengths,g=c.dictionaryPrevCodes,y=c.codeLength,v=c.prevCode,S=c.currentSequence,k=c.currentSequenceLength,C=0,w=this.bufferLength,_=this.ensureBuffer(this.bufferLength+l);for(t=0;t<512;t++){var O=this.readBits(y),x=k>0;if(O<256){S[0]=O;k=1}else{if(!(O>=258)){if(256===O){y=9;h=258;k=0;continue}this.eof=!0;delete this.lzwState;break}if(O<h)for(r=(k=m[O])-1,o=O;r>=0;r--){S[r]=d[o];o=g[o]}else S[k++]=S[0]}if(x){g[h]=v;m[h]=m[v]+1;d[h]=S[0];y=++h+u&h+u-1?y:0|Math.min(Math.log(h+u)/.6931471805599453+1,12)}v=O;if(l<(C+=k)){do{l+=512}while(l<C);_=this.ensureBuffer(this.bufferLength+l)}for(r=0;r<k;r++)_[w++]=S[r]}c.nextCode=h;c.codeLength=y;c.prevCode=v;c.currentSequenceLength=k;this.bufferLength=w}};return LZWStream}();r.LZWStream=_;var O=function NullStreamClosure(){function NullStream(){h.call(this,new Uint8Array(0))}NullStream.prototype=h.prototype;return NullStream}();r.NullStream=O},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxStream=void 0;var l=o(125),c=o(134),u=o(132),h=function CCITTFaxStreamClosure(){function CCITTFaxStream(t,r,o){this.str=t;this.dict=t.dict;(0,l.isDict)(o)||(o=l.Dict.empty);var h={next:function next(){return t.getByte()}};this.ccittFaxDecoder=new c.CCITTFaxDecoder(h,{K:o.get("K"),EndOfLine:o.get("EndOfLine"),EncodedByteAlign:o.get("EncodedByteAlign"),Columns:o.get("Columns"),Rows:o.get("Rows"),EndOfBlock:o.get("EndOfBlock"),BlackIs1:o.get("BlackIs1")});u.DecodeStream.call(this,r)}CCITTFaxStream.prototype=Object.create(u.DecodeStream.prototype);CCITTFaxStream.prototype.readBlock=function(){for(;!this.eof;){var t=this.ccittFaxDecoder.readNextChar();if(-1===t){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=t}};return CCITTFaxStream}();r.CCITTFaxStream=h},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CCITTFaxDecoder=void 0;var l=o(4),c=function CCITTFaxDecoder(){var t=-1,r=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],o=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],c=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],u=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],h=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],d=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function CCITTFaxDecoder(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!=typeof t.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=t;this.eof=!1;this.encoding=r.K||0;this.eoline=r.EndOfLine||!1;this.byteAlign=r.EncodedByteAlign||!1;this.columns=r.Columns||1728;this.rows=r.Rows||0;var o,l=r.EndOfBlock;null==l&&(l=!0);this.eoblock=l;this.black=r.BlackIs1||!1;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=!1;for(;0===(o=this._lookBits(12));)this._eatBits(1);1===o&&this._eatBits(12);if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}CCITTFaxDecoder.prototype={readNextChar:function readNextChar(){if(this.eof)return-1;var r,o,c,u,h,d=this.refLine,m=this.codingLine,g=this.columns;if(0===this.outputBits){this.rowsDone&&(this.eof=!0);if(this.eof)return-1;this.err=!1;var y,v,S;if(this.nextLine2D){for(u=0;m[u]<g;++u)d[u]=m[u];d[u++]=g;d[u]=g;m[0]=0;this.codingPos=0;r=0;o=0;for(;m[this.codingPos]<g;)switch(y=this._getTwoDimCode()){case 0:this._addPixels(d[r+1],o);d[r+1]<g&&(r+=2);break;case 1:y=v=0;if(o){do{y+=S=this._getBlackCode()}while(S>=64);do{v+=S=this._getWhiteCode()}while(S>=64)}else{do{y+=S=this._getWhiteCode()}while(S>=64);do{v+=S=this._getBlackCode()}while(S>=64)}this._addPixels(m[this.codingPos]+y,o);m[this.codingPos]<g&&this._addPixels(m[this.codingPos]+v,1^o);for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2;break;case 7:this._addPixels(d[r]+3,o);o^=1;if(m[this.codingPos]<g){++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 5:this._addPixels(d[r]+2,o);o^=1;if(m[this.codingPos]<g){++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 3:this._addPixels(d[r]+1,o);o^=1;if(m[this.codingPos]<g){++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 2:this._addPixels(d[r],o);o^=1;if(m[this.codingPos]<g){++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 8:this._addPixelsNeg(d[r]-3,o);o^=1;if(m[this.codingPos]<g){r>0?--r:++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 6:this._addPixelsNeg(d[r]-2,o);o^=1;if(m[this.codingPos]<g){r>0?--r:++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case 4:this._addPixelsNeg(d[r]-1,o);o^=1;if(m[this.codingPos]<g){r>0?--r:++r;for(;d[r]<=m[this.codingPos]&&d[r]<g;)r+=2}break;case t:this._addPixels(g,0);this.eof=!0;break;default:(0,l.info)("bad 2d code");this._addPixels(g,0);this.err=!0}}else{m[0]=0;this.codingPos=0;o=0;for(;m[this.codingPos]<g;){y=0;if(o)do{y+=S=this._getBlackCode()}while(S>=64);else do{y+=S=this._getWhiteCode()}while(S>=64);this._addPixels(m[this.codingPos]+y,o);o^=1}}var k=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){y=this._lookBits(12);if(this.eoline)for(;y!==t&&1!==y;){this._eatBits(1);y=this._lookBits(12)}else for(;0===y;){this._eatBits(1);y=this._lookBits(12)}if(1===y){this._eatBits(12);k=!0}else y===t&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&k&&this.byteAlign){if(1===(y=this._lookBits(12))){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0)for(u=0;u<4;++u){1!==(y=this._lookBits(12))&&(0,l.info)("bad rtc code: "+y);this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((y=this._lookBits(13))===t){this.eof=!0;return-1}if(y>>1==1)break;this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(1&y)}}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1];this.row++}if(this.outputBits>=8){h=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&m[this.codingPos]<g){this.codingPos++;this.outputBits=m[this.codingPos]-m[this.codingPos-1]}}else{c=8;h=0;do{if(this.outputBits>c){h<<=c;1&this.codingPos||(h|=255>>8-c);this.outputBits-=c;c=0}else{h<<=this.outputBits;1&this.codingPos||(h|=255>>8-this.outputBits);c-=this.outputBits;this.outputBits=0;if(m[this.codingPos]<g){this.codingPos++;this.outputBits=m[this.codingPos]-m[this.codingPos-1]}else if(c>0){h<<=c;c=0}}}while(c)}this.black&&(h^=255);return h},_addPixels:function _addPixels(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){(0,l.info)("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}this.codingPos=c},_addPixelsNeg:function _addPixelsNeg(t,r){var o=this.codingLine,c=this.codingPos;if(t>o[c]){if(t>this.columns){(0,l.info)("row is wrong length");this.err=!0;t=this.columns}1&c^r&&++c;o[c]=t}else if(t<o[c]){if(t<0){(0,l.info)("invalid code");this.err=!0;t=0}for(;c>0&&t<o[c-1];)--c;o[c]=t}this.codingPos=c},_findTableCode:function _findTableCode(r,o,l,c){for(var u=c||0,h=r;h<=o;++h){var d=this._lookBits(h);if(d===t)return[!0,1,!1];h<o&&(d<<=o-h);if(!u||d>=u){var m=l[d-u];if(m[0]===h){this._eatBits(h);return[!0,m[1],!0]}}}return[!1,0,!1]},_getTwoDimCode:function _getTwoDimCode(){var o,c=0;if(this.eoblock){c=this._lookBits(7);if((o=r[c])&&o[0]>0){this._eatBits(o[0]);return o[1]}}else{var u=this._findTableCode(1,7,r);if(u[0]&&u[2])return u[1]}(0,l.info)("Bad two dim code");return t},_getWhiteCode:function _getWhiteCode(){var r,u=0;if(this.eoblock){if((u=this._lookBits(12))===t)return 1;if((r=u>>5==0?o[u]:c[u>>3])[0]>0){this._eatBits(r[0]);return r[1]}}else{var h=this._findTableCode(1,9,c);if(h[0])return h[1];if((h=this._findTableCode(11,12,o))[0])return h[1]}(0,l.info)("bad white code");this._eatBits(1);return 1},_getBlackCode:function _getBlackCode(){var r,o;if(this.eoblock){if((r=this._lookBits(13))===t)return 1;if((o=r>>7==0?u[r]:r>>9==0&&r>>7!=0?h[(r>>1)-64]:d[r>>7])[0]>0){this._eatBits(o[0]);return o[1]}}else{var c=this._findTableCode(2,6,d);if(c[0])return c[1];if((c=this._findTableCode(7,12,h,64))[0])return c[1];if((c=this._findTableCode(10,13,u))[0])return c[1]}(0,l.info)("bad black code");this._eatBits(1);return 1},_lookBits:function _lookBits(r){for(var o;this.inputBits<r;){if(-1===(o=this.source.next()))return 0===this.inputBits?t:this.inputBuf<<r-this.inputBits&65535>>16-r;this.inputBuf=this.inputBuf<<8|o;this.inputBits+=8}return this.inputBuf>>this.inputBits-r&65535>>16-r},_eatBits:function _eatBits(t){(this.inputBits-=t)<0&&(this.inputBits=0)}};return CCITTFaxDecoder}();r.CCITTFaxDecoder=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Jbig2Stream=void 0;var l=o(125),c=o(132),u=o(136),h=o(4),d=function Jbig2StreamClosure(){function Jbig2Stream(t,r,o,l){this.stream=t;this.maybeLength=r;this.dict=o;this.params=l;c.DecodeStream.call(this,r)}Jbig2Stream.prototype=Object.create(c.DecodeStream.prototype);Object.defineProperty(Jbig2Stream.prototype,"bytes",{get:function get(){return(0,h.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});Jbig2Stream.prototype.ensureBuffer=function(t){};Jbig2Stream.prototype.readBlock=function(){if(!this.eof){var t=new u.Jbig2Image,r=[];if((0,l.isDict)(this.params)){var o=this.params.get("JBIG2Globals");if((0,l.isStream)(o)){var c=o.getBytes();r.push({data:c,start:0,end:c.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var h=t.parseChunks(r),d=h.length,m=0;m<d;m++)h[m]^=255;this.buffer=h;this.bufferLength=d;this.eof=!0}};return Jbig2Stream}();r.Jbig2Stream=d},(t,r,o)=>{"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 l=o(4),c=o(128),u=o(137),h=o(134);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 d=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){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Jbig2Error);return r.call(this,"JBIG2 error: ".concat(t))}return Jbig2Error}(l.BaseException),m=function Jbig2ImageClosure(){function ContextCache(){}ContextCache.prototype={getContexts:function getContexts(t){return t in this?this[t]:this[t]=new Int8Array(65536)}};function DecodingContext(t,r,o){this.data=t;this.start=r;this.end=o}DecodingContext.prototype={get decoder(){var t=new u.ArithmeticDecoder(this.data,this.start,this.end);return(0,l.shadow)(this,"decoder",t)},get contextCache(){var t=new ContextCache;return(0,l.shadow)(this,"contextCache",t)}};function decodeInteger(t,r,o){var l=t.getContexts(r),c=1;function readBits(t){for(var r=0,u=0;u<t;u++){var h=o.readBit(l,c);c=c<256?c<<1|h:511&(c<<1|h)|256;r=r<<1|h}return r>>>0}var u=readBits(1),h=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===u?h:h>0?-h:null}function decodeIAID(t,r,o){for(var l=t.getContexts("IAID"),c=1,u=0;u<o;u++){c=c<<1|r.readBit(l,c)}return o<31?c&(1<<o)-1:2147483647&c}var t=["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"],r=[[{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}]],o=[{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}]}],m=[39717,1941,229,405],g=[32,8];function decodeBitmap(t,o,l,c,u,h,d,g){if(t){return decodeMMRBitmap(new Reader(g.data,g.start,g.end),o,l,!1)}if(0===c&&!h&&!u&&4===d.length&&3===d[0].x&&-1===d[0].y&&-3===d[1].x&&-1===d[1].y&&2===d[2].x&&-2===d[2].y&&-2===d[3].x&&-2===d[3].y)return function decodeBitmapTemplate0(t,r,o){var l,c,u,h,d,m,g,y=o.decoder,v=o.contextCache.getContexts("GB"),S=[];for(c=0;c<r;c++){d=S[c]=new Uint8Array(t);m=c<1?d:S[c-1];l=(g=c<2?d:S[c-2])[0]<<13|g[1]<<12|g[2]<<11|m[0]<<7|m[1]<<6|m[2]<<5|m[3]<<4;for(u=0;u<t;u++){d[u]=h=y.readBit(v,l);l=(31735&l)<<1|(u+3<t?g[u+3]<<11:0)|(u+4<t?m[u+4]<<4:0)|h}}return S}(o,l,g);var y=!!h,v=r[c].concat(d);v.sort((function(t,r){return t.y-r.y||t.x-r.x}));var S,k,C=v.length,w=new Int8Array(C),_=new Int8Array(C),O=[],x=0,T=0,R=0,E=0;for(k=0;k<C;k++){w[k]=v[k].x;_[k]=v[k].y;T=Math.min(T,v[k].x);R=Math.max(R,v[k].x);E=Math.min(E,v[k].y);k<C-1&&v[k].y===v[k+1].y&&v[k].x===v[k+1].x-1?x|=1<<C-1-k:O.push(k)}var D=O.length,j=new Int8Array(D),M=new Int8Array(D),N=new Uint16Array(D);for(S=0;S<D;S++){k=O[S];j[S]=v[k].x;M[S]=v[k].y;N[S]=1<<C-1-k}for(var L,U,q,X,W,H=-T,z=-E,G=o-R,V=m[c],$=new Uint8Array(o),K=[],Y=g.decoder,J=g.contextCache.getContexts("GB"),Q=0,Z=0,ee=0;ee<l;ee++){if(u){if(Q^=Y.readBit(J,V)){K.push($);continue}}$=new Uint8Array($);K.push($);for(L=0;L<o;L++)if(y&&h[ee][L])$[L]=0;else{if(L>=H&&L<G&&ee>=z){Z=Z<<1&x;for(k=0;k<D;k++){U=ee+M[k];q=L+j[k];(X=K[U][q])&&(Z|=X=N[k])}}else{Z=0;W=C-1;for(k=0;k<C;k++,W--)(q=L+w[k])>=0&&q<o&&(U=ee+_[k])>=0&&(X=K[U][q])&&(Z|=X<<W)}var te=Y.readBit(J,Z);$[L]=te}}return K}function decodeRefinement(t,r,l,c,u,h,m,y,v){var S=o[l].coding;0===l&&(S=S.concat([y[0]]));var k,C=S.length,w=new Int32Array(C),_=new Int32Array(C);for(k=0;k<C;k++){w[k]=S[k].x;_[k]=S[k].y}var O=o[l].reference;0===l&&(O=O.concat([y[1]]));var x=O.length,T=new Int32Array(x),R=new Int32Array(x);for(k=0;k<x;k++){T[k]=O[k].x;R[k]=O[k].y}for(var E=c[0].length,D=c.length,j=g[l],M=[],N=v.decoder,L=v.contextCache.getContexts("GR"),U=0,q=0;q<r;q++){if(m){if(U^=N.readBit(L,j))throw new d("prediction is not supported")}var X=new Uint8Array(t);M.push(X);for(var W=0;W<t;W++){var H,z,G=0;for(k=0;k<C;k++){H=q+_[k];z=W+w[k];H<0||z<0||z>=t?G<<=1:G=G<<1|M[H][z]}for(k=0;k<x;k++){H=q+R[k]-h;z=W+T[k]-u;H<0||H>=D||z<0||z>=E?G<<=1:G=G<<1|c[H][z]}var V=N.readBit(L,G);X[W]=V}}return M}function decodeTextRegion(t,r,o,l,c,u,h,m,g,y,v,S,k,C,w,_,O,x,T){if(t&&r)throw new d("refinement with Huffman is not supported");var R,E,D=[];for(R=0;R<l;R++){E=new Uint8Array(o);if(c)for(var j=0;j<o;j++)E[j]=c;D.push(E)}var M=O.decoder,N=O.contextCache,L=t?-C.tableDeltaT.decode(T):-decodeInteger(N,"IADT",M),U=0;R=0;for(;R<u;){L+=t?C.tableDeltaT.decode(T):decodeInteger(N,"IADT",M);for(var q=U+=t?C.tableFirstS.decode(T):decodeInteger(N,"IAFS",M);;){var X=0;h>1&&(X=t?T.readBits(x):decodeInteger(N,"IAIT",M));var W=h*L+X,H=t?C.symbolIDTable.decode(T):decodeIAID(N,M,g),z=r&&(t?T.readBit():decodeInteger(N,"IARI",M)),G=m[H],V=G[0].length,$=G.length;if(z){var K=decodeInteger(N,"IARDW",M),Y=decodeInteger(N,"IARDH",M);G=decodeRefinement(V+=K,$+=Y,w,G,(K>>1)+decodeInteger(N,"IARDX",M),(Y>>1)+decodeInteger(N,"IARDY",M),!1,_,O)}var J,Q,Z,ee=W-(1&S?0:$-1),te=q-(2&S?V-1:0);if(y){for(J=0;J<$;J++)if(E=D[te+J]){Z=G[J];var re=Math.min(o-ee,V);switch(k){case 0:for(Q=0;Q<re;Q++)E[ee+Q]|=Z[Q];break;case 2:for(Q=0;Q<re;Q++)E[ee+Q]^=Z[Q];break;default:throw new d("operator ".concat(k," is not supported"))}}q+=$-1}else{for(Q=0;Q<$;Q++)if(E=D[ee+Q]){Z=G[Q];switch(k){case 0:for(J=0;J<V;J++)E[te+J]|=Z[J];break;case 2:for(J=0;J<V;J++)E[te+J]^=Z[J];break;default:throw new d("operator ".concat(k," is not supported"))}}q+=V-1}R++;var ae=t?C.tableDeltaS.decode(T):decodeInteger(N,"IADS",M);if(null===ae)break;q+=ae+v}}return D}function readSegmentHeader(r,o){var l={};l.number=(0,c.readUint32)(r,o);var u=r[o+4],h=63&u;if(!t[h])throw new d("invalid segment type: "+h);l.type=h;l.typeName=t[h];l.deferredNonRetain=!!(128&u);var m=!!(64&u),g=r[o+5],v=g>>5&7,S=[31&g],k=o+6;if(7===g){v=536870911&(0,c.readUint32)(r,k-1);k+=3;var C=v+7>>3;S[0]=r[k++];for(;--C>0;)S.push(r[k++])}else if(5===g||6===g)throw new d("invalid referred-to flags");l.retainBits=S;var w=4;l.number<=256?w=1:l.number<=65536&&(w=2);var _,O,x=[];for(_=0;_<v;_++){var T=void 0;T=1===w?r[k]:2===w?(0,c.readUint16)(r,k):(0,c.readUint32)(r,k);x.push(T);k+=w}l.referredTo=x;if(m){l.pageAssociation=(0,c.readUint32)(r,k);k+=4}else l.pageAssociation=r[k++];l.length=(0,c.readUint32)(r,k);k+=4;if(4294967295===l.length){if(38!==h)throw new d("invalid unknown segment length");var R=readRegionSegmentInformation(r,k),E=!!(1&r[k+y]),D=new Uint8Array(6);if(!E){D[0]=255;D[1]=172}D[2]=R.height>>>24&255;D[3]=R.height>>16&255;D[4]=R.height>>8&255;D[5]=255&R.height;for(_=k,O=r.length;_<O;_++){for(var j=0;j<6&&D[j]===r[_+j];)j++;if(6===j){l.length=_+6;break}}if(4294967295===l.length)throw new d("segment end was not found")}l.headerEnd=k;return l}function readSegments(t,r,o,l){for(var c=[],u=o;u<l;){var h=readSegmentHeader(r,u);u=h.headerEnd;var d={header:h,data:r};if(!t.randomAccess){d.start=u;u+=h.length;d.end=u}c.push(d);if(51===h.type)break}if(t.randomAccess)for(var m=0,g=c.length;m<g;m++){c[m].start=u;u+=c[m].header.length;c[m].end=u}return c}function readRegionSegmentInformation(t,r){return{width:(0,c.readUint32)(t,r),height:(0,c.readUint32)(t,r+4),x:(0,c.readUint32)(t,r+8),y:(0,c.readUint32)(t,r+12),combinationOperator:7&t[r+16]}}var y=17;function processSegment(t,r){var o,l,u,h,m=t.header,g=t.data,v=t.start,S=t.end;switch(m.type){case 0:var k={},C=(0,c.readUint16)(g,v);k.huffman=!!(1&C);k.refinement=!!(2&C);k.huffmanDHSelector=C>>2&3;k.huffmanDWSelector=C>>4&3;k.bitmapSizeSelector=C>>6&1;k.aggregationInstancesSelector=C>>7&1;k.bitmapCodingContextUsed=!!(256&C);k.bitmapCodingContextRetained=!!(512&C);k.template=C>>10&3;k.refinementTemplate=C>>12&1;v+=2;if(!k.huffman){h=0===k.template?4:1;l=[];for(u=0;u<h;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}k.at=l}if(k.refinement&&!k.refinementTemplate){l=[];for(u=0;u<2;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}k.refinementAt=l}k.numberOfExportedSymbols=(0,c.readUint32)(g,v);v+=4;k.numberOfNewSymbols=(0,c.readUint32)(g,v);v+=4;o=[k,m.number,m.referredTo,g,v,S];break;case 6:case 7:var w={};w.info=readRegionSegmentInformation(g,v);v+=y;var _=(0,c.readUint16)(g,v);v+=2;w.huffman=!!(1&_);w.refinement=!!(2&_);w.logStripSize=_>>2&3;w.stripSize=1<<w.logStripSize;w.referenceCorner=_>>4&3;w.transposed=!!(64&_);w.combinationOperator=_>>7&3;w.defaultPixelValue=_>>9&1;w.dsOffset=_<<17>>27;w.refinementTemplate=_>>15&1;if(w.huffman){var O=(0,c.readUint16)(g,v);v+=2;w.huffmanFS=3&O;w.huffmanDS=O>>2&3;w.huffmanDT=O>>4&3;w.huffmanRefinementDW=O>>6&3;w.huffmanRefinementDH=O>>8&3;w.huffmanRefinementDX=O>>10&3;w.huffmanRefinementDY=O>>12&3;w.huffmanRefinementSizeSelector=!!(16384&O)}if(w.refinement&&!w.refinementTemplate){l=[];for(u=0;u<2;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}w.refinementAt=l}w.numberOfSymbolInstances=(0,c.readUint32)(g,v);v+=4;o=[w,m.referredTo,g,v,S];break;case 16:var x={},T=g[v++];x.mmr=!!(1&T);x.template=T>>1&3;x.patternWidth=g[v++];x.patternHeight=g[v++];x.maxPatternIndex=(0,c.readUint32)(g,v);v+=4;o=[x,m.number,g,v,S];break;case 22:case 23:var R={};R.info=readRegionSegmentInformation(g,v);v+=y;var E=g[v++];R.mmr=!!(1&E);R.template=E>>1&3;R.enableSkip=!!(8&E);R.combinationOperator=E>>4&7;R.defaultPixelValue=E>>7&1;R.gridWidth=(0,c.readUint32)(g,v);v+=4;R.gridHeight=(0,c.readUint32)(g,v);v+=4;R.gridOffsetX=4294967295&(0,c.readUint32)(g,v);v+=4;R.gridOffsetY=4294967295&(0,c.readUint32)(g,v);v+=4;R.gridVectorX=(0,c.readUint16)(g,v);v+=2;R.gridVectorY=(0,c.readUint16)(g,v);v+=2;o=[R,m.referredTo,g,v,S];break;case 38:case 39:var D={};D.info=readRegionSegmentInformation(g,v);v+=y;var j=g[v++];D.mmr=!!(1&j);D.template=j>>1&3;D.prediction=!!(8&j);if(!D.mmr){h=0===D.template?4:1;l=[];for(u=0;u<h;u++){l.push({x:(0,c.readInt8)(g,v),y:(0,c.readInt8)(g,v+1)});v+=2}D.at=l}o=[D,g,v,S];break;case 48:var M={width:(0,c.readUint32)(g,v),height:(0,c.readUint32)(g,v+4),resolutionX:(0,c.readUint32)(g,v+8),resolutionY:(0,c.readUint32)(g,v+12)};4294967295===M.height&&delete M.height;var N=g[v+16];(0,c.readUint16)(g,v+17);M.lossless=!!(1&N);M.refinement=!!(2&N);M.defaultPixelValue=N>>2&1;M.combinationOperator=N>>3&3;M.requiresBuffer=!!(32&N);M.combinationOperatorOverride=!!(64&N);o=[M];break;case 49:case 50:case 51:break;case 53:o=[m.number,g,v,S];break;case 62:break;default:throw new d("segment type ".concat(m.typeName,"(").concat(m.type,")")+" is not implemented")}var L="on"+m.typeName;L in r&&r[L].apply(r,o)}function processSegments(t,r){for(var o=0,l=t.length;o<l;o++)processSegment(t[o],r)}function SimpleSegmentVisitor(){}SimpleSegmentVisitor.prototype={onPageInformation:function SimpleSegmentVisitor_onPageInformation(t){this.currentPageInfo=t;var r=t.width+7>>3,o=new Uint8ClampedArray(r*t.height);if(t.defaultPixelValue)for(var l=0,c=o.length;l<c;l++)o[l]=255;this.buffer=o},drawBitmap:function SimpleSegmentVisitor_drawBitmap(t,r){var o,l,c,u,h=this.currentPageInfo,m=t.width,g=t.height,y=h.width+7>>3,v=h.combinationOperatorOverride?t.combinationOperator:h.combinationOperator,S=this.buffer,k=128>>(7&t.x),C=t.y*y+(t.x>>3);switch(v){case 0:for(o=0;o<g;o++){c=k;u=C;for(l=0;l<m;l++){r[o][l]&&(S[u]|=c);if(!(c>>=1)){c=128;u++}}C+=y}break;case 2:for(o=0;o<g;o++){c=k;u=C;for(l=0;l<m;l++){r[o][l]&&(S[u]^=c);if(!(c>>=1)){c=128;u++}}C+=y}break;default:throw new d("operator ".concat(v," is not supported"))}},onImmediateGenericRegion:function SimpleSegmentVisitor_onImmediateGenericRegion(t,r,o,l){var c=t.info,u=new DecodingContext(r,o,l),h=decodeBitmap(t.mmr,c.width,c.height,t.template,t.prediction,null,t.at,u);this.drawBitmap(c,h)},onImmediateLosslessGenericRegion:function SimpleSegmentVisitor_onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function SimpleSegmentVisitor_onSymbolDictionary(t,r,o,l,u,h){var m,g;if(t.huffman){m=function getSymbolDictionaryHuffmanTables(t,r,o){var l,c,u,h,m=0;switch(t.huffmanDHSelector){case 0:case 1:l=getStandardTable(t.huffmanDHSelector+4);break;case 3:l=getCustomHuffmanTable(m,r,o);m++;break;default:throw new d("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:c=getStandardTable(t.huffmanDWSelector+2);break;case 3:c=getCustomHuffmanTable(m,r,o);m++;break;default:throw new d("invalid Huffman DW selector")}if(t.bitmapSizeSelector){u=getCustomHuffmanTable(m,r,o);m++}else u=getStandardTable(1);h=t.aggregationInstancesSelector?getCustomHuffmanTable(m,r,o):getStandardTable(1);return{tableDeltaHeight:l,tableDeltaWidth:c,tableBitmapSize:u,tableAggregateInstances:h}}(t,o,this.customTables);g=new Reader(l,u,h)}var y=this.symbols;y||(this.symbols=y={});for(var v=[],S=0,k=o.length;S<k;S++){var C=y[o[S]];C&&(v=v.concat(C))}var w=new DecodingContext(l,u,h);y[r]=function decodeSymbolDictionary(t,r,o,l,u,h,m,g,y,v,S,k){if(t&&r)throw new d("symbol refinement with Huffman is not supported");var C,w,_=[],O=0,x=(0,c.log2)(o.length+l),T=S.decoder,R=S.contextCache;if(t){C=getStandardTable(1);w=[];x=Math.max(x,1)}for(;_.length<l;){O+=t?h.tableDeltaHeight.decode(k):decodeInteger(R,"IADH",T);for(var E=0,D=0,j=t?w.length:0;;){var M,N=t?h.tableDeltaWidth.decode(k):decodeInteger(R,"IADW",T);if(null===N)break;D+=E+=N;if(r){var L=decodeInteger(R,"IAAI",T);if(L>1)M=decodeTextRegion(t,r,E,O,0,L,1,o.concat(_),x,0,0,1,0,h,y,v,S,0,k);else{var U=decodeIAID(R,T,x),q=decodeInteger(R,"IARDX",T),X=decodeInteger(R,"IARDY",T);M=decodeRefinement(E,O,y,U<o.length?o[U]:_[U-o.length],q,X,!1,v,S)}_.push(M)}else if(t)w.push(E);else{M=decodeBitmap(!1,E,O,m,!1,null,g,S);_.push(M)}}if(t&&!r){var W=h.tableBitmapSize.decode(k);k.byteAlign();var H=void 0;if(0===W)H=readUncompressedBitmap(k,D,O);else{var z=k.end,G=k.position+W;k.end=G;H=decodeMMRBitmap(k,D,O,!1);k.end=z;k.position=G}var V=w.length;if(j===V-1)_.push(H);else{var $=void 0,K=void 0,Y=0,J=void 0,Q=void 0;for($=j;$<V;$++){J=Y+w[$];Q=[];for(K=0;K<O;K++)Q.push(H[K].subarray(Y,J));_.push(Q);Y=J}}}}for(var Z=[],ee=[],te=!1,re=o.length+l;ee.length<re;){for(var ae=t?C.decode(k):decodeInteger(R,"IAEX",T);ae--;)ee.push(te);te=!te}for(var ne=0,ie=o.length;ne<ie;ne++)ee[ne]&&Z.push(o[ne]);for(var oe=0;oe<l;ne++,oe++)ee[ne]&&Z.push(_[oe]);return Z}(t.huffman,t.refinement,v,t.numberOfNewSymbols,t.numberOfExportedSymbols,m,t.template,t.at,t.refinementTemplate,t.refinementAt,w,g)},onImmediateTextRegion:function SimpleSegmentVisitor_onImmediateTextRegion(t,r,o,l,u){for(var h,m,g=t.info,y=this.symbols,v=[],S=0,k=r.length;S<k;S++){var C=y[r[S]];C&&(v=v.concat(C))}var w=(0,c.log2)(v.length);if(t.huffman){m=new Reader(o,l,u);h=function getTextRegionHuffmanTables(t,r,o,l,c){for(var u=[],h=0;h<=34;h++){var m=c.readBits(4);u.push(new HuffmanLine([h,m,0,0]))}var g=new HuffmanTable(u,!1);u.length=0;for(var y=0;y<l;){var v=g.decode(c);if(v>=32){var S=void 0,k=void 0,C=void 0;switch(v){case 32:if(0===y)throw new d("no previous value in symbol ID table");k=c.readBits(2)+3;S=u[y-1].prefixLength;break;case 33:k=c.readBits(3)+3;S=0;break;case 34:k=c.readBits(7)+11;S=0;break;default:throw new d("invalid code length in symbol ID table")}for(C=0;C<k;C++){u.push(new HuffmanLine([y,S,0,0]));y++}}else{u.push(new HuffmanLine([y,v,0,0]));y++}}c.byteAlign();var w,_,O,x=new HuffmanTable(u,!1),T=0;switch(t.huffmanFS){case 0:case 1:w=getStandardTable(t.huffmanFS+6);break;case 3:w=getCustomHuffmanTable(T,r,o);T++;break;default:throw new d("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:_=getStandardTable(t.huffmanDS+8);break;case 3:_=getCustomHuffmanTable(T,r,o);T++;break;default:throw new d("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:O=getStandardTable(t.huffmanDT+11);break;case 3:O=getCustomHuffmanTable(T,r,o);T++;break;default:throw new d("invalid Huffman DT selector")}if(t.refinement)throw new d("refinement with Huffman is not supported");return{symbolIDTable:x,tableFirstS:w,tableDeltaS:_,tableDeltaT:O}}(t,r,this.customTables,v.length,m)}var _=new DecodingContext(o,l,u),O=decodeTextRegion(t.huffman,t.refinement,g.width,g.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,v,w,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,h,t.refinementTemplate,t.refinementAt,_,t.logStripSize,m);this.drawBitmap(g,O)},onImmediateLosslessTextRegion:function SimpleSegmentVisitor_onImmediateLosslessTextRegion(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary:function onPatternDictionary(t,r,o,l,c){var u=this.patterns;u||(this.patterns=u={});var h=new DecodingContext(o,l,c);u[r]=function decodePatternDictionary(t,r,o,l,c,u){var h=[];if(!t){h.push({x:-r,y:0});if(0===c){h.push({x:-3,y:-1});h.push({x:2,y:-2});h.push({x:-2,y:-2})}}for(var d=decodeBitmap(t,(l+1)*r,o,c,!1,null,h,u),m=[],g=0;g<=l;g++){for(var y=[],v=r*g,S=v+r,k=0;k<o;k++)y.push(d[k].subarray(v,S));m.push(y)}return m}(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,h)},onImmediateHalftoneRegion:function onImmediateHalftoneRegion(t,r,o,l,u){var h=this.patterns[r[0]],m=t.info,g=new DecodingContext(o,l,u),y=function decodeHalftoneRegion(t,r,o,l,u,h,m,g,y,v,S,k,C,w,_){if(m)throw new d("skip is not supported");if(0!==g)throw new d("operator "+g+" is not supported in halftone region");var O,x,T,R=[];for(O=0;O<u;O++){T=new Uint8Array(l);if(h)for(x=0;x<l;x++)T[x]=h;R.push(T)}var E=r.length,D=r[0],j=D[0].length,M=D.length,N=(0,c.log2)(E),L=[];if(!t){L.push({x:o<=1?3:2,y:-1});if(0===o){L.push({x:-3,y:-1});L.push({x:2,y:-2});L.push({x:-2,y:-2})}}var U,q,X,W,H,z,G,V,$,K,Y,J=[];t&&(U=new Reader(_.data,_.start,_.end));for(O=N-1;O>=0;O--){q=t?decodeMMRBitmap(U,y,v,!0):decodeBitmap(!1,y,v,o,!1,null,L,_);J[O]=q}for(X=0;X<v;X++)for(W=0;W<y;W++){H=0;z=0;for(x=N-1;x>=0;x--)z|=(H=J[x][X][W]^H)<<x;G=r[z];$=k+X*C-W*w>>8;if((V=S+X*w+W*C>>8)>=0&&V+j<=l&&$>=0&&$+M<=u)for(O=0;O<M;O++){Y=R[$+O];K=G[O];for(x=0;x<j;x++)Y[V+x]|=K[x]}else{var Q=void 0,Z=void 0;for(O=0;O<M;O++)if(!((Z=$+O)<0||Z>=u)){Y=R[Z];K=G[O];for(x=0;x<j;x++)(Q=V+x)>=0&&Q<l&&(Y[Q]|=K[x])}}}return R}(t.mmr,h,t.template,m.width,m.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,g);this.drawBitmap(m,y)},onImmediateLosslessHalftoneRegion:function onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables:function onTables(t,r,o,l){var u=this.customTables;u||(this.customTables=u={});u[t]=function decodeTablesSegment(t,r,o){var l,u,h=t[r],d=4294967295&(0,c.readUint32)(t,r+1),m=4294967295&(0,c.readUint32)(t,r+5),g=new Reader(t,r+9,o),y=1+(h>>1&7),v=1+(h>>4&7),S=[],k=d;do{l=g.readBits(y);u=g.readBits(v);S.push(new HuffmanLine([k,l,u,0]));k+=1<<u}while(k<m);l=g.readBits(y);S.push(new HuffmanLine([d-1,l,32,0,"lower"]));l=g.readBits(y);S.push(new HuffmanLine([m,l,32,0]));if(1&h){l=g.readBits(y);S.push(new HuffmanLine([l,0]))}return new HuffmanTable(S,!1)}(r,o,l)}};function HuffmanLine(t){if(2===t.length){this.isOOB=!0;this.rangeLow=0;this.prefixLength=t[0];this.rangeLength=0;this.prefixCode=t[1];this.isLowerRange=!1}else{this.isOOB=!1;this.rangeLow=t[0];this.prefixLength=t[1];this.rangeLength=t[2];this.prefixCode=t[3];this.isLowerRange="lower"===t[4]}}function HuffmanTreeNode(t){this.children=[];if(t){this.isLeaf=!0;this.rangeLength=t.rangeLength;this.rangeLow=t.rangeLow;this.isLowerRange=t.isLowerRange;this.isOOB=t.isOOB}else this.isLeaf=!1}HuffmanTreeNode.prototype={buildTree:function buildTree(t,r){var o=t.prefixCode>>r&1;if(r<=0)this.children[o]=new HuffmanTreeNode(t);else{var l=this.children[o];l||(this.children[o]=l=new HuffmanTreeNode(null));l.buildTree(t,r-1)}},decodeNode:function decodeNode(t){if(this.isLeaf){if(this.isOOB)return null;var r=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-r:r)}var o=this.children[t.readBit()];if(!o)throw new d("invalid Huffman data");return o.decodeNode(t)}};function HuffmanTable(t,r){r||this.assignPrefixCodes(t);this.rootNode=new HuffmanTreeNode(null);for(var o=0,l=t.length;o<l;o++){var c=t[o];c.prefixLength>0&&this.rootNode.buildTree(c,c.prefixLength-1)}}HuffmanTable.prototype={decode:function decode(t){return this.rootNode.decodeNode(t)},assignPrefixCodes:function assignPrefixCodes(t){for(var r=t.length,o=0,l=0;l<r;l++)o=Math.max(o,t[l].prefixLength);for(var c=new Uint32Array(o+1),u=0;u<r;u++)c[t[u].prefixLength]++;var h,d,m,g=1,y=0;c[0]=0;for(;g<=o;){h=y=y+c[g-1]<<1;d=0;for(;d<r;){if((m=t[d]).prefixLength===g){m.prefixCode=h;h++}d++}g++}}};var v={};function getStandardTable(t){var r,o=v[t];if(o)return o;switch(t){case 1:r=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:r=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:r=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:r=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:r=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:r=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:r=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:r=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:r=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:r=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:r=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:r=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:r=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:r=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:r=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new d("standard table B.".concat(t," does not exist"))}for(var l=0,c=r.length;l<c;l++)r[l]=new HuffmanLine(r[l]);o=new HuffmanTable(r,!0);v[t]=o;return o}function Reader(t,r,o){this.data=t;this.start=r;this.end=o;this.position=r;this.shift=-1;this.currentByte=0}Reader.prototype={readBit:function readBit(){if(this.shift<0){if(this.position>=this.end)throw new d("end of data while reading bit");this.currentByte=this.data[this.position++];this.shift=7}var t=this.currentByte>>this.shift&1;this.shift--;return t},readBits:function readBits(t){var r,o=0;for(r=t-1;r>=0;r--)o|=this.readBit()<<r;return o},byteAlign:function byteAlign(){this.shift=-1},next:function next(){return this.position>=this.end?-1:this.data[this.position++]}};function getCustomHuffmanTable(t,r,o){for(var l=0,c=0,u=r.length;c<u;c++){var h=o[r[c]];if(h){if(t===l)return h;l++}}throw new d("can't find custom Huffman table")}function readUncompressedBitmap(t,r,o){for(var l=[],c=0;c<o;c++){var u=new Uint8Array(r);l.push(u);for(var h=0;h<r;h++)u[h]=t.readBit();t.byteAlign()}return l}function decodeMMRBitmap(t,r,o,l){for(var c,u={K:-1,Columns:r,Rows:o,BlackIs1:!0,EndOfBlock:l},d=new h.CCITTFaxDecoder(t,u),m=[],g=!1,y=0;y<o;y++){var v=new Uint8Array(r);m.push(v);for(var S=-1,k=0;k<r;k++){if(S<0){if(-1===(c=d.readNextChar())){c=0;g=!0}S=7}v[k]=c>>S&1;S--}}if(l&&!g)for(var C=0;C<5&&-1!==d.readNextChar();C++);return m}function Jbig2Image(){}Jbig2Image.prototype={parseChunks:function parseChunks(t){return function parseJbig2Chunks(t){for(var r=new SimpleSegmentVisitor,o=0,l=t.length;o<l;o++){var c=t[o];processSegments(readSegments({},c.data,c.start,c.end),r)}return r.buffer}(t)},parse:function parse(t){var r=function parseJbig2(t){var r=t.length,o=0;if(151!==t[o]||74!==t[o+1]||66!==t[o+2]||50!==t[o+3]||13!==t[o+4]||10!==t[o+5]||26!==t[o+6]||10!==t[o+7])throw new d("parseJbig2 - invalid header.");var l=Object.create(null);o+=8;var u=t[o++];l.randomAccess=!(1&u);if(!(2&u)){l.numberOfPages=(0,c.readUint32)(t,o);o+=4}var h=readSegments(l,t,o,r),m=new SimpleSegmentVisitor;processSegments(h,m);for(var g=m.currentPageInfo,y=g.width,v=g.height,S=m.buffer,k=new Uint8ClampedArray(y*v),C=0,w=0,_=0;_<v;_++)for(var O=0,x=void 0,T=0;T<y;T++){if(!O){O=128;x=S[w++]}k[C++]=x&O?0:255;O>>=1}return{imgData:k,width:y,height:v}}(t),o=r.imgData,l=r.width,u=r.height;this.width=l;this.height=u;return o}};return Jbig2Image}();r.Jbig2Image=m},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ArithmeticDecoder=void 0;function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var o=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],l=function(){function ArithmeticDecoder(t,r,o){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,ArithmeticDecoder);this.data=t;this.bp=r;this.dataEnd=o;this.chigh=t[r];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(ArithmeticDecoder,[{key:"byteIn",value:function byteIn(){var t=this.data,r=this.bp;if(255===t[r])if(t[r+1]>143){this.clow+=65280;this.ct=8}else{r++;this.clow+=t[r]<<9;this.ct=7;this.bp=r}else{r++;this.clow+=r<this.dataEnd?t[r]<<8:65280;this.ct=8;this.bp=r}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}},{key:"readBit",value:function readBit(t,r){var l,c=t[r]>>1,u=1&t[r],h=o[c],d=h.qe,m=this.a-d;if(this.chigh<d)if(m<d){m=d;l=u;c=h.nmps}else{m=d;l=1^u;1===h.switchFlag&&(u=l);c=h.nlps}else{this.chigh-=d;if(0!=(32768&m)){this.a=m;return u}if(m<d){l=1^u;1===h.switchFlag&&(u=l);c=h.nlps}else{l=u;c=h.nmps}}do{0===this.ct&&this.byteIn();m<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&m));this.a=m;t[r]=c<<1|u;return l}}]);return ArithmeticDecoder}();r.ArithmeticDecoder=l},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegStream=void 0;var l=o(132),c=o(125),u=o(139),h=o(4),d=function JpegStreamClosure(){function JpegStream(t,r,o,c){for(var u;-1!==(u=t.getByte());)if(255===u){t.skip(-1);break}this.stream=t;this.maybeLength=r;this.dict=o;this.params=c;l.DecodeStream.call(this,r)}JpegStream.prototype=Object.create(l.DecodeStream.prototype);Object.defineProperty(JpegStream.prototype,"bytes",{get:function JpegStream_bytes(){return(0,h.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});JpegStream.prototype.ensureBuffer=function(t){};JpegStream.prototype.readBlock=function(){if(!this.eof){var t={decodeTransform:void 0,colorTransform:void 0},r=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(r)){for(var o=this.dict.get("BitsPerComponent")||8,l=r.length,h=new Int32Array(l),d=!1,m=(1<<o)-1,g=0;g<l;g+=2){h[g]=256*(r[g+1]-r[g])|0;h[g+1]=r[g]*m|0;256===h[g]&&0===h[g+1]||(d=!0)}d&&(t.decodeTransform=h)}if((0,c.isDict)(this.params)){var y=this.params.get("ColorTransform");Number.isInteger(y)&&(t.colorTransform=y)}var v=new u.JpegImage(t);v.parse(this.bytes);var S=v.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=S;this.bufferLength=S.length;this.eof=!0}};return JpegStream}();r.JpegStream=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpegImage=void 0;var l=o(4),c=o(128);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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){_inherits(JpegError,t);var r=_createSuper(JpegError);function JpegError(t){_classCallCheck(this,JpegError);return r.call(this,"JPEG error: ".concat(t))}return JpegError}(l.BaseException),h=function(t){_inherits(DNLMarkerError,t);var r=_createSuper(DNLMarkerError);function DNLMarkerError(t,o){var l;_classCallCheck(this,DNLMarkerError);(l=r.call(this,t)).scanLines=o;return l}return DNLMarkerError}(l.BaseException),d=function(t){_inherits(EOIMarkerError,t);var r=_createSuper(EOIMarkerError);function EOIMarkerError(){_classCallCheck(this,EOIMarkerError);return r.apply(this,arguments)}return EOIMarkerError}(l.BaseException),m=function JpegImageClosure(){var t=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),r=4017,o=799,m=3406,g=2276,y=1567,v=3784,S=5793,k=2896;function JpegImage(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.decodeTransform,o=void 0===r?null:r,l=t.colorTransform,c=void 0===l?-1:l;this._decodeTransform=o;this._colorTransform=c}function buildHuffmanTable(t,r){for(var o,l,c=0,u=[],h=16;h>0&&!t[h-1];)h--;u.push({children:[],index:0});var d,m=u[0];for(o=0;o<h;o++){for(l=0;l<t[o];l++){(m=u.pop()).children[m.index]=r[c];for(;m.index>0;)m=u.pop();m.index++;u.push(m);for(;u.length<=o;){u.push(d={children:[],index:0});m.children[m.index]=d.children;m=d}c++}if(o+1<h){u.push(d={children:[],index:0});m.children[m.index]=d.children;m=d}}return u[0].children}function getBlockBufferOffset(t,r,o){return 64*((t.blocksPerLine+1)*r+o)}function decodeScan(r,o,m,g,y,v,S,k,C){var w=arguments.length>9&&void 0!==arguments[9]&&arguments[9],_=m.mcusPerLine,O=m.progressive,x=o,T=0,R=0;function readBit(){if(R>0){R--;return T>>R&1}if(255===(T=r[o++])){var t=r[o++];if(t){if(220===t&&w){o+=2;var l=(0,c.readUint16)(r,o);o+=2;if(l>0&&l!==m.scanLines)throw new h("Found DNL marker (0xFFDC) while parsing scan data",l)}else if(217===t){if(w){var g=M*(8===m.precision?8:0);if(g>0&&Math.round(m.scanLines/g)>=10)throw new h("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",g)}throw new d("Found EOI marker (0xFFD9) while parsing scan data")}throw new u("unexpected marker ".concat((T<<8|t).toString(16)))}}R=7;return T>>>7}function decodeHuffman(t){for(var r=t;;){switch(_typeof(r=r[readBit()])){case"number":return r;case"object":continue}throw new u("invalid huffman sequence")}}function receive(t){for(var r=0;t>0;){r=r<<1|readBit();t--}return r}function receiveAndExtend(t){if(1===t)return 1===readBit()?1:-1;var r=receive(t);return r>=1<<t-1?r:r+(-1<<t)+1}function decodeBaseline(r,o){var l=decodeHuffman(r.huffmanTableDC),c=0===l?0:receiveAndExtend(l);r.blockData[o]=r.pred+=c;for(var u=1;u<64;){var h=decodeHuffman(r.huffmanTableAC),d=15&h,m=h>>4;if(0!==d){var g=t[u+=m];r.blockData[o+g]=receiveAndExtend(d);u++}else{if(m<15)break;u+=16}}}function decodeDCFirst(t,r){var o=decodeHuffman(t.huffmanTableDC),l=0===o?0:receiveAndExtend(o)<<C;t.blockData[r]=t.pred+=l}function decodeDCSuccessive(t,r){t.blockData[r]|=readBit()<<C}var E=0;function decodeACFirst(r,o){if(E>0)E--;else for(var l=v,c=S;l<=c;){var u=decodeHuffman(r.huffmanTableAC),h=15&u,d=u>>4;if(0!==h){var m=t[l+=d];r.blockData[o+m]=receiveAndExtend(h)*(1<<C);l++}else{if(d<15){E=receive(d)+(1<<d)-1;break}l+=16}}}var D,j=0;function decodeACSuccessive(r,o){for(var l,c,h=v,d=S,m=0;h<=d;){var g=o+t[h],y=r.blockData[g]<0?-1:1;switch(j){case 0:m=(c=decodeHuffman(r.huffmanTableAC))>>4;if(0===(l=15&c))if(m<15){E=receive(m)+(1<<m);j=4}else{m=16;j=1}else{if(1!==l)throw new u("invalid ACn encoding");D=receiveAndExtend(l);j=m?2:3}continue;case 1:case 2:r.blockData[g]?r.blockData[g]+=y*(readBit()<<C):0===--m&&(j=2===j?3:0);break;case 3:if(r.blockData[g])r.blockData[g]+=y*(readBit()<<C);else{r.blockData[g]=D<<C;j=0}break;case 4:r.blockData[g]&&(r.blockData[g]+=y*(readBit()<<C))}h++}4===j&&0===--E&&(j=0)}var M=0;function decodeMcu(t,r,o,l,c){var u=o%_;M=(o/_|0)*t.v+l;var h=u*t.h+c;r(t,getBlockBufferOffset(t,M,h))}function decodeBlock(t,r,o){M=o/t.blocksPerLine|0;var l=o%t.blocksPerLine;r(t,getBlockBufferOffset(t,M,l))}var N,L,U,q,X,W,H=g.length;W=O?0===v?0===k?decodeDCFirst:decodeDCSuccessive:0===k?decodeACFirst:decodeACSuccessive:decodeBaseline;var z,G,V,$,K=0;G=1===H?g[0].blocksPerLine*g[0].blocksPerColumn:_*m.mcusPerColumn;for(;K<=G;){var Y=y?Math.min(G-K,y):G;if(Y>0){for(L=0;L<H;L++)g[L].pred=0;E=0;if(1===H){N=g[0];for(X=0;X<Y;X++){decodeBlock(N,W,K);K++}}else for(X=0;X<Y;X++){for(L=0;L<H;L++){V=(N=g[L]).h;$=N.v;for(U=0;U<$;U++)for(q=0;q<V;q++)decodeMcu(N,W,K,U,q)}K++}}R=0;if(!(z=findNextFileMarker(r,o)))break;if(z.invalid){var J=Y>0?"unexpected":"excessive";(0,l.warn)("decodeScan - ".concat(J," MCU data, current marker is: ").concat(z.invalid));o=z.offset}if(!(z.marker>=65488&&z.marker<=65495))break;o+=2}return o-x}function quantizeAndInverse(t,l,c){var h,d,C,w,_,O,x,T,R,E,D,j,M,N,L,U,q,X=t.quantizationTable,W=t.blockData;if(!X)throw new u("missing required Quantization Table.");for(var H=0;H<64;H+=8){R=W[l+H];E=W[l+H+1];D=W[l+H+2];j=W[l+H+3];M=W[l+H+4];N=W[l+H+5];L=W[l+H+6];U=W[l+H+7];R*=X[H];if(0!=(E|D|j|M|N|L|U)){E*=X[H+1];D*=X[H+2];j*=X[H+3];M*=X[H+4];N*=X[H+5];L*=X[H+6];U*=X[H+7];d=(h=(h=S*R+128>>8)+(d=S*M+128>>8)+1>>1)-d;q=(C=D)*v+(w=L)*y+128>>8;C=C*y-w*v+128>>8;x=(_=(_=k*(E-U)+128>>8)+(x=N<<4)+1>>1)-x;O=(T=(T=k*(E+U)+128>>8)+(O=j<<4)+1>>1)-O;w=(h=h+(w=q)+1>>1)-w;C=(d=d+C+1>>1)-C;q=_*g+T*m+2048>>12;_=_*m-T*g+2048>>12;T=q;q=O*o+x*r+2048>>12;O=O*r-x*o+2048>>12;x=q;c[H]=h+T;c[H+7]=h-T;c[H+1]=d+x;c[H+6]=d-x;c[H+2]=C+O;c[H+5]=C-O;c[H+3]=w+_;c[H+4]=w-_}else{q=S*R+512>>10;c[H]=q;c[H+1]=q;c[H+2]=q;c[H+3]=q;c[H+4]=q;c[H+5]=q;c[H+6]=q;c[H+7]=q}}for(var z=0;z<8;++z){R=c[z];if(0!=((E=c[z+8])|(D=c[z+16])|(j=c[z+24])|(M=c[z+32])|(N=c[z+40])|(L=c[z+48])|(U=c[z+56]))){d=(h=4112+((h=S*R+2048>>12)+(d=S*M+2048>>12)+1>>1))-d;q=(C=D)*v+(w=L)*y+2048>>12;C=C*y-w*v+2048>>12;w=q;x=(_=(_=k*(E-U)+2048>>12)+(x=N)+1>>1)-x;O=(T=(T=k*(E+U)+2048>>12)+(O=j)+1>>1)-O;q=_*g+T*m+2048>>12;_=_*m-T*g+2048>>12;T=q;q=O*o+x*r+2048>>12;O=O*r-x*o+2048>>12;(R=(h=h+w+1>>1)+T)<16?R=0:R>=4080?R=255:R>>=4;(E=(d=d+C+1>>1)+(x=q))<16?E=0:E>=4080?E=255:E>>=4;(D=(C=d-C)+O)<16?D=0:D>=4080?D=255:D>>=4;(j=(w=h-w)+_)<16?j=0:j>=4080?j=255:j>>=4;(M=w-_)<16?M=0:M>=4080?M=255:M>>=4;(N=C-O)<16?N=0:N>=4080?N=255:N>>=4;(L=d-x)<16?L=0:L>=4080?L=255:L>>=4;(U=h-T)<16?U=0:U>=4080?U=255:U>>=4;W[l+z]=R;W[l+z+8]=E;W[l+z+16]=D;W[l+z+24]=j;W[l+z+32]=M;W[l+z+40]=N;W[l+z+48]=L;W[l+z+56]=U}else{q=(q=S*R+8192>>14)<-2040?0:q>=2024?255:q+2056>>4;W[l+z]=q;W[l+z+8]=q;W[l+z+16]=q;W[l+z+24]=q;W[l+z+32]=q;W[l+z+40]=q;W[l+z+48]=q;W[l+z+56]=q}}}function buildComponentData(t,r){for(var o=r.blocksPerLine,l=r.blocksPerColumn,c=new Int16Array(64),u=0;u<l;u++)for(var h=0;h<o;h++){quantizeAndInverse(r,getBlockBufferOffset(r,u,h),c)}return r.blockData}function findNextFileMarker(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,l=t.length-1,u=o<r?o:r;if(r>=l)return null;var h=(0,c.readUint16)(t,r);if(h>=65472&&h<=65534)return{invalid:null,marker:h,offset:r};for(var d=(0,c.readUint16)(t,u);!(d>=65472&&d<=65534);){if(++u>=l)return null;d=(0,c.readUint16)(t,u)}return{invalid:h.toString(16),marker:d,offset:u}}JpegImage.prototype={parse:function parse(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=o.dnlScanLines,g=void 0===m?null:m;function readDataBlock(){var t=(0,c.readUint16)(r,S),o=(S+=2)+t-2,u=findNextFileMarker(r,o,S);if(u&&u.invalid){(0,l.warn)("readDataBlock - incorrect length, current marker is: "+u.invalid);o=u.offset}var h=r.subarray(S,o);S+=h.length;return h}function prepareComponents(t){for(var r=Math.ceil(t.samplesPerLine/8/t.maxH),o=Math.ceil(t.scanLines/8/t.maxV),l=0;l<t.components.length;l++){te=t.components[l];var c=Math.ceil(Math.ceil(t.samplesPerLine/8)*te.h/t.maxH),u=Math.ceil(Math.ceil(t.scanLines/8)*te.v/t.maxV),h=r*te.h,d=64*(o*te.v)*(h+1);te.blockData=new Int16Array(d);te.blocksPerLine=c;te.blocksPerColumn=u}t.mcusPerLine=r;t.mcusPerColumn=o}var y,v,S=0,k=null,C=null,w=0,_=[],O=[],x=[],T=(0,c.readUint16)(r,S);S+=2;if(65496!==T)throw new u("SOI not found");T=(0,c.readUint16)(r,S);S+=2;e:for(;65497!==T;){var R,E,D;switch(T){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var j=readDataBlock();65504===T&&74===j[0]&&70===j[1]&&73===j[2]&&70===j[3]&&0===j[4]&&(k={version:{major:j[5],minor:j[6]},densityUnits:j[7],xDensity:j[8]<<8|j[9],yDensity:j[10]<<8|j[11],thumbWidth:j[12],thumbHeight:j[13],thumbData:j.subarray(14,14+3*j[12]*j[13])});65518===T&&65===j[0]&&100===j[1]&&111===j[2]&&98===j[3]&&101===j[4]&&(C={version:j[5]<<8|j[6],flags0:j[7]<<8|j[8],flags1:j[9]<<8|j[10],transformCode:j[11]});break;case 65499:for(var M=(0,c.readUint16)(r,S),N=M+(S+=2)-2;S<N;){var L=r[S++],U=new Uint16Array(64);if(L>>4==0)for(E=0;E<64;E++)U[t[E]]=r[S++];else{if(L>>4!=1)throw new u("DQT - invalid table spec");for(E=0;E<64;E++){U[t[E]]=(0,c.readUint16)(r,S);S+=2}}_[15&L]=U}break;case 65472:case 65473:case 65474:if(y)throw new u("Only single frame JPEGs supported");S+=2;(y={}).extended=65473===T;y.progressive=65474===T;y.precision=r[S++];var q=(0,c.readUint16)(r,S);S+=2;y.scanLines=g||q;y.samplesPerLine=(0,c.readUint16)(r,S);S+=2;y.components=[];y.componentIds={};var X,W=r[S++],H=0,z=0;for(R=0;R<W;R++){X=r[S];var G=r[S+1]>>4,V=15&r[S+1];H<G&&(H=G);z<V&&(z=V);var $=r[S+2];D=y.components.push({h:G,v:V,quantizationId:$,quantizationTable:null});y.componentIds[X]=D-1;S+=3}y.maxH=H;y.maxV=z;prepareComponents(y);break;case 65476:var K=(0,c.readUint16)(r,S);S+=2;for(R=2;R<K;){var Y=r[S++],J=new Uint8Array(16),Q=0;for(E=0;E<16;E++,S++)Q+=J[E]=r[S];var Z=new Uint8Array(Q);for(E=0;E<Q;E++,S++)Z[E]=r[S];R+=17+Q;(Y>>4==0?x:O)[15&Y]=buildHuffmanTable(J,Z)}break;case 65501:S+=2;v=(0,c.readUint16)(r,S);S+=2;break;case 65498:var ee=1==++w&&!g;S+=2;var te,re=r[S++],ae=[];for(R=0;R<re;R++){var ne=r[S++],ie=y.componentIds[ne];(te=y.components[ie]).index=ne;var oe=r[S++];te.huffmanTableDC=x[oe>>4];te.huffmanTableAC=O[15&oe];ae.push(te)}var se=r[S++],le=r[S++],ce=r[S++];try{var ue=decodeScan(r,S,y,ae,v,se,le,ce>>4,15&ce,ee);S+=ue}catch(t){if(t instanceof h){(0,l.warn)("".concat(t.message," -- attempting to re-parse the JPEG image."));return this.parse(r,{dnlScanLines:t.scanLines})}if(t instanceof d){(0,l.warn)("".concat(t.message," -- ignoring the rest of the image data."));break e}throw t}break;case 65500:S+=4;break;case 65535:255!==r[S]&&S--;break;default:var fe=findNextFileMarker(r,S-2,S-3);if(fe&&fe.invalid){(0,l.warn)("JpegImage.parse - unexpected data, current marker is: "+fe.invalid);S=fe.offset;break}if(!fe||S>=r.length-1){(0,l.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new u("JpegImage.parse - unknown marker: "+T.toString(16))}T=(0,c.readUint16)(r,S);S+=2}this.width=y.samplesPerLine;this.height=y.scanLines;this.jfif=k;this.adobe=C;this.components=[];for(R=0;R<y.components.length;R++){var he=_[(te=y.components[R]).quantizationId];he&&(te.quantizationTable=he);this.components.push({index:te.index,output:buildComponentData(0,te),scaleX:te.h/y.maxH,scaleY:te.v/y.maxV,blocksPerLine:te.blocksPerLine,blocksPerColumn:te.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function _getLinearizedBlockData(t,r){var o,l,c,u,h,d,m,g,y,v,S,k,C=arguments.length>2&&void 0!==arguments[2]&&arguments[2],w=this.width/t,_=this.height/r,O=0,x=this.components.length,T=t*r*x,R=new Uint8ClampedArray(T),E=new Uint32Array(t),D=4294967288;for(m=0;m<x;m++){l=(o=this.components[m]).scaleX*w;c=o.scaleY*_;O=m;S=o.output;u=o.blocksPerLine+1<<3;if(l!==k){for(h=0;h<t;h++){g=0|h*l;E[h]=(g&D)<<3|7&g}k=l}for(d=0;d<r;d++){v=u*((g=0|d*c)&D)|(7&g)<<3;for(h=0;h<t;h++){R[O]=S[v+E[h]];O+=x}}}var j=this._decodeTransform;C||4!==x||j||(j=new Int32Array([-256,255,-256,255,-256,255,-256,255]));if(j)for(m=0;m<T;)for(g=0,y=0;g<x;g++,m++,y+=2)R[m]=(R[m]*j[y]>>8)+j[y+1];return R},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform},_convertYccToRgb:function convertYccToRgb(t){for(var r,o,l,c=0,u=t.length;c<u;c+=3){r=t[c];o=t[c+1];l=t[c+2];t[c]=r-179.456+1.402*l;t[c+1]=r+135.459-.344*o-.714*l;t[c+2]=r-226.816+1.772*o}return t},_convertYcckToRgb:function convertYcckToRgb(t){for(var r,o,l,c,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];l=t[h+2];c=t[h+3];t[u++]=o*(-660635669420364e-19*o+.000437130475926232*l-54080610064599e-18*r+.00048449797120281*c-.154362151871126)-122.67195406894+l*(-.000957964378445773*l+.000817076911346625*r-.00477271405408747*c+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*c+.48357088451265)+c*(-.000336197177618394*c+.484791561490776);t[u++]=107.268039397724+o*(219927104525741e-19*o-.000640992018297945*l+.000659397001245577*r+.000426105652938837*c-.176491792462875)+l*(-.000778269941513683*l+.00130872261408275*r+.000770482631801132*c-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*c+.25802910206845)+c*(-.000318913117588328*c-.213742400323665);t[u++]=o*(-.000570115196973677*o-263409051004589e-19*l+.0020741088115012*r-.00288260236853442*c+.814272968359295)-20.810012546947+l*(-153496057440975e-19*l-.000132689043961446*r+.000560833691242812*c-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*c+.116935020465145)+c*(-.000343531996510555*c+.24165260232407)}return t.subarray(0,u)},_convertYcckToCmyk:function convertYcckToCmyk(t){for(var r,o,l,c=0,u=t.length;c<u;c+=4){r=t[c];o=t[c+1];l=t[c+2];t[c]=434.456-r-1.402*l;t[c+1]=119.541-r+.344*o+.714*l;t[c+2]=481.816-r-1.772*o}return t},_convertCmykToRgb:function convertCmykToRgb(t){for(var r,o,l,c,u=0,h=0,d=t.length;h<d;h+=4){r=t[h];o=t[h+1];l=t[h+2];c=t[h+3];t[u++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*o+.0002894718188643294*l+.003264231057537806*c-1.1185611867203937)+o*(26374107616089405e-21*o-8626949158638572e-20*l-.0002748769067499491*c-.02155688794978967)+l*(-3878099212869363e-20*l-.0003267808279485286*c+.0686742238595345)-c*(.0003361971776183937*c+.7430659151342254);t[u++]=255+r*(.00013596372813588848*r+.000924537132573585*o+.00010567359618683593*l+.0004791864687436512*c-.3109689587515875)+o*(-.00023545346108370344*o+.0002702845253534714*l+.0020200308977307156*c-.7488052167015494)+l*(6834815998235662e-20*l+.00015168452363460973*c-.09751927774728933)-c*(.0003189131175883281*c+.7364883807733168);t[u++]=255+r*(13598650411385307e-21*r+.00012423956175490851*o+.0004751985097583589*l-36729317476630422e-22*c-.05562186980264034)+o*(.00016141380598724676*o+.0009692239130725186*l+.0007782692450036253*c-.44015232367526463)+l*(5.068882914068769e-7*l+.0017778369011375071*c-.7591454649749609)-c*(.0003435319965105553*c+.7063770186160144)}return t.subarray(0,u)},getData:function getData(t){var r=t.width,o=t.height,l=t.forceRGB,c=void 0!==l&&l,h=t.isSourcePDF,d=void 0!==h&&h;if(this.numComponents>4)throw new u("Unsupported color mode");var m=this._getLinearizedBlockData(r,o,d);if(1===this.numComponents&&c){for(var g=m.length,y=new Uint8ClampedArray(3*g),v=0,S=0;S<g;S++){var k=m[S];y[v++]=k;y[v++]=k;y[v++]=k}return y}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(m);if(4===this.numComponents){if(this._isColorConversionNeeded)return c?this._convertYcckToRgb(m):this._convertYcckToCmyk(m);if(c)return this._convertCmykToRgb(m)}return m}};return JpegImage}();r.JpegImage=m},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.JpxStream=void 0;var l=o(132),c=o(141),u=o(4),h=function JpxStreamClosure(){function JpxStream(t,r,o,c){this.stream=t;this.maybeLength=r;this.dict=o;this.params=c;l.DecodeStream.call(this,r)}JpxStream.prototype=Object.create(l.DecodeStream.prototype);Object.defineProperty(JpxStream.prototype,"bytes",{get:function JpxStream_bytes(){return(0,u.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});JpxStream.prototype.ensureBuffer=function(t){};JpxStream.prototype.readBlock=function(){if(!this.eof){var t=new c.JpxImage;t.parse(this.bytes);var r=t.width,o=t.height,l=t.componentsCount,u=t.tiles.length;if(1===u)this.buffer=t.tiles[0].items;else{for(var h=new Uint8ClampedArray(r*o*l),d=0;d<u;d++)for(var m=t.tiles[d],g=m.width,y=m.height,v=m.left,S=m.top,k=m.items,C=0,w=(r*S+v)*l,_=r*l,O=g*l,x=0;x<y;x++){var T=k.subarray(C,C+O);h.set(T,w);C+=O;w+=_}this.buffer=h}this.bufferLength=this.buffer.length;this.eof=!0}};return JpxStream}();r.JpxStream=h},(t,r,o)=>{"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.JpxImage=void 0;var l=o(4),c=o(128),u=o(137);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 h=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)}(JpxError,t);var r=_createSuper(JpxError);function JpxError(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,JpxError);return r.call(this,"JPX error: ".concat(t))}return JpxError}(l.BaseException),d=function JpxImageClosure(){var t={LL:0,LH:1,HL:1,HH:2};function JpxImage(){this.failOnCorruptedImage=!1}JpxImage.prototype={parse:function JpxImage_parse(t){if(65359!==(0,c.readUint16)(t,0))for(var r=0,o=t.length;r<o;){var u=8,d=(0,c.readUint32)(t,r),m=(0,c.readUint32)(t,r+4);r+=u;if(1===d){d=4294967296*(0,c.readUint32)(t,r)+(0,c.readUint32)(t,r+4);r+=8;u+=8}0===d&&(d=o-r+u);if(d<u)throw new h("Invalid box field size");var g=d-u,y=!0;switch(m){case 1785737832:y=!1;break;case 1668246642:var v=t[r];if(1===v){var S=(0,c.readUint32)(t,r+3);switch(S){case 16:case 17:case 18:break;default:(0,l.warn)("Unknown colorspace "+S)}}else 2===v&&(0,l.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(t,r,r+g);break;case 1783636e3:218793738!==(0,c.readUint32)(t,r)&&(0,l.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var k=String.fromCharCode(m>>24&255,m>>16&255,m>>8&255,255&m);(0,l.warn)("Unsupported header type "+m+" ("+k+")")}y&&(r+=g)}else this.parseCodestream(t,0,t.length)},parseImageProperties:function JpxImage_parseImageProperties(t){for(var r=t.getByte();r>=0;){if(65361===(r<<8|(r=t.getByte()))){t.skip(4);var o=t.getInt32()>>>0,l=t.getInt32()>>>0,c=t.getInt32()>>>0,u=t.getInt32()>>>0;t.skip(16);var d=t.getUint16();this.width=o-c;this.height=l-u;this.componentsCount=d;this.bitsPerComponent=8;return}}throw new h("No size marker found in JPX stream")},parseCodestream:function JpxImage_parseCodestream(t,r,o){var u={},d=!1;try{for(var m=r;m+1<o;){var g=(0,c.readUint16)(t,m);m+=2;var y,v,S,k,C,w,_=0;switch(g){case 65359:u.mainHeader=!0;break;case 65497:break;case 65361:_=(0,c.readUint16)(t,m);var O={};O.Xsiz=(0,c.readUint32)(t,m+4);O.Ysiz=(0,c.readUint32)(t,m+8);O.XOsiz=(0,c.readUint32)(t,m+12);O.YOsiz=(0,c.readUint32)(t,m+16);O.XTsiz=(0,c.readUint32)(t,m+20);O.YTsiz=(0,c.readUint32)(t,m+24);O.XTOsiz=(0,c.readUint32)(t,m+28);O.YTOsiz=(0,c.readUint32)(t,m+32);var x=(0,c.readUint16)(t,m+36);O.Csiz=x;var T=[];y=m+38;for(var R=0;R<x;R++){var E={precision:1+(127&t[y]),isSigned:!!(128&t[y]),XRsiz:t[y+1],YRsiz:t[y+2]};y+=3;calculateComponentDimensions(E,O);T.push(E)}u.SIZ=O;u.components=T;calculateTileGrids(u,T);u.QCC=[];u.COC=[];break;case 65372:_=(0,c.readUint16)(t,m);var D={};y=m+2;switch(31&(v=t[y++])){case 0:k=8;C=!0;break;case 1:k=16;C=!1;break;case 2:k=16;C=!0;break;default:throw new Error("Invalid SQcd value "+v)}D.noQuantization=8===k;D.scalarExpounded=C;D.guardBits=v>>5;S=[];for(;y<_+m;){var j={};if(8===k){j.epsilon=t[y++]>>3;j.mu=0}else{j.epsilon=t[y]>>3;j.mu=(7&t[y])<<8|t[y+1];y+=2}S.push(j)}D.SPqcds=S;if(u.mainHeader)u.QCD=D;else{u.currentTile.QCD=D;u.currentTile.QCC=[]}break;case 65373:_=(0,c.readUint16)(t,m);var M,N={};y=m+2;if(u.SIZ.Csiz<257)M=t[y++];else{M=(0,c.readUint16)(t,y);y+=2}switch(31&(v=t[y++])){case 0:k=8;C=!0;break;case 1:k=16;C=!1;break;case 2:k=16;C=!0;break;default:throw new Error("Invalid SQcd value "+v)}N.noQuantization=8===k;N.scalarExpounded=C;N.guardBits=v>>5;S=[];for(;y<_+m;){j={};if(8===k){j.epsilon=t[y++]>>3;j.mu=0}else{j.epsilon=t[y]>>3;j.mu=(7&t[y])<<8|t[y+1];y+=2}S.push(j)}N.SPqcds=S;u.mainHeader?u.QCC[M]=N:u.currentTile.QCC[M]=N;break;case 65362:_=(0,c.readUint16)(t,m);var L={};y=m+2;var U=t[y++];L.entropyCoderWithCustomPrecincts=!!(1&U);L.sopMarkerUsed=!!(2&U);L.ephMarkerUsed=!!(4&U);L.progressionOrder=t[y++];L.layersCount=(0,c.readUint16)(t,y);y+=2;L.multipleComponentTransform=t[y++];L.decompositionLevelsCount=t[y++];L.xcb=2+(15&t[y++]);L.ycb=2+(15&t[y++]);var q=t[y++];L.selectiveArithmeticCodingBypass=!!(1&q);L.resetContextProbabilities=!!(2&q);L.terminationOnEachCodingPass=!!(4&q);L.verticallyStripe=!!(8&q);L.predictableTermination=!!(16&q);L.segmentationSymbolUsed=!!(32&q);L.reversibleTransformation=t[y++];if(L.entropyCoderWithCustomPrecincts){for(var X=[];y<_+m;){var W=t[y++];X.push({PPx:15&W,PPy:W>>4})}L.precinctsSizes=X}var H=[];L.selectiveArithmeticCodingBypass&&H.push("selectiveArithmeticCodingBypass");L.resetContextProbabilities&&H.push("resetContextProbabilities");L.terminationOnEachCodingPass&&H.push("terminationOnEachCodingPass");L.verticallyStripe&&H.push("verticallyStripe");L.predictableTermination&&H.push("predictableTermination");if(H.length>0){d=!0;(0,l.warn)("JPX: Unsupported COD options (".concat(H.join(", "),")."))}if(u.mainHeader)u.COD=L;else{u.currentTile.COD=L;u.currentTile.COC=[]}break;case 65424:_=(0,c.readUint16)(t,m);(w={}).index=(0,c.readUint16)(t,m+2);w.length=(0,c.readUint32)(t,m+4);w.dataEnd=w.length+m-2;w.partIndex=t[m+8];w.partsCount=t[m+9];u.mainHeader=!1;if(0===w.partIndex){w.COD=u.COD;w.COC=u.COC.slice(0);w.QCD=u.QCD;w.QCC=u.QCC.slice(0)}u.currentTile=w;break;case 65427:if(0===(w=u.currentTile).partIndex){initializeTile(u,w.index);buildPackets(u)}parseTilePackets(u,t,m,_=w.dataEnd-m);break;case 65363:(0,l.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:_=(0,c.readUint16)(t,m);break;default:throw new Error("Unknown codestream code: "+g.toString(16))}m+=_}}catch(t){if(d||this.failOnCorruptedImage)throw new h(t.message);(0,l.warn)('JPX: Trying to recover from: "'.concat(t.message,'".'))}this.tiles=function transformComponents(t){for(var r=t.SIZ,o=t.components,l=r.Csiz,c=[],u=0,h=t.tiles.length;u<h;u++){var d,m=t.tiles[u],g=[];for(d=0;d<l;d++)g[d]=transformTile(t,m,d);var y,v,S,k,C,w,_,O=g[0],x=new Uint8ClampedArray(O.items.length*l),T={left:O.left,top:O.top,width:O.width,height:O.height,items:x},R=0;if(m.codingStyleDefaultParameters.multipleComponentTransform){var E=4===l,D=g[0].items,j=g[1].items,M=g[2].items,N=E?g[3].items:null;v=.5+(128<<(y=o[0].precision-8));var L=m.components[0],U=l-3;k=D.length;if(L.codingStyleParameters.reversibleTransformation)for(S=0;S<k;S++,R+=U){C=D[S]+v;w=j[S];var q=C-((_=M[S])+w>>2);x[R++]=q+_>>y;x[R++]=q>>y;x[R++]=q+w>>y}else for(S=0;S<k;S++,R+=U){C=D[S]+v;w=j[S];_=M[S];x[R++]=C+1.402*_>>y;x[R++]=C-.34413*w-.71414*_>>y;x[R++]=C+1.772*w>>y}if(E)for(S=0,R=3;S<k;S++,R+=4)x[R]=N[S]+v>>y}else for(d=0;d<l;d++){var X=g[d].items;v=.5+(128<<(y=o[d].precision-8));for(R=d,S=0,k=X.length;S<k;S++){x[R]=X[S]+v>>y;R+=l}}c.push(T)}return c}(u);this.width=u.SIZ.Xsiz-u.SIZ.XOsiz;this.height=u.SIZ.Ysiz-u.SIZ.YOsiz;this.componentsCount=u.SIZ.Csiz}};function calculateComponentDimensions(t,r){t.x0=Math.ceil(r.XOsiz/t.XRsiz);t.x1=Math.ceil(r.Xsiz/t.XRsiz);t.y0=Math.ceil(r.YOsiz/t.YRsiz);t.y1=Math.ceil(r.Ysiz/t.YRsiz);t.width=t.x1-t.x0;t.height=t.y1-t.y0}function calculateTileGrids(t,r){for(var o,l=t.SIZ,c=[],u=Math.ceil((l.Xsiz-l.XTOsiz)/l.XTsiz),h=Math.ceil((l.Ysiz-l.YTOsiz)/l.YTsiz),d=0;d<h;d++)for(var m=0;m<u;m++){(o={}).tx0=Math.max(l.XTOsiz+m*l.XTsiz,l.XOsiz);o.ty0=Math.max(l.YTOsiz+d*l.YTsiz,l.YOsiz);o.tx1=Math.min(l.XTOsiz+(m+1)*l.XTsiz,l.Xsiz);o.ty1=Math.min(l.YTOsiz+(d+1)*l.YTsiz,l.Ysiz);o.width=o.tx1-o.tx0;o.height=o.ty1-o.ty0;o.components=[];c.push(o)}t.tiles=c;for(var g=0,y=l.Csiz;g<y;g++)for(var v=r[g],S=0,k=c.length;S<k;S++){var C={};o=c[S];C.tcx0=Math.ceil(o.tx0/v.XRsiz);C.tcy0=Math.ceil(o.ty0/v.YRsiz);C.tcx1=Math.ceil(o.tx1/v.XRsiz);C.tcy1=Math.ceil(o.ty1/v.YRsiz);C.width=C.tcx1-C.tcx0;C.height=C.tcy1-C.tcy0;o.components[g]=C}}function getBlocksDimensions(t,r,o){var l=r.codingStyleParameters,c={};if(l.entropyCoderWithCustomPrecincts){c.PPx=l.precinctsSizes[o].PPx;c.PPy=l.precinctsSizes[o].PPy}else{c.PPx=15;c.PPy=15}c.xcb_=o>0?Math.min(l.xcb,c.PPx-1):Math.min(l.xcb,c.PPx);c.ycb_=o>0?Math.min(l.ycb,c.PPy-1):Math.min(l.ycb,c.PPy);return c}function buildPrecincts(t,r,o){var l=1<<o.PPx,c=1<<o.PPy,u=0===r.resLevel,h=1<<o.PPx+(u?0:-1),d=1<<o.PPy+(u?0:-1),m=r.trx1>r.trx0?Math.ceil(r.trx1/l)-Math.floor(r.trx0/l):0,g=r.try1>r.try0?Math.ceil(r.try1/c)-Math.floor(r.try0/c):0,y=m*g;r.precinctParameters={precinctWidth:l,precinctHeight:c,numprecinctswide:m,numprecinctshigh:g,numprecincts:y,precinctWidthInSubband:h,precinctHeightInSubband:d}}function buildCodeblocks(t,r,o){var l,c,u,h,d=o.xcb_,m=o.ycb_,g=1<<d,y=1<<m,v=r.tbx0>>d,S=r.tby0>>m,k=r.tbx1+g-1>>d,C=r.tby1+y-1>>m,w=r.resolution.precinctParameters,_=[],O=[];for(c=S;c<C;c++)for(l=v;l<k;l++){(u={cbx:l,cby:c,tbx0:g*l,tby0:y*c,tbx1:g*(l+1),tby1:y*(c+1)}).tbx0_=Math.max(r.tbx0,u.tbx0);u.tby0_=Math.max(r.tby0,u.tby0);u.tbx1_=Math.min(r.tbx1,u.tbx1);u.tby1_=Math.min(r.tby1,u.tby1);h=Math.floor((u.tbx0_-r.tbx0)/w.precinctWidthInSubband)+Math.floor((u.tby0_-r.tby0)/w.precinctHeightInSubband)*w.numprecinctswide;u.precinctNumber=h;u.subbandType=r.type;u.Lblock=3;if(!(u.tbx1_<=u.tbx0_||u.tby1_<=u.tby0_)){_.push(u);var x=O[h];if(void 0!==x){l<x.cbxMin?x.cbxMin=l:l>x.cbxMax&&(x.cbxMax=l);c<x.cbyMin?x.cbxMin=c:c>x.cbyMax&&(x.cbyMax=c)}else O[h]=x={cbxMin:l,cbyMin:c,cbxMax:l,cbyMax:c};u.precinct=x}}r.codeblockParameters={codeblockWidth:d,codeblockHeight:m,numcodeblockwide:k-v+1,numcodeblockhigh:C-S+1};r.codeblocks=_;r.precincts=O}function createPacket(t,r,o){for(var l=[],c=t.subbands,u=0,h=c.length;u<h;u++)for(var d=c[u].codeblocks,m=0,g=d.length;m<g;m++){var y=d[m];y.precinctNumber===r&&l.push(y)}return{layerNumber:o,codeblocks:l}}function LayerResolutionComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,m=0;m<u;m++)d=Math.max(d,l.components[m].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<c;g++){for(;y<=d;y++){for(;v<u;v++){var t=l.components[v];if(!(y>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[y],o=r.precinctParameters.numprecincts;S<o;){var m=createPacket(r,S,g);S++;return m}S=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionLayerComponentPositionIterator(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=0,m=0;m<u;m++)d=Math.max(d,l.components[m].codingStyleParameters.decompositionLevelsCount);var g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;g<=d;g++){for(;y<c;y++){for(;v<u;v++){var t=l.components[v];if(!(g>t.codingStyleParameters.decompositionLevelsCount)){for(var r=t.resolutions[g],o=r.precinctParameters.numprecincts;S<o;){var m=createPacket(r,S,y);S++;return m}S=0}}v=0}y=0}throw new h("Out of packets")}}function ResolutionPositionComponentLayerIterator(t){var r,o,l,c,u=t.SIZ,d=t.currentTile.index,m=t.tiles[d],g=m.codingStyleDefaultParameters.layersCount,y=u.Csiz,v=0;for(l=0;l<y;l++){var S=m.components[l];v=Math.max(v,S.codingStyleParameters.decompositionLevelsCount)}var k=new Int32Array(v+1);for(o=0;o<=v;++o){var C=0;for(l=0;l<y;++l){var w=m.components[l].resolutions;o<w.length&&(C=Math.max(C,w[o].precinctParameters.numprecincts))}k[o]=C}r=0;o=0;l=0;c=0;this.nextPacket=function JpxImage_nextPacket(){for(;o<=v;o++){for(;c<k[o];c++){for(;l<y;l++){var t=m.components[l];if(!(o>t.codingStyleParameters.decompositionLevelsCount)){var u=t.resolutions[o],d=u.precinctParameters.numprecincts;if(!(c>=d)){for(;r<g;){var S=createPacket(u,c,r);r++;return S}r=0}}}l=0}c=0}throw new h("Out of packets")}}function PositionComponentResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(l),m=d,g=0,y=0,v=0,S=0,k=0;this.nextPacket=function JpxImage_nextPacket(){for(;k<m.maxNumHigh;k++){for(;S<m.maxNumWide;S++){for(;v<u;v++){for(var t=l.components[v],r=t.codingStyleParameters.decompositionLevelsCount;y<=r;y++){var o=t.resolutions[y],C=d.components[v].resolutions[y],w=getPrecinctIndexIfExist(S,k,C,m,o);if(null!==w){for(;g<c;){var _=createPacket(o,w,g);g++;return _}g=0}}y=0}v=0}S=0}throw new h("Out of packets")}}function ComponentPositionResolutionLayerIterator(t){var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=l.codingStyleDefaultParameters.layersCount,u=r.Csiz,d=getPrecinctSizesInImageScale(l),m=0,g=0,y=0,v=0,S=0;this.nextPacket=function JpxImage_nextPacket(){for(;y<u;++y){for(var t=l.components[y],r=d.components[y],o=t.codingStyleParameters.decompositionLevelsCount;S<r.maxNumHigh;S++){for(;v<r.maxNumWide;v++){for(;g<=o;g++){var k=t.resolutions[g],C=r.resolutions[g],w=getPrecinctIndexIfExist(v,S,C,r,k);if(null!==w){for(;m<c;){var _=createPacket(k,w,m);m++;return _}m=0}}g=0}v=0}S=0}throw new h("Out of packets")}}function getPrecinctIndexIfExist(t,r,o,l,c){var u=t*l.minWidth,h=r*l.minHeight;if(u%o.width!=0||h%o.height!=0)return null;var d=h/o.width*c.precinctParameters.numprecinctswide;return u/o.height+d}function getPrecinctSizesInImageScale(t){for(var r=t.components.length,o=Number.MAX_VALUE,l=Number.MAX_VALUE,c=0,u=0,h=new Array(r),d=0;d<r;d++){for(var m=t.components[d],g=m.codingStyleParameters.decompositionLevelsCount,y=new Array(g+1),v=Number.MAX_VALUE,S=Number.MAX_VALUE,k=0,C=0,w=1,_=g;_>=0;--_){var O=m.resolutions[_],x=w*O.precinctParameters.precinctWidth,T=w*O.precinctParameters.precinctHeight;v=Math.min(v,x);S=Math.min(S,T);k=Math.max(k,O.precinctParameters.numprecinctswide);C=Math.max(C,O.precinctParameters.numprecinctshigh);y[_]={width:x,height:T};w<<=1}o=Math.min(o,v);l=Math.min(l,S);c=Math.max(c,k);u=Math.max(u,C);h[d]={resolutions:y,minWidth:v,minHeight:S,maxNumWide:k,maxNumHigh:C}}return{components:h,minWidth:o,minHeight:l,maxNumWide:c,maxNumHigh:u}}function buildPackets(t){for(var r=t.SIZ,o=t.currentTile.index,l=t.tiles[o],c=r.Csiz,u=0;u<c;u++){for(var d=l.components[u],m=d.codingStyleParameters.decompositionLevelsCount,g=[],y=[],v=0;v<=m;v++){var S,k=getBlocksDimensions(0,d,v),C={},w=1<<m-v;C.trx0=Math.ceil(d.tcx0/w);C.try0=Math.ceil(d.tcy0/w);C.trx1=Math.ceil(d.tcx1/w);C.try1=Math.ceil(d.tcy1/w);C.resLevel=v;buildPrecincts(0,C,k);g.push(C);if(0===v){(S={}).type="LL";S.tbx0=Math.ceil(d.tcx0/w);S.tby0=Math.ceil(d.tcy0/w);S.tbx1=Math.ceil(d.tcx1/w);S.tby1=Math.ceil(d.tcy1/w);S.resolution=C;buildCodeblocks(0,S,k);y.push(S);C.subbands=[S]}else{var _=1<<m-v+1,O=[];(S={}).type="HL";S.tbx0=Math.ceil(d.tcx0/_-.5);S.tby0=Math.ceil(d.tcy0/_);S.tbx1=Math.ceil(d.tcx1/_-.5);S.tby1=Math.ceil(d.tcy1/_);S.resolution=C;buildCodeblocks(0,S,k);y.push(S);O.push(S);(S={}).type="LH";S.tbx0=Math.ceil(d.tcx0/_);S.tby0=Math.ceil(d.tcy0/_-.5);S.tbx1=Math.ceil(d.tcx1/_);S.tby1=Math.ceil(d.tcy1/_-.5);S.resolution=C;buildCodeblocks(0,S,k);y.push(S);O.push(S);(S={}).type="HH";S.tbx0=Math.ceil(d.tcx0/_-.5);S.tby0=Math.ceil(d.tcy0/_-.5);S.tbx1=Math.ceil(d.tcx1/_-.5);S.tby1=Math.ceil(d.tcy1/_-.5);S.resolution=C;buildCodeblocks(0,S,k);y.push(S);O.push(S);C.subbands=O}}d.resolutions=g;d.subbands=y}var x=l.codingStyleDefaultParameters.progressionOrder;switch(x){case 0:l.packetsIterator=new LayerResolutionComponentPositionIterator(t);break;case 1:l.packetsIterator=new ResolutionLayerComponentPositionIterator(t);break;case 2:l.packetsIterator=new ResolutionPositionComponentLayerIterator(t);break;case 3:l.packetsIterator=new PositionComponentResolutionLayerIterator(t);break;case 4:l.packetsIterator=new ComponentPositionResolutionLayerIterator(t);break;default:throw new h("Unsupported progression order ".concat(x))}}function parseTilePackets(t,l,u,h){var d,m=0,g=0,y=!1;function readBits(t){for(;g<t;){var r=l[u+m];m++;if(y){d=d<<7|r;g+=7;y=!1}else{d=d<<8|r;g+=8}255===r&&(y=!0)}return d>>>(g-=t)&(1<<t)-1}function skipMarkerIfEqual(t){if(255===l[u+m-1]&&l[u+m]===t){skipBytes(1);return!0}if(255===l[u+m]&&l[u+m+1]===t){skipBytes(2);return!0}return!1}function skipBytes(t){m+=t}function alignToByte(){g=0;if(y){m++;y=!1}}function readCodingpasses(){if(0===readBits(1))return 1;if(0===readBits(1))return 2;var t=readBits(2);return t<3?t+3:(t=readBits(5))<31?t+6:(t=readBits(7))+37}for(var v=t.currentTile.index,S=t.tiles[v],k=t.COD.sopMarkerUsed,C=t.COD.ephMarkerUsed,w=S.packetsIterator;m<h;){alignToByte();k&&skipMarkerIfEqual(145)&&skipBytes(4);var _=w.nextPacket();if(readBits(1)){for(var O,x=_.layerNumber,T=[],R=0,E=_.codeblocks.length;R<E;R++){var D=(O=_.codeblocks[R]).precinct,j=O.cbx-D.cbxMin,M=O.cby-D.cbyMin,N=!1,L=!1;if(void 0!==O.included)N=!!readBits(1);else{var U,q;if(void 0!==(D=O.precinct).inclusionTree)U=D.inclusionTree;else{var X=D.cbxMax-D.cbxMin+1,W=D.cbyMax-D.cbyMin+1;U=new o(X,W,x);q=new r(X,W);D.inclusionTree=U;D.zeroBitPlanesTree=q}if(U.reset(j,M,x))for(;;){if(!readBits(1)){U.incrementValue(x);break}if(!U.nextLevel()){O.included=!0;N=L=!0;break}}}if(N){if(L){(q=D.zeroBitPlanesTree).reset(j,M);for(;;)if(readBits(1)){if(!q.nextLevel())break}else q.incrementValue();O.zeroBitPlanes=q.value}for(var H=readCodingpasses();readBits(1);)O.Lblock++;var z=(0,c.log2)(H),G=readBits((H<1<<z?z-1:z)+O.Lblock);T.push({codeblock:O,codingpasses:H,dataLength:G})}}alignToByte();C&&skipMarkerIfEqual(146);for(;T.length>0;){var V=T.shift();void 0===(O=V.codeblock).data&&(O.data=[]);O.data.push({data:l,start:u+m,end:u+m+V.dataLength,codingpasses:V.codingpasses});m+=V.dataLength}}}return m}function copyCoefficients(t,r,o,l,c,h,m,g){for(var y=l.tbx0,v=l.tby0,S=l.tbx1-l.tbx0,k=l.codeblocks,C="H"===l.type.charAt(0)?1:0,w="H"===l.type.charAt(1)?r:0,_=0,O=k.length;_<O;++_){var x=k[_],T=x.tbx1_-x.tbx0_,R=x.tby1_-x.tby0_;if(0!==T&&0!==R&&void 0!==x.data){var E,D;E=new d(T,R,x.subbandType,x.zeroBitPlanes,h);D=2;var j,M,N,L=x.data,U=0,q=0;for(j=0,M=L.length;j<M;j++){U+=(N=L[j]).end-N.start;q+=N.codingpasses}var X=new Uint8Array(U),W=0;for(j=0,M=L.length;j<M;j++){var H=(N=L[j]).data.subarray(N.start,N.end);X.set(H,W);W+=H.length}var z=new u.ArithmeticDecoder(X,0,U);E.setDecoder(z);for(j=0;j<q;j++){switch(D){case 0:E.runSignificancePropagationPass();break;case 1:E.runMagnitudeRefinementPass();break;case 2:E.runCleanupPass();g&&E.checkSegmentationSymbol()}D=(D+1)%3}var G,V,$,K=x.tbx0_-y+(x.tby0_-v)*S,Y=E.coefficentsSign,J=E.coefficentsMagnitude,Q=E.bitsDecoded,Z=m?0:.5;W=0;var ee="LL"!==l.type;for(j=0;j<R;j++){var te=2*(K/S|0)*(r-S)+C+w;for(G=0;G<T;G++){if(0!==(V=J[W])){V=(V+Z)*c;0!==Y[W]&&(V=-V);$=Q[W];var re=ee?te+(K<<1):K;t[re]=m&&$>=h?V:V*(1<<h-$)}K++;W++}K+=S-T}}}}function transformTile(r,o,l){for(var c=o.components[l],u=c.codingStyleParameters,h=c.quantizationParameters,d=u.decompositionLevelsCount,m=h.SPqcds,v=h.scalarExpounded,S=h.guardBits,k=u.segmentationSymbolUsed,C=r.components[l].precision,w=u.reversibleTransformation,_=w?new y:new g,O=[],x=0,T=0;T<=d;T++){for(var R=c.resolutions[T],E=R.trx1-R.trx0,D=R.try1-R.try0,j=new Float32Array(E*D),M=0,N=R.subbands.length;M<N;M++){var L,U;if(v){L=m[x].mu;U=m[x].epsilon;x++}else{L=m[0].mu;U=m[0].epsilon+(T>0?1-T:0)}var q=R.subbands[M],X=t[q.type];copyCoefficients(j,E,0,q,w?1:Math.pow(2,C+X-U)*(1+L/2048),S+U-1,w,k)}O.push({width:E,height:D,items:j})}var W=_.calculate(O,c.tcx0,c.tcy0);return{left:c.tcx0,top:c.tcy0,width:W.width,height:W.height,items:W.items}}function initializeTile(t,r){for(var o=t.SIZ.Csiz,l=t.tiles[r],c=0;c<o;c++){var u=l.components[c],h=void 0!==t.currentTile.QCC[c]?t.currentTile.QCC[c]:t.currentTile.QCD;u.quantizationParameters=h;var d=void 0!==t.currentTile.COC[c]?t.currentTile.COC[c]:t.currentTile.COD;u.codingStyleParameters=d}l.codingStyleDefaultParameters=t.currentTile.COD}var r=function TagTreeClosure(){function TagTree(t,r){var o=(0,c.log2)(Math.max(t,r))+1;this.levels=[];for(var l=0;l<o;l++){var u={width:t,height:r,items:[]};this.levels.push(u);t=Math.ceil(t/2);r=Math.ceil(r/2)}}TagTree.prototype={reset:function TagTree_reset(t,r){for(var o,l=0,c=0;l<this.levels.length;){var u=t+r*(o=this.levels[l]).width;if(void 0!==o.items[u]){c=o.items[u];break}o.index=u;t>>=1;r>>=1;l++}l--;(o=this.levels[l]).items[o.index]=c;this.currentLevel=l;delete this.value},incrementValue:function TagTree_incrementValue(){var t=this.levels[this.currentLevel];t.items[t.index]++},nextLevel:function TagTree_nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];if(--t<0){this.value=o;return!1}this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}};return TagTree}(),o=function InclusionTreeClosure(){function InclusionTree(t,r,o){var l=(0,c.log2)(Math.max(t,r))+1;this.levels=[];for(var u=0;u<l;u++){for(var h=new Uint8Array(t*r),d=0,m=h.length;d<m;d++)h[d]=o;var g={width:t,height:r,items:h};this.levels.push(g);t=Math.ceil(t/2);r=Math.ceil(r/2)}}InclusionTree.prototype={reset:function InclusionTree_reset(t,r,o){for(var l=0;l<this.levels.length;){var c=this.levels[l],u=t+r*c.width;c.index=u;var h=c.items[u];if(255===h)break;if(h>o){this.currentLevel=l;this.propagateValues();return!1}t>>=1;r>>=1;l++}this.currentLevel=l-1;return!0},incrementValue:function InclusionTree_incrementValue(t){var r=this.levels[this.currentLevel];r.items[r.index]=t+1;this.propagateValues()},propagateValues:function InclusionTree_propagateValues(){for(var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];--t>=0;)(r=this.levels[t]).items[r.index]=o},nextLevel:function InclusionTree_nextLevel(){var t=this.currentLevel,r=this.levels[t],o=r.items[r.index];r.items[r.index]=255;if(--t<0)return!1;this.currentLevel=t;(r=this.levels[t]).items[r.index]=o;return!0}};return InclusionTree}(),d=function BitModelClosure(){var t=17,r=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),o=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),l=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function BitModel(t,c,u,h,d){this.width=t;this.height=c;var m;m="HH"===u?l:"HL"===u?o:r;this.contextLabelTable=m;var g,y=t*c;this.neighborsSignificance=new Uint8Array(y);this.coefficentsSign=new Uint8Array(y);g=d>14?new Uint32Array(y):d>6?new Uint16Array(y):new Uint8Array(y);this.coefficentsMagnitude=g;this.processingFlags=new Uint8Array(y);var v=new Uint8Array(y);if(0!==h)for(var S=0;S<y;S++)v[S]=h;this.bitsDecoded=v;this.reset()}BitModel.prototype={setDecoder:function BitModel_setDecoder(t){this.decoder=t},reset:function BitModel_reset(){this.contexts=new Int8Array(19);this.contexts[0]=8;this.contexts[17]=92;this.contexts[18]=6},setNeighborsSignificance:function BitModel_setNeighborsSignificance(t,r,o){var l,c=this.neighborsSignificance,u=this.width,h=this.height,d=r>0,m=r+1<u;if(t>0){l=o-u;d&&(c[l-1]+=16);m&&(c[l+1]+=16);c[l]+=4}if(t+1<h){l=o+u;d&&(c[l-1]+=16);m&&(c[l+1]+=16);c[l]+=4}d&&(c[o-1]+=1);m&&(c[o+1]+=1);c[o]|=128},runSignificancePropagationPass:function BitModel_runSignificancePropagationPass(){for(var t=this.decoder,r=this.width,o=this.height,l=this.coefficentsMagnitude,c=this.coefficentsSign,u=this.neighborsSignificance,h=this.processingFlags,d=this.contexts,m=this.contextLabelTable,g=this.bitsDecoded,y=0;y<o;y+=4)for(var v=0;v<r;v++)for(var S=y*r+v,k=0;k<4;k++,S+=r){var C=y+k;if(C>=o)break;h[S]&=-2;if(!l[S]&&u[S]){var w=m[u[S]];if(t.readBit(d,w)){var _=this.decodeSignBit(C,v,S);c[S]=_;l[S]=1;this.setNeighborsSignificance(C,v,S);h[S]|=2}g[S]++;h[S]|=1}}},decodeSignBit:function BitModel_decodeSignBit(t,r,o){var l,c,u,h,d,m,g=this.width,y=this.height,v=this.coefficentsMagnitude,S=this.coefficentsSign;h=r>0&&0!==v[o-1];if(r+1<g&&0!==v[o+1]){u=S[o+1];l=h?1-u-(c=S[o-1]):1-u-u}else l=h?1-(c=S[o-1])-c:0;var k=3*l;h=t>0&&0!==v[o-g];if(t+1<y&&0!==v[o+g]){u=S[o+g];l=h?1-u-(c=S[o-g])+k:1-u-u+k}else l=h?1-(c=S[o-g])-c+k:k;if(l>=0){d=9+l;m=this.decoder.readBit(this.contexts,d)}else{d=9-l;m=1^this.decoder.readBit(this.contexts,d)}return m},runMagnitudeRefinementPass:function BitModel_runMagnitudeRefinementPass(){for(var t,r=this.decoder,o=this.width,l=this.height,c=this.coefficentsMagnitude,u=this.neighborsSignificance,h=this.contexts,d=this.bitsDecoded,m=this.processingFlags,g=o*l,y=4*o,v=0;v<g;v=t){t=Math.min(g,v+y);for(var S=0;S<o;S++)for(var k=v+S;k<t;k+=o)if(c[k]&&0==(1&m[k])){var C=16;if(0!=(2&m[k])){m[k]^=2;C=0===(127&u[k])?15:14}var w=r.readBit(h,C);c[k]=c[k]<<1|w;d[k]++;m[k]|=1}}},runCleanupPass:function BitModel_runCleanupPass(){for(var r,o=this.decoder,l=this.width,c=this.height,u=this.neighborsSignificance,h=this.coefficentsMagnitude,d=this.coefficentsSign,m=this.contexts,g=this.contextLabelTable,y=this.bitsDecoded,v=this.processingFlags,S=l,k=2*l,C=3*l,w=0;w<c;w=r){r=Math.min(w+4,c);for(var _=w*l,O=w+3<c,x=0;x<l;x++){var T,R=_+x,E=0,D=R,j=w;if(O&&0===v[R]&&0===v[R+S]&&0===v[R+k]&&0===v[R+C]&&0===u[R]&&0===u[R+S]&&0===u[R+k]&&0===u[R+C]){if(!o.readBit(m,18)){y[R]++;y[R+S]++;y[R+k]++;y[R+C]++;continue}if(0!==(E=o.readBit(m,t)<<1|o.readBit(m,t))){j=w+E;D+=E*l}T=this.decodeSignBit(j,x,D);d[D]=T;h[D]=1;this.setNeighborsSignificance(j,x,D);v[D]|=2;D=R;for(var M=w;M<=j;M++,D+=l)y[D]++;E++}for(j=w+E;j<r;j++,D+=l)if(!h[D]&&0==(1&v[D])){var N=g[u[D]];if(1===o.readBit(m,N)){T=this.decodeSignBit(j,x,D);d[D]=T;h[D]=1;this.setNeighborsSignificance(j,x,D);v[D]|=2}y[D]++}}}},checkSegmentationSymbol:function BitModel_checkSegmentationSymbol(){var r=this.decoder,o=this.contexts;if(10!==(r.readBit(o,t)<<3|r.readBit(o,t)<<2|r.readBit(o,t)<<1|r.readBit(o,t)))throw new h("Invalid segmentation symbol")}};return BitModel}(),m=function TransformClosure(){function Transform(){}Transform.prototype.calculate=function transformCalculate(t,r,o){for(var l=t[0],c=1,u=t.length;c<u;c++)l=this.iterate(l,t[c],r,o);return l};Transform.prototype.extend=function extend(t,r,o){var l=r-1,c=r+1,u=r+o-2,h=r+o;t[l--]=t[c++];t[h++]=t[u--];t[l--]=t[c++];t[h++]=t[u--];t[l--]=t[c++];t[h++]=t[u--];t[l]=t[c];t[h]=t[u]};Transform.prototype.iterate=function Transform_iterate(t,r,o,l){var c,u,h,d,m,g,y=t.width,v=t.height,S=t.items,k=r.width,C=r.height,w=r.items;for(h=0,c=0;c<v;c++){d=2*c*k;for(u=0;u<y;u++,h++,d+=2)w[d]=S[h]}S=t.items=null;var _=new Float32Array(k+8);if(1===k){if(0!=(1&o))for(g=0,h=0;g<C;g++,h+=k)w[h]*=.5}else for(g=0,h=0;g<C;g++,h+=k){_.set(w.subarray(h,h+k),4);this.extend(_,4,k);this.filter(_,4,k);w.set(_.subarray(4,4+k),h)}var O=16,x=[];for(c=0;c<O;c++)x.push(new Float32Array(C+8));var T,R=0;t=4+C;if(1===C){if(0!=(1&l))for(m=0;m<k;m++)w[m]*=.5}else for(m=0;m<k;m++){if(0===R){O=Math.min(k-m,O);for(h=m,d=4;d<t;h+=k,d++)for(T=0;T<O;T++)x[T][d]=w[h+T];R=O}var E=x[--R];this.extend(E,4,C);this.filter(E,4,C);if(0===R){h=m-O+1;for(d=4;d<t;h+=k,d++)for(T=0;T<O;T++)w[h+T]=x[T][d]}}return{width:k,height:C,items:w}};return Transform}(),g=function IrreversibleTransformClosure(){function IrreversibleTransform(){m.call(this)}IrreversibleTransform.prototype=Object.create(m.prototype);IrreversibleTransform.prototype.filter=function irreversibleTransformFilter(t,r,o){var l,c,u,h,d=o>>1,m=-1.586134342059924,g=-.052980118572961,y=.882911075530934,v=.443506852043971,S=1.230174104914001;l=(r|=0)-3;for(c=d+4;c--;l+=2)t[l]*=.8128930661159609;u=v*t[(l=r-2)-1];for(c=d+3;c--;l+=2){h=v*t[l+1];t[l]=S*t[l]-u-h;if(!c--)break;u=v*t[(l+=2)+1];t[l]=S*t[l]-u-h}u=y*t[(l=r-1)-1];for(c=d+2;c--;l+=2){h=y*t[l+1];t[l]-=u+h;if(!c--)break;u=y*t[(l+=2)+1];t[l]-=u+h}u=g*t[(l=r)-1];for(c=d+1;c--;l+=2){h=g*t[l+1];t[l]-=u+h;if(!c--)break;u=g*t[(l+=2)+1];t[l]-=u+h}if(0!==d){u=m*t[(l=r+1)-1];for(c=d;c--;l+=2){h=m*t[l+1];t[l]-=u+h;if(!c--)break;u=m*t[(l+=2)+1];t[l]-=u+h}}};return IrreversibleTransform}(),y=function ReversibleTransformClosure(){function ReversibleTransform(){m.call(this)}ReversibleTransform.prototype=Object.create(m.prototype);ReversibleTransform.prototype.filter=function reversibleTransformFilter(t,r,o){var l,c,u=o>>1;for(l=r|=0,c=u+1;c--;l+=2)t[l]-=t[l-1]+t[l+1]+2>>2;for(l=r+1,c=u;c--;l+=2)t[l]+=t[l-1]+t[l+1]>>1};return ReversibleTransform}();return JpxImage}();r.JpxImage=d},(t,r,o)=>{"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.calculateSHA384=calculateSHA384;r.PDF20=r.PDF17=r.CipherTransformFactory=r.calculateSHA512=r.calculateSHA256=r.calculateMD5=r.ARCFourCipher=r.AES256Cipher=r.AES128Cipher=void 0;var l=o(4),c=o(125),u=o(132);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=function(){function ARCFourCipher(t){_classCallCheck(this,ARCFourCipher);this.a=0;this.b=0;var r,o,l=new Uint8Array(256),c=0,u=t.length;for(r=0;r<256;++r)l[r]=r;for(r=0;r<256;++r){c=c+(o=l[r])+t[r%u]&255;l[r]=l[c];l[c]=o}this.s=l}_createClass(ARCFourCipher,[{key:"encryptBlock",value:function encryptBlock(t){var r,o,l,c=t.length,u=this.a,h=this.b,d=this.s,m=new Uint8Array(c);for(r=0;r<c;++r){l=d[h=h+(o=d[u=u+1&255])&255];d[u]=l;d[h]=o;m[r]=t[r]^d[o+l&255]}this.a=u;this.b=h;return m}},{key:"decryptBlock",value:function decryptBlock(t){return this.encryptBlock(t)}},{key:"encrypt",value:function encrypt(t){return this.encryptBlock(t)}}]);return ARCFourCipher}();r.ARCFourCipher=h;var d=function calculateMD5Closure(){var t=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),r=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function hash(o,l,c){var u,h,d,m=1732584193,g=-271733879,y=-1732584194,v=271733878,S=c+72&-64,k=new Uint8Array(S);for(u=0;u<c;++u)k[u]=o[l++];k[u++]=128;d=S-8;for(;u<d;)k[u++]=0;k[u++]=c<<3&255;k[u++]=c>>5&255;k[u++]=c>>13&255;k[u++]=c>>21&255;k[u++]=c>>>29&255;k[u++]=0;k[u++]=0;k[u++]=0;var C=new Int32Array(16);for(u=0;u<S;){for(h=0;h<16;++h,u+=4)C[h]=k[u]|k[u+1]<<8|k[u+2]<<16|k[u+3]<<24;var w,_,O=m,x=g,T=y,R=v;for(h=0;h<64;++h){if(h<16){w=x&T|~x&R;_=h}else if(h<32){w=R&x|~R&T;_=5*h+1&15}else if(h<48){w=x^T^R;_=3*h+5&15}else{w=T^(x|~R);_=7*h&15}var E=R,D=O+w+r[h]+C[_]|0,j=t[h];R=T;T=x;x=x+(D<<j|D>>>32-j)|0;O=E}m=m+O|0;g=g+x|0;y=y+T|0;v=v+R|0}return new Uint8Array([255&m,m>>8&255,m>>16&255,m>>>24&255,255&g,g>>8&255,g>>16&255,g>>>24&255,255&y,y>>8&255,y>>16&255,y>>>24&255,255&v,v>>8&255,v>>16&255,v>>>24&255])}}();r.calculateMD5=d;var m=function(){function Word64(t,r){_classCallCheck(this,Word64);this.high=0|t;this.low=0|r}_createClass(Word64,[{key:"and",value:function and(t){this.high&=t.high;this.low&=t.low}},{key:"xor",value:function xor(t){this.high^=t.high;this.low^=t.low}},{key:"or",value:function or(t){this.high|=t.high;this.low|=t.low}},{key:"shiftRight",value:function shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}}},{key:"shiftLeft",value:function shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low=this.low<<t}}},{key:"rotateRight",value:function rotateRight(t){var r,o;if(32&t){o=this.low;r=this.high}else{r=this.low;o=this.high}t&=31;this.low=r>>>t|o<<32-t;this.high=o>>>t|r<<32-t}},{key:"not",value:function not(){this.high=~this.high;this.low=~this.low}},{key:"add",value:function add(t){var r=(this.low>>>0)+(t.low>>>0),o=(this.high>>>0)+(t.high>>>0);r>4294967295&&(o+=1);this.low=0|r;this.high=0|o}},{key:"copyTo",value:function copyTo(t,r){t[r]=this.high>>>24&255;t[r+1]=this.high>>16&255;t[r+2]=this.high>>8&255;t[r+3]=255&this.high;t[r+4]=this.low>>>24&255;t[r+5]=this.low>>16&255;t[r+6]=this.low>>8&255;t[r+7]=255&this.low}},{key:"assign",value:function assign(t){this.high=t.high;this.low=t.low}}]);return Word64}(),g=function calculateSHA256Closure(){function rotr(t,r){return t>>>r|t<<32-r}function ch(t,r,o){return t&r^~t&o}function maj(t,r,o){return t&r^t&o^r&o}function sigma(t){return rotr(t,2)^rotr(t,13)^rotr(t,22)}function sigmaPrime(t){return rotr(t,6)^rotr(t,11)^rotr(t,25)}function littleSigma(t){return rotr(t,7)^rotr(t,18)^t>>>3}var t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function hash(r,o,l){var c,u,h,d=1779033703,m=3144134277,g=1013904242,y=2773480762,v=1359893119,S=2600822924,k=528734635,C=1541459225,w=64*Math.ceil((l+9)/64),_=new Uint8Array(w);for(c=0;c<l;++c)_[c]=r[o++];_[c++]=128;h=w-8;for(;c<h;)_[c++]=0;_[c++]=0;_[c++]=0;_[c++]=0;_[c++]=l>>>29&255;_[c++]=l>>21&255;_[c++]=l>>13&255;_[c++]=l>>5&255;_[c++]=l<<3&255;var O,x=new Uint32Array(64);for(c=0;c<w;){for(u=0;u<16;++u){x[u]=_[c]<<24|_[c+1]<<16|_[c+2]<<8|_[c+3];c+=4}for(u=16;u<64;++u)x[u]=(rotr(O=x[u-2],17)^rotr(O,19)^O>>>10)+x[u-7]+littleSigma(x[u-15])+x[u-16]|0;var T,R,E=d,D=m,j=g,M=y,N=v,L=S,U=k,q=C;for(u=0;u<64;++u){T=q+sigmaPrime(N)+ch(N,L,U)+t[u]+x[u];R=sigma(E)+maj(E,D,j);q=U;U=L;L=N;N=M+T|0;M=j;j=D;D=E;E=T+R|0}d=d+E|0;m=m+D|0;g=g+j|0;y=y+M|0;v=v+N|0;S=S+L|0;k=k+U|0;C=C+q|0}return new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,m>>24&255,m>>16&255,m>>8&255,255&m,g>>24&255,g>>16&255,g>>8&255,255&g,y>>24&255,y>>16&255,y>>8&255,255&y,v>>24&255,v>>16&255,v>>8&255,255&v,S>>24&255,S>>16&255,S>>8&255,255&S,k>>24&255,k>>16&255,k>>8&255,255&k,C>>24&255,C>>16&255,C>>8&255,255&C])}}();r.calculateSHA256=g;var y=function calculateSHA512Closure(){function ch(t,r,o,l,c){t.assign(r);t.and(o);c.assign(r);c.not();c.and(l);t.xor(c)}function maj(t,r,o,l,c){t.assign(r);t.and(o);c.assign(r);c.and(l);t.xor(c);c.assign(o);c.and(l);t.xor(c)}function sigma(t,r,o){t.assign(r);t.rotateRight(28);o.assign(r);o.rotateRight(34);t.xor(o);o.assign(r);o.rotateRight(39);t.xor(o)}function sigmaPrime(t,r,o){t.assign(r);t.rotateRight(14);o.assign(r);o.rotateRight(18);t.xor(o);o.assign(r);o.rotateRight(41);t.xor(o)}function littleSigma(t,r,o){t.assign(r);t.rotateRight(1);o.assign(r);o.rotateRight(8);t.xor(o);o.assign(r);o.shiftRight(7);t.xor(o)}function littleSigmaPrime(t,r,o){t.assign(r);t.rotateRight(19);o.assign(r);o.rotateRight(61);t.xor(o);o.assign(r);o.shiftRight(6);t.xor(o)}var t=[new m(1116352408,3609767458),new m(1899447441,602891725),new m(3049323471,3964484399),new m(3921009573,2173295548),new m(961987163,4081628472),new m(1508970993,3053834265),new m(2453635748,2937671579),new m(2870763221,3664609560),new m(3624381080,2734883394),new m(310598401,1164996542),new m(607225278,1323610764),new m(1426881987,3590304994),new m(1925078388,4068182383),new m(2162078206,991336113),new m(2614888103,633803317),new m(3248222580,3479774868),new m(3835390401,2666613458),new m(4022224774,944711139),new m(264347078,2341262773),new m(604807628,2007800933),new m(770255983,1495990901),new m(1249150122,1856431235),new m(1555081692,3175218132),new m(1996064986,2198950837),new m(2554220882,3999719339),new m(2821834349,766784016),new m(2952996808,2566594879),new m(3210313671,3203337956),new m(3336571891,1034457026),new m(3584528711,2466948901),new m(113926993,3758326383),new m(338241895,168717936),new m(666307205,1188179964),new m(773529912,1546045734),new m(1294757372,1522805485),new m(1396182291,2643833823),new m(1695183700,2343527390),new m(1986661051,1014477480),new m(2177026350,1206759142),new m(2456956037,344077627),new m(2730485921,1290863460),new m(2820302411,3158454273),new m(3259730800,3505952657),new m(3345764771,106217008),new m(3516065817,3606008344),new m(3600352804,1432725776),new m(4094571909,1467031594),new m(275423344,851169720),new m(430227734,3100823752),new m(506948616,1363258195),new m(659060556,3750685593),new m(883997877,3785050280),new m(958139571,3318307427),new m(1322822218,3812723403),new m(1537002063,2003034995),new m(1747873779,3602036899),new m(1955562222,1575990012),new m(2024104815,1125592928),new m(2227730452,2716904306),new m(2361852424,442776044),new m(2428436474,593698344),new m(2756734187,3733110249),new m(3204031479,2999351573),new m(3329325298,3815920427),new m(3391569614,3928383900),new m(3515267271,566280711),new m(3940187606,3454069534),new m(4118630271,4000239992),new m(116418474,1914138554),new m(174292421,2731055270),new m(289380356,3203993006),new m(460393269,320620315),new m(685471733,587496836),new m(852142971,1086792851),new m(1017036298,365543100),new m(1126000580,2618297676),new m(1288033470,3409855158),new m(1501505948,4234509866),new m(1607167915,987167468),new m(1816402316,1246189591)];return function hash(r,o,l){var c,u,h,d,g,y,v,S,k=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(k){c=new m(3418070365,3238371032);u=new m(1654270250,914150663);h=new m(2438529370,812702999);d=new m(355462360,4144912697);g=new m(1731405415,4290775857);y=new m(2394180231,1750603025);v=new m(3675008525,1694076839);S=new m(1203062813,3204075428)}else{c=new m(1779033703,4089235720);u=new m(3144134277,2227873595);h=new m(1013904242,4271175723);d=new m(2773480762,1595750129);g=new m(1359893119,2917565137);y=new m(2600822924,725511199);v=new m(528734635,4215389547);S=new m(1541459225,327033209)}var C,w,_,O=128*Math.ceil((l+17)/128),x=new Uint8Array(O);for(C=0;C<l;++C)x[C]=r[o++];x[C++]=128;_=O-16;for(;C<_;)x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=0;x[C++]=l>>>29&255;x[C++]=l>>21&255;x[C++]=l>>13&255;x[C++]=l>>5&255;x[C++]=l<<3&255;var T=new Array(80);for(C=0;C<80;C++)T[C]=new m(0,0);var R,E,D=new m(0,0),j=new m(0,0),M=new m(0,0),N=new m(0,0),L=new m(0,0),U=new m(0,0),q=new m(0,0),X=new m(0,0),W=new m(0,0),H=new m(0,0),z=new m(0,0),G=new m(0,0);for(C=0;C<O;){for(w=0;w<16;++w){T[w].high=x[C]<<24|x[C+1]<<16|x[C+2]<<8|x[C+3];T[w].low=x[C+4]<<24|x[C+5]<<16|x[C+6]<<8|x[C+7];C+=8}for(w=16;w<80;++w){littleSigmaPrime(R=T[w],T[w-2],G);R.add(T[w-7]);littleSigma(z,T[w-15],G);R.add(z);R.add(T[w-16])}D.assign(c);j.assign(u);M.assign(h);N.assign(d);L.assign(g);U.assign(y);q.assign(v);X.assign(S);for(w=0;w<80;++w){W.assign(X);sigmaPrime(z,L,G);W.add(z);ch(z,L,U,q,G);W.add(z);W.add(t[w]);W.add(T[w]);sigma(H,D,G);maj(z,D,j,M,G);H.add(z);R=X;X=q;q=U;U=L;N.add(W);L=N;N=M;M=j;j=D;R.assign(W);R.add(H);D=R}c.add(D);u.add(j);h.add(M);d.add(N);g.add(L);y.add(U);v.add(q);S.add(X)}if(k){E=new Uint8Array(48);c.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40)}else{E=new Uint8Array(64);c.copyTo(E,0);u.copyTo(E,8);h.copyTo(E,16);d.copyTo(E,24);g.copyTo(E,32);y.copyTo(E,40);v.copyTo(E,48);S.copyTo(E,56)}return E}}();r.calculateSHA512=y;function calculateSHA384(t,r,o){return y(t,r,o,!0)}var v=function(){function NullCipher(){_classCallCheck(this,NullCipher)}_createClass(NullCipher,[{key:"decryptBlock",value:function decryptBlock(t){return t}},{key:"encrypt",value:function encrypt(t){return t}}]);return NullCipher}(),S=function(){function AESBaseCipher(){_classCallCheck(this,AESBaseCipher);this.constructor===AESBaseCipher&&(0,l.unreachable)("Cannot initialize AESBaseCipher.");this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(var t=0;t<256;t++)this._mixCol[t]=t<128?t<<1:t<<1^27;this.buffer=new Uint8Array(16);this.bufferPosition=0}_createClass(AESBaseCipher,[{key:"_expandKey",value:function _expandKey(t){(0,l.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function _decrypt(t,r){var o,l,c,u=new Uint8Array(16);u.set(t);for(var h=0,d=this._keySize;h<16;++h,++d)u[h]^=r[d];for(var m=this._cyclesOfRepetition-1;m>=1;--m){o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];l=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=l;o=u[15];l=u[11];c=u[7];u[15]=u[3];u[11]=o;u[7]=l;u[3]=c;for(var g=0;g<16;++g)u[g]=this._inv_s[u[g]];for(var y=0,v=16*m;y<16;++y,++v)u[y]^=r[v];for(var S=0;S<16;S+=4){var k=this._mix[u[S]],C=this._mix[u[S+1]],w=this._mix[u[S+2]],_=this._mix[u[S+3]];o=k^C>>>8^C<<24^w>>>16^w<<16^_>>>24^_<<8;u[S]=o>>>24&255;u[S+1]=o>>16&255;u[S+2]=o>>8&255;u[S+3]=255&o}}o=u[13];u[13]=u[9];u[9]=u[5];u[5]=u[1];u[1]=o;o=u[14];l=u[10];u[14]=u[6];u[10]=u[2];u[6]=o;u[2]=l;o=u[15];l=u[11];c=u[7];u[15]=u[3];u[11]=o;u[7]=l;u[3]=c;for(var O=0;O<16;++O){u[O]=this._inv_s[u[O]];u[O]^=r[O]}return u}},{key:"_encrypt",value:function _encrypt(t,r){var o,l,c,u=this._s,h=new Uint8Array(16);h.set(t);for(var d=0;d<16;++d)h[d]^=r[d];for(var m=1;m<this._cyclesOfRepetition;m++){for(var g=0;g<16;++g)h[g]=u[h[g]];c=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=c;c=h[2];l=h[6];h[2]=h[10];h[6]=h[14];h[10]=c;h[14]=l;c=h[3];l=h[7];o=h[11];h[3]=h[15];h[7]=c;h[11]=l;h[15]=o;for(var y=0;y<16;y+=4){var v=h[y+0],S=h[y+1],k=h[y+2],C=h[y+3];o=v^S^k^C;h[y+0]^=o^this._mixCol[v^S];h[y+1]^=o^this._mixCol[S^k];h[y+2]^=o^this._mixCol[k^C];h[y+3]^=o^this._mixCol[C^v]}for(var w=0,_=16*m;w<16;++w,++_)h[w]^=r[_]}for(var O=0;O<16;++O)h[O]=u[h[O]];c=h[1];h[1]=h[5];h[5]=h[9];h[9]=h[13];h[13]=c;c=h[2];l=h[6];h[2]=h[10];h[6]=h[14];h[10]=c;h[14]=l;c=h[3];l=h[7];o=h[11];h[3]=h[15];h[7]=c;h[11]=l;h[15]=o;for(var x=0,T=this._keySize;x<16;++x,++T)h[x]^=r[T];return h}},{key:"_decryptBlock2",value:function _decryptBlock2(t,r){for(var o=t.length,l=this.buffer,c=this.bufferPosition,u=[],h=this.iv,d=0;d<o;++d){l[c]=t[d];if(!(++c<16)){for(var m=this._decrypt(l,this._key),g=0;g<16;++g)m[g]^=h[g];h=l;u.push(m);l=new Uint8Array(16);c=0}}this.buffer=l;this.bufferLength=c;this.iv=h;if(0===u.length)return new Uint8Array(0);var y=16*u.length;if(r){var v=u[u.length-1],S=v[15];if(S<=16){for(var k=15,C=16-S;k>=C;--k)if(v[k]!==S){S=0;break}y-=S;u[u.length-1]=v.subarray(0,16-S)}}for(var w=new Uint8Array(y),_=0,O=0,x=u.length;_<x;++_,O+=16)w.set(u[_],O);return w}},{key:"decryptBlock",value:function decryptBlock(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=t.length,c=this.buffer,u=this.bufferPosition;if(o)this.iv=o;else{for(var h=0;u<16&&h<l;++h,++u)c[u]=t[h];if(u<16){this.bufferLength=u;return new Uint8Array(0)}this.iv=c;t=t.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(t,r)}},{key:"encrypt",value:function encrypt(t,r){var o=t.length,l=this.buffer,c=this.bufferPosition,u=[];r||(r=new Uint8Array(16));for(var h=0;h<o;++h){l[c]=t[h];if(!(++c<16)){for(var d=0;d<16;++d)l[d]^=r[d];var m=this._encrypt(l,this._key);r=m;u.push(m);l=new Uint8Array(16);c=0}}this.buffer=l;this.bufferLength=c;this.iv=r;if(0===u.length)return new Uint8Array(0);for(var g=16*u.length,y=new Uint8Array(g),v=0,S=0,k=u.length;v<k;++v,S+=16)y.set(u[v],S);return y}}]);return AESBaseCipher}(),k=function(t){_inherits(AES128Cipher,t);var r=_createSuper(AES128Cipher);function AES128Cipher(t){var o;_classCallCheck(this,AES128Cipher);(o=r.call(this))._cyclesOfRepetition=10;o._keySize=160;o._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);o._key=o._expandKey(t);return o}_createClass(AES128Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=this._rcon,l=new Uint8Array(176);l.set(t);for(var c=16,u=1;c<176;++u){var h=l[c-3],d=l[c-2],m=l[c-1],g=l[c-4];h=r[h];d=r[d];m=r[m];g=r[g];h^=o[u];for(var y=0;y<4;++y){l[c]=h^=l[c-16];l[++c]=d^=l[c-16];l[++c]=m^=l[c-16];l[++c]=g^=l[c-16];c++}}return l}}]);return AES128Cipher}(S);r.AES128Cipher=k;var C=function(t){_inherits(AES256Cipher,t);var r=_createSuper(AES256Cipher);function AES256Cipher(t){var o;_classCallCheck(this,AES256Cipher);(o=r.call(this))._cyclesOfRepetition=14;o._keySize=224;o._key=o._expandKey(t);return o}_createClass(AES256Cipher,[{key:"_expandKey",value:function _expandKey(t){var r=this._s,o=new Uint8Array(240);o.set(t);for(var l,c,u,h,d=1,m=32,g=1;m<240;++g){if(m%32==16){l=r[l];c=r[c];u=r[u];h=r[h]}else if(m%32==0){l=o[m-3];c=o[m-2];u=o[m-1];h=o[m-4];l=r[l];c=r[c];u=r[u];h=r[h];l^=d;(d<<=1)>=256&&(d=255&(27^d))}for(var y=0;y<4;++y){o[m]=l^=o[m-32];o[++m]=c^=o[m-32];o[++m]=u^=o[m-32];o[++m]=h^=o[m-32];m++}}return o}}]);return AES256Cipher}(S);r.AES256Cipher=C;var w=function(){function PDF17(){_classCallCheck(this,PDF17)}_createClass(PDF17,[{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var u=new Uint8Array(t.length+56);u.set(t,0);u.set(r,t.length);u.set(o,t.length+r.length);var h=g(u,0,u.length);return(0,l.isArrayEqual)(h,c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var u=g(c,0,c.length);return(0,l.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,l){var c=new Uint8Array(t.length+56);c.set(t,0);c.set(r,t.length);c.set(o,t.length+r.length);var u=g(c,0,c.length);return new C(u).decryptBlock(l,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var c=g(l,0,l.length);return new C(c).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF17}();r.PDF17=w;var _=function PDF20Closure(){function calculatePDF20Hash(t,r,o){for(var l=g(r,0,r.length).subarray(0,32),c=[0],u=0;u<64||c[c.length-1]>u-32;){var h=t.length+l.length+o.length,d=new Uint8Array(h),m=0;d.set(t,m);m+=t.length;d.set(l,m);m+=l.length;d.set(o,m);for(var v=new Uint8Array(64*h),S=0,C=0;S<64;S++,C+=h)v.set(d,C);c=new k(l.subarray(0,16)).encrypt(v,l.subarray(16,32));for(var w=0,_=0;_<16;_++){w*=1;w%=3;w+=(c[_]>>>0)%3;w%=3}0===w?l=g(c,0,c.length):1===w?l=calculateSHA384(c,0,c.length):2===w&&(l=y(c,0,c.length));u++}return l.subarray(0,32)}return function(){function PDF20(){_classCallCheck(this,PDF20)}_createClass(PDF20,[{key:"hash",value:function hash(t,r,o){return calculatePDF20Hash(t,r,o)}},{key:"checkOwnerPassword",value:function checkOwnerPassword(t,r,o,c){var u=new Uint8Array(t.length+56);u.set(t,0);u.set(r,t.length);u.set(o,t.length+r.length);var h=calculatePDF20Hash(t,u,o);return(0,l.isArrayEqual)(h,c)}},{key:"checkUserPassword",value:function checkUserPassword(t,r,o){var c=new Uint8Array(t.length+8);c.set(t,0);c.set(r,t.length);var u=calculatePDF20Hash(t,c,[]);return(0,l.isArrayEqual)(u,o)}},{key:"getOwnerKey",value:function getOwnerKey(t,r,o,l){var c=new Uint8Array(t.length+56);c.set(t,0);c.set(r,t.length);c.set(o,t.length+r.length);var u=calculatePDF20Hash(t,c,o);return new C(u).decryptBlock(l,!1,new Uint8Array(16))}},{key:"getUserKey",value:function getUserKey(t,r,o){var l=new Uint8Array(t.length+8);l.set(t,0);l.set(r,t.length);var c=calculatePDF20Hash(t,l,[]);return new C(c).decryptBlock(o,!1,new Uint8Array(16))}}]);return PDF20}()}();r.PDF20=_;var O=function(){function CipherTransform(t,r){_classCallCheck(this,CipherTransform);this.StringCipherConstructor=t;this.StreamCipherConstructor=r}_createClass(CipherTransform,[{key:"createStream",value:function createStream(t,r){var o=new this.StreamCipherConstructor;return new u.DecryptStream(t,r,(function cipherTransformDecryptStream(t,r){return o.decryptBlock(t,r)}))}},{key:"decryptString",value:function decryptString(t){var r=new this.StringCipherConstructor,o=(0,l.stringToBytes)(t);o=r.decryptBlock(o,!0);return(0,l.bytesToString)(o)}},{key:"encryptString",value:function encryptString(t){var r=new this.StringCipherConstructor;if(r instanceof S){var o=t.length,c=16-o%16;16!==c&&(t=t.padEnd(16*Math.ceil(o/16),String.fromCharCode(c)));var u=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(u);else for(var h=0;h<16;h++)u[h]=Math.floor(256*Math.random());var d=(0,l.stringToBytes)(t);d=r.encrypt(d,u);var m=new Uint8Array(16+d.length);m.set(u);m.set(d,16);return(0,l.bytesToString)(m)}var g=(0,l.stringToBytes)(t);g=r.encrypt(g);return(0,l.bytesToString)(g)}}]);return CipherTransform}(),x=function CipherTransformFactoryClosure(){var t=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function prepareKeyData(r,o,l,c,u,m,g,y){var v,S,k=40+l.length+r.length,C=new Uint8Array(k),w=0;if(o){S=Math.min(32,o.length);for(;w<S;++w)C[w]=o[w]}v=0;for(;w<32;)C[w++]=t[v++];for(v=0,S=l.length;v<S;++v)C[w++]=l[v];C[w++]=255&u;C[w++]=u>>8&255;C[w++]=u>>16&255;C[w++]=u>>>24&255;for(v=0,S=r.length;v<S;++v)C[w++]=r[v];if(m>=4&&!y){C[w++]=255;C[w++]=255;C[w++]=255;C[w++]=255}var _=d(C,0,w),O=g>>3;if(m>=3)for(v=0;v<50;++v)_=d(_,0,O);var x,T=_.subarray(0,O);if(m>=3){for(w=0;w<32;++w)C[w]=t[w];for(v=0,S=r.length;v<S;++v)C[w++]=r[v];x=new h(T).encryptBlock(d(C,0,w));S=T.length;var R,E=new Uint8Array(S);for(v=1;v<=19;++v){for(R=0;R<S;++R)E[R]=T[R]^v;x=new h(E).encryptBlock(x)}for(v=0,S=x.length;v<S;++v)if(c[v]!==x[v])return null}else for(v=0,S=(x=new h(T).encryptBlock(t)).length;v<S;++v)if(c[v]!==x[v])return null;return T}var r=c.Name.get("Identity");function buildObjectKey(t,r,o){var l,c,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],h=new Uint8Array(o.length+9);for(l=0,c=o.length;l<c;++l)h[l]=o[l];h[l++]=255&t;h[l++]=t>>8&255;h[l++]=t>>16&255;h[l++]=255&r;h[l++]=r>>8&255;if(u){h[l++]=115;h[l++]=65;h[l++]=108;h[l++]=84}var m=d(h,0,l);return m.subarray(0,Math.min(o.length+5,16))}function buildCipherConstructor(t,r,o,u,d){if(!(0,c.isName)(r))throw new l.FormatError("Invalid crypt filter name.");var m,g=t.get(r.name);null!=g&&(m=g.get("CFM"));if(!m||"None"===m.name)return function cipherTransformFactoryBuildCipherConstructorNone(){return new v};if("V2"===m.name)return function cipherTransformFactoryBuildCipherConstructorV2(){return new h(buildObjectKey(o,u,d,!1))};if("AESV2"===m.name)return function cipherTransformFactoryBuildCipherConstructorAESV2(){return new k(buildObjectKey(o,u,d,!0))};if("AESV3"===m.name)return function cipherTransformFactoryBuildCipherConstructorAESV3(){return new C(d)};throw new l.FormatError("Unknown crypto method")}return function(){function CipherTransformFactory(o,u,m){_classCallCheck(this,CipherTransformFactory);var g=o.get("Filter");if(!(0,c.isName)(g,"Standard"))throw new l.FormatError("unknown encryption method");this.dict=o;var y=o.get("V");if(!Number.isInteger(y)||1!==y&&2!==y&&4!==y&&5!==y)throw new l.FormatError("unsupported encryption algorithm");this.algorithm=y;var v=o.get("Length");if(!v)if(y<=3)v=40;else{var S=o.get("CF"),k=o.get("StmF");if((0,c.isDict)(S)&&(0,c.isName)(k)){S.suppressEncryption=!0;var C=S.get(k.name);(v=C&&C.get("Length")||128)<40&&(v<<=3)}}if(!Number.isInteger(v)||v<40||v%8!=0)throw new l.FormatError("invalid key length");var O=(0,l.stringToBytes)(o.get("O")).subarray(0,32),x=(0,l.stringToBytes)(o.get("U")).subarray(0,32),T=o.get("P"),R=o.get("R"),E=(4===y||5===y)&&!1!==o.get("EncryptMetadata");this.encryptMetadata=E;var D,j,M=(0,l.stringToBytes)(u);if(m){if(6===R)try{m=(0,l.utf8StringToString)(m)}catch(t){(0,l.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}D=(0,l.stringToBytes)(m)}if(5!==y)j=prepareKeyData(M,D,O,x,T,R,v,E);else{var N=(0,l.stringToBytes)(o.get("O")).subarray(32,40),L=(0,l.stringToBytes)(o.get("O")).subarray(40,48),U=(0,l.stringToBytes)(o.get("U")).subarray(0,48),q=(0,l.stringToBytes)(o.get("U")).subarray(32,40),X=(0,l.stringToBytes)(o.get("U")).subarray(40,48),W=(0,l.stringToBytes)(o.get("OE")),H=(0,l.stringToBytes)(o.get("UE"));(0,l.stringToBytes)(o.get("Perms"));j=function createEncryptionKey20(t,r,o,l,c,u,h,d,m,g,y,v){if(r){var S=Math.min(127,r.length);r=r.subarray(0,S)}else r=[];var k;return(k=6===t?new _:new w).checkUserPassword(r,d,h)?k.getUserKey(r,m,y):r.length&&k.checkOwnerPassword(r,l,u,o)?k.getOwnerKey(r,c,u,g):null}(R,D,O,N,L,U,x,q,X,W,H)}if(!j&&!m)throw new l.PasswordException("No password given",l.PasswordResponses.NEED_PASSWORD);if(!j&&m){j=prepareKeyData(M,function decodeUserPassword(r,o,l,c){var u,m,g=new Uint8Array(32),y=0;m=Math.min(32,r.length);for(;y<m;++y)g[y]=r[y];u=0;for(;y<32;)g[y++]=t[u++];var v,S=d(g,0,y),k=c>>3;if(l>=3)for(u=0;u<50;++u)S=d(S,0,S.length);if(l>=3){v=o;var C,w=new Uint8Array(k);for(u=19;u>=0;u--){for(C=0;C<k;++C)w[C]=S[C]^u;v=new h(w).encryptBlock(v)}}else v=new h(S.subarray(0,k)).encryptBlock(o);return v}(D,O,R,v),O,x,T,R,v,E)}if(!j)throw new l.PasswordException("Incorrect Password",l.PasswordResponses.INCORRECT_PASSWORD);this.encryptionKey=j;if(y>=4){var z=o.get("CF");(0,c.isDict)(z)&&(z.suppressEncryption=!0);this.cf=z;this.stmf=o.get("StmF")||r;this.strf=o.get("StrF")||r;this.eff=o.get("EFF")||this.stmf}}_createClass(CipherTransformFactory,[{key:"createCipherTransform",value:function createCipherTransform(t,r){if(4===this.algorithm||5===this.algorithm)return new O(buildCipherConstructor(this.cf,this.stmf,t,r,this.encryptionKey),buildCipherConstructor(this.cf,this.strf,t,r,this.encryptionKey));var o=buildObjectKey(t,r,this.encryptionKey,!1),l=function buildCipherCipherConstructor(){return new h(o)};return new O(l,l)}}]);return CipherTransformFactory}()}();r.CipherTransformFactory=x},(t,r,o)=>{"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.ColorSpace=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(128);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function(){function ColorSpace(t,r){_classCallCheck(this,ColorSpace);this.constructor===ColorSpace&&(0,c.unreachable)("Cannot initialize ColorSpace.");this.name=t;this.numComps=r}_createClass(ColorSpace,[{key:"getRgb",value:function getRgb(t,r){var o=new Uint8ClampedArray(3);this.getRgbItem(t,r,o,0);return o}},{key:"getRgbItem",value:function getRgbItem(t,r,o,l){(0,c.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,u,h,d){(0,c.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function getOutputLength(t,r){(0,c.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function isPassthrough(t){return!1}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return ColorSpace.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function fillRgb(t,r,o,l,c,u,h,d,m){var g=r*o,y=null,v=1<<h,S=o!==c||r!==l;if(this.isPassthrough(h))y=d;else if(1===this.numComps&&g>v&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var k=h<=8?new Uint8Array(v):new Uint16Array(v),C=0;C<v;C++)k[C]=C;var w=new Uint8ClampedArray(3*v);this.getRgbBuffer(k,0,v,w,0,h,0);if(S){y=new Uint8Array(3*g);for(var _=0,O=0;O<g;++O){var x=3*d[O];y[_++]=w[x];y[_++]=w[x+1];y[_++]=w[x+2]}}else for(var T=0,R=0;R<g;++R){var E=3*d[R];t[T++]=w[E];t[T++]=w[E+1];t[T++]=w[E+2];T+=m}}else if(S){y=new Uint8ClampedArray(3*g);this.getRgbBuffer(d,0,g,y,0,h,0)}else this.getRgbBuffer(d,0,l*u,t,0,h,m);if(y)if(S)!function resizeRgbImage(t,r,o,l,c,u,h){h=1!==h?0:h;for(var d,m=o/c,g=l/u,y=0,v=new Uint16Array(c),S=3*o,k=0;k<c;k++)v[k]=3*Math.floor(k*m);for(var C=0;C<u;C++)for(var w=Math.floor(C*g)*S,_=0;_<c;_++){d=w+v[_];r[y++]=t[d++];r[y++]=t[d++];r[y++]=t[d++];y+=h}}(y,t,r,o,l,c,m);else for(var D=0,j=0,M=0,N=l*u;M<N;M++){t[D++]=y[j++];t[D++]=y[j++];t[D++]=y[j++];D+=m}}},{key:"usesZeroToOneRange",get:function get(){return(0,c.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"_cache",value:function _cache(t,r,o,l){if(!o)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!l)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');var c,h;if(t instanceof u.Ref){h=t;t=r.fetch(t)}t instanceof u.Name&&(c=t.name);(c||h)&&o.set(c,h,l)}},{key:"getCached",value:function getCached(t,r,o){if(!o)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(t instanceof u.Ref){var l=o.getByRef(t);if(l)return l;try{t=r.fetch(t)}catch(t){if(t instanceof h.MissingDataException)throw t}}if(t instanceof u.Name){var c=o.getByName(t.name);if(c)return c}return null}},{key:"parseAsync",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){var r,o,c,u,h,d,m;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:r=t.cs,o=t.xref,c=t.resources,u=void 0===c?null:c,h=t.pdfFunctionFactory,d=t.localColorSpaceCache;m=this._parse(r,o,u,h);this._cache(r,o,d,m);return l.abrupt("return",m);case 4:case"end":return l.stop()}}),_callee,this)}))),function parseAsync(r){return t.apply(this,arguments)})},{key:"parse",value:function parse(t){var r=t.cs,o=t.xref,l=t.resources,c=void 0===l?null:l,u=t.pdfFunctionFactory,h=t.localColorSpaceCache,d=this.getCached(r,o,h);if(d)return d;var m=this._parse(r,o,c,u);this._cache(r,o,h,m);return m}},{key:"_parse",value:function _parse(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;t=r.fetchIfRef(t);if((0,u.isName)(t))switch(t.name){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"Pattern":return new g(null);default:if((0,u.isDict)(o)){var h=o.get("ColorSpace");if((0,u.isDict)(h)){var d=h.get(t.name);if(d){if((0,u.isName)(d))return this._parse(d,r,o,l);t=d;break}}}throw new c.FormatError("Unrecognized ColorSpace: ".concat(t.name))}if(Array.isArray(t)){var v,S,k,O,x,T,R=r.fetchIfRef(t[0]).name;switch(R){case"DeviceGray":case"G":return this.singletons.gray;case"DeviceRGB":case"RGB":return this.singletons.rgb;case"DeviceCMYK":case"CMYK":return this.singletons.cmyk;case"CalGray":O=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");x=v.getArray("BlackPoint");T=v.get("Gamma");return new C(O,x,T);case"CalRGB":O=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");x=v.getArray("BlackPoint");T=v.getArray("Gamma");var E=v.getArray("Matrix");return new w(O,x,T,E);case"ICCBased":var D=r.fetchIfRef(t[1]),j=D.dict;S=j.get("N");var M=j.get("Alternate");if(M){var N=this._parse(M,r,o,l);if(N.numComps===S)return N;(0,c.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===S)return this.singletons.gray;if(3===S)return this.singletons.rgb;if(4===S)return this.singletons.cmyk;break;case"Pattern":(k=t[1]||null)&&(k=this._parse(k,r,o,l));return new g(k);case"Indexed":case"I":k=this._parse(t[1],r,o,l);var L=r.fetchIfRef(t[2])+1,U=r.fetchIfRef(t[3]);return new y(k,L,U);case"Separation":case"DeviceN":var q=r.fetchIfRef(t[1]);S=Array.isArray(q)?q.length:1;k=this._parse(t[2],r,o,l);var X=l.create(t[3]);return new m(S,k,X);case"Lab":O=(v=r.fetchIfRef(t[1])).getArray("WhitePoint");x=v.getArray("BlackPoint");var W=v.getArray("Range");return new _(O,x,W);default:throw new c.FormatError("Unimplemented ColorSpace object: ".concat(R))}}throw new c.FormatError("Unrecognized ColorSpace object: ".concat(t))}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2*r!==t.length){(0,c.warn)("The decode map is not the correct length");return!0}for(var o=0,l=t.length;o<l;o+=2)if(0!==t[o]||1!==t[o+1])return!1;return!0}},{key:"singletons",get:function get(){return(0,c.shadow)(this,"singletons",{get gray(){return(0,c.shadow)(this,"gray",new v)},get rgb(){return(0,c.shadow)(this,"rgb",new S)},get cmyk(){return(0,c.shadow)(this,"cmyk",new k)}})}}]);var t;return ColorSpace}();r.ColorSpace=d;var m=function(t){_inherits(AlternateCS,t);var r=_createSuper(AlternateCS);function AlternateCS(t,o,l){var c;_classCallCheck(this,AlternateCS);(c=r.call(this,"Alternate",t)).base=o;c.tintFn=l;c.tmpBuf=new Float32Array(o.numComps);return c}_createClass(AlternateCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){var c=this.tmpBuf;this.tintFn(t,r,c,0);this.base.getRgbItem(c,0,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){var d,m,g=this.tintFn,y=this.base,v=1/((1<<u)-1),S=y.numComps,k=y.usesZeroToOneRange,C=(y.isPassthrough(8)||!k)&&0===h,w=C?c:0,_=C?l:new Uint8ClampedArray(S*o),O=this.numComps,x=new Float32Array(O),T=new Float32Array(S);for(d=0;d<o;d++){for(m=0;m<O;m++)x[m]=t[r++]*v;g(x,0,T,0);if(k)for(m=0;m<S;m++)_[w++]=255*T[m];else{y.getRgbItem(T,0,_,w);w+=S}}C||y.getRgbBuffer(_,0,o,l,c,8,h)}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps/this.numComps,r)}}]);return AlternateCS}(d),g=function(t){_inherits(PatternCS,t);var r=_createSuper(PatternCS);function PatternCS(t){var o;_classCallCheck(this,PatternCS);(o=r.call(this,"Pattern",null)).base=t;return o}_createClass(PatternCS,[{key:"isDefaultDecode",value:function isDefaultDecode(t,r){(0,c.unreachable)("Should not call PatternCS.isDefaultDecode")}}]);return PatternCS}(d),y=function(t){_inherits(IndexedCS,t);var r=_createSuper(IndexedCS);function IndexedCS(t,o,l){var h;_classCallCheck(this,IndexedCS);(h=r.call(this,"Indexed",1)).base=t;h.highVal=o;var d=t.numComps*o;h.lookup=new Uint8Array(d);if((0,u.isStream)(l)){var m=l.getBytes(d);h.lookup.set(m)}else{if("string"!=typeof l)throw new c.FormatError("IndexedCS - unrecognized lookup table: ".concat(l));for(var g=0;g<d;++g)h.lookup[g]=255&l.charCodeAt(g)}return h}_createClass(IndexedCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){var c=this.base.numComps,u=t[r]*c;this.base.getRgbBuffer(this.lookup,u,1,o,l,8,0)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=this.base,m=d.numComps,g=d.getOutputLength(m,h),y=this.lookup,v=0;v<o;++v){var S=t[r++]*m;d.getRgbBuffer(y,S,1,l,c,8,h);c+=g}}},{key:"getOutputLength",value:function getOutputLength(t,r){return this.base.getOutputLength(t*this.base.numComps,r)}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){if(!Array.isArray(t))return!0;if(2!==t.length){(0,c.warn)("Decode map length is not correct");return!0}if(!Number.isInteger(r)||r<1){(0,c.warn)("Bits per component is not correct");return!0}return 0===t[0]&&t[1]===(1<<r)-1}}]);return IndexedCS}(d),v=function(t){_inherits(DeviceGrayCS,t);var r=_createSuper(DeviceGrayCS);function DeviceGrayCS(){_classCallCheck(this,DeviceGrayCS);return r.call(this,"DeviceGray",1)}_createClass(DeviceGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){var c=255*t[r];o[l]=o[l+1]=o[l+2]=c}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=255/((1<<u)-1),m=r,g=c,y=0;y<o;++y){var v=d*t[m++];l[g++]=v;l[g++]=v;l[g++]=v;g+=h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return DeviceGrayCS}(d),S=function(t){_inherits(DeviceRgbCS,t);var r=_createSuper(DeviceRgbCS);function DeviceRgbCS(){_classCallCheck(this,DeviceRgbCS);return r.call(this,"DeviceRGB",3)}_createClass(DeviceRgbCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){o[l]=255*t[r];o[l+1]=255*t[r+1];o[l+2]=255*t[r+2]}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){if(8!==u||0!==h)for(var d=255/((1<<u)-1),m=r,g=c,y=0;y<o;++y){l[g++]=d*t[m++];l[g++]=d*t[m++];l[g++]=d*t[m++];g+=h}else l.set(t.subarray(r,r+3*o),c)}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isPassthrough",value:function isPassthrough(t){return 8===t}}]);return DeviceRgbCS}(d),k=function DeviceCmykCSClosure(){function convertToRgb(t,r,o,l,c){var u=t[r]*o,h=t[r+1]*o,d=t[r+2]*o,m=t[r+3]*o;l[c]=255+u*(-4.387332384609988*u+54.48615194189176*h+18.82290502165302*d+212.25662451639585*m-285.2331026137004)+h*(1.7149763477362134*h-5.6096736904047315*d+-17.873870861415444*m-5.497006427196366)+d*(-2.5217340131683033*d-21.248923337353073*m+17.5119270841813)+m*(-21.86122147463605*m-189.48180835922747);l[c+1]=255+u*(8.841041422036149*u+60.118027045597366*h+6.871425592049007*d+31.159100130055922*m-79.2970844816548)+h*(-15.310361306967817*h+17.575251261109482*d+131.35250912493976*m-190.9453302588951)+d*(4.444339102852739*d+9.8632861493405*m-24.86741582555878)+m*(-20.737325471181034*m-187.80453709719578);l[c+2]=255+u*(.8842522430003296*u+8.078677503112928*h+30.89978309703729*d-.23883238689178934*m-14.183576799673286)+h*(10.49593273432072*h+63.02378494754052*d+50.606957656360734*m-112.23884253719248)+d*(.03296041114873217*d+115.60384449646641*m-193.58209356861505)+m*(-22.33816807309886*m-180.12613974708367)}return function(t){_inherits(DeviceCmykCS,t);var r=_createSuper(DeviceCmykCS);function DeviceCmykCS(){_classCallCheck(this,DeviceCmykCS);return r.call(this,"DeviceCMYK",4)}_createClass(DeviceCmykCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(t,r,1,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;m++){convertToRgb(t,r,d,l,c);r+=4;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t/4*(3+r)|0}}]);return DeviceCmykCS}(d)}(),C=function CalGrayCSClosure(){function convertToRgb(t,r,o,l,c,u){var h=r[o]*u,d=Math.pow(h,t.G),m=t.YW*d,g=Math.max(295.8*Math.pow(m,.3333333333333333)-40.8,0);l[c]=g;l[c+1]=g;l[c+2]=g}return function(t){_inherits(CalGrayCS,t);var r=_createSuper(CalGrayCS);function CalGrayCS(t,o,l){var u;_classCallCheck(this,CalGrayCS);u=r.call(this,"CalGray",1);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalGray");o=o||[0,0,0];l=l||1;u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.XB=o[0];u.YB=o[1];u.ZB=o[2];u.G=l;if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components for ".concat(u.name)+", no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint for ".concat(u.name,", falling back to default."));u.XB=u.YB=u.ZB=0}0===u.XB&&0===u.YB&&0===u.ZB||(0,c.warn)("".concat(u.name,", BlackPoint: XB: ").concat(u.XB,", YB: ").concat(u.YB,", ")+"ZB: ".concat(u.ZB,", only default values are supported."));if(u.G<1){(0,c.info)("Invalid Gamma: ".concat(u.G," for ").concat(u.name,", ")+"falling back to default.");u.G=1}return u}_createClass(CalGrayCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,o,l,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;++m){convertToRgb(this,t,r,l,c,d);r+=1;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)}}]);return CalGrayCS}(d)}(),w=function CalRGBCSClosure(){var t=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),r=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),o=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),l=new Float32Array([1,1,1]),u=new Float32Array(3),h=new Float32Array(3),m=new Float32Array(3),g=Math.pow(24/116,3)/8;function matrixProduct(t,r,o){o[0]=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];o[1]=t[3]*r[0]+t[4]*r[1]+t[5]*r[2];o[2]=t[6]*r[0]+t[7]*r[1]+t[8]*r[2]}function sRGBTransferFunction(t){return t<=.0031308?adjustToRange(0,1,12.92*t):t>=.99554525?1:adjustToRange(0,1,1.055*Math.pow(t,1/2.4)-.055)}function adjustToRange(t,r,o){return Math.max(t,Math.min(r,o))}function decodeL(t){return t<0?-decodeL(-t):t>8?Math.pow((t+16)/116,3):t*g}function convertToRgb(c,d,g,y,v,S){var k=adjustToRange(0,1,d[g]*S),C=adjustToRange(0,1,d[g+1]*S),w=adjustToRange(0,1,d[g+2]*S),_=1===k?1:Math.pow(k,c.GR),O=1===C?1:Math.pow(C,c.GG),x=1===w?1:Math.pow(w,c.GB),T=c.MXA*_+c.MXB*O+c.MXC*x,R=c.MYA*_+c.MYB*O+c.MYC*x,E=c.MZA*_+c.MZB*O+c.MZC*x,D=h;D[0]=T;D[1]=R;D[2]=E;var j=m;!function normalizeWhitePointToFlat(o,l,c){if(1!==o[0]||1!==o[2]){var h=c;matrixProduct(t,l,h);var d=u;!function convertToFlat(t,r,o){o[0]=1*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1*r[2]/t[2]}(o,h,d);matrixProduct(r,d,c)}else{c[0]=l[0];c[1]=l[1];c[2]=l[2]}}(c.whitePoint,D,j);var M=h;!function compensateBlackPoint(t,r,o){if(0!==t[0]||0!==t[1]||0!==t[2]){var l=decodeL(0),c=(1-l)/(1-decodeL(t[0])),u=1-c,h=(1-l)/(1-decodeL(t[1])),d=1-h,m=(1-l)/(1-decodeL(t[2])),g=1-m;o[0]=r[0]*c+u;o[1]=r[1]*h+d;o[2]=r[2]*m+g}else{o[0]=r[0];o[1]=r[1];o[2]=r[2]}}(c.blackPoint,j,M);var N=m;!function normalizeWhitePointToD65(o,l,c){var h=c;matrixProduct(t,l,h);var d=u;!function convertToD65(t,r,o){o[0]=.95047*r[0]/t[0];o[1]=1*r[1]/t[1];o[2]=1.08883*r[2]/t[2]}(o,h,d);matrixProduct(r,d,c)}(l,M,N);var L=h;matrixProduct(o,N,L);y[v]=255*sRGBTransferFunction(L[0]);y[v+1]=255*sRGBTransferFunction(L[1]);y[v+2]=255*sRGBTransferFunction(L[2])}return function(t){_inherits(CalRGBCS,t);var r=_createSuper(CalRGBCS);function CalRGBCS(t,o,l,u){var h;_classCallCheck(this,CalRGBCS);h=r.call(this,"CalRGB",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space CalRGB");o=o||new Float32Array(3);l=l||new Float32Array([1,1,1]);u=u||new Float32Array([1,0,0,0,1,0,0,0,1]);var d=t[0],m=t[1],g=t[2];h.whitePoint=t;var y=o[0],v=o[1],S=o[2];h.blackPoint=o;h.GR=l[0];h.GG=l[1];h.GB=l[2];h.MXA=u[0];h.MYA=u[1];h.MZA=u[2];h.MXB=u[3];h.MYB=u[4];h.MZB=u[5];h.MXC=u[6];h.MYC=u[7];h.MZC=u[8];if(d<0||g<0||1!==m)throw new c.FormatError("Invalid WhitePoint components for ".concat(h.name)+", no fallback available");if(y<0||v<0||S<0){(0,c.info)("Invalid BlackPoint for ".concat(h.name," [").concat(y,", ").concat(v,", ").concat(S,"], ")+"falling back to default.");h.blackPoint=new Float32Array(3)}if(h.GR<0||h.GG<0||h.GB<0){(0,c.info)("Invalid Gamma [".concat(h.GR,", ").concat(h.GG,", ").concat(h.GB,"] for ")+"".concat(h.name,", falling back to default."));h.GR=h.GG=h.GB=1}return h}_createClass(CalRGBCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,o,l,1)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=1/((1<<u)-1),m=0;m<o;++m){convertToRgb(this,t,r,l,c,d);r+=3;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}}]);return CalRGBCS}(d)}(),_=function LabCSClosure(){function fn_g(t){return t>=6/29?Math.pow(t,3):108/841*(t-4/29)}function decode(t,r,o,l){return o+t*(l-o)/r}function convertToRgb(t,r,o,l,c,u){var h=r[o],d=r[o+1],m=r[o+2];if(!1!==l){h=decode(h,l,0,100);d=decode(d,l,t.amin,t.amax);m=decode(m,l,t.bmin,t.bmax)}d>t.amax?d=t.amax:d<t.amin&&(d=t.amin);m>t.bmax?m=t.bmax:m<t.bmin&&(m=t.bmin);var g,y,v,S=(h+16)/116,k=S+d/500,C=S-m/200,w=t.XW*fn_g(k),_=t.YW*fn_g(S),O=t.ZW*fn_g(C);if(t.ZW<1){g=3.1339*w+-1.617*_+-.4906*O;y=-.9785*w+1.916*_+.0333*O;v=.072*w+-.229*_+1.4057*O}else{g=3.2406*w+-1.5372*_+-.4986*O;y=-.9689*w+1.8758*_+.0415*O;v=.0557*w+-.204*_+1.057*O}c[u]=255*Math.sqrt(g);c[u+1]=255*Math.sqrt(y);c[u+2]=255*Math.sqrt(v)}return function(t){_inherits(LabCS,t);var r=_createSuper(LabCS);function LabCS(t,o,l){var u;_classCallCheck(this,LabCS);u=r.call(this,"Lab",3);if(!t)throw new c.FormatError("WhitePoint missing - required for color space Lab");o=o||[0,0,0];l=l||[-100,100,-100,100];u.XW=t[0];u.YW=t[1];u.ZW=t[2];u.amin=l[0];u.amax=l[1];u.bmin=l[2];u.bmax=l[3];u.XB=o[0];u.YB=o[1];u.ZB=o[2];if(u.XW<0||u.ZW<0||1!==u.YW)throw new c.FormatError("Invalid WhitePoint components, no fallback available");if(u.XB<0||u.YB<0||u.ZB<0){(0,c.info)("Invalid BlackPoint, falling back to default");u.XB=u.YB=u.ZB=0}if(u.amin>u.amax||u.bmin>u.bmax){(0,c.info)("Invalid Range, falling back to defaults");u.amin=-100;u.amax=100;u.bmin=-100;u.bmax=100}return u}_createClass(LabCS,[{key:"getRgbItem",value:function getRgbItem(t,r,o,l){convertToRgb(this,t,r,!1,o,l)}},{key:"getRgbBuffer",value:function getRgbBuffer(t,r,o,l,c,u,h){for(var d=(1<<u)-1,m=0;m<o;m++){convertToRgb(this,t,r,d,l,c);r+=3;c+=3+h}}},{key:"getOutputLength",value:function getOutputLength(t,r){return t*(3+r)/3|0}},{key:"isDefaultDecode",value:function isDefaultDecode(t,r){return!0}},{key:"usesZeroToOneRange",get:function get(){return(0,c.shadow)(this,"usesZeroToOneRange",!1)}}]);return LabCS}(d)}()},(t,r,o)=>{"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.LocalTilingPatternCache=r.LocalImageCache=r.LocalGStateCache=r.LocalFunctionCache=r.LocalColorSpaceCache=r.GlobalImageCache=void 0;var l=o(4),c=o(125);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var u=function(){function BaseLocalCache(t){_classCallCheck(this,BaseLocalCache);this.constructor===BaseLocalCache&&(0,l.unreachable)("Cannot initialize BaseLocalCache.");if(!t||!t.onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new c.RefSetCache}_createClass(BaseLocalCache,[{key:"getByName",value:function getByName(t){var r=this._nameRefMap.get(t);return r?this.getByRef(r):this._imageMap.get(t)||null}},{key:"getByRef",value:function getByRef(t){return this._imageCache.get(t)||null}},{key:"set",value:function set(t,r,o){(0,l.unreachable)("Abstract method `set` called.")}}]);return BaseLocalCache}(),h=function(t){_inherits(LocalImageCache,t);var r=_createSuper(LocalImageCache);function LocalImageCache(){_classCallCheck(this,LocalImageCache);return r.apply(this,arguments)}_createClass(LocalImageCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalImageCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalImageCache}(u);r.LocalImageCache=h;var d=function(t){_inherits(LocalColorSpaceCache,t);var r=_createSuper(LocalColorSpaceCache);function LocalColorSpaceCache(){_classCallCheck(this,LocalColorSpaceCache);return r.apply(this,arguments)}_createClass(LocalColorSpaceCache,[{key:"set",value:function set(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if(!t&&!r)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(r){if(this._imageCache.has(r))return;t&&this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalColorSpaceCache}(u);r.LocalColorSpaceCache=d;var m=function(t){_inherits(LocalFunctionCache,t);var r=_createSuper(LocalFunctionCache);function LocalFunctionCache(t){_classCallCheck(this,LocalFunctionCache);return r.call(this,{onlyRefs:!0})}_createClass(LocalFunctionCache,[{key:"getByName",value:function getByName(t){(0,l.unreachable)("Should not call `getByName` method.")}},{key:"set",value:function set(){var t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,r)}}]);return LocalFunctionCache}(u);r.LocalFunctionCache=m;var g=function(t){_inherits(LocalGStateCache,t);var r=_createSuper(LocalGStateCache);function LocalGStateCache(){_classCallCheck(this,LocalGStateCache);return r.apply(this,arguments)}_createClass(LocalGStateCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalGStateCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalGStateCache}(u);r.LocalGStateCache=g;var y=function(t){_inherits(LocalTilingPatternCache,t);var r=_createSuper(LocalTilingPatternCache);function LocalTilingPatternCache(){_classCallCheck(this,LocalTilingPatternCache);return r.apply(this,arguments)}_createClass(LocalTilingPatternCache,[{key:"set",value:function set(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error('LocalTilingPatternCache.set - expected "name" argument.');if(r){if(this._imageCache.has(r))return;this._nameRefMap.set(t,r);this._imageCache.put(r,o)}else this._imageMap.has(t)||this._imageMap.set(t,o)}}]);return LocalTilingPatternCache}(u);r.LocalTilingPatternCache=y;var v=function(){function GlobalImageCache(){_classCallCheck(this,GlobalImageCache);this._refCache=new c.RefSetCache;this._imageCache=new c.RefSetCache}_createClass(GlobalImageCache,[{key:"_byteSize",get:function get(){var t=0;this._imageCache.forEach((function(r){t+=r.byteSize}));return t}},{key:"_cacheLimitReached",get:function get(){return!(this._imageCache.size<GlobalImageCache.MIN_IMAGES_TO_CACHE)&&!(this._byteSize<GlobalImageCache.MAX_BYTE_SIZE)}},{key:"shouldCache",value:function shouldCache(t,r){var o=this._refCache.get(t);return!((o?o.size+(o.has(r)?0:1):1)<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(t)&&this._cacheLimitReached)}},{key:"addPageIndex",value:function addPageIndex(t,r){var o=this._refCache.get(t);if(!o){o=new Set;this._refCache.put(t,o)}o.add(r)}},{key:"addByteSize",value:function addByteSize(t,r){var o=this._imageCache.get(t);o&&(o.byteSize||(o.byteSize=r))}},{key:"getData",value:function getData(t,r){var o=this._refCache.get(t);if(!o)return null;if(o.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;var l=this._imageCache.get(t);if(!l)return null;o.add(r);return l}},{key:"setData",value:function setData(t,r){if(!this._refCache.has(t))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(t)||(this._cacheLimitReached?(0,l.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(t,r))}},{key:"clear",value:function clear(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t||this._refCache.clear();this._imageCache.clear()}}],[{key:"NUM_PAGES_THRESHOLD",get:function get(){return(0,l.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MIN_IMAGES_TO_CACHE",get:function get(){return(0,l.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}},{key:"MAX_BYTE_SIZE",get:function get(){return(0,l.shadow)(this,"MAX_BYTE_SIZE",4e7)}}]);return GlobalImageCache}();r.GlobalImageCache=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MetadataParser=void 0;var l=o(146);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=function(){function MetadataParser(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MetadataParser);t=this._repair(t);var r=new l.SimpleXMLParser({lowerCaseName:!0}).parseFromString(t);this._metadataMap=new Map;this._data=t;r&&this._parse(r)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MetadataParser,[{key:"_repair",value:function _repair(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,r){for(var o=r.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,r,o,l){return String.fromCharCode(64*r+8*o+1*l)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,r){switch(r){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(r," isn't defined."))})),l=[],c=0,u=o.length;c<u;c+=2){var h=256*o.charCodeAt(c)+o.charCodeAt(c+1);h>=32&&h<127&&60!==h&&62!==h&&38!==h?l.push(String.fromCharCode(h)):l.push("&#x"+(65536+h).toString(16).substring(1)+";")}return">"+l.join("")}))}},{key:"_getSequence",value:function _getSequence(t){var r=t.nodeName;return"rdf:bag"!==r&&"rdf:seq"!==r&&"rdf:alt"!==r?null:t.childNodes.filter((function(t){return"rdf:li"===t.nodeName}))}},{key:"_parseArray",value:function _parseArray(t){if(t.hasChildNodes()){var r=_slicedToArray(t.childNodes,1)[0],o=this._getSequence(r)||[];this._metadataMap.set(t.nodeName,o.map((function(t){return t.textContent.trim()})))}}},{key:"_parse",value:function _parse(t){var r=t.documentElement;if("rdf:rdf"!==r.nodeName){r=r.firstChild;for(;r&&"rdf:rdf"!==r.nodeName;)r=r.nextSibling}if(r&&"rdf:rdf"===r.nodeName&&r.hasChildNodes()){var o,l=_createForOfIteratorHelper(r.childNodes);try{for(l.s();!(o=l.n()).done;){var c=o.value;if("rdf:description"===c.nodeName){var u,h=_createForOfIteratorHelper(c.childNodes);try{for(h.s();!(u=h.n()).done;){var d=u.value,m=d.nodeName;switch(m){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(d);continue}this._metadataMap.set(m,d.textContent.trim())}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){l.e(t)}finally{l.f()}}}},{key:"serializable",get:function get(){return{parsedData:this._metadataMap,rawData:this._data}}}]);return MetadataParser}();r.MetadataParser=c},(t,r,o)=>{"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.XMLParserErrorCode=r.XMLParserBase=r.SimpleXMLParser=r.SimpleDOMNode=void 0;var l=o(128);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var c={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};r.XMLParserErrorCode=c;function isWhitespace(t,r){var o=t[r];return" "===o||"\n"===o||"\r"===o||"\t"===o}var u=function(){function XMLParserBase(){_classCallCheck(this,XMLParserBase)}_createClass(XMLParserBase,[{key:"_resolveEntities",value:function _resolveEntities(t){var r=this;return t.replace(/&([^;]+);/g,(function(t,o){if("#x"===o.substring(0,2))return String.fromCodePoint(parseInt(o.substring(2),16));if("#"===o.substring(0,1))return String.fromCodePoint(parseInt(o.substring(1),10));switch(o){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return r.onResolveEntity(o)}))}},{key:"_parseContent",value:function _parseContent(t,r){var o=[],l=r;function skipWs(){for(;l<t.length&&isWhitespace(t,l);)++l}for(;l<t.length&&!isWhitespace(t,l)&&">"!==t[l]&&"/"!==t[l];)++l;var c=t.substring(r,l);skipWs();for(;l<t.length&&">"!==t[l]&&"/"!==t[l]&&"?"!==t[l];){skipWs();for(var u,h="";l<t.length&&!isWhitespace(t,l)&&"="!==t[l];){h+=t[l];++l}skipWs();if("="!==t[l])return null;++l;skipWs();var d=t[l];if('"'!==d&&"'"!==d)return null;var m=t.indexOf(d,++l);if(m<0)return null;u=t.substring(l,m);o.push({name:h,value:this._resolveEntities(u)});l=m+1;skipWs()}return{name:c,attributes:o,parsed:l-r}}},{key:"_parseProcessingInstruction",value:function _parseProcessingInstruction(t,r){var o=r;for(;o<t.length&&!isWhitespace(t,o)&&">"!==t[o]&&"/"!==t[o];)++o;var l=t.substring(r,o);!function skipWs(){for(;o<t.length&&isWhitespace(t,o);)++o}();for(var c=o;o<t.length&&("?"!==t[o]||">"!==t[o+1]);)++o;return{name:l,value:t.substring(c,o),parsed:o-r}}},{key:"parseXml",value:function parseXml(t){for(var r=0;r<t.length;){var o=r;if("<"===t[r]){var l=void 0;switch(t[++o]){case"/":++o;if((l=t.indexOf(">",o))<0){this.onError(c.UnterminatedElement);return}this.onEndElement(t.substring(o,l));o=l+1;break;case"?":++o;var u=this._parseProcessingInstruction(t,o);if("?>"!==t.substring(o+u.parsed,o+u.parsed+2)){this.onError(c.UnterminatedXmlDeclaration);return}this.onPi(u.name,u.value);o+=u.parsed+2;break;case"!":if("--"===t.substring(o+1,o+3)){if((l=t.indexOf("--\x3e",o+3))<0){this.onError(c.UnterminatedComment);return}this.onComment(t.substring(o+3,l));o=l+3}else if("[CDATA["===t.substring(o+1,o+8)){if((l=t.indexOf("]]>",o+8))<0){this.onError(c.UnterminatedCdat);return}this.onCdata(t.substring(o+8,l));o=l+3}else{if("DOCTYPE"!==t.substring(o+1,o+8)){this.onError(c.MalformedElement);return}var h=t.indexOf("[",o+8),d=!1;if((l=t.indexOf(">",o+8))<0){this.onError(c.UnterminatedDoctypeDeclaration);return}if(h>0&&l>h){if((l=t.indexOf("]>",o+8))<0){this.onError(c.UnterminatedDoctypeDeclaration);return}d=!0}var m=t.substring(o+8,l+(d?1:0));this.onDoctype(m);o=l+(d?2:1)}break;default:var g=this._parseContent(t,o);if(null===g){this.onError(c.MalformedElement);return}var y=!1;if("/>"===t.substring(o+g.parsed,o+g.parsed+2))y=!0;else if(">"!==t.substring(o+g.parsed,o+g.parsed+1)){this.onError(c.UnterminatedElement);return}this.onBeginElement(g.name,g.attributes,y);o+=g.parsed+(y?2:1)}}else{for(;o<t.length&&"<"!==t[o];)o++;var v=t.substring(r,o);this.onText(this._resolveEntities(v))}r=o}}},{key:"onResolveEntity",value:function onResolveEntity(t){return"&".concat(t,";")}},{key:"onPi",value:function onPi(t,r){}},{key:"onComment",value:function onComment(t){}},{key:"onCdata",value:function onCdata(t){}},{key:"onDoctype",value:function onDoctype(t){}},{key:"onText",value:function onText(t){}},{key:"onBeginElement",value:function onBeginElement(t,r,o){}},{key:"onEndElement",value:function onEndElement(t){}},{key:"onError",value:function onError(t){}}]);return XMLParserBase}();r.XMLParserBase=u;var h=function(){function SimpleDOMNode(t,r){_classCallCheck(this,SimpleDOMNode);this.nodeName=t;this.nodeValue=r;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}_createClass(SimpleDOMNode,[{key:"firstChild",get:function get(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function get(){var t=this.parentNode.childNodes;if(t){var r=t.indexOf(this);if(-1!==r)return t[r+1]}}},{key:"textContent",get:function get(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}},{key:"hasChildNodes",value:function hasChildNodes(){return this.childNodes&&this.childNodes.length>0}},{key:"searchNode",value:function searchNode(t,r){if(r>=t.length)return this;for(var o=t[r],l=[],c=this;;){if(o.name===c.nodeName){if(0!==o.pos){if(0===l.length)return null;var u,h=0,d=_createForOfIteratorHelper(_slicedToArray(l.pop(),1)[0].childNodes);try{for(d.s();!(u=d.n()).done;){var m=u.value;if(o.name===m.nodeName){if(h===o.pos)return m.searchNode(t,r+1);h++}}}catch(t){d.e(t)}finally{d.f()}return c.searchNode(t,r+1)}var g=c.searchNode(t,r+1);if(null!==g)return g}if(c.childNodes&&0!==c.childNodes.length){l.push([c,0]);c=c.childNodes[0]}else{if(0===l.length)return null;for(;0!==l.length;){var y=_slicedToArray(l.pop(),2),v=y[0],S=y[1]+1;if(S<v.childNodes.length){l.push([v,S]);c=v.childNodes[S];break}}if(0===l.length)return null}}}},{key:"dump",value:function dump(t){if("#text"!==this.nodeName){t.push("<".concat(this.nodeName));if(this.attributes){var r,o=_createForOfIteratorHelper(this.attributes);try{for(o.s();!(r=o.n()).done;){var c=r.value;t.push(" ".concat(c.name,'="').concat((0,l.encodeToXmlString)(c.value),'"'))}}catch(t){o.e(t)}finally{o.f()}}if(this.hasChildNodes()){t.push(">");var u,h=_createForOfIteratorHelper(this.childNodes);try{for(h.s();!(u=h.n()).done;){u.value.dump(t)}}catch(t){h.e(t)}finally{h.f()}t.push("</".concat(this.nodeName,">"))}else this.nodeValue?t.push(">".concat((0,l.encodeToXmlString)(this.nodeValue),"</").concat(this.nodeName,">")):t.push("/>")}else t.push((0,l.encodeToXmlString)(this.nodeValue))}}]);return SimpleDOMNode}();r.SimpleDOMNode=h;var d=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)}(SimpleXMLParser,t);var r=_createSuper(SimpleXMLParser);function SimpleXMLParser(t){var o,l=t.hasAttributes,u=void 0!==l&&l,h=t.lowerCaseName,d=void 0!==h&&h;_classCallCheck(this,SimpleXMLParser);(o=r.call(this))._currentFragment=null;o._stack=null;o._errorCode=c.NoError;o._hasAttributes=u;o._lowerCaseName=d;return o}_createClass(SimpleXMLParser,[{key:"parseFromString",value:function parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=c.NoError;this.parseXml(t);if(this._errorCode===c.NoError){var r=_slicedToArray(this._currentFragment,1)[0];if(r)return{documentElement:r}}}},{key:"onText",value:function onText(t){if(!function isWhitespaceString(t){for(var r=0,o=t.length;r<o;r++)if(!isWhitespace(t,r))return!1;return!0}(t)){var r=new h("#text",t);this._currentFragment.push(r)}}},{key:"onCdata",value:function onCdata(t){var r=new h("#text",t);this._currentFragment.push(r)}},{key:"onBeginElement",value:function onBeginElement(t,r,o){this._lowerCaseName&&(t=t.toLowerCase());var l=new h(t);l.childNodes=[];this._hasAttributes&&(l.attributes=r);this._currentFragment.push(l);if(!o){this._stack.push(this._currentFragment);this._currentFragment=l.childNodes}}},{key:"onEndElement",value:function onEndElement(t){this._currentFragment=this._stack.pop()||[];var r=this._currentFragment[this._currentFragment.length-1];if(r)for(var o=0,l=r.childNodes.length;o<l;o++)r.childNodes[o].parentNode=r}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return SimpleXMLParser}(u);r.SimpleXMLParser=d},(t,r,o)=>{"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.getQuadPoints=getQuadPoints;r.MarkupAnnotation=r.AnnotationFactory=r.AnnotationBorderStyle=r.Annotation=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(130),h=o(128),d=o(148),m=o(125),g=o(143),y=o(166),v=o(132),S=o(168);function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||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)}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var k=function(){function AnnotationFactory(){_classCallCheck(this,AnnotationFactory)}_createClass(AnnotationFactory,null,[{key:"create",value:function create(t,r,o,l,c){var u=this;return o.ensureCatalog("acroForm").then((function(h){return o.ensure(u,"_create",[t,r,o,l,h,c])}))}},{key:"_create",value:function _create(t,r,o,l,u,d){var g=t.fetchIfRef(r);if((0,m.isDict)(g)){var y=(0,m.isRef)(r)?r.toString():"annot_".concat(l.createObjId()),v=g.get("Subtype"),S={xref:t,ref:r,dict:g,subtype:v=(0,m.isName)(v)?v.name:null,id:y,pdfManager:o,acroForm:u instanceof m.Dict?u:m.Dict.empty,collectFields:d};switch(v){case"Link":return new D(S);case"Text":return new E(S);case"Widget":var k=(0,h.getInheritableProperty)({dict:g,key:"FT"});switch(k=(0,m.isName)(k)?k.name:null){case"Tx":return new x(S);case"Btn":return new T(S);case"Ch":return new R(S)}(0,c.warn)('Unimplemented widget field type "'.concat(k,'", ')+"falling back to base field type.");return new O(S);case"Popup":return new j(S);case"FreeText":return new M(S);case"Line":return new N(S);case"Square":return new L(S);case"Circle":return new U(S);case"PolyLine":return new q(S);case"Polygon":return new X(S);case"Caret":return new W(S);case"Ink":return new H(S);case"Highlight":return new z(S);case"Underline":return new G(S);case"Squiggly":return new V(S);case"StrikeOut":return new $(S);case"Stamp":return new K(S);case"FileAttachment":return new Y(S);default:d||(v?(0,c.warn)('Unimplemented annotation type "'.concat(v,'", ')+"falling back to base annotation."):(0,c.warn)("Annotation is missing the required /Subtype."));return new C(S)}}}}]);return AnnotationFactory}();r.AnnotationFactory=k;function getRgbColor(t){var r=new Uint8ClampedArray(3);if(!Array.isArray(t))return r;switch(t.length){case 0:return null;case 1:g.ColorSpace.singletons.gray.getRgbItem(t,0,r,0);return r;case 3:g.ColorSpace.singletons.rgb.getRgbItem(t,0,r,0);return r;case 4:g.ColorSpace.singletons.cmyk.getRgbItem(t,0,r,0);return r;default:return r}}function getQuadPoints(t,r){if(!t.has("QuadPoints"))return null;var o=t.getArray("QuadPoints");if(!Array.isArray(o)||0===o.length||o.length%8>0)return null;for(var l=[],c=0,u=o.length/8;c<u;c++){l.push([]);for(var h=8*c,d=8*c+8;h<d;h+=2){var m=o[h],g=o[h+1];if(null!==r&&(m<r[0]||m>r[2]||g<r[1]||g>r[3]))return null;l[c].push({x:m,y:g})}}return l.map((function(t){var r=t.reduce((function(t,r){var o=_slicedToArray(t,4),l=o[0],c=o[1],u=o[2],h=o[3];return[Math.min(l,r.x),Math.max(c,r.x),Math.min(u,r.y),Math.max(h,r.y)]}),[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]),o=_slicedToArray(r,4),l=o[0],c=o[1],u=o[2],h=o[3];return[{x:l,y:h},{x:c,y:h},{x:l,y:u},{x:c,y:u}]}))}function getTransformMatrix(t,r,o){var l=_slicedToArray(c.Util.getAxialAlignedBoundingBox(r,o),4),u=l[0],h=l[1],d=l[2],m=l[3];if(u===d||h===m)return[1,0,0,1,t[0],t[1]];var g=(t[2]-t[0])/(d-u),y=(t[3]-t[1])/(m-h);return[g,0,0,y,t[0]-u*g,t[1]-h*y]}var C=function(){function Annotation(t){_classCallCheck(this,Annotation);var r=t.dict;this.setContents(r.get("Contents"));this.setModificationDate(r.get("M"));this.setFlags(r.get("F"));this.setRectangle(r.getArray("Rect"));this.setColor(r.getArray("C"));this.setBorderStyle(r);this.setAppearance(r);this._streams=[];this.appearance&&this._streams.push(this.appearance);this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype};if(t.collectFields){var o=r.get("Kids");if(Array.isArray(o)){var l,u=[],d=_createForOfIteratorHelper(o);try{for(d.s();!(l=d.n()).done;){var g=l.value;(0,m.isRef)(g)&&u.push(g.toString())}}catch(t){d.e(t)}finally{d.f()}0!==u.length&&(this.data.kidIds=u)}this.data.actions=(0,h.collectActions)(t.xref,r,c.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(r)}this._fallbackFontDict=null}_createClass(Annotation,[{key:"_hasFlag",value:function _hasFlag(t,r){return!!(t&r)}},{key:"_isViewable",value:function _isViewable(t){return!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,c.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function _isPrintable(t){return this._hasFlag(t,c.AnnotationFlag.PRINT)&&!this._hasFlag(t,c.AnnotationFlag.INVISIBLE)}},{key:"isHidden",value:function isHidden(t){var r=t&&t.get(this.data.id);return r&&void 0!==r.hidden?r.hidden:this._hasFlag(this.flags,c.AnnotationFlag.HIDDEN)}},{key:"viewable",get:function get(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}},{key:"printable",get:function get(){return null!==this.data.quadPoints&&(0!==this.flags&&this._isPrintable(this.flags))}},{key:"setContents",value:function setContents(t){this.contents=(0,c.stringToPDFString)(t||"")}},{key:"setModificationDate",value:function setModificationDate(t){this.modificationDate=(0,c.isString)(t)?t:null}},{key:"setFlags",value:function setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0}},{key:"hasFlag",value:function hasFlag(t){return this._hasFlag(this.flags,t)}},{key:"setRectangle",value:function setRectangle(t){Array.isArray(t)&&4===t.length?this.rectangle=c.Util.normalizeRect(t):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function setColor(t){this.color=getRgbColor(t)}},{key:"setBorderStyle",value:function setBorderStyle(t){this.borderStyle=new w;if((0,m.isDict)(t))if(t.has("BS")){var r=t.get("BS"),o=r.get("Type");if(!o||(0,m.isName)(o,"Border")){this.borderStyle.setWidth(r.get("W"),this.rectangle);this.borderStyle.setStyle(r.get("S"));this.borderStyle.setDashArray(r.getArray("D"))}}else if(t.has("Border")){var l=t.getArray("Border");if(Array.isArray(l)&&l.length>=3){this.borderStyle.setHorizontalCornerRadius(l[0]);this.borderStyle.setVerticalCornerRadius(l[1]);this.borderStyle.setWidth(l[2],this.rectangle);4===l.length&&this.borderStyle.setDashArray(l[3])}}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function setAppearance(t){this.appearance=null;var r=t.get("AP");if((0,m.isDict)(r)){var o=r.get("N");if((0,m.isStream)(o))this.appearance=o;else if((0,m.isDict)(o)){var l=t.get("AS");(0,m.isName)(l)&&o.has(l.name)&&(this.appearance=o.get(l.name))}}}},{key:"loadResources",value:function loadResources(t){return this.appearance.dict.getAsync("Resources").then((function(r){if(r){return new u.ObjectLoader(r,t,r.xref).load().then((function(){return r}))}}))}},{key:"getOperatorList",value:function getOperatorList(t,r,o,l){var u=this;if(!this.appearance)return Promise.resolve(new y.OperatorList);var h=this.appearance,d=this.data,m=h.dict,g=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),v=m.getArray("BBox")||[0,0,1,1],S=m.getArray("Matrix")||[1,0,0,1,0,0],k=getTransformMatrix(d.rect,v,S);return g.then((function(o){var l=new y.OperatorList;l.addOp(c.OPS.beginAnnotation,[d.rect,k,S]);return t.getOperatorList({stream:h,task:r,resources:o,operatorList:l,fallbackFontDict:u._fallbackFontDict}).then((function(){l.addOp(c.OPS.endAnnotation,[]);u.reset();return l}))}))}},{key:"save",value:(t=_asyncToGenerator(l.default.mark((function _callee(t,r,o){return l.default.wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),_callee)}))),function save(r,o,l){return t.apply(this,arguments)})},{key:"getFieldObject",value:function getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,type:"",kidIds:this.data.kidIds}:null}},{key:"reset",value:function reset(){var t,r=_createForOfIteratorHelper(this._streams);try{for(r.s();!(t=r.n()).done;){t.value.reset()}}catch(t){r.e(t)}finally{r.f()}}},{key:"_constructFieldName",value:function _constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,c.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent"))return(0,c.stringToPDFString)(t.get("T"));var r=[];t.has("T")&&r.unshift((0,c.stringToPDFString)(t.get("T")));var o=t,l=new m.RefSet;t.objId&&l.put(t.objId);for(;o.has("Parent")&&(o=o.get("Parent"))instanceof m.Dict&&(!o.objId||!l.has(o.objId));){o.objId&&l.put(o.objId);o.has("T")&&r.unshift((0,c.stringToPDFString)(o.get("T")))}return r.join(".")}}]);var t;return Annotation}();r.Annotation=C;var w=function(){function AnnotationBorderStyle(){_classCallCheck(this,AnnotationBorderStyle);this.width=1;this.style=c.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}_createClass(AnnotationBorderStyle,[{key:"setWidth",value:function setWidth(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,m.isName)(t))this.width=0;else if(Number.isInteger(t)){if(t>0){var o=(r[2]-r[0])/2,l=(r[3]-r[1])/2;if(o>0&&l>0&&(t>o||t>l)){(0,c.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(t));t=1}}this.width=t}}},{key:"setStyle",value:function setStyle(t){if((0,m.isName)(t))switch(t.name){case"S":this.style=c.AnnotationBorderStyleType.SOLID;break;case"D":this.style=c.AnnotationBorderStyleType.DASHED;break;case"B":this.style=c.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=c.AnnotationBorderStyleType.INSET;break;case"U":this.style=c.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function setDashArray(t){if(Array.isArray(t)&&t.length>0){var r,o=!0,l=!0,c=_createForOfIteratorHelper(t);try{for(c.s();!(r=c.n()).done;){var u=r.value;if(!(+u>=0)){o=!1;break}u>0&&(l=!1)}}catch(t){c.e(t)}finally{c.f()}o&&!l?this.dashArray=t:this.width=0}else t&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function setHorizontalCornerRadius(t){Number.isInteger(t)&&(this.horizontalCornerRadius=t)}},{key:"setVerticalCornerRadius",value:function setVerticalCornerRadius(t){Number.isInteger(t)&&(this.verticalCornerRadius=t)}}]);return AnnotationBorderStyle}();r.AnnotationBorderStyle=w;var _=function(t){_inherits(MarkupAnnotation,t);var r=_createSuper(MarkupAnnotation);function MarkupAnnotation(t){var o;_classCallCheck(this,MarkupAnnotation);o=r.call(this,t);var l=t.dict;if(l.has("IRT")){var u=l.getRaw("IRT");o.data.inReplyTo=(0,m.isRef)(u)?u.toString():null;var h=l.get("RT");o.data.replyType=(0,m.isName)(h)?h.name:c.AnnotationReplyType.REPLY}if(o.data.replyType===c.AnnotationReplyType.GROUP){var d=l.get("IRT");o.data.title=(0,c.stringToPDFString)(d.get("T")||"");o.setContents(d.get("Contents"));o.data.contents=o.contents;if(d.has("CreationDate")){o.setCreationDate(d.get("CreationDate"));o.data.creationDate=o.creationDate}else o.data.creationDate=null;if(d.has("M")){o.setModificationDate(d.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;o.data.hasPopup=d.has("Popup");if(d.has("C")){o.setColor(d.getArray("C"));o.data.color=o.color}else o.data.color=null}else{o.data.title=(0,c.stringToPDFString)(l.get("T")||"");o.setCreationDate(l.get("CreationDate"));o.data.creationDate=o.creationDate;o.data.hasPopup=l.has("Popup");l.has("C")||(o.data.color=null)}return o}_createClass(MarkupAnnotation,[{key:"setCreationDate",value:function setCreationDate(t){this.creationDate=(0,c.isString)(t)?t:null}},{key:"_setDefaultAppearance",value:function _setDefaultAppearance(t){var r=t.xref,o=t.extra,l=t.strokeColor,c=t.fillColor,u=t.blendMode,h=t.pointsCallback,d=Number.MAX_VALUE,g=Number.MAX_VALUE,y=Number.MIN_VALUE,S=Number.MIN_VALUE,k=["q"];o&&k.push(o);l&&k.push("".concat(l[0]," ").concat(l[1]," ").concat(l[2]," RG"));c&&k.push("".concat(c[0]," ").concat(c[1]," ").concat(c[2]," rg"));var C=this.data.quadPoints;C||(C=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);var w,_=_createForOfIteratorHelper(C);try{for(_.s();!(w=_.n()).done;){var O=_slicedToArray(h(k,w.value),4),x=O[0],T=O[1],R=O[2],E=O[3];d=Math.min(d,x);y=Math.max(y,T);g=Math.min(g,R);S=Math.max(S,E)}}catch(t){_.e(t)}finally{_.f()}k.push("Q");var D=new m.Dict(r),j=new m.Dict(r);j.set("Subtype",m.Name.get("Form"));var M=new v.StringStream(k.join(" "));M.dict=j;D.set("Fm0",M);var N=new m.Dict(r);u&&N.set("BM",m.Name.get(u));var L=new m.Dict(r);L.set("GS0",N);var U=new m.Dict(r);U.set("ExtGState",L);U.set("XObject",D);var q=new m.Dict(r);q.set("Resources",U);var X=this.data.rect=[d,g,y,S];q.set("BBox",X);this.appearance=new v.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=q;this._streams.push(this.appearance,M)}}]);return MarkupAnnotation}(C);r.MarkupAnnotation=_;var O=function(t){_inherits(WidgetAnnotation,t);var r,o,u,g=_createSuper(WidgetAnnotation);function WidgetAnnotation(t){var r;_classCallCheck(this,WidgetAnnotation);r=g.call(this,t);var o=t.dict,l=r.data;r.ref=t.ref;l.annotationType=c.AnnotationType.WIDGET;void 0===l.fieldName&&(l.fieldName=r._constructFieldName(o));void 0===l.actions&&(l.actions=(0,h.collectActions)(t.xref,o,c.AnnotationActionEventType));var u=(0,h.getInheritableProperty)({dict:o,key:"V",getArray:!0});l.fieldValue=r._decodeFormValue(u);var y=(0,h.getInheritableProperty)({dict:o,key:"DV",getArray:!0});l.defaultFieldValue=r._decodeFormValue(y);l.alternativeText=(0,c.stringToPDFString)(o.get("TU")||"");var v=(0,h.getInheritableProperty)({dict:o,key:"DA"})||t.acroForm.get("DA");r._defaultAppearance=(0,c.isString)(v)?v:"";l.defaultAppearanceData=(0,d.parseDefaultAppearance)(r._defaultAppearance);var S=(0,h.getInheritableProperty)({dict:o,key:"FT"});l.fieldType=(0,m.isName)(S)?S.name:null;var k=(0,h.getInheritableProperty)({dict:o,key:"DR"}),C=t.acroForm.get("DR"),w=r.appearance&&r.appearance.dict.get("Resources");r._fieldResources={localResources:k,acroFormResources:C,appearanceResources:w,mergedResources:m.Dict.merge({xref:t.xref,dictArray:[k,w,C],mergeSubDicts:!0})};l.fieldFlags=(0,h.getInheritableProperty)({dict:o,key:"Ff"});(!Number.isInteger(l.fieldFlags)||l.fieldFlags<0)&&(l.fieldFlags=0);l.readOnly=r.hasFieldFlag(c.AnnotationFieldFlag.READONLY);l.hidden=r._hasFlag(l.annotationFlags,c.AnnotationFlag.HIDDEN);if("Sig"===l.fieldType){l.fieldValue=null;r.setFlags(c.AnnotationFlag.HIDDEN);l.hidden=!0}return r}_createClass(WidgetAnnotation,[{key:"_decodeFormValue",value:function _decodeFormValue(t){return Array.isArray(t)?t.filter((function(t){return(0,c.isString)(t)})).map((function(t){return(0,c.stringToPDFString)(t)})):(0,m.isName)(t)?(0,c.stringToPDFString)(t.name):(0,c.isString)(t)?(0,c.stringToPDFString)(t):null}},{key:"hasFieldFlag",value:function hasFieldFlag(t){return!!(this.data.fieldFlags&t)}},{key:"getOperatorList",value:function getOperatorList(t,r,o,l){var u=this;return o?Promise.resolve(new y.OperatorList):this._hasText?this._getAppearance(t,r,l).then((function(h){if(u.appearance&&null===h)return _get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",u).call(u,t,r,o,l);var d=new y.OperatorList;if(!u._defaultAppearance||null===h)return d;var m=[1,0,0,1,0,0],g=[0,0,u.data.rect[2]-u.data.rect[0],u.data.rect[3]-u.data.rect[1]],S=getTransformMatrix(u.data.rect,g,m);d.addOp(c.OPS.beginAnnotation,[u.data.rect,S,m]);var k=new v.StringStream(h);return t.getOperatorList({stream:k,task:r,resources:u._fieldResources.mergedResources,operatorList:d}).then((function(){d.addOp(c.OPS.endAnnotation,[]);return d}))})):_get(_getPrototypeOf(WidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l)}},{key:"save",value:(u=_asyncToGenerator(l.default.mark((function _callee2(t,r,o){var u,h,d,g,y,v,k,C,w,_,O,x,T,R,E;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:if(o){l.next=2;break}return l.abrupt("return",null);case 2:u=o.get(this.data.id);if((h=u&&u.value)!==this.data.fieldValue&&void 0!==h){l.next=6;break}return l.abrupt("return",null);case 6:l.next=8;return this._getAppearance(t,r,o);case 8:if(null!==(d=l.sent)){l.next=11;break}return l.abrupt("return",null);case 11:g=t.xref;y=g.fetchIfRef(this.ref);if((0,m.isDict)(y)){l.next=15;break}return l.abrupt("return",null);case 15:v=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];k={path:(0,c.stringToPDFString)(y.get("T")||""),value:h};C=g.getNewRef();(w=new m.Dict(g)).set("N",C);_=g.encrypt;O=null;x=null;if(_){O=_.createCipherTransform(this.ref.num,this.ref.gen);x=_.createCipherTransform(C.num,C.gen);d=x.encryptString(d)}y.set("V",(0,c.isAscii)(h)?h:(0,c.stringToUTF16BEString)(h));y.set("AP",w);y.set("M","D:".concat((0,c.getModificationDate)()));(T=new m.Dict(g)).set("Length",d.length);T.set("Subtype",m.Name.get("Form"));T.set("Resources",this._getSaveFieldResources(g));T.set("BBox",v);R=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,S.writeDict)(y,R,O);R.push("\nendobj\n");E=["".concat(C.num," ").concat(C.gen," obj\n")];(0,S.writeDict)(T,E,x);E.push(" stream\n");E.push(d);E.push("\nendstream\nendobj\n");return l.abrupt("return",[{ref:this.ref,data:R.join(""),xfa:k},{ref:C,data:E.join(""),xfa:null}]);case 41:case"end":return l.stop()}}),_callee2,this)}))),function save(t,r,o){return u.apply(this,arguments)})},{key:"_getAppearance",value:(o=_asyncToGenerator(l.default.mark((function _callee3(t,r,o){var u,h,m,g,y,v,S,k,C,w,_,O,x,T,R,E,D,j;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:u=this.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD);if(o&&!u){l.next=3;break}return l.abrupt("return",null);case 3:h=o.get(this.data.id);if(void 0!==(m=h&&h.value)){l.next=7;break}return l.abrupt("return",null);case 7:if(""!==(m=m.trim())){l.next=10;break}return l.abrupt("return","");case 10:g=-1;this.data.multiLine&&(g=m.split(/\r\n|\r|\n/).length);v=y=2;S=this.data.rect[3]-this.data.rect[1];k=this.data.rect[2]-this.data.rect[0];this._defaultAppearance||(this.data.defaultAppearanceData=(0,d.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));C=this._computeFontSize(S,g),w=_slicedToArray(C,2),_=w[0],O=w[1];l.next=20;return this._getFontData(t,r);case 20:x=l.sent;T=x.descent;isNaN(T)&&(T=0);R=y+Math.abs(T)*O;E=this.data.textAlignment;if(!this.data.multiLine){l.next=27;break}return l.abrupt("return",this._getMultilineAppearance(_,m,x,O,k,S,E,v,R));case 27:D=x.encodeString(m).join("");if(!this.data.comb){l.next=30;break}return l.abrupt("return",this._getCombAppearance(_,x,D,k,v,R));case 30:if(!(0===E||E>2)){l.next=32;break}return l.abrupt("return","/Tx BMC q BT "+_+" 1 0 0 1 ".concat(v," ").concat(R," Tm (").concat((0,c.escapeString)(D),") Tj")+" ET Q EMC");case 32:j=this._renderText(D,x,O,k,E,v,R);return l.abrupt("return","/Tx BMC q BT "+_+" 1 0 0 1 0 0 Tm ".concat(j)+" ET Q EMC");case 34:case"end":return l.stop()}}),_callee3,this)}))),function _getAppearance(t,r,l){return o.apply(this,arguments)})},{key:"_getFontData",value:(r=_asyncToGenerator(l.default.mark((function _callee4(t,r){var o,c,u,h,d;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:o=new y.OperatorList;c={font:null,clone:function clone(){return this}};u=this.data.defaultAppearanceData,h=u.fontName,d=u.fontSize;l.next=5;return t.handleSetFont(this._fieldResources.mergedResources,[h&&m.Name.get(h),d],null,o,r,c,null);case 5:return l.abrupt("return",c.font);case 6:case"end":return l.stop()}}),_callee4,this)}))),function _getFontData(t,o){return r.apply(this,arguments)})},{key:"_computeFontSize",value:function _computeFontSize(t,r){var o=this.data.defaultAppearanceData.fontSize;if(!o){var l=function roundWithOneDigit(t){return Math.round(10*t)/10};if(-1===r)o=l(.8*t);else{var c=(o=10)/.8,u=Math.round(t/c);o=l(.8*(c=t/(u=Math.max(u,r))))}var h=this.data.defaultAppearanceData,m=h.fontName,g=h.fontColor;this._defaultAppearance=(0,d.createDefaultAppearance)({fontSize:o,fontName:m,fontColor:g})}return[this._defaultAppearance,o]}},{key:"_renderText",value:function _renderText(t,r,o,l,u,h,d){var m,g,y=o/1e3,v=0,S=_createForOfIteratorHelper(r.charsToGlyphs(t));try{for(S.s();!(m=S.n()).done;){v+=m.value.width*y}}catch(t){S.e(t)}finally{S.f()}g=(g=1===u?(l-v)/2:2===u?l-v-h:h).toFixed(2);d=d.toFixed(2);return"".concat(g," ").concat(d," Td (").concat((0,c.escapeString)(t),") Tj")}},{key:"_getSaveFieldResources",value:function _getSaveFieldResources(t){var r=this._fieldResources,o=r.localResources,l=r.appearanceResources,c=r.acroFormResources,u=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!u)return o||m.Dict.empty;for(var h=0,d=[o,l];h<d.length;h++){var g=d[h];if(g instanceof m.Dict){var y=g.get("Font");if(y instanceof m.Dict&&y.has(u))return g}}if(c instanceof m.Dict){var v=c.get("Font");if(v instanceof m.Dict&&v.has(u)){var S=new m.Dict(t);S.set(u,v.getRaw(u));var k=new m.Dict(t);k.set("Font",S);return m.Dict.merge({xref:t,dictArray:[k,o],mergeSubDicts:!0})}}return o||m.Dict.empty}},{key:"getFieldObject",value:function getFieldObject(){return"Sig"===this.data.fieldType?{id:this.data.id,value:null,type:"signature"}:null}}]);return WidgetAnnotation}(C),x=function(t){_inherits(TextWidgetAnnotation,t);var r=_createSuper(TextWidgetAnnotation);function TextWidgetAnnotation(t){var o;_classCallCheck(this,TextWidgetAnnotation);(o=r.call(this,t))._hasText=!0;var l=t.dict;(0,c.isString)(o.data.fieldValue)||(o.data.fieldValue="");var u=(0,h.getInheritableProperty)({dict:l,key:"Q"});(!Number.isInteger(u)||u<0||u>2)&&(u=null);o.data.textAlignment=u;var d=(0,h.getInheritableProperty)({dict:l,key:"MaxLen"});(!Number.isInteger(d)||d<0)&&(d=null);o.data.maxLen=d;o.data.multiLine=o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE);o.data.comb=o.hasFieldFlag(c.AnnotationFieldFlag.COMB)&&!o.hasFieldFlag(c.AnnotationFieldFlag.MULTILINE)&&!o.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD)&&!o.hasFieldFlag(c.AnnotationFieldFlag.FILESELECT)&&null!==o.data.maxLen;return o}_createClass(TextWidgetAnnotation,[{key:"_getCombAppearance",value:function _getCombAppearance(t,r,o,l,u,h){var d,m=(l/this.data.maxLen).toFixed(2),g=[],y=_createForOfIteratorHelper(r.getCharPositions(o));try{for(y.s();!(d=y.n()).done;){var v=_slicedToArray(d.value,2),S=v[0],k=v[1];g.push("(".concat((0,c.escapeString)(o.substring(S,k)),") Tj"))}}catch(t){y.e(t)}finally{y.f()}var C=g.join(" ".concat(m," 0 Td "));return"/Tx BMC q BT "+t+" 1 0 0 1 ".concat(u," ").concat(h," Tm ").concat(C)+" ET Q EMC"}},{key:"_getMultilineAppearance",value:function _getMultilineAppearance(t,r,o,l,c,u,h,d,m){var g,y=[],v=c-2*d,S=_createForOfIteratorHelper(r.split(/\r\n|\r|\n/));try{for(S.s();!(g=S.n()).done;){var k,C=g.value,w=_createForOfIteratorHelper(this._splitLine(C,o,l,v));try{for(w.s();!(k=w.n()).done;){var _=k.value,O=0===y.length?d:0;y.push(this._renderText(_,o,l,c,h,O,-l))}}catch(t){w.e(t)}finally{w.f()}}}catch(t){S.e(t)}finally{S.f()}var x=y.join("\n");return"/Tx BMC q BT "+t+" 1 0 0 1 0 ".concat(u," Tm ").concat(x)+" ET Q EMC"}},{key:"_splitLine",value:function _splitLine(t,r,o,l){t=r.encodeString(t).join("");var c=r.charsToGlyphs(t);if(c.length<=1)return[t];for(var u=r.getCharPositions(t),h=o/1e3,d=[],m=-1,g=-1,y=-1,v=0,S=0,k=0,C=c.length;k<C;k++){var w=_slicedToArray(u[k],2),_=w[0],O=w[1],x=c[k],T=x.width*h;if(" "===x.unicode)if(S+T>l){d.push(t.substring(v,_));v=_;S=T;m=-1;y=-1}else{S+=T;m=_;g=O;y=k}else if(S+T>l)if(-1!==m){d.push(t.substring(v,g));v=g;k=y+1;m=-1;S=0}else{d.push(t.substring(v,_));v=_;S=T}else S+=T}v<t.length&&d.push(t.substring(v,t.length));return d}},{key:"getFieldObject",value:function getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue,multiline:this.data.multiLine,password:this.hasFieldFlag(c.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,type:"text"}}}]);return TextWidgetAnnotation}(O),T=function(t){_inherits(ButtonWidgetAnnotation,t);var r,o,h,d=_createSuper(ButtonWidgetAnnotation);function ButtonWidgetAnnotation(t){var r;_classCallCheck(this,ButtonWidgetAnnotation);(r=d.call(this,t)).checkedAppearance=null;r.uncheckedAppearance=null;r.data.checkBox=!r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.radioButton=r.hasFieldFlag(c.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.pushButton=r.hasFieldFlag(c.AnnotationFieldFlag.PUSHBUTTON);r.data.isTooltipOnly=!1;r.data.checkBox?r._processCheckBox(t):r.data.radioButton?r._processRadioButton(t):r.data.pushButton?r._processPushButton(t):(0,c.warn)("Invalid field flags for button widget annotation");return r}_createClass(ButtonWidgetAnnotation,[{key:"getOperatorList",value:function getOperatorList(t,r,o,l){if(this.data.pushButton)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,!1,l);if(l){var c,u=l.get(this.data.id),h=u&&u.value;if(void 0===h)return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l);if(c=h?this.checkedAppearance:this.uncheckedAppearance){var d=this.appearance;this.appearance=c;var m=_get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l);this.appearance=d;return m}return Promise.resolve(new y.OperatorList)}return _get(_getPrototypeOf(ButtonWidgetAnnotation.prototype),"getOperatorList",this).call(this,t,r,o,l)}},{key:"save",value:(h=_asyncToGenerator(l.default.mark((function _callee5(t,r,o){return l.default.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:if(!this.data.checkBox){l.next=2;break}return l.abrupt("return",this._saveCheckbox(t,r,o));case 2:if(!this.data.radioButton){l.next=4;break}return l.abrupt("return",this._saveRadioButton(t,r,o));case 4:return l.abrupt("return",null);case 5:case"end":return l.stop()}}),_callee5,this)}))),function save(t,r,o){return h.apply(this,arguments)})},{key:"_saveCheckbox",value:(o=_asyncToGenerator(l.default.mark((function _callee6(t,r,o){var u,h,d,g,y,v,k,C;return l.default.wrap((function _callee6$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:u=o.get(this.data.id);if(void 0!==(h=u&&u.value)){r.next=6;break}return r.abrupt("return",null);case 6:if((this.data.fieldValue&&"Off"!==this.data.fieldValue)!==h){r.next=9;break}return r.abrupt("return",null);case 9:d=t.xref.fetchIfRef(this.ref);if((0,m.isDict)(d)){r.next=12;break}return r.abrupt("return",null);case 12:g={path:(0,c.stringToPDFString)(d.get("T")||""),value:h?this.data.exportValue:""};y=m.Name.get(h?this.data.exportValue:"Off");d.set("V",y);d.set("AS",y);d.set("M","D:".concat((0,c.getModificationDate)()));v=t.xref.encrypt;k=null;v&&(k=v.createCipherTransform(this.ref.num,this.ref.gen));C=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,S.writeDict)(d,C,k);C.push("\nendobj\n");return r.abrupt("return",[{ref:this.ref,data:C.join(""),xfa:g}]);case 24:case"end":return r.stop()}}),_callee6,this)}))),function _saveCheckbox(t,r,l){return o.apply(this,arguments)})},{key:"_saveRadioButton",value:(r=_asyncToGenerator(l.default.mark((function _callee7(t,r,o){var u,h,d,g,y,v,k,C,w,_,O,x;return l.default.wrap((function _callee7$(r){for(;;)switch(r.prev=r.next){case 0:if(o){r.next=2;break}return r.abrupt("return",null);case 2:u=o.get(this.data.id);if(void 0!==(h=u&&u.value)){r.next=6;break}return r.abrupt("return",null);case 6:if(this.data.fieldValue===this.data.buttonValue!==h){r.next=9;break}return r.abrupt("return",null);case 9:d=t.xref.fetchIfRef(this.ref);if((0,m.isDict)(d)){r.next=12;break}return r.abrupt("return",null);case 12:g={path:(0,c.stringToPDFString)(d.get("T")||""),value:h?this.data.buttonValue:""};y=m.Name.get(h?this.data.buttonValue:"Off");v=null;k=t.xref.encrypt;if(h)if((0,m.isRef)(this.parent)){C=t.xref.fetch(this.parent);w=null;k&&(w=k.createCipherTransform(this.parent.num,this.parent.gen));C.set("V",y);v=["".concat(this.parent.num," ").concat(this.parent.gen," obj\n")];(0,S.writeDict)(C,v,w);v.push("\nendobj\n")}else(0,m.isDict)(this.parent)&&this.parent.set("V",y);d.set("AS",y);d.set("M","D:".concat((0,c.getModificationDate)()));_=null;k&&(_=k.createCipherTransform(this.ref.num,this.ref.gen));O=["".concat(this.ref.num," ").concat(this.ref.gen," obj\n")];(0,S.writeDict)(d,O,_);O.push("\nendobj\n");x=[{ref:this.ref,data:O.join(""),xfa:g}];null!==v&&x.push({ref:this.parent,data:v.join(""),xfa:null});return r.abrupt("return",x);case 27:case"end":return r.stop()}}),_callee7,this)}))),function _saveRadioButton(t,o,l){return r.apply(this,arguments)})},{key:"_processCheckBox",value:function _processCheckBox(t){var r=t.dict.get("AP");if((0,m.isDict)(r)){var o=r.get("N");if((0,m.isDict)(o)){var l=o.getKeys();l.includes("Off")||l.push("Off");if(2===l.length){this.data.exportValue="Off"===l[0]?l[1]:l[0];this.checkedAppearance=o.get(this.data.exportValue);this.uncheckedAppearance=o.get("Off")||null;this._streams.push(this.checkedAppearance);this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}}}}},{key:"_processRadioButton",value:function _processRadioButton(t){this.data.fieldValue=this.data.buttonValue=null;var r=t.dict.get("Parent");if((0,m.isDict)(r)){this.parent=t.dict.getRaw("Parent");var o=r.get("V");(0,m.isName)(o)&&(this.data.fieldValue=this._decodeFormValue(o))}var l=t.dict.get("AP");if((0,m.isDict)(l)){var c=l.get("N");if((0,m.isDict)(c)){var u,h=_createForOfIteratorHelper(c.getKeys());try{for(h.s();!(u=h.n()).done;){var d=u.value;if("Off"!==d){this.data.buttonValue=this._decodeFormValue(d);break}}}catch(t){h.e(t)}finally{h.f()}this.checkedAppearance=c.get(this.data.buttonValue);this.uncheckedAppearance=c.get("Off")||null;this._streams.push(this.checkedAppearance);this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance);this._fallbackFontDict=this.fallbackFontDict}}}},{key:"_processPushButton",value:function _processPushButton(t){if(t.dict.has("A")||t.dict.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!t.dict.has("A")&&!t.dict.has("AA");u.Catalog.parseDestDictionary({destDict:t.dict,resultObj:this.data,docBaseUrl:t.pdfManager.docBaseUrl})}else(0,c.warn)("Push buttons without action dictionaries are not supported")}},{key:"getFieldObject",value:function getFieldObject(){var t,r="button";if(this.data.checkBox){r="checkbox";t=this.data.exportValue}else if(this.data.radioButton){r="radiobutton";t=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:t,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,type:r}}},{key:"fallbackFontDict",get:function get(){var t=new m.Dict;t.set("BaseFont",m.Name.get("ZapfDingbats"));t.set("Type",m.Name.get("FallbackType"));t.set("Subtype",m.Name.get("FallbackType"));t.set("Encoding",m.Name.get("ZapfDingbatsEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);return ButtonWidgetAnnotation}(O),R=function(t){_inherits(ChoiceWidgetAnnotation,t);var r=_createSuper(ChoiceWidgetAnnotation);function ChoiceWidgetAnnotation(t){var o;_classCallCheck(this,ChoiceWidgetAnnotation);(o=r.call(this,t)).data.options=[];var l=(0,h.getInheritableProperty)({dict:t.dict,key:"Opt"});if(Array.isArray(l))for(var u=t.xref,d=0,m=l.length;d<m;d++){var g=u.fetchIfRef(l[d]),y=Array.isArray(g);o.data.options[d]={exportValue:o._decodeFormValue(y?u.fetchIfRef(g[0]):g),displayValue:o._decodeFormValue(y?u.fetchIfRef(g[1]):g)}}(0,c.isString)(o.data.fieldValue)?o.data.fieldValue=[o.data.fieldValue]:o.data.fieldValue||(o.data.fieldValue=[]);o.data.combo=o.hasFieldFlag(c.AnnotationFieldFlag.COMBO);o.data.multiSelect=o.hasFieldFlag(c.AnnotationFieldFlag.MULTISELECT);o._hasText=!0;return o}_createClass(ChoiceWidgetAnnotation,[{key:"getFieldObject",value:function getFieldObject(){var t=this.data.combo?"combobox":"listbox",r=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:r,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,type:t}}}]);return ChoiceWidgetAnnotation}(O),E=function(t){_inherits(TextAnnotation,t);var r=_createSuper(TextAnnotation);function TextAnnotation(t){var o;_classCallCheck(this,TextAnnotation);o=r.call(this,t);var l=t.dict;o.data.annotationType=c.AnnotationType.TEXT;if(o.data.hasAppearance)o.data.name="NoIcon";else{o.data.rect[1]=o.data.rect[3]-22;o.data.rect[2]=o.data.rect[0]+22;o.data.name=l.has("Name")?l.get("Name").name:"Note"}if(l.has("State")){o.data.state=l.get("State")||null;o.data.stateModel=l.get("StateModel")||null}else{o.data.state=null;o.data.stateModel=null}return o}return TextAnnotation}(_),D=function(t){_inherits(LinkAnnotation,t);var r=_createSuper(LinkAnnotation);function LinkAnnotation(t){var o;_classCallCheck(this,LinkAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.LINK;var l=getQuadPoints(t.dict,o.rectangle);l&&(o.data.quadPoints=l);u.Catalog.parseDestDictionary({destDict:t.dict,resultObj:o.data,docBaseUrl:t.pdfManager.docBaseUrl});return o}return LinkAnnotation}(C),j=function(t){_inherits(PopupAnnotation,t);var r=_createSuper(PopupAnnotation);function PopupAnnotation(t){var o;_classCallCheck(this,PopupAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POPUP;var l=t.dict.get("Parent");if(!l){(0,c.warn)("Popup annotation has a missing or invalid parent annotation.");return _possibleConstructorReturn(o)}var u=l.get("Subtype");o.data.parentType=(0,m.isName)(u)?u.name:null;var h=t.dict.getRaw("Parent");o.data.parentId=(0,m.isRef)(h)?h.toString():null;var d=l.getArray("Rect");Array.isArray(d)&&4===d.length?o.data.parentRect=c.Util.normalizeRect(d):o.data.parentRect=[0,0,0,0];var g=l.get("RT");(0,m.isName)(g,c.AnnotationReplyType.GROUP)&&(l=l.get("IRT"));if(l.has("M")){o.setModificationDate(l.get("M"));o.data.modificationDate=o.modificationDate}else o.data.modificationDate=null;if(l.has("C")){o.setColor(l.getArray("C"));o.data.color=o.color}else o.data.color=null;if(!o.viewable){var y=l.get("F");o._isViewable(y)&&o.setFlags(y)}o.data.title=(0,c.stringToPDFString)(l.get("T")||"");o.data.contents=(0,c.stringToPDFString)(l.get("Contents")||"");return o}return PopupAnnotation}(C),M=function(t){_inherits(FreeTextAnnotation,t);var r=_createSuper(FreeTextAnnotation);function FreeTextAnnotation(t){var o;_classCallCheck(this,FreeTextAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.FREETEXT;return o}return FreeTextAnnotation}(_),N=function(t){_inherits(LineAnnotation,t);var r=_createSuper(LineAnnotation);function LineAnnotation(t){var o;_classCallCheck(this,LineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.LINE;var l=t.dict.getArray("L");o.data.lineCoordinates=c.Util.normalizeRect(l);if(!o.appearance){var u=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],h=o.borderStyle.width;(0,c.isArrayEqual)(o.rectangle,[0,0,0,0])&&(o.rectangle=[o.data.lineCoordinates[0]-2*h,o.data.lineCoordinates[1]-2*h,o.data.lineCoordinates[2]+2*h,o.data.lineCoordinates[3]+2*h]);o._setDefaultAppearance({xref:t.xref,extra:"".concat(h," w"),strokeColor:u,pointsCallback:function pointsCallback(t,r){t.push("".concat(l[0]," ").concat(l[1]," m"));t.push("".concat(l[2]," ").concat(l[3]," l"));t.push("S");return[r[0].x-h,r[1].x+h,r[3].y-h,r[1].y+h]}})}return o}return LineAnnotation}(_),L=function(t){_inherits(SquareAnnotation,t);var r=_createSuper(SquareAnnotation);function SquareAnnotation(t){var o;_classCallCheck(this,SquareAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.SQUARE;if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=null,h=t.dict.getArray("IC");if(h){h=getRgbColor(h);u=h?Array.from(h).map((function(t){return t/255})):null}o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:l,fillColor:u,pointsCallback:function pointsCallback(t,r){var l=r[2].x+o.borderStyle.width/2,c=r[2].y+o.borderStyle.width/2,h=r[3].x-r[2].x-o.borderStyle.width,d=r[1].y-r[3].y-o.borderStyle.width;t.push("".concat(l," ").concat(c," ").concat(h," ").concat(d," re"));u?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return SquareAnnotation}(_),U=function(t){_inherits(CircleAnnotation,t);var r=_createSuper(CircleAnnotation);function CircleAnnotation(t){var o;_classCallCheck(this,CircleAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.CIRCLE;if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0],u=null,h=t.dict.getArray("IC");if(h){h=getRgbColor(h);u=h?Array.from(h).map((function(t){return t/255})):null}var d=4/3*Math.tan(Math.PI/8);o._setDefaultAppearance({xref:t.xref,extra:"".concat(o.borderStyle.width," w"),strokeColor:l,fillColor:u,pointsCallback:function pointsCallback(t,r){var l=r[0].x+o.borderStyle.width/2,c=r[0].y-o.borderStyle.width/2,h=r[3].x-o.borderStyle.width/2,m=r[3].y+o.borderStyle.width/2,g=l+(h-l)/2,y=c+(m-c)/2,v=(h-l)/2*d,S=(m-c)/2*d;t.push("".concat(g," ").concat(m," m"));t.push("".concat(g+v," ").concat(m," ").concat(h," ").concat(y+S," ").concat(h," ").concat(y," c"));t.push("".concat(h," ").concat(y-S," ").concat(g+v," ").concat(c," ").concat(g," ").concat(c," c"));t.push("".concat(g-v," ").concat(c," ").concat(l," ").concat(y-S," ").concat(l," ").concat(y," c"));t.push("".concat(l," ").concat(y+S," ").concat(g-v," ").concat(m," ").concat(g," ").concat(m," c"));t.push("h");u?t.push("B"):t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}return o}return CircleAnnotation}(_),q=function(t){_inherits(PolylineAnnotation,t);var r=_createSuper(PolylineAnnotation);function PolylineAnnotation(t){var o;_classCallCheck(this,PolylineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POLYLINE;o.data.vertices=[];var l=t.dict.getArray("Vertices");if(!Array.isArray(l))return _possibleConstructorReturn(o);for(var u=0,h=l.length;u<h;u+=2)o.data.vertices.push({x:l[u],y:l[u+1]});return o}return PolylineAnnotation}(_),X=function(t){_inherits(PolygonAnnotation,t);var r=_createSuper(PolygonAnnotation);function PolygonAnnotation(t){var o;_classCallCheck(this,PolygonAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.POLYGON;return o}return PolygonAnnotation}(q),W=function(t){_inherits(CaretAnnotation,t);var r=_createSuper(CaretAnnotation);function CaretAnnotation(t){var o;_classCallCheck(this,CaretAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.CARET;return o}return CaretAnnotation}(_),H=function(t){_inherits(InkAnnotation,t);var r=_createSuper(InkAnnotation);function InkAnnotation(t){var o;_classCallCheck(this,InkAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.INK;o.data.inkLists=[];var l=t.dict.getArray("InkList");if(!Array.isArray(l))return _possibleConstructorReturn(o);for(var u=t.xref,h=0,d=l.length;h<d;++h){o.data.inkLists.push([]);for(var m=0,g=l[h].length;m<g;m+=2)o.data.inkLists[h].push({x:u.fetchIfRef(l[h][m]),y:u.fetchIfRef(l[h][m+1])})}return o}return InkAnnotation}(_),z=function(t){_inherits(HighlightAnnotation,t);var r=_createSuper(HighlightAnnotation);function HighlightAnnotation(t){var o;_classCallCheck(this,HighlightAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.HIGHLIGHT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[1,1,0];o._setDefaultAppearance({xref:t.xref,fillColor:l,blendMode:"Multiply",pointsCallback:function pointsCallback(t,r){t.push("".concat(r[0].x," ").concat(r[0].y," m"));t.push("".concat(r[1].x," ").concat(r[1].y," l"));t.push("".concat(r[3].x," ").concat(r[3].y," l"));t.push("".concat(r[2].x," ").concat(r[2].y," l"));t.push("f");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return HighlightAnnotation}(_),G=function(t){_inherits(UnderlineAnnotation,t);var r=_createSuper(UnderlineAnnotation);function UnderlineAnnotation(t){var o;_classCallCheck(this,UnderlineAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.UNDERLINE;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0];o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,pointsCallback:function pointsCallback(t,r){t.push("".concat(r[2].x," ").concat(r[2].y," m"));t.push("".concat(r[3].x," ").concat(r[3].y," l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return UnderlineAnnotation}(_),V=function(t){_inherits(SquigglyAnnotation,t);var r=_createSuper(SquigglyAnnotation);function SquigglyAnnotation(t){var o;_classCallCheck(this,SquigglyAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.SQUIGGLY;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0];o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,pointsCallback:function pointsCallback(t,r){var o=(r[0].y-r[2].y)/6,l=o,c=r[2].x,u=r[2].y,h=r[3].x;t.push("".concat(c," ").concat(u+l," m"));do{c+=2;l=0===l?o:0;t.push("".concat(c," ").concat(u+l," l"))}while(c<h);t.push("S");return[r[2].x,h,u-2*o,u+2*o]}})}}else o.data.hasPopup=!1;return o}return SquigglyAnnotation}(_),$=function(t){_inherits(StrikeOutAnnotation,t);var r=_createSuper(StrikeOutAnnotation);function StrikeOutAnnotation(t){var o;_classCallCheck(this,StrikeOutAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.STRIKEOUT;if(o.data.quadPoints=getQuadPoints(t.dict,null)){if(!o.appearance){var l=o.color?Array.from(o.color).map((function(t){return t/255})):[0,0,0];o._setDefaultAppearance({xref:t.xref,extra:"[] 0 d 1 w",strokeColor:l,pointsCallback:function pointsCallback(t,r){t.push("".concat((r[0].x+r[2].x)/2)+" ".concat((r[0].y+r[2].y)/2," m"));t.push("".concat((r[1].x+r[3].x)/2)+" ".concat((r[1].y+r[3].y)/2," l"));t.push("S");return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}else o.data.hasPopup=!1;return o}return StrikeOutAnnotation}(_),K=function(t){_inherits(StampAnnotation,t);var r=_createSuper(StampAnnotation);function StampAnnotation(t){var o;_classCallCheck(this,StampAnnotation);(o=r.call(this,t)).data.annotationType=c.AnnotationType.STAMP;return o}return StampAnnotation}(_),Y=function(t){_inherits(FileAttachmentAnnotation,t);var r=_createSuper(FileAttachmentAnnotation);function FileAttachmentAnnotation(t){var o;_classCallCheck(this,FileAttachmentAnnotation);o=r.call(this,t);var l=new u.FileSpec(t.dict.get("FS"),t.xref);o.data.annotationType=c.AnnotationType.FILEATTACHMENT;o.data.file=l.serializable;return o}return FileAttachmentAnnotation}(_)},(t,r,o)=>{"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.createDefaultAppearance=function createDefaultAppearance(t){var r,o=t.fontSize,l=t.fontName,c=t.fontColor;r=c.every((function(t){return 0===t}))?"0 g":Array.from(c).map((function(t){return(t/255).toFixed(2)})).join(" ")+" rg";return"/".concat((0,u.escapePDFName)(l)," ").concat(o," Tf ").concat(r)};r.parseDefaultAppearance=function parseDefaultAppearance(t){return new g(t).parse()};var l=o(4),c=o(143),u=o(128),h=o(149),d=o(125),m=o(132);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t,r)||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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 g=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)}(DefaultAppearanceEvaluator,t);var r=_createSuper(DefaultAppearanceEvaluator);function DefaultAppearanceEvaluator(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,DefaultAppearanceEvaluator);return r.call(this,new m.StringStream(t))}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(DefaultAppearanceEvaluator,[{key:"parse",value:function parse(){var t={fn:0,args:[]},r={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){t.args.length=0;if(!this.read(t))break;if(0===this.savedStatesDepth){var o=t.fn,u=t.args;switch(0|o){case l.OPS.setFont:var h=_slicedToArray(u,2),m=h[0],g=h[1];m instanceof d.Name&&(r.fontName=m.name);"number"==typeof g&&g>0&&(r.fontSize=g);break;case l.OPS.setFillRGBColor:c.ColorSpace.singletons.rgb.getRgbItem(u,0,r.fontColor,0);break;case l.OPS.setFillGray:c.ColorSpace.singletons.gray.getRgbItem(u,0,r.fontColor,0);break;case l.OPS.setFillColorSpace:c.ColorSpace.singletons.cmyk.getRgbItem(u,0,r.fontColor,0)}}}}catch(t){(0,l.warn)('parseDefaultAppearance - ignoring errors: "'.concat(t,'".'))}return r}}]);return DefaultAppearanceEvaluator}(h.EvaluatorPreprocessor)},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PartialEvaluator=r.EvaluatorPreprocessor=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(150),h=o(125),d=o(132),m=o(151),g=o(154),y=o(157),v=o(156),S=o(160),k=o(161),C=o(131),w=o(144),_=o(163),O=o(143),x=o(155),T=o(128),R=o(164),E=o(165),D=o(166),j=o(167);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var M=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1}),N=1,L=2,U=Promise.resolve();function normalizeBlendMode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(t)){for(var o=0,l=t.length;o<l;o++){var u=normalizeBlendMode(t[o],!0);if(u)return u}(0,c.warn)("Unsupported blend mode Array: ".concat(t));return"source-over"}if(!(0,h.isName)(t))return r?null:"source-over";switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(r)return null;(0,c.warn)("Unsupported blend mode: ".concat(t.name));return"source-over"}var q=function(){function TimeSlotManager(){_classCallCheck(this,TimeSlotManager);this.reset()}_createClass(TimeSlotManager,[{key:"check",value:function check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now()}},{key:"reset",value:function reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0}}],[{key:"TIME_SLOT_DURATION_MS",get:function get(){return(0,c.shadow)(this,"TIME_SLOT_DURATION_MS",20)}},{key:"CHECK_TIME_EVERY",get:function get(){return(0,c.shadow)(this,"CHECK_TIME_EVERY",100)}}]);return TimeSlotManager}(),X=function(){function PartialEvaluator(t){var r=t.xref,o=t.handler,l=t.pageIndex,c=t.idFactory,u=t.fontCache,h=t.builtInCMapCache,d=t.globalImageCache,m=t.options,g=void 0===m?null:m;_classCallCheck(this,PartialEvaluator);this.xref=r;this.handler=o;this.pageIndex=l;this.idFactory=c;this.fontCache=u;this.builtInCMapCache=h;this.globalImageCache=d;this.options=g||M;this.parsingType3Font=!1;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this)}_createClass(PartialEvaluator,[{key:"_pdfFunctionFactory",get:function get(){var t=new k.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,c.shadow)(this,"_pdfFunctionFactory",t)}},{key:"clone",value:function clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,r=Object.create(this);r.options=t;return r}},{key:"hasBlendModes",value:function hasBlendModes(t,r){if(!(t instanceof h.Dict))return!1;if(t.objId&&r.has(t.objId))return!1;var o=new h.RefSet(r);t.objId&&o.put(t.objId);for(var l=[t],u=this.xref;l.length;){var d=l.shift(),m=d.get("ExtGState");if(m instanceof h.Dict){var g,y=_createForOfIteratorHelper(m.getRawValues());try{for(y.s();!(g=y.n()).done;){var v=g.value;if(v instanceof h.Ref){if(o.has(v))continue;try{v=u.fetch(v)}catch(t){o.put(v);(0,c.info)('hasBlendModes - ignoring ExtGState: "'.concat(t,'".'));continue}}if(v instanceof h.Dict){v.objId&&o.put(v.objId);var S=v.get("BM");if(S instanceof h.Name){if("Normal"!==S.name)return!0}else if(void 0!==S&&Array.isArray(S)){var k,C=_createForOfIteratorHelper(S);try{for(C.s();!(k=C.n()).done;){var w=k.value;if(w instanceof h.Name&&"Normal"!==w.name)return!0}}catch(t){C.e(t)}finally{C.f()}}}}}catch(t){y.e(t)}finally{y.f()}}var _=d.get("XObject");if(_ instanceof h.Dict){var O,x=_createForOfIteratorHelper(_.getRawValues());try{for(x.s();!(O=x.n()).done;){var T=O.value;if(T instanceof h.Ref){if(o.has(T))continue;try{T=u.fetch(T)}catch(t){o.put(T);(0,c.info)('hasBlendModes - ignoring XObject: "'.concat(t,'".'));continue}}if((0,h.isStream)(T)){T.dict.objId&&o.put(T.dict.objId);var R=T.dict.get("Resources");if(R instanceof h.Dict&&(!R.objId||!o.has(R.objId))){l.push(R);R.objId&&o.put(R.objId)}}}}catch(t){x.e(t)}finally{x.f()}}}o.forEach((function(t){r.put(t)}));return!1}},{key:"fetchBuiltInCMap",value:(X=_asyncToGenerator(l.default.mark((function _callee(t){var r,o,u,h;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:if(!(r=this.builtInCMapCache.get(t))){l.next=3;break}return l.abrupt("return",r);case 3:o=this.handler.sendWithStream("FetchBuiltInCMap",{name:t});u=o.getReader();l.next=7;return new Promise((function(t,r){!function pump(){u.read().then((function(r){var o=r.value;if(!r.done){t(o);pump()}}),r)}()}));case 7:(h=l.sent).compressionType!==c.CMapCompressionType.NONE&&this.builtInCMapCache.set(t,h);return l.abrupt("return",h);case 10:case"end":return l.stop()}}),_callee,this)}))),function fetchBuiltInCMap(t){return X.apply(this,arguments)})},{key:"buildFormXObject",value:(T=_asyncToGenerator(l.default.mark((function _callee2(t,r,o,u,d,m,g){var y,v,S,k,C,w,_,x,T,R;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:y=r.dict;v=y.getArray("Matrix");S=y.getArray("BBox");S=Array.isArray(S)&&4===S.length?c.Util.normalizeRect(S):null;k=null;if(!y.has("OC")){l.next=10;break}l.next=8;return this.parseMarkedContentProps(y.get("OC"),t);case 8:k=l.sent;u.addOp(c.OPS.beginMarkedContentProps,["OC",k]);case 10:if(!(C=y.get("Group"))){l.next=30;break}w={matrix:v,bbox:S,smask:o,isolated:!1,knockout:!1};_=C.get("S");x=null;if(!(0,h.isName)(_,"Transparency")){l.next=28;break}w.isolated=C.get("I")||!1;w.knockout=C.get("K")||!1;if(!C.has("CS")){l.next=28;break}T=C.getRaw("CS");if(!(R=O.ColorSpace.getCached(T,this.xref,g))){l.next=25;break}x=R;l.next=28;break;case 25:l.next=27;return this.parseColorSpace({cs:T,resources:t,localColorSpaceCache:g});case 27:x=l.sent;case 28:if(o&&o.backdrop){x=x||O.ColorSpace.singletons.rgb;o.backdrop=x.getRgb(o.backdrop,0)}u.addOp(c.OPS.beginGroup,[w]);case 30:u.addOp(c.OPS.paintFormXObjectBegin,[v,S]);return l.abrupt("return",this.getOperatorList({stream:r,task:d,resources:y.get("Resources")||t,operatorList:u,initialState:m}).then((function(){u.addOp(c.OPS.paintFormXObjectEnd,[]);C&&u.addOp(c.OPS.endGroup,[w]);k&&u.addOp(c.OPS.endMarkedContent,[])})));case 32:case"end":return l.stop()}}),_callee2,this)}))),function buildFormXObject(t,r,o,l,c,u,h){return T.apply(this,arguments)})},{key:"_sendImgData",value:function _sendImgData(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=r?[r.data.buffer]:null;return this.parsingType3Font||o?this.handler.send("commonobj",[t,"Image",r],l):this.handler.send("obj",[t,this.pageIndex,"Image",r],l)}},{key:"buildPaintImageXObject",value:(C=_asyncToGenerator(l.default.mark((function _callee3(t){var r,o,u,h,m,g,y,v,S,k,C,w,_,O,x,T,R,E,D,M,N,L,U,q,X,W=this;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:r=t.resources,o=t.image,u=t.isInline,h=void 0!==u&&u,m=t.operatorList,g=t.cacheKey,y=t.localImageCache,v=t.localColorSpaceCache;S=o.dict;k=S.objId;C=S.get("Width","W");w=S.get("Height","H");if(C&&(0,c.isNum)(C)&&w&&(0,c.isNum)(w)){l.next=8;break}(0,c.warn)("Image dimensions are missing, or not numbers.");return l.abrupt("return",void 0);case 8:if(!(-1!==(_=this.options.maxImageSize)&&C*w>_)){l.next=12;break}(0,c.warn)("Image exceeded maximum allowed size and was removed.");return l.abrupt("return",void 0);case 12:if(!S.get("ImageMask","IM")){l.next=25;break}T=S.get("Width","W");R=S.get("Height","H");E=T+7>>3;D=o.getBytes(E*R,!0);M=S.getArray("Decode","D");(O=j.PDFImage.createMask({imgArray:D,width:T,height:R,imageIsFromDecodeStream:o instanceof d.DecodeStream,inverseDecode:!!M&&M[0]>0})).cached=!!g;x=[O];m.addOp(c.OPS.paintImageMaskXObject,x);g&&y.set(g,k,{fn:c.OPS.paintImageMaskXObject,args:x});return l.abrupt("return",void 0);case 25:N=S.get("SMask","SM")||!1;L=S.get("Mask")||!1;if(!h||N||L||!(C+w<200)){l.next=33;break}U=new j.PDFImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:v});O=U.createImageData(!0);m.addOp(c.OPS.paintInlineImageXObject,[O]);return l.abrupt("return",void 0);case 33:q="img_".concat(this.idFactory.createObjId()),X=!1;this.parsingType3Font?q="".concat(this.idFactory.getDocId(),"_type3_").concat(q):k&&(X=this.globalImageCache.shouldCache(k,this.pageIndex))&&(q="".concat(this.idFactory.getDocId(),"_").concat(q));m.addDependency(q);x=[q,C,w];j.PDFImage.buildImage({xref:this.xref,res:r,image:o,isInline:h,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:v}).then((function(t){O=t.createImageData(!1);g&&k&&X&&W.globalImageCache.addByteSize(k,O.data.length);return W._sendImgData(q,O,X)})).catch((function(t){(0,c.warn)('Unable to decode image "'.concat(q,'": "').concat(t,'".'));return W._sendImgData(q,null,X)}));m.addOp(c.OPS.paintImageXObject,x);if(g){y.set(g,k,{fn:c.OPS.paintImageXObject,args:x});if(k){(0,c.assert)(!h,"Cannot cache an inline image globally.");this.globalImageCache.addPageIndex(k,this.pageIndex);X&&this.globalImageCache.setData(k,{objId:q,fn:c.OPS.paintImageXObject,args:x,byteSize:0})}}return l.abrupt("return",void 0);case 41:case"end":return l.stop()}}),_callee3,this)}))),function buildPaintImageXObject(t){return C.apply(this,arguments)})},{key:"handleSMask",value:function handleSMask(t,r,o,l,c,u){var h=t.get("G"),d={subtype:t.get("S").name,backdrop:t.get("BC")},m=t.get("TR");if((0,k.isPDFFunction)(m)){for(var g=this._pdfFunctionFactory.create(m),y=new Uint8Array(256),v=new Float32Array(1),S=0;S<256;S++){v[0]=S/255;g(v,0,v,0);y[S]=255*v[0]|0}d.transferMap=y}return this.buildFormXObject(r,h,d,o,l,c.state.clone(),u)}},{key:"handleTransferFunction",value:function handleTransferFunction(t){var r;if(Array.isArray(t))r=t;else{if(!(0,k.isPDFFunction)(t))return null;r=[t]}var o,l=[],c=0,u=0,d=_createForOfIteratorHelper(r);try{for(d.s();!(o=d.n()).done;){var m=o.value,g=this.xref.fetchIfRef(m);c++;if((0,h.isName)(g,"Identity"))l.push(null);else{if(!(0,k.isPDFFunction)(g))return null;for(var y=this._pdfFunctionFactory.create(g),v=new Uint8Array(256),S=new Float32Array(1),C=0;C<256;C++){S[0]=C/255;y(S,0,S,0);v[C]=255*S[0]|0}l.push(v);u++}}}catch(t){d.e(t)}finally{d.f()}return 1!==c&&4!==c||0===u?null:l}},{key:"handleTilingType",value:function handleTilingType(t,r,o,l,u,d,m,g,y){var v=this,k=new D.OperatorList,C=h.Dict.merge({xref:this.xref,dictArray:[u.get("Resources"),o]});return this.getOperatorList({stream:l,task:m,resources:C,operatorList:k}).then((function(){var o=k.getIR(),l=(0,S.getTilingPatternIR)(o,u,r);d.addDependencies(k.dependencies);d.addOp(t,l);g&&y.set(g,u.objId,{operatorListIR:o,dict:u})})).catch((function(t){if(!(t instanceof c.AbortException)){if(!v.options.ignoreErrors)throw t;v.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorTilingPattern});(0,c.warn)('handleTilingType - ignoring pattern: "'.concat(t,'".'))}}))}},{key:"handleSetFont",value:function handleSetFont(t,r,o,l,u,d){var g=this,y=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,v=r&&r[0]instanceof h.Name?r[0].name:null;return this.loadFont(v,o,t,y).then((function(r){return r.font.isType3Font?r.loadType3Data(g,t,u).then((function(){l.addDependencies(r.type3Dependencies);return r})).catch((function(t){g.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontLoadType3});return new W({loadedName:"g_font_error",font:new m.ErrorFont("Type3 font load error: ".concat(t)),dict:r.font,extraProperties:g.options.fontExtraProperties})})):r})).then((function(t){d.font=t.font;t.send(g.handler);return t.loadedName}))}},{key:"handleText",value:function handleText(t,r){var o=r.font,l=o.charsToGlyphs(t);if(o.data){(!!(r.textRenderingMode&c.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&PartialEvaluator.buildFontPaths(o,l,this.handler)}return l}},{key:"ensureStateFont",value:function ensureStateFont(t){if(!t.font){var r=new c.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw r;this.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontState});(0,c.warn)('ensureStateFont: "'.concat(r,'".'))}}},{key:"setGState",value:(o=_asyncToGenerator(l.default.mark((function _callee4(t){var r,o,u,d,m,g,y,v,S,k,C,w,_,O,x,T,R=this;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:r=t.resources,o=t.gState,u=t.operatorList,d=t.cacheKey,m=t.task,g=t.stateManager,y=t.localGStateCache,v=t.localColorSpaceCache;S=o.objId;k=!0;C=[];w=o.getKeys();_=Promise.resolve();O=function _loop(){var t=w[x],l=o.get(t);switch(t){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":C.push([t,l]);break;case"Font":k=!1;_=_.then((function(){return R.handleSetFont(r,null,l[0],u,m,g.state).then((function(r){u.addDependency(r);C.push([t,[r,l[1]]])}))}));break;case"BM":C.push([t,normalizeBlendMode(l)]);break;case"SMask":if((0,h.isName)(l,"None")){C.push([t,!1]);break}if((0,h.isDict)(l)){k=!1;_=_.then((function(){return R.handleSMask(l,r,u,m,g,v)}));C.push([t,!0])}else(0,c.warn)("Unsupported SMask type");break;case"TR":var d=R.handleTransferFunction(l);C.push([t,d]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,c.info)("graphic state operator "+t);break;default:(0,c.info)("Unknown graphic state operator "+t)}};for(x=0,T=w.length;x<T;x++)O();return l.abrupt("return",_.then((function(){C.length>0&&u.addOp(c.OPS.setGState,[C]);k&&y.set(d,S,C)})));case 9:case"end":return l.stop()}}),_callee4)}))),function setGState(t){return o.apply(this,arguments)})},{key:"loadFont",value:function loadFont(t,r,o){var u,d=this,g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,y=function(){var o=_asyncToGenerator(l.default.mark((function _callee5(){return l.default.wrap((function _callee5$(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new W({loadedName:"g_font_error",font:new m.ErrorFont('Font "'.concat(t,'" is not available.')),dict:r,extraProperties:d.options.fontExtraProperties}));case 1:case"end":return o.stop()}}),_callee5)})));return function errorFont(){return o.apply(this,arguments)}}(),v=this.xref;if(r){if(!(0,h.isRef)(r))throw new c.FormatError('The "font" object should be a reference.');u=r}else{var S=o.get("Font");S&&(u=S.getRaw(t))}if(!u){var k='Font "'.concat(t||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,c.warn)("".concat(k,"."));return y()}this.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontMissing});(0,c.warn)("".concat(k," -- attempting to fallback to a default font."));u=g||PartialEvaluator.fallbackFontDict}if(this.fontCache.has(u))return this.fontCache.get(u);r=v.fetchIfRef(u);if(!(0,h.isDict)(r))return y();if(r.cacheKey&&this.fontCache.has(r.cacheKey))return this.fontCache.get(r.cacheKey);var C,w=(0,c.createPromiseCapability)();try{C=this.preEvaluateFont(r)}catch(t){(0,c.warn)('loadFont - preEvaluateFont failed: "'.concat(t,'".'));return y()}var _,O=C,x=O.descriptor,T=O.hash,R=(0,h.isRef)(u);R&&(_="f".concat(u.toString()));if(T&&(0,h.isDict)(x)){x.fontAliases||(x.fontAliases=Object.create(null));var E=x.fontAliases;if(E[T]){var D=E[T].aliasRef;if(R&&D&&this.fontCache.has(D)){this.fontCache.putAlias(u,D);return this.fontCache.get(u)}}else E[T]={fontID:this.idFactory.createFontId()};R&&(E[T].aliasRef=u);_=E[T].fontID}if(R)this.fontCache.put(u,w.promise);else{_||(_=this.idFactory.createFontId());r.cacheKey="cacheKey_".concat(_);this.fontCache.put(r.cacheKey,w.promise)}(0,c.assert)(_&&_.startsWith("f"),'The "fontID" must be (correctly) defined.');r.loadedName="".concat(this.idFactory.getDocId(),"_").concat(_);this.translateFont(C).then((function(t){if(void 0!==t.fontType){v.stats.fontTypes[t.fontType]=!0}w.resolve(new W({loadedName:r.loadedName,font:t,dict:r,extraProperties:d.options.fontExtraProperties}))})).catch((function(t){d.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontTranslate});(0,c.warn)('loadFont - translateFont failed: "'.concat(t,'".'));try{var o=x&&x.get("FontFile3"),l=o&&o.get("Subtype"),u=(0,m.getFontType)(C.type,l&&l.name);v.stats.fontTypes[u]=!0}catch(t){}w.resolve(new W({loadedName:r.loadedName,font:new m.ErrorFont(t instanceof Error?t.message:t),dict:r,extraProperties:d.options.fontExtraProperties}))}));return w.promise}},{key:"buildPath",value:function buildPath(t,r,o){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=t.length-1;o||(o=[]);if(u<0||t.fnArray[u]!==c.OPS.constructPath){if(l){(0,c.warn)('Encountered path operator "'.concat(r,'" inside of a text object.'));t.addOp(c.OPS.save,null)}t.addOp(c.OPS.constructPath,[[r],o]);l&&t.addOp(c.OPS.restore,null)}else{var h=t.argsArray[u];h[0].push(r);Array.prototype.push.apply(h[1],o)}}},{key:"parseColorSpace",value:function parseColorSpace(t){var r=this,o=t.cs,l=t.resources,u=t.localColorSpaceCache;return O.ColorSpace.parseAsync({cs:o,xref:this.xref,resources:l,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).catch((function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorColorSpace});(0,c.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(t,'".'));return null}throw t}))}},{key:"handleColorN",value:function handleColorN(t,r,o,l,u,d,m,g,y){var v=o.pop();if(v instanceof h.Name){var k=v.name,C=y.getByName(k);if(C)try{var w=l.base?l.base.getRgb(o,0):null,_=(0,S.getTilingPatternIR)(C.operatorListIR,C.dict,w);t.addOp(r,_);return}catch(t){}var O=u.get(k);if(O){var x=(0,h.isStream)(O)?O.dict:O,T=x.get("PatternType");if(T===N){var R=l.base?l.base.getRgb(o,0):null;return this.handleTilingType(r,R,d,O,x,t,m,k,y)}if(T===L){var E=x.get("Shading"),D=x.getArray("Matrix");O=S.Pattern.parseShading(E,D,this.xref,d,this.handler,this._pdfFunctionFactory,g);t.addOp(r,O.getIR());return}throw new c.FormatError("Unknown PatternType: ".concat(T))}}throw new c.FormatError("Unknown PatternName: ".concat(v))}},{key:"parseMarkedContentProps",value:(r=_asyncToGenerator(l.default.mark((function _callee6(t,r){var o,u,d,m,g,y;return l.default.wrap((function _callee6$(l){for(;;)switch(l.prev=l.next){case 0:if(!(0,h.isName)(t)){l.next=5;break}u=r.get("Properties");o=u.get(t.name);l.next=10;break;case 5:if(!(0,h.isDict)(t)){l.next=9;break}o=t;l.next=10;break;case 9:throw new c.FormatError("Optional content properties malformed.");case 10:if("OCG"!==(d=o.get("Type").name)){l.next=15;break}return l.abrupt("return",{type:d,id:o.objId});case 15:if("OCMD"!==d){l.next=27;break}m=o.get("OCGs");if(!Array.isArray(m)&&!(0,h.isDict)(m)){l.next=25;break}g=[];Array.isArray(m)?o.get("OCGs").forEach((function(t){g.push(t.toString())})):g.push(m.objId);y=null;o.get("VE")&&(y=!0);return l.abrupt("return",{type:d,ids:g,policy:(0,h.isName)(o.get("P"))?o.get("P").name:null,expression:y});case 25:if(!(0,h.isRef)(m)){l.next=27;break}return l.abrupt("return",{type:d,id:m.toString()});case 27:return l.abrupt("return",null);case 28:case"end":return l.stop()}}),_callee6)}))),function parseMarkedContentProps(t,o){return r.apply(this,arguments)})},{key:"getOperatorList",value:function getOperatorList(t){var r=this,o=t.stream,l=t.task,u=t.resources,d=t.operatorList,m=t.initialState,g=void 0===m?null:m,y=t.fallbackFontDict,v=void 0===y?null:y;u=u||h.Dict.empty;g=g||new G;if(!d)throw new Error('getOperatorList: missing "operatorList" parameter');var k=this,C=this.xref,_=!1,x=new w.LocalImageCache,T=new w.LocalColorSpaceCache,R=new w.LocalGStateCache,E=new w.LocalTilingPatternCache,D=u.get("XObject")||h.Dict.empty,j=u.get("Pattern")||h.Dict.empty,M=new H(g),N=new V(o,C,M),L=new q;function closePendingRestoreOPS(t){for(var r=0,o=N.savedStatesDepth;r<o;r++)d.addOp(c.OPS.restore,[])}return new Promise((function promiseBody(t,r){var o=function next(o){Promise.all([o,d.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();L.reset();for(var m,g,y,w,q,X={};!(m=L.check());){X.args=null;if(!N.read(X))break;var W=X.args,H=X.fn;switch(0|H){case c.OPS.paintXObject:if(q=W[0].name){var z=x.getByName(q);if(z){d.addOp(z.fn,z.args);W=null;continue}}o(new Promise((function(t,r){if(!q)throw new c.FormatError("XObject must be referred to by name.");var o=D.getRaw(q);if(o instanceof h.Ref){var m=x.getByRef(o);if(m){d.addOp(m.fn,m.args);t();return}var g=k.globalImageCache.getData(o,k.pageIndex);if(g){d.addDependency(g.objId);d.addOp(g.fn,g.args);t();return}o=C.fetch(o)}if(!(0,h.isStream)(o))throw new c.FormatError("XObject should be a stream");var y=o.dict.get("Subtype");if(!(0,h.isName)(y))throw new c.FormatError("XObject should have a Name subtype");if("Form"!==y.name)if("Image"!==y.name){if("PS"!==y.name)throw new c.FormatError("Unhandled XObject subtype ".concat(y.name));(0,c.info)("Ignored XObject subtype PS");t()}else k.buildPaintImageXObject({resources:u,image:o,operatorList:d,cacheKey:q,localImageCache:x,localColorSpaceCache:T}).then(t,r);else{M.save();k.buildFormXObject(u,o,null,d,l,M.state.clone(),T).then((function(){M.restore();t()}),r)}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorXObject});(0,c.warn)('getOperatorList - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setFont:var G=W[1];o(k.handleSetFont(u,W,null,d,l,M.state,v).then((function(t){d.addDependency(t);d.addOp(c.OPS.setFont,[t,G])})));return;case c.OPS.beginText:_=!0;break;case c.OPS.endText:_=!1;break;case c.OPS.endInlineImage:var V=W[0].cacheKey;if(V){var $=x.getByName(V);if($){d.addOp($.fn,$.args);W=null;continue}}o(k.buildPaintImageXObject({resources:u,image:W[0],isInline:!0,operatorList:d,cacheKey:V,localImageCache:x,localColorSpaceCache:T}));return;case c.OPS.showText:if(!M.state.font){k.ensureStateFont(M.state);continue}W[0]=k.handleText(W[0],M.state);break;case c.OPS.showSpacedText:if(!M.state.font){k.ensureStateFont(M.state);continue}var K=W[0],Y=[],J=K.length,Q=M.state;for(g=0;g<J;++g){var Z=K[g];(0,c.isString)(Z)?Array.prototype.push.apply(Y,k.handleText(Z,Q)):(0,c.isNum)(Z)&&Y.push(Z)}W[0]=Y;H=c.OPS.showText;break;case c.OPS.nextLineShowText:if(!M.state.font){k.ensureStateFont(M.state);continue}d.addOp(c.OPS.nextLine);W[0]=k.handleText(W[0],M.state);H=c.OPS.showText;break;case c.OPS.nextLineSetSpacingShowText:if(!M.state.font){k.ensureStateFont(M.state);continue}d.addOp(c.OPS.nextLine);d.addOp(c.OPS.setWordSpacing,[W.shift()]);d.addOp(c.OPS.setCharSpacing,[W.shift()]);W[0]=k.handleText(W[0],M.state);H=c.OPS.showText;break;case c.OPS.setTextRenderingMode:M.state.textRenderingMode=W[0];break;case c.OPS.setFillColorSpace:var ee=O.ColorSpace.getCached(W[0],C,T);if(ee){M.state.fillColorSpace=ee;continue}o(k.parseColorSpace({cs:W[0],resources:u,localColorSpaceCache:T}).then((function(t){t&&(M.state.fillColorSpace=t)})));return;case c.OPS.setStrokeColorSpace:var te=O.ColorSpace.getCached(W[0],C,T);if(te){M.state.strokeColorSpace=te;continue}o(k.parseColorSpace({cs:W[0],resources:u,localColorSpaceCache:T}).then((function(t){t&&(M.state.strokeColorSpace=t)})));return;case c.OPS.setFillColor:W=(w=M.state.fillColorSpace).getRgb(W,0);H=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColor:W=(w=M.state.strokeColorSpace).getRgb(W,0);H=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillGray:M.state.fillColorSpace=O.ColorSpace.singletons.gray;W=O.ColorSpace.singletons.gray.getRgb(W,0);H=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeGray:M.state.strokeColorSpace=O.ColorSpace.singletons.gray;W=O.ColorSpace.singletons.gray.getRgb(W,0);H=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillCMYKColor:M.state.fillColorSpace=O.ColorSpace.singletons.cmyk;W=O.ColorSpace.singletons.cmyk.getRgb(W,0);H=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeCMYKColor:M.state.strokeColorSpace=O.ColorSpace.singletons.cmyk;W=O.ColorSpace.singletons.cmyk.getRgb(W,0);H=c.OPS.setStrokeRGBColor;break;case c.OPS.setFillRGBColor:M.state.fillColorSpace=O.ColorSpace.singletons.rgb;W=O.ColorSpace.singletons.rgb.getRgb(W,0);break;case c.OPS.setStrokeRGBColor:M.state.strokeColorSpace=O.ColorSpace.singletons.rgb;W=O.ColorSpace.singletons.rgb.getRgb(W,0);break;case c.OPS.setFillColorN:if("Pattern"===(w=M.state.fillColorSpace).name){o(k.handleColorN(d,c.OPS.setFillColorN,W,w,j,u,l,T,E));return}W=w.getRgb(W,0);H=c.OPS.setFillRGBColor;break;case c.OPS.setStrokeColorN:if("Pattern"===(w=M.state.strokeColorSpace).name){o(k.handleColorN(d,c.OPS.setStrokeColorN,W,w,j,u,l,T,E));return}W=w.getRgb(W,0);H=c.OPS.setStrokeRGBColor;break;case c.OPS.shadingFill:var re=u.get("Shading");if(!re)throw new c.FormatError("No shading resource found");var ae=re.get(W[0].name);if(!ae)throw new c.FormatError("No shading object found");W=[S.Pattern.parseShading(ae,null,C,u,k.handler,k._pdfFunctionFactory,T).getIR()];H=c.OPS.shadingFill;break;case c.OPS.setGState:if(q=W[0].name){var ne=R.getByName(q);if(ne){ne.length>0&&d.addOp(c.OPS.setGState,[ne]);W=null;continue}}o(new Promise((function(t,r){if(!q)throw new c.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var m=o.get(q);if(!(m instanceof h.Dict))throw new c.FormatError("GState should be a dictionary.");k.setGState({resources:u,gState:m,operatorList:d,cacheKey:q,task:l,stateManager:M,localGStateCache:R,localColorSpaceCache:T}).then(t,r)})).catch((function(t){if(!(t instanceof c.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorExtGState});(0,c.warn)('getOperatorList - ignoring ExtGState: "'.concat(t,'".'))}})));return;case c.OPS.moveTo:case c.OPS.lineTo:case c.OPS.curveTo:case c.OPS.curveTo2:case c.OPS.curveTo3:case c.OPS.closePath:case c.OPS.rectangle:k.buildPath(d,H,W,_);continue;case c.OPS.markPoint:case c.OPS.markPointProps:case c.OPS.beginCompat:case c.OPS.endCompat:continue;case c.OPS.beginMarkedContentProps:if(!(0,h.isName)(W[0])){(0,c.warn)("Expected name for beginMarkedContentProps arg0=".concat(W[0]));continue}if("OC"===W[0].name){o(k.parseMarkedContentProps(W[1],u).then((function(t){d.addOp(c.OPS.beginMarkedContentProps,["OC",t])})).catch((function(t){if(!(t instanceof c.AbortException)){if(!k.options.ignoreErrors)throw t;k.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorMarkedContent});(0,c.warn)('getOperatorList - ignoring beginMarkedContentProps: "'.concat(t,'".'))}})));return}W=[W[0].name];break;case c.OPS.beginMarkedContent:case c.OPS.endMarkedContent:default:if(null!==W){for(g=0,y=W.length;g<y&&!(W[g]instanceof h.Dict);g++);if(g<y){(0,c.warn)("getOperatorList - ignoring operator: "+H);continue}}}d.addOp(H,W)}if(m)o(U);else{closePendingRestoreOPS();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorOperatorList});(0,c.warn)('getOperatorList - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));closePendingRestoreOPS()}}))}},{key:"getTextContent",value:function getTextContent(t){var r=this,o=t.stream,l=t.task,u=t.resources,d=t.stateManager,m=void 0===d?null:d,g=t.normalizeWhitespace,v=void 0!==g&&g,S=t.combineTextItems,k=void 0!==S&&S,C=t.sink,O=t.seenStyles,x=void 0===O?new Set:O;u=u||h.Dict.empty;m=m||new H(new z);var T,R=/\s/g,E={items:[],styles:Object.create(null)},D={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},j=this,M=this.xref,N=null,L=new w.LocalImageCache,X=new w.LocalGStateCache,W=new V(o,M,m);function ensureTextContentItem(){if(D.initialized)return D;var t=T.font,r=t.loadedName;if(!x.has(r)){x.add(r);E.styles[r]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}D.fontName=r;var o=[T.fontSize*T.textHScale,0,0,T.fontSize,0,T.textRise];if(t.isType3Font&&T.fontSize<=1&&!(0,c.isArrayEqual)(T.fontMatrix,c.FONT_IDENTITY_MATRIX)){var l=t.bbox[3]-t.bbox[1];l>0&&(o[3]*=l*T.fontMatrix[3])}var u=c.Util.transform(T.ctm,c.Util.transform(T.textMatrix,o));D.transform=u;if(t.vertical){D.width=Math.hypot(u[0],u[1]);D.height=0;D.vertical=!0}else{D.width=0;D.height=Math.hypot(u[2],u[3]);D.vertical=!1}var h=Math.hypot(T.textLineMatrix[0],T.textLineMatrix[1]),d=Math.hypot(T.ctm[0],T.ctm[1]);D.textAdvanceScale=d*h;D.lastAdvanceWidth=0;D.lastAdvanceHeight=0;var m=t.spaceWidth/1e3*T.fontSize;if(m){D.spaceWidth=m;D.fakeSpaceMin=.3*m;D.fakeMultiSpaceMin=1.5*m;D.fakeMultiSpaceMax=4*m;D.textRunBreakAllowed=!t.isMonospace}else{D.spaceWidth=0;D.fakeSpaceMin=1/0;D.fakeMultiSpaceMin=1/0;D.fakeMultiSpaceMax=0;D.textRunBreakAllowed=!1}D.initialized=!0;return D}function replaceWhitespace(t){for(var r,o=0,l=t.length;o<l&&(r=t.charCodeAt(o))>=32&&r<=127;)o++;return o<l?t.replace(R," "):t}function handleSetFont(t,r){return j.loadFont(t,r,u).then((function(t){T.font=t.font;T.fontMatrix=t.font.fontMatrix||c.FONT_IDENTITY_MATRIX}))}function buildTextContentItem(t){for(var r=T.font,o=ensureTextContentItem(),l=0,c=0,u=r.charsToGlyphs(t),h=0;h<u.length;h++){var d=u[h],m=null;m=r.vertical&&d.vmetric?d.vmetric[0]:d.width;var g=d.unicode,v=(0,y.getNormalizedUnicodes)();void 0!==v[g]&&(g=v[g]);g=(0,y.reverseIfRtl)(g);var S=T.charSpacing;if(d.isSpace){var k=T.wordSpacing;S+=k;k>0&&addFakeSpaces(k,o.str)}var C=0,w=0;if(r.vertical){c+=w=m*T.fontMatrix[0]*T.fontSize+S}else{l+=C=(m*T.fontMatrix[0]*T.fontSize+S)*T.textHScale}T.translateTextMatrix(C,w);o.str.push(g)}if(r.vertical){o.lastAdvanceHeight=c;o.height+=Math.abs(c)}else{o.lastAdvanceWidth=l;o.width+=l}return o}function addFakeSpaces(t,r){if(!(t<D.fakeSpaceMin))if(t<D.fakeMultiSpaceMin)r.push(" ");else for(var o=Math.round(t/D.spaceWidth);o-- >0;)r.push(" ")}function flushTextContentItem(){if(D.initialized){D.vertical?D.height*=D.textAdvanceScale:D.width*=D.textAdvanceScale;E.items.push(function runBidiTransform(t){var r=t.str.join(""),o=(0,_.bidi)(r,-1,t.vertical);return{str:v?replaceWhitespace(o.str):o.str,dir:o.dir,width:t.width,height:t.height,transform:t.transform,fontName:t.fontName}}(D));D.initialized=!1;D.str.length=0}}function enqueueChunk(){var t=E.items.length;if(t>0){C.enqueue(E,t);E.items=[];E.styles=Object.create(null)}}var G=new q;return new Promise((function promiseBody(t,r){var o=function next(o){enqueueChunk();Promise.all([o,C.ready]).then((function(){try{promiseBody(t,r)}catch(t){r(t)}}),r)};l.ensureNotTerminated();G.reset();for(var d,g={},y=[];!(d=G.check());){y.length=0;g.args=y;if(!W.read(g))break;T=m.state;var S,w=g.fn;y=g.args;switch(0|w){case c.OPS.setFont:var _=y[0].name,O=y[1];if(T.font&&_===T.fontName&&O===T.fontSize)break;flushTextContentItem();T.fontName=_;T.fontSize=O;o(handleSetFont(_,null));return;case c.OPS.setTextRise:flushTextContentItem();T.textRise=y[0];break;case c.OPS.setHScale:flushTextContentItem();T.textHScale=y[0]/100;break;case c.OPS.setLeading:flushTextContentItem();T.leading=y[0];break;case c.OPS.moveText:var R=!!T.font&&0===(T.font.vertical?y[0]:y[1]);S=y[0]-y[1];if(k&&R&&D.initialized&&S>0&&S<=D.fakeMultiSpaceMax){T.translateTextLineMatrix(y[0],y[1]);D.width+=y[0]-D.lastAdvanceWidth;D.height+=y[1]-D.lastAdvanceHeight;addFakeSpaces(y[0]-D.lastAdvanceWidth-(y[1]-D.lastAdvanceHeight),D.str);break}flushTextContentItem();T.translateTextLineMatrix(y[0],y[1]);T.textMatrix=T.textLineMatrix.slice();break;case c.OPS.setLeadingMoveText:flushTextContentItem();T.leading=-y[1];T.translateTextLineMatrix(y[0],y[1]);T.textMatrix=T.textLineMatrix.slice();break;case c.OPS.nextLine:flushTextContentItem();T.carriageReturn();break;case c.OPS.setTextMatrix:S=T.calcTextLineMatrixAdvance(y[0],y[1],y[2],y[3],y[4],y[5]);if(k&&null!==S&&D.initialized&&S.value>0&&S.value<=D.fakeMultiSpaceMax){T.translateTextLineMatrix(S.width,S.height);D.width+=S.width-D.lastAdvanceWidth;D.height+=S.height-D.lastAdvanceHeight;addFakeSpaces(S.width-D.lastAdvanceWidth-(S.height-D.lastAdvanceHeight),D.str);break}flushTextContentItem();T.setTextMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);T.setTextLineMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);break;case c.OPS.setCharSpacing:T.charSpacing=y[0];break;case c.OPS.setWordSpacing:T.wordSpacing=y[0];break;case c.OPS.beginText:flushTextContentItem();T.textMatrix=c.IDENTITY_MATRIX.slice();T.textLineMatrix=c.IDENTITY_MATRIX.slice();break;case c.OPS.showSpacedText:if(!m.state.font){j.ensureStateFont(m.state);continue}for(var q,z=y[0],V=0,$=z.length;V<$;V++)if("string"==typeof z[V])buildTextContentItem(z[V]);else if((0,c.isNum)(z[V])){ensureTextContentItem();S=z[V]*T.fontSize/1e3;var K=!1;if(T.font.vertical){q=S;T.translateTextMatrix(0,q);(K=D.textRunBreakAllowed&&S>D.fakeMultiSpaceMax)||(D.height+=q)}else{q=(S=-S)*T.textHScale;T.translateTextMatrix(q,0);(K=D.textRunBreakAllowed&&S>D.fakeMultiSpaceMax)||(D.width+=q)}K?flushTextContentItem():S>0&&addFakeSpaces(S,D.str)}break;case c.OPS.showText:if(!m.state.font){j.ensureStateFont(m.state);continue}buildTextContentItem(y[0]);break;case c.OPS.nextLineShowText:if(!m.state.font){j.ensureStateFont(m.state);continue}flushTextContentItem();T.carriageReturn();buildTextContentItem(y[0]);break;case c.OPS.nextLineSetSpacingShowText:if(!m.state.font){j.ensureStateFont(m.state);continue}flushTextContentItem();T.wordSpacing=y[0];T.charSpacing=y[1];T.carriageReturn();buildTextContentItem(y[2]);break;case c.OPS.paintXObject:flushTextContentItem();N||(N=u.get("XObject")||h.Dict.empty);var Y=y[0].name;if(Y&&L.getByName(Y))break;o(new Promise((function(t,r){if(!Y)throw new c.FormatError("XObject must be referred to by name.");var o=N.getRaw(Y);if(o instanceof h.Ref){if(L.getByRef(o)){t();return}if(j.globalImageCache.getData(o,j.pageIndex)){t();return}o=M.fetch(o)}if(!(0,h.isStream)(o))throw new c.FormatError("XObject should be a stream");var d=o.dict.get("Subtype");if(!(0,h.isName)(d))throw new c.FormatError("XObject should have a Name subtype");if("Form"===d.name){var g=m.state.clone(),y=new H(g),S=o.dict.getArray("Matrix");Array.isArray(S)&&6===S.length&&y.transform(S);enqueueChunk();var w={enqueueInvoked:!1,enqueue:function enqueue(t,r){this.enqueueInvoked=!0;C.enqueue(t,r)},get desiredSize(){return C.desiredSize},get ready(){return C.ready}};j.getTextContent({stream:o,task:l,resources:o.dict.get("Resources")||u,stateManager:y,normalizeWhitespace:v,combineTextItems:k,sink:w,seenStyles:x}).then((function(){w.enqueueInvoked||L.set(Y,o.dict.objId,!0);t()}),r)}else{L.set(Y,o.dict.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!j.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring XObject: "'.concat(t,'".'))}})));return;case c.OPS.setGState:if((Y=y[0].name)&&X.getByName(Y))break;o(new Promise((function(t,r){if(!Y)throw new c.FormatError("GState must be referred to by name.");var o=u.get("ExtGState");if(!(o instanceof h.Dict))throw new c.FormatError("ExtGState should be a dictionary.");var l=o.get(Y);if(!(l instanceof h.Dict))throw new c.FormatError("GState should be a dictionary.");var d=l.get("Font");if(d){flushTextContentItem();T.fontName=null;T.fontSize=d[1];handleSetFont(null,d[0]).then(t,r)}else{X.set(Y,l.objId,!0);t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!j.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring ExtGState: "'.concat(t,'".'))}})));return}if(E.items.length>=C.desiredSize){d=!0;break}}if(d)o(U);else{flushTextContentItem();enqueueChunk();t()}})).catch((function(t){if(!(t instanceof c.AbortException)){if(!r.options.ignoreErrors)throw t;(0,c.warn)('getTextContent - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(t,'".'));flushTextContentItem();enqueueChunk()}}))}},{key:"extractDataStructures",value:function extractDataStructures(t,r,o){var l,u=this,d=this.xref,y=t.get("ToUnicode")||r.get("ToUnicode"),v=y?this.readToUnicode(y):Promise.resolve(void 0);if(o.composite){var S=t.get("CIDSystemInfo");(0,h.isDict)(S)&&(o.cidSystemInfo={registry:(0,c.stringToPDFString)(S.get("Registry")),ordering:(0,c.stringToPDFString)(S.get("Ordering")),supplement:S.get("Supplement")});var k=t.get("CIDToGIDMap");(0,h.isStream)(k)&&(l=k.getBytes())}var C,w=[],_=null;if(t.has("Encoding")){C=t.get("Encoding");if((0,h.isDict)(C)){_=C.get("BaseEncoding");_=(0,h.isName)(_)?_.name:null;if(C.has("Differences"))for(var O=C.get("Differences"),x=0,T=0,R=O.length;T<R;T++){var E=d.fetchIfRef(O[T]);if((0,c.isNum)(E))x=E;else{if(!(0,h.isName)(E))throw new c.FormatError("Invalid entry in 'Differences' array: ".concat(E));w[x++]=E.name}}}else{if(!(0,h.isName)(C))throw new c.FormatError("Encoding is not a Name nor a Dict");_=C.name}"MacRomanEncoding"!==_&&"MacExpertEncoding"!==_&&"WinAnsiEncoding"!==_&&(_=null)}if(_)o.defaultEncoding=(0,g.getEncoding)(_).slice();else{var D=!!(o.flags&m.FontFlags.Symbolic),j=!!(o.flags&m.FontFlags.Nonsymbolic);C=g.StandardEncoding;"TrueType"!==o.type||j||(C=g.WinAnsiEncoding);if(D){C=g.MacRomanEncoding;o.file||(/Symbol/i.test(o.name)?C=g.SymbolSetEncoding:/Dingbats|Wingdings/i.test(o.name)&&(C=g.ZapfDingbatsEncoding))}o.defaultEncoding=C}o.differences=w;o.baseEncodingName=_;o.hasEncoding=!!_||w.length>0;o.dict=t;return v.then((function(t){o.toUnicode=t;return u.buildToUnicode(o)})).then((function(t){o.toUnicode=t;l&&(o.cidToGidMap=u.readCidToGidMap(l,t));return o}))}},{key:"_buildSimpleFontToUnicode",value:function _buildSimpleFontToUnicode(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,c.assert)(!t.composite,"Must be a simple font.");var o=[],l=t.defaultEncoding.slice(),u=t.baseEncodingName,h=t.differences;for(var d in h){var v=h[d];".notdef"!==v&&(l[d]=v)}var S=(0,x.getGlyphsUnicode)();for(var k in l){var C=l[k];if(""!==C)if(void 0!==S[C])o[k]=String.fromCharCode(S[C]);else{var w=0;switch(C[0]){case"G":3===C.length&&(w=parseInt(C.substring(1),16));break;case"g":5===C.length&&(w=parseInt(C.substring(1),16));break;case"C":case"c":if(C.length>=3&&C.length<=4){var _=C.substring(1);if(r){w=parseInt(_,16);break}w=+_;if(Number.isNaN(w)&&Number.isInteger(parseInt(_,16)))return this._buildSimpleFontToUnicode(t,!0)}break;default:var O=(0,y.getUnicodeForGlyph)(C,S);-1!==O&&(w=O)}if(w>0&&w<=1114111&&Number.isInteger(w)){if(u&&w===+k){var T=(0,g.getEncoding)(u);if(T&&(C=T[k])){o[k]=String.fromCharCode(S[C]);continue}}o[k]=String.fromCodePoint(w)}}}return new m.ToUnicodeMap(o)}},{key:"buildToUnicode",value:function buildToUnicode(t){t.hasIncludedToUnicodeMap=!!t.toUnicode&&t.toUnicode.length>0;if(t.hasIncludedToUnicodeMap){!t.composite&&t.hasEncoding&&(t.fallbackToUnicode=this._buildSimpleFontToUnicode(t));return Promise.resolve(t.toUnicode)}if(!t.composite)return Promise.resolve(this._buildSimpleFontToUnicode(t));if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof u.IdentityCMap)||"Adobe"===t.cidSystemInfo.registry&&("GB1"===t.cidSystemInfo.ordering||"CNS1"===t.cidSystemInfo.ordering||"Japan1"===t.cidSystemInfo.ordering||"Korea1"===t.cidSystemInfo.ordering))){var r=t.cidSystemInfo.registry,o=t.cidSystemInfo.ordering,l=h.Name.get(r+"-"+o+"-UCS2");return u.CMapFactory.create({encoding:l,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(r){var o=t.cMap,l=[];o.forEach((function(t,o){if(o>65535)throw new c.FormatError("Max size of CID is 65,535");var u=r.lookup(o);u&&(l[t]=String.fromCharCode((u.charCodeAt(0)<<8)+u.charCodeAt(1)))}));return new m.ToUnicodeMap(l)}))}return Promise.resolve(new m.IdentityToUnicodeMap(t.firstChar,t.lastChar))}},{key:"readToUnicode",value:function readToUnicode(t){var r=this,o=t;return(0,h.isName)(o)?u.CMapFactory.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){return t instanceof u.IdentityCMap?new m.IdentityToUnicodeMap(0,65535):new m.ToUnicodeMap(t.getMap())})):(0,h.isStream)(o)?u.CMapFactory.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof u.IdentityCMap)return new m.IdentityToUnicodeMap(0,65535);var r=new Array(t.length);t.forEach((function(t,o){for(var l=[],c=0;c<o.length;c+=2){var u=o.charCodeAt(c)<<8|o.charCodeAt(c+1);if(55296==(63488&u)){c+=2;var h=o.charCodeAt(c)<<8|o.charCodeAt(c+1);l.push(((1023&u)<<10)+(1023&h)+65536)}else l.push(u)}r[t]=String.fromCodePoint.apply(String,l)}));return new m.ToUnicodeMap(r)}),(function(t){if(t instanceof c.AbortException)return null;if(r.options.ignoreErrors){r.handler.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorFontToUnicode});(0,c.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(t,'".'));return null}throw t})):Promise.resolve(null)}},{key:"readCidToGidMap",value:function readCidToGidMap(t,r){for(var o=[],l=0,c=t.length;l<c;l++){var u=t[l++]<<8|t[l],h=l>>1;(0!==u||r.has(h))&&(o[h]=u)}return o}},{key:"extractWidths",value:function extractWidths(t,r,o){var l,c,u,d,g,y,v,S,k=this.xref,C=[],w=0,_=[];if(o.composite){w=t.has("DW")?t.get("DW"):1e3;if(S=t.get("W"))for(c=0,u=S.length;c<u;c++){y=k.fetchIfRef(S[c++]);v=k.fetchIfRef(S[c]);if(Array.isArray(v))for(d=0,g=v.length;d<g;d++)C[y++]=k.fetchIfRef(v[d]);else{var O=k.fetchIfRef(S[++c]);for(d=y;d<=v;d++)C[d]=O}}if(o.vertical){var x=t.getArray("DW2")||[880,-1e3];l=[x[1],.5*w,x[0]];if(x=t.get("W2"))for(c=0,u=x.length;c<u;c++){y=k.fetchIfRef(x[c++]);v=k.fetchIfRef(x[c]);if(Array.isArray(v))for(d=0,g=v.length;d<g;d++)_[y++]=[k.fetchIfRef(v[d++]),k.fetchIfRef(v[d++]),k.fetchIfRef(v[d])];else{var T=[k.fetchIfRef(x[++c]),k.fetchIfRef(x[++c]),k.fetchIfRef(x[++c])];for(d=y;d<=v;d++)_[d]=T}}}}else{var R=o.firstChar;if(S=t.get("Widths")){d=R;for(c=0,u=S.length;c<u;c++)C[d++]=k.fetchIfRef(S[c]);w=parseFloat(r.get("MissingWidth"))||0}else{var E=t.get("BaseFont");if((0,h.isName)(E)){var D=this.getBaseFontMetrics(E.name);C=this.buildCharCodeToWidth(D.widths,o);w=D.defaultWidth}}}var j=!0,M=w;for(var N in C){var L=C[N];if(L)if(M){if(M!==L){j=!1;break}}else M=L}j&&(o.flags|=m.FontFlags.FixedPitch);o.defaultWidth=w;o.widths=C;o.defaultVMetrics=l;o.vmetrics=_}},{key:"isSerifFont",value:function isSerifFont(t){var r=t.split("-")[0];return r in(0,v.getSerifFonts)()||-1!==r.search(/serif/gi)}},{key:"getBaseFontMetrics",value:function getBaseFontMetrics(t){var r=0,o=Object.create(null),l=!1,u=(0,v.getStdFontMap)()[t]||t,h=(0,R.getMetrics)();u in h||(u=this.isSerifFont(t)?"Times-Roman":"Helvetica");var d=h[u];if((0,c.isNum)(d)){r=d;l=!0}else o=d();return{defaultWidth:r,monospace:l,widths:o}}},{key:"buildCharCodeToWidth",value:function buildCharCodeToWidth(t,r){for(var o=Object.create(null),l=r.differences,c=r.defaultEncoding,u=0;u<256;u++)u in l&&t[l[u]]?o[u]=t[l[u]]:u in c&&t[c[u]]&&(o[u]=t[c[u]]);return o}},{key:"preEvaluateFont",value:function preEvaluateFont(t){var r=t,o=t.get("Subtype");if(!(0,h.isName)(o))throw new c.FormatError("invalid font Subtype");var l,u=!1;if("Type0"===o.name){var d=t.get("DescendantFonts");if(!d)throw new c.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(d)?this.xref.fetchIfRef(d[0]):d)instanceof h.Dict))throw new c.FormatError("Descendant font is not a dictionary.");o=t.get("Subtype");if(!(0,h.isName)(o))throw new c.FormatError("invalid font Subtype");u=!0}var m=t.get("FontDescriptor");if(m){var g=new E.MurmurHash3_64,y=r.getRaw("Encoding");if((0,h.isName)(y))g.update(y.name);else if((0,h.isRef)(y))g.update(y.toString());else if((0,h.isDict)(y)){var v,S=_createForOfIteratorHelper(y.getRawValues());try{for(S.s();!(v=S.n()).done;){var k=v.value;if((0,h.isName)(k))g.update(k.name);else if((0,h.isRef)(k))g.update(k.toString());else if(Array.isArray(k)){for(var C=k.length,w=new Array(C),_=0;_<C;_++){var O=k[_];(0,h.isName)(O)?w[_]=O.name:((0,c.isNum)(O)||(0,h.isRef)(O))&&(w[_]=O.toString())}g.update(w.join())}}}catch(t){S.e(t)}finally{S.f()}}var x=t.get("FirstChar")||0,T=t.get("LastChar")||(u?65535:255);g.update("".concat(x,"-").concat(T));var R=t.get("ToUnicode")||r.get("ToUnicode");if((0,h.isStream)(R)){var D=R.str||R;l=D.buffer?new Uint8Array(D.buffer.buffer,0,D.bufferLength):new Uint8Array(D.bytes.buffer,D.start,D.end-D.start);g.update(l)}else(0,h.isName)(R)&&g.update(R.name);var j=t.get("Widths")||r.get("Widths");if(j){l=new Uint8Array(new Uint32Array(j).buffer);g.update(l)}}return{descriptor:m,dict:t,baseDict:r,composite:u,type:o.name,hash:g?g.hexdigest():""}}},{key:"translateFont",value:(t=_asyncToGenerator(l.default.mark((function _callee7(t){var r,o,g,y,S,k,C,w,_,O,x,T,R,E,D,j,M,N,L,U,q,X,W,H,z,G=this;return l.default.wrap((function _callee7$(l){for(;;)switch(l.prev=l.next){case 0:r=t.baseDict;o=t.dict;g=t.composite;y=t.descriptor;S=t.type;k=g?65535:255;w=o.get("FirstChar")||0;_=o.get("LastChar")||k;if(y){l.next=25;break}if("Type3"!==S){l.next=15;break}(y=new h.Dict(null)).set("FontName",h.Name.get(S));y.set("FontBBox",o.getArray("FontBBox")||[0,0,0,0]);l.next=25;break;case 15:O=o.get("BaseFont");if((0,h.isName)(O)){l.next=18;break}throw new c.FormatError("Base font is not specified");case 18:O=O.name.replace(/[,_]/g,"-");x=this.getBaseFontMetrics(O);T=O.split("-")[0];R=(this.isSerifFont(T)?m.FontFlags.Serif:0)|(x.monospace?m.FontFlags.FixedPitch:0)|((0,v.getSymbolsFonts)()[T]?m.FontFlags.Symbolic:m.FontFlags.Nonsymbolic);C={type:S,name:O,widths:x.widths,defaultWidth:x.defaultWidth,flags:R,firstChar:w,lastChar:_};E=o.get("Widths");return l.abrupt("return",this.extractDataStructures(o,o,C).then((function(t){if(E){for(var r=[],o=w,l=0,c=E.length;l<c;l++)r[o++]=G.xref.fetchIfRef(E[l]);t.widths=r}else t.widths=G.buildCharCodeToWidth(x.widths,t);return new m.Font(O,null,t)})));case 25:D=y.get("FontName");j=o.get("BaseFont");(0,c.isString)(D)&&(D=h.Name.get(D));(0,c.isString)(j)&&(j=h.Name.get(j));if("Type3"!==S){M=D&&D.name;N=j&&j.name;if(M!==N){(0,c.info)("The FontDescriptor's FontName is \"".concat(M,'" but ')+"should be the same as the Font's BaseFont \"".concat(N,'".'));M&&N&&N.startsWith(M)&&(D=j)}}D=D||j;if((0,h.isName)(D)){l.next=33;break}throw new c.FormatError("invalid font name");case 33:l.prev=33;L=y.get("FontFile","FontFile2","FontFile3");l.next=43;break;case 37:l.prev=37;l.t0=l.catch(33);if(this.options.ignoreErrors){l.next=41;break}throw l.t0;case 41:(0,c.warn)('translateFont - fetching "'.concat(D.name,'" font file: "').concat(l.t0,'".'));L=new d.NullStream;case 43:if(L&&L.dict){(U=L.dict.get("Subtype"))&&(U=U.name);q=L.dict.get("Length1");X=L.dict.get("Length2");W=L.dict.get("Length3")}C={type:S,name:D.name,subtype:U,file:L,length1:q,length2:X,length3:W,loadedName:r.loadedName,composite:g,fixedPitch:!1,fontMatrix:o.getArray("FontMatrix")||c.FONT_IDENTITY_MATRIX,firstChar:w||0,lastChar:_||k,bbox:y.getArray("FontBBox"),ascent:y.get("Ascent"),descent:y.get("Descent"),xHeight:y.get("XHeight"),capHeight:y.get("CapHeight"),flags:y.get("Flags"),italicAngle:y.get("ItalicAngle"),isType3Font:!1};if(!g){l.next=53;break}H=r.get("Encoding");(0,h.isName)(H)&&(C.cidEncoding=H.name);l.next=50;return u.CMapFactory.create({encoding:H,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});case 50:z=l.sent;C.cMap=z;C.vertical=C.cMap.vertical;case 53:return l.abrupt("return",this.extractDataStructures(o,r,C).then((function(t){G.extractWidths(o,y,t);"Type3"===S&&(t.isType3Font=!0);return new m.Font(D.name,L,t)})));case 54:case"end":return l.stop()}}),_callee7,this,[[33,37]])}))),function translateFont(r){return t.apply(this,arguments)})}],[{key:"buildFontPaths",value:function buildFontPaths(t,r,o){function buildPath(r){t.renderer.hasBuiltPath(r)||o.send("commonobj",["".concat(t.loadedName,"_path_").concat(r),"FontPath",t.renderer.getPathJs(r)])}var l,c=_createForOfIteratorHelper(r);try{for(c.s();!(l=c.n()).done;){var u=l.value;buildPath(u.fontChar);var h=u.accent;h&&h.fontChar&&buildPath(h.fontChar)}}catch(t){c.e(t)}finally{c.f()}}},{key:"fallbackFontDict",get:function get(){var t=new h.Dict;t.set("BaseFont",h.Name.get("PDFJS-FallbackFont"));t.set("Type",h.Name.get("FallbackType"));t.set("Subtype",h.Name.get("FallbackType"));t.set("Encoding",h.Name.get("WinAnsiEncoding"));return(0,c.shadow)(this,"fallbackFontDict",t)}}]);var t,r,o,C,T,X;return PartialEvaluator}();r.PartialEvaluator=X;var W=function(){function TranslatedFont(t){var r=t.loadedName,o=t.font,l=t.dict,c=t.extraProperties,u=void 0!==c&&c;_classCallCheck(this,TranslatedFont);this.loadedName=r;this.font=o;this.dict=l;this._extraProperties=u;this.type3Loaded=null;this.type3Dependencies=o.isType3Font?new Set:null;this.sent=!1}_createClass(TranslatedFont,[{key:"send",value:function send(t){if(!this.sent){this.sent=!0;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)])}}},{key:"fallback",value:function fallback(t){if(this.font.data){this.font.disableFontFace=!0;var r=this.font.glyphCacheValues;X.buildFontPaths(this.font,r,t)}}},{key:"loadType3Data",value:function loadType3Data(t,r,o){var l=this;if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");var u=Object.create(t.options);u.ignoreErrors=!1;var h=t.clone(u);h.parsingType3Font=!0;var d,m=this.font,g=this.type3Dependencies,y=Promise.resolve(),v=this.dict.get("CharProcs"),S=this.dict.get("Resources")||r,k=Object.create(null),C=_createForOfIteratorHelper(v.getKeys());try{var w=function _loop2(){var t=d.value;y=y.then((function(){var r=v.get(t),u=new D.OperatorList;return h.getOperatorList({stream:r,task:o,resources:S,operatorList:u}).then((function(){u.fnArray[0]===c.OPS.setCharWidthAndBounds&&l._removeType3ColorOperators(u);k[t]=u.getIR();var r,o=_createForOfIteratorHelper(u.dependencies);try{for(o.s();!(r=o.n()).done;){var h=r.value;g.add(h)}}catch(t){o.e(t)}finally{o.f()}})).catch((function(r){(0,c.warn)('Type3 font resource "'.concat(t,'" is not available.'));var o=new D.OperatorList;k[t]=o.getIR()}))}))};for(C.s();!(d=C.n()).done;)w()}catch(t){C.e(t)}finally{C.f()}this.type3Loaded=y.then((function(){m.charProcOperatorList=k}));return this.type3Loaded}},{key:"_removeType3ColorOperators",value:function _removeType3ColorOperators(t){for(var r=1,o=t.length;r<o;){switch(t.fnArray[r]){case c.OPS.setStrokeColorSpace:case c.OPS.setFillColorSpace:case c.OPS.setStrokeColor:case c.OPS.setStrokeColorN:case c.OPS.setFillColor:case c.OPS.setFillColorN:case c.OPS.setStrokeGray:case c.OPS.setFillGray:case c.OPS.setStrokeRGBColor:case c.OPS.setFillRGBColor:case c.OPS.setStrokeCMYKColor:case c.OPS.setFillCMYKColor:case c.OPS.shadingFill:case c.OPS.setRenderingIntent:t.fnArray.splice(r,1);t.argsArray.splice(r,1);o--;continue;case c.OPS.setGState:for(var l=_slicedToArray(t.argsArray[r],1)[0],u=0,h=l.length;u<h;){switch(_slicedToArray(l[u],1)[0]){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":l.splice(u,1);h--;continue}u++}}r++}}}]);return TranslatedFont}(),H=function(){function StateManager(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new G;_classCallCheck(this,StateManager);this.state=t;this.stateStack=[]}_createClass(StateManager,[{key:"save",value:function save(){var t=this.state;this.stateStack.push(this.state);this.state=t.clone()}},{key:"restore",value:function restore(){var t=this.stateStack.pop();t&&(this.state=t)}},{key:"transform",value:function transform(t){this.state.ctm=c.Util.transform(this.state.ctm,t)}}]);return StateManager}(),z=function(){function TextState(){_classCallCheck(this,TextState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.font=null;this.fontMatrix=c.FONT_IDENTITY_MATRIX;this.textMatrix=c.IDENTITY_MATRIX.slice();this.textLineMatrix=c.IDENTITY_MATRIX.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}_createClass(TextState,[{key:"setTextMatrix",value:function setTextMatrix(t,r,o,l,c,u){var h=this.textMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=l;h[4]=c;h[5]=u}},{key:"setTextLineMatrix",value:function setTextLineMatrix(t,r,o,l,c,u){var h=this.textLineMatrix;h[0]=t;h[1]=r;h[2]=o;h[3]=l;h[4]=c;h[5]=u}},{key:"translateTextMatrix",value:function translateTextMatrix(t,r){var o=this.textMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{key:"translateTextLineMatrix",value:function translateTextLineMatrix(t,r){var o=this.textLineMatrix;o[4]=o[0]*t+o[2]*r+o[4];o[5]=o[1]*t+o[3]*r+o[5]}},{key:"calcTextLineMatrixAdvance",value:function calcTextLineMatrixAdvance(t,r,o,l,c,u){var h=this.font;if(!h)return null;var d=this.textLineMatrix;if(t!==d[0]||r!==d[1]||o!==d[2]||l!==d[3])return null;var m=c-d[4],g=u-d[5];if(h.vertical&&0!==m||!h.vertical&&0!==g)return null;var y,v,S=t*l-r*o;if(h.vertical){y=-g*o/S;v=g*t/S}else{y=m*l/S;v=-m*r/S}return{width:y,height:v,value:h.vertical?v:y}}},{key:"calcRenderMatrix",value:function calcRenderMatrix(t){var r=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return c.Util.transform(t,c.Util.transform(this.textMatrix,r))}},{key:"carriageReturn",value:function carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}},{key:"clone",value:function clone(){var clone=Object.create(this);clone.textMatrix=this.textMatrix.slice();clone.textLineMatrix=this.textLineMatrix.slice();clone.fontMatrix=this.fontMatrix.slice();return clone}}]);return TextState}(),G=function(){function EvalState(){_classCallCheck(this,EvalState);this.ctm=new Float32Array(c.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=c.TextRenderingMode.FILL;this.fillColorSpace=O.ColorSpace.singletons.gray;this.strokeColorSpace=O.ColorSpace.singletons.gray}_createClass(EvalState,[{key:"clone",value:function clone(){return Object.create(this)}}]);return EvalState}(),V=function(){function EvaluatorPreprocessor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new H;_classCallCheck(this,EvaluatorPreprocessor);this.parser=new C.Parser({lexer:new C.Lexer(t,EvaluatorPreprocessor.opMap),xref:r});this.stateManager=o;this.nonProcessedArgs=[];this._numInvalidPathOPS=0}_createClass(EvaluatorPreprocessor,[{key:"savedStatesDepth",get:function get(){return this.stateManager.stateStack.length}},{key:"read",value:function read(t){for(var r=t.args;;){var o=this.parser.getObj();if(o instanceof h.Cmd){var l=o.cmd,u=EvaluatorPreprocessor.opMap[l];if(!u){(0,c.warn)('Unknown command "'.concat(l,'".'));continue}var d=u.id,m=u.numArgs,g=null!==r?r.length:0;if(u.variableArgs)g>m&&(0,c.info)("Command ".concat(l,": expected [0, ").concat(m,"] args, ")+"but received ".concat(g," args."));else{if(g!==m){for(var y=this.nonProcessedArgs;g>m;){y.push(r.shift());g--}for(;g<m&&0!==y.length;){null===r&&(r=[]);r.unshift(y.pop());g++}}if(g<m){var v="command ".concat(l,": expected ").concat(m," args, ")+"but received ".concat(g," args.");if(d>=c.OPS.moveTo&&d<=c.OPS.endPath&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new c.FormatError("Invalid ".concat(v));(0,c.warn)("Skipping ".concat(v));null!==r&&(r.length=0);continue}}this.preprocessCommand(d,r);t.fn=d;t.args=r;return!0}if(o===h.EOF)return!1;if(null!==o){null===r&&(r=[]);r.push(o);if(r.length>33)throw new c.FormatError("Too many arguments")}}}},{key:"preprocessCommand",value:function preprocessCommand(t,r){switch(0|t){case c.OPS.save:this.stateManager.save();break;case c.OPS.restore:this.stateManager.restore();break;case c.OPS.transform:this.stateManager.transform(r)}}}],[{key:"opMap",get:function get(){var t=(0,T.getLookupTableFactory)((function(t){t.w={id:c.OPS.setLineWidth,numArgs:1,variableArgs:!1};t.J={id:c.OPS.setLineCap,numArgs:1,variableArgs:!1};t.j={id:c.OPS.setLineJoin,numArgs:1,variableArgs:!1};t.M={id:c.OPS.setMiterLimit,numArgs:1,variableArgs:!1};t.d={id:c.OPS.setDash,numArgs:2,variableArgs:!1};t.ri={id:c.OPS.setRenderingIntent,numArgs:1,variableArgs:!1};t.i={id:c.OPS.setFlatness,numArgs:1,variableArgs:!1};t.gs={id:c.OPS.setGState,numArgs:1,variableArgs:!1};t.q={id:c.OPS.save,numArgs:0,variableArgs:!1};t.Q={id:c.OPS.restore,numArgs:0,variableArgs:!1};t.cm={id:c.OPS.transform,numArgs:6,variableArgs:!1};t.m={id:c.OPS.moveTo,numArgs:2,variableArgs:!1};t.l={id:c.OPS.lineTo,numArgs:2,variableArgs:!1};t.c={id:c.OPS.curveTo,numArgs:6,variableArgs:!1};t.v={id:c.OPS.curveTo2,numArgs:4,variableArgs:!1};t.y={id:c.OPS.curveTo3,numArgs:4,variableArgs:!1};t.h={id:c.OPS.closePath,numArgs:0,variableArgs:!1};t.re={id:c.OPS.rectangle,numArgs:4,variableArgs:!1};t.S={id:c.OPS.stroke,numArgs:0,variableArgs:!1};t.s={id:c.OPS.closeStroke,numArgs:0,variableArgs:!1};t.f={id:c.OPS.fill,numArgs:0,variableArgs:!1};t.F={id:c.OPS.fill,numArgs:0,variableArgs:!1};t["f*"]={id:c.OPS.eoFill,numArgs:0,variableArgs:!1};t.B={id:c.OPS.fillStroke,numArgs:0,variableArgs:!1};t["B*"]={id:c.OPS.eoFillStroke,numArgs:0,variableArgs:!1};t.b={id:c.OPS.closeFillStroke,numArgs:0,variableArgs:!1};t["b*"]={id:c.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1};t.n={id:c.OPS.endPath,numArgs:0,variableArgs:!1};t.W={id:c.OPS.clip,numArgs:0,variableArgs:!1};t["W*"]={id:c.OPS.eoClip,numArgs:0,variableArgs:!1};t.BT={id:c.OPS.beginText,numArgs:0,variableArgs:!1};t.ET={id:c.OPS.endText,numArgs:0,variableArgs:!1};t.Tc={id:c.OPS.setCharSpacing,numArgs:1,variableArgs:!1};t.Tw={id:c.OPS.setWordSpacing,numArgs:1,variableArgs:!1};t.Tz={id:c.OPS.setHScale,numArgs:1,variableArgs:!1};t.TL={id:c.OPS.setLeading,numArgs:1,variableArgs:!1};t.Tf={id:c.OPS.setFont,numArgs:2,variableArgs:!1};t.Tr={id:c.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1};t.Ts={id:c.OPS.setTextRise,numArgs:1,variableArgs:!1};t.Td={id:c.OPS.moveText,numArgs:2,variableArgs:!1};t.TD={id:c.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1};t.Tm={id:c.OPS.setTextMatrix,numArgs:6,variableArgs:!1};t["T*"]={id:c.OPS.nextLine,numArgs:0,variableArgs:!1};t.Tj={id:c.OPS.showText,numArgs:1,variableArgs:!1};t.TJ={id:c.OPS.showSpacedText,numArgs:1,variableArgs:!1};t["'"]={id:c.OPS.nextLineShowText,numArgs:1,variableArgs:!1};t['"']={id:c.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1};t.d0={id:c.OPS.setCharWidth,numArgs:2,variableArgs:!1};t.d1={id:c.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1};t.CS={id:c.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1};t.cs={id:c.OPS.setFillColorSpace,numArgs:1,variableArgs:!1};t.SC={id:c.OPS.setStrokeColor,numArgs:4,variableArgs:!0};t.SCN={id:c.OPS.setStrokeColorN,numArgs:33,variableArgs:!0};t.sc={id:c.OPS.setFillColor,numArgs:4,variableArgs:!0};t.scn={id:c.OPS.setFillColorN,numArgs:33,variableArgs:!0};t.G={id:c.OPS.setStrokeGray,numArgs:1,variableArgs:!1};t.g={id:c.OPS.setFillGray,numArgs:1,variableArgs:!1};t.RG={id:c.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1};t.rg={id:c.OPS.setFillRGBColor,numArgs:3,variableArgs:!1};t.K={id:c.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1};t.k={id:c.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1};t.sh={id:c.OPS.shadingFill,numArgs:1,variableArgs:!1};t.BI={id:c.OPS.beginInlineImage,numArgs:0,variableArgs:!1};t.ID={id:c.OPS.beginImageData,numArgs:0,variableArgs:!1};t.EI={id:c.OPS.endInlineImage,numArgs:1,variableArgs:!1};t.Do={id:c.OPS.paintXObject,numArgs:1,variableArgs:!1};t.MP={id:c.OPS.markPoint,numArgs:1,variableArgs:!1};t.DP={id:c.OPS.markPointProps,numArgs:2,variableArgs:!1};t.BMC={id:c.OPS.beginMarkedContent,numArgs:1,variableArgs:!1};t.BDC={id:c.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1};t.EMC={id:c.OPS.endMarkedContent,numArgs:0,variableArgs:!1};t.BX={id:c.OPS.beginCompat,numArgs:0,variableArgs:!1};t.EX={id:c.OPS.endCompat,numArgs:0,variableArgs:!1};t.BM=null;t.BD=null;t.true=null;t.fa=null;t.fal=null;t.fals=null;t.false=null;t.nu=null;t.nul=null;t.null=null}));return(0,c.shadow)(this,"opMap",t())}},{key:"MAX_INVALID_PATH_OPS",get:function get(){return(0,c.shadow)(this,"MAX_INVALID_PATH_OPS",20)}}]);return EvaluatorPreprocessor}();r.EvaluatorPreprocessor=V},(t,r,o)=>{"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.IdentityCMap=r.CMapFactory=r.CMap=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(131),d=o(128),m=o(132);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var g=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],y=Math.pow(2,24)-1,v=function(){function CMap(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,CMap);this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=t}_createClass(CMap,[{key:"addCodespaceRange",value:function addCodespaceRange(t,r,o){this.codespaceRanges[t-1].push(r,o);this.numCodespaceRanges++}},{key:"mapCidRange",value:function mapCidRange(t,r,o){if(r-t>y)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;t<=r;)this._map[t++]=o++}},{key:"mapBfRange",value:function mapBfRange(t,r,o){if(r-t>y)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var l=o.length-1;t<=r;){this._map[t++]=o;o=o.substring(0,l)+String.fromCharCode(o.charCodeAt(l)+1)}}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){if(r-t>y)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var l=o.length,c=0;t<=r&&c<l;){this._map[t]=o[c++];++t}}},{key:"mapOne",value:function mapOne(t,r){this._map[t]=r}},{key:"lookup",value:function lookup(t){return this._map[t]}},{key:"contains",value:function contains(t){return void 0!==this._map[t]}},{key:"forEach",value:function forEach(t){var r=this._map,o=r.length;if(o<=65536)for(var l=0;l<o;l++)void 0!==r[l]&&t(l,r[l]);else for(var c in r)t(c,r[c])}},{key:"charCodeOf",value:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1}},{key:"getMap",value:function getMap(){return this._map}},{key:"readCharCode",value:function readCharCode(t,r,o){for(var l=0,c=this.codespaceRanges,u=0,h=c.length;u<h;u++){l=(l<<8|t.charCodeAt(r+u))>>>0;for(var d=c[u],m=0,g=d.length;m<g;){var y=d[m++],v=d[m++];if(l>=y&&l<=v){o.charcode=l;o.length=u+1;return}}}o.charcode=0;o.length=1}},{key:"getCharCodeLength",value:function getCharCodeLength(t){for(var r=this.codespaceRanges,o=0,l=r.length;o<l;o++)for(var c=r[o],u=0,h=c.length;u<h;){var d=c[u++],m=c[u++];if(t>=d&&t<=m)return o+1}return 1}},{key:"length",get:function get(){return this._map.length}},{key:"isIdentityCMap",get:function get(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var t=0;t<65536;t++)if(this._map[t]!==t)return!1;return!0}}]);return CMap}();r.CMap=v;var S=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)}(IdentityCMap,t);var r=_createSuper(IdentityCMap);function IdentityCMap(t,o){var l;_classCallCheck(this,IdentityCMap);(l=r.call(this)).vertical=t;l.addCodespaceRange(o,0,65535);return l}_createClass(IdentityCMap,[{key:"mapCidRange",value:function mapCidRange(t,r,o){(0,c.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function mapBfRange(t,r,o){(0,c.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function mapBfRangeToArray(t,r,o){(0,c.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function mapOne(t,r){(0,c.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function lookup(t){return Number.isInteger(t)&&t<=65535?t:void 0}},{key:"contains",value:function contains(t){return Number.isInteger(t)&&t<=65535}},{key:"forEach",value:function forEach(t){for(var r=0;r<=65535;r++)t(r,r)}},{key:"charCodeOf",value:function charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}},{key:"getMap",value:function getMap(){for(var t=new Array(65536),r=0;r<=65535;r++)t[r]=r;return t}},{key:"length",get:function get(){return 65536}},{key:"isIdentityCMap",get:function get(){(0,c.unreachable)("should not access .isIdentityCMap")}}]);return IdentityCMap}(v);r.IdentityCMap=S;var k=function BinaryCMapReaderClosure(){function hexToInt(t,r){for(var o=0,l=0;l<=r;l++)o=o<<8|t[l];return o>>>0}function hexToStr(t,r){return 1===r?String.fromCharCode(t[0],t[1]):3===r?String.fromCharCode(t[0],t[1],t[2],t[3]):String.fromCharCode.apply(null,t.subarray(0,r+1))}function addHex(t,r,o){for(var l=0,c=o;c>=0;c--){l+=t[c]+r[c];t[c]=255&l;l>>=8}}function incHex(t,r){for(var o=1,l=r;l>=0&&o>0;l--){o+=t[l];t[l]=255&o;o>>=8}}var t=16,r=function(){function BinaryCMapStream(t){_classCallCheck(this,BinaryCMapStream);this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(19)}_createClass(BinaryCMapStream,[{key:"readByte",value:function readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}},{key:"readNumber",value:function readNumber(){var t,r=0;do{var o=this.readByte();if(o<0)throw new c.FormatError("unexpected EOF in bcmap");t=!(128&o);r=r<<7|127&o}while(!t);return r}},{key:"readSigned",value:function readSigned(){var t=this.readNumber();return 1&t?~(t>>>1):t>>>1}},{key:"readHex",value:function readHex(t,r){t.set(this.buffer.subarray(this.pos,this.pos+r+1));this.pos+=r+1}},{key:"readHexNumber",value:function readHexNumber(t,r){var o,l=this.tmpBuf,u=0;do{var h=this.readByte();if(h<0)throw new c.FormatError("unexpected EOF in bcmap");o=!(128&h);l[u++]=127&h}while(!o);for(var d=r,m=0,g=0;d>=0;){for(;g<8&&l.length>0;){m=l[--u]<<g|m;g+=7}t[d]=255&m;d--;m>>=8;g-=8}}},{key:"readHexSigned",value:function readHexSigned(t,r){this.readHexNumber(t,r);for(var o=1&t[r]?255:0,l=0,c=0;c<=r;c++){l=(1&l)<<8|t[c];t[c]=l>>1^o}}},{key:"readString",value:function readString(){for(var t=this.readNumber(),r="",o=0;o<t;o++)r+=String.fromCharCode(this.readNumber());return r}}]);return BinaryCMapStream}();return function(){function BinaryCMapReader(){_classCallCheck(this,BinaryCMapReader)}_createClass(BinaryCMapReader,[{key:"process",value:(o=_asyncToGenerator(l.default.mark((function _callee(o,c,u){var h,d,m,g,y,v,S,k,C,w,_,O,x,T,R,E;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:h=new r(o);d=h.readByte();c.vertical=!!(1&d);m=null;g=new Uint8Array(t);y=new Uint8Array(t);v=new Uint8Array(t);S=new Uint8Array(t);k=new Uint8Array(t);case 9:if(!((w=h.readByte())>=0)){l.next=68;break}if(7!=(_=w>>5)){l.next=20;break}l.t0=31&w;l.next=0===l.t0?15:1===l.t0?17:19;break;case 15:h.readString();return l.abrupt("break",19);case 17:m=h.readString();return l.abrupt("break",19);case 19:return l.abrupt("continue",9);case 20:O=!!(16&w);if(!(1+(x=15&w)>t)){l.next=24;break}throw new Error("BinaryCMapReader.process: Invalid dataSize.");case 24:T=1;R=h.readNumber();l.t1=_;l.next=0===l.t1?29:1===l.t1?35:2===l.t1?41:3===l.t1?46:4===l.t1?53:5===l.t1?58:65;break;case 29:h.readHex(g,x);h.readHexNumber(y,x);addHex(y,g,x);c.addCodespaceRange(x+1,hexToInt(g,x),hexToInt(y,x));for(E=1;E<R;E++){incHex(y,x);h.readHexNumber(g,x);addHex(g,y,x);h.readHexNumber(y,x);addHex(y,g,x);c.addCodespaceRange(x+1,hexToInt(g,x),hexToInt(y,x))}return l.abrupt("break",66);case 35:h.readHex(g,x);h.readHexNumber(y,x);addHex(y,g,x);h.readNumber();for(E=1;E<R;E++){incHex(y,x);h.readHexNumber(g,x);addHex(g,y,x);h.readHexNumber(y,x);addHex(y,g,x);h.readNumber()}return l.abrupt("break",66);case 41:h.readHex(v,x);C=h.readNumber();c.mapOne(hexToInt(v,x),C);for(E=1;E<R;E++){incHex(v,x);if(!O){h.readHexNumber(k,x);addHex(v,k,x)}C=h.readSigned()+(C+1);c.mapOne(hexToInt(v,x),C)}return l.abrupt("break",66);case 46:h.readHex(g,x);h.readHexNumber(y,x);addHex(y,g,x);C=h.readNumber();c.mapCidRange(hexToInt(g,x),hexToInt(y,x),C);for(E=1;E<R;E++){incHex(y,x);if(O)g.set(y);else{h.readHexNumber(g,x);addHex(g,y,x)}h.readHexNumber(y,x);addHex(y,g,x);C=h.readNumber();c.mapCidRange(hexToInt(g,x),hexToInt(y,x),C)}return l.abrupt("break",66);case 53:h.readHex(v,T);h.readHex(S,x);c.mapOne(hexToInt(v,T),hexToStr(S,x));for(E=1;E<R;E++){incHex(v,T);if(!O){h.readHexNumber(k,T);addHex(v,k,T)}incHex(S,x);h.readHexSigned(k,x);addHex(S,k,x);c.mapOne(hexToInt(v,T),hexToStr(S,x))}return l.abrupt("break",66);case 58:h.readHex(g,T);h.readHexNumber(y,T);addHex(y,g,T);h.readHex(S,x);c.mapBfRange(hexToInt(g,T),hexToInt(y,T),hexToStr(S,x));for(E=1;E<R;E++){incHex(y,T);if(O)g.set(y);else{h.readHexNumber(g,T);addHex(g,y,T)}h.readHexNumber(y,T);addHex(y,g,T);h.readHex(S,x);c.mapBfRange(hexToInt(g,T),hexToInt(y,T),hexToStr(S,x))}return l.abrupt("break",66);case 65:throw new Error("BinaryCMapReader.process - unknown type: ".concat(_));case 66:l.next=9;break;case 68:if(!m){l.next=70;break}return l.abrupt("return",u(m));case 70:return l.abrupt("return",c);case 71:case"end":return l.stop()}}),_callee)}))),function process(t,r,l){return o.apply(this,arguments)})}]);var o;return BinaryCMapReader}()}(),C=function CMapFactoryClosure(){function strToInt(t){for(var r=0,o=0;o<t.length;o++)r=r<<8|t.charCodeAt(o);return r>>>0}function expectString(t){if(!(0,c.isString)(t))throw new c.FormatError("Malformed CMap: expected string.")}function expectInt(t){if(!Number.isInteger(t))throw new c.FormatError("Malformed CMap: expected int.")}function parseBfChar(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endbfchar"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var c=o;t.mapOne(l,c)}}function parseBfRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endbfrange"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var h=strToInt(o);o=r.getObj();if(Number.isInteger(o)||(0,c.isString)(o)){var d=Number.isInteger(o)?String.fromCharCode(o):o;t.mapBfRange(l,h,d)}else{if(!(0,u.isCmd)(o,"["))break;o=r.getObj();for(var m=[];!(0,u.isCmd)(o,"]")&&!(0,u.isEOF)(o);){m.push(o);o=r.getObj()}t.mapBfRangeToArray(l,h,m)}}throw new c.FormatError("Invalid bf range.")}function parseCidChar(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcidchar"))return;expectString(o);var l=strToInt(o);expectInt(o=r.getObj());var c=o;t.mapOne(l,c)}}function parseCidRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcidrange"))return;expectString(o);var l=strToInt(o);expectString(o=r.getObj());var c=strToInt(o);expectInt(o=r.getObj());var h=o;t.mapCidRange(l,c,h)}}function parseCodespaceRange(t,r){for(;;){var o=r.getObj();if((0,u.isEOF)(o))break;if((0,u.isCmd)(o,"endcodespacerange"))return;if(!(0,c.isString)(o))break;var l=strToInt(o);o=r.getObj();if(!(0,c.isString)(o))break;var h=strToInt(o);t.addCodespaceRange(o.length,l,h)}throw new c.FormatError("Invalid codespace range.")}function parseWMode(t,r){var o=r.getObj();Number.isInteger(o)&&(t.vertical=!!o)}function parseCMapName(t,r){var o=r.getObj();(0,u.isName)(o)&&(0,c.isString)(o.name)&&(t.name=o.name)}function parseCMap(t,r,o,l){return _parseCMap.apply(this,arguments)}function _parseCMap(){return(_parseCMap=_asyncToGenerator(l.default.mark((function _callee3(t,r,o,h){var m,g,y;return l.default.wrap((function _callee3$(l){for(;;)switch(l.prev=l.next){case 0:0;l.prev=1;y=r.getObj();if(!(0,u.isEOF)(y)){l.next=7;break}return l.abrupt("break",39);case 7:if(!(0,u.isName)(y)){l.next=12;break}"WMode"===y.name?parseWMode(t,r):"CMapName"===y.name&&parseCMapName(t,r);m=y;l.next=29;break;case 12:if(!(0,u.isCmd)(y)){l.next=29;break}l.t0=y.cmd;l.next="endcmap"===l.t0?16:"usecmap"===l.t0?17:"begincodespacerange"===l.t0?19:"beginbfchar"===l.t0?21:"begincidchar"===l.t0?23:"beginbfrange"===l.t0?25:"begincidrange"===l.t0?27:29;break;case 16:return l.abrupt("break",39);case 17:(0,u.isName)(m)&&(g=m.name);return l.abrupt("break",29);case 19:parseCodespaceRange(t,r);return l.abrupt("break",29);case 21:parseBfChar(t,r);return l.abrupt("break",29);case 23:parseCidChar(t,r);return l.abrupt("break",29);case 25:parseBfRange(t,r);return l.abrupt("break",29);case 27:parseCidRange(t,r);return l.abrupt("break",29);case 29:l.next=37;break;case 31:l.prev=31;l.t1=l.catch(1);if(!(l.t1 instanceof d.MissingDataException)){l.next=35;break}throw l.t1;case 35:(0,c.warn)("Invalid cMap data: "+l.t1);return l.abrupt("continue",0);case 37:l.next=0;break;case 39:!h&&g&&(h=g);if(!h){l.next=42;break}return l.abrupt("return",extendCMap(t,o,h));case 42:return l.abrupt("return",t);case 43:case"end":return l.stop()}}),_callee3,null,[[1,31]])})))).apply(this,arguments)}function extendCMap(t,r,o){return _extendCMap.apply(this,arguments)}function _extendCMap(){return(_extendCMap=_asyncToGenerator(l.default.mark((function _callee4(t,r,o){var c,u;return l.default.wrap((function _callee4$(l){for(;;)switch(l.prev=l.next){case 0:l.next=2;return createBuiltInCMap(o,r);case 2:t.useCMap=l.sent;if(0===t.numCodespaceRanges){c=t.useCMap.codespaceRanges;for(u=0;u<c.length;u++)t.codespaceRanges[u]=c[u].slice();t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(r,o){t.contains(r)||t.mapOne(r,t.useCMap.lookup(r))}));return l.abrupt("return",t);case 6:case"end":return l.stop()}}),_callee4)})))).apply(this,arguments)}function createBuiltInCMap(t,r){return _createBuiltInCMap.apply(this,arguments)}function _createBuiltInCMap(){return(_createBuiltInCMap=_asyncToGenerator(l.default.mark((function _callee5(t,r){var o,u,d,y,C;return l.default.wrap((function _callee5$(l){for(;;)switch(l.prev=l.next){case 0:if("Identity-H"!==t){l.next=4;break}return l.abrupt("return",new S(!1,2));case 4:if("Identity-V"!==t){l.next=6;break}return l.abrupt("return",new S(!0,2));case 6:if(g.includes(t)){l.next=8;break}throw new Error("Unknown CMap name: "+t);case 8:if(r){l.next=10;break}throw new Error("Built-in CMap parameters are not provided.");case 10:l.next=12;return r(t);case 12:o=l.sent;u=o.cMapData;d=o.compressionType;y=new v(!0);if(d!==c.CMapCompressionType.BINARY){l.next=18;break}return l.abrupt("return",(new k).process(u,y,(function(t){return extendCMap(y,r,t)})));case 18:if(d!==c.CMapCompressionType.NONE){l.next=21;break}C=new h.Lexer(new m.Stream(u));return l.abrupt("return",parseCMap(y,C,r,null));case 21:throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.");case 22:case"end":return l.stop()}}),_callee5)})))).apply(this,arguments)}return{create:function create(t){return _asyncToGenerator(l.default.mark((function _callee2(){var r,o,c,d;return l.default.wrap((function _callee2$(l){for(;;)switch(l.prev=l.next){case 0:r=t.encoding;o=t.fetchBuiltInCMap;c=t.useCMap;if(!(0,u.isName)(r)){l.next=7;break}return l.abrupt("return",createBuiltInCMap(r.name,o));case 7:if(!(0,u.isStream)(r)){l.next=14;break}l.next=10;return parseCMap(new v,new h.Lexer(r),o,c);case 10:if(!(d=l.sent).isIdentityCMap){l.next=13;break}return l.abrupt("return",createBuiltInCMap(d.name,o));case 13:return l.abrupt("return",d);case 14:throw new Error("Encoding required.");case 15:case"end":return l.stop()}}),_callee2)})))()}}}();r.CMapFactory=C},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getFontType=getFontType;r.ToUnicodeMap=r.SEAC_ANALYSIS_ENABLED=r.IdentityToUnicodeMap=r.FontFlags=r.Font=r.ErrorFont=void 0;var l=o(4),c=o(152),u=o(155),h=o(154),d=o(156),m=o(157),g=o(128),y=o(158),v=o(150),S=o(132),k=o(159);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}var C=[[57344,63743],[1048576,1114109]],w=1e3,_=!0;r.SEAC_ANALYSIS_ENABLED=_;var O=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],x=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"],T={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};r.FontFlags=T;var R=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];function adjustWidths(t){if(t.fontMatrix&&t.fontMatrix[0]!==l.FONT_IDENTITY_MATRIX[0]){var r=.001/t.fontMatrix[0],o=t.widths;for(var c in o)o[c]*=r;t.defaultWidth*=r}}function getFontType(t,r){switch(t){case"Type1":return"Type1C"===r?l.FontType.TYPE1C:l.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===r?l.FontType.CIDFONTTYPE0C:l.FontType.CIDFONTTYPE0;case"OpenType":return l.FontType.OPENTYPE;case"TrueType":return l.FontType.TRUETYPE;case"CIDFontType2":return l.FontType.CIDFONTTYPE2;case"MMType1":return l.FontType.MMTYPE1;case"Type0":return l.FontType.TYPE0;default:return l.FontType.UNKNOWN}}function recoverGlyphName(t,r){if(void 0!==r[t])return t;var o=(0,m.getUnicodeForGlyph)(t,r);if(-1!==o)for(var c in r)if(r[c]===o)return c;(0,l.info)("Unable to recover a standard glyph name for: "+t);return t}var E=function GlyphClosure(){function Glyph(t,r,o,l,c,u,h,d){this.fontChar=t;this.unicode=r;this.accent=o;this.width=l;this.vmetric=c;this.operatorListId=u;this.isSpace=h;this.isInFont=d}Glyph.prototype.matchesForCache=function(t,r,o,l,c,u,h,d){return this.fontChar===t&&this.unicode===r&&this.accent===o&&this.width===l&&this.vmetric===c&&this.operatorListId===u&&this.isSpace===h&&this.isInFont===d};return Glyph}(),D=function ToUnicodeMapClosure(){function ToUnicodeMap(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=t}ToUnicodeMap.prototype={get length(){return this._map.length},forEach:function forEach(t){for(var r in this._map)t(r,this._map[r].charCodeAt(0))},has:function has(t){return void 0!==this._map[t]},get:function get(t){return this._map[t]},charCodeOf:function charCodeOf(t){var r=this._map;if(r.length<=65536)return r.indexOf(t);for(var o in r)if(r[o]===t)return 0|o;return-1},amend:function amend(t){for(var r in t)this._map[r]=t[r]}};return ToUnicodeMap}();r.ToUnicodeMap=D;var j=function IdentityToUnicodeMapClosure(){function IdentityToUnicodeMap(t,r){this.firstChar=t;this.lastChar=r}IdentityToUnicodeMap.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function forEach(t){for(var r=this.firstChar,o=this.lastChar;r<=o;r++)t(r,r)},has:function has(t){return this.firstChar<=t&&t<=this.lastChar},get:function get(t){if(this.firstChar<=t&&t<=this.lastChar)return String.fromCharCode(t)},charCodeOf:function charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1},amend:function amend(t){(0,l.unreachable)("Should not call amend()")}};return IdentityToUnicodeMap}();r.IdentityToUnicodeMap=j;var M=function OpenTypeFileBuilderClosure(){function writeInt16(t,r,o){t[r]=o>>8&255;t[r+1]=255&o}function writeInt32(t,r,o){t[r]=o>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}function writeData(t,r,o){var l,c;if(o instanceof Uint8Array)t.set(o,r);else if("string"==typeof o)for(l=0,c=o.length;l<c;l++)t[r++]=255&o.charCodeAt(l);else for(l=0,c=o.length;l<c;l++)t[r++]=255&o[l]}function OpenTypeFileBuilder(t){this.sfnt=t;this.tables=Object.create(null)}OpenTypeFileBuilder.getSearchParams=function OpenTypeFileBuilder_getSearchParams(t,r){for(var o=1,l=0;(o^t)>o;){o<<=1;l++}var c=o*r;return{range:c,entry:l,rangeShift:r*t-c}};OpenTypeFileBuilder.prototype={toArray:function OpenTypeFileBuilder_toArray(){var t=this.sfnt,r=this.tables,o=Object.keys(r);o.sort();var c,u,h,d,m,y=o.length,v=12+16*y,S=[v];for(c=0;c<y;c++){v+=((d=r[o[c]]).length+3&-4)>>>0;S.push(v)}var k=new Uint8Array(v);for(c=0;c<y;c++){d=r[o[c]];writeData(k,S[c],d)}"true"===t&&(t=(0,l.string32)(65536));k[0]=255&t.charCodeAt(0);k[1]=255&t.charCodeAt(1);k[2]=255&t.charCodeAt(2);k[3]=255&t.charCodeAt(3);writeInt16(k,4,y);var C=OpenTypeFileBuilder.getSearchParams(y,16);writeInt16(k,6,C.range);writeInt16(k,8,C.entry);writeInt16(k,10,C.rangeShift);v=12;for(c=0;c<y;c++){m=o[c];k[v]=255&m.charCodeAt(0);k[v+1]=255&m.charCodeAt(1);k[v+2]=255&m.charCodeAt(2);k[v+3]=255&m.charCodeAt(3);var w=0;for(u=S[c],h=S[c+1];u<h;u+=4){w=w+(0,g.readUint32)(k,u)>>>0}writeInt32(k,v+4,w);writeInt32(k,v+8,S[c]);writeInt32(k,v+12,r[m].length);v+=16}return k},addTable:function OpenTypeFileBuilder_addTable(t,r){if(t in this.tables)throw new Error("Table "+t+" already exists");this.tables[t]=r}};return OpenTypeFileBuilder}(),N=function FontClosure(){function Font(t,r,o){var c;this.name=t;this.loadedName=o.loadedName;this.isType3Font=o.isType3Font;this.missingFile=!1;this.glyphCache=Object.create(null);this.isSerifFont=!!(o.flags&T.Serif);this.isSymbolicFont=!!(o.flags&T.Symbolic);this.isMonospace=!!(o.flags&T.FixedPitch);var u=o.type,h=o.subtype;this.type=u;this.subtype=h;var d="sans-serif";this.isMonospace?d="monospace":this.isSerifFont&&(d="serif");this.fallbackName=d;this.differences=o.differences;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.composite=o.composite;this.cMap=o.cMap;this.capHeight=o.capHeight/w;this.ascent=o.ascent/w;this.descent=o.descent/w;this.fontMatrix=o.fontMatrix;this.bbox=o.bbox;this.defaultEncoding=o.defaultEncoding;this.toUnicode=o.toUnicode;this.fallbackToUnicode=o.fallbackToUnicode||new D;this.toFontChar=[];if("Type3"!==o.type){this.cidEncoding=o.cidEncoding;this.vertical=!!o.vertical;if(this.vertical){this.vmetrics=o.vmetrics;this.defaultVMetrics=o.defaultVMetrics}if(r&&!r.isEmpty){var m=_slicedToArray(function getFontFileType(t,r){var o,c,u=r.type,h=r.subtype,d=r.composite;if(function isTrueTypeFile(t){var r=t.peekBytes(4);return 65536===(0,g.readUint32)(r,0)||"true"===(0,l.bytesToString)(r)}(t)||isTrueTypeCollectionFile(t))o=d?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(t){var r=t.peekBytes(4);return"OTTO"===(0,l.bytesToString)(r)}(t))o=d?"CIDFontType2":"OpenType";else if(function isType1File(t){var r=t.peekBytes(2);if(37===r[0]&&33===r[1])return!0;if(128===r[0]&&1===r[1])return!0;return!1}(t))o=d?"CIDFontType0":"MMType1"===u?"MMType1":"Type1";else if(function isCFFFile(t){var r=t.peekBytes(4);if(r[0]>=1&&r[3]>=1&&r[3]<=4)return!0;return!1}(t))if(d){o="CIDFontType0";c="CIDFontType0C"}else{o="MMType1"===u?"MMType1":"Type1";c="Type1C"}else{(0,l.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");o=u;c=h}return[o,c]}(r,o),2);u=m[0];h=m[1];u===this.type&&h===this.subtype||(0,l.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(u,"/").concat(h,"."));try{var y;switch(u){case"MMType1":(0,l.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var v="Type1C"===h||"CIDFontType0C"===h?new q(r,o):new U(t,r,o);adjustWidths(o);y=this.convert(t,v,o);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";y=this.checkAndRepair(t,r,o);if(this.isOpenType){adjustWidths(o);u="OpenType"}break;default:throw new l.FormatError("Font ".concat(u," is not supported"))}}catch(t){(0,l.warn)(t);this.fallbackToSystemFont(o);return}this.data=y;this.fontType=getFontType(u,h);this.fontMatrix=o.fontMatrix;this.widths=o.widths;this.defaultWidth=o.defaultWidth;this.toUnicode=o.toUnicode;this.seacMap=o.seacMap}else{r&&(0,l.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")");this.fallbackToSystemFont(o)}}else{for(c=0;c<256;c++)this.toFontChar[c]=this.differences[c]||o.defaultEncoding[c];this.fontType=l.FontType.TYPE3}}function int16(t,r){return(t<<8)+r}function signedInt16(t,r){var o=(t<<8)+r;return 32768&o?o-65536:o}function string16(t){return String.fromCharCode(t>>8&255,255&t)}function safeString16(t){t>32767?t=32767:t<-32768&&(t=-32768);return String.fromCharCode(t>>8&255,255&t)}function isTrueTypeCollectionFile(t){var r=t.peekBytes(4);return"ttcf"===(0,l.bytesToString)(r)}function buildToFontChar(t,r,o){for(var l,c=[],u=0,h=t.length;u<h;u++)-1!==(l=(0,m.getUnicodeForGlyph)(t[u],r))&&(c[u]=l);for(var d in o)-1!==(l=(0,m.getUnicodeForGlyph)(o[d],r))&&(c[+d]=l);return c}function adjustMapping(t,r,o){var c=Object.create(null),u=[],h=0,d=C[h][0],m=C[h][1];for(var g in t){var y=t[g|=0];if(r(y)){if(d>m){if(++h>=C.length){(0,l.warn)("Ran out of space in font private use area.");break}d=C[h][0];m=C[h][1]}var v=d++;0===y&&(y=o);c[v]=y;u[g]=v}}return{toFontChar:u,charCodeToGlyphId:c,nextAvailableFontCharCode:d}}function createCmapTable(t,r){var o,c,u,h,d=function getRanges(t,r){var o=[];for(var l in t)t[l]>=r||o.push({fontCharCode:0|l,glyphId:t[l]});0===o.length&&o.push({fontCharCode:0,glyphId:0});o.sort((function fontGetRangesSort(t,r){return t.fontCharCode-r.fontCharCode}));for(var c=[],u=o.length,h=0;h<u;){var d=o[h].fontCharCode,m=[o[h].glyphId];++h;for(var g=d;h<u&&g+1===o[h].fontCharCode;){m.push(o[h].glyphId);++h;if(65535==++g)break}c.push([d,g,m])}return c}(t,r),m=d[d.length-1][1]>65535?2:1,g="\0\0"+string16(m)+"\0\0"+(0,l.string32)(4+8*m);for(o=d.length-1;o>=0&&!(d[o][0]<=65535);--o);var y=o+1;d[o][0]<65535&&65535===d[o][1]&&(d[o][1]=65534);var v,S,k,C,w=d[o][1]<65535?1:0,_=y+w,O=M.getSearchParams(_,2),x="",T="",R="",E="",D="",j=0;for(o=0,c=y;o<c;o++){S=(v=d[o])[0];k=v[1];x+=string16(S);T+=string16(k);var N=!0;for(u=1,h=(C=v[2]).length;u<h;++u)if(C[u]!==C[u-1]+1){N=!1;break}if(N){R+=string16(C[0]-S&65535);E+=string16(0)}else{var L=2*(_-o)+2*j;j+=k-S+1;R+=string16(0);E+=string16(L);for(u=0,h=C.length;u<h;++u)D+=string16(C[u])}}if(w>0){T+="ÿÿ";x+="ÿÿ";R+="\0";E+="\0\0"}var U="\0\0"+string16(2*_)+string16(O.range)+string16(O.entry)+string16(O.rangeShift)+T+"\0\0"+x+R+E+D,q="",X="";if(m>1){g+="\0\0\n"+(0,l.string32)(4+8*m+4+U.length);q="";for(o=0,c=d.length;o<c;o++){S=(v=d[o])[0];var W=(C=v[2])[0];for(u=1,h=C.length;u<h;++u)if(C[u]!==C[u-1]+1){k=v[0]+u-1;q+=(0,l.string32)(S)+(0,l.string32)(k)+(0,l.string32)(W);S=k+1;W=C[u]}q+=(0,l.string32)(S)+(0,l.string32)(v[1])+(0,l.string32)(W)}X="\0\f\0\0"+(0,l.string32)(q.length+16)+"\0\0\0\0"+(0,l.string32)(q.length/12)}return g+"\0"+string16(U.length+4)+U+X+q}function createOS2Table(t,r,o){o=o||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var c=0,u=0,h=0,d=0,g=null,y=0;if(r){for(var v in r){(g>(v|=0)||!g)&&(g=v);y<v&&(y=v);var S=(0,m.getUnicodeRangeFor)(v);if(S<32)c|=1<<S;else if(S<64)u|=1<<S-32;else if(S<96)h|=1<<S-64;else{if(!(S<123))throw new l.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");d|=1<<S-96}}y>65535&&(y=65535)}else{g=0;y=255}var k=t.bbox||[0,0,0,0],C=o.unitsPerEm||1/(t.fontMatrix||l.FONT_IDENTITY_MATRIX)[0],_=t.ascentScaled?1:C/w,O=o.ascent||Math.round(_*(t.ascent||k[3])),x=o.descent||Math.round(_*(t.descent||k[1]));x>0&&t.descent>0&&k[1]<0&&(x=-x);var T=o.yMax||O,R=-o.yMin||-x;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(t.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,l.string32)(c)+(0,l.string32)(u)+(0,l.string32)(h)+(0,l.string32)(d)+"*21*"+string16(t.italicAngle?1:0)+string16(g||t.firstChar)+string16(y||t.lastChar)+string16(O)+string16(x)+"\0d"+string16(T)+string16(R)+"\0\0\0\0\0\0\0\0"+string16(t.xHeight)+string16(t.capHeight)+string16(0)+string16(g||t.firstChar)+"\0"}function createPostTable(t){var r=Math.floor(t.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,l.string32)(r)+"\0\0\0\0"+(0,l.string32)(t.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function createNameTable(t,r){r||(r=[[],[]]);var o,l,c,u,h,d=[r[0][0]||"Original licence",r[0][1]||t,r[0][2]||"Unknown",r[0][3]||"uniqueID",r[0][4]||t,r[0][5]||"Version 0.11",r[0][6]||"",r[0][7]||"Unknown",r[0][8]||"Unknown",r[0][9]||"Unknown"],m=[];for(o=0,l=d.length;o<l;o++){var g=[];for(c=0,u=(h=r[1][o]||d[o]).length;c<u;c++)g.push(string16(h.charCodeAt(c)));m.push(g.join(""))}var y=[d,m],v=["\0","\0"],S=["\0\0","\0"],k=["\0\0","\t"],C=d.length*v.length,w="\0\0"+string16(C)+string16(12*C+6),_=0;for(o=0,l=v.length;o<l;o++){var O=y[o];for(c=0,u=O.length;c<u;c++){h=O[c];w+=v[o]+S[o]+k[o]+string16(c)+string16(h.length)+string16(_);_+=h.length}}return w+=d.join("")+m.join("")}Font.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var t=y.FontRendererFactory.create(this,_);return(0,l.shadow)(this,"renderer",t)},exportData:function exportData(){var t,r,o,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=l?[].concat(O,x):O,u=Object.create(null),h=_createForOfIteratorHelper(c);try{for(h.s();!(o=h.n()).done;)void 0!==(r=this[t=o.value])&&(u[t]=r)}catch(t){h.e(t)}finally{h.f()}return u},fallbackToSystemFont:function fallbackToSystemFont(t){var r=this;this.missingFile=!0;var o=this.name,c=this.type,g=this.subtype,y=o.replace(/[,_]/g,"-").replace(/\s/g,""),v=(0,d.getStdFontMap)(),S=(0,d.getNonStdFontMap)(),k=!!v[y],C=!(!S[y]||!v[S[y]]);y=v[y]||S[y]||y;this.bold=-1!==y.search(/bold/gi);this.italic=-1!==y.search(/oblique/gi)||-1!==y.search(/italic/gi);this.black=-1!==o.search(/Black/g);var w=-1!==o.search(/Narrow/g);this.remeasure=(!k||w)&&Object.keys(this.widths).length>0;if((k||C)&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var _=(0,d.getGlyphMapForStandardFonts)(),O=t.cidToGidMap,x=[];for(var T in _)x[+T]=_[T];if(/Arial-?Black/i.test(o)){var R=(0,d.getSupplementalGlyphMapForArialBlack)();for(var E in R)x[+E]=R[E]}else if(/Calibri/i.test(o)){var M=(0,d.getSupplementalGlyphMapForCalibri)();for(var N in M)x[+N]=M[N]}if(O)for(var L in x){var U=x[L];void 0!==O[U]&&(x[+L]=O[U])}this.toUnicode instanceof j||this.toUnicode.forEach((function(t,r){x[+t]=r}));this.toFontChar=x;this.toUnicode=new D(x)}else if(/Symbol/i.test(y))this.toFontChar=buildToFontChar(h.SymbolSetEncoding,(0,u.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(y)){/Wingdings/i.test(o)&&(0,l.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=buildToFontChar(h.ZapfDingbatsEncoding,(0,u.getDingbatsGlyphsUnicode)(),this.differences)}else if(k)this.toFontChar=buildToFontChar(this.defaultEncoding,(0,u.getGlyphsUnicode)(),this.differences);else{var q=(0,u.getGlyphsUnicode)(),X=[];this.toUnicode.forEach((function(t,o){if(!r.composite){var l=r.differences[t]||r.defaultEncoding[t],c=(0,m.getUnicodeForGlyph)(l,q);-1!==c&&(o=c)}X[+t]=o}));if(this.composite&&this.toUnicode instanceof j&&/Verdana/i.test(o)){var W=(0,d.getGlyphMapForStandardFonts)();for(var H in W)X[+H]=W[H]}this.toFontChar=X}this.loadedName=y.split("-")[0];this.fontType=getFontType(c,g)},checkAndRepair:function Font_checkAndRepair(t,r,o){var d=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(t,r){var o=Object.create(null);o["OS/2"]=null;o.cmap=null;o.head=null;o.hhea=null;o.hmtx=null;o.maxp=null;o.name=null;o.post=null;for(var l=0;l<r;l++){var c=readTableEntry(t);d.includes(c.tag)&&(0!==c.length&&(o[c.tag]=c))}return o}function readTableEntry(t){var r=(0,l.bytesToString)(t.getBytes(4)),o=t.getInt32()>>>0,c=t.getInt32()>>>0,u=t.getInt32()>>>0,h=t.pos;t.pos=t.start?t.start:0;t.skip(c);var d=t.getBytes(u);t.pos=h;if("head"===r){d[8]=d[9]=d[10]=d[11]=0;d[17]|=32}return{tag:r,checksum:o,length:u,offset:c,data:d}}function readOpenTypeHeader(t){return{version:(0,l.bytesToString)(t.getBytes(4)),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function sanitizeGlyph(t,r,o,l,c,u){var h={length:0,sizeOfInstructions:0};if(o-r<=12)return h;var d=t.subarray(r,o),m=signedInt16(d[0],d[1]);if(m<0){!function writeSignedInt16(t,r,o){t[r+1]=o;t[r]=o>>>8}(d,0,m=-1);l.set(d,c);h.length=d.length;return h}var g,y=10,v=0;for(g=0;g<m;g++){v=(d[y]<<8|d[y+1])+1;y+=2}var S=y,k=d[y]<<8|d[y+1];h.sizeOfInstructions=k;var C=y+=2+k,w=0;for(g=0;g<v;g++){var _=d[y++];192&_&&(d[y-1]=63&_);var O=2;2&_?O=1:16&_&&(O=0);var x=2;4&_?x=1:32&_&&(x=0);var T=O+x;w+=T;if(8&_){var R=d[y++];g+=R;w+=R*T}}if(0===w)return h;var E=y+w;if(E>d.length)return h;if(!u&&k>0){l.set(d.subarray(0,S),c);l.set([0,0],c+S);l.set(d.subarray(C,E),c+S+2);E-=k;d.length-E>3&&(E=E+3&-4);h.length=E;return h}if(d.length-E>3){E=E+3&-4;l.set(d.subarray(0,E),c);h.length=E;return h}l.set(d,c);h.length=d.length;return h}function readNameTable(t){var o=(r.start?r.start:0)+t.offset;r.pos=o;var c=[[],[]],u=t.length,h=o+u;if(0!==r.getUint16()||u<6)return c;var d,m,g=r.getUint16(),y=r.getUint16(),v=[];for(d=0;d<g&&r.pos+12<=h;d++){var S={platform:r.getUint16(),encoding:r.getUint16(),language:r.getUint16(),name:r.getUint16(),length:r.getUint16(),offset:r.getUint16()};(1===S.platform&&0===S.encoding&&0===S.language||3===S.platform&&1===S.encoding&&1033===S.language)&&v.push(S)}for(d=0,m=v.length;d<m;d++){var k=v[d];if(!(k.length<=0)){var C=o+y+k.offset;if(!(C+k.length>h)){r.pos=C;var w=k.name;if(k.encoding){for(var _="",O=0,x=k.length;O<x;O+=2)_+=String.fromCharCode(r.getUint16());c[1][w]=_}else c[0][w]=(0,l.bytesToString)(r.getBytes(k.length))}}}return c}var m,g,y,k,C=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function sanitizeTTProgram(t,r){for(var o,c,u,h,d,m=t.data,g=0,y=0,v=0,S=[],k=[],w=[],_=r.tooComplexToFollowFunctions,O=!1,x=0,T=0,R=m.length;g<R;){var E=m[g++];if(64===E){c=m[g++];if(O||T)g+=c;else for(o=0;o<c;o++)S.push(m[g++])}else if(65===E){c=m[g++];if(O||T)g+=2*c;else for(o=0;o<c;o++){u=m[g++];S.push(u<<8|m[g++])}}else if(176==(248&E)){c=E-176+1;if(O||T)g+=c;else for(o=0;o<c;o++)S.push(m[g++])}else if(184==(248&E)){c=E-184+1;if(O||T)g+=2*c;else for(o=0;o<c;o++){u=m[g++];S.push(u<<8|m[g++])}}else if(43!==E||_)if(44!==E||_){if(45===E)if(O){O=!1;y=g}else{if(!(d=k.pop())){(0,l.warn)("TT: ENDF bad stack");r.hintsValid=!1;return}h=w.pop();m=d.data;g=d.i;r.functionsStackDeltas[h]=S.length-d.stackTop}else if(137===E){if(O||T){(0,l.warn)("TT: nested IDEFs not allowed");_=!0}O=!0;v=g}else if(88===E)++x;else if(27===E)T=x;else if(89===E){T===x&&(T=0);--x}else if(28===E&&!O&&!T){var D=S[S.length-1];D>0&&(g+=D-1)}}else{if(O||T){(0,l.warn)("TT: nested FDEFs not allowed");_=!0}O=!0;v=g;h=S.pop();r.functionsDefined[h]={data:m,i:g}}else if(!O&&!T){h=S[S.length-1];if(isNaN(h))(0,l.info)("TT: CALL empty stack (or invalid entry).");else{r.functionsUsed[h]=!0;if(h in r.functionsStackDeltas){var j=S.length+r.functionsStackDeltas[h];if(j<0){(0,l.warn)("TT: CALL invalid functions stack delta.");r.hintsValid=!1;return}S.length=j}else if(h in r.functionsDefined&&!w.includes(h)){k.push({data:m,i:g,stackTop:S.length-1});w.push(h);if(!(d=r.functionsDefined[h])){(0,l.warn)("TT: CALL non-existent function");r.hintsValid=!1;return}m=d.data;g=d.i}}}if(!O&&!T){var M=0;E<=142?M=C[E]:E>=192&&E<=223?M=-1:E>=224&&(M=-2);if(E>=113&&E<=117){c=S.pop();isNaN(c)||(M=2*-c)}for(;M<0&&S.length>0;){S.pop();M++}for(;M>0;){S.push(NaN);M--}}}r.tooComplexToFollowFunctions=_;var N=[m];g>m.length&&N.push(new Uint8Array(g-m.length));if(v>y){(0,l.warn)("TT: complementing a missing function tail");N.push(new Uint8Array([34,45]))}!function foldTTTable(t,r){if(r.length>1){var o,l,c=0;for(o=0,l=r.length;o<l;o++)c+=r[o].length;c=c+3&-4;var u=new Uint8Array(c),h=0;for(o=0,l=r.length;o<l;o++){u.set(r[o],h);h+=r[o].length}t.data=u;t.length=c}}(t,N)}if(isTrueTypeCollectionFile(r=new S.Stream(new Uint8Array(r.getBytes())))){var w=function readTrueTypeCollectionData(t,r){for(var o=function readTrueTypeCollectionHeader(t){var r=(0,l.bytesToString)(t.getBytes(4));(0,l.assert)("ttcf"===r,"Must be a TrueType Collection font.");for(var o=t.getUint16(),c=t.getUint16(),u=t.getInt32()>>>0,h=[],d=0;d<u;d++)h.push(t.getInt32()>>>0);var m={ttcTag:r,majorVersion:o,minorVersion:c,numFonts:u,offsetTable:h};switch(o){case 1:return m;case 2:m.dsigTag=t.getInt32()>>>0;m.dsigLength=t.getInt32()>>>0;m.dsigOffset=t.getInt32()>>>0;return m}throw new l.FormatError("Invalid TrueType Collection majorVersion: ".concat(o,"."))}(t),c=o.numFonts,u=o.offsetTable,h=0;h<c;h++){t.pos=(t.start||0)+u[h];var d=readOpenTypeHeader(t),m=readTables(t,d.numTables);if(!m.name)throw new l.FormatError('TrueType Collection font must contain a "name" table.');for(var g=readNameTable(m.name),y=0,v=g.length;y<v;y++)for(var S=0,k=g[y].length;S<k;S++){var C=g[y][S];if(C&&C.replace(/\s/g,"")===r)return{header:d,tables:m}}}throw new l.FormatError('TrueType Collection does not contain "'.concat(r,'" font.'))}(r,this.name);m=w.header;g=w.tables}else{m=readOpenTypeHeader(r);g=readTables(r,m.numTables)}var O=!g["CFF "];if(O){if(!g.loca)throw new l.FormatError('Required "loca" table is not found');if(!g.glyf){(0,l.warn)('Required "glyf" table is not found -- trying to recover.');g.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{var x=o.composite&&((o.cidToGidMap||[]).length>0||!(o.cMap instanceof v.IdentityCMap));if("OTTO"===m.version&&!x||!g.head||!g.hhea||!g.maxp||!g.post){k=new S.Stream(g["CFF "].data);y=new q(k,o);adjustWidths(o);return this.convert(t,y,o)}delete g.glyf;delete g.loca;delete g.fpgm;delete g.prep;delete g["cvt "];this.isOpenType=!0}if(!g.maxp)throw new l.FormatError('Required "maxp" table is not found');r.pos=(r.start||0)+g.maxp.offset;var T=r.getInt32(),E=r.getUint16(),D=E+1,j=!0;if(D>65535){j=!1;D=E;(0,l.warn)("Not enough space in glyfs to duplicate first glyph.")}var N=0,L=0;if(T>=65536&&g.maxp.length>=22){r.pos+=8;if(r.getUint16()>2){g.maxp.data[14]=0;g.maxp.data[15]=2}r.pos+=4;N=r.getUint16();r.pos+=4;L=r.getUint16()}g.maxp.data[4]=D>>8;g.maxp.data[5]=255&D;var U=function sanitizeTTPrograms(t,r,o,c){var u={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};t&&sanitizeTTProgram(t,u);r&&sanitizeTTProgram(r,u);t&&function checkInvalidFunctions(t,r){if(!t.tooComplexToFollowFunctions)if(t.functionsDefined.length>r){(0,l.warn)("TT: more functions defined than expected");t.hintsValid=!1}else for(var o=0,c=t.functionsUsed.length;o<c;o++){if(o>r){(0,l.warn)("TT: invalid function id: "+o);t.hintsValid=!1;return}if(t.functionsUsed[o]&&!t.functionsDefined[o]){(0,l.warn)("TT: undefined function: "+o);t.hintsValid=!1;return}}}(u,c);if(o&&1&o.length){var h=new Uint8Array(o.length+1);h.set(o.data);o.data=h}return u.hintsValid}(g.fpgm,g.prep,g["cvt "],N);if(!U){delete g.fpgm;delete g.prep;delete g["cvt "]}!function sanitizeMetrics(t,r,o,c,u){if(r){t.pos=(t.start?t.start:0)+r.offset;t.pos+=4;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=8;t.pos+=2;var h=t.getUint16();if(h>c){(0,l.info)("The numOfMetrics ("+h+") should not be greater than the numGlyphs ("+c+")");h=c;r.data[34]=(65280&h)>>8;r.data[35]=255&h}var d=c-h-(o.length-4*h>>1);if(d>0){var m=new Uint8Array(o.length+2*d);m.set(o.data);if(u){m[o.length]=o.data[2];m[o.length+1]=o.data[3]}o.data=m}}else o&&(o.data=null)}(r,g.hhea,g.hmtx,D,j);if(!g.head)throw new l.FormatError('Required "head" table is not found');!function sanitizeHead(t,r,o){var c=t.data,u=function int32(t,r,o,l){return(t<<24)+(r<<16)+(o<<8)+l}(c[0],c[1],c[2],c[3]);if(u>>16!=1){(0,l.info)("Attempting to fix invalid version in head table: "+u);c[0]=0;c[1]=1;c[2]=0;c[3]=0}var h=int16(c[50],c[51]);if(h<0||h>1){(0,l.info)("Attempting to fix invalid indexToLocFormat in head table: "+h);var d=r+1;if(o===d<<1){c[50]=0;c[51]=0}else{if(o!==d<<2)throw new l.FormatError("Could not fix indexToLocFormat: "+h);c[50]=0;c[51]=1}}}(g.head,E,O?g.loca.length:0);var X=Object.create(null);if(O){var W=int16(g.head.data[50],g.head.data[51]),H=function sanitizeGlyphLocations(t,r,o,l,c,u,h){var d,m,g;if(l){d=4;m=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};g=function fontItemEncodeLong(t,r,o){t[r]=o>>>24&255;t[r+1]=o>>16&255;t[r+2]=o>>8&255;t[r+3]=255&o}}else{d=2;m=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1};g=function fontItemEncode(t,r,o){t[r]=o>>9&255;t[r+1]=o>>1&255}}var y=u?o+1:o,v=d*(1+y),S=new Uint8Array(v);S.set(t.data.subarray(0,v));t.data=S;var k,C,w=r.data,_=w.length,O=new Uint8Array(_),x=[];for(k=0,C=0;k<o+1;k++,C+=d){var T=m(S,C);T>_&&(T=_);x.push({index:k,offset:T,endOffset:0})}x.sort((function(t,r){return t.offset-r.offset}));for(k=0;k<o;k++)x[k].endOffset=x[k+1].offset;x.sort((function(t,r){return t.index-r.index}));var R=Object.create(null),E=0;g(S,0,E);for(k=0,C=d;k<o;k++,C+=d){var D=sanitizeGlyph(w,x[k].offset,x[k].endOffset,O,E,c),j=D.length;0===j&&(R[k]=!0);D.sizeOfInstructions>h&&(h=D.sizeOfInstructions);g(S,C,E+=j)}if(0===E){var M=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(k=0,C=d;k<y;k++,C+=d)g(S,C,M.length);r.data=M}else if(u){var N=m(S,d);if(O.length>N+E)r.data=O.subarray(0,N+E);else{r.data=new Uint8Array(N+E);r.data.set(O.subarray(0,E))}r.data.set(O.subarray(0,N),E);g(t.data,S.length-d,E+N)}else r.data=O.subarray(0,E);return{missingGlyphs:R,maxSizeOfInstructions:h}}(g.loca,g.glyf,E,W,U,j,L);X=H.missingGlyphs;if(T>=65536&&g.maxp.length>=22){g.maxp.data[26]=H.maxSizeOfInstructions>>8;g.maxp.data[27]=255&H.maxSizeOfInstructions}}if(!g.hhea)throw new l.FormatError('Required "hhea" table is not found');if(0===g.hhea.data[10]&&0===g.hhea.data[11]){g.hhea.data[10]=255;g.hhea.data[11]=255}var z={unitsPerEm:int16(g.head.data[18],g.head.data[19]),yMax:int16(g.head.data[42],g.head.data[43]),yMin:signedInt16(g.head.data[38],g.head.data[39]),ascent:int16(g.hhea.data[4],g.hhea.data[5]),descent:signedInt16(g.hhea.data[6],g.hhea.data[7])};this.ascent=z.ascent/z.unitsPerEm;this.descent=z.descent/z.unitsPerEm;g.post&&function readPostScriptTable(t,o,c){var u=(r.start?r.start:0)+t.offset;r.pos=u;var h,d=u+t.length,m=r.getInt32();r.skip(28);var g,y=!0;switch(m){case 65536:h=R;break;case 131072:var v=r.getUint16();if(v!==c){y=!1;break}var S=[];for(g=0;g<v;++g){var k=r.getUint16();if(k>=32768){y=!1;break}S.push(k)}if(!y)break;for(var C=[],w=[];r.pos<d;){var _=r.getByte();w.length=_;for(g=0;g<_;++g)w[g]=String.fromCharCode(r.getByte());C.push(w.join(""))}h=[];for(g=0;g<v;++g){var O=S[g];O<258?h.push(R[O]):h.push(C[O-258])}break;case 196608:break;default:(0,l.warn)("Unknown/unsupported post table version "+m);y=!1;o.defaultEncoding&&(h=o.defaultEncoding)}o.glyphNames=h;return y}(g.post,o,E);g.post={tag:"post",data:createPostTable(o)};var G=[];function hasGlyph(t){return!X[t]}if(o.composite){var V=o.cidToGidMap||[],$=0===V.length;o.cMap.forEach((function(t,r){if(r>65535)throw new l.FormatError("Max size of CID is 65,535");var o=-1;$?o=r:void 0!==V[r]&&(o=V[r]);o>=0&&o<E&&hasGlyph(o)&&(G[t]=o)}))}else{var K=function readCmapTable(t,r,o,c){if(!t){(0,l.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var u,h=(r.start?r.start:0)+t.offset;r.pos=h;r.skip(2);for(var d,m=r.getUint16(),g=!1,y=0;y<m;y++){var v=r.getUint16(),S=r.getUint16(),k=r.getInt32()>>>0,C=!1;if(!d||d.platformId!==v||d.encodingId!==S){if(0!==v||0!==S&&1!==S&&3!==S)if(1===v&&0===S)C=!0;else if(3!==v||1!==S||!c&&d){if(o&&3===v&&0===S){C=!0;g=!0}}else{C=!0;o||(g=!0)}else C=!0;C&&(d={platformId:v,encodingId:S,offset:k});if(g)break}}d&&(r.pos=h+d.offset);if(!d||-1===r.peekByte()){(0,l.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var w=r.getUint16();r.skip(4);var _,O,x=!1,T=[];if(0===w){for(_=0;_<256;_++){var R=r.getByte();R&&T.push({charCode:_,glyphId:R})}x=!0}else if(4===w){var E=r.getUint16()>>1;r.skip(6);var D,j=[];for(D=0;D<E;D++)j.push({end:r.getUint16()});r.skip(2);for(D=0;D<E;D++)j[D].start=r.getUint16();for(D=0;D<E;D++)j[D].delta=r.getUint16();var M=0;for(D=0;D<E;D++){u=j[D];var N=r.getUint16();if(N){var L=(N>>1)-(E-D);u.offsetIndex=L;M=Math.max(M,L+u.end-u.start+1)}else u.offsetIndex=-1}var U=[];for(_=0;_<M;_++)U.push(r.getUint16());for(D=0;D<E;D++){h=(u=j[D]).start;var q=u.end,X=u.delta;L=u.offsetIndex;for(_=h;_<=q;_++)if(65535!==_){O=(O=L<0?_:U[L+_-h])+X&65535;T.push({charCode:_,glyphId:O})}}}else{if(6!==w){(0,l.warn)("cmap table has unsupported format: "+w);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var W=r.getUint16(),H=r.getUint16();for(_=0;_<H;_++){O=r.getUint16();var z=W+_;T.push({charCode:z,glyphId:O})}}T.sort((function(t,r){return t.charCode-r.charCode}));for(y=1;y<T.length;y++)if(T[y-1].charCode===T[y].charCode){T.splice(y,1);y--}return{platformId:d.platformId,encodingId:d.encodingId,mappings:T,hasShortCmap:x}}(g.cmap,r,this.isSymbolicFont,o.hasEncoding),Y=K.platformId,J=K.encodingId,Q=K.mappings,Z=Q.length,ee=[];!o.hasEncoding||"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(ee=(0,h.getEncoding)(o.baseEncodingName));if(o.hasEncoding&&!this.isSymbolicFont&&(3===Y&&1===J||1===Y&&0===J))for(var te=(0,u.getGlyphsUnicode)(),re=0;re<256;re++){var ae,ne;if(ae=this.differences&&re in this.differences?this.differences[re]:re in ee&&""!==ee[re]?ee[re]:h.StandardEncoding[re]){ne=recoverGlyphName(ae,te);var ie;3===Y&&1===J?ie=te[ne]:1===Y&&0===J&&(ie=h.MacRomanEncoding.indexOf(ne));for(var oe=0;oe<Z;++oe)if(Q[oe].charCode===ie){G[re]=Q[oe].glyphId;break}}}else if(0===Y)for(var se=0;se<Z;++se)G[Q[se].charCode]=Q[se].glyphId;else for(var le=0;le<Z;++le){var ce=Q[le].charCode;3===Y&&ce>=61440&&ce<=61695&&(ce&=255);G[ce]=Q[le].glyphId}if(o.glyphNames&&(ee.length||this.differences.length))for(var ue=0;ue<256;++ue)if(void 0===G[ue]&&(ae=this.differences[ue]||ee[ue])){var fe=o.glyphNames.indexOf(ae);fe>0&&hasGlyph(fe)&&(G[ue]=fe)}}0===G.length&&(G[0]=0);var he=D-1;j||(he=0);var de=adjustMapping(G,hasGlyph,he);this.toFontChar=de.toFontChar;g.cmap={tag:"cmap",data:createCmapTable(de.charCodeToGlyphId,D)};g["OS/2"]&&function validateOS2Table(t,r){r.pos=(r.start||0)+t.offset;var o=r.getUint16();r.skip(60);var l=r.getUint16();if(o<4&&768&l)return!1;if(r.getUint16()>r.getUint16())return!1;r.skip(6);if(0===r.getUint16())return!1;t.data[8]=t.data[9]=0;return!0}(g["OS/2"],r)||(g["OS/2"]={tag:"OS/2",data:createOS2Table(o,de.charCodeToGlyphId,z)});if(!O)try{k=new S.Stream(g["CFF "].data);(y=new c.CFFParser(k,o,_).parse()).duplicateFirstGlyph();var pe=new c.CFFCompiler(y);g["CFF "].data=pe.compile()}catch(t){(0,l.warn)("Failed to compile font "+o.loadedName)}if(g.name){var me=readNameTable(g.name);g.name.data=createNameTable(t,me)}else g.name={tag:"name",data:createNameTable(this.name)};var ge=new M(m.version);for(var ye in g)ge.addTable(ye,g[ye].data);return ge.toArray()},convert:function Font_convert(t,r,o){o.fixedPitch=!1;o.builtInEncoding&&function adjustToUnicode(t,r){if(!t.hasIncludedToUnicodeMap&&!(t.hasEncoding||r===t.defaultEncoding||t.toUnicode instanceof j)){var o=[],l=(0,u.getGlyphsUnicode)();for(var c in r){var h=r[c],d=(0,m.getUnicodeForGlyph)(h,l);-1!==d&&(o[c]=String.fromCharCode(d))}t.toUnicode.amend(o)}}(o,o.builtInEncoding);var c=1;r instanceof q&&(c=r.numGlyphs-1);var d=r.getGlyphMapping(o),g=adjustMapping(d,r.hasGlyphId.bind(r),c);this.toFontChar=g.toFontChar;var y=r.numGlyphs;function getCharCodes(t,r){var o=null;for(var l in t)if(r===t[l]){o||(o=[]);o.push(0|l)}return o}function createCharCode(t,r){for(var o in t)if(r===t[o])return 0|o;g.charCodeToGlyphId[g.nextAvailableFontCharCode]=r;return g.nextAvailableFontCharCode++}var v=r.seacs;if(v&&v.length){var S=o.fontMatrix||l.FONT_IDENTITY_MATRIX,k=r.getCharset(),C=Object.create(null);for(var w in v){var _=v[w|=0],O=h.StandardEncoding[_[2]],x=h.StandardEncoding[_[3]],T=k.indexOf(O),R=k.indexOf(x);if(!(T<0||R<0)){var E={x:_[0]*S[0]+_[1]*S[2]+S[4],y:_[0]*S[1]+_[1]*S[3]+S[5]},D=getCharCodes(d,w);if(D)for(var N=0,L=D.length;N<L;N++){var U=D[N],X=g.charCodeToGlyphId,W=createCharCode(X,T),H=createCharCode(X,R);C[U]={baseFontCharCode:W,accentFontCharCode:H,accentOffset:E}}}}o.seacMap=C}var z=1/(o.fontMatrix||l.FONT_IDENTITY_MATRIX)[0],G=new M("OTTO");G.addTable("CFF ",r.data);G.addTable("OS/2",createOS2Table(o,g.charCodeToGlyphId));G.addTable("cmap",createCmapTable(g.charCodeToGlyphId,y));G.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+safeString16(z)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+safeString16(o.descent)+"ÿ"+safeString16(o.ascent)+string16(o.italicAngle?2:0)+"\0\0\0\0\0\0\0");G.addTable("hhea","\0\0\0"+safeString16(o.ascent)+safeString16(o.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+safeString16(o.capHeight)+safeString16(Math.tan(o.italicAngle)*o.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+string16(y));G.addTable("hmtx",function fontFieldsHmtx(){for(var t=r.charstrings,o=r.cff?r.cff.widths:null,l="\0\0\0\0",c=1,u=y;c<u;c++){var h=0;if(t){var d=t[c-1];h="width"in d?d.width:0}else o&&(h=Math.ceil(o[c]||0));l+=string16(h)+string16(0)}return l}());G.addTable("maxp","\0\0P\0"+string16(y));G.addTable("name",createNameTable(t));G.addTable("post",createPostTable(o));return G.toArray()},get spaceWidth(){for(var t,r=["space","minus","one","i","I"],o=0,c=r.length;o<c;o++){var h=r[o];if(h in this.widths){t=this.widths[h];break}var d=(0,u.getGlyphsUnicode)()[h],m=0;this.composite&&this.cMap.contains(d)&&(m=this.cMap.lookup(d));!m&&this.toUnicode&&(m=this.toUnicode.charCodeOf(d));m<=0&&(m=d);if(t=this.widths[m])break}t=t||this.defaultWidth;return(0,l.shadow)(this,"spaceWidth",t)},_charToGlyph:function _charToGlyph(t){var r,o,c,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=t;this.cMap&&this.cMap.contains(t)&&(h=this.cMap.lookup(t));o=this.widths[h];o=(0,l.isNum)(o)?o:this.defaultWidth;var d=this.vmetrics&&this.vmetrics[h],g=this.toUnicode.get(t)||this.fallbackToUnicode.get(t)||t;"number"==typeof g&&(g=String.fromCharCode(g));var y=t in this.toFontChar;r=this.toFontChar[t]||t;if(this.missingFile){var v=this.differences[t]||this.defaultEncoding[t];".notdef"!==v&&""!==v||"Type1"!==this.type||(r=32);r=(0,m.mapSpecialUnicodeValues)(r)}this.isType3Font&&(c=r);var S=null;if(this.seacMap&&this.seacMap[t]){y=!0;var k=this.seacMap[t];r=k.baseFontCharCode;S={fontChar:String.fromCodePoint(k.accentFontCharCode),offset:k.accentOffset}}var C="";"number"==typeof r&&(r<=1114111?C=String.fromCodePoint(r):(0,l.warn)("charToGlyph - invalid fontCharCode: ".concat(r)));var w=this.glyphCache[t];if(!w||!w.matchesForCache(C,g,S,o,d,c,u,y)){w=new E(C,g,S,o,d,c,u,y);this.glyphCache[t]=w}return w},charsToGlyphs:function Font_charsToGlyphs(t){var r,o,l,c=this.charsCache;if(c&&(r=c[t]))return r;c||(c=this.charsCache=Object.create(null));r=[];var u,h=t,d=0;if(this.cMap)for(var m=Object.create(null);d<t.length;){this.cMap.readCharCode(t,d,m);l=m.charcode;var g=m.length;d+=g;var y=1===g&&32===t.charCodeAt(d-1);o=this._charToGlyph(l,y);r.push(o)}else for(d=0,u=t.length;d<u;++d){l=t.charCodeAt(d);o=this._charToGlyph(l,32===l);r.push(o)}return c[h]=r},getCharPositions:function getCharPositions(t){var r=[];if(this.cMap)for(var o=Object.create(null),l=0;l<t.length;){this.cMap.readCharCode(t,l,o);var c=o.length;r.push([l,l+c]);l+=c}else for(var u=0,h=t.length;u<h;++u)r.push([u,u+1]);return r},get glyphCacheValues(){return Object.values(this.glyphCache)},encodeString:function encodeString(t){for(var r=[],o=[],l=function hasCurrentBufErrors(){return r.length%2==1},c=0,u=t.length;c<u;c++){var h=t.codePointAt(c);h>55295&&(h<57344||h>65533)&&c++;if(this.toUnicode){var d=String.fromCodePoint(h),m=this.toUnicode.charCodeOf(d);if(-1!==m){if(l()){r.push(o.join(""));o.length=0}for(var g=(this.cMap?this.cMap.getCharCodeLength(m):1)-1;g>=0;g--)o.push(String.fromCharCode(m>>8*g&255));continue}}if(!l()){r.push(o.join(""));o.length=0}o.push(String.fromCodePoint(h))}r.push(o.join(""));return r}};return Font}();r.Font=N;var L=function ErrorFontClosure(){function ErrorFont(t){this.error=t;this.loadedName="g_font_error";this.missingFile=!0}ErrorFont.prototype={charsToGlyphs:function ErrorFont_charsToGlyphs(){return[]},encodeString:function ErrorFont_encodeString(t){return[t]},exportData:function exportData(){return{error:this.error}}};return ErrorFont}();r.ErrorFont=L;function type1FontGlyphMapping(t,r,o){var l,c,d,m=Object.create(null),g=!!(t.flags&T.Symbolic);if(t.baseEncodingName){d=(0,h.getEncoding)(t.baseEncodingName);for(c=0;c<d.length;c++){l=o.indexOf(d[c]);m[c]=l>=0?l:0}}else if(g)for(c in r)m[c]=r[c];else{d=h.StandardEncoding;for(c=0;c<d.length;c++){l=o.indexOf(d[c]);m[c]=l>=0?l:0}}var y,v=t.differences;if(v)for(c in v){var S=v[c];if(-1===(l=o.indexOf(S))){y||(y=(0,u.getGlyphsUnicode)());var k=recoverGlyphName(S,y);k!==S&&(l=o.indexOf(k))}m[c]=l>=0?l:0}return m}var U=function Type1FontClosure(){function findBlock(t,r,o){for(var l,c=t.length,u=r.length,h=c-u,d=o,m=!1;d<h;){l=0;for(;l<u&&t[d+l]===r[l];)l++;if(l>=u){d+=l;for(;d<c&&(0,g.isWhiteSpace)(t[d]);)d++;m=!0;break}d++}return{found:m,length:d}}function Type1Font(t,r,o){var c=o.length1,u=(o.length2,r.peekBytes(6)),h=128===u[0]&&1===u[1];if(h){r.skip(6);c=u[5]<<24|u[4]<<16|u[3]<<8|u[2]}var d=function getHeaderBlock(t,r){var o,c,u,h,d=[101,101,120,101,99],m=t.pos;try{c=(o=t.getBytes(r)).length}catch(t){if(t instanceof g.MissingDataException)throw t}if(c===r&&(u=findBlock(o,d,r-2*d.length)).found&&u.length===r)return{stream:new S.Stream(o),length:r};(0,l.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=m;for(;0!==(u=findBlock(t.peekBytes(2048),d,0)).length;){t.pos+=u.length;if(u.found){h=t.pos-m;break}}t.pos=m;if(h)return{stream:new S.Stream(t.getBytes(h)),length:h};(0,l.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new S.Stream(t.getBytes(r)),length:r}}(r,c);new k.Type1Parser(d.stream,!1,_).extractFontHeader(o);h&&(u=r.getBytes(6))[5]<<24|u[4]<<16|u[3]<<8|u[2];var m=function getEexecBlock(t,r){var o=t.getBytes();return{stream:new S.Stream(o),length:o.length}}(r),y=new k.Type1Parser(m.stream,!0,_).extractFontProgram(o);for(var v in y.properties)o[v]=y.properties[v];var C=y.charstrings,w=this.getType2Charstrings(C),O=this.getType2Subrs(y.subrs);this.charstrings=C;this.data=this.wrap(t,w,this.charstrings,O,o);this.seacs=this.getSeacs(y.charstrings)}Type1Font.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function Type1Font_getCharset(){for(var t=[".notdef"],r=this.charstrings,o=0;o<r.length;o++)t.push(r[o].glyphName);return t},getGlyphMapping:function Type1Font_getGlyphMapping(t){var r=this.charstrings;if(t.composite){for(var o=Object.create(null),l=0,c=r.length;l<c;l++){o[t.cMap.charCodeOf(l)]=l+1}return o}var u,h=[".notdef"];for(u=0;u<r.length;u++)h.push(r[u].glyphName);var d=t.builtInEncoding;if(d){var m=Object.create(null);for(var g in d)(u=h.indexOf(d[g]))>=0&&(m[g]=u)}return type1FontGlyphMapping(t,m,h)},hasGlyphId:function Type1Font_hasGlyphID(t){return!(t<0||t>=this.numGlyphs)&&(0===t||this.charstrings[t-1].charstring.length>0)},getSeacs:function Type1Font_getSeacs(t){var r,o,l=[];for(r=0,o=t.length;r<o;r++){var c=t[r];c.seac&&(l[r+1]=c.seac)}return l},getType2Charstrings:function Type1Font_getType2Charstrings(t){for(var r=[],o=0,l=t.length;o<l;o++)r.push(t[o].charstring);return r},getType2Subrs:function Type1Font_getType2Subrs(t){var r=0,o=t.length;r=o<1133?107:o<33769?1131:32768;var l,c=[];for(l=0;l<r;l++)c.push([11]);for(l=0;l<o;l++)c.push(t[l]);return c},wrap:function Type1Font_wrap(t,r,o,l,u){var h=new c.CFF;h.header=new c.CFFHeader(1,0,4,4);h.names=[t];var d=new c.CFFTopDict;d.setByName("version",391);d.setByName("Notice",392);d.setByName("FullName",393);d.setByName("FamilyName",394);d.setByName("Weight",395);d.setByName("Encoding",null);d.setByName("FontMatrix",u.fontMatrix);d.setByName("FontBBox",u.bbox);d.setByName("charset",null);d.setByName("CharStrings",null);d.setByName("Private",null);h.topDict=d;var m=new c.CFFStrings;m.add("Version 0.11");m.add("See original notice");m.add(t);m.add(t);m.add("Medium");h.strings=m;h.globalSubrIndex=new c.CFFIndex;var g,y,v=r.length,S=[".notdef"];for(g=0;g<v;g++){var k=o[g].glyphName;-1===c.CFFStandardStrings.indexOf(k)&&m.add(k);S.push(k)}h.charset=new c.CFFCharset(!1,0,S);var C=new c.CFFIndex;C.add([139,14]);for(g=0;g<v;g++)C.add(r[g]);h.charStrings=C;var w=new c.CFFPrivateDict;w.setByName("Subrs",null);var _=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(g=0,y=_.length;g<y;g++){var O=_[g];if(O in u.privateData){var x=u.privateData[O];if(Array.isArray(x))for(var T=x.length-1;T>0;T--)x[T]-=x[T-1];w.setByName(O,x)}}h.topDict.privateDict=w;var R=new c.CFFIndex;for(g=0,y=l.length;g<y;g++)R.add(l[g]);w.subrsIndex=R;return new c.CFFCompiler(h).compile()}};return Type1Font}(),q=function CFFFontClosure(){function CFFFont(t,r){this.properties=r;var o=new c.CFFParser(t,r,_);this.cff=o.parse();this.cff.duplicateFirstGlyph();var u=new c.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=u.compile()}catch(o){(0,l.warn)("Failed to compile font "+r.loadedName);this.data=t}}CFFFont.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function CFFFont_getCharset(){return this.cff.charset.charset},getGlyphMapping:function CFFFont_getGlyphMapping(){var t,r,o=this.cff,l=this.properties,c=o.charset.charset;if(l.composite){t=Object.create(null);if(o.isCIDFont)for(r=0;r<c.length;r++){var u=c[r];t[l.cMap.charCodeOf(u)]=r}else for(r=0;r<o.charStrings.count;r++)t[l.cMap.charCodeOf(r)]=r;return t}return t=type1FontGlyphMapping(l,o.encoding?o.encoding.encoding:null,c)},hasGlyphId:function CFFFont_hasGlyphID(t){return this.cff.hasGlyphId(t)}};return CFFFont}()},(t,r,o)=>{"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.CFFTopDict=r.CFFStrings=r.CFFStandardStrings=r.CFFPrivateDict=r.CFFParser=r.CFFIndex=r.CFFHeader=r.CFFFDSelect=r.CFFCompiler=r.CFFCharset=r.CFF=void 0;var l=o(4),c=o(153),u=o(154);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];r.CFFStandardStrings=h;var d=391,m=function CFFParserClosure(){var t=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],r=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]+t[r-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]-t[r-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]/t[r-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function stack_div(t,r){t[r-1]=-t[r-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function stack_div(t,r){t[r-2]=t[r-2]*t[r-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];return function(){function CFFParser(t,r,o){_classCallCheck(this,CFFParser);this.bytes=t.getBytes();this.properties=r;this.seacAnalysisEnabled=!!o}_createClass(CFFParser,[{key:"parse",value:function parse(){var t=this.properties,r=new g;this.cff=r;var o=this.parseHeader(),l=this.parseIndex(o.endPos),c=this.parseIndex(l.endPos),u=this.parseIndex(c.endPos),h=this.parseIndex(u.endPos),d=this.parseDict(c.obj.get(0)),m=this.createDict(C,d,r.strings);r.header=o.obj;r.names=this.parseNameIndex(l.obj);r.strings=this.parseStringIndex(u.obj);r.topDict=m;r.globalSubrIndex=h.obj;this.parsePrivateDict(r.topDict);r.isCIDFont=m.hasName("ROS");var y=m.getByName("CharStrings"),v=this.parseIndex(y).obj,S=m.getByName("FontMatrix");S&&(t.fontMatrix=S);var k,w,_=m.getByName("FontBBox");if(_){t.ascent=Math.max(_[3],_[1]);t.descent=Math.min(_[1],_[3]);t.ascentScaled=!0}if(r.isCIDFont){for(var O=this.parseIndex(m.getByName("FDArray")).obj,x=0,T=O.count;x<T;++x){var R=O.get(x),E=this.createDict(C,this.parseDict(R),r.strings);this.parsePrivateDict(E);r.fdArray.push(E)}w=null;k=this.parseCharsets(m.getByName("charset"),v.count,r.strings,!0);r.fdSelect=this.parseFDSelect(m.getByName("FDSelect"),v.count)}else{k=this.parseCharsets(m.getByName("charset"),v.count,r.strings,!1);w=this.parseEncoding(m.getByName("Encoding"),t,r.strings,k.charset)}r.charset=k;r.encoding=w;var D=this.parseCharStrings({charStrings:v,localSubrIndex:m.privateDict.subrsIndex,globalSubrIndex:h.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:m.privateDict});r.charStrings=D.charStrings;r.seacs=D.seacs;r.widths=D.widths;return r}},{key:"parseHeader",value:function parseHeader(){for(var t=this.bytes,r=t.length,o=0;o<r&&1!==t[o];)++o;if(o>=r)throw new l.FormatError("Invalid CFF header");if(0!==o){(0,l.info)("cff data is shifted");t=t.subarray(o);this.bytes=t}var c=t[0],u=t[1],h=t[2],d=t[3];return{obj:new y(c,u,h,d),endPos:h}}},{key:"parseDict",value:function parseDict(t){var r=0;function parseOperand(){var o=t[r++];if(30===o)return function parseFloatOperand(){var o="",l=15,c=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],u=t.length;for(;r<u;){var h=t[r++],d=h>>4,m=15&h;if(d===l)break;o+=c[d];if(m===l)break;o+=c[m]}return parseFloat(o)}();if(28===o)return o=((o=t[r++])<<24|t[r++]<<16)>>16;if(29===o)return o=(o=(o=(o=t[r++])<<8|t[r++])<<8|t[r++])<<8|t[r++];if(o>=32&&o<=246)return o-139;if(o>=247&&o<=250)return 256*(o-247)+t[r++]+108;if(o>=251&&o<=254)return-256*(o-251)-t[r++]-108;(0,l.warn)('CFFParser_parseDict: "'+o+'" is a reserved command.');return NaN}var o=[],c=[];r=0;for(var u=t.length;r<u;){var h=t[r];if(h<=21){12===h&&(h=h<<8|t[++r]);c.push([h,o]);o=[];++r}else o.push(parseOperand())}return c}},{key:"parseIndex",value:function parseIndex(t){var r,o,l=new S,c=this.bytes,u=c[t++]<<8|c[t++],h=[],d=t;if(0!==u){var m=c[t++],g=t+(u+1)*m-1;for(r=0,o=u+1;r<o;++r){for(var y=0,v=0;v<m;++v){y<<=8;y+=c[t++]}h.push(g+y)}d=h[u]}for(r=0,o=h.length-1;r<o;++r){var k=h[r],C=h[r+1];l.add(c.subarray(k,C))}return{obj:l,endPos:d}}},{key:"parseNameIndex",value:function parseNameIndex(t){for(var r=[],o=0,c=t.count;o<c;++o){var u=t.get(o);r.push((0,l.bytesToString)(u))}return r}},{key:"parseStringIndex",value:function parseStringIndex(t){for(var r=new v,o=0,c=t.count;o<c;++o){var u=t.get(o);r.add((0,l.bytesToString)(u))}return r}},{key:"createDict",value:function createDict(t,r,o){for(var l=new t(o),c=0,u=r.length;c<u;++c){var h=r[c],d=h[0],m=h[1];l.setByKey(d,m)}return l}},{key:"parseCharString",value:function parseCharString(o,c,u,h){if(!c||o.callDepth>10)return!1;for(var d=o.stackSize,m=o.stack,g=c.length,y=0;y<g;){var v=c[y++],S=null;if(12===v){var k=c[y++];if(0===k){c[y-2]=139;c[y-1]=22;d=0}else S=r[k]}else if(28===v){m[d]=(c[y]<<24|c[y+1]<<16)>>16;y+=2;d++}else if(14===v){if(d>=4){d-=4;if(this.seacAnalysisEnabled){o.seac=m.slice(d,d+4);return!1}}S=t[v]}else if(v>=32&&v<=246){m[d]=v-139;d++}else if(v>=247&&v<=254){m[d]=v<251?(v-247<<8)+c[y]+108:-(v-251<<8)-c[y]-108;y++;d++}else if(255===v){m[d]=(c[y]<<24|c[y+1]<<16|c[y+2]<<8|c[y+3])/65536;y+=4;d++}else if(19===v||20===v){o.hints+=d>>1;y+=o.hints+7>>3;d%=2;S=t[v]}else{if(10===v||29===v){var C=void 0;if(!(C=10===v?u:h)){S=t[v];(0,l.warn)("Missing subrsIndex for "+S.id);return!1}var w=32768;C.count<1240?w=107:C.count<33900&&(w=1131);var _=m[--d]+w;if(_<0||_>=C.count||isNaN(_)){S=t[v];(0,l.warn)("Out of bounds subrIndex for "+S.id);return!1}o.stackSize=d;o.callDepth++;if(!this.parseCharString(o,C.get(_),u,h))return!1;o.callDepth--;d=o.stackSize;continue}if(11===v){o.stackSize=d;return!0}S=t[v]}if(S){if(S.stem){o.hints+=d>>1;if(3===v||23===v)o.hasVStems=!0;else if(o.hasVStems&&(1===v||18===v)){(0,l.warn)("CFF stem hints are in wrong order");c[y-1]=1===v?3:23}}if("min"in S&&!o.undefStack&&d<S.min){(0,l.warn)("Not enough parameters for "+S.id+"; actual: "+d+", expected: "+S.min);return!1}if(o.firstStackClearing&&S.stackClearing){o.firstStackClearing=!1;(d-=S.min)>=2&&S.stem?d%=2:d>1&&(0,l.warn)("Found too many parameters for stack-clearing command");d>0&&m[d-1]>=0&&(o.width=m[d-1])}if("stackDelta"in S){"stackFn"in S&&S.stackFn(m,d);d+=S.stackDelta}else if(S.stackClearing)d=0;else if(S.resetStack){d=0;o.undefStack=!1}else if(S.undefStack){d=0;o.undefStack=!0;o.firstStackClearing=!1}}}o.stackSize=d;return!0}},{key:"parseCharStrings",value:function parseCharStrings(t){for(var r=t.charStrings,o=t.localSubrIndex,c=t.globalSubrIndex,u=t.fdSelect,h=t.fdArray,d=t.privateDict,m=[],g=[],y=r.count,v=0;v<y;v++){var S=r.get(v),k={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},C=!0,w=null,_=d;if(u&&h.length){var O=u.getFDIndex(v);if(-1===O){(0,l.warn)("Glyph index is not in fd select.");C=!1}if(O>=h.length){(0,l.warn)("Invalid fd index for glyph index.");C=!1}C&&(w=(_=h[O].privateDict).subrsIndex)}else o&&(w=o);C&&(C=this.parseCharString(k,S,w,c));if(null!==k.width){var x=_.getByName("nominalWidthX");g[v]=x+k.width}else{var T=_.getByName("defaultWidthX");g[v]=T}null!==k.seac&&(m[v]=k.seac);C||r.set(v,new Uint8Array([14]))}return{charStrings:r,seacs:m,widths:g}}},{key:"emptyPrivateDictionary",value:function emptyPrivateDictionary(t){var r=this.createDict(w,[],t.strings);t.setByKey(18,[0,0]);t.privateDict=r}},{key:"parsePrivateDict",value:function parsePrivateDict(t){if(t.hasName("Private")){var r=t.getByName("Private");if(Array.isArray(r)&&2===r.length){var o=r[0],l=r[1];if(0===o||l>=this.bytes.length)this.emptyPrivateDictionary(t);else{var c=l+o,u=this.bytes.subarray(l,c),h=this.parseDict(u),d=this.createDict(w,h,t.strings);t.privateDict=d;if(d.getByName("Subrs")){var m=d.getByName("Subrs"),g=l+m;if(0===m||g>=this.bytes.length)this.emptyPrivateDictionary(t);else{var y=this.parseIndex(g);d.subrsIndex=y.obj}}}}else t.removeByName("Private")}else this.emptyPrivateDictionary(t)}},{key:"parseCharsets",value:function parseCharsets(t,r,o,u){if(0===t)return new O(!0,_.ISO_ADOBE,c.ISOAdobeCharset);if(1===t)return new O(!0,_.EXPERT,c.ExpertCharset);if(2===t)return new O(!0,_.EXPERT_SUBSET,c.ExpertSubsetCharset);var h,d,m,g=this.bytes,y=t,v=g[t++],S=[u?0:".notdef"];r-=1;switch(v){case 0:for(m=0;m<r;m++){h=g[t++]<<8|g[t++];S.push(u?h:o.get(h))}break;case 1:for(;S.length<=r;){h=g[t++]<<8|g[t++];d=g[t++];for(m=0;m<=d;m++)S.push(u?h++:o.get(h++))}break;case 2:for(;S.length<=r;){h=g[t++]<<8|g[t++];d=g[t++]<<8|g[t++];for(m=0;m<=d;m++)S.push(u?h++:o.get(h++))}break;default:throw new l.FormatError("Unknown charset format")}var k=t,C=g.subarray(y,k);return new O(!1,v,S,C)}},{key:"parseEncoding",value:function parseEncoding(t,r,o,c){var h,d,m,g=Object.create(null),y=this.bytes,v=!1,S=null;if(0===t||1===t){v=!0;h=t;var k=t?u.ExpertEncoding:u.StandardEncoding;for(d=0,m=c.length;d<m;d++){var C=k.indexOf(c[d]);-1!==C&&(g[C]=d)}}else{var w=t;switch(127&(h=y[t++])){case 0:var _=y[t++];for(d=1;d<=_;d++)g[y[t++]]=d;break;case 1:var O=y[t++],T=1;for(d=0;d<O;d++)for(var R=y[t++],E=y[t++],D=R;D<=R+E;D++)g[D]=T++;break;default:throw new l.FormatError("Unknown encoding format: ".concat(h," in CFF"))}var j=t;if(128&h){y[w]&=127;!function readSupplement(){var r=y[t++];for(d=0;d<r;d++){var l=y[t++],u=(y[t++]<<8)+(255&y[t++]);g[l]=c.indexOf(o.get(u))}}()}S=y.subarray(w,j)}return new x(v,h&=127,g,S)}},{key:"parseFDSelect",value:function parseFDSelect(t,r){var o,c=this.bytes,u=c[t++],h=[];switch(u){case 0:for(o=0;o<r;++o){var d=c[t++];h.push(d)}break;case 3:var m=c[t++]<<8|c[t++];for(o=0;o<m;++o){var g=c[t++]<<8|c[t++];if(0===o&&0!==g){(0,l.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");g=0}for(var y=c[t++],v=c[t]<<8|c[t+1],S=g;S<v;++S)h.push(y)}t+=2;break;default:throw new l.FormatError('parseFDSelect: Unknown format "'.concat(u,'".'))}if(h.length!==r)throw new l.FormatError("parseFDSelect: Invalid font data.");return new T(u,h)}}]);return CFFParser}()}();r.CFFParser=m;var g=function(){function CFF(){_classCallCheck(this,CFF);this.header=null;this.names=[];this.topDict=null;this.strings=new v;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}_createClass(CFF,[{key:"duplicateFirstGlyph",value:function duplicateFirstGlyph(){if(this.charStrings.count>=65535)(0,l.warn)("Not enough space in charstrings to duplicate first glyph.");else{var t=this.charStrings.get(0);this.charStrings.add(t);this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}},{key:"hasGlyphId",value:function hasGlyphId(t){return!(t<0||t>=this.charStrings.count)&&this.charStrings.get(t).length>0}}]);return CFF}();r.CFF=g;var y=function CFFHeader(t,r,o,l){_classCallCheck(this,CFFHeader);this.major=t;this.minor=r;this.hdrSize=o;this.offSize=l};r.CFFHeader=y;var v=function(){function CFFStrings(){_classCallCheck(this,CFFStrings);this.strings=[]}_createClass(CFFStrings,[{key:"get",value:function get(t){return t>=0&&t<=390?h[t]:t-d<=this.strings.length?this.strings[t-d]:h[0]}},{key:"getSID",value:function getSID(t){var r=h.indexOf(t);return-1!==r?r:-1!==(r=this.strings.indexOf(t))?r+d:-1}},{key:"add",value:function add(t){this.strings.push(t)}},{key:"count",get:function get(){return this.strings.length}}]);return CFFStrings}();r.CFFStrings=v;var S=function(){function CFFIndex(){_classCallCheck(this,CFFIndex);this.objects=[];this.length=0}_createClass(CFFIndex,[{key:"add",value:function add(t){this.length+=t.length;this.objects.push(t)}},{key:"set",value:function set(t,r){this.length+=r.length-this.objects[t].length;this.objects[t]=r}},{key:"get",value:function get(t){return this.objects[t]}},{key:"count",get:function get(){return this.objects.length}}]);return CFFIndex}();r.CFFIndex=S;var k=function(){function CFFDict(t,r){_classCallCheck(this,CFFDict);this.keyToNameMap=t.keyToNameMap;this.nameToKeyMap=t.nameToKeyMap;this.defaults=t.defaults;this.types=t.types;this.opcodes=t.opcodes;this.order=t.order;this.strings=r;this.values=Object.create(null)}_createClass(CFFDict,[{key:"setByKey",value:function setByKey(t,r){if(!(t in this.keyToNameMap))return!1;var o=r.length;if(0===o)return!0;for(var c=0;c<o;c++)if(isNaN(r[c])){(0,l.warn)('Invalid CFFDict value: "'+r+'" for key "'+t+'".');return!0}var u=this.types[t];"num"!==u&&"sid"!==u&&"offset"!==u||(r=r[0]);this.values[t]=r;return!0}},{key:"setByName",value:function setByName(t,r){if(!(t in this.nameToKeyMap))throw new l.FormatError('Invalid dictionary name "'.concat(t,'"'));this.values[this.nameToKeyMap[t]]=r}},{key:"hasName",value:function hasName(t){return this.nameToKeyMap[t]in this.values}},{key:"getByName",value:function getByName(t){if(!(t in this.nameToKeyMap))throw new l.FormatError("Invalid dictionary name ".concat(t,'"'));var r=this.nameToKeyMap[t];return r in this.values?this.values[r]:this.defaults[r]}},{key:"removeByName",value:function removeByName(t){delete this.values[this.nameToKeyMap[t]]}}],[{key:"createTables",value:function createTables(t){for(var r={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},o=0,l=t.length;o<l;++o){var c=t[o],u=Array.isArray(c[0])?(c[0][0]<<8)+c[0][1]:c[0];r.keyToNameMap[u]=c[1];r.nameToKeyMap[c[1]]=u;r.types[u]=c[2];r.defaults[u]=c[3];r.opcodes[u]=Array.isArray(c[0])?c[0]:[c[0]];r.order.push(u)}return r}}]);return CFFDict}(),C=function CFFTopDictClosure(){var t=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],r=null;return function(o){_inherits(CFFTopDict,o);var l=_createSuper(CFFTopDict);function CFFTopDict(o){var c;_classCallCheck(this,CFFTopDict);null===r&&(r=k.createTables(t));(c=l.call(this,r,o)).privateDict=null;return c}return CFFTopDict}(k)}();r.CFFTopDict=C;var w=function CFFPrivateDictClosure(){var t=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],r=null;return function(o){_inherits(CFFPrivateDict,o);var l=_createSuper(CFFPrivateDict);function CFFPrivateDict(o){var c;_classCallCheck(this,CFFPrivateDict);null===r&&(r=k.createTables(t));(c=l.call(this,r,o)).subrsIndex=null;return c}return CFFPrivateDict}(k)}();r.CFFPrivateDict=w;var _={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},O=function CFFCharset(t,r,o,l){_classCallCheck(this,CFFCharset);this.predefined=t;this.format=r;this.charset=o;this.raw=l};r.CFFCharset=O;var x=function CFFEncoding(t,r,o,l){_classCallCheck(this,CFFEncoding);this.predefined=t;this.format=r;this.encoding=o;this.raw=l},T=function(){function CFFFDSelect(t,r){_classCallCheck(this,CFFFDSelect);this.format=t;this.fdSelect=r}_createClass(CFFFDSelect,[{key:"getFDIndex",value:function getFDIndex(t){return t<0||t>=this.fdSelect.length?-1:this.fdSelect[t]}}]);return CFFFDSelect}();r.CFFFDSelect=T;var R=function(){function CFFOffsetTracker(){_classCallCheck(this,CFFOffsetTracker);this.offsets=Object.create(null)}_createClass(CFFOffsetTracker,[{key:"isTracking",value:function isTracking(t){return t in this.offsets}},{key:"track",value:function track(t,r){if(t in this.offsets)throw new l.FormatError("Already tracking location of ".concat(t));this.offsets[t]=r}},{key:"offset",value:function offset(t){for(var r in this.offsets)this.offsets[r]+=t}},{key:"setEntryLocation",value:function setEntryLocation(t,r,o){if(!(t in this.offsets))throw new l.FormatError("Not tracking location of ".concat(t));for(var c=o.data,u=this.offsets[t],h=0,d=r.length;h<d;++h){var m=5*h+u,g=m+1,y=m+2,v=m+3,S=m+4;if(29!==c[m]||0!==c[g]||0!==c[y]||0!==c[v]||0!==c[S])throw new l.FormatError("writing to an offset that is not empty");var k=r[h];c[m]=29;c[g]=k>>24&255;c[y]=k>>16&255;c[v]=k>>8&255;c[S]=255&k}}}]);return CFFOffsetTracker}(),E=function(){function CFFCompiler(t){_classCallCheck(this,CFFCompiler);this.cff=t}_createClass(CFFCompiler,[{key:"compile",value:function compile(){var t=this.cff,r={data:[],length:0,add:function CFFCompiler_add(t){this.data=this.data.concat(t);this.length=this.data.length}},o=this.compileHeader(t.header);r.add(o);var c=this.compileNameIndex(t.names);r.add(c);if(t.isCIDFont&&t.topDict.hasName("FontMatrix")){var u=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(var h=0,d=t.fdArray.length;h<d;h++){var m=t.fdArray[h],g=u.slice(0);m.hasName("FontMatrix")&&(g=l.Util.transform(g,m.getByName("FontMatrix")));m.setByName("FontMatrix",g)}}var y=t.topDict.getByName("XUID");y&&y.length>16&&t.topDict.removeByName("XUID");t.topDict.setByName("charset",0);var v=this.compileTopDicts([t.topDict],r.length,t.isCIDFont);r.add(v.output);var S=v.trackers[0],k=this.compileStringIndex(t.strings.strings);r.add(k);var C=this.compileIndex(t.globalSubrIndex);r.add(C);if(t.encoding&&t.topDict.hasName("Encoding"))if(t.encoding.predefined)S.setEntryLocation("Encoding",[t.encoding.format],r);else{var w=this.compileEncoding(t.encoding);S.setEntryLocation("Encoding",[r.length],r);r.add(w)}var _=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);S.setEntryLocation("charset",[r.length],r);r.add(_);var O=this.compileCharStrings(t.charStrings);S.setEntryLocation("CharStrings",[r.length],r);r.add(O);if(t.isCIDFont){S.setEntryLocation("FDSelect",[r.length],r);var x=this.compileFDSelect(t.fdSelect);r.add(x);v=this.compileTopDicts(t.fdArray,r.length,!0);S.setEntryLocation("FDArray",[r.length],r);r.add(v.output);var T=v.trackers;this.compilePrivateDicts(t.fdArray,T,r)}this.compilePrivateDicts([t.topDict],[S],r);r.add([0]);return r.data}},{key:"encodeNumber",value:function encodeNumber(t){return Number.isInteger(t)?this.encodeInteger(t):this.encodeFloat(t)}},{key:"encodeFloat",value:function encodeFloat(t){var r=t.toString(),o=CFFCompiler.EncodeFloatRegExp.exec(r);if(o){var l=parseFloat("1e"+((o[2]?+o[2]:0)+o[1].length));r=(Math.round(t*l)/l).toString()}var c,u,h="";for(c=0,u=r.length;c<u;++c){var d=r[c];h+="e"===d?"-"===r[++c]?"c":"b":"."===d?"a":"-"===d?"e":d}var m=[30];for(c=0,u=(h+=1&h.length?"f":"ff").length;c<u;c+=2)m.push(parseInt(h.substring(c,c+2),16));return m}},{key:"encodeInteger",value:function encodeInteger(t){return t>=-107&&t<=107?[t+139]:t>=108&&t<=1131?[247+((t-=108)>>8),255&t]:t>=-1131&&t<=-108?[251+((t=-t-108)>>8),255&t]:t>=-32768&&t<=32767?[28,t>>8&255,255&t]:[29,t>>24&255,t>>16&255,t>>8&255,255&t]}},{key:"compileHeader",value:function compileHeader(t){return[t.major,t.minor,4,t.offSize]}},{key:"compileNameIndex",value:function compileNameIndex(t){for(var r=new S,o=0,c=t.length;o<c;++o){for(var u=t[o],h=Math.min(u.length,127),d=new Array(h),m=0;m<h;m++){var g=u[m];(g<"!"||g>"~"||"["===g||"]"===g||"("===g||")"===g||"{"===g||"}"===g||"<"===g||">"===g||"/"===g||"%"===g)&&(g="_");d[m]=g}""===(d=d.join(""))&&(d="Bad_Font_Name");r.add((0,l.stringToBytes)(d))}return this.compileIndex(r)}},{key:"compileTopDicts",value:function compileTopDicts(t,r,o){for(var l=[],c=new S,u=0,h=t.length;u<h;++u){var d=t[u];if(o){d.removeByName("CIDFontVersion");d.removeByName("CIDFontRevision");d.removeByName("CIDFontType");d.removeByName("CIDCount");d.removeByName("UIDBase")}var m=new R,g=this.compileDict(d,m);l.push(m);c.add(g);m.offset(r)}return{trackers:l,output:c=this.compileIndex(c,l)}}},{key:"compilePrivateDicts",value:function compilePrivateDicts(t,r,o){for(var c=0,u=t.length;c<u;++c){var h=t[c],d=h.privateDict;if(!d||!h.hasName("Private"))throw new l.FormatError("There must be a private dictionary.");var m=new R,g=this.compileDict(d,m),y=o.length;m.offset(y);g.length||(y=0);r[c].setEntryLocation("Private",[g.length,y],o);o.add(g);if(d.subrsIndex&&d.hasName("Subrs")){var v=this.compileIndex(d.subrsIndex);m.setEntryLocation("Subrs",[g.length],o);o.add(v)}}}},{key:"compileDict",value:function compileDict(t,r){for(var o=[],c=t.order,u=0;u<c.length;++u){var h=c[u];if(h in t.values){var d=t.values[h],m=t.types[h];Array.isArray(m)||(m=[m]);Array.isArray(d)||(d=[d]);if(0!==d.length){for(var g=0,y=m.length;g<y;++g){var v=m[g],S=d[g];switch(v){case"num":case"sid":o=o.concat(this.encodeNumber(S));break;case"offset":var k=t.keyToNameMap[h];r.isTracking(k)||r.track(k,o.length);o=o.concat([29,0,0,0,0]);break;case"array":case"delta":o=o.concat(this.encodeNumber(S));for(var C=1,w=d.length;C<w;++C)o=o.concat(this.encodeNumber(d[C]));break;default:throw new l.FormatError("Unknown data type of ".concat(v))}}o=o.concat(t.opcodes[h])}}}return o}},{key:"compileStringIndex",value:function compileStringIndex(t){for(var r=new S,o=0,c=t.length;o<c;++o)r.add((0,l.stringToBytes)(t[o]));return this.compileIndex(r)}},{key:"compileGlobalSubrIndex",value:function compileGlobalSubrIndex(){var t=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(t))}},{key:"compileCharStrings",value:function compileCharStrings(t){for(var r=new S,o=0;o<t.count;o++){var l=t.get(o);0!==l.length?r.add(l):r.add(new Uint8Array([139,14]))}return this.compileIndex(r)}},{key:"compileCharset",value:function compileCharset(t,r,o,c){var u,h=r-1;if(c)u=new Uint8Array([2,0,0,h>>8&255,255&h]);else{(u=new Uint8Array(1+2*h))[0]=0;for(var d=0,m=t.charset.length,g=!1,y=1;y<u.length;y+=2){var v=0;if(d<m){var S=t.charset[d++];if(-1===(v=o.getSID(S))){v=0;if(!g){g=!0;(0,l.warn)("Couldn't find ".concat(S," in CFF strings"))}}}u[y]=v>>8&255;u[y+1]=255&v}}return this.compileTypedArray(u)}},{key:"compileEncoding",value:function compileEncoding(t){return this.compileTypedArray(t.raw)}},{key:"compileFDSelect",value:function compileFDSelect(t){var r,o,l=t.format;switch(l){case 0:(r=new Uint8Array(1+t.fdSelect.length))[0]=l;for(o=0;o<t.fdSelect.length;o++)r[o+1]=t.fdSelect[o];break;case 3:var c=t.fdSelect[0],u=[l,0,0,0,0,c];for(o=1;o<t.fdSelect.length;o++){var h=t.fdSelect[o];if(h!==c){u.push(o>>8&255,255&o,h);c=h}}var d=(u.length-3)/3;u[1]=d>>8&255;u[2]=255&d;u.push(o>>8&255,255&o);r=new Uint8Array(u)}return this.compileTypedArray(r)}},{key:"compileTypedArray",value:function compileTypedArray(t){for(var r=[],o=0,l=t.length;o<l;++o)r[o]=t[o];return r}},{key:"compileIndex",value:function compileIndex(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=t.objects,l=o.length;if(0===l)return[0,0,0];var c,u,h=[l>>8&255,255&l],d=1;for(c=0;c<l;++c)d+=o[c].length;u=d<256?1:d<65536?2:d<16777216?3:4;h.push(u);var m=1;for(c=0;c<l+1;c++){1===u?h.push(255&m):2===u?h.push(m>>8&255,255&m):3===u?h.push(m>>16&255,m>>8&255,255&m):h.push(m>>>24&255,m>>16&255,m>>8&255,255&m);o[c]&&(m+=o[c].length)}for(c=0;c<l;c++){r[c]&&r[c].offset(h.length);for(var g=0,y=o[c].length;g<y;g++)h.push(o[c][g])}return h}}],[{key:"EncodeFloatRegExp",get:function get(){return(0,l.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}}]);return CFFCompiler}();r.CFFCompiler=E},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ISOAdobeCharset=r.ExpertSubsetCharset=r.ExpertCharset=void 0;r.ISOAdobeCharset=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];r.ExpertCharset=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];r.ExpertSubsetCharset=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"]},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getEncoding=function getEncoding(t){switch(t){case"WinAnsiEncoding":return h;case"StandardEncoding":return u;case"MacRomanEncoding":return c;case"SymbolSetEncoding":return d;case"ZapfDingbatsEncoding":return m;case"ExpertEncoding":return o;case"MacExpertEncoding":return l;default:return null}};r.ZapfDingbatsEncoding=r.WinAnsiEncoding=r.SymbolSetEncoding=r.StandardEncoding=r.MacRomanEncoding=r.ExpertEncoding=void 0;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];r.ExpertEncoding=o;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];r.MacRomanEncoding=c;var u=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];r.StandardEncoding=u;var h=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];r.WinAnsiEncoding=h;var d=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];r.SymbolSetEncoding=d;var m=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];r.ZapfDingbatsEncoding=m},(t,r,o)=>{"use strict";o.r(r);o.d(r,{getDingbatsGlyphsUnicode:()=>u,getGlyphsUnicode:()=>c});var l=o(128);const c=(0,l.getArrayLookupTableFactory)((function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]})),u=(0,l.getArrayLookupTableFactory)((function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]}))},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getSymbolsFonts=r.getSupplementalGlyphMapForCalibri=r.getSupplementalGlyphMapForArialBlack=r.getStdFontMap=r.getSerifFonts=r.getNonStdFontMap=r.getGlyphMapForStandardFonts=void 0;var l=o(128),c=(0,l.getLookupTableFactory)((function(t){t.ArialNarrow="Helvetica";t["ArialNarrow-Bold"]="Helvetica-Bold";t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";t["ArialNarrow-Italic"]="Helvetica-Oblique";t.ArialBlack="Helvetica";t["ArialBlack-Bold"]="Helvetica-Bold";t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";t["ArialBlack-Italic"]="Helvetica-Oblique";t["Arial-Black"]="Helvetica";t["Arial-Black-Bold"]="Helvetica-Bold";t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Black-Italic"]="Helvetica-Oblique";t.Arial="Helvetica";t["Arial-Bold"]="Helvetica-Bold";t["Arial-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Italic"]="Helvetica-Oblique";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t.ArialMT="Helvetica";t["Courier-Bold"]="Courier-Bold";t["Courier-BoldItalic"]="Courier-BoldOblique";t["Courier-Italic"]="Courier-Oblique";t.CourierNew="Courier";t["CourierNew-Bold"]="Courier-Bold";t["CourierNew-BoldItalic"]="Courier-BoldOblique";t["CourierNew-Italic"]="Courier-Oblique";t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";t["CourierNewPS-BoldMT"]="Courier-Bold";t["CourierNewPS-ItalicMT"]="Courier-Oblique";t.CourierNewPSMT="Courier";t.Helvetica="Helvetica";t["Helvetica-Bold"]="Helvetica-Bold";t["Helvetica-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="Helvetica-Oblique";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Symbol-Bold"]="Symbol";t["Symbol-BoldItalic"]="Symbol";t["Symbol-Italic"]="Symbol";t.TimesNewRoman="Times-Roman";t["TimesNewRoman-Bold"]="Times-Bold";t["TimesNewRoman-BoldItalic"]="Times-BoldItalic";t["TimesNewRoman-Italic"]="Times-Italic";t.TimesNewRomanPS="Times-Roman";t["TimesNewRomanPS-Bold"]="Times-Bold";t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";t["TimesNewRomanPS-BoldMT"]="Times-Bold";t["TimesNewRomanPS-Italic"]="Times-Italic";t["TimesNewRomanPS-ItalicMT"]="Times-Italic";t.TimesNewRomanPSMT="Times-Roman";t["TimesNewRomanPSMT-Bold"]="Times-Bold";t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPSMT-Italic"]="Times-Italic"}));r.getStdFontMap=c;var u=(0,l.getLookupTableFactory)((function(t){t.Calibri="Helvetica";t["Calibri-Bold"]="Helvetica-Bold";t["Calibri-BoldItalic"]="Helvetica-BoldOblique";t["Calibri-Italic"]="Helvetica-Oblique";t.CenturyGothic="Helvetica";t["CenturyGothic-Bold"]="Helvetica-Bold";t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";t["CenturyGothic-Italic"]="Helvetica-Oblique";t.ComicSansMS="Comic Sans MS";t["ComicSansMS-Bold"]="Comic Sans MS-Bold";t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";t["ComicSansMS-Italic"]="Comic Sans MS-Italic";t.LucidaConsole="Courier";t["LucidaConsole-Bold"]="Courier-Bold";t["LucidaConsole-BoldItalic"]="Courier-BoldOblique";t["LucidaConsole-Italic"]="Courier-Oblique";t["LucidaSans-Demi"]="Helvetica-Bold";t["MS-Gothic"]="MS Gothic";t["MS-Gothic-Bold"]="MS Gothic-Bold";t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";t["MS-Gothic-Italic"]="MS Gothic-Italic";t["MS-Mincho"]="MS Mincho";t["MS-Mincho-Bold"]="MS Mincho-Bold";t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";t["MS-Mincho-Italic"]="MS Mincho-Italic";t["MS-PGothic"]="MS PGothic";t["MS-PGothic-Bold"]="MS PGothic-Bold";t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";t["MS-PGothic-Italic"]="MS PGothic-Italic";t["MS-PMincho"]="MS PMincho";t["MS-PMincho-Bold"]="MS PMincho-Bold";t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";t["MS-PMincho-Italic"]="MS PMincho-Italic";t.NuptialScript="Times-Italic";t.SegoeUISymbol="Helvetica";t.Wingdings="ZapfDingbats";t["Wingdings-Regular"]="ZapfDingbats"}));r.getNonStdFontMap=u;var h=(0,l.getLookupTableFactory)((function(t){t["Adobe Jenson"]=!0;t["Adobe Text"]=!0;t.Albertus=!0;t.Aldus=!0;t.Alexandria=!0;t.Algerian=!0;t["American Typewriter"]=!0;t.Antiqua=!0;t.Apex=!0;t.Arno=!0;t.Aster=!0;t.Aurora=!0;t.Baskerville=!0;t.Bell=!0;t.Bembo=!0;t["Bembo Schoolbook"]=!0;t.Benguiat=!0;t["Berkeley Old Style"]=!0;t["Bernhard Modern"]=!0;t["Berthold City"]=!0;t.Bodoni=!0;t["Bauer Bodoni"]=!0;t["Book Antiqua"]=!0;t.Bookman=!0;t["Bordeaux Roman"]=!0;t["Californian FB"]=!0;t.Calisto=!0;t.Calvert=!0;t.Capitals=!0;t.Cambria=!0;t.Cartier=!0;t.Caslon=!0;t.Catull=!0;t.Centaur=!0;t["Century Old Style"]=!0;t["Century Schoolbook"]=!0;t.Chaparral=!0;t["Charis SIL"]=!0;t.Cheltenham=!0;t["Cholla Slab"]=!0;t.Clarendon=!0;t.Clearface=!0;t.Cochin=!0;t.Colonna=!0;t["Computer Modern"]=!0;t["Concrete Roman"]=!0;t.Constantia=!0;t["Cooper Black"]=!0;t.Corona=!0;t.Ecotype=!0;t.Egyptienne=!0;t.Elephant=!0;t.Excelsior=!0;t.Fairfield=!0;t["FF Scala"]=!0;t.Folkard=!0;t.Footlight=!0;t.FreeSerif=!0;t["Friz Quadrata"]=!0;t.Garamond=!0;t.Gentium=!0;t.Georgia=!0;t.Gloucester=!0;t["Goudy Old Style"]=!0;t["Goudy Schoolbook"]=!0;t["Goudy Pro Font"]=!0;t.Granjon=!0;t["Guardian Egyptian"]=!0;t.Heather=!0;t.Hercules=!0;t["High Tower Text"]=!0;t.Hiroshige=!0;t["Hoefler Text"]=!0;t["Humana Serif"]=!0;t.Imprint=!0;t["Ionic No. 5"]=!0;t.Janson=!0;t.Joanna=!0;t.Korinna=!0;t.Lexicon=!0;t["Liberation Serif"]=!0;t["Linux Libertine"]=!0;t.Literaturnaya=!0;t.Lucida=!0;t["Lucida Bright"]=!0;t.Melior=!0;t.Memphis=!0;t.Miller=!0;t.Minion=!0;t.Modern=!0;t["Mona Lisa"]=!0;t["Mrs Eaves"]=!0;t["MS Serif"]=!0;t["Museo Slab"]=!0;t["New York"]=!0;t["Nimbus Roman"]=!0;t["NPS Rawlinson Roadway"]=!0;t.NuptialScript=!0;t.Palatino=!0;t.Perpetua=!0;t.Plantin=!0;t["Plantin Schoolbook"]=!0;t.Playbill=!0;t["Poor Richard"]=!0;t["Rawlinson Roadway"]=!0;t.Renault=!0;t.Requiem=!0;t.Rockwell=!0;t.Roman=!0;t["Rotis Serif"]=!0;t.Sabon=!0;t.Scala=!0;t.Seagull=!0;t.Sistina=!0;t.Souvenir=!0;t.STIX=!0;t["Stone Informal"]=!0;t["Stone Serif"]=!0;t.Sylfaen=!0;t.Times=!0;t.Trajan=!0;t["Trinité"]=!0;t["Trump Mediaeval"]=!0;t.Utopia=!0;t["Vale Type"]=!0;t["Bitstream Vera"]=!0;t["Vera Serif"]=!0;t.Versailles=!0;t.Wanted=!0;t.Weiss=!0;t["Wide Latin"]=!0;t.Windsor=!0;t.XITS=!0}));r.getSerifFonts=h;var d=(0,l.getLookupTableFactory)((function(t){t.Dingbats=!0;t.Symbol=!0;t.ZapfDingbats=!0}));r.getSymbolsFonts=d;var m=(0,l.getLookupTableFactory)((function(t){t[2]=10;t[3]=32;t[4]=33;t[5]=34;t[6]=35;t[7]=36;t[8]=37;t[9]=38;t[10]=39;t[11]=40;t[12]=41;t[13]=42;t[14]=43;t[15]=44;t[16]=45;t[17]=46;t[18]=47;t[19]=48;t[20]=49;t[21]=50;t[22]=51;t[23]=52;t[24]=53;t[25]=54;t[26]=55;t[27]=56;t[28]=57;t[29]=58;t[30]=894;t[31]=60;t[32]=61;t[33]=62;t[34]=63;t[35]=64;t[36]=65;t[37]=66;t[38]=67;t[39]=68;t[40]=69;t[41]=70;t[42]=71;t[43]=72;t[44]=73;t[45]=74;t[46]=75;t[47]=76;t[48]=77;t[49]=78;t[50]=79;t[51]=80;t[52]=81;t[53]=82;t[54]=83;t[55]=84;t[56]=85;t[57]=86;t[58]=87;t[59]=88;t[60]=89;t[61]=90;t[62]=91;t[63]=92;t[64]=93;t[65]=94;t[66]=95;t[67]=96;t[68]=97;t[69]=98;t[70]=99;t[71]=100;t[72]=101;t[73]=102;t[74]=103;t[75]=104;t[76]=105;t[77]=106;t[78]=107;t[79]=108;t[80]=109;t[81]=110;t[82]=111;t[83]=112;t[84]=113;t[85]=114;t[86]=115;t[87]=116;t[88]=117;t[89]=118;t[90]=119;t[91]=120;t[92]=121;t[93]=122;t[94]=123;t[95]=124;t[96]=125;t[97]=126;t[98]=196;t[99]=197;t[100]=199;t[101]=201;t[102]=209;t[103]=214;t[104]=220;t[105]=225;t[106]=224;t[107]=226;t[108]=228;t[109]=227;t[110]=229;t[111]=231;t[112]=233;t[113]=232;t[114]=234;t[115]=235;t[116]=237;t[117]=236;t[118]=238;t[119]=239;t[120]=241;t[121]=243;t[122]=242;t[123]=244;t[124]=246;t[125]=245;t[126]=250;t[127]=249;t[128]=251;t[129]=252;t[130]=8224;t[131]=176;t[132]=162;t[133]=163;t[134]=167;t[135]=8226;t[136]=182;t[137]=223;t[138]=174;t[139]=169;t[140]=8482;t[141]=180;t[142]=168;t[143]=8800;t[144]=198;t[145]=216;t[146]=8734;t[147]=177;t[148]=8804;t[149]=8805;t[150]=165;t[151]=181;t[152]=8706;t[153]=8721;t[154]=8719;t[156]=8747;t[157]=170;t[158]=186;t[159]=8486;t[160]=230;t[161]=248;t[162]=191;t[163]=161;t[164]=172;t[165]=8730;t[166]=402;t[167]=8776;t[168]=8710;t[169]=171;t[170]=187;t[171]=8230;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[227]=353;t[229]=382;t[234]=253;t[252]=263;t[253]=268;t[254]=269;t[258]=258;t[260]=260;t[261]=261;t[265]=280;t[266]=281;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[284]=345;t[285]=346;t[286]=347;t[292]=367;t[295]=377;t[296]=378;t[298]=380;t[305]=963;t[306]=964;t[307]=966;t[308]=8215;t[309]=8252;t[310]=8319;t[311]=8359;t[312]=8592;t[313]=8593;t[337]=9552;t[493]=1039;t[494]=1040;t[705]=1524;t[706]=8362;t[710]=64288;t[711]=64298;t[759]=1617;t[761]=1776;t[763]=1778;t[775]=1652;t[777]=1764;t[778]=1780;t[779]=1781;t[780]=1782;t[782]=771;t[783]=64726;t[786]=8363;t[788]=8532;t[790]=768;t[791]=769;t[792]=768;t[795]=803;t[797]=64336;t[798]=64337;t[799]=64342;t[800]=64343;t[801]=64344;t[802]=64345;t[803]=64362;t[804]=64363;t[805]=64364;t[2424]=7821;t[2425]=7822;t[2426]=7823;t[2427]=7824;t[2428]=7825;t[2429]=7826;t[2430]=7827;t[2433]=7682;t[2678]=8045;t[2679]=8046;t[2830]=1552;t[2838]=686;t[2840]=751;t[2842]=753;t[2843]=754;t[2844]=755;t[2846]=757;t[2856]=767;t[2857]=848;t[2858]=849;t[2862]=853;t[2863]=854;t[2864]=855;t[2865]=861;t[2866]=862;t[2906]=7460;t[2908]=7462;t[2909]=7463;t[2910]=7464;t[2912]=7466;t[2913]=7467;t[2914]=7468;t[2916]=7470;t[2917]=7471;t[2918]=7472;t[2920]=7474;t[2921]=7475;t[2922]=7476;t[2924]=7478;t[2925]=7479;t[2926]=7480;t[2928]=7482;t[2929]=7483;t[2930]=7484;t[2932]=7486;t[2933]=7487;t[2934]=7488;t[2936]=7490;t[2937]=7491;t[2938]=7492;t[2940]=7494;t[2941]=7495;t[2942]=7496;t[2944]=7498;t[2946]=7500;t[2948]=7502;t[2950]=7504;t[2951]=7505;t[2952]=7506;t[2954]=7508;t[2955]=7509;t[2956]=7510;t[2958]=7512;t[2959]=7513;t[2960]=7514;t[2962]=7516;t[2963]=7517;t[2964]=7518;t[2966]=7520;t[2967]=7521;t[2968]=7522;t[2970]=7524;t[2971]=7525;t[2972]=7526;t[2974]=7528;t[2975]=7529;t[2976]=7530;t[2978]=1537;t[2979]=1538;t[2980]=1539;t[2982]=1549;t[2983]=1551;t[2984]=1552;t[2986]=1554;t[2987]=1555;t[2988]=1556;t[2990]=1623;t[2991]=1624;t[2995]=1775;t[2999]=1791;t[3002]=64290;t[3003]=64291;t[3004]=64292;t[3006]=64294;t[3007]=64295;t[3008]=64296;t[3011]=1900;t[3014]=8223;t[3015]=8244;t[3017]=7532;t[3018]=7533;t[3019]=7534;t[3075]=7590;t[3076]=7591;t[3079]=7594;t[3080]=7595;t[3083]=7598;t[3084]=7599;t[3087]=7602;t[3088]=7603;t[3091]=7606;t[3092]=7607;t[3095]=7610;t[3096]=7611;t[3099]=7614;t[3100]=7615;t[3103]=7618;t[3104]=7619;t[3107]=8337;t[3108]=8338;t[3116]=1884;t[3119]=1885;t[3120]=1885;t[3123]=1886;t[3124]=1886;t[3127]=1887;t[3128]=1887;t[3131]=1888;t[3132]=1888;t[3135]=1889;t[3136]=1889;t[3139]=1890;t[3140]=1890;t[3143]=1891;t[3144]=1891;t[3147]=1892;t[3148]=1892;t[3153]=580;t[3154]=581;t[3157]=584;t[3158]=585;t[3161]=588;t[3162]=589;t[3165]=891;t[3166]=892;t[3169]=1274;t[3170]=1275;t[3173]=1278;t[3174]=1279;t[3181]=7622;t[3182]=7623;t[3282]=11799;t[3316]=578;t[3379]=42785;t[3393]=1159;t[3416]=8377}));r.getGlyphMapForStandardFonts=m;var g=(0,l.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));r.getSupplementalGlyphMapForArialBlack=g;var y=(0,l.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[17]=66;t[18]=67;t[24]=68;t[28]=69;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[87]=80;t[89]=81;t[90]=82;t[94]=83;t[100]=84;t[104]=85;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[127]=90;t[258]=97;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[282]=100;t[286]=101;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[361]=106;t[364]=107;t[367]=108;t[371]=322;t[373]=109;t[374]=110;t[381]=111;t[383]=243;t[393]=112;t[395]=113;t[396]=114;t[400]=115;t[401]=347;t[410]=116;t[437]=117;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[460]=122;t[463]=380;t[853]=44;t[855]=58;t[856]=46;t[876]=47;t[878]=45;t[882]=45;t[894]=40;t[895]=41;t[896]=91;t[897]=93;t[923]=64;t[1004]=48;t[1005]=49;t[1006]=50;t[1007]=51;t[1008]=52;t[1009]=53;t[1010]=54;t[1011]=55;t[1012]=56;t[1013]=57;t[1081]=37;t[1085]=43;t[1086]=45}));r.getSupplementalGlyphMapForCalibri=y},(t,r,o)=>{"use strict";o.r(r);o.d(r,{getNormalizedUnicodes:()=>h,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues,reverseIfRtl:()=>reverseIfRtl});var l=o(128);const c=(0,l.getLookupTableFactory)((function(t){t[63721]=169;t[63193]=169;t[63720]=174;t[63194]=174;t[63722]=8482;t[63195]=8482;t[63729]=9127;t[63730]=9128;t[63731]=9129;t[63740]=9131;t[63741]=9132;t[63742]=9133;t[63726]=9121;t[63727]=9122;t[63728]=9123;t[63737]=9124;t[63738]=9125;t[63739]=9126;t[63723]=9115;t[63724]=9116;t[63725]=9117;t[63734]=9118;t[63735]=9119;t[63736]=9120}));function mapSpecialUnicodeValues(t){return t>=65520&&t<=65535?0:t>=62976&&t<=63743?c()[t]||t:173===t?45:t}function getUnicodeForGlyph(t,r){let o=r[t];if(void 0!==o)return o;if(!t)return-1;if("u"===t[0]){const r=t.length;let l;if(7===r&&"n"===t[1]&&"i"===t[2])l=t.substring(3);else{if(!(r>=5&&r<=7))return-1;l=t.substring(1)}if(l===l.toUpperCase()){o=parseInt(l,16);if(o>=0)return o}}return-1}const u=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function getUnicodeRangeFor(t){for(let r=0,o=u.length;r<o;r++){const o=u[r];if(t>=o.begin&&t<o.end)return r}return-1}const h=(0,l.getArrayLookupTableFactory)((function(){return["¨"," ̈","¯"," ̄","´"," ́","µ","μ","¸"," ̧","IJ","IJ","ij","ij","Ŀ","L·","ŀ","l·","ʼn","ʼn","ſ","s","DŽ","DŽ","Dž","Dž","dž","dž","LJ","LJ","Lj","Lj","lj","lj","NJ","NJ","Nj","Nj","nj","nj","DZ","DZ","Dz","Dz","dz","dz","˘"," ̆","˙"," ̇","˚"," ̊","˛"," ̨","˜"," ̃","˝"," ̋","ͺ"," ͅ","΄"," ́","ϐ","β","ϑ","θ","ϒ","Υ","ϕ","φ","ϖ","π","ϰ","κ","ϱ","ρ","ϲ","ς","ϴ","Θ","ϵ","ε","Ϲ","Σ","և","եւ","ٵ","اٴ","ٶ","وٴ","ٷ","ۇٴ","ٸ","يٴ","ำ","ํา","ຳ","ໍາ","ໜ","ຫນ","ໝ","ຫມ","ཷ","ྲཱྀ","ཹ","ླཱྀ","ẚ","aʾ","᾽"," ̓","᾿"," ̓","῀"," ͂","῾"," ̔"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","‗"," ̳","․",".","‥","..","…","...","″","′′","‴","′′′","‶","‵‵","‷","‵‵‵","‼","!!","‾"," ̅","⁇","??","⁈","?!","⁉","!?","⁗","′′′′"," "," ","₨","Rs","℀","a/c","℁","a/s","℃","°C","℅","c/o","℆","c/u","ℇ","Ɛ","℉","°F","№","No","℡","TEL","ℵ","א","ℶ","ב","ℷ","ג","ℸ","ד","℻","FAX","Ⅰ","I","Ⅱ","II","Ⅲ","III","Ⅳ","IV","Ⅴ","V","Ⅵ","VI","Ⅶ","VII","Ⅷ","VIII","Ⅸ","IX","Ⅹ","X","Ⅺ","XI","Ⅻ","XII","Ⅼ","L","Ⅽ","C","Ⅾ","D","Ⅿ","M","ⅰ","i","ⅱ","ii","ⅲ","iii","ⅳ","iv","ⅴ","v","ⅵ","vi","ⅶ","vii","ⅷ","viii","ⅸ","ix","ⅹ","x","ⅺ","xi","ⅻ","xii","ⅼ","l","ⅽ","c","ⅾ","d","ⅿ","m","∬","∫∫","∭","∫∫∫","∯","∮∮","∰","∮∮∮","⑴","(1)","⑵","(2)","⑶","(3)","⑷","(4)","⑸","(5)","⑹","(6)","⑺","(7)","⑻","(8)","⑼","(9)","⑽","(10)","⑾","(11)","⑿","(12)","⒀","(13)","⒁","(14)","⒂","(15)","⒃","(16)","⒄","(17)","⒅","(18)","⒆","(19)","⒇","(20)","⒈","1.","⒉","2.","⒊","3.","⒋","4.","⒌","5.","⒍","6.","⒎","7.","⒏","8.","⒐","9.","⒑","10.","⒒","11.","⒓","12.","⒔","13.","⒕","14.","⒖","15.","⒗","16.","⒘","17.","⒙","18.","⒚","19.","⒛","20.","⒜","(a)","⒝","(b)","⒞","(c)","⒟","(d)","⒠","(e)","⒡","(f)","⒢","(g)","⒣","(h)","⒤","(i)","⒥","(j)","⒦","(k)","⒧","(l)","⒨","(m)","⒩","(n)","⒪","(o)","⒫","(p)","⒬","(q)","⒭","(r)","⒮","(s)","⒯","(t)","⒰","(u)","⒱","(v)","⒲","(w)","⒳","(x)","⒴","(y)","⒵","(z)","⨌","∫∫∫∫","⩴","::=","⩵","==","⩶","===","⺟","母","⻳","龟","⼀","一","⼁","丨","⼂","丶","⼃","丿","⼄","乙","⼅","亅","⼆","二","⼇","亠","⼈","人","⼉","儿","⼊","入","⼋","八","⼌","冂","⼍","冖","⼎","冫","⼏","几","⼐","凵","⼑","刀","⼒","力","⼓","勹","⼔","匕","⼕","匚","⼖","匸","⼗","十","⼘","卜","⼙","卩","⼚","厂","⼛","厶","⼜","又","⼝","口","⼞","囗","⼟","土","⼠","士","⼡","夂","⼢","夊","⼣","夕","⼤","大","⼥","女","⼦","子","⼧","宀","⼨","寸","⼩","小","⼪","尢","⼫","尸","⼬","屮","⼭","山","⼮","巛","⼯","工","⼰","己","⼱","巾","⼲","干","⼳","幺","⼴","广","⼵","廴","⼶","廾","⼷","弋","⼸","弓","⼹","彐","⼺","彡","⼻","彳","⼼","心","⼽","戈","⼾","戶","⼿","手","⽀","支","⽁","攴","⽂","文","⽃","斗","⽄","斤","⽅","方","⽆","无","⽇","日","⽈","曰","⽉","月","⽊","木","⽋","欠","⽌","止","⽍","歹","⽎","殳","⽏","毋","⽐","比","⽑","毛","⽒","氏","⽓","气","⽔","水","⽕","火","⽖","爪","⽗","父","⽘","爻","⽙","爿","⽚","片","⽛","牙","⽜","牛","⽝","犬","⽞","玄","⽟","玉","⽠","瓜","⽡","瓦","⽢","甘","⽣","生","⽤","用","⽥","田","⽦","疋","⽧","疒","⽨","癶","⽩","白","⽪","皮","⽫","皿","⽬","目","⽭","矛","⽮","矢","⽯","石","⽰","示","⽱","禸","⽲","禾","⽳","穴","⽴","立","⽵","竹","⽶","米","⽷","糸","⽸","缶","⽹","网","⽺","羊","⽻","羽","⽼","老","⽽","而","⽾","耒","⽿","耳","⾀","聿","⾁","肉","⾂","臣","⾃","自","⾄","至","⾅","臼","⾆","舌","⾇","舛","⾈","舟","⾉","艮","⾊","色","⾋","艸","⾌","虍","⾍","虫","⾎","血","⾏","行","⾐","衣","⾑","襾","⾒","見","⾓","角","⾔","言","⾕","谷","⾖","豆","⾗","豕","⾘","豸","⾙","貝","⾚","赤","⾛","走","⾜","足","⾝","身","⾞","車","⾟","辛","⾠","辰","⾡","辵","⾢","邑","⾣","酉","⾤","釆","⾥","里","⾦","金","⾧","長","⾨","門","⾩","阜","⾪","隶","⾫","隹","⾬","雨","⾭","靑","⾮","非","⾯","面","⾰","革","⾱","韋","⾲","韭","⾳","音","⾴","頁","⾵","風","⾶","飛","⾷","食","⾸","首","⾹","香","⾺","馬","⾻","骨","⾼","高","⾽","髟","⾾","鬥","⾿","鬯","⿀","鬲","⿁","鬼","⿂","魚","⿃","鳥","⿄","鹵","⿅","鹿","⿆","麥","⿇","麻","⿈","黃","⿉","黍","⿊","黑","⿋","黹","⿌","黽","⿍","鼎","⿎","鼓","⿏","鼠","⿐","鼻","⿑","齊","⿒","齒","⿓","龍","⿔","龜","⿕","龠","〶","〒","〸","十","〹","卄","〺","卅","゛"," ゙","゜"," ゚","ㄱ","ᄀ","ㄲ","ᄁ","ㄳ","ᆪ","ㄴ","ᄂ","ㄵ","ᆬ","ㄶ","ᆭ","ㄷ","ᄃ","ㄸ","ᄄ","ㄹ","ᄅ","ㄺ","ᆰ","ㄻ","ᆱ","ㄼ","ᆲ","ㄽ","ᆳ","ㄾ","ᆴ","ㄿ","ᆵ","ㅀ","ᄚ","ㅁ","ᄆ","ㅂ","ᄇ","ㅃ","ᄈ","ㅄ","ᄡ","ㅅ","ᄉ","ㅆ","ᄊ","ㅇ","ᄋ","ㅈ","ᄌ","ㅉ","ᄍ","ㅊ","ᄎ","ㅋ","ᄏ","ㅌ","ᄐ","ㅍ","ᄑ","ㅎ","ᄒ","ㅏ","ᅡ","ㅐ","ᅢ","ㅑ","ᅣ","ㅒ","ᅤ","ㅓ","ᅥ","ㅔ","ᅦ","ㅕ","ᅧ","ㅖ","ᅨ","ㅗ","ᅩ","ㅘ","ᅪ","ㅙ","ᅫ","ㅚ","ᅬ","ㅛ","ᅭ","ㅜ","ᅮ","ㅝ","ᅯ","ㅞ","ᅰ","ㅟ","ᅱ","ㅠ","ᅲ","ㅡ","ᅳ","ㅢ","ᅴ","ㅣ","ᅵ","ㅤ","ᅠ","ㅥ","ᄔ","ㅦ","ᄕ","ㅧ","ᇇ","ㅨ","ᇈ","ㅩ","ᇌ","ㅪ","ᇎ","ㅫ","ᇓ","ㅬ","ᇗ","ㅭ","ᇙ","ㅮ","ᄜ","ㅯ","ᇝ","ㅰ","ᇟ","ㅱ","ᄝ","ㅲ","ᄞ","ㅳ","ᄠ","ㅴ","ᄢ","ㅵ","ᄣ","ㅶ","ᄧ","ㅷ","ᄩ","ㅸ","ᄫ","ㅹ","ᄬ","ㅺ","ᄭ","ㅻ","ᄮ","ㅼ","ᄯ","ㅽ","ᄲ","ㅾ","ᄶ","ㅿ","ᅀ","ㆀ","ᅇ","ㆁ","ᅌ","ㆂ","ᇱ","ㆃ","ᇲ","ㆄ","ᅗ","ㆅ","ᅘ","ㆆ","ᅙ","ㆇ","ᆄ","ㆈ","ᆅ","ㆉ","ᆈ","ㆊ","ᆑ","ㆋ","ᆒ","ㆌ","ᆔ","ㆍ","ᆞ","ㆎ","ᆡ","㈀","(ᄀ)","㈁","(ᄂ)","㈂","(ᄃ)","㈃","(ᄅ)","㈄","(ᄆ)","㈅","(ᄇ)","㈆","(ᄉ)","㈇","(ᄋ)","㈈","(ᄌ)","㈉","(ᄎ)","㈊","(ᄏ)","㈋","(ᄐ)","㈌","(ᄑ)","㈍","(ᄒ)","㈎","(가)","㈏","(나)","㈐","(다)","㈑","(라)","㈒","(마)","㈓","(바)","㈔","(사)","㈕","(아)","㈖","(자)","㈗","(차)","㈘","(카)","㈙","(타)","㈚","(파)","㈛","(하)","㈜","(주)","㈝","(오전)","㈞","(오후)","㈠","(一)","㈡","(二)","㈢","(三)","㈣","(四)","㈤","(五)","㈥","(六)","㈦","(七)","㈧","(八)","㈨","(九)","㈩","(十)","㈪","(月)","㈫","(火)","㈬","(水)","㈭","(木)","㈮","(金)","㈯","(土)","㈰","(日)","㈱","(株)","㈲","(有)","㈳","(社)","㈴","(名)","㈵","(特)","㈶","(財)","㈷","(祝)","㈸","(労)","㈹","(代)","㈺","(呼)","㈻","(学)","㈼","(監)","㈽","(企)","㈾","(資)","㈿","(協)","㉀","(祭)","㉁","(休)","㉂","(自)","㉃","(至)","㋀","1月","㋁","2月","㋂","3月","㋃","4月","㋄","5月","㋅","6月","㋆","7月","㋇","8月","㋈","9月","㋉","10月","㋊","11月","㋋","12月","㍘","0点","㍙","1点","㍚","2点","㍛","3点","㍜","4点","㍝","5点","㍞","6点","㍟","7点","㍠","8点","㍡","9点","㍢","10点","㍣","11点","㍤","12点","㍥","13点","㍦","14点","㍧","15点","㍨","16点","㍩","17点","㍪","18点","㍫","19点","㍬","20点","㍭","21点","㍮","22点","㍯","23点","㍰","24点","㏠","1日","㏡","2日","㏢","3日","㏣","4日","㏤","5日","㏥","6日","㏦","7日","㏧","8日","㏨","9日","㏩","10日","㏪","11日","㏫","12日","㏬","13日","㏭","14日","㏮","15日","㏯","16日","㏰","17日","㏱","18日","㏲","19日","㏳","20日","㏴","21日","㏵","22日","㏶","23日","㏷","24日","㏸","25日","㏹","26日","㏺","27日","㏻","28日","㏼","29日","㏽","30日","㏾","31日","ff","ff","fi","fi","fl","fl","ffi","ffi","ffl","ffl","ſt","ſt","st","st","ﬓ","մն","ﬔ","մե","ﬕ","մի","ﬖ","վն","ﬗ","մխ","ﭏ","אל","ﭐ","ٱ","ﭑ","ٱ","ﭒ","ٻ","ﭓ","ٻ","ﭔ","ٻ","ﭕ","ٻ","ﭖ","پ","ﭗ","پ","ﭘ","پ","ﭙ","پ","ﭚ","ڀ","ﭛ","ڀ","ﭜ","ڀ","ﭝ","ڀ","ﭞ","ٺ","ﭟ","ٺ","ﭠ","ٺ","ﭡ","ٺ","ﭢ","ٿ","ﭣ","ٿ","ﭤ","ٿ","ﭥ","ٿ","ﭦ","ٹ","ﭧ","ٹ","ﭨ","ٹ","ﭩ","ٹ","ﭪ","ڤ","ﭫ","ڤ","ﭬ","ڤ","ﭭ","ڤ","ﭮ","ڦ","ﭯ","ڦ","ﭰ","ڦ","ﭱ","ڦ","ﭲ","ڄ","ﭳ","ڄ","ﭴ","ڄ","ﭵ","ڄ","ﭶ","ڃ","ﭷ","ڃ","ﭸ","ڃ","ﭹ","ڃ","ﭺ","چ","ﭻ","چ","ﭼ","چ","ﭽ","چ","ﭾ","ڇ","ﭿ","ڇ","ﮀ","ڇ","ﮁ","ڇ","ﮂ","ڍ","ﮃ","ڍ","ﮄ","ڌ","ﮅ","ڌ","ﮆ","ڎ","ﮇ","ڎ","ﮈ","ڈ","ﮉ","ڈ","ﮊ","ژ","ﮋ","ژ","ﮌ","ڑ","ﮍ","ڑ","ﮎ","ک","ﮏ","ک","ﮐ","ک","ﮑ","ک","ﮒ","گ","ﮓ","گ","ﮔ","گ","ﮕ","گ","ﮖ","ڳ","ﮗ","ڳ","ﮘ","ڳ","ﮙ","ڳ","ﮚ","ڱ","ﮛ","ڱ","ﮜ","ڱ","ﮝ","ڱ","ﮞ","ں","ﮟ","ں","ﮠ","ڻ","ﮡ","ڻ","ﮢ","ڻ","ﮣ","ڻ","ﮤ","ۀ","ﮥ","ۀ","ﮦ","ہ","ﮧ","ہ","ﮨ","ہ","ﮩ","ہ","ﮪ","ھ","ﮫ","ھ","ﮬ","ھ","ﮭ","ھ","ﮮ","ے","ﮯ","ے","ﮰ","ۓ","ﮱ","ۓ","ﯓ","ڭ","ﯔ","ڭ","ﯕ","ڭ","ﯖ","ڭ","ﯗ","ۇ","ﯘ","ۇ","ﯙ","ۆ","ﯚ","ۆ","ﯛ","ۈ","ﯜ","ۈ","ﯝ","ٷ","ﯞ","ۋ","ﯟ","ۋ","ﯠ","ۅ","ﯡ","ۅ","ﯢ","ۉ","ﯣ","ۉ","ﯤ","ې","ﯥ","ې","ﯦ","ې","ﯧ","ې","ﯨ","ى","ﯩ","ى","ﯪ","ئا","ﯫ","ئا","ﯬ","ئە","ﯭ","ئە","ﯮ","ئو","ﯯ","ئو","ﯰ","ئۇ","ﯱ","ئۇ","ﯲ","ئۆ","ﯳ","ئۆ","ﯴ","ئۈ","ﯵ","ئۈ","ﯶ","ئې","ﯷ","ئې","ﯸ","ئې","ﯹ","ئى","ﯺ","ئى","ﯻ","ئى","ﯼ","ی","ﯽ","ی","ﯾ","ی","ﯿ","ی","ﰀ","ئج","ﰁ","ئح","ﰂ","ئم","ﰃ","ئى","ﰄ","ئي","ﰅ","بج","ﰆ","بح","ﰇ","بخ","ﰈ","بم","ﰉ","بى","ﰊ","بي","ﰋ","تج","ﰌ","تح","ﰍ","تخ","ﰎ","تم","ﰏ","تى","ﰐ","تي","ﰑ","ثج","ﰒ","ثم","ﰓ","ثى","ﰔ","ثي","ﰕ","جح","ﰖ","جم","ﰗ","حج","ﰘ","حم","ﰙ","خج","ﰚ","خح","ﰛ","خم","ﰜ","سج","ﰝ","سح","ﰞ","سخ","ﰟ","سم","ﰠ","صح","ﰡ","صم","ﰢ","ضج","ﰣ","ضح","ﰤ","ضخ","ﰥ","ضم","ﰦ","طح","ﰧ","طم","ﰨ","ظم","ﰩ","عج","ﰪ","عم","ﰫ","غج","ﰬ","غم","ﰭ","فج","ﰮ","فح","ﰯ","فخ","ﰰ","فم","ﰱ","فى","ﰲ","في","ﰳ","قح","ﰴ","قم","ﰵ","قى","ﰶ","قي","ﰷ","كا","ﰸ","كج","ﰹ","كح","ﰺ","كخ","ﰻ","كل","ﰼ","كم","ﰽ","كى","ﰾ","كي","ﰿ","لج","ﱀ","لح","ﱁ","لخ","ﱂ","لم","ﱃ","لى","ﱄ","لي","ﱅ","مج","ﱆ","مح","ﱇ","مخ","ﱈ","مم","ﱉ","مى","ﱊ","مي","ﱋ","نج","ﱌ","نح","ﱍ","نخ","ﱎ","نم","ﱏ","نى","ﱐ","ني","ﱑ","هج","ﱒ","هم","ﱓ","هى","ﱔ","هي","ﱕ","يج","ﱖ","يح","ﱗ","يخ","ﱘ","يم","ﱙ","يى","ﱚ","يي","ﱛ","ذٰ","ﱜ","رٰ","ﱝ","ىٰ","ﱞ"," ٌّ","ﱟ"," ٍّ","ﱠ"," َّ","ﱡ"," ُّ","ﱢ"," ِّ","ﱣ"," ّٰ","ﱤ","ئر","ﱥ","ئز","ﱦ","ئم","ﱧ","ئن","ﱨ","ئى","ﱩ","ئي","ﱪ","بر","ﱫ","بز","ﱬ","بم","ﱭ","بن","ﱮ","بى","ﱯ","بي","ﱰ","تر","ﱱ","تز","ﱲ","تم","ﱳ","تن","ﱴ","تى","ﱵ","تي","ﱶ","ثر","ﱷ","ثز","ﱸ","ثم","ﱹ","ثن","ﱺ","ثى","ﱻ","ثي","ﱼ","فى","ﱽ","في","ﱾ","قى","ﱿ","قي","ﲀ","كا","ﲁ","كل","ﲂ","كم","ﲃ","كى","ﲄ","كي","ﲅ","لم","ﲆ","لى","ﲇ","لي","ﲈ","ما","ﲉ","مم","ﲊ","نر","ﲋ","نز","ﲌ","نم","ﲍ","نن","ﲎ","نى","ﲏ","ني","ﲐ","ىٰ","ﲑ","ير","ﲒ","يز","ﲓ","يم","ﲔ","ين","ﲕ","يى","ﲖ","يي","ﲗ","ئج","ﲘ","ئح","ﲙ","ئخ","ﲚ","ئم","ﲛ","ئه","ﲜ","بج","ﲝ","بح","ﲞ","بخ","ﲟ","بم","ﲠ","به","ﲡ","تج","ﲢ","تح","ﲣ","تخ","ﲤ","تم","ﲥ","ته","ﲦ","ثم","ﲧ","جح","ﲨ","جم","ﲩ","حج","ﲪ","حم","ﲫ","خج","ﲬ","خم","ﲭ","سج","ﲮ","سح","ﲯ","سخ","ﲰ","سم","ﲱ","صح","ﲲ","صخ","ﲳ","صم","ﲴ","ضج","ﲵ","ضح","ﲶ","ضخ","ﲷ","ضم","ﲸ","طح","ﲹ","ظم","ﲺ","عج","ﲻ","عم","ﲼ","غج","ﲽ","غم","ﲾ","فج","ﲿ","فح","ﳀ","فخ","ﳁ","فم","ﳂ","قح","ﳃ","قم","ﳄ","كج","ﳅ","كح","ﳆ","كخ","ﳇ","كل","ﳈ","كم","ﳉ","لج","ﳊ","لح","ﳋ","لخ","ﳌ","لم","ﳍ","له","ﳎ","مج","ﳏ","مح","ﳐ","مخ","ﳑ","مم","ﳒ","نج","ﳓ","نح","ﳔ","نخ","ﳕ","نم","ﳖ","نه","ﳗ","هج","ﳘ","هم","ﳙ","هٰ","ﳚ","يج","ﳛ","يح","ﳜ","يخ","ﳝ","يم","ﳞ","يه","ﳟ","ئم","ﳠ","ئه","ﳡ","بم","ﳢ","به","ﳣ","تم","ﳤ","ته","ﳥ","ثم","ﳦ","ثه","ﳧ","سم","ﳨ","سه","ﳩ","شم","ﳪ","شه","ﳫ","كل","ﳬ","كم","ﳭ","لم","ﳮ","نم","ﳯ","نه","ﳰ","يم","ﳱ","يه","ﳲ","ـَّ","ﳳ","ـُّ","ﳴ","ـِّ","ﳵ","طى","ﳶ","طي","ﳷ","عى","ﳸ","عي","ﳹ","غى","ﳺ","غي","ﳻ","سى","ﳼ","سي","ﳽ","شى","ﳾ","شي","ﳿ","حى","ﴀ","حي","ﴁ","جى","ﴂ","جي","ﴃ","خى","ﴄ","خي","ﴅ","صى","ﴆ","صي","ﴇ","ضى","ﴈ","ضي","ﴉ","شج","ﴊ","شح","ﴋ","شخ","ﴌ","شم","ﴍ","شر","ﴎ","سر","ﴏ","صر","ﴐ","ضر","ﴑ","طى","ﴒ","طي","ﴓ","عى","ﴔ","عي","ﴕ","غى","ﴖ","غي","ﴗ","سى","ﴘ","سي","ﴙ","شى","ﴚ","شي","ﴛ","حى","ﴜ","حي","ﴝ","جى","ﴞ","جي","ﴟ","خى","ﴠ","خي","ﴡ","صى","ﴢ","صي","ﴣ","ضى","ﴤ","ضي","ﴥ","شج","ﴦ","شح","ﴧ","شخ","ﴨ","شم","ﴩ","شر","ﴪ","سر","ﴫ","صر","ﴬ","ضر","ﴭ","شج","ﴮ","شح","ﴯ","شخ","ﴰ","شم","ﴱ","سه","ﴲ","شه","ﴳ","طم","ﴴ","سج","ﴵ","سح","ﴶ","سخ","ﴷ","شج","ﴸ","شح","ﴹ","شخ","ﴺ","طم","ﴻ","ظم","ﴼ","اً","ﴽ","اً","ﵐ","تجم","ﵑ","تحج","ﵒ","تحج","ﵓ","تحم","ﵔ","تخم","ﵕ","تمج","ﵖ","تمح","ﵗ","تمخ","ﵘ","جمح","ﵙ","جمح","ﵚ","حمي","ﵛ","حمى","ﵜ","سحج","ﵝ","سجح","ﵞ","سجى","ﵟ","سمح","ﵠ","سمح","ﵡ","سمج","ﵢ","سمم","ﵣ","سمم","ﵤ","صحح","ﵥ","صحح","ﵦ","صمم","ﵧ","شحم","ﵨ","شحم","ﵩ","شجي","ﵪ","شمخ","ﵫ","شمخ","ﵬ","شمم","ﵭ","شمم","ﵮ","ضحى","ﵯ","ضخم","ﵰ","ضخم","ﵱ","طمح","ﵲ","طمح","ﵳ","طمم","ﵴ","طمي","ﵵ","عجم","ﵶ","عمم","ﵷ","عمم","ﵸ","عمى","ﵹ","غمم","ﵺ","غمي","ﵻ","غمى","ﵼ","فخم","ﵽ","فخم","ﵾ","قمح","ﵿ","قمم","ﶀ","لحم","ﶁ","لحي","ﶂ","لحى","ﶃ","لجج","ﶄ","لجج","ﶅ","لخم","ﶆ","لخم","ﶇ","لمح","ﶈ","لمح","ﶉ","محج","ﶊ","محم","ﶋ","محي","ﶌ","مجح","ﶍ","مجم","ﶎ","مخج","ﶏ","مخم","ﶒ","مجخ","ﶓ","همج","ﶔ","همم","ﶕ","نحم","ﶖ","نحى","ﶗ","نجم","ﶘ","نجم","ﶙ","نجى","ﶚ","نمي","ﶛ","نمى","ﶜ","يمم","ﶝ","يمم","ﶞ","بخي","ﶟ","تجي","ﶠ","تجى","ﶡ","تخي","ﶢ","تخى","ﶣ","تمي","ﶤ","تمى","ﶥ","جمي","ﶦ","جحى","ﶧ","جمى","ﶨ","سخى","ﶩ","صحي","ﶪ","شحي","ﶫ","ضحي","ﶬ","لجي","ﶭ","لمي","ﶮ","يحي","ﶯ","يجي","ﶰ","يمي","ﶱ","ممي","ﶲ","قمي","ﶳ","نحي","ﶴ","قمح","ﶵ","لحم","ﶶ","عمي","ﶷ","كمي","ﶸ","نجح","ﶹ","مخي","ﶺ","لجم","ﶻ","كمم","ﶼ","لجم","ﶽ","نجح","ﶾ","جحي","ﶿ","حجي","ﷀ","مجي","ﷁ","فمي","ﷂ","بحي","ﷃ","كمم","ﷄ","عجم","ﷅ","صمم","ﷆ","سخي","ﷇ","نجي","﹉","‾","﹊","‾","﹋","‾","﹌","‾","﹍","_","﹎","_","﹏","_","ﺀ","ء","ﺁ","آ","ﺂ","آ","ﺃ","أ","ﺄ","أ","ﺅ","ؤ","ﺆ","ؤ","ﺇ","إ","ﺈ","إ","ﺉ","ئ","ﺊ","ئ","ﺋ","ئ","ﺌ","ئ","ﺍ","ا","ﺎ","ا","ﺏ","ب","ﺐ","ب","ﺑ","ب","ﺒ","ب","ﺓ","ة","ﺔ","ة","ﺕ","ت","ﺖ","ت","ﺗ","ت","ﺘ","ت","ﺙ","ث","ﺚ","ث","ﺛ","ث","ﺜ","ث","ﺝ","ج","ﺞ","ج","ﺟ","ج","ﺠ","ج","ﺡ","ح","ﺢ","ح","ﺣ","ح","ﺤ","ح","ﺥ","خ","ﺦ","خ","ﺧ","خ","ﺨ","خ","ﺩ","د","ﺪ","د","ﺫ","ذ","ﺬ","ذ","ﺭ","ر","ﺮ","ر","ﺯ","ز","ﺰ","ز","ﺱ","س","ﺲ","س","ﺳ","س","ﺴ","س","ﺵ","ش","ﺶ","ش","ﺷ","ش","ﺸ","ش","ﺹ","ص","ﺺ","ص","ﺻ","ص","ﺼ","ص","ﺽ","ض","ﺾ","ض","ﺿ","ض","ﻀ","ض","ﻁ","ط","ﻂ","ط","ﻃ","ط","ﻄ","ط","ﻅ","ظ","ﻆ","ظ","ﻇ","ظ","ﻈ","ظ","ﻉ","ع","ﻊ","ع","ﻋ","ع","ﻌ","ع","ﻍ","غ","ﻎ","غ","ﻏ","غ","ﻐ","غ","ﻑ","ف","ﻒ","ف","ﻓ","ف","ﻔ","ف","ﻕ","ق","ﻖ","ق","ﻗ","ق","ﻘ","ق","ﻙ","ك","ﻚ","ك","ﻛ","ك","ﻜ","ك","ﻝ","ل","ﻞ","ل","ﻟ","ل","ﻠ","ل","ﻡ","م","ﻢ","م","ﻣ","م","ﻤ","م","ﻥ","ن","ﻦ","ن","ﻧ","ن","ﻨ","ن","ﻩ","ه","ﻪ","ه","ﻫ","ه","ﻬ","ه","ﻭ","و","ﻮ","و","ﻯ","ى","ﻰ","ى","ﻱ","ي","ﻲ","ي","ﻳ","ي","ﻴ","ي","ﻵ","لآ","ﻶ","لآ","ﻷ","لأ","ﻸ","لأ","ﻹ","لإ","ﻺ","لإ","ﻻ","لا","ﻼ","لا"]}));function reverseIfRtl(t){const r=t.length;if(r<=1||!function isRTLRangeFor(t){let r=u[13];if(t>=r.begin&&t<r.end)return!0;r=u[11];return t>=r.begin&&t<r.end}(t.charCodeAt(0)))return t;const o=[];for(let l=r-1;l>=0;l--)o.push(t[l]);return o.join("")}},(t,r,o)=>{"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.FontRendererFactory=void 0;var l=o(4),c=o(152),u=o(155),h=o(154),d=o(132);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var m=function FontRendererFactoryClosure(){function getLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}function getUshort(t,r){return t[r]<<8|t[r+1]}function getSubroutineBias(t){var r=t.length,o=32768;r<1240?o=107:r<33900&&(o=1131);return o}function parseCmap(t,r,o){var c,u,h,d=1===getUshort(t,r+2)?getLong(t,r+8):getLong(t,r+16),m=getUshort(t,r+d);if(4===m){getUshort(t,r+d+2);var g=getUshort(t,r+d+6)>>1;u=r+d+14;c=[];for(h=0;h<g;h++,u+=2)c[h]={end:getUshort(t,u)};u+=2;for(h=0;h<g;h++,u+=2)c[h].start=getUshort(t,u);for(h=0;h<g;h++,u+=2)c[h].idDelta=getUshort(t,u);for(h=0;h<g;h++,u+=2){var y=getUshort(t,u);if(0!==y){c[h].ids=[];for(var v=0,S=c[h].end-c[h].start+1;v<S;v++){c[h].ids[v]=getUshort(t,u+y);y+=2}}}return c}if(12===m){getLong(t,r+d+4);var k=getLong(t,r+d+12);u=r+d+16;c=[];for(h=0;h<k;h++){c.push({start:getLong(t,u),end:getLong(t,u+4),idDelta:getLong(t,u+8)-getLong(t,u)});u+=12}return c}throw new l.FormatError("unsupported cmap: ".concat(m))}function parseCff(t,r,o,l){var u=new c.CFFParser(new d.Stream(t,r,o-r),{},l).parse();return{glyphs:u.charStrings.objects,subrs:u.topDict.privateDict&&u.topDict.privateDict.subrsIndex&&u.topDict.privateDict.subrsIndex.objects,gsubrs:u.globalSubrIndex&&u.globalSubrIndex.objects,isCFFCIDFont:u.isCIDFont,fdSelect:u.fdSelect,fdArray:u.fdArray}}function lookupCmap(t,r){for(var o=r.codePointAt(0),l=0,c=0,u=t.length-1;c<u;){var h=c+u+1>>1;o<t[h].start?u=h-1:c=h}t[c].start<=o&&o<=t[c].end&&(l=t[c].idDelta+(t[c].ids?t[c].ids[o-t[c].start]:o)&65535);return{charCode:o,glyphId:l}}function compileGlyf(t,r,o){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function quadraticCurveTo(t,o,l,c){r.push({cmd:"quadraticCurveTo",args:[t,o,l,c]})}var l,c=0,u=(t[c]<<24|t[c+1]<<16)>>16,h=0,d=0;c+=10;if(u<0)do{l=t[c]<<8|t[c+1];var m=t[c+2]<<8|t[c+3];c+=4;var g=void 0,y=void 0;if(1&l){g=(t[c]<<24|t[c+1]<<16)>>16;y=(t[c+2]<<24|t[c+3]<<16)>>16;c+=4}else{g=t[c++];y=t[c++]}if(2&l){h=g;d=y}else{h=0;d=0}var v=1,S=1,k=0,C=0;if(8&l){v=S=(t[c]<<24|t[c+1]<<16)/1073741824;c+=2}else if(64&l){v=(t[c]<<24|t[c+1]<<16)/1073741824;S=(t[c+2]<<24|t[c+3]<<16)/1073741824;c+=4}else if(128&l){v=(t[c]<<24|t[c+1]<<16)/1073741824;k=(t[c+2]<<24|t[c+3]<<16)/1073741824;C=(t[c+4]<<24|t[c+5]<<16)/1073741824;S=(t[c+6]<<24|t[c+7]<<16)/1073741824;c+=8}var w=o.glyphs[m];if(w){r.push({cmd:"save"});r.push({cmd:"transform",args:[v,k,C,S,h,d]});compileGlyf(w,r,o);r.push({cmd:"restore"})}}while(32&l);else{var _,O,x=[];for(_=0;_<u;_++){x.push(t[c]<<8|t[c+1]);c+=2}c+=2+(t[c]<<8|t[c+1]);for(var T=x[x.length-1]+1,R=[];R.length<T;){var E=1;8&(l=t[c++])&&(E+=t[c++]);for(;E-- >0;)R.push({flags:l})}for(_=0;_<T;_++){switch(18&R[_].flags){case 0:h+=(t[c]<<24|t[c+1]<<16)>>16;c+=2;break;case 2:h-=t[c++];break;case 18:h+=t[c++]}R[_].x=h}for(_=0;_<T;_++){switch(36&R[_].flags){case 0:d+=(t[c]<<24|t[c+1]<<16)>>16;c+=2;break;case 4:d-=t[c++];break;case 36:d+=t[c++]}R[_].y=d}var D=0;for(c=0;c<u;c++){var j=x[c],M=R.slice(D,j+1);if(1&M[0].flags)M.push(M[0]);else if(1&M[M.length-1].flags)M.unshift(M[M.length-1]);else{var N={flags:1,x:(M[0].x+M[M.length-1].x)/2,y:(M[0].y+M[M.length-1].y)/2};M.unshift(N);M.push(N)}moveTo(M[0].x,M[0].y);for(_=1,O=M.length;_<O;_++)if(1&M[_].flags)lineTo(M[_].x,M[_].y);else if(1&M[_+1].flags){quadraticCurveTo(M[_].x,M[_].y,M[_+1].x,M[_+1].y);_++}else quadraticCurveTo(M[_].x,M[_].y,(M[_].x+M[_+1].x)/2,(M[_].y+M[_+1].y)/2);D=j+1}}}function compileCharString(t,r,o,c){function moveTo(t,o){r.push({cmd:"moveTo",args:[t,o]})}function lineTo(t,o){r.push({cmd:"lineTo",args:[t,o]})}function bezierCurveTo(t,o,l,c,u,h){r.push({cmd:"bezierCurveTo",args:[t,o,l,c,u,h]})}var u=[],d=0,m=0,g=0;!function parse(t){for(var y=0;y<t.length;){var v=!1,S=t[y++],k=void 0,C=void 0,w=void 0,_=void 0,O=void 0,x=void 0,T=void 0,R=void 0;switch(S){case 1:case 3:g+=u.length>>1;v=!0;break;case 4:m+=u.pop();moveTo(d,m);v=!0;break;case 5:for(;u.length>0;){d+=u.shift();m+=u.shift();lineTo(d,m)}break;case 6:for(;u.length>0;){lineTo(d+=u.shift(),m);if(0===u.length)break;m+=u.shift();lineTo(d,m)}break;case 7:for(;u.length>0;){m+=u.shift();lineTo(d,m);if(0===u.length)break;lineTo(d+=u.shift(),m)}break;case 8:for(;u.length>0;){k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m)}break;case 10:T=u.pop();R=null;if(o.isCFFCIDFont){var E=o.fdSelect.getFDIndex(c);if(E>=0&&E<o.fdArray.length){var D=o.fdArray[E],j=void 0;D.privateDict&&D.privateDict.subrsIndex&&(j=D.privateDict.subrsIndex.objects);j&&(R=j[T+=getSubroutineBias(j)])}else(0,l.warn)("Invalid fd index for glyph index.")}else R=o.subrs[T+o.subrsBias];R&&parse(R);break;case 11:return;case 12:switch(S=t[y++]){case 34:C=(k=d+u.shift())+u.shift();O=m+u.shift();d=C+u.shift();bezierCurveTo(k,m,C,O,d,O);C=(k=d+u.shift())+u.shift();d=C+u.shift();bezierCurveTo(k,O,C,m,d,m);break;case 35:k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m);k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m);u.pop();break;case 36:bezierCurveTo(k=d+u.shift(),O=m+u.shift(),C=k+u.shift(),x=O+u.shift(),d=C+u.shift(),x);bezierCurveTo(k=d+u.shift(),x,C=k+u.shift(),x+u.shift(),d=C+u.shift(),m);break;case 37:var M=d,N=m;k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m);k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C;m=_;Math.abs(d-M)>Math.abs(m-N)?d+=u.shift():m+=u.shift();bezierCurveTo(k,w,C,_,d,m);break;default:throw new l.FormatError("unknown operator: 12 ".concat(S))}break;case 14:if(u.length>=4){var L=u.pop(),U=u.pop();m=u.pop();d=u.pop();r.push({cmd:"save"});r.push({cmd:"translate",args:[d,m]});var q=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[L]]));compileCharString(o.glyphs[q.glyphId],r,o,q.glyphId);r.push({cmd:"restore"});q=lookupCmap(o.cmap,String.fromCharCode(o.glyphNameMap[h.StandardEncoding[U]]));compileCharString(o.glyphs[q.glyphId],r,o,q.glyphId)}return;case 18:g+=u.length>>1;v=!0;break;case 19:case 20:y+=(g+=u.length>>1)+7>>3;v=!0;break;case 21:m+=u.pop();moveTo(d+=u.pop(),m);v=!0;break;case 22:moveTo(d+=u.pop(),m);v=!0;break;case 23:g+=u.length>>1;v=!0;break;case 24:for(;u.length>2;){k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m)}d+=u.shift();m+=u.shift();lineTo(d,m);break;case 25:for(;u.length>6;){d+=u.shift();m+=u.shift();lineTo(d,m)}k=d+u.shift();w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d,m);break;case 26:u.length%2&&(d+=u.shift());for(;u.length>0;){k=d;w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C;m=_+u.shift();bezierCurveTo(k,w,C,_,d,m)}break;case 27:u.length%2&&(m+=u.shift());for(;u.length>0;)bezierCurveTo(k=d+u.shift(),w=m,C=k+u.shift(),_=w+u.shift(),d=C+u.shift(),m=_);break;case 28:u.push((t[y]<<24|t[y+1]<<16)>>16);y+=2;break;case 29:T=u.pop()+o.gsubrsBias;(R=o.gsubrs[T])&&parse(R);break;case 30:for(;u.length>0;){k=d;w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+(1===u.length?u.shift():0);bezierCurveTo(k,w,C,_,d,m);if(0===u.length)break;k=d+u.shift();w=m;C=k+u.shift();_=w+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d=C+(1===u.length?u.shift():0),m)}break;case 31:for(;u.length>0;){k=d+u.shift();w=m;C=k+u.shift();_=w+u.shift();m=_+u.shift();bezierCurveTo(k,w,C,_,d=C+(1===u.length?u.shift():0),m);if(0===u.length)break;k=d;w=m+u.shift();C=k+u.shift();_=w+u.shift();d=C+u.shift();m=_+(1===u.length?u.shift():0);bezierCurveTo(k,w,C,_,d,m)}break;default:if(S<32)throw new l.FormatError("unknown operator: ".concat(S));if(S<247)u.push(S-139);else if(S<251)u.push(256*(S-247)+t[y++]+108);else if(S<255)u.push(256*-(S-251)-t[y++]-108);else{u.push((t[y]<<24|t[y+1]<<16|t[y+2]<<8|t[y+3])/65536);y+=4}}v&&(u.length=0)}}(t)}var t=[],r=function(){function CompiledFont(t){_classCallCheck(this,CompiledFont);this.constructor===CompiledFont&&(0,l.unreachable)("Cannot initialize CompiledFont.");this.fontMatrix=t;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}_createClass(CompiledFont,[{key:"getPathJs",value:function getPathJs(t){var r=lookupCmap(this.cmap,t),o=this.compiledGlyphs[r.glyphId];if(!o){o=this.compileGlyph(this.glyphs[r.glyphId],r.glyphId);this.compiledGlyphs[r.glyphId]=o}void 0===this.compiledCharCodeToGlyphId[r.charCode]&&(this.compiledCharCodeToGlyphId[r.charCode]=r.glyphId);return o}},{key:"compileGlyph",value:function compileGlyph(r,o){if(!r||0===r.length||14===r[0])return t;var c=this.fontMatrix;if(this.isCFFCIDFont){var u=this.fdSelect.getFDIndex(o);if(u>=0&&u<this.fdArray.length){c=this.fdArray[u].getByName("FontMatrix")||l.FONT_IDENTITY_MATRIX}else(0,l.warn)("Invalid fd index for glyph index.")}var h=[];h.push({cmd:"save"});h.push({cmd:"transform",args:c.slice()});h.push({cmd:"scale",args:["size","-size"]});this.compileGlyphImpl(r,h,o);h.push({cmd:"restore"});return h}},{key:"compileGlyphImpl",value:function compileGlyphImpl(){(0,l.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function hasBuiltPath(t){var r=lookupCmap(this.cmap,t);return void 0!==this.compiledGlyphs[r.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[r.charCode]}}]);return CompiledFont}(),o=function(t){_inherits(TrueTypeCompiled,t);var r=_createSuper(TrueTypeCompiled);function TrueTypeCompiled(t,o,l){var c;_classCallCheck(this,TrueTypeCompiled);(c=r.call(this,l||[488e-6,0,0,488e-6,0,0])).glyphs=t;c.cmap=o;return c}_createClass(TrueTypeCompiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r){compileGlyf(t,r,this)}}]);return TrueTypeCompiled}(r),m=function(t){_inherits(Type2Compiled,t);var r=_createSuper(Type2Compiled);function Type2Compiled(t,o,l,c){var h;_classCallCheck(this,Type2Compiled);(h=r.call(this,l||[.001,0,0,.001,0,0])).glyphs=t.glyphs;h.gsubrs=t.gsubrs||[];h.subrs=t.subrs||[];h.cmap=o;h.glyphNameMap=c||(0,u.getGlyphsUnicode)();h.gsubrsBias=getSubroutineBias(h.gsubrs);h.subrsBias=getSubroutineBias(h.subrs);h.isCFFCIDFont=t.isCFFCIDFont;h.fdSelect=t.fdSelect;h.fdArray=t.fdArray;return h}_createClass(Type2Compiled,[{key:"compileGlyphImpl",value:function compileGlyphImpl(t,r,o){compileCharString(t,r,this,o)}}]);return Type2Compiled}(r);return{create:function FontRendererFactory_create(t,r){for(var c,u,h,d,g,y,v=new Uint8Array(t.data),S=getUshort(v,4),k=0,C=12;k<S;k++,C+=16){var w=(0,l.bytesToString)(v.subarray(C,C+4)),_=getLong(v,C+8),O=getLong(v,C+12);switch(w){case"cmap":c=parseCmap(v,_);break;case"glyf":u=v.subarray(_,_+O);break;case"loca":h=v.subarray(_,_+O);break;case"head":y=getUshort(v,_+18);g=getUshort(v,_+50);break;case"CFF ":d=parseCff(v,_,_+O,r)}}if(u){var x=y?[1/y,0,0,1/y,0,0]:t.fontMatrix;return new o(function parseGlyfTable(t,r,o){var l,c;if(o){l=4;c=function fontItemDecodeLong(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}}else{l=2;c=function fontItemDecode(t,r){return t[r]<<9|t[r+1]<<1}}for(var u=[],h=c(r,0),d=l;d<r.length;d+=l){var m=c(r,d);u.push(t.subarray(h,m));h=m}return u}(u,h,g),c,x)}return new m(d,c,t.fontMatrix,t.glyphNameMap)}}}();r.FontRendererFactory=m},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Type1Parser=void 0;var l=o(154),c=o(128),u=o(132),h=o(4);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function Type1CharStringClosure(){var t=[4],r=[5],o=[6],l=[7],c=[8],u=[12,35],d=[14],m=[21],g=[22],y=[30],v=[31];return function(){function Type1CharString(){_classCallCheck(this,Type1CharString);this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}_createClass(Type1CharString,[{key:"convert",value:function convert(S,k,C){for(var w,_,O,x=S.length,T=!1,R=0;R<x;R++){var E=S[R];if(E<32){12===E&&(E=(E<<8)+S[++R]);switch(E){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){T=!0;break}var D=this.stack.pop();this.stack.push(0,D);break}T=this.executeCommand(1,t);break;case 5:T=this.executeCommand(2,r);break;case 6:T=this.executeCommand(1,o);break;case 7:T=this.executeCommand(1,l);break;case 8:T=this.executeCommand(6,c);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){T=!0;break}if(!k[O=this.stack.pop()]){T=!0;break}T=this.convert(k[O],k,C);break;case 11:return T;case 13:if(this.stack.length<2){T=!0;break}w=this.stack.pop();_=this.stack.pop();this.lsb=_;this.width=w;this.stack.push(w,_);T=this.executeCommand(2,g);break;case 14:this.output.push(d[0]);break;case 21:if(this.flexing)break;T=this.executeCommand(2,m);break;case 22:if(this.flexing){this.stack.push(0);break}T=this.executeCommand(1,g);break;case 30:T=this.executeCommand(4,y);break;case 31:T=this.executeCommand(4,v);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:if(C){var j=this.stack[this.stack.length-5];this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-j;T=this.executeCommand(0,d)}else T=this.executeCommand(4,d);break;case 3079:if(this.stack.length<4){T=!0;break}this.stack.pop();w=this.stack.pop();var M=this.stack.pop();_=this.stack.pop();this.lsb=_;this.width=w;this.stack.push(w,_,M);T=this.executeCommand(3,m);break;case 3084:if(this.stack.length<2){T=!0;break}var N=this.stack.pop(),L=this.stack.pop();this.stack.push(L/N);break;case 3088:if(this.stack.length<2){T=!0;break}O=this.stack.pop();var U=this.stack.pop();if(0===O&&3===U){var q=this.stack.splice(this.stack.length-17,17);this.stack.push(q[2]+q[0],q[3]+q[1],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14]);T=this.executeCommand(13,u,!0);this.flexing=!1;this.stack.push(q[15],q[16])}else 1===O&&0===U&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,h.warn)('Unknown type 1 charstring command of "'+E+'"')}if(T)break}else{E<=246?E-=139:E=E<=250?256*(E-247)+S[++R]+108:E<=254?-256*(E-251)-S[++R]-108:(255&S[++R])<<24|(255&S[++R])<<16|(255&S[++R])<<8|(255&S[++R])<<0;this.stack.push(E)}}return T}},{key:"executeCommand",value:function executeCommand(t,r,o){var l=this.stack.length;if(t>l)return!0;for(var c=l-t,u=c;u<l;u++){var h=this.stack[u];if(Number.isInteger(h))this.output.push(28,h>>8&255,255&h);else{h=65536*h|0;this.output.push(255,h>>24&255,h>>16&255,h>>8&255,255&h)}}this.output.push.apply(this.output,r);o?this.stack.splice(c,t):this.stack.length=0;return!1}}]);return Type1CharString}()}(),m=function Type1ParserClosure(){function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function decrypt(t,r,o){if(o>=t.length)return new Uint8Array(0);var l,c,u=0|r;for(l=0;l<o;l++)u=52845*(t[l]+u)+22719&65535;var h=t.length-o,d=new Uint8Array(h);for(l=o,c=0;c<h;l++,c++){var m=t[l];d[c]=m^u>>8;u=52845*(m+u)+22719&65535}return d}function isSpecial(t){return 47===t||91===t||93===t||123===t||125===t||40===t||41===t}return function(){function Type1Parser(t,r,o){_classCallCheck(this,Type1Parser);if(r){var l=t.getBytes(),h=!((isHexDigit(l[0])||(0,c.isWhiteSpace)(l[0]))&&isHexDigit(l[1])&&isHexDigit(l[2])&&isHexDigit(l[3])&&isHexDigit(l[4])&&isHexDigit(l[5])&&isHexDigit(l[6])&&isHexDigit(l[7]));t=new u.Stream(h?decrypt(l,55665,4):function decryptAscii(t,r,o){var l,c,u=0|r,h=t.length,d=new Uint8Array(h>>>1);for(l=0,c=0;l<h;l++){var m=t[l];if(isHexDigit(m)){l++;for(var g=void 0;l<h&&!isHexDigit(g=t[l]);)l++;if(l<h){var y=parseInt(String.fromCharCode(m,g),16);d[c++]=y^u>>8;u=52845*(y+u)+22719&65535}}}return d.slice(o,c)}(l,55665,4))}this.seacAnalysisEnabled=!!o;this.stream=t;this.nextChar()}_createClass(Type1Parser,[{key:"readNumberArray",value:function readNumberArray(){this.getToken();for(var t=[];;){var r=this.getToken();if(null===r||"]"===r||"}"===r)break;t.push(parseFloat(r||0))}return t}},{key:"readNumber",value:function readNumber(){var t=this.getToken();return parseFloat(t||0)}},{key:"readInt",value:function readInt(){var t=this.getToken();return 0|parseInt(t||0,10)}},{key:"readBoolean",value:function readBoolean(){return"true"===this.getToken()?1:0}},{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(-1===r)return null;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!(0,c.isWhiteSpace)(r))break;r=this.nextChar()}if(isSpecial(r)){this.nextChar();return String.fromCharCode(r)}var o="";do{o+=String.fromCharCode(r);r=this.nextChar()}while(r>=0&&!(0,c.isWhiteSpace)(r)&&!isSpecial(r));return o}},{key:"readCharStrings",value:function readCharStrings(t,r){return-1===r?t:decrypt(t,4330,r)}},{key:"extractFontProgram",value:function extractFontProgram(t){var r=this.stream,o=[],l=[],c=Object.create(null);c.lenIV=4;for(var u,h,m,g,y,v={subrs:[],charstrings:[],properties:{privateData:c}};null!==(u=this.getToken());)if("/"===u)switch(u=this.getToken()){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;null!==(u=this.getToken())&&"end"!==u;)if("/"===u){var S=this.getToken();h=this.readInt();this.getToken();m=h>0?r.getBytes(h):new Uint8Array(0);g=v.properties.privateData.lenIV;y=this.readCharStrings(m,g);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();l.push({glyph:S,encoded:y})}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===this.getToken();){var k=this.readInt();h=this.readInt();this.getToken();m=h>0?r.getBytes(h):new Uint8Array(0);g=v.properties.privateData.lenIV;y=this.readCharStrings(m,g);this.nextChar();"noaccess"===(u=this.getToken())&&this.getToken();o[k]=y}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var C=this.readNumberArray();C.length>0&&C.length,0;break;case"StemSnapH":case"StemSnapV":v.properties.privateData[u]=this.readNumberArray();break;case"StdHW":case"StdVW":v.properties.privateData[u]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":v.properties.privateData[u]=this.readNumber();break;case"ForceBold":v.properties.privateData[u]=this.readBoolean()}for(var w=0;w<l.length;w++){var _=l[w].glyph;y=l[w].encoded;var O=new d,x=O.convert(y,o,this.seacAnalysisEnabled),T=O.output;x&&(T=[14]);var R={glyphName:_,charstring:T,width:O.width,lsb:O.lsb,seac:O.seac};".notdef"===_?v.charstrings.unshift(R):v.charstrings.push(R);if(t.builtInEncoding){var E=t.builtInEncoding.indexOf(_);E>-1&&void 0===t.widths[E]&&E>=t.firstChar&&E<=t.lastChar&&(t.widths[E]=O.width)}}return v}},{key:"extractFontHeader",value:function extractFontHeader(t){for(var r;null!==(r=this.getToken());)if("/"===r)switch(r=this.getToken()){case"FontMatrix":var o=this.readNumberArray();t.fontMatrix=o;break;case"Encoding":var c=this.getToken(),u=void 0;if(/^\d+$/.test(c)){u=[];var h=0|parseInt(c,10);this.getToken();for(var d=0;d<h;d++){r=this.getToken();for(;"dup"!==r&&"def"!==r;)if(null===(r=this.getToken()))return;if("def"===r)break;var m=this.readInt();this.getToken();var g=this.getToken();u[m]=g;this.getToken()}}else u=(0,l.getEncoding)(c);t.builtInEncoding=u;break;case"FontBBox":var y=this.readNumberArray();t.ascent=Math.max(y[3],y[1]);t.descent=Math.min(y[1],y[3]);t.ascentScaled=!0}}}]);return Type1Parser}()}();r.Type1Parser=m},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getTilingPatternIR=function getTilingPatternIR(t,r,o){var c=r.getArray("Matrix"),u=l.Util.normalizeRect(r.getArray("BBox")),h=r.get("XStep"),d=r.get("YStep"),m=r.get("PaintType"),g=r.get("TilingType");if(u[2]-u[0]==0||u[3]-u[1]==0)throw new l.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(u,"]."));return["TilingPattern",o,t,c,u,h,d,m,g]};r.Pattern=void 0;var l=o(4),c=o(143),u=o(125),h=o(128);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t,r)||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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var d=2,m=3,g=4,y=5,v=6,S=7,k=function PatternClosure(){function Pattern(){(0,l.unreachable)("should not call Pattern constructor")}Pattern.prototype={getPattern:function Pattern_getPattern(t){(0,l.unreachable)("Should not call Pattern.getStyle: ".concat(t))}};Pattern.parseShading=function(t,r,o,c,k,w,_){var O=(0,u.isStream)(t)?t.dict:t,x=O.get("ShadingType");try{switch(x){case d:case m:return new C.RadialAxial(O,r,o,c,w,_);case g:case y:case v:case S:return new C.Mesh(t,r,o,c,w,_);default:throw new l.FormatError("Unsupported ShadingType: "+x)}}catch(t){if(t instanceof h.MissingDataException)throw t;k.send("UnsupportedFeature",{featureId:l.UNSUPPORTED_FEATURES.shadingPattern});(0,l.warn)(t);return new C.Dummy}};return Pattern}();r.Pattern=k;var C={SMALL_NUMBER:1e-6};C.RadialAxial=function RadialAxialClosure(){function RadialAxial(t,r,o,u,h,d){this.matrix=r;this.coordsArr=t.getArray("Coords");this.shadingType=t.get("ShadingType");this.type="Pattern";var g=c.ColorSpace.parse({cs:t.getRaw("ColorSpace")||t.getRaw("CS"),xref:o,resources:u,pdfFunctionFactory:h,localColorSpaceCache:d});this.cs=g;var y=t.getArray("BBox");Array.isArray(y)&&4===y.length?this.bbox=l.Util.normalizeRect(y):this.bbox=null;var v=0,S=1;if(t.has("Domain")){var k=t.getArray("Domain");v=k[0];S=k[1]}var w=!1,_=!1;if(t.has("Extend")){var O=t.getArray("Extend");w=O[0];_=O[1]}if(!(this.shadingType!==m||w&&_)){var x=_slicedToArray(this.coordsArr,6),T=x[0],R=x[1],E=x[2],D=x[3],j=x[4],M=x[5],N=Math.hypot(T-D,R-j);E<=M+N&&M<=E+N&&(0,l.warn)("Unsupported radial gradient.")}this.extendStart=w;this.extendEnd=_;var L=t.getRaw("Function"),U=h.createFromArray(L),q=(S-v)/10,X=this.colorStops=[];if(v>=S||q<=0)(0,l.info)("Bad shading domain.");else{for(var W,H=new Float32Array(g.numComps),z=new Float32Array(1),G=0;G<=10;G++){z[0]=v+G*q;U(z,0,H,0);W=g.getRgb(H,0);var V=l.Util.makeHexColor(W[0],W[1],W[2]);X.push([G/10,V])}var $="transparent";if(t.has("Background")){W=g.getRgb(t.get("Background"),0);$=l.Util.makeHexColor(W[0],W[1],W[2])}if(!w){X.unshift([0,$]);X[1][0]+=C.SMALL_NUMBER}if(!_){X[X.length-1][0]-=C.SMALL_NUMBER;X.push([1,$])}this.colorStops=X}}RadialAxial.prototype={getIR:function RadialAxial_getIR(){var t,r,o,c,u,h=this.coordsArr,g=this.shadingType;if(g===d){r=[h[0],h[1]];o=[h[2],h[3]];c=null;u=null;t="axial"}else if(g===m){r=[h[0],h[1]];o=[h[3],h[4]];c=h[2];u=h[5];t="radial"}else(0,l.unreachable)("getPattern type unknown: ".concat(g));var y=this.matrix;if(y){r=l.Util.applyTransform(r,y);o=l.Util.applyTransform(o,y);if(g===m){var v=l.Util.singularValueDecompose2dScale(y);c*=v[0];u*=v[1]}}return["RadialAxial",t,this.bbox,this.colorStops,r,o,c,u]}};return RadialAxial}();C.Mesh=function MeshClosure(){function MeshStreamReader(t,r){this.stream=t;this.context=r;this.buffer=0;this.bufferLength=0;var o=r.numComps;this.tmpCompsBuf=new Float32Array(o);var l=r.colorSpace.numComps;this.tmpCsCompsBuf=r.colorFn?new Float32Array(l):this.tmpCompsBuf}MeshStreamReader.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var t=this.stream.getByte();if(t<0)return!1;this.buffer=t;this.bufferLength=8;return!0},readBits:function MeshStreamReader_readBits(t){var r=this.buffer,o=this.bufferLength;if(32===t){if(0===o)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;r=r<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var l=this.stream.getByte();this.buffer=l&(1<<o)-1;return(r<<8-o|(255&l)>>o)>>>0}if(8===t&&0===o)return this.stream.getByte();for(;o<t;){r=r<<8|this.stream.getByte();o+=8}o-=t;this.bufferLength=o;this.buffer=r&(1<<o)-1;return r>>o},align:function MeshStreamReader_align(){this.buffer=0;this.bufferLength=0},readFlag:function MeshStreamReader_readFlag(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function MeshStreamReader_readCoordinate(){var t=this.context.bitsPerCoordinate,r=this.readBits(t),o=this.readBits(t),l=this.context.decode,c=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[r*c*(l[1]-l[0])+l[0],o*c*(l[3]-l[2])+l[2]]},readComponents:function MeshStreamReader_readComponents(){for(var t=this.context.numComps,r=this.context.bitsPerComponent,o=r<32?1/((1<<r)-1):2.3283064365386963e-10,l=this.context.decode,c=this.tmpCompsBuf,u=0,h=4;u<t;u++,h+=2){var d=this.readBits(r);c[u]=d*o*(l[h+1]-l[h])+l[h]}var m=this.tmpCsCompsBuf;this.context.colorFn&&this.context.colorFn(c,0,m,0);return this.context.colorSpace.getRgb(m,0)}};var t=function getBClosure(){var t=[];return function getB(r){t[r]||(t[r]=function buildB(t){for(var r=[],o=0;o<=t;o++){var l=o/t,c=1-l;r.push(new Float32Array([c*c*c,3*l*c*c,3*l*l*c,l*l*l]))}return r}(r));return t[r]}}();function buildFigureFromPatch(r,o){var c=r.figures[o];(0,l.assert)("patch"===c.type,"Unexpected patch mesh figure");var u=r.coords,h=r.colors,d=c.coords,m=c.colors,g=Math.min(u[d[0]][0],u[d[3]][0],u[d[12]][0],u[d[15]][0]),y=Math.min(u[d[0]][1],u[d[3]][1],u[d[12]][1],u[d[15]][1]),v=Math.max(u[d[0]][0],u[d[3]][0],u[d[12]][0],u[d[15]][0]),S=Math.max(u[d[0]][1],u[d[3]][1],u[d[12]][1],u[d[15]][1]),k=Math.ceil(20*(v-g)/(r.bounds[2]-r.bounds[0]));k=Math.max(3,Math.min(20,k));var C=Math.ceil(20*(S-y)/(r.bounds[3]-r.bounds[1]));C=Math.max(3,Math.min(20,C));for(var w=k+1,_=new Int32Array((C+1)*w),O=new Int32Array((C+1)*w),x=0,T=new Uint8Array(3),R=new Uint8Array(3),E=h[m[0]],D=h[m[1]],j=h[m[2]],M=h[m[3]],N=t(C),L=t(k),U=0;U<=C;U++){T[0]=(E[0]*(C-U)+j[0]*U)/C|0;T[1]=(E[1]*(C-U)+j[1]*U)/C|0;T[2]=(E[2]*(C-U)+j[2]*U)/C|0;R[0]=(D[0]*(C-U)+M[0]*U)/C|0;R[1]=(D[1]*(C-U)+M[1]*U)/C|0;R[2]=(D[2]*(C-U)+M[2]*U)/C|0;for(var q=0;q<=k;q++,x++)if(0!==U&&U!==C||0!==q&&q!==k){for(var X=0,W=0,H=0,z=0;z<=3;z++)for(var G=0;G<=3;G++,H++){var V=N[U][z]*L[q][G];X+=u[d[H]][0]*V;W+=u[d[H]][1]*V}_[x]=u.length;u.push([X,W]);O[x]=h.length;var $=new Uint8Array(3);$[0]=(T[0]*(k-q)+R[0]*q)/k|0;$[1]=(T[1]*(k-q)+R[1]*q)/k|0;$[2]=(T[2]*(k-q)+R[2]*q)/k|0;h.push($)}}_[0]=d[0];O[0]=m[0];_[k]=d[3];O[k]=m[1];_[w*C]=d[12];O[w*C]=m[2];_[w*C+k]=d[15];O[w*C+k]=m[3];r.figures[o]={type:"lattice",coords:_,colors:O,verticesPerRow:w}}function updateBounds(t){for(var r=t.coords[0][0],o=t.coords[0][1],l=r,c=o,u=1,h=t.coords.length;u<h;u++){var d=t.coords[u][0],m=t.coords[u][1];r=r>d?d:r;o=o>m?m:o;l=l<d?d:l;c=c<m?m:c}t.bounds=[r,o,l,c]}function Mesh(t,r,o,h,d,m){if(!(0,u.isStream)(t))throw new l.FormatError("Mesh data is not a stream");var k=t.dict;this.matrix=r;this.shadingType=k.get("ShadingType");this.type="Pattern";var C=k.getArray("BBox");Array.isArray(C)&&4===C.length?this.bbox=l.Util.normalizeRect(C):this.bbox=null;var w=c.ColorSpace.parse({cs:k.getRaw("ColorSpace")||k.getRaw("CS"),xref:o,resources:h,pdfFunctionFactory:d,localColorSpaceCache:m});this.cs=w;this.background=k.has("Background")?w.getRgb(k.get("Background"),0):null;var _=k.getRaw("Function"),O=_?d.createFromArray(_):null;this.coords=[];this.colors=[];this.figures=[];var x=new MeshStreamReader(t,{bitsPerCoordinate:k.get("BitsPerCoordinate"),bitsPerComponent:k.get("BitsPerComponent"),bitsPerFlag:k.get("BitsPerFlag"),decode:k.getArray("Decode"),colorFn:O,colorSpace:w,numComps:O?1:w.numComps}),T=!1;switch(this.shadingType){case g:!function decodeType4Shading(t,r){for(var o=t.coords,c=t.colors,u=[],h=[],d=0;r.hasData;){var m=r.readFlag(),g=r.readCoordinate(),y=r.readComponents();if(0===d){if(!(0<=m&&m<=2))throw new l.FormatError("Unknown type4 flag");switch(m){case 0:d=3;break;case 1:h.push(h[h.length-2],h[h.length-1]);d=1;break;case 2:h.push(h[h.length-3],h[h.length-1]);d=1}u.push(m)}h.push(o.length);o.push(g);c.push(y);d--;r.align()}t.figures.push({type:"triangles",coords:new Int32Array(h),colors:new Int32Array(h)})}(this,x);break;case y:var R=0|k.get("VerticesPerRow");if(R<2)throw new l.FormatError("Invalid VerticesPerRow");!function decodeType5Shading(t,r,o){for(var l=t.coords,c=t.colors,u=[];r.hasData;){var h=r.readCoordinate(),d=r.readComponents();u.push(l.length);l.push(h);c.push(d)}t.figures.push({type:"lattice",coords:new Int32Array(u),colors:new Int32Array(u),verticesPerRow:o})}(this,x,R);break;case v:!function decodeType6Shading(t,r){for(var o=t.coords,c=t.colors,u=new Int32Array(16),h=new Int32Array(4);r.hasData;){var d=r.readFlag();if(!(0<=d&&d<=3))throw new l.FormatError("Unknown type6 flag");for(var m=o.length,g=0,y=0!==d?8:12;g<y;g++)o.push(r.readCoordinate());for(var v=c.length,S=0,k=0!==d?2:4;S<k;S++)c.push(r.readComponents());var C=void 0,w=void 0,_=void 0,O=void 0;switch(d){case 0:u[12]=m+3;u[13]=m+4;u[14]=m+5;u[15]=m+6;u[8]=m+2;u[11]=m+7;u[4]=m+1;u[7]=m+8;u[0]=m;u[1]=m+11;u[2]=m+10;u[3]=m+9;h[2]=v+1;h[3]=v+2;h[0]=v;h[1]=v+3;break;case 1:C=u[12];w=u[13];_=u[14];O=u[15];u[12]=O;u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=_;u[11]=m+3;u[4]=w;u[7]=m+4;u[0]=C;u[1]=m+7;u[2]=m+6;u[3]=m+5;C=h[2];w=h[3];h[2]=w;h[3]=v;h[0]=C;h[1]=v+1;break;case 2:C=u[15];w=u[11];u[12]=u[3];u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=u[7];u[11]=m+3;u[4]=w;u[7]=m+4;u[0]=C;u[1]=m+7;u[2]=m+6;u[3]=m+5;C=h[3];h[2]=h[1];h[3]=v;h[0]=C;h[1]=v+1;break;case 3:u[12]=u[0];u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=u[1];u[11]=m+3;u[4]=u[2];u[7]=m+4;u[0]=u[3];u[1]=m+7;u[2]=m+6;u[3]=m+5;h[2]=h[0];h[3]=v;h[0]=h[1];h[1]=v+1}u[5]=o.length;o.push([(-4*o[u[0]][0]-o[u[15]][0]+6*(o[u[4]][0]+o[u[1]][0])-2*(o[u[12]][0]+o[u[3]][0])+3*(o[u[13]][0]+o[u[7]][0]))/9,(-4*o[u[0]][1]-o[u[15]][1]+6*(o[u[4]][1]+o[u[1]][1])-2*(o[u[12]][1]+o[u[3]][1])+3*(o[u[13]][1]+o[u[7]][1]))/9]);u[6]=o.length;o.push([(-4*o[u[3]][0]-o[u[12]][0]+6*(o[u[2]][0]+o[u[7]][0])-2*(o[u[0]][0]+o[u[15]][0])+3*(o[u[4]][0]+o[u[14]][0]))/9,(-4*o[u[3]][1]-o[u[12]][1]+6*(o[u[2]][1]+o[u[7]][1])-2*(o[u[0]][1]+o[u[15]][1])+3*(o[u[4]][1]+o[u[14]][1]))/9]);u[9]=o.length;o.push([(-4*o[u[12]][0]-o[u[3]][0]+6*(o[u[8]][0]+o[u[13]][0])-2*(o[u[0]][0]+o[u[15]][0])+3*(o[u[11]][0]+o[u[1]][0]))/9,(-4*o[u[12]][1]-o[u[3]][1]+6*(o[u[8]][1]+o[u[13]][1])-2*(o[u[0]][1]+o[u[15]][1])+3*(o[u[11]][1]+o[u[1]][1]))/9]);u[10]=o.length;o.push([(-4*o[u[15]][0]-o[u[0]][0]+6*(o[u[11]][0]+o[u[14]][0])-2*(o[u[12]][0]+o[u[3]][0])+3*(o[u[2]][0]+o[u[8]][0]))/9,(-4*o[u[15]][1]-o[u[0]][1]+6*(o[u[11]][1]+o[u[14]][1])-2*(o[u[12]][1]+o[u[3]][1])+3*(o[u[2]][1]+o[u[8]][1]))/9]);t.figures.push({type:"patch",coords:new Int32Array(u),colors:new Int32Array(h)})}}(this,x);T=!0;break;case S:!function decodeType7Shading(t,r){for(var o=t.coords,c=t.colors,u=new Int32Array(16),h=new Int32Array(4);r.hasData;){var d=r.readFlag();if(!(0<=d&&d<=3))throw new l.FormatError("Unknown type7 flag");for(var m=o.length,g=0,y=0!==d?12:16;g<y;g++)o.push(r.readCoordinate());for(var v=c.length,S=0,k=0!==d?2:4;S<k;S++)c.push(r.readComponents());var C=void 0,w=void 0,_=void 0,O=void 0;switch(d){case 0:u[12]=m+3;u[13]=m+4;u[14]=m+5;u[15]=m+6;u[8]=m+2;u[9]=m+13;u[10]=m+14;u[11]=m+7;u[4]=m+1;u[5]=m+12;u[6]=m+15;u[7]=m+8;u[0]=m;u[1]=m+11;u[2]=m+10;u[3]=m+9;h[2]=v+1;h[3]=v+2;h[0]=v;h[1]=v+3;break;case 1:C=u[12];w=u[13];_=u[14];O=u[15];u[12]=O;u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=_;u[9]=m+9;u[10]=m+10;u[11]=m+3;u[4]=w;u[5]=m+8;u[6]=m+11;u[7]=m+4;u[0]=C;u[1]=m+7;u[2]=m+6;u[3]=m+5;C=h[2];w=h[3];h[2]=w;h[3]=v;h[0]=C;h[1]=v+1;break;case 2:C=u[15];w=u[11];u[12]=u[3];u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=u[7];u[9]=m+9;u[10]=m+10;u[11]=m+3;u[4]=w;u[5]=m+8;u[6]=m+11;u[7]=m+4;u[0]=C;u[1]=m+7;u[2]=m+6;u[3]=m+5;C=h[3];h[2]=h[1];h[3]=v;h[0]=C;h[1]=v+1;break;case 3:u[12]=u[0];u[13]=m+0;u[14]=m+1;u[15]=m+2;u[8]=u[1];u[9]=m+9;u[10]=m+10;u[11]=m+3;u[4]=u[2];u[5]=m+8;u[6]=m+11;u[7]=m+4;u[0]=u[3];u[1]=m+7;u[2]=m+6;u[3]=m+5;h[2]=h[0];h[3]=v;h[0]=h[1];h[1]=v+1}t.figures.push({type:"patch",coords:new Int32Array(u),colors:new Int32Array(h)})}}(this,x);T=!0;break;default:(0,l.unreachable)("Unsupported mesh type.")}if(T){updateBounds(this);for(var E=0,D=this.figures.length;E<D;E++)buildFigureFromPatch(this,E)}updateBounds(this);!function packData(t){var r,o,l,c,u=t.coords,h=new Float32Array(2*u.length);for(r=0,l=0,o=u.length;r<o;r++){var d=u[r];h[l++]=d[0];h[l++]=d[1]}t.coords=h;var m=t.colors,g=new Uint8Array(3*m.length);for(r=0,l=0,o=m.length;r<o;r++){var y=m[r];g[l++]=y[0];g[l++]=y[1];g[l++]=y[2]}t.colors=g;var v=t.figures;for(r=0,o=v.length;r<o;r++){var S=v[r],k=S.coords,C=S.colors;for(l=0,c=k.length;l<c;l++){k[l]*=2;C[l]*=3}}}(this)}Mesh.prototype={getIR:function Mesh_getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}};return Mesh}();C.Dummy=function DummyClosure(){function Dummy(){this.type="Pattern"}Dummy.prototype={getIR:function Dummy_getIR(){return["Dummy"]}};return Dummy}()},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isPDFFunction=function isPDFFunction(t){var r;if("object"!==_typeof(t))return!1;if((0,l.isDict)(t))r=t;else{if(!(0,l.isStream)(t))return!1;r=t.dict}return r.has("FunctionType")};r.PostScriptEvaluator=r.PostScriptCompiler=r.PDFFunctionFactory=void 0;var l=o(125),c=o(4),u=o(162),h=o(144);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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}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 _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=function(){function PDFFunctionFactory(t){var r=t.xref,o=t.isEvalSupported,l=void 0===o||o;_classCallCheck(this,PDFFunctionFactory);this.xref=r;this.isEvalSupported=!1!==l}_createClass(PDFFunctionFactory,[{key:"create",value:function create(t){var r=this.getCached(t);if(r)return r;var o=m.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof l.Ref?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"createFromArray",value:function createFromArray(t){var r=this.getCached(t);if(r)return r;var o=m.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof l.Ref?this.xref.fetch(t):t});this._cache(t,o);return o}},{key:"getCached",value:function getCached(t){var r;t instanceof l.Ref?r=t:t instanceof l.Dict?r=t.objId:(0,l.isStream)(t)&&(r=t.dict&&t.dict.objId);if(r){var o=this._localFunctionCache.getByRef(r);if(o)return o}return null}},{key:"_cache",value:function _cache(t,r){if(!r)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');var o;t instanceof l.Ref?o=t:t instanceof l.Dict?o=t.objId:(0,l.isStream)(t)&&(o=t.dict&&t.dict.objId);o&&this._localFunctionCache.set(null,o,r)}},{key:"_localFunctionCache",get:function get(){return(0,c.shadow)(this,"_localFunctionCache",new h.LocalFunctionCache)}}]);return PDFFunctionFactory}();r.PDFFunctionFactory=d;function toNumberArray(t){if(!Array.isArray(t))return null;for(var r=t.length,o=0;o<r;o++)if("number"!=typeof t[o]){for(var l=new Array(r),c=0;c<r;c++)l[c]=+t[c];return l}return t}var m=function PDFFunctionClosure(){return{getSampleArray:function getSampleArray(t,r,o,l){var c,u,h=1;for(c=0,u=t.length;c<u;c++)h*=t[c];h*=r;var d=new Array(h),m=0,g=0,y=1/(Math.pow(2,o)-1),v=l.getBytes((h*o+7)/8),S=0;for(c=0;c<h;c++){for(;m<o;){g<<=8;g|=v[S++];m+=8}m-=o;d[c]=(g>>m)*y;g&=(1<<m)-1}return d},getIR:function getIR(t){var r=t.xref,o=t.isEvalSupported,l=t.fn,u=l.dict;u||(u=l);var h=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][u.get("FunctionType")];if(!h)throw new c.FormatError("Unknown type of function");return h.call(this,{xref:r,isEvalSupported:o,fn:l,dict:u})},fromIR:function fromIR(t){var r=t.xref,o=t.isEvalSupported,l=t.IR;switch(l[0]){case 0:return this.constructSampledFromIR({xref:r,isEvalSupported:o,IR:l});case 2:return this.constructInterpolatedFromIR({xref:r,isEvalSupported:o,IR:l});case 3:return this.constructStichedFromIR({xref:r,isEvalSupported:o,IR:l});default:return this.constructPostScriptFromIR({xref:r,isEvalSupported:o,IR:l})}},parse:function parse(t){var r=t.xref,o=t.isEvalSupported,l=t.fn,c=this.getIR({xref:r,isEvalSupported:o,fn:l});return this.fromIR({xref:r,isEvalSupported:o,IR:c})},parseArray:function parseArray(t){var r=t.xref,o=t.isEvalSupported,l=t.fnObj;if(!Array.isArray(l))return this.parse({xref:r,isEvalSupported:o,fn:l});for(var c=[],u=0,h=l.length;u<h;u++)c.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(l[u])}));return function(t,r,o,l){for(var u=0,h=c.length;u<h;u++)c[u](t,r,o,l+u)}},constructSampled:function constructSampled(t){t.xref,t.isEvalSupported;var r=t.fn,o=t.dict;function toMultiArray(t){for(var r=t.length,o=[],l=0,c=0;c<r;c+=2){o[l]=[t[c],t[c+1]];++l}return o}var l=toNumberArray(o.getArray("Domain")),u=toNumberArray(o.getArray("Range"));if(!l||!u)throw new c.FormatError("No domain or range");var h=l.length/2,d=u.length/2;l=toMultiArray(l);u=toMultiArray(u);var m=toNumberArray(o.getArray("Size")),g=o.get("BitsPerSample"),y=o.get("Order")||1;1!==y&&(0,c.info)("No support for cubic spline interpolation: "+y);var v=toNumberArray(o.getArray("Encode"));if(v)v=toMultiArray(v);else{v=[];for(var S=0;S<h;++S)v.push([0,m[S]-1])}var k=toNumberArray(o.getArray("Decode"));return[0,h,l,v,k=k?toMultiArray(k):u,this.getSampleArray(m,d,g,r),m,d,Math.pow(2,g)-1,u]},constructSampledFromIR:function constructSampledFromIR(t){t.xref,t.isEvalSupported;var r=t.IR;function interpolate(t,r,o,l,c){return l+(c-l)/(o-r)*(t-r)}return function constructSampledFromIRResult(t,o,l,c){var u,h,d=r[1],m=r[2],g=r[3],y=r[4],v=r[5],S=r[6],k=r[7],C=r[9],w=1<<d,_=new Float64Array(w),O=new Uint32Array(w);for(h=0;h<w;h++)_[h]=1;var x=k,T=1;for(u=0;u<d;++u){var R=m[u][0],E=m[u][1],D=interpolate(Math.min(Math.max(t[o+u],R),E),R,E,g[u][0],g[u][1]),j=S[u],M=(D=Math.min(Math.max(D,0),j-1))<j-1?Math.floor(D):D-1,N=M+1-D,L=D-M,U=M*x,q=U+x;for(h=0;h<w;h++)if(h&T){_[h]*=L;O[h]+=q}else{_[h]*=N;O[h]+=U}x*=j;T<<=1}for(h=0;h<k;++h){var X=0;for(u=0;u<w;u++)X+=v[O[u]+h]*_[u];X=interpolate(X,0,1,y[h][0],y[h][1]);l[c+h]=Math.min(Math.max(X,C[h][0]),C[h][1])}}},constructInterpolated:function constructInterpolated(t){t.xref,t.isEvalSupported,t.fn;for(var r=t.dict,o=toNumberArray(r.getArray("C0"))||[0],l=toNumberArray(r.getArray("C1"))||[1],c=r.get("N"),u=o.length,h=[],d=0;d<u;++d)h.push(l[d]-o[d]);return[2,o,h,c]},constructInterpolatedFromIR:function constructInterpolatedFromIR(t){t.xref,t.isEvalSupported;var r=t.IR,o=r[1],l=r[2],c=r[3],u=l.length;return function constructInterpolatedFromIRResult(t,r,h,d){for(var m=1===c?t[r]:Math.pow(t[r],c),g=0;g<u;++g)h[d+g]=o[g]+m*l[g]}},constructStiched:function constructStiched(t){var r=t.xref,o=t.isEvalSupported,l=(t.fn,t.dict),u=toNumberArray(l.getArray("Domain"));if(!u)throw new c.FormatError("No domain");if(1!==u.length/2)throw new c.FormatError("Bad domain for stiched function");for(var h=l.get("Functions"),d=[],m=0,g=h.length;m<g;++m)d.push(this.parse({xref:r,isEvalSupported:o,fn:r.fetchIfRef(h[m])}));return[3,u,toNumberArray(l.getArray("Bounds")),toNumberArray(l.getArray("Encode")),d]},constructStichedFromIR:function constructStichedFromIR(t){t.xref,t.isEvalSupported;var r=t.IR,o=r[1],l=r[2],c=r[3],u=r[4],h=new Float32Array(1);return function constructStichedFromIRResult(t,r,d,m){for(var g=function constructStichedFromIRClip(t,r,o){t>o?t=o:t<r&&(t=r);return t}(t[r],o[0],o[1]),y=0,v=l.length;y<v&&!(g<l[y]);++y);var S=o[0];y>0&&(S=l[y-1]);var k=o[1];y<l.length&&(k=l[y]);var C=c[2*y],w=c[2*y+1];h[0]=S===k?C:C+(g-S)*(w-C)/(k-S);u[y](h,0,d,m)}},constructPostScript:function constructPostScript(t){t.xref,t.isEvalSupported;var r=t.fn,o=t.dict,l=toNumberArray(o.getArray("Domain")),h=toNumberArray(o.getArray("Range"));if(!l)throw new c.FormatError("No domain.");if(!h)throw new c.FormatError("No range.");var d=new u.PostScriptLexer(r);return[4,l,h,new u.PostScriptParser(d).parse()]},constructPostScriptFromIR:function constructPostScriptFromIR(t){t.xref;var r=t.isEvalSupported,o=t.IR,l=o[1],u=o[2],h=o[3];if(r&&c.IsEvalSupportedCached.value){var d=(new v).compile(h,l,u);if(d)return new Function("src","srcOffset","dest","destOffset",d)}(0,c.info)("Unable to compile PS function");var m=u.length>>1,g=l.length>>1,S=new y(h),k=Object.create(null),C=8192,w=new Float32Array(g);return function constructPostScriptFromIRResult(t,r,o,l){var c,h,d="",y=w;for(c=0;c<g;c++){h=t[r+c];y[c]=h;d+=h+"_"}var v=k[d];if(void 0===v){var _=new Float32Array(m),O=S.execute(y),x=O.length-m;for(c=0;c<m;c++){h=O[x+c];var T=u[2*c];(h<T||h>(T=u[2*c+1]))&&(h=T);_[c]=h}if(C>0){C--;k[d]=_}o.set(_,l)}else o.set(v,l)}}}}();var g=function PostScriptStackClosure(){return function(){function PostScriptStack(t){_classCallCheck(this,PostScriptStack);this.stack=t?Array.prototype.slice.call(t,0):[]}_createClass(PostScriptStack,[{key:"push",value:function push(t){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(t)}},{key:"pop",value:function pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}},{key:"copy",value:function copy(t){if(this.stack.length+t>=100)throw new Error("PostScript function stack overflow.");for(var r=this.stack,o=r.length-t,l=t-1;l>=0;l--,o++)r.push(r[o])}},{key:"index",value:function index(t){this.push(this.stack[this.stack.length-t-1])}},{key:"roll",value:function roll(t,r){var o,l,c,u=this.stack,h=u.length-t,d=u.length-1,m=h+(r-Math.floor(r/t)*t);for(o=h,l=d;o<l;o++,l--){c=u[o];u[o]=u[l];u[l]=c}for(o=h,l=m-1;o<l;o++,l--){c=u[o];u[o]=u[l];u[l]=c}for(o=m,l=d;o<l;o++,l--){c=u[o];u[o]=u[l];u[l]=c}}}]);return PostScriptStack}()}(),y=function(){function PostScriptEvaluator(t){_classCallCheck(this,PostScriptEvaluator);this.operators=t}_createClass(PostScriptEvaluator,[{key:"execute",value:function execute(t){for(var r,o,l,u=new g(t),h=0,d=this.operators,m=d.length;h<m;)if("number"!=typeof(r=d[h++]))switch(r){case"jz":l=u.pop();(o=u.pop())||(h=l);break;case"j":h=o=u.pop();break;case"abs":o=u.pop();u.push(Math.abs(o));break;case"add":l=u.pop();o=u.pop();u.push(o+l);break;case"and":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o&&l):u.push(o&l);break;case"atan":o=u.pop();u.push(Math.atan(o));break;case"bitshift":l=u.pop();(o=u.pop())>0?u.push(o<<l):u.push(o>>l);break;case"ceiling":o=u.pop();u.push(Math.ceil(o));break;case"copy":o=u.pop();u.copy(o);break;case"cos":o=u.pop();u.push(Math.cos(o));break;case"cvi":o=0|u.pop();u.push(o);break;case"cvr":break;case"div":l=u.pop();o=u.pop();u.push(o/l);break;case"dup":u.copy(1);break;case"eq":l=u.pop();o=u.pop();u.push(o===l);break;case"exch":u.roll(2,1);break;case"exp":l=u.pop();o=u.pop();u.push(Math.pow(o,l));break;case"false":u.push(!1);break;case"floor":o=u.pop();u.push(Math.floor(o));break;case"ge":l=u.pop();o=u.pop();u.push(o>=l);break;case"gt":l=u.pop();o=u.pop();u.push(o>l);break;case"idiv":l=u.pop();o=u.pop();u.push(o/l|0);break;case"index":o=u.pop();u.index(o);break;case"le":l=u.pop();o=u.pop();u.push(o<=l);break;case"ln":o=u.pop();u.push(Math.log(o));break;case"log":o=u.pop();u.push(Math.log(o)/Math.LN10);break;case"lt":l=u.pop();o=u.pop();u.push(o<l);break;case"mod":l=u.pop();o=u.pop();u.push(o%l);break;case"mul":l=u.pop();o=u.pop();u.push(o*l);break;case"ne":l=u.pop();o=u.pop();u.push(o!==l);break;case"neg":o=u.pop();u.push(-o);break;case"not":o=u.pop();(0,c.isBool)(o)?u.push(!o):u.push(~o);break;case"or":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o||l):u.push(o|l);break;case"pop":u.pop();break;case"roll":l=u.pop();o=u.pop();u.roll(o,l);break;case"round":o=u.pop();u.push(Math.round(o));break;case"sin":o=u.pop();u.push(Math.sin(o));break;case"sqrt":o=u.pop();u.push(Math.sqrt(o));break;case"sub":l=u.pop();o=u.pop();u.push(o-l);break;case"true":u.push(!0);break;case"truncate":o=(o=u.pop())<0?Math.ceil(o):Math.floor(o);u.push(o);break;case"xor":l=u.pop();o=u.pop();(0,c.isBool)(o)&&(0,c.isBool)(l)?u.push(o!==l):u.push(o^l);break;default:throw new c.FormatError("Unknown operator ".concat(r))}else u.push(r);return u.stack}}]);return PostScriptEvaluator}();r.PostScriptEvaluator=y;var v=function PostScriptCompilerClosure(){var t=function(){function AstNode(t){_classCallCheck(this,AstNode);this.type=t}_createClass(AstNode,[{key:"visit",value:function visit(t){(0,c.unreachable)("abstract method")}}]);return AstNode}(),r=function(t){_inherits(AstArgument,t);var r=_createSuper(AstArgument);function AstArgument(t,o,l){var c;_classCallCheck(this,AstArgument);(c=r.call(this,"args")).index=t;c.min=o;c.max=l;return c}_createClass(AstArgument,[{key:"visit",value:function visit(t){t.visitArgument(this)}}]);return AstArgument}(t),o=function(t){_inherits(AstLiteral,t);var r=_createSuper(AstLiteral);function AstLiteral(t){var o;_classCallCheck(this,AstLiteral);(o=r.call(this,"literal")).number=t;o.min=t;o.max=t;return o}_createClass(AstLiteral,[{key:"visit",value:function visit(t){t.visitLiteral(this)}}]);return AstLiteral}(t),l=function(t){_inherits(AstBinaryOperation,t);var r=_createSuper(AstBinaryOperation);function AstBinaryOperation(t,o,l,c,u){var h;_classCallCheck(this,AstBinaryOperation);(h=r.call(this,"binary")).op=t;h.arg1=o;h.arg2=l;h.min=c;h.max=u;return h}_createClass(AstBinaryOperation,[{key:"visit",value:function visit(t){t.visitBinaryOperation(this)}}]);return AstBinaryOperation}(t),u=function(t){_inherits(AstMin,t);var r=_createSuper(AstMin);function AstMin(t,o){var l;_classCallCheck(this,AstMin);(l=r.call(this,"max")).arg=t;l.min=t.min;l.max=o;return l}_createClass(AstMin,[{key:"visit",value:function visit(t){t.visitMin(this)}}]);return AstMin}(t),h=function(t){_inherits(AstVariable,t);var r=_createSuper(AstVariable);function AstVariable(t,o,l){var c;_classCallCheck(this,AstVariable);(c=r.call(this,"var")).index=t;c.min=o;c.max=l;return c}_createClass(AstVariable,[{key:"visit",value:function visit(t){t.visitVariable(this)}}]);return AstVariable}(t),d=function(t){_inherits(AstVariableDefinition,t);var r=_createSuper(AstVariableDefinition);function AstVariableDefinition(t,o){var l;_classCallCheck(this,AstVariableDefinition);(l=r.call(this,"definition")).variable=t;l.arg=o;return l}_createClass(AstVariableDefinition,[{key:"visit",value:function visit(t){t.visitVariableDefinition(this)}}]);return AstVariableDefinition}(t),m=function(){function ExpressionBuilderVisitor(){_classCallCheck(this,ExpressionBuilderVisitor);this.parts=[]}_createClass(ExpressionBuilderVisitor,[{key:"visitArgument",value:function visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}},{key:"visitVariable",value:function visitVariable(t){this.parts.push("v",t.index)}},{key:"visitLiteral",value:function visitLiteral(t){this.parts.push(t.number)}},{key:"visitBinaryOperation",value:function visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")}},{key:"visitVariableDefinition",value:function visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")}},{key:"visitMin",value:function visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")}},{key:"toString",value:function toString(){return this.parts.join("")}}]);return ExpressionBuilderVisitor}();function buildAddOperation(t,r){return"literal"===r.type&&0===r.number?t:"literal"===t.type&&0===t.number?r:"literal"===r.type&&"literal"===t.type?new o(t.number+r.number):new l("+",t,r,t.min+r.min,t.max+r.max)}function buildMulOperation(t,r){if("literal"===r.type){if(0===r.number)return new o(0);if(1===r.number)return t;if("literal"===t.type)return new o(t.number*r.number)}if("literal"===t.type){if(0===t.number)return new o(0);if(1===t.number)return r}var c=Math.min(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max),u=Math.max(t.min*r.min,t.min*r.max,t.max*r.min,t.max*r.max);return new l("*",t,r,c,u)}function buildSubOperation(t,r){if("literal"===r.type){if(0===r.number)return t;if("literal"===t.type)return new o(t.number-r.number)}return"binary"===r.type&&"-"===r.op&&"literal"===t.type&&1===t.number&&"literal"===r.arg1.type&&1===r.arg1.number?r.arg2:new l("-",t,r,t.min-r.max,t.max-r.min)}function buildMinOperation(t,r){return t.min>=r?new o(r):t.max<=r?t:new u(t,r)}return function(){function PostScriptCompiler(){_classCallCheck(this,PostScriptCompiler)}_createClass(PostScriptCompiler,[{key:"compile",value:function compile(t,l,c){for(var u,g,y,v,S,k,C,w,_=[],O=[],x=l.length>>1,T=c.length>>1,R=0,E=0;E<x;E++)_.push(new r(E,l[2*E],l[2*E+1]));for(var D=0,j=t.length;D<j;D++)if("number"!=typeof(w=t[D]))switch(w){case"add":if(_.length<2)return null;v=_.pop();y=_.pop();_.push(buildAddOperation(y,v));break;case"cvr":if(_.length<1)return null;break;case"mul":if(_.length<2)return null;v=_.pop();y=_.pop();_.push(buildMulOperation(y,v));break;case"sub":if(_.length<2)return null;v=_.pop();y=_.pop();_.push(buildSubOperation(y,v));break;case"exch":if(_.length<2)return null;S=_.pop();k=_.pop();_.push(S,k);break;case"pop":if(_.length<1)return null;_.pop();break;case"index":if(_.length<1)return null;if("literal"!==(y=_.pop()).type)return null;if((u=y.number)<0||!Number.isInteger(u)||_.length<u)return null;if("literal"===(S=_[_.length-u-1]).type||"var"===S.type){_.push(S);break}C=new h(R++,S.min,S.max);_[_.length-u-1]=C;_.push(C);O.push(new d(C,S));break;case"dup":if(_.length<1)return null;if("number"==typeof t[D+1]&&"gt"===t[D+2]&&t[D+3]===D+7&&"jz"===t[D+4]&&"pop"===t[D+5]&&t[D+6]===t[D+1]){y=_.pop();_.push(buildMinOperation(y,t[D+1]));D+=6;break}if("literal"===(S=_[_.length-1]).type||"var"===S.type){_.push(S);break}C=new h(R++,S.min,S.max);_[_.length-1]=C;_.push(C);O.push(new d(C,S));break;case"roll":if(_.length<2)return null;v=_.pop();y=_.pop();if("literal"!==v.type||"literal"!==y.type)return null;g=v.number;if((u=y.number)<=0||!Number.isInteger(u)||!Number.isInteger(g)||_.length<u)return null;if(0===(g=(g%u+u)%u))break;Array.prototype.push.apply(_,_.splice(_.length-u,u-g));break;default:return null}else _.push(new o(w));if(_.length!==T)return null;var M=[];O.forEach((function(t){var r=new m;t.visit(r);M.push(r.toString())}));_.forEach((function(t,r){var o=new m;t.visit(o);var l=c[2*r],u=c[2*r+1],h=[o.toString()];if(l>t.min){h.unshift("Math.max(",l,", ");h.push(")")}if(u<t.max){h.unshift("Math.min(",u,", ");h.push(")")}h.unshift("dest[destOffset + ",r,"] = ");h.push(";");M.push(h.join(""))}));return M.join("\n")}}]);return PostScriptCompiler}()}();r.PostScriptCompiler=v},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PostScriptParser=r.PostScriptLexer=void 0;var l=o(4),c=o(125),u=o(128);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var h=function(){function PostScriptParser(t){_classCallCheck(this,PostScriptParser);this.lexer=t;this.operators=[];this.token=null;this.prev=null}_createClass(PostScriptParser,[{key:"nextToken",value:function nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}},{key:"accept",value:function accept(t){if(this.token.type===t){this.nextToken();return!0}return!1}},{key:"expect",value:function expect(t){if(this.accept(t))return!0;throw new l.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(t,"."))}},{key:"parse",value:function parse(){this.nextToken();this.expect(d.LBRACE);this.parseBlock();this.expect(d.RBRACE);return this.operators}},{key:"parseBlock",value:function parseBlock(){for(;;)if(this.accept(d.NUMBER))this.operators.push(this.prev.value);else if(this.accept(d.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(d.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function parseCondition(){var t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(d.RBRACE);if(this.accept(d.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else{if(!this.accept(d.LBRACE))throw new l.FormatError("PS Function: error parsing conditional.");var r=this.operators.length;this.operators.push(null,null);var o=this.operators.length;this.parseBlock();this.expect(d.RBRACE);this.expect(d.IFELSE);this.operators[r]=this.operators.length;this.operators[r+1]="j";this.operators[t]=o;this.operators[t+1]="jz"}}}]);return PostScriptParser}();r.PostScriptParser=h;var d={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},m=function PostScriptTokenClosure(){var t=Object.create(null);return function(){function PostScriptToken(t,r){_classCallCheck(this,PostScriptToken);this.type=t;this.value=r}_createClass(PostScriptToken,null,[{key:"getOperator",value:function getOperator(r){var o=t[r];return o||(t[r]=new PostScriptToken(d.OPERATOR,r))}},{key:"LBRACE",get:function get(){return(0,l.shadow)(this,"LBRACE",new PostScriptToken(d.LBRACE,"{"))}},{key:"RBRACE",get:function get(){return(0,l.shadow)(this,"RBRACE",new PostScriptToken(d.RBRACE,"}"))}},{key:"IF",get:function get(){return(0,l.shadow)(this,"IF",new PostScriptToken(d.IF,"IF"))}},{key:"IFELSE",get:function get(){return(0,l.shadow)(this,"IFELSE",new PostScriptToken(d.IFELSE,"IFELSE"))}}]);return PostScriptToken}()}(),g=function(){function PostScriptLexer(t){_classCallCheck(this,PostScriptLexer);this.stream=t;this.nextChar();this.strBuf=[]}_createClass(PostScriptLexer,[{key:"nextChar",value:function nextChar(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function getToken(){for(var t=!1,r=this.currentChar;;){if(r<0)return c.EOF;if(t)10!==r&&13!==r||(t=!1);else if(37===r)t=!0;else if(!(0,u.isWhiteSpace)(r))break;r=this.nextChar()}switch(0|r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new m(d.NUMBER,this.getNumber());case 123:this.nextChar();return m.LBRACE;case 125:this.nextChar();return m.RBRACE}var o=this.strBuf;o.length=0;o[0]=String.fromCharCode(r);for(;(r=this.nextChar())>=0&&(r>=65&&r<=90||r>=97&&r<=122);)o.push(String.fromCharCode(r));var l=o.join("");switch(l.toLowerCase()){case"if":return m.IF;case"ifelse":return m.IFELSE;default:return m.getOperator(l)}}},{key:"getNumber",value:function getNumber(){var t=this.currentChar,r=this.strBuf;r.length=0;r[0]=String.fromCharCode(t);for(;(t=this.nextChar())>=0&&(t>=48&&t<=57||45===t||46===t);)r.push(String.fromCharCode(t));var o=parseFloat(r.join(""));if(isNaN(o))throw new l.FormatError("Invalid floating point number: ".concat(o));return o}}]);return PostScriptLexer}();r.PostScriptLexer=g},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.bidi=function bidi(t,r,o){var m=!0,g=t.length;if(0===g||o)return createBidiText(t,m,o);h.length=g;d.length=g;var y,v,S=0;for(y=0;y<g;++y){h[y]=t.charAt(y);var k=t.charCodeAt(y),C="L";k<=255?C=c[k]:1424<=k&&k<=1524?C="R":1536<=k&&k<=1791?(C=u[255&k])||(0,l.warn)("Bidi: invalid Unicode character "+k.toString(16)):1792<=k&&k<=2220&&(C="AL");"R"!==C&&"AL"!==C&&"AN"!==C||S++;d[y]=C}if(0===S)return createBidiText(t,m=!0);if(-1===r)if(S/g<.3){m=!0;r=0}else{m=!1;r=1}var w=[];for(y=0;y<g;++y)w[y]=r;var _,O=isOdd(r)?"R":"L",x=O,T=x,R=x;for(y=0;y<g;++y)"NSM"===d[y]?d[y]=R:R=d[y];R=x;for(y=0;y<g;++y)"EN"===(_=d[y])?d[y]="AL"===R?"AN":"EN":"R"!==_&&"L"!==_&&"AL"!==_||(R=_);for(y=0;y<g;++y)"AL"===(_=d[y])&&(d[y]="R");for(y=1;y<g-1;++y){"ES"===d[y]&&"EN"===d[y-1]&&"EN"===d[y+1]&&(d[y]="EN");"CS"!==d[y]||"EN"!==d[y-1]&&"AN"!==d[y-1]||d[y+1]!==d[y-1]||(d[y]=d[y-1])}for(y=0;y<g;++y)if("EN"===d[y]){var E;for(E=y-1;E>=0&&"ET"===d[E];--E)d[E]="EN";for(E=y+1;E<g&&"ET"===d[E];++E)d[E]="EN"}for(y=0;y<g;++y)"WS"!==(_=d[y])&&"ES"!==_&&"ET"!==_&&"CS"!==_||(d[y]="ON");R=x;for(y=0;y<g;++y)"EN"===(_=d[y])?d[y]="L"===R?"L":"EN":"R"!==_&&"L"!==_||(R=_);for(y=0;y<g;++y)if("ON"===d[y]){var D=findUnequal(d,y+1,"ON"),j=x;y>0&&(j=d[y-1]);var M=T;D+1<g&&(M=d[D+1]);"L"!==j&&(j="R");"L"!==M&&(M="R");j===M&&setValues(d,y,D,j);y=D-1}for(y=0;y<g;++y)"ON"===d[y]&&(d[y]=O);for(y=0;y<g;++y){_=d[y];isEven(w[y])?"R"===_?w[y]+=1:"AN"!==_&&"EN"!==_||(w[y]+=2):"L"!==_&&"AN"!==_&&"EN"!==_||(w[y]+=1)}var N,L=-1,U=99;for(y=0,v=w.length;y<v;++y){N=w[y];L<N&&(L=N);U>N&&isOdd(N)&&(U=N)}for(N=L;N>=U;--N){var q=-1;for(y=0,v=w.length;y<v;++y)if(w[y]<N){if(q>=0){reverseValues(h,q,y);q=-1}}else q<0&&(q=y);q>=0&&reverseValues(h,q,w.length)}for(y=0,v=h.length;y<v;++y){var X=h[y];"<"!==X&&">"!==X||(h[y]="")}return createBidiText(h.join(""),m)};var l=o(4),c=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],u=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function isOdd(t){return 0!=(1&t)}function isEven(t){return 0==(1&t)}function findUnequal(t,r,o){for(var l=r,c=t.length;l<c;++l)if(t[l]!==o)return l;return l}function setValues(t,r,o,l){for(var c=r;c<o;++c)t[c]=l}function reverseValues(t,r,o){for(var l=r,c=o-1;l<c;++l,--c){var u=t[l];t[l]=t[c];t[c]=u}}function createBidiText(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l="ltr";o?l="ttb":r||(l="rtl");return{str:t,dir:l}}var h=[],d=[]},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getMetrics=void 0;var l=o(128),c=(0,l.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,l.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Bold"]=(0,l.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-BoldOblique"]=(0,l.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Oblique"]=(0,l.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t.Symbol=(0,l.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.universal=713;t.numbersign=500;t.existential=549;t.percent=833;t.ampersand=778;t.suchthat=439;t.parenleft=333;t.parenright=333;t.asteriskmath=500;t.plus=549;t.comma=250;t.minus=549;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=549;t.equal=549;t.greater=549;t.question=444;t.congruent=549;t.Alpha=722;t.Beta=667;t.Chi=722;t.Delta=612;t.Epsilon=611;t.Phi=763;t.Gamma=603;t.Eta=722;t.Iota=333;t.theta1=631;t.Kappa=722;t.Lambda=686;t.Mu=889;t.Nu=722;t.Omicron=722;t.Pi=768;t.Theta=741;t.Rho=556;t.Sigma=592;t.Tau=611;t.Upsilon=690;t.sigma1=439;t.Omega=768;t.Xi=645;t.Psi=795;t.Zeta=611;t.bracketleft=333;t.therefore=863;t.bracketright=333;t.perpendicular=658;t.underscore=500;t.radicalex=500;t.alpha=631;t.beta=549;t.chi=549;t.delta=494;t.epsilon=439;t.phi=521;t.gamma=411;t.eta=603;t.iota=329;t.phi1=603;t.kappa=549;t.lambda=549;t.mu=576;t.nu=521;t.omicron=549;t.pi=549;t.theta=521;t.rho=549;t.sigma=603;t.tau=439;t.upsilon=576;t.omega1=713;t.omega=686;t.xi=493;t.psi=686;t.zeta=494;t.braceleft=480;t.bar=200;t.braceright=480;t.similar=549;t.Euro=750;t.Upsilon1=620;t.minute=247;t.lessequal=549;t.fraction=167;t.infinity=713;t.florin=500;t.club=753;t.diamond=753;t.heart=753;t.spade=753;t.arrowboth=1042;t.arrowleft=987;t.arrowup=603;t.arrowright=987;t.arrowdown=603;t.degree=400;t.plusminus=549;t.second=411;t.greaterequal=549;t.multiply=549;t.proportional=713;t.partialdiff=494;t.bullet=460;t.divide=549;t.notequal=549;t.equivalence=549;t.approxequal=549;t.ellipsis=1e3;t.arrowvertex=603;t.arrowhorizex=1e3;t.carriagereturn=658;t.aleph=823;t.Ifraktur=686;t.Rfraktur=795;t.weierstrass=987;t.circlemultiply=768;t.circleplus=768;t.emptyset=823;t.intersection=768;t.union=768;t.propersuperset=713;t.reflexsuperset=713;t.notsubset=713;t.propersubset=713;t.reflexsubset=713;t.element=713;t.notelement=713;t.angle=768;t.gradient=713;t.registerserif=790;t.copyrightserif=790;t.trademarkserif=890;t.product=823;t.radical=549;t.dotmath=250;t.logicalnot=713;t.logicaland=603;t.logicalor=603;t.arrowdblboth=1042;t.arrowdblleft=987;t.arrowdblup=603;t.arrowdblright=987;t.arrowdbldown=603;t.lozenge=494;t.angleleft=329;t.registersans=790;t.copyrightsans=790;t.trademarksans=786;t.summation=713;t.parenlefttp=384;t.parenleftex=384;t.parenleftbt=384;t.bracketlefttp=384;t.bracketleftex=384;t.bracketleftbt=384;t.bracelefttp=494;t.braceleftmid=494;t.braceleftbt=494;t.braceex=494;t.angleright=329;t.integral=274;t.integraltp=686;t.integralex=686;t.integralbt=686;t.parenrighttp=384;t.parenrightex=384;t.parenrightbt=384;t.bracketrighttp=384;t.bracketrightex=384;t.bracketrightbt=384;t.bracerighttp=494;t.bracerightmid=494;t.bracerightbt=494;t.apple=790}));t["Times-Roman"]=(0,l.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=408;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=564;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=564;t.equal=564;t.greater=564;t.question=444;t.at=921;t.A=722;t.B=667;t.C=667;t.D=722;t.E=611;t.F=556;t.G=722;t.H=722;t.I=333;t.J=389;t.K=722;t.L=611;t.M=889;t.N=722;t.O=722;t.P=556;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=722;t.W=944;t.X=722;t.Y=722;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=469;t.underscore=500;t.quoteleft=333;t.a=444;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=500;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=500;t.o=500;t.p=500;t.q=500;t.r=333;t.s=389;t.t=278;t.u=500;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=480;t.bar=200;t.braceright=480;t.asciitilde=541;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=180;t.quotedblleft=444;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=453;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=444;t.quotedblright=444;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=444;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=889;t.ordfeminine=276;t.Lslash=611;t.Oslash=722;t.OE=889;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=444;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=722;t.divide=564;t.Yacute=722;t.Acircumflex=722;t.aacute=444;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=444;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=444;t.Ncommaaccent=722;t.lacute=278;t.agrave=444;t.Tcommaaccent=611;t.Cacute=667;t.atilde=444;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=444;t.Amacron=722;t.rcaron=333;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=556;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=588;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=722;t.Abreve=722;t.multiply=564;t.uacute=500;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=444;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=722;t.Iacute=333;t.plusminus=564;t.brokenbar=200;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=333;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=326;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=444;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=344;t.Kcommaaccent=722;t.Lacute=611;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=722;t.zdotaccent=444;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=500;t.minus=564;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=564;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Bold"]=(0,l.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=1e3;t.ampersand=833;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=930;t.A=722;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=778;t.I=389;t.J=500;t.K=778;t.L=667;t.M=944;t.N=722;t.O=778;t.P=611;t.Q=778;t.R=722;t.S=556;t.T=667;t.U=722;t.V=722;t.W=1e3;t.X=722;t.Y=722;t.Z=667;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=581;t.underscore=500;t.quoteleft=333;t.a=500;t.b=556;t.c=444;t.d=556;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=333;t.k=556;t.l=278;t.m=833;t.n=556;t.o=500;t.p=556;t.q=556;t.r=444;t.s=389;t.t=333;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=394;t.bar=220;t.braceright=394;t.asciitilde=520;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=540;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=300;t.Lslash=667;t.Oslash=778;t.OE=1e3;t.ordmasculine=330;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=556;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=722;t.divide=570;t.Yacute=722;t.Acircumflex=722;t.aacute=500;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=667;t.Cacute=722;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=500;t.Amacron=722;t.rcaron=444;t.ccedilla=444;t.Zdotaccent=667;t.Thorn=611;t.Omacron=778;t.Racute=722;t.Sacute=556;t.dcaron=672;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=570;t.uacute=556;t.Tcaron=667;t.partialdiff=494;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=778;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=444;t.omacron=500;t.Zacute=667;t.Zcaron=667;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=416;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=778;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=300;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=556;t.threequarters=750;t.Scedilla=556;t.lcaron=394;t.Kcommaaccent=778;t.Lacute=667;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=667;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=778;t.degree=400;t.ograve=500;t.Ccaron=722;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=444;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=722;t.Lcommaaccent=667;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=444;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=556;t.minus=570;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=333;t.logicalnot=570;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-BoldItalic"]=(0,l.getLookupTableFactory)((function(t){t.space=250;t.exclam=389;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=832;t.A=667;t.B=667;t.C=667;t.D=722;t.E=667;t.F=667;t.G=722;t.H=778;t.I=389;t.J=500;t.K=667;t.L=611;t.M=889;t.N=722;t.O=722;t.P=611;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=667;t.W=889;t.X=667;t.Y=611;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=570;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=556;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=556;t.v=444;t.w=667;t.x=500;t.y=444;t.z=389;t.braceleft=348;t.bar=220;t.braceright=348;t.asciitilde=570;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=500;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=944;t.ordfeminine=266;t.Lslash=611;t.Oslash=722;t.OE=944;t.ordmasculine=300;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=611;t.divide=570;t.Yacute=611;t.Acircumflex=667;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=611;t.Cacute=667;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=556;t.acircumflex=500;t.Amacron=667;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=611;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=608;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=722;t.Agrave=667;t.Abreve=667;t.multiply=570;t.uacute=556;t.Tcaron=611;t.partialdiff=494;t.ydieresis=444;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=722;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=366;t.eogonek=444;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=576;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=382;t.Kcommaaccent=667;t.Lacute=611;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=722;t.zdotaccent=389;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=500;t.minus=606;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=606;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Italic"]=(0,l.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=420;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=675;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=675;t.equal=675;t.greater=675;t.question=500;t.at=920;t.A=611;t.B=611;t.C=667;t.D=722;t.E=611;t.F=611;t.G=722;t.H=722;t.I=333;t.J=444;t.K=667;t.L=556;t.M=833;t.N=667;t.O=722;t.P=611;t.Q=722;t.R=611;t.S=500;t.T=556;t.U=722;t.V=611;t.W=833;t.X=611;t.Y=556;t.Z=556;t.bracketleft=389;t.backslash=278;t.bracketright=389;t.asciicircum=422;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=278;t.g=500;t.h=500;t.i=278;t.j=278;t.k=444;t.l=278;t.m=722;t.n=500;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=500;t.v=444;t.w=667;t.x=444;t.y=444;t.z=389;t.braceleft=400;t.bar=275;t.braceright=400;t.asciitilde=541;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=214;t.quotedblleft=556;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=523;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=556;t.quotedblright=556;t.guillemotright=500;t.ellipsis=889;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=889;t.AE=889;t.ordfeminine=276;t.Lslash=556;t.Oslash=722;t.OE=944;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=667;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=500;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=556;t.divide=675;t.Yacute=556;t.Acircumflex=611;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=500;t.Ncommaaccent=667;t.lacute=278;t.agrave=500;t.Tcommaaccent=556;t.Cacute=667;t.atilde=500;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=611;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=500;t.Amacron=611;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=556;t.Thorn=611;t.Omacron=722;t.Racute=611;t.Sacute=500;t.dcaron=544;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=611;t.Abreve=611;t.multiply=675;t.uacute=500;t.Tcaron=556;t.partialdiff=476;t.ydieresis=444;t.Nacute=667;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=667;t.Iacute=333;t.plusminus=675;t.brokenbar=275;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=389;t.omacron=500;t.Zacute=556;t.Zcaron=556;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=300;t.eogonek=444;t.Uogonek=722;t.Aacute=611;t.Adieresis=611;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=500;t.lcaron=300;t.Kcommaaccent=667;t.Lacute=556;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=500;t.Scommaaccent=500;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=667;t.otilde=500;t.Rcommaaccent=611;t.Lcommaaccent=556;t.Atilde=611;t.Aogonek=611;t.Aring=611;t.Otilde=722;t.zdotaccent=389;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=444;t.minus=675;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=675;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t.ZapfDingbats=(0,l.getLookupTableFactory)((function(t){t.space=278;t.a1=974;t.a2=961;t.a202=974;t.a3=980;t.a4=719;t.a5=789;t.a119=790;t.a118=791;t.a117=690;t.a11=960;t.a12=939;t.a13=549;t.a14=855;t.a15=911;t.a16=933;t.a105=911;t.a17=945;t.a18=974;t.a19=755;t.a20=846;t.a21=762;t.a22=761;t.a23=571;t.a24=677;t.a25=763;t.a26=760;t.a27=759;t.a28=754;t.a6=494;t.a7=552;t.a8=537;t.a9=577;t.a10=692;t.a29=786;t.a30=788;t.a31=788;t.a32=790;t.a33=793;t.a34=794;t.a35=816;t.a36=823;t.a37=789;t.a38=841;t.a39=823;t.a40=833;t.a41=816;t.a42=831;t.a43=923;t.a44=744;t.a45=723;t.a46=749;t.a47=790;t.a48=792;t.a49=695;t.a50=776;t.a51=768;t.a52=792;t.a53=759;t.a54=707;t.a55=708;t.a56=682;t.a57=701;t.a58=826;t.a59=815;t.a60=789;t.a61=789;t.a62=707;t.a63=687;t.a64=696;t.a65=689;t.a66=786;t.a67=787;t.a68=713;t.a69=791;t.a70=785;t.a71=791;t.a72=873;t.a73=761;t.a74=762;t.a203=762;t.a75=759;t.a204=759;t.a76=892;t.a77=892;t.a78=788;t.a79=784;t.a81=438;t.a82=138;t.a83=277;t.a84=415;t.a97=392;t.a98=392;t.a99=668;t.a100=668;t.a89=390;t.a90=390;t.a93=317;t.a94=317;t.a91=276;t.a92=276;t.a205=509;t.a85=509;t.a206=410;t.a86=410;t.a87=234;t.a88=234;t.a95=334;t.a96=334;t.a101=732;t.a102=544;t.a103=544;t.a104=910;t.a106=667;t.a107=760;t.a108=760;t.a112=776;t.a111=595;t.a110=694;t.a109=626;t.a120=788;t.a121=788;t.a122=788;t.a123=788;t.a124=788;t.a125=788;t.a126=788;t.a127=788;t.a128=788;t.a129=788;t.a130=788;t.a131=788;t.a132=788;t.a133=788;t.a134=788;t.a135=788;t.a136=788;t.a137=788;t.a138=788;t.a139=788;t.a140=788;t.a141=788;t.a142=788;t.a143=788;t.a144=788;t.a145=788;t.a146=788;t.a147=788;t.a148=788;t.a149=788;t.a150=788;t.a151=788;t.a152=788;t.a153=788;t.a154=788;t.a155=788;t.a156=788;t.a157=788;t.a158=788;t.a159=788;t.a160=894;t.a161=838;t.a163=1016;t.a164=458;t.a196=748;t.a165=924;t.a192=748;t.a166=918;t.a167=927;t.a168=928;t.a169=928;t.a170=834;t.a171=873;t.a172=828;t.a173=924;t.a162=924;t.a174=917;t.a175=930;t.a176=931;t.a177=463;t.a178=883;t.a179=836;t.a193=836;t.a180=867;t.a199=867;t.a181=696;t.a200=696;t.a182=874;t.a201=874;t.a183=760;t.a184=946;t.a197=771;t.a185=865;t.a194=771;t.a198=888;t.a186=967;t.a195=888;t.a187=831;t.a188=873;t.a189=927;t.a190=970;t.a191=918}))}));r.getMetrics=c},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MurmurHash3_64=void 0;var l=o(4);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var c=3285377520,u=4294901760,h=65535,d=function(){function MurmurHash3_64(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MurmurHash3_64);this.h1=t?4294967295&t:c;this.h2=t?4294967295&t:c}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MurmurHash3_64,[{key:"update",value:function update(t){var r,o;if((0,l.isString)(t)){r=new Uint8Array(2*t.length);o=0;for(var c=0,d=t.length;c<d;c++){var m=t.charCodeAt(c);if(m<=255)r[o++]=m;else{r[o++]=m>>>8;r[o++]=255&m}}}else{if(!(0,l.isArrayBuffer)(t))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");o=(r=t.slice()).byteLength}for(var g=o>>2,y=o-4*g,v=new Uint32Array(r.buffer,0,g),S=0,k=0,C=this.h1,w=this.h2,_=3432918353,O=461845907,x=11601,T=13715,R=0;R<g;R++)1&R?C=5*(C=(C^=S=(S=(S=(S=v[R])*_&u|S*x&h)<<15|S>>>17)*O&u|S*T&h)<<13|C>>>19)+3864292196:w=5*(w=(w^=k=(k=(k=(k=v[R])*_&u|k*x&h)<<15|k>>>17)*O&u|k*T&h)<<13|w>>>19)+3864292196;S=0;switch(y){case 3:S^=r[4*g+2]<<16;case 2:S^=r[4*g+1]<<8;case 1:S=(S=(S=(S^=r[4*g])*_&u|S*x&h)<<15|S>>>17)*O&u|S*T&h;1&g?C^=S:w^=S}this.h1=C;this.h2=w}},{key:"hexdigest",value:function hexdigest(){var t=this.h1,r=this.h2;t=3981806797*(t^=r>>>1)&u|36045*t&h;t=444984403*(t^=(r=4283543511*r&u|(2950163797*(r<<16|t>>>16)&u)>>>16)>>>1)&u|60499*t&h;var o=((t^=(r=3301882366*r&u|(3120437893*(r<<16|t>>>16)&u)>>>16)>>>1)>>>0).toString(16),l=(r>>>0).toString(16);return o.padStart(8,"0")+l.padStart(8,"0")}}]);return MurmurHash3_64}();r.MurmurHash3_64=d},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.OperatorList=void 0;var l=o(4);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var c=function QueueOptimizerClosure(){function addState(t,r,o,l,c){for(var u=t,h=0,d=r.length-1;h<d;h++){var m=r[h];u=u[m]||(u[m]=[])}u[r[r.length-1]]={checkFn:o,iterateFn:l,processFn:c}}var t=[];addState(t,[l.OPS.save,l.OPS.transform,l.OPS.paintInlineImageXObject,l.OPS.restore],null,(function iterateInlineImageGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===l.OPS.save;case 1:return o[r]===l.OPS.transform;case 2:return o[r]===l.OPS.paintInlineImageXObject;case 3:return o[r]===l.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(c))}),(function foundInlineImageGroup(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=u-1,g=Math.min(Math.floor((r-h)/4),200);if(g<10)return r-(r-h)%4;for(var y=0,v=[],S=0,k=1,C=1,w=0;w<g;w++){var _=c[d+(w<<2)],O=c[m+(w<<2)][0];if(k+O.width>1e3){y=Math.max(y,k);C+=S+2;k=0;S=0}v.push({transform:_,x:k,y:C,w:O.width,h:O.height});k+=O.width+2;S=Math.max(S,O.height)}for(var x=Math.max(y,k)+1,T=C+S+1,R=new Uint8ClampedArray(x*T*4),E=x<<2,D=0;D<g;D++){var j=c[m+(D<<2)][0].data,M=v[D].w<<2,N=0,L=v[D].x+v[D].y*x<<2;R.set(j.subarray(0,M),L-E);for(var U=0,q=v[D].h;U<q;U++){R.set(j.subarray(N,N+M),L);N+=M;L+=E}R.set(j.subarray(N-M,N),L);for(;L>=0;){j[L-4]=j[L];j[L-3]=j[L+1];j[L-2]=j[L+2];j[L-1]=j[L+3];j[L+M]=j[L+M-4];j[L+M+1]=j[L+M-3];j[L+M+2]=j[L+M-2];j[L+M+3]=j[L+M-1];L-=E}}o.splice(h,4*g,l.OPS.paintInlineImageXObjectGroup);c.splice(h,4*g,[{width:x,height:T,kind:l.ImageKind.RGBA_32BPP,data:R},v]);return h+1}));addState(t,[l.OPS.save,l.OPS.transform,l.OPS.paintImageMaskXObject,l.OPS.restore],null,(function iterateImageMaskGroup(t,r){var o=t.fnArray,c=(r-(t.iCurr-3))%4;switch(c){case 0:return o[r]===l.OPS.save;case 1:return o[r]===l.OPS.transform;case 2:return o[r]===l.OPS.paintImageMaskXObject;case 3:return o[r]===l.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(c))}),(function foundImageMaskGroup(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=u-1,g=Math.floor((r-h)/4);if((g=function handlePaintSolidColorImageMask(t,r,o,c){var u,h=t+2;for(u=0;u<r;u++){var d=c[h+4*u],m=1===d.length&&d[0];if(!m||1!==m.width||1!==m.height||m.data.length&&(1!==m.data.length||0!==m.data[0]))break;o[h+4*u]=l.OPS.paintSolidColorImageMask}return r-u}(h,g,o,c))<10)return r-(r-h)%4;var y,v,S=!1,k=c[m][0],C=c[d][0],w=c[d][1],_=c[d][2],O=c[d][3];if(w===_){S=!0;y=d+4;for(var x=m+4,T=1;T<g;T++,y+=4,x+=4){v=c[y];if(c[x][0]!==k||v[0]!==C||v[1]!==w||v[2]!==_||v[3]!==O){T<10?S=!1:g=T;break}}}if(S){g=Math.min(g,1e3);var R=new Float32Array(2*g);y=d;for(var E=0;E<g;E++,y+=4){v=c[y];R[E<<1]=v[4];R[1+(E<<1)]=v[5]}o.splice(h,4*g,l.OPS.paintImageMaskXObjectRepeat);c.splice(h,4*g,[k,C,w,_,O,R])}else{g=Math.min(g,100);for(var D=[],j=0;j<g;j++){v=c[d+(j<<2)];var M=c[m+(j<<2)][0];D.push({data:M.data,width:M.width,height:M.height,transform:v})}o.splice(h,4*g,l.OPS.paintImageMaskXObjectGroup);c.splice(h,4*g,[D])}return h+1}));addState(t,[l.OPS.save,l.OPS.transform,l.OPS.paintImageXObject,l.OPS.restore],(function(t){var r=t.argsArray,o=t.iCurr-2;return 0===r[o][1]&&0===r[o][2]}),(function iterateImageGroup(t,r){var o=t.fnArray,c=t.argsArray,u=(r-(t.iCurr-3))%4;switch(u){case 0:return o[r]===l.OPS.save;case 1:if(o[r]!==l.OPS.transform)return!1;var h=t.iCurr-2,d=c[h][0],m=c[h][3];return c[r][0]===d&&0===c[r][1]&&0===c[r][2]&&c[r][3]===m;case 2:if(o[r]!==l.OPS.paintImageXObject)return!1;var g=c[t.iCurr-1][0];return c[r][0]===g;case 3:return o[r]===l.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,c=t.argsArray,u=t.iCurr,h=u-3,d=u-2,m=c[u-1][0],g=c[d][0],y=c[d][3],v=Math.min(Math.floor((r-h)/4),1e3);if(v<3)return r-(r-h)%4;for(var S=new Float32Array(2*v),k=d,C=0;C<v;C++,k+=4){var w=c[k];S[C<<1]=w[4];S[1+(C<<1)]=w[5]}var _=[m,g,y,S];o.splice(h,4*v,l.OPS.paintImageXObjectRepeat);c.splice(h,4*v,_);return h+1}));addState(t,[l.OPS.beginText,l.OPS.setFont,l.OPS.setTextMatrix,l.OPS.showText,l.OPS.endText],null,(function iterateShowTextGroup(t,r){var o=t.fnArray,c=t.argsArray,u=(r-(t.iCurr-4))%5;switch(u){case 0:return o[r]===l.OPS.beginText;case 1:return o[r]===l.OPS.setFont;case 2:return o[r]===l.OPS.setTextMatrix;case 3:if(o[r]!==l.OPS.showText)return!1;var h=t.iCurr-3,d=c[h][0],m=c[h][1];return c[r][0]===d&&c[r][1]===m;case 4:return o[r]===l.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(u))}),(function(t,r){var o=t.fnArray,l=t.argsArray,c=t.iCurr,u=c-4,h=c-3,d=c-2,m=c-1,g=c,y=l[h][0],v=l[h][1],S=Math.min(Math.floor((r-u)/5),1e3);if(S<3)return r-(r-u)%5;var k=u;if(u>=4&&o[u-4]===o[h]&&o[u-3]===o[d]&&o[u-2]===o[m]&&o[u-1]===o[g]&&l[u-4][0]===y&&l[u-4][1]===v){S++;k-=5}for(var C=k+4,w=1;w<S;w++){o.splice(C,3);l.splice(C,3);C+=2}return C+1}));function QueueOptimizer(t){this.queue=t;this.state=null;this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray};this.match=null;this.lastProcessed=0}QueueOptimizer.prototype={_optimize:function _optimize(){var r=this.queue.fnArray,o=this.lastProcessed,l=r.length,c=this.state,u=this.match;if(c||u||o+1!==l||t[r[o]]){for(var h=this.context;o<l;){if(u){if((0,u.iterateFn)(h,o)){o++;continue}o=(0,u.processFn)(h,o+1);u=null;c=null;if(o>=(l=r.length))break}if((c=(c||t)[r[o]])&&!Array.isArray(c)){h.iCurr=o;o++;if(!c.checkFn||(0,c.checkFn)(h)){u=c;c=null}else c=null}else o++}this.state=c;this.match=u;this.lastProcessed=o}else this.lastProcessed=l},push:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r);this._optimize()},flush:function flush(){for(;this.match;){var t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t);this.match=null;this.state=null;this._optimize()}},reset:function reset(){this.state=null;this.match=null;this.lastProcessed=0}};return QueueOptimizer}(),u=function NullOptimizerClosure(){function NullOptimizer(t){this.queue=t}NullOptimizer.prototype={push:function push(t,r){this.queue.fnArray.push(t);this.queue.argsArray.push(r)},flush:function flush(){},reset:function reset(){}};return NullOptimizer}(),h=function OperatorListClosure(){function OperatorList(t,r){this._streamSink=r;this.fnArray=[];this.argsArray=[];this.optimizer=r&&"oplist"!==t?new c(this):new u(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=r?null:Promise.resolve()}OperatorList.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function addOp(t,r){this.optimizer.push(t,r);this.weight++;this._streamSink&&(this.weight>=1e3||this.weight>=995&&(t===l.OPS.restore||t===l.OPS.endText))&&this.flush()},addDependency:function addDependency(t){if(!this.dependencies.has(t)){this.dependencies.add(t);this.addOp(l.OPS.dependency,[t])}},addDependencies:function addDependencies(t){var r,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;this.addDependency(l)}}catch(t){o.e(t)}finally{o.f()}},addOpList:function addOpList(t){if(t instanceof OperatorList){var r,o=_createForOfIteratorHelper(t.dependencies);try{for(o.s();!(r=o.n()).done;){var c=r.value;this.dependencies.add(c)}}catch(t){o.e(t)}finally{o.f()}for(var u=0,h=t.length;u<h;u++)this.addOp(t.fnArray[u],t.argsArray[u])}else(0,l.warn)('addOpList - ignoring invalid "opList" parameter.')},getIR:function getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){for(var t=[],r=this.fnArray,o=this.argsArray,c=this.length,u=0;u<c;u++)switch(r[u]){case l.OPS.paintInlineImageXObject:case l.OPS.paintInlineImageXObjectGroup:case l.OPS.paintImageMaskXObject:var h=o[u][0];h.cached||t.push(h.data.buffer)}return t},flush:function flush(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var r=this.length;this._totalLength+=r;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,length:r},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}};return OperatorList}();r.OperatorList=h},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFImage=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4),u=o(125),h=o(143),d=o(132),m=o(138),g=o(141);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function decodeAndClamp(t,r,o,l){(t=r+t*o)<0?t=0:t>l&&(t=l);return t}function resizeImageMask(t,r,o,l,c,u){var h,d=c*u;h=r<=8?new Uint8Array(d):r<=16?new Uint16Array(d):new Uint32Array(d);var m,g,y,v,S=o/c,k=l/u,C=0,w=new Uint16Array(c),_=o;for(m=0;m<c;m++)w[m]=Math.floor(m*S);for(m=0;m<u;m++){y=Math.floor(m*k)*_;for(g=0;g<c;g++){v=y+w[g];h[C++]=t[v]}}return h}var y=function(){function PDFImage(t){var r=t.xref,o=t.res,l=t.image,d=t.isInline,m=void 0!==d&&d,y=t.smask,v=void 0===y?null:y,S=t.mask,k=void 0===S?null:S,C=t.isMask,w=void 0!==C&&C,_=t.pdfFunctionFactory,O=t.localColorSpaceCache;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,PDFImage);this.image=l;var x=l.dict,T=x.get("Filter");if((0,u.isName)(T))switch(T.name){case"JPXDecode":var R=new g.JpxImage;R.parseImageProperties(l.stream);l.stream.reset();l.width=R.width;l.height=R.height;l.bitsPerComponent=R.bitsPerComponent;l.numComps=R.componentsCount;break;case"JBIG2Decode":l.bitsPerComponent=1;l.numComps=1}var E=x.get("Width","W"),D=x.get("Height","H");if(Number.isInteger(l.width)&&l.width>0&&Number.isInteger(l.height)&&l.height>0&&(l.width!==E||l.height!==D)){(0,c.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");E=l.width;D=l.height}if(E<1||D<1)throw new c.FormatError("Invalid image width: ".concat(E," or height: ").concat(D));this.width=E;this.height=D;this.interpolate=x.get("Interpolate","I")||!1;this.imageMask=x.get("ImageMask","IM")||!1;this.matte=x.get("Matte")||!1;var j=l.bitsPerComponent;if(!j&&!(j=x.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new c.FormatError("Bits per component missing in image: ".concat(this.imageMask));j=1}this.bpc=j;if(!this.imageMask){var M=x.getRaw("ColorSpace")||x.getRaw("CS");if(!M){(0,c.info)("JPX images (which do not require color spaces)");switch(l.numComps){case 1:M=u.Name.get("DeviceGray");break;case 3:M=u.Name.get("DeviceRGB");break;case 4:M=u.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(l.numComps," ")+"color components not supported.")}}this.colorSpace=h.ColorSpace.parse({cs:M,xref:r,resources:m?o:null,pdfFunctionFactory:_,localColorSpaceCache:O});this.numComps=this.colorSpace.numComps}this.decode=x.getArray("Decode","D");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,j)||w&&!h.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var N=(1<<j)-1;this.decodeCoefficients=[];this.decodeAddends=[];for(var L=this.colorSpace&&"Indexed"===this.colorSpace.name,U=0,q=0;U<this.decode.length;U+=2,++q){var X=this.decode[U],W=this.decode[U+1];this.decodeCoefficients[q]=L?(W-X)/N:W-X;this.decodeAddends[q]=L?X:N*X}}if(v)this.smask=new PDFImage({xref:r,res:o,image:v,isInline:m,pdfFunctionFactory:_,localColorSpaceCache:O});else if(k)if((0,u.isStream)(k)){k.dict.get("ImageMask","IM")?this.mask=new PDFImage({xref:r,res:o,image:k,isInline:m,isMask:!0,pdfFunctionFactory:_,localColorSpaceCache:O}):(0,c.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=k}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(PDFImage,[{key:"drawWidth",get:function get(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)}},{key:"drawHeight",get:function get(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)}},{key:"decodeBuffer",value:function decodeBuffer(t){var r,o,l=this.bpc,c=this.numComps,u=this.decodeAddends,h=this.decodeCoefficients,d=(1<<l)-1;if(1!==l){var m=0;for(r=0,o=this.width*this.height;r<o;r++)for(var g=0;g<c;g++){t[m]=decodeAndClamp(t[m],u[g],h[g],d);m++}}else for(r=0,o=t.length;r<o;r++)t[r]=+!t[r]}},{key:"getComponents",value:function getComponents(t){var r=this.bpc;if(8===r)return t;var o,l=this.width,c=this.height,u=this.numComps,h=l*c*u,d=0;o=r<=8?new Uint8Array(h):r<=16?new Uint16Array(h):new Uint32Array(h);var m,g,y=l*u,v=(1<<r)-1,S=0;if(1===r)for(var k,C,w,_=0;_<c;_++){C=S+(-8&y);w=S+y;for(;S<C;){g=t[d++];o[S]=g>>7&1;o[S+1]=g>>6&1;o[S+2]=g>>5&1;o[S+3]=g>>4&1;o[S+4]=g>>3&1;o[S+5]=g>>2&1;o[S+6]=g>>1&1;o[S+7]=1&g;S+=8}if(S<w){g=t[d++];k=128;for(;S<w;){o[S++]=+!!(g&k);k>>=1}}}else{var O=0;g=0;for(S=0,m=h;S<m;++S){if(S%y==0){g=0;O=0}for(;O<r;){g=g<<8|t[d++];O+=8}var x=O-r,T=g>>x;T<0?T=0:T>v&&(T=v);o[S]=T;g&=(1<<x)-1;O=x}}return o}},{key:"fillOpacity",value:function fillOpacity(t,r,o,l,u){var h,d,m,g,y,v,S=this.smask,k=this.mask;if(S){d=S.width;m=S.height;h=new Uint8ClampedArray(d*m);S.fillGrayBuffer(h);d===r&&m===o||(h=resizeImageMask(h,S.bpc,d,m,r,o))}else if(k)if(k instanceof PDFImage){d=k.width;m=k.height;h=new Uint8ClampedArray(d*m);k.numComps=1;k.fillGrayBuffer(h);for(g=0,y=d*m;g<y;++g)h[g]=255-h[g];d===r&&m===o||(h=resizeImageMask(h,k.bpc,d,m,r,o))}else{if(!Array.isArray(k))throw new c.FormatError("Unknown mask format.");h=new Uint8ClampedArray(r*o);var C=this.numComps;for(g=0,y=r*o;g<y;++g){var w=0,_=g*C;for(v=0;v<C;++v){var O=u[_+v],x=2*v;if(O<k[x]||O>k[x+1]){w=255;break}}h[g]=w}}if(h)for(g=0,v=3,y=r*l;g<y;++g,v+=4)t[v]=h[g];else for(g=0,v=3,y=r*l;g<y;++g,v+=4)t[v]=255}},{key:"undoPreblend",value:function undoPreblend(t,r,o){var l=this.smask&&this.smask.matte;if(l)for(var c=this.colorSpace.getRgb(l,0),u=c[0],h=c[1],d=c[2],m=r*o*4,g=0;g<m;g+=4){var y=t[g+3];if(0!==y){var v=255/y;t[g]=(t[g]-u)*v+u;t[g+1]=(t[g+1]-h)*v+h;t[g+2]=(t[g+2]-d)*v+d}else{t[g]=255;t[g+1]=255;t[g+2]=255}}}},{key:"createImageData",value:function createImageData(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.drawWidth,l=this.drawHeight,u={width:o,height:l,kind:0,data:null},h=this.numComps,g=this.width,y=this.height,v=this.bpc,S=g*h*v+7>>3;if(!r){var k;"DeviceGray"===this.colorSpace.name&&1===v?k=c.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==v||this.needsDecode||(k=c.ImageKind.RGB_24BPP);if(k&&!this.smask&&!this.mask&&o===g&&l===y){u.kind=k;t=this.getImageBytes(y*S);if(this.image instanceof d.DecodeStream)u.data=t;else{var C=new Uint8ClampedArray(t.length);C.set(t);u.data=C}if(this.needsDecode){(0,c.assert)(k===c.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var w=u.data,_=0,O=w.length;_<O;_++)w[_]^=255}return u}if(this.image instanceof m.JpegStream&&!this.smask&&!this.mask){var x=y*S;switch(this.colorSpace.name){case"DeviceGray":x*=3;case"DeviceRGB":case"DeviceCMYK":u.kind=c.ImageKind.RGB_24BPP;u.data=this.getImageBytes(x,o,l,!0);return u}}}var T,R,E=0|(t=this.getImageBytes(y*S)).length/S*l/y,D=this.getComponents(t);if(r||this.smask||this.mask){u.kind=c.ImageKind.RGBA_32BPP;u.data=new Uint8ClampedArray(o*l*4);T=1;R=!0;this.fillOpacity(u.data,o,l,E,D)}else{u.kind=c.ImageKind.RGB_24BPP;u.data=new Uint8ClampedArray(o*l*3);T=0;R=!1}this.needsDecode&&this.decodeBuffer(D);this.colorSpace.fillRgb(u.data,g,y,o,l,E,v,D,T);R&&this.undoPreblend(u.data,o,E);return u}},{key:"fillGrayBuffer",value:function fillGrayBuffer(t){var r=this.numComps;if(1!==r)throw new c.FormatError("Reading gray scale from a color image: ".concat(r));var o,l,u=this.width,h=this.height,d=this.bpc,m=u*r*d+7>>3,g=this.getImageBytes(h*m),y=this.getComponents(g);if(1!==d){this.needsDecode&&this.decodeBuffer(y);l=u*h;var v=255/((1<<d)-1);for(o=0;o<l;++o)t[o]=v*y[o]}else{l=u*h;if(this.needsDecode)for(o=0;o<l;++o)t[o]=y[o]-1&255;else for(o=0;o<l;++o)t[o]=255&-y[o]}}},{key:"getImageBytes",value:function getImageBytes(t,r,o){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.image.reset();this.image.drawWidth=r||this.width;this.image.drawHeight=o||this.height;this.image.forceRGB=!!l;return this.image.getBytes(t,!0)}}],[{key:"buildImage",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){var r,o,h,d,m,g,y,v,S,k,C,w;return l.default.wrap((function _callee$(l){for(;;)switch(l.prev=l.next){case 0:r=t.xref,o=t.res,h=t.image,d=t.isInline,m=void 0!==d&&d,g=t.pdfFunctionFactory,y=t.localColorSpaceCache;v=h;S=null;k=null;C=h.dict.get("SMask");w=h.dict.get("Mask");C?S=C:w&&((0,u.isStream)(w)||Array.isArray(w)?k=w:(0,c.warn)("Unsupported mask format."));return l.abrupt("return",new PDFImage({xref:r,res:o,image:v,isInline:m,smask:S,mask:k,pdfFunctionFactory:g,localColorSpaceCache:y}));case 8:case"end":return l.stop()}}),_callee)}))),function buildImage(r){return t.apply(this,arguments)})},{key:"createMask",value:function createMask(t){var r,o,l=t.imgArray,c=t.width,u=t.height,h=t.imageIsFromDecodeStream,d=t.inverseDecode,m=(c+7>>3)*u,g=l.byteLength;if(!h||d&&!(m===g))if(d){(r=new Uint8ClampedArray(m)).set(l);for(o=g;o<m;o++)r[o]=255}else(r=new Uint8ClampedArray(g)).set(l);else r=l;if(d)for(o=0;o<g;o++)r[o]^=255;return{data:r,width:c,height:u}}}]);var t;return PDFImage}();r.PDFImage=y},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.incrementalUpdate=function incrementalUpdate(t){var r=t.originalData,o=t.xrefInfo,m=t.newRefs,g=t.xref,y=void 0===g?null:g,v=t.datasetsRef;!function updateXFA(t,r,o){if(null===t||null===o)return;var c,d=o.fetchIfRef(t),m=(0,l.bytesToString)(d.getBytes()),g=new h.SimpleXMLParser({hasAttributes:!0}).parseFromString(m),y=_createForOfIteratorHelper(r);try{for(y.s();!(c=y.n()).done;){var v=c.value.xfa;if(v){var S=v.path,k=v.value;if(S){var C=g.documentElement.searchNode((0,u.parseXFAPath)(S),0);C?C.childNodes=[new h.SimpleDOMNode("#text",k)]:(0,l.warn)("Node not found for path: ".concat(S))}}}}catch(t){y.e(t)}finally{y.f()}var w=[];g.documentElement.dump(w);var _=w.join(""),O=o.encrypt;if(O){_=O.createCipherTransform(t.num,t.gen).encryptString(_)}var x="".concat(t.num," ").concat(t.gen," obj\n")+"<< /Type /EmbeddedFile /Length ".concat(_.length,">>\nstream\n")+_+"\nendstream\nendobj\n";r.push({ref:t,data:x})}(void 0===v?null:v,m,y);var S,k,C=new c.Dict(null),w=o.newRef,_=r[r.length-1];if(10===_||13===_){S=[];k=r.length}else{S=["\n"];k=r.length+1}C.set("Size",w.num+1);C.set("Prev",o.startXRef);C.set("Type",c.Name.get("XRef"));null!==o.rootRef&&C.set("Root",o.rootRef);null!==o.infoRef&&C.set("Info",o.infoRef);null!==o.encrypt&&C.set("Encrypt",o.encrypt);m.push({ref:w,data:""});m=m.sort((function(t,r){return t.ref.num-r.ref.num}));var O,x=[[0,1,65535]],T=[0,1],R=0,E=_createForOfIteratorHelper(m);try{for(E.s();!(O=E.n()).done;){var D=O.value,j=D.ref,M=D.data;R=Math.max(R,k);x.push([1,k,Math.min(j.gen,65535)]);k+=M.length;T.push(j.num);T.push(1);S.push(M)}}catch(t){E.e(t)}finally{E.f()}C.set("Index",T);if(0!==o.fileIds.length){var N=function computeMD5(t,r){for(var o=Math.floor(Date.now()/1e3),c=r.filename||"",u=[o.toString(),c,t.toString()],h=u.reduce((function(t,r){return t+r.length}),0),m=0,g=Object.values(r.info);m<g.length;m++){var y=g[m];u.push(y);h+=y.length}for(var v=new Uint8Array(h),S=0,k=0,C=u;k<C.length;k++){var w=C[k];writeString(w,S,v);S+=w.length}return(0,l.bytesToString)((0,d.calculateMD5)(v))}(k,o);C.set("ID",[o.fileIds[0],N])}var L=[1,Math.ceil(Math.log2(R)/8),2],U=(L[0]+L[1]+L[2])*x.length;C.set("W",L);C.set("Length",U);S.push("".concat(w.num," ").concat(w.gen," obj\n"));writeDict(C,S,null);S.push(" stream\n");var q=S.reduce((function(t,r){return t+r.length}),0),X="\nendstream\nendobj\nstartxref\n".concat(k,"\n%%EOF\n"),W=new Uint8Array(r.length+q+U+X.length);W.set(r);var H,z=r.length,G=_createForOfIteratorHelper(S);try{for(G.s();!(H=G.n()).done;){var V=H.value;writeString(V,z,W);z+=V.length}}catch(t){G.e(t)}finally{G.f()}for(var $=0,K=x;$<K.length;$++){var Y=(ee=K[$],te=3,function _arrayWithHoles(t){if(Array.isArray(t))return t}(ee)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(ee,te)||_unsupportedIterableToArray(ee,te)||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.")}()),J=Y[0],Q=Y[1],Z=Y[2];z=writeInt(J,L[0],z,W);z=writeInt(Q,L[1],z,W);z=writeInt(Z,L[2],z,W)}var ee,te;writeString(X,z,W);return W};r.writeDict=writeDict;var l=o(4),c=o(125),u=o(128),h=o(146),d=o(142);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function writeDict(t,r,o){r.push("<<");var l,c=_createForOfIteratorHelper(t.getKeys());try{for(c.s();!(l=c.n()).done;){var h=l.value;r.push(" /".concat((0,u.escapePDFName)(h)," "));writeValue(t.getRaw(h),r,o)}}catch(t){c.e(t)}finally{c.f()}r.push(">>")}function writeValue(t,r,o){if((0,c.isName)(t))r.push("/".concat((0,u.escapePDFName)(t.name)));else if((0,c.isRef)(t))r.push("".concat(t.num," ").concat(t.gen," R"));else if(Array.isArray(t))!function writeArray(t,r,o){r.push("[");var l,c=!0,u=_createForOfIteratorHelper(t);try{for(u.s();!(l=u.n()).done;){var h=l.value;c?c=!1:r.push(" ");writeValue(h,r,o)}}catch(t){u.e(t)}finally{u.f()}r.push("]")}(t,r,o);else if("string"==typeof t){null!==o&&(t=o.encryptString(t));r.push("(".concat((0,l.escapeString)(t),")"))}else"number"==typeof t?r.push(function numberToString(t){if(Number.isInteger(t))return t.toString();var r=Math.round(100*t);return r%100==0?(r/100).toString():r%10==0?t.toFixed(1):t.toFixed(2)}(t)):(0,c.isDict)(t)?writeDict(t,r,o):(0,c.isStream)(t)&&function writeStream(t,r,o){writeDict(t.dict,r,o);r.push(" stream\n");var c=(0,l.bytesToString)(t.getBytes());null!==o&&(c=o.encryptString(c));r.push(c);r.push("\nendstream\n")}(t,r,o)}function writeInt(t,r,o,l){for(var c=r+o-1;c>o-1;c--){l[c]=255&t;t>>=8}return o+r}function writeString(t,r,o){for(var l=0,c=t.length;l<c;l++)o[r+l]=255&t.charCodeAt(l)}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.XFAFactory=void 0;var l=o(170),c=o(173),u=o(177);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var h=function(){function XFAFactory(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAFactory);try{this.root=(new u.XFAParser).parse(XFAFactory._createDocument(t));this.form=new c.Binder(this.root).bind();this.pages=this.form[l.$toHTML]()}catch(t){console.log(t)}}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(XFAFactory,[{key:"getPage",value:function getPage(t){return this.pages.children[t]}},{key:"numberPages",get:function get(){return this.pages.children.length}}],[{key:"_createDocument",value:function _createDocument(t){return t["/xdp:xdp"]?Object.values(t).join(""):t["xdp:xdp"]}}]);return XFAFactory}();r.XFAFactory=h},(t,r,o)=>{"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.XmlObject=r.XFAObjectArray=r.XFAObject=r.XFAAttribute=r.StringObject=r.OptionObject=r.Option10=r.Option01=r.IntegerObject=r.ContentObject=r.$uid=r.$toStyle=r.$toHTML=r.$text=r.$setValue=r.$setSetAttributes=r.$setId=r.$resolvePrototypes=r.$removeChild=r.$onText=r.$onChildCheck=r.$onChild=r.$nsAttributes=r.$nodeName=r.$namespaceId=r.$isTransparent=r.$isDescendent=r.$isDataValue=r.$insertAt=r.$indexOf=r.$hasSettableValue=r.$hasItem=r.$global=r.$getRealChildrenByNameIt=r.$getParent=r.$getChildrenByNameIt=r.$getChildrenByName=r.$getChildrenByClass=r.$getChildren=r.$getAttributeIt=r.$finalize=r.$extra=r.$dump=r.$data=r.$content=r.$consumed=r.$clone=r.$cleanup=r.$clean=r.$childrenToHTML=r.$appendChild=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(171),u=o(4),h=o(172);function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||t)}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?_assertThisInitialized(t):r}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))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 _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var d=Symbol();r.$appendChild=d;var m=Symbol();r.$childrenToHTML=m;var g=Symbol();r.$clean=g;var y=Symbol();r.$cleanup=y;var v=Symbol();r.$clone=v;var S=Symbol();r.$consumed=S;var k=Symbol("content");r.$content=k;var C=Symbol("data");r.$data=C;var w=Symbol();r.$dump=w;var _=Symbol("extra");r.$extra=_;var O=Symbol();r.$finalize=O;var x=Symbol();r.$getAttributeIt=x;var T=Symbol();r.$getChildrenByClass=T;var R=Symbol();r.$getChildrenByName=R;var E=Symbol();r.$getChildrenByNameIt=E;var D=Symbol();r.$getRealChildrenByNameIt=D;var j=Symbol();r.$getChildren=j;var M=Symbol();r.$getParent=M;var N=Symbol();r.$global=N;var L=Symbol();r.$hasItem=L;var U=Symbol();r.$hasSettableValue=U;var q=Symbol();r.$indexOf=q;var X=Symbol();r.$insertAt=X;var W=Symbol();r.$isDataValue=W;var H=Symbol();r.$isDescendent=H;var z=Symbol();r.$isTransparent=z;var G=Symbol(),V=Symbol("namespaceId");r.$namespaceId=V;var $=Symbol("nodeName");r.$nodeName=$;var K=Symbol();r.$nsAttributes=K;var Y=Symbol();r.$onChild=Y;var J=Symbol();r.$onChildCheck=J;var Q=Symbol();r.$onText=Q;var Z=Symbol();r.$removeChild=Z;var ee=Symbol();r.$resolvePrototypes=ee;var te=Symbol();r.$setId=te;var re=Symbol();r.$setSetAttributes=re;var ae=Symbol();r.$setValue=ae;var ne=Symbol();r.$text=ne;var ie=Symbol();r.$toHTML=ie;var oe=Symbol();r.$toStyle=oe;var se=Symbol("uid");r.$uid=se;var le=Symbol(),ce=Symbol(),ue=Symbol(),fe=Symbol("_children"),he=Symbol(),de=Symbol(),pe=Symbol(),me=Symbol(),ge=Symbol(),ye=Symbol(),ve=Symbol(),be=Symbol(),Se=Symbol("parent"),ke=Symbol(),Ce=Symbol(),we=0,_e=function(){function XFAObject(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,XFAObject);this[V]=t;this[$]=r;this[ye]=o;this[Se]=null;this[fe]=[];this[se]="".concat(r).concat(we++)}_createClass(XFAObject,[{key:Y,value:function value(t){if(!this[ye]||!this[J](t))return!1;var r=t[$],o=this[r];if(!(o instanceof Ae)){null!==o&&this[Z](o);this[r]=t;this[d](t);return!0}if(o.push(t)){this[d](t);return!0}var l="";this.id?l=" (id: ".concat(this.id,")"):this.name&&(l=" (name: ".concat(this.name," ").concat(this.h.value,")"));(0,u.warn)('XFA - node "'.concat(this[$],'"').concat(l,' has already enough "').concat(r,'"!'));return!1}},{key:J,value:function value(t){return this.hasOwnProperty(t[$])&&t[V]===this[V]}},{key:te,value:function value(t){this.id&&this[V]===h.NamespaceIds.template.id&&t.set(this.id,this)}},{key:d,value:function value(t){t[Se]=this;this[fe].push(t)}},{key:Z,value:function value(t){var r=this[fe].indexOf(t);this[fe].splice(r,1)}},{key:U,value:function value(){return this.hasOwnProperty("value")}},{key:ae,value:function value(t){}},{key:Q,value:function value(t){}},{key:O,value:function value(){}},{key:g,value:function value(t){delete this[ye];if(this[y]){t.clean(this[y]);delete this[y]}}},{key:L,value:function value(){return!1}},{key:q,value:function value(t){return this[fe].indexOf(t)}},{key:X,value:function value(t,r){r[Se]=this;this[fe].splice(t,0,r)}},{key:z,value:function value(){return""===this.name}},{key:G,value:function value(){return""}},{key:ne,value:function value(){return 0===this[fe].length?this[k]:this[fe].map((function(t){return t[ne]()})).join("")}},{key:ue,get:function get(){var t=Object.getPrototypeOf(this);if(!t._attributes){var r,o=t._attributes=new Set,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(l.s();!(r=l.n()).done;){var c=r.value;if(null===this[c]||this[c]instanceof XFAObject||this[c]instanceof Ae)break;o.add(c)}}catch(t){l.e(t)}finally{l.f()}}return(0,u.shadow)(this,ue,t._attributes)}},{key:H,value:function value(t){for(var r=this;r;){if(r===t)return!0;r=r[M]()}return!1}},{key:M,value:function value(){return this[Se]}},{key:j,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[t]:this[fe]}},{key:w,value:function value(){var t=Object.create(null);this[k]&&(t.$content=this[k]);var r,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(o.s();!(r=o.n()).done;){var l=r.value,value=this[l];null!==value&&(value instanceof XFAObject?t[l]=value[w]():value instanceof Ae?value.isEmpty()||(t[l]=value.dump()):t[l]=value)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:oe,value:function value(){return null}},{key:ie,value:function value(){return null}},{key:m,value:function value(t){var r=t.filter,o=void 0===r?null:r,l=t.include,c=void 0===l||l,u=[];this[j]().forEach((function(t){if(!o||c===o.has(t[$])){var r=t[ie]();r&&u.push(r)}}));return u}},{key:re,value:function value(t){(t.use||t.id)&&(this[ke]=new Set(Object.keys(t)))}},{key:ge,value:function value(t){var r=this[ue],o=this[ke];return _toConsumableArray(t).filter((function(t){return r.has(t)&&!o.has(t)}))}},{key:ee,value:function value(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,l=_createForOfIteratorHelper(this[fe]);try{for(l.s();!(r=l.n()).done;){var c=r.value,u=c[me](t,o);u?c[le](u,t,o):c[ee](t,o)}}catch(t){l.e(t)}finally{l.f()}}},{key:me,value:function value(t,r){var o=this.use;if(o&&o.startsWith("#")){var l=o.slice(1),c=t.get(l);this.use="";if(!c){(0,u.warn)("XFA - Invalid prototype id: ".concat(l,"."));return null}if(c[$]!==this[$]){(0,u.warn)("XFA - Incompatible prototype: ".concat(c[$]," !== ").concat(this[$],"."));return null}if(r.has(c)){(0,u.warn)("XFA - Cycle detected in prototypes use.");return null}r.add(c);var h=c[me](t,r);if(!h){r.delete(c);return c}c[le](h,t,r);r.delete(c);return c}return null}},{key:le,value:function value(t,r,o){if(o.has(t))(0,u.warn)("XFA - Cycle detected in prototypes use.");else{!this[k]&&t[k]&&(this[k]=t[k]);var l=new Set(o);l.add(t);var c,h=_createForOfIteratorHelper(this[ge](t[ke]));try{for(h.s();!(c=h.n()).done;){var d=c.value;this[d]=t[d];this[ke]&&this[ke].add(d)}}catch(t){h.e(t)}finally{h.f()}var m,g=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(g.s();!(m=g.n()).done;){var y=m.value;if(!this[ue].has(y)){var value=this[y],S=t[y];if(value instanceof Ae){var C,w=_createForOfIteratorHelper(value[fe]);try{for(w.s();!(C=w.n()).done;){C.value[ee](r,o)}}catch(t){w.e(t)}finally{w.f()}for(var _=value[fe].length,O=S[fe].length;_<O;_++){var x=t[fe][_][v]();if(!value.push(x))break;x[Se]=this;this[fe].push(x);x[ee](r,l)}}else if(null===value){if(null!==S){var T=S[v]();T[Se]=this;this[y]=T;this[fe].push(T);T[ee](r,l)}}else value[ee](r,o)}}}catch(t){g.e(t)}finally{g.f()}}}},{key:v,value:function value(){var t,r=Object.create(Object.getPrototypeOf(this)),o=_createForOfIteratorHelper(Object.getOwnPropertySymbols(this));try{for(o.s();!(t=o.n()).done;){var l=t.value;try{r[l]=this[l]}catch(t){(0,u.shadow)(r,l,this[l])}}}catch(t){o.e(t)}finally{o.f()}r[fe]=[];var c,h=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(h.s();!(c=h.n()).done;){var d=c.value;if(this[ue].has(d))r[d]=XFAObject[he](this[d]);else{var value=this[d];r[d]=value instanceof Ae?new Ae(value[ve]):null}}}catch(t){h.e(t)}finally{h.f()}var m,g=_createForOfIteratorHelper(this[fe]);try{for(g.s();!(m=g.n()).done;){var y=m.value,S=y[$],k=y[v]();r[fe].push(k);k[Se]=r;null===r[S]?r[S]=k:r[S][fe].push(k)}}catch(t){g.e(t)}finally{g.f()}return r}},{key:j,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[fe].filter((function(r){return r[$]===t})):this[fe]}},{key:T,value:function value(t){return this[t]}},{key:R,value:function value(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Array.from(this[E](t,r,o))}},{key:E,value:l.default.mark((function value(t,r){var o,c,u,h,d=arguments;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:o=!(d.length>2&&void 0!==d[2])||d[2];if("parent"!==t){l.next=5;break}l.next=4;return this[Se];case 4:return l.abrupt("return");case 5:c=_createForOfIteratorHelper(this[fe]);l.prev=6;c.s();case 8:if((u=c.n()).done){l.next=20;break}if((h=u.value)[$]!==t){l.next=13;break}l.next=13;return h;case 13:if(h.name!==t){l.next=16;break}l.next=16;return h;case 16:if(!r&&!h[z]()){l.next=18;break}return l.delegateYield(h[E](t,r,!1),"t0",18);case 18:l.next=8;break;case 20:l.next=25;break;case 22:l.prev=22;l.t1=l.catch(6);c.e(l.t1);case 25:l.prev=25;c.f();return l.finish(25);case 28:if(!o||!this[ue].has(t)){l.next=31;break}l.next=31;return new Oe(this,t,this[t]);case 31:case"end":return l.stop()}}),value,this,[[6,22,25,28]])}))}],[{key:he,value:function value(t){return Array.isArray(t)?t.map((function(t){return XFAObject[he](t)})):t instanceof Object?Object.assign({},t):t}}]);return XFAObject}();r.XFAObject=_e;var Ae=function(){function XFAObjectArray(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;_classCallCheck(this,XFAObjectArray);this[ve]=t;this[fe]=[]}_createClass(XFAObjectArray,[{key:"push",value:function push(t){if(this[fe].length<=this[ve]){this[fe].push(t);return!0}(0,u.warn)('XFA - node "'.concat(t[$],'" accepts no more than ').concat(this[ve]," children"));return!1}},{key:"isEmpty",value:function isEmpty(){return 0===this[fe].length}},{key:"dump",value:function dump(){return 1===this[fe].length?this[fe][0][w]():this[fe].map((function(t){return t[w]()}))}},{key:v,value:function value(){var t=new XFAObjectArray(this[ve]);t[fe]=this[fe].map((function(t){return t[v]()}));return t}},{key:"children",get:function get(){return this[fe]}},{key:"clear",value:function clear(){this[fe].length=0}}]);return XFAObjectArray}();r.XFAObjectArray=Ae;var Oe=function(){function XFAAttribute(t,r,o){_classCallCheck(this,XFAAttribute);this[Se]=t;this[$]=r;this[k]=o;this[S]=!1}_createClass(XFAAttribute,[{key:M,value:function value(){return this[Se]}},{key:W,value:function value(){return!0}},{key:ne,value:function value(){return this[k]}},{key:H,value:function value(t){return this[Se]===t||this[Se][H](t)}}]);return XFAAttribute}();r.XFAAttribute=Oe;var xe=function(t){_inherits(XmlObject,t);var r=_createSuper(XmlObject);function XmlObject(t,o){var l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,XmlObject);(l=r.call(this,t,o))[k]="";l[de]=null;if("#text"!==o){var u=new Map;l[ce]=u;for(var h=0,d=Object.entries(c);h<d.length;h++){var m=_slicedToArray(d[h],2),g=m[0],y=m[1];u.set(g,new Oe(_assertThisInitialized(l),g,y))}if(c.hasOwnProperty(K)){var v=c[K].xfa.dataNode;void 0!==v&&("dataGroup"===v?l[de]=!1:"dataValue"===v&&(l[de]=!0))}}l[S]=!1;return l}_createClass(XmlObject,[{key:Y,value:function value(t){if(this[k]){var r=new XmlObject(this[V],"#text");this[d](r);r[k]=this[k];this[k]=""}this[d](t);return!0}},{key:Q,value:function value(t){this[k]+=t}},{key:O,value:function value(){if(this[k]&&this[fe].length>0){var t=new XmlObject(this[V],"#text");this[d](t);t[k]=this[k];delete this[k]}}},{key:ie,value:function value(){return"#text"===this[$]?{name:"#text",value:this[k]}:null}},{key:j,value:function value(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?this[fe].filter((function(r){return r[$]===t})):this[fe]}},{key:T,value:function value(t){var value=this[ce].get(t);return void 0!==value?value:this[j](t)}},{key:E,value:l.default.mark((function value(t,r){var value,o,c,u;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:value=this[ce].get(t);if(!value){l.next=4;break}l.next=4;return value;case 4:o=_createForOfIteratorHelper(this[fe]);l.prev=5;o.s();case 7:if((c=o.n()).done){l.next=16;break}if((u=c.value)[$]!==t){l.next=12;break}l.next=12;return u;case 12:if(!r){l.next=14;break}return l.delegateYield(u[E](t,r),"t0",14);case 14:l.next=7;break;case 16:l.next=21;break;case 18:l.prev=18;l.t1=l.catch(5);o.e(l.t1);case 21:l.prev=21;o.f();return l.finish(21);case 24:case"end":return l.stop()}}),value,this,[[5,18,21,24]])}))},{key:x,value:l.default.mark((function value(t,r){var value,o,c,u;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:value=this[ce].get(t);if(!value||r&&value[S]){l.next=4;break}l.next=4;return value;case 4:o=_createForOfIteratorHelper(this[fe]);l.prev=5;o.s();case 7:if((c=o.n()).done){l.next=12;break}u=c.value;return l.delegateYield(u[x](t,r),"t0",10);case 10:l.next=7;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(5);o.e(l.t1);case 17:l.prev=17;o.f();return l.finish(17);case 20:case"end":return l.stop()}}),value,this,[[5,14,17,20]])}))},{key:D,value:l.default.mark((function value(t,r,o){var c,u,h;return l.default.wrap((function value$(l){for(;;)switch(l.prev=l.next){case 0:c=_createForOfIteratorHelper(this[fe]);l.prev=1;c.s();case 3:if((u=c.n()).done){l.next=12;break}if((h=u.value)[$]!==t||o&&h[S]){l.next=8;break}l.next=8;return h;case 8:if(!r){l.next=10;break}return l.delegateYield(h[D](t,r,o),"t0",10);case 10:l.next=3;break;case 12:l.next=17;break;case 14:l.prev=14;l.t1=l.catch(1);c.e(l.t1);case 17:l.prev=17;c.f();return l.finish(17);case 20:case"end":return l.stop()}}),value,this,[[1,14,17,20]])}))},{key:W,value:function value(){return null===this[de]?0===this[fe].length:this[de]}},{key:w,value:function value(){var t=Object.create(null);this[k]&&(t.$content=this[k]);t.$name=this[$];t.children=[];var r,o=_createForOfIteratorHelper(this[fe]);try{for(o.s();!(r=o.n()).done;){var l=r.value;t.children.push(l[w]())}}catch(t){o.e(t)}finally{o.f()}t.attributes=Object.create(null);var c,u=_createForOfIteratorHelper(this[ce]);try{for(u.s();!(c=u.n()).done;){var h=_slicedToArray(c.value,2),d=h[0],m=h[1];t.attributes[d]=m[k]}}catch(t){u.e(t)}finally{u.f()}return t}}]);return XmlObject}(_e);r.XmlObject=xe;var Pe=function(t){_inherits(ContentObject,t);var r=_createSuper(ContentObject);function ContentObject(t,o){var l;_classCallCheck(this,ContentObject);(l=r.call(this,t,o))[k]="";return l}_createClass(ContentObject,[{key:Q,value:function value(t){this[k]+=t}},{key:O,value:function value(){}}]);return ContentObject}(_e);r.ContentObject=Pe;var Te=function(t){_inherits(OptionObject,t);var r=_createSuper(OptionObject);function OptionObject(t,o,l){var c;_classCallCheck(this,OptionObject);(c=r.call(this,t,o))[be]=l;return c}_createClass(OptionObject,[{key:O,value:function value(){var t=this;this[k]=(0,c.getKeyword)({data:this[k],defaultValue:this[be][0],validate:function validate(r){return t[be].includes(r)}})}},{key:g,value:function value(t){_get(_getPrototypeOf(OptionObject.prototype),g,this).call(this,t);delete this[be]}}]);return OptionObject}(Pe);r.OptionObject=Te;var Ie=function(t){_inherits(StringObject,t);var r=_createSuper(StringObject);function StringObject(){_classCallCheck(this,StringObject);return r.apply(this,arguments)}_createClass(StringObject,[{key:O,value:function value(){this[k]=this[k].trim()}}]);return StringObject}(Pe);r.StringObject=Ie;var Fe=function(t){_inherits(IntegerObject,t);var r=_createSuper(IntegerObject);function IntegerObject(t,o,l,c){var u;_classCallCheck(this,IntegerObject);(u=r.call(this,t,o))[pe]=l;u[Ce]=c;return u}_createClass(IntegerObject,[{key:O,value:function value(){this[k]=(0,c.getInteger)({data:this[k],defaultValue:this[pe],validate:this[Ce]})}},{key:g,value:function value(t){_get(_getPrototypeOf(IntegerObject.prototype),g,this).call(this,t);delete this[pe];delete this[Ce]}}]);return IntegerObject}(Pe);r.IntegerObject=Fe;var Re=function(t){_inherits(Option01,t);var r=_createSuper(Option01);function Option01(t,o){_classCallCheck(this,Option01);return r.call(this,t,o,0,(function(t){return 1===t}))}return Option01}(Fe);r.Option01=Re;var Ee=function(t){_inherits(Option10,t);var r=_createSuper(Option10);function Option10(t,o){_classCallCheck(this,Option10);return r.call(this,t,o,1,(function(t){return 0===t}))}return Option10}(Fe);r.Option10=Ee},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.getBBox=function getBBox(t){var r=-1;if(!t)return{x:r,y:r,width:r,height:r};var o=t.trim().split(/\s*,\s*/).map((function(t){return getMeasurement(t,"-1")}));if(o.length<4||o[2]<0||o[3]<0)return{x:r,y:r,width:r,height:r};var l=_slicedToArray(o,4),c=l[0],u=l[1],h=l[2],d=l[3];return{x:c,y:u,width:h,height:d}};r.getColor=function getColor(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0],o=_slicedToArray(r,3),l=o[0],c=o[1],u=o[2];if(!t)return{r:l,g:c,b:u};var h=t.trim().split(/\s*,\s*/).map((function(t){return Math.min(Math.max(0,parseInt(t.trim(),10)),255)})).map((function(t){return isNaN(t)?0:t}));if(h.length<3)return{r:l,g:c,b:u};var d=_slicedToArray(h,3);l=d[0];c=d[1];u=d[2];return{r:l,g:c,b:u}};r.getFloat=function getFloat(t){var r=t.data,o=t.defaultValue,l=t.validate;if(!r)return o;r=r.trim();var c=parseFloat(r);if(!isNaN(c)&&l(c))return c;return o};r.getInteger=function getInteger(t){var r=t.data,o=t.defaultValue,l=t.validate;if(!r)return o;r=r.trim();var c=parseInt(r,10);if(!isNaN(c)&&l(c))return c;return o};r.getKeyword=getKeyword;r.getMeasurement=getMeasurement;r.getRatio=function getRatio(t){if(!t)return{num:1,den:1};var r=t.trim().split(/\s*:\s*/).map((function(t){return parseFloat(t)})).filter((function(t){return!isNaN(t)}));1===r.length&&r.push(1);if(0===r.length)return{num:1,den:1};var o=_slicedToArray(r,2),l=o[0],c=o[1];return{num:l,den:c}};r.getRelevant=function getRelevant(t){if(!t)return[];return t.trim().split(/\s+/).map((function(t){return{excluded:"-"===t[0],viewname:t.substring(1)}}))};r.getStringOption=function getStringOption(t,r){return getKeyword({data:t,defaultValue:r[0],validate:function validate(t){return r.includes(t)}})};function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t,r)||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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var o={pt:function pt(t){return t},cm:function cm(t){return t/2.54*72},mm:function mm(t){return t/25.4*72},in:function _in(t){return 72*t}},l=/([+-]?[0-9]+\.?[0-9]*)(.*)/;function getKeyword(t){var r=t.data,o=t.defaultValue,l=t.validate;return r&&l(r=r.trim())?r:o}function getMeasurement(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";r=r||"0";if(!t)return getMeasurement(r);var c=t.trim().match(l);if(!c)return getMeasurement(r);var u=_slicedToArray(c,3),h=u[1],d=u[2],m=parseFloat(h);if(isNaN(m))return getMeasurement(r);if(0===m)return 0;var g=o[d];return g?g(m):m}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceIds=r.$buildXFAObject=void 0;var o=Symbol();r.$buildXFAObject=o;r.NamespaceIds={config:{id:0,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xci/")}},connectionSet:{id:1,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")}},datasets:{id:2,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-data/")}},form:{id:3,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-form/")}},localeSet:{id:4,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")}},pdf:{id:5,check:function check(t){return"http://ns.adobe.com/xdp/pdf/"===t}},signature:{id:6,check:function check(t){return"http://www.w3.org/2000/09/xmldsig#"===t}},sourceSet:{id:7,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-source-set/")}},stylesheet:{id:8,check:function check(t){return"http://www.w3.org/1999/XSL/Transform"===t}},template:{id:9,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xfa-template/")}},xdc:{id:10,check:function check(t){return t.startsWith("http://www.xfa.org/schema/xdc/")}},xdp:{id:11,check:function check(t){return"http://ns.adobe.com/xdp/"===t}},xfdf:{id:12,check:function check(t){return"http://ns.adobe.com/xfdf/"===t}},xhtml:{id:13,check:function check(t){return"http://www.w3.org/1999/xhtml"===t}},xmpmeta:{id:14,check:function check(t){return"http://ns.adobe.com/xmpmeta/"===t}}}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.Binder=void 0;var l=o(170),c=o(174),u=o(176),h=o(172),d=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function createText(t){var r=new c.Text({});r[l.$content]=t;return r}var m=function(){function Binder(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Binder);this.root=t;this.datasets=t.datasets;if(t.datasets&&t.datasets.data){this.emptyMerge=!1;this.data=t.datasets.data}else{this.emptyMerge=!0;this.data=new l.XmlObject(h.NamespaceIds.datasets.id,"data")}this.root.form=this.form=t.template[l.$clone]()}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(Binder,[{key:"_isConsumeData",value:function _isConsumeData(){return!this.emptyMerge&&this._mergeMode}},{key:"_isMatchTemplate",value:function _isMatchTemplate(){return!this._isConsumeData()}},{key:"bind",value:function bind(){this._bindElement(this.form,this.data);return this.form}},{key:"getData",value:function getData(){return this.data}},{key:"_bindValue",value:function _bindValue(t,r,o){if(t[l.$hasSettableValue]())if(r[l.$isDataValue]()){var u=r[l.$content].trim();t[l.$setValue](createText(u));t[l.$data]=r}else if(t instanceof c.Field&&t.ui&&t.ui.choiceList&&"multiSelect"===t.ui.choiceList.open){var h=r[l.$getChildren]().map((function(t){return t[l.$content].trim()})).join("\n");t[l.$setValue](createText(h));t[l.$data]=r}else this._isConsumeData()&&(0,d.warn)("XFA - Nodes haven't the same type.");else if(!r[l.$isDataValue]()||this._isMatchTemplate()){this._bindElement(t,r);t[l.$data]=r}else(0,d.warn)("XFA - Nodes haven't the same type.")}},{key:"_findDataByNameToConsume",value:function _findDataByNameToConsume(t,r,o){if(!t)return null;for(var c,u,d=0;d<3;d++){if(u=(c=r[l.$getRealChildrenByNameIt](t,!1,!0)).next().value)return u;if(r[l.$namespaceId]===h.NamespaceIds.datasets.id&&"data"===r[l.$nodeName])break;r=r[l.$getParent]()}if(!o)return null;c=this.datasets[l.$getRealChildrenByNameIt](t,!1,!1);for(;u=c.next().value;)if(u[l.$global])return u;return(u=(c=this.data[l.$getAttributeIt](t,!0)).next().value)&&u[l.$isDataValue]()?u:null}},{key:"_setProperties",value:function _setProperties(t,r){if(t.hasOwnProperty("setProperty")){var o,h=_createForOfIteratorHelper(t.setProperty.children);try{for(h.s();!(o=h.n()).done;){var m=o.value,g=m.ref,y=m.target;if(!m.connection&&g){var v=_slicedToArray((0,u.searchNode)(this.root,r,g,!1,!1),1)[0];if(v)if(v[l.$isDescendent](this.data)){var S=_slicedToArray((0,u.searchNode)(this.root,t,y,!1,!1),1)[0];if(S)if(S[l.$isDescendent](t)){var k=S[l.$getParent]();if(S instanceof c.SetProperty||k instanceof c.SetProperty)(0,d.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(S instanceof c.BindItems||k instanceof c.BindItems)(0,d.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var C=v[l.$text](),w=S[l.$nodeName];if(S instanceof l.XFAAttribute){var _=Object.create(null);_[w]=C;var O=Reflect.construct(Object.getPrototypeOf(k).constructor,[_]);k[w]=O[w]}else if(S.hasOwnProperty(l.$content)){S[l.$data]=v;S[l.$content]=C;S[l.$finalize]()}else(0,d.warn)("XFA - Invalid node to use in setProperty")}}else(0,d.warn)("XFA - Invalid target: must be a property or subproperty.");else(0,d.warn)("XFA - Invalid target: ".concat(y,"."))}else(0,d.warn)("XFA - Invalid node: must be a data node.");else(0,d.warn)("XFA - Invalid reference: ".concat(g,"."))}}}catch(t){h.e(t)}finally{h.f()}}}},{key:"_bindItems",value:function _bindItems(t,r){if(t.hasOwnProperty("items")&&t.hasOwnProperty("bindItems")&&!t.bindItems.isEmpty()){var o,h=_createForOfIteratorHelper(t.items.children);try{for(h.s();!(o=h.n()).done;){var m=o.value;t[l.$removeChild](m)}}catch(t){h.e(t)}finally{h.f()}t.items.clear();var g=new c.Items({}),y=new c.Items({});t[l.$appendChild](g);t.items.push(g);t[l.$appendChild](y);t.items.push(y);var v,S=_createForOfIteratorHelper(t.bindItems.children);try{for(S.s();!(v=S.n()).done;){var k=v.value,C=k.ref,w=k.labelRef,_=k.valueRef;if(!k.connection&&C){var O=(0,u.searchNode)(this.root,r,C,!1,!1);if(O){var x,T=_createForOfIteratorHelper(O);try{for(T.s();!(x=T.n()).done;){var R=x.value;if(R[l.$isDescendent](this.datasets)){var E=_slicedToArray((0,u.searchNode)(this.root,R,w,!0,!1),1)[0];if(E)if(E[l.$isDescendent](this.datasets)){var D=_slicedToArray((0,u.searchNode)(this.root,R,_,!0,!1),1)[0];if(D)if(D[l.$isDescendent](this.datasets)){var j=createText(E[l.$text]()),M=createText(D[l.$text]());g[l.$appendChild](j);g.text.push(j);y[l.$appendChild](M);y.text.push(M)}else(0,d.warn)("XFA - Invalid value: must be a datasets child.");else(0,d.warn)("XFA - Invalid value: ".concat(_,"."))}else(0,d.warn)("XFA - Invalid label: must be a datasets child.");else(0,d.warn)("XFA - Invalid label: ".concat(w,"."))}else(0,d.warn)("XFA - Invalid ref (".concat(C,"): must be a datasets child."))}}catch(t){T.e(t)}finally{T.f()}}else(0,d.warn)("XFA - Invalid reference: ".concat(C,"."))}}}catch(t){S.e(t)}finally{S.f()}}}},{key:"_bindOccurrences",value:function _bindOccurrences(t,r,o){var c;r.length>1&&(c=t[l.$clone]());this._bindValue(t,r[0],o);this._setProperties(t,r[0]);this._bindItems(t,r[0]);if(1!==r.length)for(var u=t[l.$getParent](),h=t[l.$nodeName],d=u[l.$indexOf](t),m=1,g=r.length;m<g;m++){var y=r[m],v=c[l.$clone]();v.occur.min=1;v.occur.max=1;v.occur.initial=1;u[h].push(v);u[l.$insertAt](d+m,v);this._bindValue(v,y,o);this._setProperties(v,y);this._bindItems(v,y)}}},{key:"_createOccurrences",value:function _createOccurrences(t){if(this.emptyMerge){var r=t.occur;if(r&&!(r.initial<=1))for(var o=t[l.$getParent](),c=t[l.$nodeName],u=0,h=r.initial;u<h;u++){var d=t[l.$clone]();d.occur.min=1;d.occur.max=1;d.occur.initial=1;o[c].push(d);o[l.$appendChild](d)}}}},{key:"_getOccurInfo",value:function _getOccurInfo(t){var r=t.occur,o=t.name;if(!r||!o)return[1,1];var l=-1===r.max?1/0:r.max;return[r.min,l]}},{key:"_bindElement",value:function _bindElement(t,r){var o=[];this._createOccurrences(t);var c,h=_createForOfIteratorHelper(t[l.$getChildren]());try{for(h.s();!(c=h.n()).done;){var m=c.value;if(!m[l.$data]){void 0===this._mergeMode&&"subform"===m[l.$nodeName]&&(this._mergeMode="consumeData"===m.mergeMode);var g=!1,y=null,v=null,S=null;if(m.bind){switch(m.bind.match){case"none":continue;case"global":g=!0;break;case"dataRef":if(!m.bind.ref){(0,d.warn)("XFA - ref is empty in node ".concat(m[l.$nodeName],"."));continue}v=m.bind.ref}m.bind.picture&&(y=m.bind.picture[l.$content])}var k=_slicedToArray(this._getOccurInfo(m),2),C=k[0],w=k[1];if(v)if(null===(S=(0,u.searchNode)(this.root,r,v,!0,!1))){S=(0,u.createDataNode)(this.data,r,v);this._isConsumeData()&&(S[l.$consumed]=!0);S=[S]}else{this._isConsumeData()&&(S=S.filter((function(t){return!t[l.$consumed]})));S.length>w?S=S.slice(0,w):0===S.length&&(S=null);S&&this._isConsumeData()&&S.forEach((function(t){t[l.$consumed]=!0}))}else{if(!m.name){this._bindElement(m,r);continue}if(this._isConsumeData()){for(var _=[];_.length<w;){var O=this._findDataByNameToConsume(m.name,r,g);if(!O)break;O[l.$consumed]=!0;_.push(O)}S=_.length>0?_:null}else{if(!(S=r[l.$getRealChildrenByNameIt](m.name,!1,!1).next().value)){S=new l.XmlObject(r[l.$namespaceId],m.name);r[l.$appendChild](S)}S=[S]}}if(S){if(S.length<C){(0,d.warn)("XFA - Must have at least ".concat(C," occurrences: ").concat(t[l.$nodeName],"."));continue}this._bindOccurrences(m,S,y)}else C>0?this._bindElement(m,r):o.push(m)}}}catch(t){h.e(t)}finally{h.f()}o.forEach((function(t){return t[l.$getParent]()[l.$removeChild](t)}))}}]);return Binder}();r.Binder=m},(t,r,o)=>{"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.Value=r.Text=r.TemplateNamespace=r.Template=r.SetProperty=r.Items=r.Field=r.BindItems=void 0;var l=o(170),c=o(172),u=o(171),h=o(175),d=o(4);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 m=c.NamespaceIds.template.id;function _setValue(t,r){if(!t.value){var o=new Ot({});t[l.$appendChild](o);t.value=o}t.value[l.$setValue](r)}var g=function(t){_inherits(AppearanceFilter,t);var r=_createSuper(AppearanceFilter);function AppearanceFilter(t){var o;_classCallCheck(this,AppearanceFilter);(o=r.call(this,m,"appearanceFilter")).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return AppearanceFilter}(l.StringObject),y=function(t){_inherits(Arc,t);var r=_createSuper(Arc);function Arc(t){var o;_classCallCheck(this,Arc);(o=r.call(this,m,"arc",!0)).circular=(0,u.getInteger)({data:t.circular,defaultValue:0,validate:function validate(t){return 1===t}});o.hand=(0,u.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.startAngle=(0,u.getFloat)({data:t.startAngle,defaultValue:0,validate:function validate(t){return!0}});o.sweepAngle=(0,u.getFloat)({data:t.sweepAngle,defaultValue:360,validate:function validate(t){return!0}});o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;o.fill=null;return o}return Arc}(l.XFAObject),v=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,m,"area",!0)).colSpan=(0,u.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1}});o.id=t.id||"";o.name=t.name||"";o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;o.area=new l.XFAObjectArray;o.draw=new l.XFAObjectArray;o.exObject=new l.XFAObjectArray;o.exclGroup=new l.XFAObjectArray;o.field=new l.XFAObjectArray;o.subform=new l.XFAObjectArray;o.subformSet=new l.XFAObjectArray;return o}_createClass(Area,[{key:l.$isTransparent,value:function value(){return!0}}]);return Area}(l.XFAObject),S=function(t){_inherits(Assist,t);var r=_createSuper(Assist);function Assist(t){var o;_classCallCheck(this,Assist);(o=r.call(this,m,"assist",!0)).id=t.id||"";o.role=t.role||"";o.use=t.use||"";o.usehref=t.usehref||"";o.speak=null;o.toolTip=null;return o}return Assist}(l.XFAObject),k=function(t){_inherits(Barcode,t);var r=_createSuper(Barcode);function Barcode(t){var o;_classCallCheck(this,Barcode);(o=r.call(this,m,"barcode",!0)).charEncoding=(0,u.getKeyword)({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-[0-9]{2}/)}});o.checksum=(0,u.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);o.dataColumnCount=(0,u.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataLength=(0,u.getInteger)({data:t.dataLength,defaultValue:-1,validate:function validate(t){return t>=0}});o.dataPrep=(0,u.getStringOption)(t.dataPrep,["none","flateCompress"]);o.dataRowCount=(0,u.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:function validate(t){return t>=0}});o.endChar=t.endChar||"";o.errorCorrectionLevel=(0,u.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:function validate(t){return t>=0&&t<=8}});o.id=t.id||"";o.moduleHeight=(0,u.getMeasurement)(t.moduleHeight,"5mm");o.moduleWidth=(0,u.getMeasurement)(t.moduleWidth,"0.25mm");o.printCheckDigit=(0,u.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:function validate(t){return 1===t}});o.rowColumnRatio=(0,u.getRatio)(t.rowColumnRatio);o.startChar=t.startChar||"";o.textLocation=(0,u.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);o.truncate=(0,u.getInteger)({data:t.truncate,defaultValue:0,validate:function validate(t){return 1===t}});o.type=(0,u.getStringOption)(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);o.upsMode=(0,u.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);o.use=t.use||"";o.usehref=t.usehref||"";o.wideNarrowRatio=(0,u.getRatio)(t.wideNarrowRatio);o.encrypt=null;o.extras=null;return o}return Barcode}(l.XFAObject),C=function(t){_inherits(Bind,t);var r=_createSuper(Bind);function Bind(t){var o;_classCallCheck(this,Bind);(o=r.call(this,m,"bind",!0)).match=(0,u.getStringOption)(t.match,["once","dataRef","global","none"]);o.ref=t.ref||"";o.picture=null;return o}return Bind}(l.XFAObject),w=function(t){_inherits(BindItems,t);var r=_createSuper(BindItems);function BindItems(t){var o;_classCallCheck(this,BindItems);(o=r.call(this,m,"bindItems")).connection=t.connection||"";o.labelRef=t.labelRef||"";o.ref=t.ref||"";o.valueRef=t.valueRef||"";return o}return BindItems}(l.XFAObject);r.BindItems=w;var _=function(t){_inherits(Bookend,t);var r=_createSuper(Bookend);function Bookend(t){var o;_classCallCheck(this,Bookend);(o=r.call(this,m,"bookend")).id=t.id||"";o.leader=t.leader||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Bookend}(l.XFAObject),O=function(t){_inherits(BooleanElement,t);var r=_createSuper(BooleanElement);function BooleanElement(t){var o;_classCallCheck(this,BooleanElement);(o=r.call(this,m,"boolean")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(BooleanElement,[{key:l.$toHTML,value:function value(){return 1===this[l.$content]}}]);return BooleanElement}(l.Option01),x=function(t){_inherits(Border,t);var r=_createSuper(Border);function Border(t){var o;_classCallCheck(this,Border);(o=r.call(this,m,"border",!0)).break=(0,u.getStringOption)(t.break,["close","open"]);o.hand=(0,u.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new l.XFAObjectArray(4);o.edge=new l.XFAObjectArray(4);o.extras=null;o.fill=null;o.margin=null;return o}_createClass(Border,[{key:l.$toStyle,value:function value(t,r){var o,c=this.edge.children.map((function(t){return t[l.$toStyle]()})),u=this.edge.children.map((function(t){return t[l.$toStyle]()}));if(this.margin){o=this.margin[l.$toStyle]();r&&r.push(this.margin.topInset,this.margin.rightInset,this.margin.bottomInset,this.margin.leftInset)}else{o=Object.create(null);r&&r.push(0,0,0,0)}this.fill&&Object.assign(o,this.fill[l.$toStyle]());if(c.length>0){if(t){this.edge.children.forEach((function(r){return t.push(r.thickness)}));if(t.length<4)for(var h=t[t.length-1],d=t.length;d<4;d++)t.push(h)}if(2===c.length||3===c.length)for(var m=c[c.length-1],g=c.length;g<4;g++)c.push(m);o.borderWidth=c.map((function(t){return t.width})).join(" ");o.borderColor=c.map((function(t){return t.color})).join(" ");o.borderStyle=c.map((function(t){return t.style})).join(" ")}else t&&t.push(0,0,0,0);if(u.length>0){if(2===u.length||3===u.length)for(var y=u[u.length-1],v=u.length;v<4;v++)u.push(y);o.borderRadius=u.map((function(t){return t.radius})).join(" ")}switch(this.presence){case"invisible":case"hidden":o.borderStyle="";break;case"inactive":o.borderStyle="none"}return o}}]);return Border}(l.XFAObject),T=function(t){_inherits(Break,t);var r=_createSuper(Break);function Break(t){var o;_classCallCheck(this,Break);(o=r.call(this,m,"break",!0)).after=(0,u.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.afterTarget=t.afterTarget||"";o.before=(0,u.getStringOption)(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.beforeTarget=t.beforeTarget||"";o.bookendLeader=t.bookendLeader||"";o.bookendTrailer=t.bookendTrailer||"";o.id=t.id||"";o.overflowLeader=t.overflowLeader||"";o.overflowTarget=t.overflowTarget||"";o.overflowTrailer=t.overflowTrailer||"";o.startNew=(0,u.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Break}(l.XFAObject),R=function(t){_inherits(BreakAfter,t);var r=_createSuper(BreakAfter);function BreakAfter(t){var o;_classCallCheck(this,BreakAfter);(o=r.call(this,m,"breakAfter",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,u.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,u.getStringOption)(t.targetType,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}return BreakAfter}(l.XFAObject),E=function(t){_inherits(BreakBefore,t);var r=_createSuper(BreakBefore);function BreakBefore(t){var o;_classCallCheck(this,BreakBefore);(o=r.call(this,m,"breakBefore",!0)).id=t.id||"";o.leader=t.leader||"";o.startNew=(0,u.getInteger)({data:t.startNew,defaultValue:0,validate:function validate(t){return 1===t}});o.target=t.target||"";o.targetType=(0,u.getStringOption)(t.targetType,["auto","contentArea","pageArea","pageEven","pageOdd"]);o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";o.script=null;return o}return BreakBefore}(l.XFAObject),D=function(t){_inherits(Button,t);var r=_createSuper(Button);function Button(t){var o;_classCallCheck(this,Button);(o=r.call(this,m,"button",!0)).highlight=(0,u.getStringOption)(t.highlight,["inverted","none","outline","push"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Button,[{key:l.$toHTML,value:function value(){return{name:"button",attributes:{class:"xfaButton",style:{}}}}}]);return Button}(l.XFAObject),j=function(t){_inherits(Calculate,t);var r=_createSuper(Calculate);function Calculate(t){var o;_classCallCheck(this,Calculate);(o=r.call(this,m,"calculate",!0)).id=t.id||"";o.override=(0,u.getStringOption)(t.override,["disabled","error","ignore","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.script=null;return o}return Calculate}(l.XFAObject),M=function(t){_inherits(Caption,t);var r=_createSuper(Caption);function Caption(t){var o;_classCallCheck(this,Caption);(o=r.call(this,m,"caption",!0)).id=t.id||"";o.placement=(0,u.getStringOption)(t.placement,["left","bottom","inline","right","top"]);o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.reserve=(0,u.getMeasurement)(t.reserve);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.font=null;o.margin=null;o.para=null;o.value=null;return o}_createClass(Caption,[{key:l.$setValue,value:function value(t){_setValue(this,t)}},{key:l.$toHTML,value:function value(){if(!this.value)return null;var value=this.value[l.$toHTML]();if(!value)return null;var t=[];"string"==typeof value?t.push({name:"#text",value:value}):t.push(value);var r=(0,h.toStyle)(this,"font","margin","para","visibility");switch(this.placement){case"left":case"right":r.minWidth=(0,h.measureToString)(this.reserve);break;case"top":case"bottom":r.minHeight=(0,h.measureToString)(this.reserve)}return{name:"div",attributes:{style:r},children:t}}}]);return Caption}(l.XFAObject),N=function(t){_inherits(Certificate,t);var r=_createSuper(Certificate);function Certificate(t){var o;_classCallCheck(this,Certificate);(o=r.call(this,m,"certificate")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Certificate}(l.StringObject),L=function(t){_inherits(Certificates,t);var r=_createSuper(Certificates);function Certificates(t){var o;_classCallCheck(this,Certificates);(o=r.call(this,m,"certificates",!0)).credentialServerPolicy=(0,u.getStringOption)(t.credentialServerPolicy,["optional","required"]);o.id=t.id||"";o.url=t.url||"";o.urlPolicy=t.urlPolicy||"";o.use=t.use||"";o.usehref=t.usehref||"";o.encryption=null;o.issuers=null;o.keyUsage=null;o.oids=null;o.signing=null;o.subjectDNs=null;return o}return Certificates}(l.XFAObject),U=function(t){_inherits(CheckButton,t);var r=_createSuper(CheckButton);function CheckButton(t){var o;_classCallCheck(this,CheckButton);(o=r.call(this,m,"checkButton",!0)).id=t.id||"";o.mark=(0,u.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);o.shape=(0,u.getStringOption)(t.shape,["square","round"]);o.size=(0,u.getMeasurement)(t.size,"10pt");o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}_createClass(CheckButton,[{key:l.$toHTML,value:function value(){var t,r,o=(0,h.toStyle)(this,"border","margin"),l=(0,h.measureToString)(this.size);o.width=o.height=l;if("square"===this.shape){t="■";r="10%"}else{t="●";r="50%"}o.borderRadius||(o.borderRadius=r);if("default"!==this.mark)switch(this.mark){case"check":t="✓";break;case"circle":t="●";break;case"cross":t="✕";break;case"diamond":t="♦";break;case"square":t="■";break;case"star":t="★"}if("10px"!==l){o.fontSize=l;o.lineHeight=l;o.width=l;o.height=l}return{name:"label",attributes:{class:"xfaLabel"},children:[{name:"input",attributes:{class:"xfaCheckbox",type:"checkbox"}},{name:"span",attributes:{class:"xfaCheckboxMark",mark:t,style:o}}]}}}]);return CheckButton}(l.XFAObject),q=function(t){_inherits(ChoiceList,t);var r=_createSuper(ChoiceList);function ChoiceList(t){var o;_classCallCheck(this,ChoiceList);(o=r.call(this,m,"choiceList",!0)).commitOn=(0,u.getStringOption)(t.commitOn,["select","exit"]);o.id=t.id||"";o.open=(0,u.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);o.textEntry=(0,u.getInteger)({data:t.textEntry,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}_createClass(ChoiceList,[{key:l.$toHTML,value:function value(){var t=(0,h.toStyle)(this,"border","margin");return{name:"label",attributes:{class:"xfaLabel"},children:[{name:"select",attributes:{class:"xfaSxelect",multiple:"multiSelect"===this.open,style:t}}]}}}]);return ChoiceList}(l.XFAObject),X=function(t){_inherits(Color,t);var r=_createSuper(Color);function Color(t){var o;_classCallCheck(this,Color);(o=r.call(this,m,"color",!0)).cSpace=(0,u.getStringOption)(t.cSpace,["SRGB"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.value=(0,u.getColor)(t.value);o.extras=null;return o}_createClass(Color,[{key:l.$hasSettableValue,value:function value(){return!1}},{key:l.$toStyle,value:function value(){return d.Util.makeHexColor(this.value.r,this.value.g,this.value.b)}}]);return Color}(l.XFAObject),W=function(t){_inherits(Comb,t);var r=_createSuper(Comb);function Comb(t){var o;_classCallCheck(this,Comb);(o=r.call(this,m,"comb")).id=t.id||"";o.numberOfCells=(0,u.getInteger)({data:t.numberOfCells,defaultValue:0,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";return o}return Comb}(l.XFAObject),H=function(t){_inherits(Connect,t);var r=_createSuper(Connect);function Connect(t){var o;_classCallCheck(this,Connect);(o=r.call(this,m,"connect",!0)).connection=t.connection||"";o.id=t.id||"";o.ref=t.ref||"";o.usage=(0,u.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);o.use=t.use||"";o.usehref=t.usehref||"";o.picture=null;return o}return Connect}(l.XFAObject),z=function(t){_inherits(ContentArea,t);var r=_createSuper(ContentArea);function ContentArea(t){var o;_classCallCheck(this,ContentArea);(o=r.call(this,m,"contentArea",!0)).h=(0,u.getMeasurement)(t.h);o.id=t.id||"";o.name=t.name||"";o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=(0,u.getMeasurement)(t.w);o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.desc=null;o.extras=null;return o}_createClass(ContentArea,[{key:l.$toHTML,value:function value(){return{name:"div",children:[],attributes:{style:{position:"absolute",left:(0,h.measureToString)(this.x),top:(0,h.measureToString)(this.y),width:(0,h.measureToString)(this.w),height:(0,h.measureToString)(this.h)},class:"xfaContentarea",id:this[l.$uid]}}}}]);return ContentArea}(l.XFAObject),G=function(t){_inherits(Corner,t);var r=_createSuper(Corner);function Corner(t){var o;_classCallCheck(this,Corner);(o=r.call(this,m,"corner",!0)).id=t.id||"";o.inverted=(0,u.getInteger)({data:t.inverted,defaultValue:0,validate:function validate(t){return 1===t}});o.join=(0,u.getStringOption)(t.join,["square","round"]);o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.radius=(0,u.getMeasurement)(t.radius);o.stroke=(0,u.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,u.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Corner,[{key:l.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"visibility");t.radius=(0,h.measureToString)(this.radius);return t}}]);return Corner}(l.XFAObject),V=function(t){_inherits(DateElement,t);var r=_createSuper(DateElement);function DateElement(t){var o;_classCallCheck(this,DateElement);(o=r.call(this,m,"date")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateElement,[{key:l.$finalize,value:function value(){this[l.$content]=new Date(this[l.$content].trim())}},{key:l.$toHTML,value:function value(){return this[l.$content].toString()}}]);return DateElement}(l.ContentObject),$=function(t){_inherits(DateTime,t);var r=_createSuper(DateTime);function DateTime(t){var o;_classCallCheck(this,DateTime);(o=r.call(this,m,"dateTime")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(DateTime,[{key:l.$finalize,value:function value(){this[l.$content]=new Date(this[l.$content].trim())}},{key:l.$toHTML,value:function value(){return this[l.$content].toString()}}]);return DateTime}(l.ContentObject),K=function(t){_inherits(DateTimeEdit,t);var r=_createSuper(DateTimeEdit);function DateTimeEdit(t){var o;_classCallCheck(this,DateTimeEdit);(o=r.call(this,m,"dateTimeEdit",!0)).hScrollPolicy=(0,u.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.picker=(0,u.getStringOption)(t.picker,["host","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(DateTimeEdit,[{key:l.$toHTML,value:function value(){return{name:"label",attributes:{class:"xfaLabel"},children:[{name:"input",attributes:{type:"text",class:"xfaTextfield",style:(0,h.toStyle)(this,"border","font","margin")}}]}}}]);return DateTimeEdit}(l.XFAObject),Y=function(t){_inherits(Decimal,t);var r=_createSuper(Decimal);function Decimal(t){var o;_classCallCheck(this,Decimal);(o=r.call(this,m,"decimal")).fracDigits=(0,u.getInteger)({data:t.fracDigits,defaultValue:2,validate:function validate(t){return!0}});o.id=t.id||"";o.leadDigits=(0,u.getInteger)({data:t.leadDigits,defaultValue:-1,validate:function validate(t){return!0}});o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Decimal,[{key:l.$finalize,value:function value(){var t=parseFloat(this[l.$content].trim());this[l.$content]=isNaN(t)?null:t}},{key:l.$toHTML,value:function value(){return null!==this[l.$content]?this[l.$content].toString():""}}]);return Decimal}(l.ContentObject),J=function(t){_inherits(DefaultUi,t);var r=_createSuper(DefaultUi);function DefaultUi(t){var o;_classCallCheck(this,DefaultUi);(o=r.call(this,m,"defaultUi",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return DefaultUi}(l.XFAObject),Q=function(t){_inherits(Desc,t);var r=_createSuper(Desc);function Desc(t){var o;_classCallCheck(this,Desc);(o=r.call(this,m,"desc",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.time=new l.XFAObjectArray;return o}return Desc}(l.XFAObject),Z=function(t){_inherits(DigestMethod,t);var r=_createSuper(DigestMethod);function DigestMethod(t){var o;_classCallCheck(this,DigestMethod);(o=r.call(this,m,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return DigestMethod}(l.OptionObject),ee=function(t){_inherits(DigestMethods,t);var r=_createSuper(DigestMethods);function DigestMethods(t){var o;_classCallCheck(this,DigestMethods);(o=r.call(this,m,"digestMethods",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.digestMethod=new l.XFAObjectArray;return o}return DigestMethods}(l.XFAObject),te=function(t){_inherits(Draw,t);var r=_createSuper(Draw);function Draw(t){var o;_classCallCheck(this,Draw);(o=r.call(this,m,"draw",!0)).anchorType=(0,u.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,u.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1}});o.h=t.h?(0,u.getMeasurement)(t.h):"";o.hAlign=(0,u.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,u.getMeasurement)(t.maxH,"0pt");o.maxW=(0,u.getMeasurement)(t.maxW,"0pt");o.minH=(0,u.getMeasurement)(t.minH,"0pt");o.minW=(0,u.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,u.getRelevant)(t.relevant);o.rotate=(0,u.getInteger)({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,u.getMeasurement)(t.w):"";o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.assist=null;o.border=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.value=null;o.setProperty=new l.XFAObjectArray;return o}_createClass(Draw,[{key:l.$setValue,value:function value(t){_setValue(this,t)}},{key:l.$toHTML,value:function value(){if(!this.value)return null;var t=(0,h.toStyle)(this,"font","dimensions","position","presence","rotate","anchorType"),r=["xfaDraw"];this.font&&r.push("xfaFont");var o={style:t,id:this[l.$uid],class:r.join(" ")};this.name&&(o.xfaName=this.name);return{name:"div",attributes:o,children:[]}}}]);return Draw}(l.XFAObject),re=function(t){_inherits(Edge,t);var r=_createSuper(Edge);function Edge(t){var o;_classCallCheck(this,Edge);(o=r.call(this,m,"edge",!0)).cap=(0,u.getStringOption)(t.cap,["square","butt","round"]);o.id=t.id||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.stroke=(0,u.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);o.thickness=(0,u.getMeasurement)(t.thickness,"0.5pt");o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Edge,[{key:l.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,h.measureToString)(this.thickness),color:this.color?this.color[l.$toHTML]():"#000000",style:""});if("visible"!==this.presence)t.style="none";else switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset"}return t}}]);return Edge}(l.XFAObject),ae=function(t){_inherits(Encoding,t);var r=_createSuper(Encoding);function Encoding(t){var o;_classCallCheck(this,Encoding);(o=r.call(this,m,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Encoding}(l.OptionObject),ne=function(t){_inherits(Encodings,t);var r=_createSuper(Encodings);function Encodings(t){var o;_classCallCheck(this,Encodings);(o=r.call(this,m,"encodings",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encoding=new l.XFAObjectArray;return o}return Encodings}(l.XFAObject),ie=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){var o;_classCallCheck(this,Encrypt);(o=r.call(this,m,"encrypt",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=null;return o}return Encrypt}(l.XFAObject),oe=function(t){_inherits(EncryptData,t);var r=_createSuper(EncryptData);function EncryptData(t){var o;_classCallCheck(this,EncryptData);(o=r.call(this,m,"encryptData",!0)).id=t.id||"";o.operation=(0,u.getStringOption)(t.operation,["encrypt","decrypt"]);o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return EncryptData}(l.XFAObject),se=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,m,"encryption",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new l.XFAObjectArray;return o}return Encryption}(l.XFAObject),le=function(t){_inherits(EncryptionMethod,t);var r=_createSuper(EncryptionMethod);function EncryptionMethod(t){var o;_classCallCheck(this,EncryptionMethod);(o=r.call(this,m,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"])).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EncryptionMethod}(l.OptionObject),ce=function(t){_inherits(EncryptionMethods,t);var r=_createSuper(EncryptionMethods);function EncryptionMethods(t){var o;_classCallCheck(this,EncryptionMethods);(o=r.call(this,m,"encryptionMethods",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.encryptionMethod=new l.XFAObjectArray;return o}return EncryptionMethods}(l.XFAObject),ue=function(t){_inherits(Event,t);var r=_createSuper(Event);function Event(t){var o;_classCallCheck(this,Event);(o=r.call(this,m,"event",!0)).activity=(0,u.getStringOption)(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);o.id=t.id||"";o.listen=(0,u.getStringOption)(t.listen,["refOnly","refAndDescendents"]);o.name=t.name||"";o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.encryptData=null;o.execute=null;o.script=null;o.signData=null;o.submit=null;return o}return Event}(l.XFAObject),fe=function(t){_inherits(ExData,t);var r=_createSuper(ExData);function ExData(t){var o;_classCallCheck(this,ExData);(o=r.call(this,m,"exData")).contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.maxLength=(0,u.getInteger)({data:t.maxLength,defaultValue:-1,validate:function validate(t){return t>=-1}});o.name=t.name||"";o.rid=t.rid||"";o.transferEncoding=(0,u.getStringOption)(t.transferEncoding,["none","base64","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(ExData,[{key:l.$onChild,value:function value(t){if("text/html"===this.contentType&&t[l.$namespaceId]===c.NamespaceIds.xhtml.id){this[l.$content]=t;return!0}if("text/xml"===this.contentType){this[l.$content]=t;return!0}return!1}}]);return ExData}(l.ContentObject),he=function(t){_inherits(ExObject,t);var r=_createSuper(ExObject);function ExObject(t){var o;_classCallCheck(this,ExObject);(o=r.call(this,m,"exObject",!0)).archive=t.archive||"";o.classId=t.classId||"";o.codeBase=t.codeBase||"";o.codeType=t.codeType||"";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.boolean=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.exObject=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.time=new l.XFAObjectArray;return o}return ExObject}(l.XFAObject),de=function(t){_inherits(ExclGroup,t);var r=_createSuper(ExclGroup);function ExclGroup(t){var o;_classCallCheck(this,ExclGroup);(o=r.call(this,m,"exclGroup",!0)).access=(0,u.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,u.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,u.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1}});o.h=t.h?(0,u.getMeasurement)(t.h):"";o.hAlign=(0,u.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,u.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.maxH=(0,u.getMeasurement)(t.maxH,"0pt");o.maxW=(0,u.getMeasurement)(t.maxW,"0pt");o.minH=(0,u.getMeasurement)(t.minH,"0pt");o.minW=(0,u.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,u.getMeasurement)(t.w):"";o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.margin=null;o.para=null;o.traversal=null;o.validate=null;o.connect=new l.XFAObjectArray;o.event=new l.XFAObjectArray;o.field=new l.XFAObjectArray;o.setProperty=new l.XFAObjectArray;return o}_createClass(ExclGroup,[{key:l.$hasSettableValue,value:function value(){return!0}},{key:l.$setValue,value:function value(t){var r,o=_createForOfIteratorHelper(this.field.children);try{for(o.s();!(r=o.n()).done;){var c=r.value;if(!c.value){var u=new Ot({});c[l.$appendChild](u);c.value=u}var h=new O({});h[l.$content]=0;var d,m=_createForOfIteratorHelper(c.items.children);try{for(m.s();!(d=m.n()).done;){if(d.value[l.$hasItem](t)){h[l.$content]=1;break}}}catch(t){m.e(t)}finally{m.f()}c.value[l.$setValue](h)}}catch(t){o.e(t)}finally{o.f()}}},{key:l.$toHTML,value:function value(){return this.value?{name:"div",attributes:{style:(0,h.toStyle)(this,"dimensions","position","anchorType"),id:this[l.$uid],class:"xfaExclgroup"},children:this[l.$childrenToHTML]({filter:new Set(["field"]),include:!0})}:null}}]);return ExclGroup}(l.XFAObject),pe=function(t){_inherits(Execute,t);var r=_createSuper(Execute);function Execute(t){var o;_classCallCheck(this,Execute);(o=r.call(this,m,"execute")).connection=t.connection||"";o.executeType=(0,u.getStringOption)(t.executeType,["import","remerge"]);o.id=t.id||"";o.runAt=(0,u.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Execute}(l.XFAObject),me=function(t){_inherits(Extras,t);var r=_createSuper(Extras);function Extras(t){var o;_classCallCheck(this,Extras);(o=r.call(this,m,"extras",!0)).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.extras=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.time=new l.XFAObjectArray;return o}return Extras}(l.XFAObject),ge=function(t){_inherits(Field,t);var r=_createSuper(Field);function Field(t){var o;_classCallCheck(this,Field);(o=r.call(this,m,"field",!0)).access=(0,u.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.accessKey=t.accessKey||"";o.anchorType=(0,u.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,u.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1}});o.h=t.h?(0,u.getMeasurement)(t.h):"";o.hAlign=(0,u.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.locale=t.locale||"";o.maxH=(0,u.getMeasurement)(t.maxH,"0pt");o.maxW=(0,u.getMeasurement)(t.maxW,"0pt");o.minH=(0,u.getMeasurement)(t.minH,"0pt");o.minW=(0,u.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,u.getRelevant)(t.relevant);o.rotate=(0,u.getInteger)({data:t.rotate,defaultValue:0,validate:function validate(t){return t%90==0}});o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,u.getMeasurement)(t.w):"";o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.border=null;o.calculate=null;o.caption=null;o.desc=null;o.extras=null;o.font=null;o.format=null;o.items=new l.XFAObjectArray(2);o.keep=null;o.margin=null;o.para=null;o.traversal=null;o.ui=null;o.validate=null;o.value=null;o.bindItems=new l.XFAObjectArray;o.connect=new l.XFAObjectArray;o.event=new l.XFAObjectArray;o.setProperty=new l.XFAObjectArray;return o}_createClass(Field,[{key:l.$setValue,value:function value(t){_setValue(this,t)}},{key:l.$toHTML,value:function value(){if(!this.ui)return null;var t=(0,h.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence"),r=[],o=[];this.border&&Object.assign(t,this.border[l.$toStyle](r,o));if(this.margin){t.paddingTop=(0,h.measureToString)(this.margin.topInset-r[0]-o[0]);t.paddingRight=(0,h.measureToString)(this.margin.rightInset-r[1]-o[1]);t.paddingBottom=(0,h.measureToString)(this.margin.bottomInset-r[2]-o[2]);t.paddingLeft=(0,h.measureToString)(this.margin.leftInset-r[3]-o[3])}else{t.paddingTop=(0,h.measureToString)(-r[0]-o[0]);t.paddingRight=(0,h.measureToString)(-r[1]-o[1]);t.paddingBottom=(0,h.measureToString)(-r[2]-o[2]);t.paddingLeft=(0,h.measureToString)(-r[3]-o[3])}var c=["xfaField"];this.font&&c.push("xfaFont");var u={style:t,id:this[l.$uid],class:c.join(" ")};this.name&&(u.xfaName=this.name);var d=[],m={name:"div",attributes:u,children:d},g=this.ui?this.ui[l.$toHTML]():null;if(!g)return m;g.attributes.style||(g.attributes.style=Object.create(null));d.push(g);this.value&&"button"!==g.name&&(g.children[0].attributes.value=this.value[l.$toHTML]());var y=this.caption?this.caption[l.$toHTML]():null;if(!y)return m;if("button"===g.name){g.attributes.style.background=t.color;delete t.color;"div"===y.name&&(y.name="span");g.children=[y];return m}g.children.splice(0,0,y);switch(this.caption.placement){case"left":g.attributes.style.flexDirection="row";break;case"right":g.attributes.style.flexDirection="row-reverse";break;case"top":g.attributes.style.flexDirection="column";break;case"bottom":g.attributes.style.flexDirection="column-reverse";break;case"inline":delete g.attributes.class;y.attributes.style.float="left"}return m}}]);return Field}(l.XFAObject);r.Field=ge;var ye=function(t){_inherits(Fill,t);var r=_createSuper(Fill);function Fill(t){var o;_classCallCheck(this,Fill);(o=r.call(this,m,"fill",!0)).id=t.id||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;o.linear=null;o.pattern=null;o.radial=null;o.solid=null;o.stipple=null;return o}_createClass(Fill,[{key:l.$toStyle,value:function value(){var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("extras"!==o&&"color"!==o){var c=this[o];if(c instanceof l.XFAObject)return{color:c[l.$toStyle](this.color)}}}}catch(t){r.e(t)}finally{r.f()}return{color:this.color?this.color[l.$toStyle]():"#000000"}}}]);return Fill}(l.XFAObject),ve=function(t){_inherits(Filter,t);var r=_createSuper(Filter);function Filter(t){var o;_classCallCheck(this,Filter);(o=r.call(this,m,"filter",!0)).addRevocationInfo=(0,u.getStringOption)(t.addRevocationInfo,["","required","optional","none"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.version=(0,u.getInteger)({data:o.version,defaultValue:5,validate:function validate(t){return t>=1&&t<=5}});o.appearanceFilter=null;o.certificates=null;o.digestMethods=null;o.encodings=null;o.encryptionMethods=null;o.handler=null;o.lockDocument=null;o.mdp=null;o.reasons=null;o.timeStamp=null;return o}return Filter}(l.XFAObject),be=function(t){_inherits(Float,t);var r=_createSuper(Float);function Float(t){var o;_classCallCheck(this,Float);(o=r.call(this,m,"float")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Float,[{key:l.$finalize,value:function value(){var t=parseFloat(this[l.$content].trim());this[l.$content]=isNaN(t)?null:t}},{key:l.$toHTML,value:function value(){return null!==this[l.$content]?this[l.$content].toString():""}}]);return Float}(l.ContentObject),Se=function(t){_inherits(Font,t);var r=_createSuper(Font);function Font(t){var o;_classCallCheck(this,Font);(o=r.call(this,m,"font",!0)).baselineShift=(0,u.getMeasurement)(t.baselineShift);o.fontHorizontalScale=(0,u.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.fontVerticalScale=(0,u.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:function validate(t){return t>=0}});o.id=t.id||"";o.kerningMode=(0,u.getStringOption)(t.kerningMode,["none","pair"]);o.letterSpacing=(0,u.getMeasurement)(t.letterSpacing,"0");o.lineThrough=(0,u.getInteger)({data:t.lineThrough,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.lineThroughPeriod=(0,u.getStringOption)(t.lineThroughPeriod,["all","word"]);o.overline=(0,u.getInteger)({data:t.overline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.overlinePeriod=(0,u.getStringOption)(t.overlinePeriod,["all","word"]);o.posture=(0,u.getStringOption)(t.posture,["normal","italic"]);o.size=(0,u.getMeasurement)(t.size,"10pt");o.typeface=t.typeface||"";o.underline=(0,u.getInteger)({data:t.underline,defaultValue:0,validate:function validate(t){return 1===t||2===t}});o.underlinePeriod=(0,u.getStringOption)(t.underlinePeriod,["all","word"]);o.use=t.use||"";o.usehref=t.usehref||"";o.weight=(0,u.getStringOption)(t.weight,["normal","bold"]);o.extras=null;o.fill=null;return o}_createClass(Font,[{key:l.$toStyle,value:function value(){var t=(0,h.toStyle)(this,"fill");if(t.color)if(t.color.startsWith("#"))"#000000"===t.color&&delete t.color;else{t.backgroundClip="text";t.background=t.color;t.color="transparent"}this.baselineShift&&(t.verticalAlign=(0,h.measureToString)(this.baselineShift));"none"!==this.kerningMode&&(t.fontKerning="normal");this.letterSpacing&&(t.letterSpacing=(0,h.measureToString)(this.letterSpacing));if(0!==this.lineThrough){t.textDecoration="line-through";2===this.lineThrough&&(t.textDecorationStyle="double")}if(0!==this.overline){t.textDecoration="overline";2===this.overline&&(t.textDecorationStyle="double")}"normal"!==this.posture&&(t.fontStyle=this.posture);var r=(0,h.measureToString)(this.size);"10px"!==r&&(t.fontSize=r);t.fontFamily=this.typeface;if(0!==this.underline){t.textDecoration="underline";2===this.underline&&(t.textDecorationStyle="double")}"normal"!==this.weight&&(t.fontWeight=this.weight);return t}}]);return Font}(l.XFAObject),ke=function(t){_inherits(Format,t);var r=_createSuper(Format);function Format(t){var o;_classCallCheck(this,Format);(o=r.call(this,m,"format",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;return o}return Format}(l.XFAObject),Ce=function(t){_inherits(Handler,t);var r=_createSuper(Handler);function Handler(t){var o;_classCallCheck(this,Handler);(o=r.call(this,m,"handler")).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Handler}(l.StringObject),we=function(t){_inherits(Hyphenation,t);var r=_createSuper(Hyphenation);function Hyphenation(t){var o;_classCallCheck(this,Hyphenation);(o=r.call(this,m,"hyphenation")).excludeAllCaps=(0,u.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:function validate(t){return 1===t}});o.excludeInitialCap=(0,u.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:function validate(t){return 1===t}});o.hyphenate=(0,u.getInteger)({data:t.hyphenate,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.pushCharacterCount=(0,u.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.remainCharacterCount=(0,u.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:function validate(t){return t>=0}});o.use=t.use||"";o.usehref=t.usehref||"";o.wordCharacterCount=(0,u.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:function validate(t){return t>=0}});return o}return Hyphenation}(l.XFAObject),_e=function(t){_inherits(Image,t);var r=_createSuper(Image);function Image(t){var o;_classCallCheck(this,Image);(o=r.call(this,m,"image")).aspect=(0,u.getStringOption)(t.aspect,["fit","actual","height","none","width"]);o.contentType=t.contentType||"";o.href=t.href||"";o.id=t.id||"";o.name=t.name||"";o.transferEncoding=(0,u.getStringOption)(t.transferEncoding,["base64","none","package"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Image,[{key:l.$toHTML,value:function value(){var t={name:"img",attributes:{style:{}}};if(this.href){t.attributes.src=new URL(this.href);return t}if("base64"===this.transferEncoding){var r=Uint8Array.from(atob(this[l.$content]),(function(t){return t.charCodeAt(0)})),o=new Blob([r],{type:this.contentType});t.attributes.src=URL.createObjectURL(o);return t}return null}}]);return Image}(l.StringObject),Ae=function(t){_inherits(ImageEdit,t);var r=_createSuper(ImageEdit);function ImageEdit(t){var o;_classCallCheck(this,ImageEdit);(o=r.call(this,m,"imageEdit",!0)).data=(0,u.getStringOption)(t.data,["link","embed"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}return ImageEdit}(l.XFAObject),Oe=function(t){_inherits(Integer,t);var r=_createSuper(Integer);function Integer(t){var o;_classCallCheck(this,Integer);(o=r.call(this,m,"integer")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Integer,[{key:l.$finalize,value:function value(){var t=parseInt(this[l.$content].trim(),10);this[l.$content]=isNaN(t)?null:t}},{key:l.$toHTML,value:function value(){return null!==this[l.$content]?this[l.$content].toString():""}}]);return Integer}(l.ContentObject),xe=function(t){_inherits(Issuers,t);var r=_createSuper(Issuers);function Issuers(t){var o;_classCallCheck(this,Issuers);(o=r.call(this,m,"issuers",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new l.XFAObjectArray;return o}return Issuers}(l.XFAObject),Pe=function(t){_inherits(Items,t);var r=_createSuper(Items);function Items(t){var o;_classCallCheck(this,Items);(o=r.call(this,m,"items",!0)).id=t.id||"";o.name=t.name||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.ref=t.ref||"";o.save=(0,u.getInteger)({data:t.save,defaultValue:0,validate:function validate(t){return 1===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.time=new l.XFAObjectArray;return o}_createClass(Items,[{key:l.$hasItem,value:function value(t){return this.hasOwnProperty(t[l.$nodeName])&&this[t[l.$nodeName]].children.some((function(r){return r[l.$content]===t[l.$content]}))}}]);return Items}(l.XFAObject);r.Items=Pe;var Te=function(t){_inherits(Keep,t);var r=_createSuper(Keep);function Keep(t){var o;_classCallCheck(this,Keep);(o=r.call(this,m,"keep",!0)).id=t.id||"";var l=["none","contentArea","pageArea"];o.intact=(0,u.getStringOption)(t.intact,l);o.next=(0,u.getStringOption)(t.next,l);o.previous=(0,u.getStringOption)(t.previous,l);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Keep}(l.XFAObject),Ie=function(t){_inherits(KeyUsage,t);var r=_createSuper(KeyUsage);function KeyUsage(t){var o;_classCallCheck(this,KeyUsage);var l=["","yes","no"];(o=r.call(this,m,"keyUsage")).crlSign=(0,u.getStringOption)(t.crlSign,l);o.dataEncipherment=(0,u.getStringOption)(t.dataEncipherment,l);o.decipherOnly=(0,u.getStringOption)(t.decipherOnly,l);o.digitalSignature=(0,u.getStringOption)(t.digitalSignature,l);o.encipherOnly=(0,u.getStringOption)(t.encipherOnly,l);o.id=t.id||"";o.keyAgreement=(0,u.getStringOption)(t.keyAgreement,l);o.keyCertSign=(0,u.getStringOption)(t.keyCertSign,l);o.keyEncipherment=(0,u.getStringOption)(t.keyEncipherment,l);o.nonRepudiation=(0,u.getStringOption)(t.nonRepudiation,l);o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return KeyUsage}(l.XFAObject),Fe=function(t){_inherits(Line,t);var r=_createSuper(Line);function Line(t){var o;_classCallCheck(this,Line);(o=r.call(this,m,"line",!0)).hand=(0,u.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.slope=(0,u.getStringOption)(t.slope,["\\","/"]);o.use=t.use||"";o.usehref=t.usehref||"";o.edge=null;return o}return Line}(l.XFAObject),Re=function(t){_inherits(Linear,t);var r=_createSuper(Linear);function Linear(t){var o;_classCallCheck(this,Linear);(o=r.call(this,m,"linear",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["toRight","toBottom","toLeft","toTop"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Linear,[{key:l.$toStyle,value:function value(t){t=t?t[l.$toStyle]():"#FFFFFF";var r=this.type.replace(/([RBLT])/," $1").toLowerCase(),o=this.color?this.color[l.$toStyle]():"#000000";return"linear-gradient(".concat(r,", ").concat(t,", ").concat(o,")")}}]);return Linear}(l.XFAObject),Ee=function(t){_inherits(LockDocument,t);var r=_createSuper(LockDocument);function LockDocument(t){var o;_classCallCheck(this,LockDocument);(o=r.call(this,m,"lockDocument")).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(LockDocument,[{key:l.$finalize,value:function value(){this[l.$content]=(0,u.getStringOption)(this[l.$content],["auto","0","1"])}}]);return LockDocument}(l.ContentObject),De=function(t){_inherits(Manifest,t);var r=_createSuper(Manifest);function Manifest(t){var o;_classCallCheck(this,Manifest);(o=r.call(this,m,"manifest",!0)).action=(0,u.getStringOption)(t.action,["include","all","exclude"]);o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.ref=new l.XFAObjectArray;return o}return Manifest}(l.XFAObject),Be=function(t){_inherits(Margin,t);var r=_createSuper(Margin);function Margin(t){var o;_classCallCheck(this,Margin);(o=r.call(this,m,"margin",!0)).bottomInset=(0,u.getMeasurement)(t.bottomInset,"0");o.id=t.id||"";o.leftInset=(0,u.getMeasurement)(t.leftInset,"0");o.rightInset=(0,u.getMeasurement)(t.rightInset,"0");o.topInset=(0,u.getMeasurement)(t.topInset,"0");o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Margin,[{key:l.$toStyle,value:function value(){return{marginLeft:(0,h.measureToString)(this.leftInset),marginRight:(0,h.measureToString)(this.rightInset),marginTop:(0,h.measureToString)(this.topInset),marginBottom:(0,h.measureToString)(this.bottomInset)}}}]);return Margin}(l.XFAObject),je=function(t){_inherits(Mdp,t);var r=_createSuper(Mdp);function Mdp(t){var o;_classCallCheck(this,Mdp);(o=r.call(this,m,"mdp")).id=t.id||"";o.permissions=(0,u.getInteger)({data:t.permissions,defaultValue:2,validate:function validate(t){return 1===t||3===t}});o.signatureType=(0,u.getStringOption)(t.signatureType,["filler","author"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Mdp}(l.XFAObject),Me=function(t){_inherits(Medium,t);var r=_createSuper(Medium);function Medium(t){var o;_classCallCheck(this,Medium);(o=r.call(this,m,"medium")).id=t.id||"";o.imagingBBox=(0,u.getBBox)(t.imagingBBox);o.long=(0,u.getMeasurement)(t.long);o.orientation=(0,u.getStringOption)(t.orientation,["portrait","landscape"]);o.short=(0,u.getMeasurement)(t.short);o.stock=t.stock||"";o.trayIn=(0,u.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);o.trayOut=(0,u.getStringOption)(t.trayOut,["auto","delegate"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Medium}(l.XFAObject),Ne=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,m,"message",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.text=new l.XFAObjectArray;return o}return Message}(l.XFAObject),Le=function(t){_inherits(NumericEdit,t);var r=_createSuper(NumericEdit);function NumericEdit(t){var o;_classCallCheck(this,NumericEdit);(o=r.call(this,m,"numericEdit",!0)).hScrollPolicy=(0,u.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(NumericEdit,[{key:l.$toHTML,value:function value(){return{name:"label",attributes:{class:"xfaLabel"},children:[{name:"input",attributes:{type:"text",class:"xfaTextfield",style:(0,h.toStyle)(this,"border","font","margin")}}]}}}]);return NumericEdit}(l.XFAObject),Ue=function(t){_inherits(Occur,t);var r=_createSuper(Occur);function Occur(t){var o;_classCallCheck(this,Occur);(o=r.call(this,m,"occur",!0)).id=t.id||"";o.initial=(0,u.getInteger)({data:t.initial,defaultValue:1,validate:function validate(t){return!0}});o.max=(0,u.getInteger)({data:t.max,defaultValue:1,validate:function validate(t){return!0}});o.min=(0,u.getInteger)({data:t.min,defaultValue:1,validate:function validate(t){return!0}});o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}return Occur}(l.XFAObject),qe=function(t){_inherits(Oid,t);var r=_createSuper(Oid);function Oid(t){var o;_classCallCheck(this,Oid);(o=r.call(this,m,"oid")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Oid}(l.StringObject),Xe=function(t){_inherits(Oids,t);var r=_createSuper(Oids);function Oids(t){var o;_classCallCheck(this,Oids);(o=r.call(this,m,"oids",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.oid=new l.XFAObjectArray;return o}return Oids}(l.XFAObject),We=function(t){_inherits(Overflow,t);var r=_createSuper(Overflow);function Overflow(t){var o;_classCallCheck(this,Overflow);(o=r.call(this,m,"overflow")).id=t.id||"";o.leader=t.leader||"";o.target=t.target||"";o.trailer=t.trailer||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Overflow}(l.XFAObject),He=function(t){_inherits(PageArea,t);var r=_createSuper(PageArea);function PageArea(t){var o;_classCallCheck(this,PageArea);(o=r.call(this,m,"pageArea",!0)).blankOrNotBlank=(0,u.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);o.id=t.id||"";o.initialNumber=(0,u.getInteger)({data:t.initialNumber,defaultValue:1,validate:function validate(t){return!0}});o.name=t.name||"";o.numbered=(0,u.getInteger)({data:t.numbered,defaultValue:1,validate:function validate(t){return!0}});o.oddOrEven=(0,u.getStringOption)(t.oddOrEven,["any","even","odd"]);o.pagePosition=(0,u.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.desc=null;o.extras=null;o.medium=null;o.occur=null;o.area=new l.XFAObjectArray;o.contentArea=new l.XFAObjectArray;o.draw=new l.XFAObjectArray;o.exclGroup=new l.XFAObjectArray;o.field=new l.XFAObjectArray;o.subform=new l.XFAObjectArray;return o}_createClass(PageArea,[{key:l.$toHTML,value:function value(){if(0===this.contentArea.children.length)return null;var t=this[l.$childrenToHTML]({filter:new Set(["area","draw","field","subform","contentArea"]),include:!0}),r=t.find((function(t){return"xfaContentarea"===t.attributes.class})),o=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){o.width=(0,h.measureToString)(this.medium.short);o.height=(0,h.measureToString)(this.medium.long)}return{name:"div",children:t,attributes:{id:this[l.$uid],style:o},contentArea:r}}}]);return PageArea}(l.XFAObject),ze=function(t){_inherits(PageSet,t);var r=_createSuper(PageSet);function PageSet(t){var o;_classCallCheck(this,PageSet);(o=r.call(this,m,"pageSet",!0)).duplexImposition=(0,u.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);o.id=t.id||"";o.name=t.name||"";o.relation=(0,u.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.occur=null;o.pageArea=new l.XFAObjectArray;o.pageSet=new l.XFAObjectArray;return o}_createClass(PageSet,[{key:l.$toHTML,value:function value(){return{name:"div",children:this[l.$childrenToHTML]({filter:new Set(["pageArea","pageSet"]),include:!0}),attributes:{id:this[l.$uid]}}}}]);return PageSet}(l.XFAObject),Ge=function(t){_inherits(Para,t);var r=_createSuper(Para);function Para(t){var o;_classCallCheck(this,Para);(o=r.call(this,m,"para",!0)).hAlign=(0,u.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.lineHeight=(0,u.getMeasurement)(t.lineHeight,"0pt");o.marginLeft=(0,u.getMeasurement)(t.marginLeft,"0");o.marginRight=(0,u.getMeasurement)(t.marginRight,"0");o.orphans=(0,u.getInteger)({data:t.orphans,defaultValue:0,validate:function validate(t){return t>=0}});o.preserve=t.preserve||"";o.radixOffset=(0,u.getMeasurement)(t.radixOffset,"0");o.spaceAbove=(0,u.getMeasurement)(t.spaceAbove,"0");o.spaceBelow=(0,u.getMeasurement)(t.spaceBelow,"0");o.tabDefault=t.tabDefault?(0,u.getMeasurement)(o.tabDefault):null;o.tabStops=(t.tabStops||"").trim().split(/\s+/).map((function(t,r){return r%2==1?(0,u.getMeasurement)(t):t}));o.textIndent=(0,u.getMeasurement)(t.textIndent,"0");o.use=t.use||"";o.usehref=t.usehref||"";o.vAlign=(0,u.getStringOption)(t.vAlign,["top","bottom","middle"]);o.widows=(0,u.getInteger)({data:t.widows,defaultValue:0,validate:function validate(t){return t>=0}});o.hyphenation=null;return o}_createClass(Para,[{key:l.$toHTML,value:function value(){var t={marginLeft:(0,h.measureToString)(this.marginLeft),marginRight:(0,h.measureToString)(this.marginRight),paddingTop:(0,h.measureToString)(this.spaceAbove),paddingBottom:(0,h.measureToString)(this.spaceBelow),textIndent:(0,h.measureToString)(this.textIndent),verticalAlign:this.vAlign};this.lineHeight.value>=0&&(t.lineHeight=(0,h.measureToString)(this.lineHeight));this.tabDefault&&(t.tabSize=(0,h.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(t,this.hyphenatation[l.$toHTML]());return t}}]);return Para}(l.XFAObject),Ve=function(t){_inherits(PasswordEdit,t);var r=_createSuper(PasswordEdit);function PasswordEdit(t){var o;_classCallCheck(this,PasswordEdit);(o=r.call(this,m,"passwordEdit",!0)).hScrollPolicy=(0,u.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.passwordChar=t.passwordChar||"*";o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.margin=null;return o}return PasswordEdit}(l.XFAObject),$e=function(t){_inherits(Pattern,t);var r=_createSuper(Pattern);function Pattern(t){var o;_classCallCheck(this,Pattern);(o=r.call(this,m,"pattern",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Pattern,[{key:l.$toStyle,value:function value(t){t=t?t[l.$toStyle]():"#FFFFFF";var r=this.color?this.color[l.$toStyle]():"#000000",o="repeating-linear-gradient",c="".concat(t,",").concat(t," ").concat(5,"px,").concat(r," ").concat(5,"px,").concat(r," ").concat(10,"px");switch(this.type){case"crossHatch":return"".concat(o,"(to top,").concat(c,") ").concat(o,"(to right,").concat(c,")");case"crossDiagonal":return"".concat(o,"(45deg,").concat(c,") ").concat(o,"(-45deg,").concat(c,")");case"diagonalLeft":return"".concat(o,"(45deg,").concat(c,")");case"diagonalRight":return"".concat(o,"(-45deg,").concat(c,")");case"horizontal":return"".concat(o,"(to top,").concat(c,")");case"vertical":return"".concat(o,"(to right,").concat(c,")")}return""}}]);return Pattern}(l.XFAObject),Ke=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){var o;_classCallCheck(this,Picture);(o=r.call(this,m,"picture")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Picture}(l.StringObject),Ye=function(t){_inherits(Proto,t);var r=_createSuper(Proto);function Proto(t){var o;_classCallCheck(this,Proto);(o=r.call(this,m,"proto",!0)).appearanceFilter=new l.XFAObjectArray;o.arc=new l.XFAObjectArray;o.area=new l.XFAObjectArray;o.assist=new l.XFAObjectArray;o.barcode=new l.XFAObjectArray;o.bindItems=new l.XFAObjectArray;o.bookend=new l.XFAObjectArray;o.boolean=new l.XFAObjectArray;o.border=new l.XFAObjectArray;o.break=new l.XFAObjectArray;o.breakAfter=new l.XFAObjectArray;o.breakBefore=new l.XFAObjectArray;o.button=new l.XFAObjectArray;o.calculate=new l.XFAObjectArray;o.caption=new l.XFAObjectArray;o.certificate=new l.XFAObjectArray;o.certificates=new l.XFAObjectArray;o.checkButton=new l.XFAObjectArray;o.choiceList=new l.XFAObjectArray;o.color=new l.XFAObjectArray;o.comb=new l.XFAObjectArray;o.connect=new l.XFAObjectArray;o.contentArea=new l.XFAObjectArray;o.corner=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.dateTimeEdit=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.defaultUi=new l.XFAObjectArray;o.desc=new l.XFAObjectArray;o.digestMethod=new l.XFAObjectArray;o.digestMethods=new l.XFAObjectArray;o.draw=new l.XFAObjectArray;o.edge=new l.XFAObjectArray;o.encoding=new l.XFAObjectArray;o.encodings=new l.XFAObjectArray;o.encrypt=new l.XFAObjectArray;o.encryptData=new l.XFAObjectArray;o.encryption=new l.XFAObjectArray;o.encryptionMethod=new l.XFAObjectArray;o.encryptionMethods=new l.XFAObjectArray;o.event=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.exObject=new l.XFAObjectArray;o.exclGroup=new l.XFAObjectArray;o.execute=new l.XFAObjectArray;o.extras=new l.XFAObjectArray;o.field=new l.XFAObjectArray;o.fill=new l.XFAObjectArray;o.filter=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.font=new l.XFAObjectArray;o.format=new l.XFAObjectArray;o.handler=new l.XFAObjectArray;o.hyphenation=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.imageEdit=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.issuers=new l.XFAObjectArray;o.items=new l.XFAObjectArray;o.keep=new l.XFAObjectArray;o.keyUsage=new l.XFAObjectArray;o.line=new l.XFAObjectArray;o.linear=new l.XFAObjectArray;o.lockDocument=new l.XFAObjectArray;o.manifest=new l.XFAObjectArray;o.margin=new l.XFAObjectArray;o.mdp=new l.XFAObjectArray;o.medium=new l.XFAObjectArray;o.message=new l.XFAObjectArray;o.numericEdit=new l.XFAObjectArray;o.occur=new l.XFAObjectArray;o.oid=new l.XFAObjectArray;o.oids=new l.XFAObjectArray;o.overflow=new l.XFAObjectArray;o.pageArea=new l.XFAObjectArray;o.pageSet=new l.XFAObjectArray;o.para=new l.XFAObjectArray;o.passwordEdit=new l.XFAObjectArray;o.pattern=new l.XFAObjectArray;o.picture=new l.XFAObjectArray;o.radial=new l.XFAObjectArray;o.reason=new l.XFAObjectArray;o.reasons=new l.XFAObjectArray;o.rectangle=new l.XFAObjectArray;o.ref=new l.XFAObjectArray;o.script=new l.XFAObjectArray;o.setProperty=new l.XFAObjectArray;o.signData=new l.XFAObjectArray;o.signature=new l.XFAObjectArray;o.signing=new l.XFAObjectArray;o.solid=new l.XFAObjectArray;o.speak=new l.XFAObjectArray;o.stipple=new l.XFAObjectArray;o.subform=new l.XFAObjectArray;o.subformSet=new l.XFAObjectArray;o.subjectDN=new l.XFAObjectArray;o.subjectDNs=new l.XFAObjectArray;o.submit=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.textEdit=new l.XFAObjectArray;o.time=new l.XFAObjectArray;o.timeStamp=new l.XFAObjectArray;o.toolTip=new l.XFAObjectArray;o.traversal=new l.XFAObjectArray;o.traverse=new l.XFAObjectArray;o.ui=new l.XFAObjectArray;o.validate=new l.XFAObjectArray;o.value=new l.XFAObjectArray;o.variables=new l.XFAObjectArray;return o}return Proto}(l.XFAObject),Je=function(t){_inherits(Radial,t);var r=_createSuper(Radial);function Radial(t){var o;_classCallCheck(this,Radial);(o=r.call(this,m,"radial",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["toEdge","toCenter"]);o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Radial,[{key:l.$toStyle,value:function value(t){t=t?t[l.$toStyle]():"#FFFFFF";var r=this.color?this.color[l.$toStyle]():"#000000",o="toEdge"===this.type?"".concat(t,",").concat(r):"".concat(r,",").concat(t);return"radial-gradient(circle to center, ".concat(o,")")}}]);return Radial}(l.XFAObject),Qe=function(t){_inherits(Reason,t);var r=_createSuper(Reason);function Reason(t){var o;_classCallCheck(this,Reason);(o=r.call(this,m,"reason")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Reason}(l.StringObject),Ze=function(t){_inherits(Reasons,t);var r=_createSuper(Reasons);function Reasons(t){var o;_classCallCheck(this,Reasons);(o=r.call(this,m,"reasons",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.reason=new l.XFAObjectArray;return o}return Reasons}(l.XFAObject),et=function(t){_inherits(Rectangle,t);var r=_createSuper(Rectangle);function Rectangle(t){var o;_classCallCheck(this,Rectangle);(o=r.call(this,m,"rectangle",!0)).hand=(0,u.getStringOption)(t.hand,["even","left","right"]);o.id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.corner=new l.XFAObjectArray(4);o.edge=new l.XFAObjectArray(4);o.fill=null;return o}return Rectangle}(l.XFAObject),tt=function(t){_inherits(RefElement,t);var r=_createSuper(RefElement);function RefElement(t){var o;_classCallCheck(this,RefElement);(o=r.call(this,m,"ref")).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return RefElement}(l.StringObject),rt=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,m,"script")).binding=t.binding||"";o.contentType=t.contentType||"";o.id=t.id||"";o.name=t.name||"";o.runAt=(0,u.getStringOption)(t.runAt,["client","both","server"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return Script}(l.StringObject),at=function(t){_inherits(SetProperty,t);var r=_createSuper(SetProperty);function SetProperty(t){var o;_classCallCheck(this,SetProperty);(o=r.call(this,m,"setProperty")).connection=t.connection||"";o.ref=t.ref||"";o.target=t.target||"";return o}return SetProperty}(l.XFAObject);r.SetProperty=at;var nt=function(t){_inherits(SignData,t);var r=_createSuper(SignData);function SignData(t){var o;_classCallCheck(this,SignData);(o=r.call(this,m,"signData",!0)).id=t.id||"";o.operation=(0,u.getStringOption)(t.operation,["sign","clear","verify"]);o.ref=t.ref||"";o.target=t.target||"";o.use=t.use||"";o.usehref=t.usehref||"";o.filter=null;o.manifest=null;return o}return SignData}(l.XFAObject),it=function(t){_inherits(Signature,t);var r=_createSuper(Signature);function Signature(t){var o;_classCallCheck(this,Signature);(o=r.call(this,m,"signature",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["PDF1.3","PDF1.6"]);o.use=t.use||"";o.usehref=t.usehref||"";o.border=null;o.extras=null;o.filter=null;o.manifest=null;o.margin=null;return o}return Signature}(l.XFAObject),ot=function(t){_inherits(Signing,t);var r=_createSuper(Signing);function Signing(t){var o;_classCallCheck(this,Signing);(o=r.call(this,m,"signing",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.certificate=new l.XFAObjectArray;return o}return Signing}(l.XFAObject),st=function(t){_inherits(Solid,t);var r=_createSuper(Solid);function Solid(t){var o;_classCallCheck(this,Solid);(o=r.call(this,m,"solid",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;return o}_createClass(Solid,[{key:l.$toStyle,value:function value(t){return t?t[l.$toStyle]():"#FFFFFF"}}]);return Solid}(l.XFAObject),lt=function(t){_inherits(Speak,t);var r=_createSuper(Speak);function Speak(t){var o;_classCallCheck(this,Speak);(o=r.call(this,m,"speak")).disable=(0,u.getInteger)({data:t.disable,defaultValue:0,validate:function validate(t){return 1===t}});o.id=t.id||"";o.priority=(0,u.getStringOption)(t.priority,["custom","caption","name","toolTip"]);o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Speak}(l.StringObject),ct=function(t){_inherits(Stipple,t);var r=_createSuper(Stipple);function Stipple(t){var o;_classCallCheck(this,Stipple);(o=r.call(this,m,"stipple",!0)).id=t.id||"";o.rate=(0,u.getInteger)({data:t.rate,defaultValue:50,validate:function validate(t){return t>=0&&t<=100}});o.use=t.use||"";o.usehref=t.usehref||"";o.color=null;o.extras=null;return o}_createClass(Stipple,[{key:l.$toStyle,value:function value(t){var r=this.rate/100;return d.Util.makeHexColor(Math.round(t.value.r*(1-r)+this.value.r*r),Math.round(t.value.g*(1-r)+this.value.g*r),Math.round(t.value.b*(1-r)+this.value.b*r))}}]);return Stipple}(l.XFAObject),ut=function(t){_inherits(Subform,t);var r=_createSuper(Subform);function Subform(t){var o;_classCallCheck(this,Subform);(o=r.call(this,m,"subform",!0)).access=(0,u.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);o.allowMacro=(0,u.getInteger)({data:t.allowMacro,defaultValue:0,validate:function validate(t){return 1===t}});o.anchorType=(0,u.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);o.colSpan=(0,u.getInteger)({data:t.colSpan,defaultValue:1,validate:function validate(t){return t>=1}});o.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((function(t){return"-1"===t?-1:(0,u.getMeasurement)(t)}));o.h=t.h?(0,u.getMeasurement)(t.h):"";o.hAlign=(0,u.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);o.id=t.id||"";o.layout=(0,u.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);o.locale=t.locale||"";o.maxH=(0,u.getMeasurement)(t.maxH,"0pt");o.maxW=(0,u.getMeasurement)(t.maxW,"0pt");o.mergeMode=(0,u.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);o.minH=(0,u.getMeasurement)(t.minH,"0pt");o.minW=(0,u.getMeasurement)(t.minW,"0pt");o.name=t.name||"";o.presence=(0,u.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);o.relevant=(0,u.getRelevant)(t.relevant);o.restoreState=(0,u.getStringOption)(t.restoreState,["manual","auto"]);o.scope=(0,u.getStringOption)(t.scope,["name","none"]);o.use=t.use||"";o.usehref=t.usehref||"";o.w=t.w?(0,u.getMeasurement)(t.w):"";o.x=(0,u.getMeasurement)(t.x,"0pt");o.y=(0,u.getMeasurement)(t.y,"0pt");o.assist=null;o.bind=null;o.bookend=null;o.border=null;o.break=null;o.calculate=null;o.desc=null;o.extras=null;o.keep=null;o.margin=null;o.occur=null;o.overflow=null;o.pageSet=null;o.para=null;o.traversal=null;o.validate=null;o.variables=null;o.area=new l.XFAObjectArray;o.breakAfter=new l.XFAObjectArray;o.breakBefore=new l.XFAObjectArray;o.connect=new l.XFAObjectArray;o.draw=new l.XFAObjectArray;o.event=new l.XFAObjectArray;o.exObject=new l.XFAObjectArray;o.exclGroup=new l.XFAObjectArray;o.field=new l.XFAObjectArray;o.proto=new l.XFAObjectArray;o.setProperty=new l.XFAObjectArray;o.subform=new l.XFAObjectArray;o.subformSet=new l.XFAObjectArray;return o}_createClass(Subform,[{key:l.$toHTML,value:function value(){this[l.$extra]=Object.create(null);var t=this[l.$getParent](),r=null;if("template"===t[l.$nodeName])null!==this.pageSet?this[l.$extra].pageNumber=0:(0,d.warn)("XFA - No pageSet in root subform");else if(t[l.$extra]&&void 0!==t[l.$extra].pageNumber){var o=t[l.$extra].pageNumber,c=t.pageSet.pageArea.children;t[l.$extra].pageNumber=(t[l.$extra].pageNumber+1)%c.length;r=c[o][l.$toHTML]()}var u=(0,h.toStyle)(this,"dimensions","position","presence"),m=["xfaSubform"],g=(0,h.layoutClass)(this);g&&m.push(g);var y={style:u,id:this[l.$uid],class:m.join(" ")};this.name&&(y.xfaName=this.name);var v={name:"div",attributes:y,children:this[l.$childrenToHTML]({filter:new Set(["area","draw","field","subform","subformSet"]),include:!0})};if(r){r.contentArea.children.push(v);delete r.contentArea;return r}return v}}]);return Subform}(l.XFAObject),ft=function(t){_inherits(SubformSet,t);var r=_createSuper(SubformSet);function SubformSet(t){var o;_classCallCheck(this,SubformSet);(o=r.call(this,m,"subformSet",!0)).id=t.id||"";o.name=t.name||"";o.relation=(0,u.getStringOption)(t.relation,["ordered","choice","unordered"]);o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.bookend=null;o.break=null;o.desc=null;o.extras=null;o.occur=null;o.overflow=null;o.breakAfter=new l.XFAObjectArray;o.breakBefore=new l.XFAObjectArray;o.subform=new l.XFAObjectArray;o.subformSet=new l.XFAObjectArray;return o}return SubformSet}(l.XFAObject),ht=function(t){_inherits(SubjectDN,t);var r=_createSuper(SubjectDN);function SubjectDN(t){var o;_classCallCheck(this,SubjectDN);(o=r.call(this,m,"subjectDN")).delimiter=t.delimiter||",";o.id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(SubjectDN,[{key:l.$finalize,value:function value(){this[l.$content]=new Map(this[l.$content].split(this.delimiter).map((function(t){(t=t.split("=",2))[0]=t[0].trim();return t})))}}]);return SubjectDN}(l.ContentObject),dt=function(t){_inherits(SubjectDNs,t);var r=_createSuper(SubjectDNs);function SubjectDNs(t){var o;_classCallCheck(this,SubjectDNs);(o=r.call(this,m,"subjectDNs",!0)).id=t.id||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";o.subjectDN=new l.XFAObjectArray;return o}return SubjectDNs}(l.XFAObject),mt=function(t){_inherits(Submit,t);var r=_createSuper(Submit);function Submit(t){var o;_classCallCheck(this,Submit);(o=r.call(this,m,"submit",!0)).embedPDF=(0,u.getInteger)({data:t.embedPDF,defaultValue:0,validate:function validate(t){return 1===t}});o.format=(0,u.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);o.id=t.id||"";o.target=t.target||"";o.textEncoding=(0,u.getKeyword)({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:function validate(t){return["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-[0-9]{2}/)}});o.use=t.use||"";o.usehref=t.usehref||"";o.xdpContent=t.xdpContent||"";o.encrypt=null;o.encryptData=new l.XFAObjectArray;o.signData=new l.XFAObjectArray;return o}return Submit}(l.XFAObject),gt=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,m,"template",!0)).baseProfile=(0,u.getStringOption)(t.baseProfile,["full","interactiveForms"]);o.extras=null;o.subform=new l.XFAObjectArray;return o}_createClass(Template,[{key:l.$finalize,value:function value(){0===this.subform.children.length&&(0,d.warn)("XFA - No subforms in template node.");this.subform.children.length>=2&&(0,d.warn)("XFA - Several subforms in template node: please file a bug.")}},{key:l.$toHTML,value:function value(){return this.subform.children.length>0?this.subform.children[0][l.$toHTML]():{name:"div",children:[]}}}]);return Template}(l.XFAObject);r.Template=gt;var yt=function(t){_inherits(Text,t);var r=_createSuper(Text);function Text(t){var o;_classCallCheck(this,Text);(o=r.call(this,m,"text")).id=t.id||"";o.maxChars=(0,u.getInteger)({data:t.maxChars,defaultValue:0,validate:function validate(t){return t>=0}});o.name=t.name||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Text,[{key:l.$onChild,value:function value(t){if(t[l.$namespaceId]===c.NamespaceIds.xhtml.id){this[l.$content]=t;return!0}(0,d.warn)("XFA - Invalid content in Text: ".concat(t[l.$nodeName],"."));return!1}},{key:l.$toHTML,value:function value(){return"string"==typeof this[l.$content]?this[l.$content]:this[l.$content][l.$toHTML]()}}]);return Text}(l.ContentObject);r.Text=yt;var vt=function(t){_inherits(TextEdit,t);var r=_createSuper(TextEdit);function TextEdit(t){var o;_classCallCheck(this,TextEdit);(o=r.call(this,m,"textEdit",!0)).allowRichText=(0,u.getInteger)({data:t.allowRichText,defaultValue:0,validate:function validate(t){return 1===t}});o.hScrollPolicy=(0,u.getStringOption)(t.hScrollPolicy,["auto","off","on"]);o.id=t.id||"";o.multiLine=(0,u.getInteger)({data:t.multiLine,defaultValue:1,validate:function validate(t){return 0===t}});o.use=t.use||"";o.usehref=t.usehref||"";o.vScrollPolicy=(0,u.getStringOption)(t.vScrollPolicy,["auto","off","on"]);o.border=null;o.comb=null;o.extras=null;o.margin=null;return o}_createClass(TextEdit,[{key:l.$toHTML,value:function value(){var t=(0,h.toStyle)(this,"border","font","margin");return{name:"label",attributes:{class:"xfaLabel"},children:[1===this.multiline?{name:"textarea",attributes:{style:t}}:{name:"input",attributes:{type:"text",class:"xfaTextfield",style:t}}]}}}]);return TextEdit}(l.XFAObject),bt=function(t){_inherits(Time,t);var r=_createSuper(Time);function Time(t){var o;_classCallCheck(this,Time);(o=r.call(this,m,"time")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}_createClass(Time,[{key:l.$finalize,value:function value(){this[l.$content]=new Date(this[l.$content])}},{key:l.$toHTML,value:function value(){return this[l.$content].toString()}}]);return Time}(l.StringObject),St=function(t){_inherits(TimeStamp,t);var r=_createSuper(TimeStamp);function TimeStamp(t){var o;_classCallCheck(this,TimeStamp);(o=r.call(this,m,"timeStamp")).id=t.id||"";o.server=t.server||"";o.type=(0,u.getStringOption)(t.type,["optional","required"]);o.use=t.use||"";o.usehref=t.usehref||"";return o}return TimeStamp}(l.XFAObject),kt=function(t){_inherits(ToolTip,t);var r=_createSuper(ToolTip);function ToolTip(t){var o;_classCallCheck(this,ToolTip);(o=r.call(this,m,"toolTip")).id=t.id||"";o.rid=t.rid||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return ToolTip}(l.StringObject),Ct=function(t){_inherits(Traversal,t);var r=_createSuper(Traversal);function Traversal(t){var o;_classCallCheck(this,Traversal);(o=r.call(this,m,"traversal",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.traverse=new l.XFAObjectArray;return o}return Traversal}(l.XFAObject),wt=function(t){_inherits(Traverse,t);var r=_createSuper(Traverse);function Traverse(t){var o;_classCallCheck(this,Traverse);(o=r.call(this,m,"traverse",!0)).id=t.id||"";o.operation=(0,u.getStringOption)(t.operation,["next","back","down","first","left","right","up"]);o.ref=t.ref||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.script=null;return o}_createClass(Traverse,[{key:"name",get:function get(){return this.operation}},{key:l.$isTransparent,value:function value(){return!1}}]);return Traverse}(l.XFAObject),_t=function(t){_inherits(Ui,t);var r=_createSuper(Ui);function Ui(t){var o;_classCallCheck(this,Ui);(o=r.call(this,m,"ui",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.picture=null;o.barcode=null;o.button=null;o.checkButton=null;o.choiceList=null;o.dateTimeEdit=null;o.defaultUi=null;o.imageEdit=null;o.numericEdit=null;o.passwordEdit=null;o.signature=null;o.textEdit=null;return o}_createClass(Ui,[{key:l.$toHTML,value:function value(){var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=t.value;if("extras"!==o&&"picture"!==o){var c=this[o];if(c instanceof l.XFAObject)return c[l.$toHTML]()}}}catch(t){r.e(t)}finally{r.f()}return null}}]);return Ui}(l.XFAObject),At=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){var o;_classCallCheck(this,Validate);(o=r.call(this,m,"validate",!0)).formatTest=(0,u.getStringOption)(t.formatTest,["warning","disabled","error"]);o.id=t.id||"";o.nullTest=(0,u.getStringOption)(t.nullTest,["disabled","error","warning"]);o.scriptTest=(0,u.getStringOption)(t.scriptTest,["error","disabled","warning"]);o.use=t.use||"";o.usehref=t.usehref||"";o.extras=null;o.message=null;o.picture=null;o.script=null;return o}return Validate}(l.XFAObject),Ot=function(t){_inherits(Value,t);var r=_createSuper(Value);function Value(t){var o;_classCallCheck(this,Value);(o=r.call(this,m,"value",!0)).id=t.id||"";o.override=(0,u.getInteger)({data:t.override,defaultValue:0,validate:function validate(t){return 1===t}});o.relevant=(0,u.getRelevant)(t.relevant);o.use=t.use||"";o.usehref=t.usehref||"";o.arc=null;o.boolean=null;o.date=null;o.dateTime=null;o.decimal=null;o.exData=null;o.float=null;o.image=null;o.integer=null;o.line=null;o.rectangle=null;o.text=null;o.time=null;return o}_createClass(Value,[{key:l.$setValue,value:function value(t){var r=t[l.$nodeName];if(null===this[r]){var o,c=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(c.s();!(o=c.n()).done;){var u=o.value,h=this[u];if(h instanceof l.XFAObject){this[u]=null;this[l.$removeChild](h)}}}catch(t){c.e(t)}finally{c.f()}this[t[l.$nodeName]]=t;this[l.$appendChild](t)}else this[r][l.$content]=t[l.$content]}},{key:l.$toHTML,value:function value(){var t,r=_createForOfIteratorHelper(Object.getOwnPropertyNames(this));try{for(r.s();!(t=r.n()).done;){var o=this[t.value];if(o instanceof l.XFAObject)return o[l.$toHTML]()}}catch(t){r.e(t)}finally{r.f()}return null}}]);return Value}(l.XFAObject);r.Value=Ot;var xt=function(t){_inherits(Variables,t);var r=_createSuper(Variables);function Variables(t){var o;_classCallCheck(this,Variables);(o=r.call(this,m,"variables",!0)).id=t.id||"";o.use=t.use||"";o.usehref=t.usehref||"";o.boolean=new l.XFAObjectArray;o.date=new l.XFAObjectArray;o.dateTime=new l.XFAObjectArray;o.decimal=new l.XFAObjectArray;o.exData=new l.XFAObjectArray;o.float=new l.XFAObjectArray;o.image=new l.XFAObjectArray;o.integer=new l.XFAObjectArray;o.manifest=new l.XFAObjectArray;o.script=new l.XFAObjectArray;o.text=new l.XFAObjectArray;o.time=new l.XFAObjectArray;return o}_createClass(Variables,[{key:l.$isTransparent,value:function value(){return!0}}]);return Variables}(l.XFAObject),Pt=function(){function TemplateNamespace(){_classCallCheck(this,TemplateNamespace)}_createClass(TemplateNamespace,null,[{key:c.$buildXFAObject,value:function value(t,r){if(TemplateNamespace.hasOwnProperty(t)){var o=TemplateNamespace[t](r);o[l.$setSetAttributes](r);return o}}},{key:"appearanceFilter",value:function appearanceFilter(t){return new g(t)}},{key:"arc",value:function arc(t){return new y(t)}},{key:"area",value:function area(t){return new v(t)}},{key:"assist",value:function assist(t){return new S(t)}},{key:"barcode",value:function barcode(t){return new k(t)}},{key:"bind",value:function bind(t){return new C(t)}},{key:"bindItems",value:function bindItems(t){return new w(t)}},{key:"bookend",value:function bookend(t){return new _(t)}},{key:"boolean",value:function boolean(t){return new O(t)}},{key:"border",value:function border(t){return new x(t)}},{key:"break",value:function _break(t){return new T(t)}},{key:"breakAfter",value:function breakAfter(t){return new R(t)}},{key:"breakBefore",value:function breakBefore(t){return new E(t)}},{key:"button",value:function button(t){return new D(t)}},{key:"calculate",value:function calculate(t){return new j(t)}},{key:"caption",value:function caption(t){return new M(t)}},{key:"certificate",value:function certificate(t){return new N(t)}},{key:"certificates",value:function certificates(t){return new L(t)}},{key:"checkButton",value:function checkButton(t){return new U(t)}},{key:"choiceList",value:function choiceList(t){return new q(t)}},{key:"color",value:function color(t){return new X(t)}},{key:"comb",value:function comb(t){return new W(t)}},{key:"connect",value:function connect(t){return new H(t)}},{key:"contentArea",value:function contentArea(t){return new z(t)}},{key:"corner",value:function corner(t){return new G(t)}},{key:"date",value:function date(t){return new V(t)}},{key:"dateTime",value:function dateTime(t){return new $(t)}},{key:"dateTimeEdit",value:function dateTimeEdit(t){return new K(t)}},{key:"decimal",value:function decimal(t){return new Y(t)}},{key:"defaultUi",value:function defaultUi(t){return new J(t)}},{key:"desc",value:function desc(t){return new Q(t)}},{key:"digestMethod",value:function digestMethod(t){return new Z(t)}},{key:"digestMethods",value:function digestMethods(t){return new ee(t)}},{key:"draw",value:function draw(t){return new te(t)}},{key:"edge",value:function edge(t){return new re(t)}},{key:"encoding",value:function encoding(t){return new ae(t)}},{key:"encodings",value:function encodings(t){return new ne(t)}},{key:"encrypt",value:function encrypt(t){return new ie(t)}},{key:"encryptData",value:function encryptData(t){return new oe(t)}},{key:"encryption",value:function encryption(t){return new se(t)}},{key:"encryptionMethod",value:function encryptionMethod(t){return new le(t)}},{key:"encryptionMethods",value:function encryptionMethods(t){return new ce(t)}},{key:"event",value:function event(t){return new ue(t)}},{key:"exData",value:function exData(t){return new fe(t)}},{key:"exObject",value:function exObject(t){return new he(t)}},{key:"exclGroup",value:function exclGroup(t){return new de(t)}},{key:"execute",value:function execute(t){return new pe(t)}},{key:"extras",value:function extras(t){return new me(t)}},{key:"field",value:function field(t){return new ge(t)}},{key:"fill",value:function fill(t){return new ye(t)}},{key:"filter",value:function filter(t){return new ve(t)}},{key:"float",value:function float(t){return new be(t)}},{key:"font",value:function font(t){return new Se(t)}},{key:"format",value:function format(t){return new ke(t)}},{key:"handler",value:function handler(t){return new Ce(t)}},{key:"hyphenation",value:function hyphenation(t){return new we(t)}},{key:"image",value:function image(t){return new _e(t)}},{key:"imageEdit",value:function imageEdit(t){return new Ae(t)}},{key:"integer",value:function integer(t){return new Oe(t)}},{key:"issuers",value:function issuers(t){return new xe(t)}},{key:"items",value:function items(t){return new Pe(t)}},{key:"keep",value:function keep(t){return new Te(t)}},{key:"keyUsage",value:function keyUsage(t){return new Ie(t)}},{key:"line",value:function line(t){return new Fe(t)}},{key:"linear",value:function linear(t){return new Re(t)}},{key:"lockDocument",value:function lockDocument(t){return new Ee(t)}},{key:"manifest",value:function manifest(t){return new De(t)}},{key:"margin",value:function margin(t){return new Be(t)}},{key:"mdp",value:function mdp(t){return new je(t)}},{key:"medium",value:function medium(t){return new Me(t)}},{key:"message",value:function message(t){return new Ne(t)}},{key:"numericEdit",value:function numericEdit(t){return new Le(t)}},{key:"occur",value:function occur(t){return new Ue(t)}},{key:"oid",value:function oid(t){return new qe(t)}},{key:"oids",value:function oids(t){return new Xe(t)}},{key:"overflow",value:function overflow(t){return new We(t)}},{key:"pageArea",value:function pageArea(t){return new He(t)}},{key:"pageSet",value:function pageSet(t){return new ze(t)}},{key:"para",value:function para(t){return new Ge(t)}},{key:"passwordEdit",value:function passwordEdit(t){return new Ve(t)}},{key:"pattern",value:function pattern(t){return new $e(t)}},{key:"picture",value:function picture(t){return new Ke(t)}},{key:"proto",value:function proto(t){return new Ye(t)}},{key:"radial",value:function radial(t){return new Je(t)}},{key:"reason",value:function reason(t){return new Qe(t)}},{key:"reasons",value:function reasons(t){return new Ze(t)}},{key:"rectangle",value:function rectangle(t){return new et(t)}},{key:"ref",value:function ref(t){return new tt(t)}},{key:"script",value:function script(t){return new rt(t)}},{key:"setProperty",value:function setProperty(t){return new at(t)}},{key:"signData",value:function signData(t){return new nt(t)}},{key:"signature",value:function signature(t){return new it(t)}},{key:"signing",value:function signing(t){return new ot(t)}},{key:"solid",value:function solid(t){return new st(t)}},{key:"speak",value:function speak(t){return new lt(t)}},{key:"stipple",value:function stipple(t){return new ct(t)}},{key:"subform",value:function subform(t){return new ut(t)}},{key:"subformSet",value:function subformSet(t){return new ft(t)}},{key:"subjectDN",value:function subjectDN(t){return new ht(t)}},{key:"subjectDNs",value:function subjectDNs(t){return new dt(t)}},{key:"submit",value:function submit(t){return new mt(t)}},{key:"template",value:function template(t){return new gt(t)}},{key:"text",value:function text(t){return new yt(t)}},{key:"textEdit",value:function textEdit(t){return new vt(t)}},{key:"time",value:function time(t){return new bt(t)}},{key:"timeStamp",value:function timeStamp(t){return new St(t)}},{key:"toolTip",value:function toolTip(t){return new kt(t)}},{key:"traversal",value:function traversal(t){return new Ct(t)}},{key:"traverse",value:function traverse(t){return new wt(t)}},{key:"ui",value:function ui(t){return new _t(t)}},{key:"validate",value:function validate(t){return new At(t)}},{key:"value",value:function value(t){return new Ot(t)}},{key:"variables",value:function variables(t){return new xt(t)}}]);return TemplateNamespace}();r.TemplateNamespace=Pt},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.layoutClass=function layoutClass(t){switch(t.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}};r.measureToString=measureToString;r.toStyle=function toStyle(t){for(var r=Object.create(null),o=arguments.length,h=new Array(o>1?o-1:0),d=1;d<o;d++)h[d-1]=arguments[d];for(var m=0,g=h;m<g.length;m++){var y=g[m],v=t[y];if(null!==v)if(v instanceof l.XFAObject){var S=v[l.$toStyle]();S?Object.assign(r,S):(0,c.warn)("(DEBUG) - XFA - style for ".concat(y," not implemented yet"))}else u.hasOwnProperty(y)&&u[y](t,r)}return r};var l=o(170),c=o(4);function measureToString(t){return"string"==typeof t?"0px":Number.isInteger(t)?"".concat(t,"px"):"".concat(t.toFixed(2),"px")}var u={anchorType:function anchorType(t,r){"transform"in r||(r.transform="");switch(t.anchorType){case"bottomCenter":r.transform+="translate(-50%, -100%)";break;case"bottomLeft":r.transform+="translate(0,-100%)";break;case"bottomRight":r.transform+="translate(-100%,-100%)";break;case"middleCenter":r.transform+="translate(-50%,-50%)";break;case"middleLeft":r.transform+="translate(0,-50%)";break;case"middleRight":r.transform+="translate(-100%,-50%)";break;case"topCenter":r.transform+="translate(-50%,0)";break;case"topRight":r.transform+="translate(-100%,0)"}},dimensions:function dimensions(t,r){if(t.w)r.width=measureToString(t.w);else{r.width="auto";t.maxW>0&&(r.maxWidth=measureToString(t.maxW));r.minWidth=measureToString(t.minW)}if(t.h)r.height=measureToString(t.h);else{r.height="auto";t.maxH>0&&(r.maxHeight=measureToString(t.maxH));r.minHeight=measureToString(t.minH)}},position:function position(t,r){var o=t[l.$getParent]();if(!o||!o.layout||"position"===o.layout){r.position="absolute";r.left=measureToString(t.x);r.top=measureToString(t.y)}},rotate:function rotate(t,r){if(t.rotate){"transform"in r||(r.transform="");r.transform+="rotate(-".concat(t.rotate,"deg)");r.transformOrigin="top left"}},presence:function presence(t,r){switch(t.presence){case"invisible":r.visibility="hidden";break;case"hidden":case"inactive":r.display="none"}}}},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.createDataNode=function createDataNode(t,r,o){var u=parseExpression(o);if(!u)return null;if(u.some((function(t){return t.operator===m})))return null;var h=S.get(u[0].name),d=0;if(h){t=h(t,r);d=1}else t=r||t;for(var g=u.length;d<g;d++){var y=u[d],v=y.cacheName,C=y.index;if(!isFinite(C)){u[d].index=0;return createNodes(t,u.slice(d))}var w=k.get(t);if(!w){(0,c.warn)("XFA - createDataNode must be called after searchNode.");return null}var _=w.get(v);if(0===_.length)return createNodes(t,u.slice(d));if(!(C<_.length)){u[d].index=_.length-C;return createNodes(t,u.slice(d))}var O=_[C];if(!(O instanceof l.XFAObject)){(0,c.warn)("XFA - Cannot create a node.");return null}t=O}return null};r.searchNode=function searchNode(t,r,o){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],h=parseExpression(o,c);if(!h)return null;var y,v=S.get(h[0].name),C=0;if(v){y=!0;t=[v(t,r)];C=1}else{y=null===r;t=[r||t]}for(var w=function _loop(o){var c,v=h[C],S=v.name,w=v.cacheName,_=v.operator,O=v.index,x=[],T=_createForOfIteratorHelper(t);try{for(T.s();!(c=T.n()).done;){var R=c.value;if(R instanceof l.XFAObject){var E=void 0,D=void 0;if(u){if(!(D=k.get(R))){D=new Map;k.set(R,D)}E=D.get(w)}if(!E){switch(_){case d:E=R[l.$getChildrenByName](S,!1);break;case m:E=R[l.$getChildrenByName](S,!0);break;case g:E=(E=R[l.$getChildrenByClass](S))instanceof l.XFAObjectArray?E.children:[E]}u&&D.set(w,E)}E.length>0&&x.push(E)}}}catch(t){T.e(t)}finally{T.f()}if(0===x.length&&!y&&0===C){var j=r[l.$getParent]();if(!(r=j))return{v:null};C=-1;t=[r];return"continue"}t=isFinite(O)?x.filter((function(t){return O<t.length})).map((function(t){return t[O]})):x.reduce((function(t,r){return t.concat(r)}),[])},_=h.length;C<_;C++){var O=w(_);if("continue"!==O&&"object"===_typeof(O))return O.v}if(0===t.length)return null;return t};var l=o(170),c=o(4);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _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 _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}var u=/^[^.[]+/,h=/^[^\]]+/,d=0,m=1,g=2,y=3,v=4,S=new Map([["$data",function(t,r){return t.datasets.data}],["$template",function(t,r){return t.template}],["$connectionSet",function(t,r){return t.connectionSet}],["$form",function(t,r){return t.form}],["$layout",function(t,r){return t.layout}],["$host",function(t,r){return t.host}],["$dataWindow",function(t,r){return t.dataWindow}],["$event",function(t,r){return t.event}],["!",function(t,r){return t.datasets}],["$xfa",function(t,r){return t}],["xfa",function(t,r){return t}],["$",function(t,r){return r}]]),k=new WeakMap;function parseExpression(t,r){var o=t.match(u);if(!o)return null;for(var l,S=_slicedToArray(o,1)[0],k=[{name:S,cacheName:"."+S,index:0,js:null,formCalc:null,operator:d}],C=S.length;C<t.length;){var w=C;if("["!==t.charAt(C++)){var _=void 0;switch(t.charAt(C)){case".":if(!r)return null;C++;_=m;break;case"#":C++;_=g;break;case"[":_=y;break;case"(":_=v;break;default:_=d}if(!(o=t.slice(C).match(u)))break;C+=(S=_slicedToArray(o,1)[0]).length;k.push({name:S,cacheName:t.slice(w,C),operator:_,index:0,js:null,formCalc:null})}else{if(!(o=t.slice(C).match(h))){(0,c.warn)("XFA - Invalid index in SOM expression");return null}k[k.length-1].index="*"===(l=(l=o[0]).trim())?1/0:parseInt(l,10)||0;C+=o[0].length+1}}return k}function createNodes(t,r){var o,c=null,u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){for(var h=o.value,d=h.name,m=h.index,g=0;g<=m;g++){c=new l.XmlObject(t[l.$namespaceId],d);t[l.$appendChild](c)}t=c}}catch(t){u.e(t)}finally{u.f()}return c}},(t,r,o)=>{"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.XFAParser=void 0;var l=o(170),c=o(146),u=o(178),h=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 d=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)}(XFAParser,t);var r=_createSuper(XFAParser);function XFAParser(){var t;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,XFAParser);(t=r.call(this))._builder=new u.Builder;t._stack=[];t._ids=new Map;t._current=t._builder.buildRoot(t._ids);t._errorCode=c.XMLParserErrorCode.NoError;t._whiteRegex=/^\s+$/;return t}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(XFAParser,[{key:"parse",value:function parse(t){this.parseXml(t);if(this._errorCode===c.XMLParserErrorCode.NoError){this._current[l.$finalize]();return this._current.element}}},{key:"onText",value:function onText(t){this._whiteRegex.test(t)||this._current[l.$onText](t.trim())}},{key:"onCdata",value:function onCdata(t){this._current[l.$onText](t)}},{key:"_mkAttributes",value:function _mkAttributes(t,r){var o,c=null,u=null,d=Object.create({}),m=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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(m.s();!(o=m.n()).done;){var g=o.value,y=g.name,v=g.value;if("xmlns"===y)c?(0,h.warn)("XFA - multiple namespace definition in <".concat(r,">")):c=v;else if(y.startsWith("xmlns:")){var S=y.substring("xmlns:".length);u||(u=[]);u.push({prefix:S,value:v})}else{var k=y.indexOf(":");if(-1===k)d[y]=v;else{var C=d[l.$nsAttributes];C||(C=d[l.$nsAttributes]=Object.create(null));var w=[y.slice(0,k),y.slice(k+1)],_=w[0],O=w[1],x=C[_];x||(x=C[_]=Object.create(null));x[O]=v}}}}catch(t){m.e(t)}finally{m.f()}return[c,u,d]}},{key:"_getNameAndPrefix",value:function _getNameAndPrefix(t){var r=t.indexOf(":");return-1===r?[t,null]:[t.substring(r+1),t.substring(0,r)]}},{key:"onBeginElement",value:function onBeginElement(t,r,o){var c=_slicedToArray(this._mkAttributes(r,t),3),u=c[0],h=c[1],d=c[2],m=_slicedToArray(this._getNameAndPrefix(t),2),g=m[0],y=m[1],v=this._builder.build({nsPrefix:y,name:g,attributes:d,namespace:u,prefixes:h});if(o){v[l.$finalize]();this._current[l.$onChild](v)&&v[l.$setId](this._ids);v[l.$clean](this._builder)}else{this._stack.push(this._current);this._current=v}}},{key:"onEndElement",value:function onEndElement(t){var r=this._current;r[l.$finalize]();this._current=this._stack.pop();this._current[l.$onChild](r)&&r[l.$setId](this._ids);r[l.$clean](this._builder)}},{key:"onError",value:function onError(t){this._errorCode=t}}]);return XFAParser}(c.XMLParserBase);r.XFAParser=d},(t,r,o)=>{"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.Builder=void 0;var l=o(172),c=o(170),u=o(179),h=o(174),d=o(188),m=o(4);function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||_unsupportedIterableToArray(t,r)||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 _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))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,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}function _get(t,r,o){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,r,o){var l=function _superPropBase(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=_getPrototypeOf(t)););return t}(t,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(o):c.value}})(t,r,o||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)}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 g=Symbol(),y=function(t){_inherits(Root,t);var r=_createSuper(Root);function Root(t){var o;_classCallCheck(this,Root);(o=r.call(this,-1,"root",Object.create(null))).element=null;o[g]=t;return o}_createClass(Root,[{key:c.$onChild,value:function value(t){this.element=t;return!0}},{key:c.$finalize,value:function value(){_get(_getPrototypeOf(Root.prototype),c.$finalize,this).call(this);this.element.template instanceof h.Template&&this.element.template[c.$resolvePrototypes](this[g])}}]);return Root}(c.XFAObject),v=function(t){_inherits(Empty,t);var r=_createSuper(Empty);function Empty(){_classCallCheck(this,Empty);return r.call(this,-1,"",Object.create(null))}_createClass(Empty,[{key:c.$onChild,value:function value(t){return!1}}]);return Empty}(c.XFAObject),S=function(){function Builder(){_classCallCheck(this,Builder);this._namespaceStack=[];this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max.apply(Math,_toConsumableArray(Object.values(l.NamespaceIds).map((function(t){return t.id}))));this._currentNamespace=new d.UnknownNamespace(++this._nextNsId)}_createClass(Builder,[{key:"buildRoot",value:function buildRoot(t){return new y(t)}},{key:"build",value:function build(t){var r=t.nsPrefix,o=t.name,h=t.attributes,d=t.namespace,m=t.prefixes,g=null!==d;if(g){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(d)}m&&this._addNamespacePrefix(m);if(h.hasOwnProperty(c.$nsAttributes)){for(var y=u.NamespaceSetUp.datasets,S=h[c.$nsAttributes],k=null,C=0,w=Object.entries(S);C<w.length;C++){var _=_slicedToArray(w[C],2),O=_[0],x=_[1];if(this._getNamespaceToUse(O)===y){k={xfa:x};break}}k?h[c.$nsAttributes]=k:delete h[c.$nsAttributes]}var T=this._getNamespaceToUse(r),R=T&&T[l.$buildXFAObject](o,h)||new v;(g||m)&&(R[c.$cleanup]={hasNamespace:g,prefixes:m});return R}},{key:"_searchNamespace",value:function _searchNamespace(t){var r=this._namespaces.get(t);if(r)return r;for(var o=0,c=Object.entries(l.NamespaceIds);o<c.length;o++){var h=_slicedToArray(c[o],2),m=h[0];if((0,h[1].check)(t)){if(r=u.NamespaceSetUp[m]){this._namespaces.set(t,r);return r}break}}r=new d.UnknownNamespace(++this._nextNsId);this._namespaces.set(t,r);return r}},{key:"_addNamespacePrefix",value:function _addNamespacePrefix(t){var r,o=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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(o.s();!(r=o.n()).done;){var l=r.value,c=l.prefix,u=l.value,h=this._searchNamespace(u),d=this._namespacePrefixes.get(c);if(!d){d=[];this._namespacePrefixes.set(c,d)}d.push(h)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_getNamespaceToUse",value:function _getNamespaceToUse(t){if(!t)return this._currentNamespace;var r=this._namespacePrefixes.get(t);if(r&&r.length>0)return r[r.length-1];(0,m.warn)("Unknown namespace prefix: ".concat(t,"."));return null}},{key:"clean",value:function clean(t){var r=this,o=t.hasNamespace,l=t.prefixes;o&&(this._currentNamespace=this._namespaceStack.pop());l&&l.forEach((function(t){var o=t.prefix;r._namespacePrefixes.get(o).pop()}))}}]);return Builder}();r.Builder=S},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NamespaceSetUp=void 0;var l=o(180),c=o(181),u=o(182),h=o(183),d=o(184),m=o(185),g=o(174),y=o(186),v=o(187),S={config:l.ConfigNamespace,connection:c.ConnectionSetNamespace,datasets:u.DatasetsNamespace,localeSet:h.LocaleSetNamespace,signature:d.SignatureNamespace,stylesheet:m.StylesheetNamespace,template:g.TemplateNamespace,xdp:y.XdpNamespace,xhtml:v.XhtmlNamespace};r.NamespaceSetUp=S},(t,r,o)=>{"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.ConfigNamespace=void 0;var l=o(172),c=o(170),u=o(171),h=o(4);function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var l=0,c=function F(){};return{s:c,n:function n(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}},e:function e(t){throw t},f:c}}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=t[Symbol.iterator]()},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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 d=l.NamespaceIds.config.id,m=function(t){_inherits(Acrobat,t);var r=_createSuper(Acrobat);function Acrobat(t){var o;_classCallCheck(this,Acrobat);(o=r.call(this,d,"acrobat",!0)).acrobat7=null;o.autoSave=null;o.common=null;o.validate=null;o.validateApprovalSignatures=null;o.submitUrl=new c.XFAObjectArray;return o}return Acrobat}(c.XFAObject),g=function(t){_inherits(Acrobat7,t);var r=_createSuper(Acrobat7);function Acrobat7(t){var o;_classCallCheck(this,Acrobat7);(o=r.call(this,d,"acrobat7",!0)).dynamicRender=null;return o}return Acrobat7}(c.XFAObject),y=function(t){_inherits(ADBE_JSConsole,t);var r=_createSuper(ADBE_JSConsole);function ADBE_JSConsole(t){_classCallCheck(this,ADBE_JSConsole);return r.call(this,d,"ADBE_JSConsole",["delegate","Enable","Disable"])}return ADBE_JSConsole}(c.OptionObject),v=function(t){_inherits(ADBE_JSDebugger,t);var r=_createSuper(ADBE_JSDebugger);function ADBE_JSDebugger(t){_classCallCheck(this,ADBE_JSDebugger);return r.call(this,d,"ADBE_JSDebugger",["delegate","Enable","Disable"])}return ADBE_JSDebugger}(c.OptionObject),S=function(t){_inherits(AddSilentPrint,t);var r=_createSuper(AddSilentPrint);function AddSilentPrint(t){_classCallCheck(this,AddSilentPrint);return r.call(this,d,"addSilentPrint")}return AddSilentPrint}(c.Option01),k=function(t){_inherits(AddViewerPreferences,t);var r=_createSuper(AddViewerPreferences);function AddViewerPreferences(t){_classCallCheck(this,AddViewerPreferences);return r.call(this,d,"addViewerPreferences")}return AddViewerPreferences}(c.Option01),C=function(t){_inherits(AdjustData,t);var r=_createSuper(AdjustData);function AdjustData(t){_classCallCheck(this,AdjustData);return r.call(this,d,"adjustData")}return AdjustData}(c.Option10),w=function(t){_inherits(AdobeExtensionLevel,t);var r=_createSuper(AdobeExtensionLevel);function AdobeExtensionLevel(t){_classCallCheck(this,AdobeExtensionLevel);return r.call(this,d,"adobeExtensionLevel",0,(function(t){return t>=1&&t<=8}))}return AdobeExtensionLevel}(c.IntegerObject),_=function(t){_inherits(Agent,t);var r=_createSuper(Agent);function Agent(t){var o;_classCallCheck(this,Agent);(o=r.call(this,d,"agent",!0)).name=t.name?t.name.trim():"";o.common=new c.XFAObjectArray;return o}return Agent}(c.XFAObject),O=function(t){_inherits(AlwaysEmbed,t);var r=_createSuper(AlwaysEmbed);function AlwaysEmbed(t){_classCallCheck(this,AlwaysEmbed);return r.call(this,d,"alwaysEmbed")}return AlwaysEmbed}(c.ContentObject),x=function(t){_inherits(Amd,t);var r=_createSuper(Amd);function Amd(t){_classCallCheck(this,Amd);return r.call(this,d,"amd")}return Amd}(c.StringObject),T=function(t){_inherits(Area,t);var r=_createSuper(Area);function Area(t){var o;_classCallCheck(this,Area);(o=r.call(this,d,"area")).level=(0,u.getInteger)({data:t.level,defaultValue:0,validator:function validator(t){return t>=1&&t<=3}});o.name=(0,u.getStringOption)(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"]);return o}return Area}(c.XFAObject),R=function(t){_inherits(Attributes,t);var r=_createSuper(Attributes);function Attributes(t){_classCallCheck(this,Attributes);return r.call(this,d,"attributes",["preserve","delegate","ignore"])}return Attributes}(c.OptionObject),E=function(t){_inherits(AutoSave,t);var r=_createSuper(AutoSave);function AutoSave(t){_classCallCheck(this,AutoSave);return r.call(this,d,"autoSave",["disabled","enabled"])}return AutoSave}(c.OptionObject),D=function(t){_inherits(Base,t);var r=_createSuper(Base);function Base(t){_classCallCheck(this,Base);return r.call(this,d,"base")}return Base}(c.StringObject),j=function(t){_inherits(BatchOutput,t);var r=_createSuper(BatchOutput);function BatchOutput(t){var o;_classCallCheck(this,BatchOutput);(o=r.call(this,d,"batchOutput")).format=(0,u.getStringOption)(t.format,["none","concat","zip","zipCompress"]);return o}return BatchOutput}(c.XFAObject),M=function(t){_inherits(BehaviorOverride,t);var r=_createSuper(BehaviorOverride);function BehaviorOverride(t){_classCallCheck(this,BehaviorOverride);return r.call(this,d,"behaviorOverride")}_createClass(BehaviorOverride,[{key:c.$finalize,value:function value(){this[c.$content]=new Map(this[c.$content].trim().split(/\s+/).filter((function(t){return!!t&&t.include(":")})).map((function(t){return t.split(":",2)})))}}]);return BehaviorOverride}(c.ContentObject),N=function(t){_inherits(Cache,t);var r=_createSuper(Cache);function Cache(t){var o;_classCallCheck(this,Cache);(o=r.call(this,d,"cache",!0)).templateCache=null;return o}return Cache}(c.XFAObject),L=function(t){_inherits(Change,t);var r=_createSuper(Change);function Change(t){_classCallCheck(this,Change);return r.call(this,d,"change")}return Change}(c.Option01),U=function(t){_inherits(Common,t);var r=_createSuper(Common);function Common(t){var o;_classCallCheck(this,Common);(o=r.call(this,d,"common",!0)).data=null;o.locale=null;o.localeSet=null;o.messaging=null;o.suppressBanner=null;o.template=null;o.validationMessaging=null;o.versionControl=null;o.log=new c.XFAObjectArray;return o}return Common}(c.XFAObject),q=function(t){_inherits(Compress,t);var r=_createSuper(Compress);function Compress(t){var o;_classCallCheck(this,Compress);(o=r.call(this,d,"compress")).scope=(0,u.getStringOption)(t.scope,["imageOnly","document"]);return o}return Compress}(c.XFAObject),X=function(t){_inherits(CompressLogicalStructure,t);var r=_createSuper(CompressLogicalStructure);function CompressLogicalStructure(t){_classCallCheck(this,CompressLogicalStructure);return r.call(this,d,"compressLogicalStructure")}return CompressLogicalStructure}(c.Option01),W=function(t){_inherits(CompressObjectStream,t);var r=_createSuper(CompressObjectStream);function CompressObjectStream(t){_classCallCheck(this,CompressObjectStream);return r.call(this,d,"compressObjectStream")}return CompressObjectStream}(c.Option10),H=function(t){_inherits(Compression,t);var r=_createSuper(Compression);function Compression(t){var o;_classCallCheck(this,Compression);(o=r.call(this,d,"compression",!0)).compressLogicalStructure=null;o.compressObjectStream=null;o.level=null;o.type=null;return o}return Compression}(c.XFAObject),z=function(t){_inherits(Config,t);var r=_createSuper(Config);function Config(t){var o;_classCallCheck(this,Config);(o=r.call(this,d,"config",!0)).acrobat=null;o.present=null;o.trace=null;o.agent=new c.XFAObjectArray;return o}return Config}(c.XFAObject),G=function(t){_inherits(Conformance,t);var r=_createSuper(Conformance);function Conformance(t){_classCallCheck(this,Conformance);return r.call(this,d,"conformance",["A","B"])}return Conformance}(c.OptionObject),V=function(t){_inherits(ContentCopy,t);var r=_createSuper(ContentCopy);function ContentCopy(t){_classCallCheck(this,ContentCopy);return r.call(this,d,"contentCopy")}return ContentCopy}(c.Option01),$=function(t){_inherits(Copies,t);var r=_createSuper(Copies);function Copies(t){_classCallCheck(this,Copies);return r.call(this,d,"copies",1,(function(t){return t>=1}))}return Copies}(c.IntegerObject),K=function(t){_inherits(Creator,t);var r=_createSuper(Creator);function Creator(t){_classCallCheck(this,Creator);return r.call(this,d,"creator")}return Creator}(c.StringObject),Y=function(t){_inherits(CurrentPage,t);var r=_createSuper(CurrentPage);function CurrentPage(t){_classCallCheck(this,CurrentPage);return r.call(this,d,"currentPage",0,(function(t){return t>=0}))}return CurrentPage}(c.IntegerObject),J=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){var o;_classCallCheck(this,Data);(o=r.call(this,d,"data",!0)).adjustData=null;o.attributes=null;o.incrementalLoad=null;o.outputXSL=null;o.range=null;o.record=null;o.startNode=null;o.uri=null;o.window=null;o.xsl=null;o.excludeNS=new c.XFAObjectArray;o.transform=new c.XFAObjectArray;return o}return Data}(c.XFAObject),Q=function(t){_inherits(Debug,t);var r=_createSuper(Debug);function Debug(t){var o;_classCallCheck(this,Debug);(o=r.call(this,d,"debug",!0)).uri=null;return o}return Debug}(c.XFAObject),Z=function(t){_inherits(DefaultTypeface,t);var r=_createSuper(DefaultTypeface);function DefaultTypeface(t){var o;_classCallCheck(this,DefaultTypeface);(o=r.call(this,d,"defaultTypeface")).writingScript=(0,u.getStringOption)(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"]);return o}return DefaultTypeface}(c.ContentObject),ee=function(t){_inherits(Destination,t);var r=_createSuper(Destination);function Destination(t){_classCallCheck(this,Destination);return r.call(this,d,"destination",["pdf","pcl","ps","webClient","zpl"])}return Destination}(c.OptionObject),te=function(t){_inherits(DocumentAssembly,t);var r=_createSuper(DocumentAssembly);function DocumentAssembly(t){_classCallCheck(this,DocumentAssembly);return r.call(this,d,"documentAssembly")}return DocumentAssembly}(c.Option01),re=function(t){_inherits(Driver,t);var r=_createSuper(Driver);function Driver(t){var o;_classCallCheck(this,Driver);(o=r.call(this,d,"driver",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return Driver}(c.XFAObject),ae=function(t){_inherits(DuplexOption,t);var r=_createSuper(DuplexOption);function DuplexOption(t){_classCallCheck(this,DuplexOption);return r.call(this,d,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}return DuplexOption}(c.OptionObject),ne=function(t){_inherits(DynamicRender,t);var r=_createSuper(DynamicRender);function DynamicRender(t){_classCallCheck(this,DynamicRender);return r.call(this,d,"dynamicRender",["forbidden","required"])}return DynamicRender}(c.OptionObject),ie=function(t){_inherits(Embed,t);var r=_createSuper(Embed);function Embed(t){_classCallCheck(this,Embed);return r.call(this,d,"embed")}return Embed}(c.Option01),oe=function(t){_inherits(Encrypt,t);var r=_createSuper(Encrypt);function Encrypt(t){_classCallCheck(this,Encrypt);return r.call(this,d,"encrypt")}return Encrypt}(c.Option01),se=function(t){_inherits(Encryption,t);var r=_createSuper(Encryption);function Encryption(t){var o;_classCallCheck(this,Encryption);(o=r.call(this,d,"encryption",!0)).encrypt=null;o.encryptionLevel=null;o.permissions=null;return o}return Encryption}(c.XFAObject),le=function(t){_inherits(EncryptionLevel,t);var r=_createSuper(EncryptionLevel);function EncryptionLevel(t){_classCallCheck(this,EncryptionLevel);return r.call(this,d,"encryptionLevel",["40bit","128bit"])}return EncryptionLevel}(c.OptionObject),ce=function(t){_inherits(Enforce,t);var r=_createSuper(Enforce);function Enforce(t){_classCallCheck(this,Enforce);return r.call(this,d,"enforce")}return Enforce}(c.StringObject),ue=function(t){_inherits(Equate,t);var r=_createSuper(Equate);function Equate(t){var o;_classCallCheck(this,Equate);(o=r.call(this,d,"equate")).force=(0,u.getInteger)({data:t.force,defaultValue:1,validator:function validator(t){return 0===t}});o.from=t.from||"";o.to=t.to||"";return o}return Equate}(c.XFAObject),fe=function(t){_inherits(EquateRange,t);var r=_createSuper(EquateRange);function EquateRange(t){var o;_classCallCheck(this,EquateRange);(o=r.call(this,d,"equateRange")).from=t.from||"";o.to=t.to||"";o._unicodeRange=t.unicodeRange||"";return o}_createClass(EquateRange,[{key:"unicodeRange",get:function get(){var t,r=[],o=/U\+([0-9a-fA-F]+)/,l=_createForOfIteratorHelper(this._unicodeRange.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t})));try{for(l.s();!(t=l.n()).done;){var c=t.value;1===(c=c.split("-",2).map((function(t){var r=t.match(o);return r?parseInt(r[1],16):0}))).length&&c.push(c[0]);r.push(c)}}catch(t){l.e(t)}finally{l.f()}return(0,h.shadow)(this,"unicodeRange",r)}}]);return EquateRange}(c.XFAObject),he=function(t){_inherits(Exclude,t);var r=_createSuper(Exclude);function Exclude(t){_classCallCheck(this,Exclude);return r.call(this,d,"exclude")}_createClass(Exclude,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)}))}}]);return Exclude}(c.ContentObject),de=function(t){_inherits(ExcludeNS,t);var r=_createSuper(ExcludeNS);function ExcludeNS(t){_classCallCheck(this,ExcludeNS);return r.call(this,d,"excludeNS")}return ExcludeNS}(c.StringObject),pe=function(t){_inherits(FlipLabel,t);var r=_createSuper(FlipLabel);function FlipLabel(t){_classCallCheck(this,FlipLabel);return r.call(this,d,"flipLabel",["usePrinterSetting","on","off"])}return FlipLabel}(c.OptionObject),me=function(t){_inherits(FontInfo,t);var r=_createSuper(FontInfo);function FontInfo(t){var o;_classCallCheck(this,FontInfo);(o=r.call(this,d,"fontInfo",!0)).embed=null;o.map=null;o.subsetBelow=null;o.alwaysEmbed=new c.XFAObjectArray;o.defaultTypeface=new c.XFAObjectArray;o.neverEmbed=new c.XFAObjectArray;return o}return FontInfo}(c.XFAObject),ge=function(t){_inherits(FormFieldFilling,t);var r=_createSuper(FormFieldFilling);function FormFieldFilling(t){_classCallCheck(this,FormFieldFilling);return r.call(this,d,"formFieldFilling")}return FormFieldFilling}(c.Option01),ye=function(t){_inherits(GroupParent,t);var r=_createSuper(GroupParent);function GroupParent(t){_classCallCheck(this,GroupParent);return r.call(this,d,"groupParent")}return GroupParent}(c.StringObject),ve=function(t){_inherits(IfEmpty,t);var r=_createSuper(IfEmpty);function IfEmpty(t){_classCallCheck(this,IfEmpty);return r.call(this,d,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}return IfEmpty}(c.OptionObject),be=function(t){_inherits(IncludeXDPContent,t);var r=_createSuper(IncludeXDPContent);function IncludeXDPContent(t){_classCallCheck(this,IncludeXDPContent);return r.call(this,d,"includeXDPContent")}return IncludeXDPContent}(c.StringObject),Se=function(t){_inherits(IncrementalLoad,t);var r=_createSuper(IncrementalLoad);function IncrementalLoad(t){_classCallCheck(this,IncrementalLoad);return r.call(this,d,"incrementalLoad",["none","forwardOnly"])}return IncrementalLoad}(c.OptionObject),ke=function(t){_inherits(IncrementalMerge,t);var r=_createSuper(IncrementalMerge);function IncrementalMerge(t){_classCallCheck(this,IncrementalMerge);return r.call(this,d,"incrementalMerge")}return IncrementalMerge}(c.Option01),Ce=function(t){_inherits(Interactive,t);var r=_createSuper(Interactive);function Interactive(t){_classCallCheck(this,Interactive);return r.call(this,d,"interactive")}return Interactive}(c.Option01),we=function(t){_inherits(Jog,t);var r=_createSuper(Jog);function Jog(t){_classCallCheck(this,Jog);return r.call(this,d,"jog",["usePrinterSetting","none","pageSet"])}return Jog}(c.OptionObject),_e=function(t){_inherits(LabelPrinter,t);var r=_createSuper(LabelPrinter);function LabelPrinter(t){var o;_classCallCheck(this,LabelPrinter);(o=r.call(this,d,"labelPrinter",!0)).name=(0,u.getStringOption)(t.name,["zpl","dpl","ipl","tcpl"]);o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return LabelPrinter}(c.XFAObject),Ae=function(t){_inherits(Layout,t);var r=_createSuper(Layout);function Layout(t){_classCallCheck(this,Layout);return r.call(this,d,"layout",["paginate","panel"])}return Layout}(c.OptionObject),Oe=function(t){_inherits(Level,t);var r=_createSuper(Level);function Level(t){_classCallCheck(this,Level);return r.call(this,d,"level",0,(function(t){return t>0}))}return Level}(c.IntegerObject),xe=function(t){_inherits(Linearized,t);var r=_createSuper(Linearized);function Linearized(t){_classCallCheck(this,Linearized);return r.call(this,d,"linearized")}return Linearized}(c.Option01),Pe=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){_classCallCheck(this,Locale);return r.call(this,d,"locale")}return Locale}(c.StringObject),Te=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){_classCallCheck(this,LocaleSet);return r.call(this,d,"localeSet")}return LocaleSet}(c.StringObject),Ie=function(t){_inherits(Log,t);var r=_createSuper(Log);function Log(t){var o;_classCallCheck(this,Log);(o=r.call(this,d,"log",!0)).mode=null;o.threshold=null;o.to=null;o.uri=null;return o}return Log}(c.XFAObject),Fe=function(t){_inherits(MapElement,t);var r=_createSuper(MapElement);function MapElement(t){var o;_classCallCheck(this,MapElement);(o=r.call(this,d,"map",!0)).equate=new c.XFAObjectArray;o.equateRange=new c.XFAObjectArray;return o}return MapElement}(c.XFAObject),Re=function(t){_inherits(MediumInfo,t);var r=_createSuper(MediumInfo);function MediumInfo(t){var o;_classCallCheck(this,MediumInfo);(o=r.call(this,d,"mediumInfo",!0)).map=null;return o}return MediumInfo}(c.XFAObject),Ee=function(t){_inherits(Message,t);var r=_createSuper(Message);function Message(t){var o;_classCallCheck(this,Message);(o=r.call(this,d,"message",!0)).msgId=null;o.severity=null;return o}return Message}(c.XFAObject),De=function(t){_inherits(Messaging,t);var r=_createSuper(Messaging);function Messaging(t){var o;_classCallCheck(this,Messaging);(o=r.call(this,d,"messaging",!0)).message=new c.XFAObjectArray;return o}return Messaging}(c.XFAObject),Be=function(t){_inherits(Mode,t);var r=_createSuper(Mode);function Mode(t){_classCallCheck(this,Mode);return r.call(this,d,"mode",["append","overwrite"])}return Mode}(c.OptionObject),je=function(t){_inherits(ModifyAnnots,t);var r=_createSuper(ModifyAnnots);function ModifyAnnots(t){_classCallCheck(this,ModifyAnnots);return r.call(this,d,"modifyAnnots")}return ModifyAnnots}(c.Option01),Me=function(t){_inherits(MsgId,t);var r=_createSuper(MsgId);function MsgId(t){_classCallCheck(this,MsgId);return r.call(this,d,"msgId",1,(function(t){return t>=1}))}return MsgId}(c.IntegerObject),Ne=function(t){_inherits(NameAttr,t);var r=_createSuper(NameAttr);function NameAttr(t){_classCallCheck(this,NameAttr);return r.call(this,d,"nameAttr")}return NameAttr}(c.StringObject),Le=function(t){_inherits(NeverEmbed,t);var r=_createSuper(NeverEmbed);function NeverEmbed(t){_classCallCheck(this,NeverEmbed);return r.call(this,d,"neverEmbed")}return NeverEmbed}(c.ContentObject),Ue=function(t){_inherits(NumberOfCopies,t);var r=_createSuper(NumberOfCopies);function NumberOfCopies(t){_classCallCheck(this,NumberOfCopies);return r.call(this,d,"numberOfCopies",null,(function(t){return t>=2&&t<=5}))}return NumberOfCopies}(c.IntegerObject),qe=function(t){_inherits(OpenAction,t);var r=_createSuper(OpenAction);function OpenAction(t){var o;_classCallCheck(this,OpenAction);(o=r.call(this,d,"openAction",!0)).destination=null;return o}return OpenAction}(c.XFAObject),Xe=function(t){_inherits(Output,t);var r=_createSuper(Output);function Output(t){var o;_classCallCheck(this,Output);(o=r.call(this,d,"output",!0)).to=null;o.type=null;o.uri=null;return o}return Output}(c.XFAObject),We=function(t){_inherits(OutputBin,t);var r=_createSuper(OutputBin);function OutputBin(t){_classCallCheck(this,OutputBin);return r.call(this,d,"outputBin")}return OutputBin}(c.StringObject),He=function(t){_inherits(OutputXSL,t);var r=_createSuper(OutputXSL);function OutputXSL(t){var o;_classCallCheck(this,OutputXSL);(o=r.call(this,d,"outputXSL",!0)).uri=null;return o}return OutputXSL}(c.XFAObject),ze=function(t){_inherits(Overprint,t);var r=_createSuper(Overprint);function Overprint(t){_classCallCheck(this,Overprint);return r.call(this,d,"overprint",["none","both","draw","field"])}return Overprint}(c.OptionObject),Ge=function(t){_inherits(Packets,t);var r=_createSuper(Packets);function Packets(t){_classCallCheck(this,Packets);return r.call(this,d,"packets")}_createClass(Packets,[{key:c.$finalize,value:function value(){"*"!==this[c.$content]&&(this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return["config","datasets","template","xfdf","xslt"].includes(t)})))}}]);return Packets}(c.StringObject),Ve=function(t){_inherits(PageOffset,t);var r=_createSuper(PageOffset);function PageOffset(t){var o;_classCallCheck(this,PageOffset);(o=r.call(this,d,"pageOffset")).x=(0,u.getInteger)({data:t.x,defaultValue:"useXDCSetting",validator:function validator(t){return!0}});o.y=(0,u.getInteger)({data:t.y,defaultValue:"useXDCSetting",validator:function validator(t){return!0}});return o}return PageOffset}(c.XFAObject),$e=function(t){_inherits(PageRange,t);var r=_createSuper(PageRange);function PageRange(t){_classCallCheck(this,PageRange);return r.call(this,d,"pageRange")}_createClass(PageRange,[{key:c.$finalize,value:function value(){for(var t=this[c.$content].trim().split(/\s+/).map((function(t){return parseInt(t,10)})),r=[],o=0,l=t.length;o<l;o+=2)r.push(t.slice(o,o+2));this[c.$content]=r}}]);return PageRange}(c.StringObject),Ke=function(t){_inherits(Pagination,t);var r=_createSuper(Pagination);function Pagination(t){_classCallCheck(this,Pagination);return r.call(this,d,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}return Pagination}(c.OptionObject),Ye=function(t){_inherits(PaginationOverride,t);var r=_createSuper(PaginationOverride);function PaginationOverride(t){_classCallCheck(this,PaginationOverride);return r.call(this,d,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}return PaginationOverride}(c.OptionObject),Je=function(t){_inherits(Part,t);var r=_createSuper(Part);function Part(t){_classCallCheck(this,Part);return r.call(this,d,"part",1,(function(t){return!1}))}return Part}(c.IntegerObject),Qe=function(t){_inherits(Pcl,t);var r=_createSuper(Pcl);function Pcl(t){var o;_classCallCheck(this,Pcl);(o=r.call(this,d,"pcl",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.pageOffset=null;o.staple=null;o.xdc=null;return o}return Pcl}(c.XFAObject),Ze=function(t){_inherits(Pdf,t);var r=_createSuper(Pdf);function Pdf(t){var o;_classCallCheck(this,Pdf);(o=r.call(this,d,"pdf",!0)).name=t.name||"";o.adobeExtensionLevel=null;o.batchOutput=null;o.compression=null;o.creator=null;o.encryption=null;o.fontInfo=null;o.interactive=null;o.linearized=null;o.openAction=null;o.pdfa=null;o.producer=null;o.renderPolicy=null;o.scriptModel=null;o.silentPrint=null;o.submitFormat=null;o.tagged=null;o.version=null;o.viewerPreferences=null;o.xdc=null;return o}return Pdf}(c.XFAObject),et=function(t){_inherits(Pdfa,t);var r=_createSuper(Pdfa);function Pdfa(t){var o;_classCallCheck(this,Pdfa);(o=r.call(this,d,"pdfa",!0)).amd=null;o.conformance=null;o.includeXDPContent=null;o.part=null;return o}return Pdfa}(c.XFAObject),tt=function(t){_inherits(Permissions,t);var r=_createSuper(Permissions);function Permissions(t){var o;_classCallCheck(this,Permissions);(o=r.call(this,d,"permissions",!0)).accessibleContent=null;o.change=null;o.contentCopy=null;o.documentAssembly=null;o.formFieldFilling=null;o.modifyAnnots=null;o.plaintextMetadata=null;o.print=null;o.printHighQuality=null;return o}return Permissions}(c.XFAObject),rt=function(t){_inherits(PickTrayByPDFSize,t);var r=_createSuper(PickTrayByPDFSize);function PickTrayByPDFSize(t){_classCallCheck(this,PickTrayByPDFSize);return r.call(this,d,"pickTrayByPDFSize")}return PickTrayByPDFSize}(c.Option01),at=function(t){_inherits(Picture,t);var r=_createSuper(Picture);function Picture(t){_classCallCheck(this,Picture);return r.call(this,d,"picture")}return Picture}(c.StringObject),nt=function(t){_inherits(PlaintextMetadata,t);var r=_createSuper(PlaintextMetadata);function PlaintextMetadata(t){_classCallCheck(this,PlaintextMetadata);return r.call(this,d,"plaintextMetadata")}return PlaintextMetadata}(c.Option01),it=function(t){_inherits(Presence,t);var r=_createSuper(Presence);function Presence(t){_classCallCheck(this,Presence);return r.call(this,d,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}return Presence}(c.OptionObject),ot=function(t){_inherits(Present,t);var r=_createSuper(Present);function Present(t){var o;_classCallCheck(this,Present);(o=r.call(this,d,"present",!0)).behaviorOverride=null;o.cache=null;o.common=null;o.copies=null;o.destination=null;o.incrementalMerge=null;o.layout=null;o.output=null;o.overprint=null;o.pagination=null;o.paginationOverride=null;o.script=null;o.validate=null;o.xdp=null;o.driver=new c.XFAObjectArray;o.labelPrinter=new c.XFAObjectArray;o.pcl=new c.XFAObjectArray;o.pdf=new c.XFAObjectArray;o.ps=new c.XFAObjectArray;o.submitUrl=new c.XFAObjectArray;o.webClient=new c.XFAObjectArray;o.zpl=new c.XFAObjectArray;return o}return Present}(c.XFAObject),st=function(t){_inherits(Print,t);var r=_createSuper(Print);function Print(t){_classCallCheck(this,Print);return r.call(this,d,"print")}return Print}(c.Option01),lt=function(t){_inherits(PrintHighQuality,t);var r=_createSuper(PrintHighQuality);function PrintHighQuality(t){_classCallCheck(this,PrintHighQuality);return r.call(this,d,"printHighQuality")}return PrintHighQuality}(c.Option01),ct=function(t){_inherits(PrintScaling,t);var r=_createSuper(PrintScaling);function PrintScaling(t){_classCallCheck(this,PrintScaling);return r.call(this,d,"printScaling",["appdefault","noScaling"])}return PrintScaling}(c.OptionObject),ut=function(t){_inherits(PrinterName,t);var r=_createSuper(PrinterName);function PrinterName(t){_classCallCheck(this,PrinterName);return r.call(this,d,"printerName")}return PrinterName}(c.StringObject),ft=function(t){_inherits(Producer,t);var r=_createSuper(Producer);function Producer(t){_classCallCheck(this,Producer);return r.call(this,d,"producer")}return Producer}(c.StringObject),ht=function(t){_inherits(Ps,t);var r=_createSuper(Ps);function Ps(t){var o;_classCallCheck(this,Ps);(o=r.call(this,d,"ps",!0)).name=t.name||"";o.batchOutput=null;o.fontInfo=null;o.jog=null;o.mediumInfo=null;o.outputBin=null;o.staple=null;o.xdc=null;return o}return Ps}(c.XFAObject),dt=function(t){_inherits(Range,t);var r=_createSuper(Range);function Range(t){_classCallCheck(this,Range);return r.call(this,d,"range")}_createClass(Range,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s*,\s*/,2).map((function(t){return t.split("-").map((function(t){return parseInt(t.trim(),10)}))})).filter((function(t){return t.every((function(t){return!isNaN(t)}))})).map((function(t){1===t.length&&t.push(t[0]);return t}))}}]);return Range}(c.ContentObject),mt=function(t){_inherits(Record,t);var r=_createSuper(Record);function Record(t){_classCallCheck(this,Record);return r.call(this,d,"record")}_createClass(Record,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim();var t=parseInt(this[c.$content],10);!isNaN(t)&&t>=0&&(this[c.$content]=t)}}]);return Record}(c.ContentObject),gt=function(t){_inherits(Relevant,t);var r=_createSuper(Relevant);function Relevant(t){_classCallCheck(this,Relevant);return r.call(this,d,"relevant")}_createClass(Relevant,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/)}}]);return Relevant}(c.ContentObject),yt=function(t){_inherits(Rename,t);var r=_createSuper(Rename);function Rename(t){_classCallCheck(this,Rename);return r.call(this,d,"rename")}_createClass(Rename,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim();(this[c.$content].toLowerCase().startsWith("xml")||this[c.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,h.warn)("XFA - Rename: invalid XFA name")}}]);return Rename}(c.ContentObject),vt=function(t){_inherits(RenderPolicy,t);var r=_createSuper(RenderPolicy);function RenderPolicy(t){_classCallCheck(this,RenderPolicy);return r.call(this,d,"renderPolicy",["server","client"])}return RenderPolicy}(c.OptionObject),bt=function(t){_inherits(RunScripts,t);var r=_createSuper(RunScripts);function RunScripts(t){_classCallCheck(this,RunScripts);return r.call(this,d,"runScripts",["both","client","none","server"])}return RunScripts}(c.OptionObject),St=function(t){_inherits(Script,t);var r=_createSuper(Script);function Script(t){var o;_classCallCheck(this,Script);(o=r.call(this,d,"script",!0)).currentPage=null;o.exclude=null;o.runScripts=null;return o}return Script}(c.XFAObject),kt=function(t){_inherits(ScriptModel,t);var r=_createSuper(ScriptModel);function ScriptModel(t){_classCallCheck(this,ScriptModel);return r.call(this,d,"scriptModel",["XFA","none"])}return ScriptModel}(c.OptionObject),Ct=function(t){_inherits(Severity,t);var r=_createSuper(Severity);function Severity(t){_classCallCheck(this,Severity);return r.call(this,d,"severity",["ignore","error","information","trace","warning"])}return Severity}(c.OptionObject),wt=function(t){_inherits(SilentPrint,t);var r=_createSuper(SilentPrint);function SilentPrint(t){var o;_classCallCheck(this,SilentPrint);(o=r.call(this,d,"silentPrint",!0)).addSilentPrint=null;o.printerName=null;return o}return SilentPrint}(c.XFAObject),_t=function(t){_inherits(Staple,t);var r=_createSuper(Staple);function Staple(t){var o;_classCallCheck(this,Staple);(o=r.call(this,d,"staple")).mode=(0,u.getStringOption)(t.mode,["usePrinterSetting","on","off"]);return o}return Staple}(c.XFAObject),At=function(t){_inherits(StartNode,t);var r=_createSuper(StartNode);function StartNode(t){_classCallCheck(this,StartNode);return r.call(this,d,"startNode")}return StartNode}(c.StringObject),Ot=function(t){_inherits(StartPage,t);var r=_createSuper(StartPage);function StartPage(t){_classCallCheck(this,StartPage);return r.call(this,d,"startPage",0,(function(t){return!0}))}return StartPage}(c.IntegerObject),xt=function(t){_inherits(SubmitFormat,t);var r=_createSuper(SubmitFormat);function SubmitFormat(t){_classCallCheck(this,SubmitFormat);return r.call(this,d,"submitFormat",["html","delegate","fdf","xml","pdf"])}return SubmitFormat}(c.OptionObject),Pt=function(t){_inherits(SubmitUrl,t);var r=_createSuper(SubmitUrl);function SubmitUrl(t){_classCallCheck(this,SubmitUrl);return r.call(this,d,"submitUrl")}return SubmitUrl}(c.StringObject),Tt=function(t){_inherits(SubsetBelow,t);var r=_createSuper(SubsetBelow);function SubsetBelow(t){_classCallCheck(this,SubsetBelow);return r.call(this,d,"subsetBelow",100,(function(t){return t>=0&&t<=100}))}return SubsetBelow}(c.IntegerObject),It=function(t){_inherits(SuppressBanner,t);var r=_createSuper(SuppressBanner);function SuppressBanner(t){_classCallCheck(this,SuppressBanner);return r.call(this,d,"suppressBanner")}return SuppressBanner}(c.Option01),Ft=function(t){_inherits(Tagged,t);var r=_createSuper(Tagged);function Tagged(t){_classCallCheck(this,Tagged);return r.call(this,d,"tagged")}return Tagged}(c.Option01),Rt=function(t){_inherits(Template,t);var r=_createSuper(Template);function Template(t){var o;_classCallCheck(this,Template);(o=r.call(this,d,"template",!0)).base=null;o.relevant=null;o.startPage=null;o.uri=null;o.xsl=null;return o}return Template}(c.XFAObject),Et=function(t){_inherits(Threshold,t);var r=_createSuper(Threshold);function Threshold(t){_classCallCheck(this,Threshold);return r.call(this,d,"threshold",["trace","error","information","warning"])}return Threshold}(c.OptionObject),Dt=function(t){_inherits(To,t);var r=_createSuper(To);function To(t){_classCallCheck(this,To);return r.call(this,d,"to",["null","memory","stderr","stdout","system","uri"])}return To}(c.OptionObject),Bt=function(t){_inherits(TemplateCache,t);var r=_createSuper(TemplateCache);function TemplateCache(t){var o;_classCallCheck(this,TemplateCache);(o=r.call(this,d,"templateCache")).maxEntries=(0,u.getInteger)({data:t.maxEntries,defaultValue:5,validator:function validator(t){return t>=0}});return o}return TemplateCache}(c.XFAObject),jt=function(t){_inherits(Trace,t);var r=_createSuper(Trace);function Trace(t){var o;_classCallCheck(this,Trace);(o=r.call(this,d,"trace",!0)).area=new c.XFAObjectArray;return o}return Trace}(c.XFAObject),Mt=function(t){_inherits(Transform,t);var r=_createSuper(Transform);function Transform(t){var o;_classCallCheck(this,Transform);(o=r.call(this,d,"transform",!0)).groupParent=null;o.ifEmpty=null;o.nameAttr=null;o.picture=null;o.presence=null;o.rename=null;o.whitespace=null;return o}return Transform}(c.XFAObject),Nt=function(t){_inherits(Type,t);var r=_createSuper(Type);function Type(t){_classCallCheck(this,Type);return r.call(this,d,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}return Type}(c.OptionObject),Lt=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){_classCallCheck(this,Uri);return r.call(this,d,"uri")}return Uri}(c.StringObject),Ut=function(t){_inherits(Validate,t);var r=_createSuper(Validate);function Validate(t){_classCallCheck(this,Validate);return r.call(this,d,"validate",["preSubmit","prePrint","preExecute","preSave"])}return Validate}(c.OptionObject),qt=function(t){_inherits(ValidateApprovalSignatures,t);var r=_createSuper(ValidateApprovalSignatures);function ValidateApprovalSignatures(t){_classCallCheck(this,ValidateApprovalSignatures);return r.call(this,d,"validateApprovalSignatures")}_createClass(ValidateApprovalSignatures,[{key:c.$finalize,value:function value(){this[c.$content]=this[c.$content].trim().split(/\s+/).filter((function(t){return["docReady","postSign"].includes(t)}))}}]);return ValidateApprovalSignatures}(c.ContentObject),Xt=function(t){_inherits(ValidationMessaging,t);var r=_createSuper(ValidationMessaging);function ValidationMessaging(t){_classCallCheck(this,ValidationMessaging);return r.call(this,d,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}return ValidationMessaging}(c.OptionObject),Wt=function(t){_inherits(Version,t);var r=_createSuper(Version);function Version(t){_classCallCheck(this,Version);return r.call(this,d,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}return Version}(c.OptionObject),Ht=function(t){_inherits(VersionControl,t);var r=_createSuper(VersionControl);function VersionControl(t){var o;_classCallCheck(this,VersionControl);(o=r.call(this,d,"VersionControl")).outputBelow=(0,u.getStringOption)(t.outputBelow,["warn","error","update"]);o.sourceAbove=(0,u.getStringOption)(t.sourceAbove,["warn","error"]);o.sourceBelow=(0,u.getStringOption)(t.sourceBelow,["update","maintain"]);return o}return VersionControl}(c.XFAObject),zt=function(t){_inherits(ViewerPreferences,t);var r=_createSuper(ViewerPreferences);function ViewerPreferences(t){var o;_classCallCheck(this,ViewerPreferences);(o=r.call(this,d,"viewerPreferences",!0)).ADBE_JSConsole=null;o.ADBE_JSDebugger=null;o.addViewerPreferences=null;o.duplexOption=null;o.enforce=null;o.numberOfCopies=null;o.pageRange=null;o.pickTrayByPDFSize=null;o.printScaling=null;return o}return ViewerPreferences}(c.XFAObject),Gt=function(t){_inherits(WebClient,t);var r=_createSuper(WebClient);function WebClient(t){var o;_classCallCheck(this,WebClient);(o=r.call(this,d,"webClient",!0)).name=t.name?t.name.trim():"";o.fontInfo=null;o.xdc=null;return o}return WebClient}(c.XFAObject),Vt=function(t){_inherits(Whitespace,t);var r=_createSuper(Whitespace);function Whitespace(t){_classCallCheck(this,Whitespace);return r.call(this,d,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}return Whitespace}(c.OptionObject),$t=function(t){_inherits(Window,t);var r=_createSuper(Window);function Window(t){_classCallCheck(this,Window);return r.call(this,d,"window")}_createClass(Window,[{key:c.$finalize,value:function value(){var t=this[c.$content].trim().split(/\s*,\s*/,2).map((function(t){return parseInt(t,10)}));if(t.some((function(t){return isNaN(t)})))this[c.$content]=[0,0];else{1===t.length&&t.push(t[0]);this[c.$content]=t}}}]);return Window}(c.ContentObject),Kt=function(t){_inherits(Xdc,t);var r=_createSuper(Xdc);function Xdc(t){var o;_classCallCheck(this,Xdc);(o=r.call(this,d,"xdc",!0)).uri=new c.XFAObjectArray;o.xsl=new c.XFAObjectArray;return o}return Xdc}(c.XFAObject),Yt=function(t){_inherits(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,d,"xdp",!0)).packets=null;return o}return Xdp}(c.XFAObject),Jt=function(t){_inherits(Xsl,t);var r=_createSuper(Xsl);function Xsl(t){var o;_classCallCheck(this,Xsl);(o=r.call(this,d,"xsl",!0)).debug=null;o.uri=null;return o}return Xsl}(c.XFAObject),Qt=function(t){_inherits(Zpl,t);var r=_createSuper(Zpl);function Zpl(t){var o;_classCallCheck(this,Zpl);(o=r.call(this,d,"zpl",!0)).name=t.name?t.name.trim():"";o.batchOutput=null;o.flipLabel=null;o.fontInfo=null;o.xdc=null;return o}return Zpl}(c.XFAObject),Zt=function(){function ConfigNamespace(){_classCallCheck(this,ConfigNamespace)}_createClass(ConfigNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(ConfigNamespace.hasOwnProperty(t))return ConfigNamespace[t](r)}},{key:"acrobat",value:function acrobat(t){return new m(t)}},{key:"acrobat7",value:function acrobat7(t){return new g(t)}},{key:"ADBE_JSConsole",value:function ADBE_JSConsole(t){return new y(t)}},{key:"ADBE_JSDebugger",value:function ADBE_JSDebugger(t){return new v(t)}},{key:"addSilentPrint",value:function addSilentPrint(t){return new S(t)}},{key:"addViewerPreferences",value:function addViewerPreferences(t){return new k(t)}},{key:"adjustData",value:function adjustData(t){return new C(t)}},{key:"adobeExtensionLevel",value:function adobeExtensionLevel(t){return new w(t)}},{key:"agent",value:function agent(t){return new _(t)}},{key:"alwaysEmbed",value:function alwaysEmbed(t){return new O(t)}},{key:"amd",value:function amd(t){return new x(t)}},{key:"area",value:function area(t){return new T(t)}},{key:"attributes",value:function attributes(t){return new R(t)}},{key:"autoSave",value:function autoSave(t){return new E(t)}},{key:"base",value:function base(t){return new D(t)}},{key:"batchOutput",value:function batchOutput(t){return new j(t)}},{key:"behaviorOverride",value:function behaviorOverride(t){return new M(t)}},{key:"cache",value:function cache(t){return new N(t)}},{key:"change",value:function change(t){return new L(t)}},{key:"common",value:function common(t){return new U(t)}},{key:"compress",value:function compress(t){return new q(t)}},{key:"compressLogicalStructure",value:function compressLogicalStructure(t){return new X(t)}},{key:"compressObjectStream",value:function compressObjectStream(t){return new W(t)}},{key:"compression",value:function compression(t){return new H(t)}},{key:"config",value:function config(t){return new z(t)}},{key:"conformance",value:function conformance(t){return new G(t)}},{key:"contentCopy",value:function contentCopy(t){return new V(t)}},{key:"copies",value:function copies(t){return new $(t)}},{key:"creator",value:function creator(t){return new K(t)}},{key:"currentPage",value:function currentPage(t){return new Y(t)}},{key:"data",value:function data(t){return new J(t)}},{key:"debug",value:function debug(t){return new Q(t)}},{key:"defaultTypeface",value:function defaultTypeface(t){return new Z(t)}},{key:"destination",value:function destination(t){return new ee(t)}},{key:"documentAssembly",value:function documentAssembly(t){return new te(t)}},{key:"driver",value:function driver(t){return new re(t)}},{key:"duplexOption",value:function duplexOption(t){return new ae(t)}},{key:"dynamicRender",value:function dynamicRender(t){return new ne(t)}},{key:"embed",value:function embed(t){return new ie(t)}},{key:"encrypt",value:function encrypt(t){return new oe(t)}},{key:"encryption",value:function encryption(t){return new se(t)}},{key:"encryptionLevel",value:function encryptionLevel(t){return new le(t)}},{key:"enforce",value:function enforce(t){return new ce(t)}},{key:"equate",value:function equate(t){return new ue(t)}},{key:"equateRange",value:function equateRange(t){return new fe(t)}},{key:"exclude",value:function exclude(t){return new he(t)}},{key:"excludeNS",value:function excludeNS(t){return new de(t)}},{key:"flipLabel",value:function flipLabel(t){return new pe(t)}},{key:"fontInfo",value:function fontInfo(t){return new me(t)}},{key:"formFieldFilling",value:function formFieldFilling(t){return new ge(t)}},{key:"groupParent",value:function groupParent(t){return new ye(t)}},{key:"ifEmpty",value:function ifEmpty(t){return new ve(t)}},{key:"includeXDPContent",value:function includeXDPContent(t){return new be(t)}},{key:"incrementalLoad",value:function incrementalLoad(t){return new Se(t)}},{key:"incrementalMerge",value:function incrementalMerge(t){return new ke(t)}},{key:"interactive",value:function interactive(t){return new Ce(t)}},{key:"jog",value:function jog(t){return new we(t)}},{key:"labelPrinter",value:function labelPrinter(t){return new _e(t)}},{key:"layout",value:function layout(t){return new Ae(t)}},{key:"level",value:function level(t){return new Oe(t)}},{key:"linearized",value:function linearized(t){return new xe(t)}},{key:"locale",value:function locale(t){return new Pe(t)}},{key:"localeSet",value:function localeSet(t){return new Te(t)}},{key:"log",value:function log(t){return new Ie(t)}},{key:"map",value:function map(t){return new Fe(t)}},{key:"mediumInfo",value:function mediumInfo(t){return new Re(t)}},{key:"message",value:function message(t){return new Ee(t)}},{key:"messaging",value:function messaging(t){return new De(t)}},{key:"mode",value:function mode(t){return new Be(t)}},{key:"modifyAnnots",value:function modifyAnnots(t){return new je(t)}},{key:"msgId",value:function msgId(t){return new Me(t)}},{key:"nameAttr",value:function nameAttr(t){return new Ne(t)}},{key:"neverEmbed",value:function neverEmbed(t){return new Le(t)}},{key:"numberOfCopies",value:function numberOfCopies(t){return new Ue(t)}},{key:"openAction",value:function openAction(t){return new qe(t)}},{key:"output",value:function output(t){return new Xe(t)}},{key:"outputBin",value:function outputBin(t){return new We(t)}},{key:"outputXSL",value:function outputXSL(t){return new He(t)}},{key:"overprint",value:function overprint(t){return new ze(t)}},{key:"packets",value:function packets(t){return new Ge(t)}},{key:"pageOffset",value:function pageOffset(t){return new Ve(t)}},{key:"pageRange",value:function pageRange(t){return new $e(t)}},{key:"pagination",value:function pagination(t){return new Ke(t)}},{key:"paginationOverride",value:function paginationOverride(t){return new Ye(t)}},{key:"part",value:function part(t){return new Je(t)}},{key:"pcl",value:function pcl(t){return new Qe(t)}},{key:"pdf",value:function pdf(t){return new Ze(t)}},{key:"pdfa",value:function pdfa(t){return new et(t)}},{key:"permissions",value:function permissions(t){return new tt(t)}},{key:"pickTrayByPDFSize",value:function pickTrayByPDFSize(t){return new rt(t)}},{key:"picture",value:function picture(t){return new at(t)}},{key:"plaintextMetadata",value:function plaintextMetadata(t){return new nt(t)}},{key:"presence",value:function presence(t){return new it(t)}},{key:"present",value:function present(t){return new ot(t)}},{key:"print",value:function print(t){return new st(t)}},{key:"printHighQuality",value:function printHighQuality(t){return new lt(t)}},{key:"printScaling",value:function printScaling(t){return new ct(t)}},{key:"printerName",value:function printerName(t){return new ut(t)}},{key:"producer",value:function producer(t){return new ft(t)}},{key:"ps",value:function ps(t){return new ht(t)}},{key:"range",value:function range(t){return new dt(t)}},{key:"record",value:function record(t){return new mt(t)}},{key:"relevant",value:function relevant(t){return new gt(t)}},{key:"rename",value:function rename(t){return new yt(t)}},{key:"renderPolicy",value:function renderPolicy(t){return new vt(t)}},{key:"runScripts",value:function runScripts(t){return new bt(t)}},{key:"script",value:function script(t){return new St(t)}},{key:"scriptModel",value:function scriptModel(t){return new kt(t)}},{key:"severity",value:function severity(t){return new Ct(t)}},{key:"silentPrint",value:function silentPrint(t){return new wt(t)}},{key:"staple",value:function staple(t){return new _t(t)}},{key:"startNode",value:function startNode(t){return new At(t)}},{key:"startPage",value:function startPage(t){return new Ot(t)}},{key:"submitFormat",value:function submitFormat(t){return new xt(t)}},{key:"submitUrl",value:function submitUrl(t){return new Pt(t)}},{key:"subsetBelow",value:function subsetBelow(t){return new Tt(t)}},{key:"suppressBanner",value:function suppressBanner(t){return new It(t)}},{key:"tagged",value:function tagged(t){return new Ft(t)}},{key:"template",value:function template(t){return new Rt(t)}},{key:"templateCache",value:function templateCache(t){return new Bt(t)}},{key:"threshold",value:function threshold(t){return new Et(t)}},{key:"to",value:function to(t){return new Dt(t)}},{key:"trace",value:function trace(t){return new jt(t)}},{key:"transform",value:function transform(t){return new Mt(t)}},{key:"type",value:function type(t){return new Nt(t)}},{key:"uri",value:function uri(t){return new Lt(t)}},{key:"validate",value:function validate(t){return new Ut(t)}},{key:"validateApprovalSignatures",value:function validateApprovalSignatures(t){return new qt(t)}},{key:"validationMessaging",value:function validationMessaging(t){return new Xt(t)}},{key:"version",value:function version(t){return new Wt(t)}},{key:"versionControl",value:function versionControl(t){return new Ht(t)}},{key:"viewerPreferences",value:function viewerPreferences(t){return new zt(t)}},{key:"webClient",value:function webClient(t){return new Gt(t)}},{key:"whitespace",value:function whitespace(t){return new Vt(t)}},{key:"window",value:function window(t){return new $t(t)}},{key:"xdc",value:function xdc(t){return new Kt(t)}},{key:"xdp",value:function xdp(t){return new Yt(t)}},{key:"xsl",value:function xsl(t){return new Jt(t)}},{key:"zpl",value:function zpl(t){return new Qt(t)}}]);return ConfigNamespace}();r.ConfigNamespace=Zt},(t,r,o)=>{"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.ConnectionSetNamespace=void 0;var l=o(172),c=o(170);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.connectionSet.id,h=function(t){_inherits(ConnectionSet,t);var r=_createSuper(ConnectionSet);function ConnectionSet(t){var o;_classCallCheck(this,ConnectionSet);(o=r.call(this,u,"connectionSet",!0)).wsdlConnection=new c.XFAObjectArray;o.xmlConnection=new c.XFAObjectArray;o.xsdConnection=new c.XFAObjectArray;return o}return ConnectionSet}(c.XFAObject),d=function(t){_inherits(EffectiveInputPolicy,t);var r=_createSuper(EffectiveInputPolicy);function EffectiveInputPolicy(t){var o;_classCallCheck(this,EffectiveInputPolicy);(o=r.call(this,u,"effectiveInputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EffectiveInputPolicy}(c.XFAObject),m=function(t){_inherits(EffectiveOutputPolicy,t);var r=_createSuper(EffectiveOutputPolicy);function EffectiveOutputPolicy(t){var o;_classCallCheck(this,EffectiveOutputPolicy);(o=r.call(this,u,"effectiveOutputPolicy")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return EffectiveOutputPolicy}(c.XFAObject),g=function(t){_inherits(Operation,t);var r=_createSuper(Operation);function Operation(t){var o;_classCallCheck(this,Operation);(o=r.call(this,u,"operation")).id=t.id||"";o.input=t.input||"";o.name=t.name||"";o.output=t.output||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Operation}(c.StringObject),y=function(t){_inherits(RootElement,t);var r=_createSuper(RootElement);function RootElement(t){var o;_classCallCheck(this,RootElement);(o=r.call(this,u,"rootElement")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return RootElement}(c.StringObject),v=function(t){_inherits(SoapAction,t);var r=_createSuper(SoapAction);function SoapAction(t){var o;_classCallCheck(this,SoapAction);(o=r.call(this,u,"soapAction")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return SoapAction}(c.StringObject),S=function(t){_inherits(SoapAddress,t);var r=_createSuper(SoapAddress);function SoapAddress(t){var o;_classCallCheck(this,SoapAddress);(o=r.call(this,u,"soapAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return SoapAddress}(c.StringObject),k=function(t){_inherits(Uri,t);var r=_createSuper(Uri);function Uri(t){var o;_classCallCheck(this,Uri);(o=r.call(this,u,"uri")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return Uri}(c.StringObject),C=function(t){_inherits(WsdlAddress,t);var r=_createSuper(WsdlAddress);function WsdlAddress(t){var o;_classCallCheck(this,WsdlAddress);(o=r.call(this,u,"wsdlAddress")).id=t.id||"";o.name=t.name||"";o.use=t.use||"";o.usehref=t.usehref||"";return o}return WsdlAddress}(c.StringObject),w=function(t){_inherits(WsdlConnection,t);var r=_createSuper(WsdlConnection);function WsdlConnection(t){var o;_classCallCheck(this,WsdlConnection);(o=r.call(this,u,"wsdlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.effectiveInputPolicy=null;o.effectiveOutputPolicy=null;o.operation=null;o.soapAction=null;o.soapAddress=null;o.wsdlAddress=null;return o}return WsdlConnection}(c.XFAObject),_=function(t){_inherits(XmlConnection,t);var r=_createSuper(XmlConnection);function XmlConnection(t){var o;_classCallCheck(this,XmlConnection);(o=r.call(this,u,"xmlConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.uri=null;return o}return XmlConnection}(c.XFAObject),O=function(t){_inherits(XsdConnection,t);var r=_createSuper(XsdConnection);function XsdConnection(t){var o;_classCallCheck(this,XsdConnection);(o=r.call(this,u,"xsdConnection",!0)).dataDescription=t.dataDescription||"";o.name=t.name||"";o.rootElement=null;o.uri=null;return o}return XsdConnection}(c.XFAObject),x=function(){function ConnectionSetNamespace(){_classCallCheck(this,ConnectionSetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(ConnectionSetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(ConnectionSetNamespace.hasOwnProperty(t))return ConnectionSetNamespace[t](r)}},{key:"connectionSet",value:function connectionSet(t){return new h(t)}},{key:"effectiveInputPolicy",value:function effectiveInputPolicy(t){return new d(t)}},{key:"effectiveOutputPolicy",value:function effectiveOutputPolicy(t){return new m(t)}},{key:"operation",value:function operation(t){return new g(t)}},{key:"rootElement",value:function rootElement(t){return new y(t)}},{key:"soapAction",value:function soapAction(t){return new v(t)}},{key:"soapAddress",value:function soapAddress(t){return new S(t)}},{key:"uri",value:function uri(t){return new k(t)}},{key:"wsdlAddress",value:function wsdlAddress(t){return new C(t)}},{key:"wsdlConnection",value:function wsdlConnection(t){return new w(t)}},{key:"xmlConnection",value:function xmlConnection(t){return new _(t)}},{key:"xsdConnection",value:function xsdConnection(t){return new O(t)}}]);return ConnectionSetNamespace}();r.ConnectionSetNamespace=x},(t,r,o)=>{"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.DatasetsNamespace=void 0;var l=o(170),c=o(172);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=c.NamespaceIds.datasets.id,h=function(t){_inherits(Data,t);var r=_createSuper(Data);function Data(t){_classCallCheck(this,Data);return r.call(this,u,"data",t)}return Data}(l.XmlObject),d=function(t){_inherits(Datasets,t);var r=_createSuper(Datasets);function Datasets(t){var o;_classCallCheck(this,Datasets);(o=r.call(this,u,"datasets",!0)).data=null;o.Signature=null;return o}_createClass(Datasets,[{key:l.$onChild,value:function value(t){var r=t[l.$nodeName];"data"===r&&t[l.$namespaceId]===u||"Signature"===r&&t[l.$namespaceId]===c.NamespaceIds.signature.id?this[r]=t:t[l.$global]=!0;this[l.$appendChild](t)}}]);return Datasets}(l.XFAObject),m=function(){function DatasetsNamespace(){_classCallCheck(this,DatasetsNamespace)}_createClass(DatasetsNamespace,null,[{key:c.$buildXFAObject,value:function value(t,r){if(DatasetsNamespace.hasOwnProperty(t))return DatasetsNamespace[t](r)}},{key:"datasets",value:function datasets(t){return new d(t)}},{key:"data",value:function data(t){return new h(t)}}]);return DatasetsNamespace}();r.DatasetsNamespace=m},(t,r,o)=>{"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.LocaleSetNamespace=void 0;var l=o(172),c=o(170),u=o(171);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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 h=l.NamespaceIds.localeSet.id,d=function(t){_inherits(CalendarSymbols,t);var r=_createSuper(CalendarSymbols);function CalendarSymbols(t){var o;_classCallCheck(this,CalendarSymbols);(o=r.call(this,h,"calendarSymbols",!0)).name="gregorian";o.dayNames=new c.XFAObjectArray(2);o.eraNames=null;o.meridiemNames=null;o.monthNames=new c.XFAObjectArray(2);return o}return CalendarSymbols}(c.XFAObject),m=function(t){_inherits(CurrencySymbol,t);var r=_createSuper(CurrencySymbol);function CurrencySymbol(t){var o;_classCallCheck(this,CurrencySymbol);(o=r.call(this,h,"currencySymbol")).name=(0,u.getStringOption)(t.name,["symbol","isoname","decimal"]);return o}return CurrencySymbol}(c.StringObject),g=function(t){_inherits(CurrencySymbols,t);var r=_createSuper(CurrencySymbols);function CurrencySymbols(t){var o;_classCallCheck(this,CurrencySymbols);(o=r.call(this,h,"currencySymbols",!0)).currencySymbol=new c.XFAObjectArray(3);return o}return CurrencySymbols}(c.XFAObject),y=function(t){_inherits(DatePattern,t);var r=_createSuper(DatePattern);function DatePattern(t){var o;_classCallCheck(this,DatePattern);(o=r.call(this,h,"datePattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return DatePattern}(c.StringObject),v=function(t){_inherits(DatePatterns,t);var r=_createSuper(DatePatterns);function DatePatterns(t){var o;_classCallCheck(this,DatePatterns);(o=r.call(this,h,"datePatterns",!0)).datePattern=new c.XFAObjectArray(4);return o}return DatePatterns}(c.XFAObject),S=function(t){_inherits(DateTimeSymbols,t);var r=_createSuper(DateTimeSymbols);function DateTimeSymbols(t){_classCallCheck(this,DateTimeSymbols);return r.call(this,h,"dateTimeSymbols")}return DateTimeSymbols}(c.ContentObject),k=function(t){_inherits(Day,t);var r=_createSuper(Day);function Day(t){_classCallCheck(this,Day);return r.call(this,h,"day")}return Day}(c.StringObject),C=function(t){_inherits(DayNames,t);var r=_createSuper(DayNames);function DayNames(t){var o;_classCallCheck(this,DayNames);(o=r.call(this,h,"dayNames",!0)).abbr=(0,u.getInteger)({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.day=new c.XFAObjectArray(7);return o}return DayNames}(c.XFAObject),w=function(t){_inherits(Era,t);var r=_createSuper(Era);function Era(t){_classCallCheck(this,Era);return r.call(this,h,"era")}return Era}(c.StringObject),_=function(t){_inherits(EraNames,t);var r=_createSuper(EraNames);function EraNames(t){var o;_classCallCheck(this,EraNames);(o=r.call(this,h,"eraNames",!0)).era=new c.XFAObjectArray(2);return o}return EraNames}(c.XFAObject),O=function(t){_inherits(Locale,t);var r=_createSuper(Locale);function Locale(t){var o;_classCallCheck(this,Locale);(o=r.call(this,h,"locale",!0)).desc=t.desc||"";o.name="isoname";o.calendarSymbols=null;o.currencySymbols=null;o.datePatterns=null;o.dateTimeSymbols=null;o.numberPatterns=null;o.numberSymbols=null;o.timePatterns=null;o.typeFaces=null;return o}return Locale}(c.XFAObject),x=function(t){_inherits(LocaleSet,t);var r=_createSuper(LocaleSet);function LocaleSet(t){var o;_classCallCheck(this,LocaleSet);(o=r.call(this,h,"localeSet",!0)).locale=new c.XFAObjectArray;return o}return LocaleSet}(c.XFAObject),T=function(t){_inherits(Meridiem,t);var r=_createSuper(Meridiem);function Meridiem(t){_classCallCheck(this,Meridiem);return r.call(this,h,"meridiem")}return Meridiem}(c.StringObject),R=function(t){_inherits(MeridiemNames,t);var r=_createSuper(MeridiemNames);function MeridiemNames(t){var o;_classCallCheck(this,MeridiemNames);(o=r.call(this,h,"meridiemNames",!0)).meridiem=new c.XFAObjectArray(2);return o}return MeridiemNames}(c.XFAObject),E=function(t){_inherits(Month,t);var r=_createSuper(Month);function Month(t){_classCallCheck(this,Month);return r.call(this,h,"month")}return Month}(c.StringObject),D=function(t){_inherits(MonthNames,t);var r=_createSuper(MonthNames);function MonthNames(t){var o;_classCallCheck(this,MonthNames);(o=r.call(this,h,"monthNames",!0)).abbr=(0,u.getInteger)({data:t.abbr,defaultValue:0,validate:function validate(t){return 1===t}});o.month=new c.XFAObjectArray(12);return o}return MonthNames}(c.XFAObject),j=function(t){_inherits(NumberPattern,t);var r=_createSuper(NumberPattern);function NumberPattern(t){var o;_classCallCheck(this,NumberPattern);(o=r.call(this,h,"numberPattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return NumberPattern}(c.StringObject),M=function(t){_inherits(NumberPatterns,t);var r=_createSuper(NumberPatterns);function NumberPatterns(t){var o;_classCallCheck(this,NumberPatterns);(o=r.call(this,h,"numberPatterns",!0)).numberPattern=new c.XFAObjectArray(4);return o}return NumberPatterns}(c.XFAObject),N=function(t){_inherits(NumberSymbol,t);var r=_createSuper(NumberSymbol);function NumberSymbol(t){var o;_classCallCheck(this,NumberSymbol);(o=r.call(this,h,"numberSymbol")).name=(0,u.getStringOption)(t.name,["decimal","grouping","percent","minus","zero"]);return o}return NumberSymbol}(c.StringObject),L=function(t){_inherits(NumberSymbols,t);var r=_createSuper(NumberSymbols);function NumberSymbols(t){var o;_classCallCheck(this,NumberSymbols);(o=r.call(this,h,"numberSymbols",!0)).numberSymbol=new c.XFAObjectArray(5);return o}return NumberSymbols}(c.XFAObject),U=function(t){_inherits(TimePattern,t);var r=_createSuper(TimePattern);function TimePattern(t){var o;_classCallCheck(this,TimePattern);(o=r.call(this,h,"timePattern")).name=(0,u.getStringOption)(t.name,["full","long","med","short"]);return o}return TimePattern}(c.StringObject),q=function(t){_inherits(TimePatterns,t);var r=_createSuper(TimePatterns);function TimePatterns(t){var o;_classCallCheck(this,TimePatterns);(o=r.call(this,h,"timePatterns",!0)).timePattern=new c.XFAObjectArray(4);return o}return TimePatterns}(c.XFAObject),X=function(t){_inherits(TypeFace,t);var r=_createSuper(TypeFace);function TypeFace(t){var o;_classCallCheck(this,TypeFace);(o=r.call(this,h,"typeFace",!0)).name=""|t.name;return o}return TypeFace}(c.XFAObject),W=function(t){_inherits(TypeFaces,t);var r=_createSuper(TypeFaces);function TypeFaces(t){var o;_classCallCheck(this,TypeFaces);(o=r.call(this,h,"typeFaces",!0)).typeFace=new c.XFAObjectArray;return o}return TypeFaces}(c.XFAObject),H=function(){function LocaleSetNamespace(){_classCallCheck(this,LocaleSetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(LocaleSetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(LocaleSetNamespace.hasOwnProperty(t))return LocaleSetNamespace[t](r)}},{key:"calendarSymbols",value:function calendarSymbols(t){return new d(t)}},{key:"currencySymbol",value:function currencySymbol(t){return new m(t)}},{key:"currencySymbols",value:function currencySymbols(t){return new g(t)}},{key:"datePattern",value:function datePattern(t){return new y(t)}},{key:"datePatterns",value:function datePatterns(t){return new v(t)}},{key:"dateTimeSymbols",value:function dateTimeSymbols(t){return new S(t)}},{key:"day",value:function day(t){return new k(t)}},{key:"dayNames",value:function dayNames(t){return new C(t)}},{key:"era",value:function era(t){return new w(t)}},{key:"eraNames",value:function eraNames(t){return new _(t)}},{key:"locale",value:function locale(t){return new O(t)}},{key:"localeSet",value:function localeSet(t){return new x(t)}},{key:"meridiem",value:function meridiem(t){return new T(t)}},{key:"meridiemNames",value:function meridiemNames(t){return new R(t)}},{key:"month",value:function month(t){return new E(t)}},{key:"monthNames",value:function monthNames(t){return new D(t)}},{key:"numberPattern",value:function numberPattern(t){return new j(t)}},{key:"numberPatterns",value:function numberPatterns(t){return new M(t)}},{key:"numberSymbol",value:function numberSymbol(t){return new N(t)}},{key:"numberSymbols",value:function numberSymbols(t){return new L(t)}},{key:"timePattern",value:function timePattern(t){return new U(t)}},{key:"timePatterns",value:function timePatterns(t){return new q(t)}},{key:"typeFace",value:function typeFace(t){return new X(t)}},{key:"typeFaces",value:function typeFaces(t){return new W(t)}}]);return LocaleSetNamespace}();r.LocaleSetNamespace=H},(t,r,o)=>{"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.SignatureNamespace=void 0;var l=o(172),c=o(170);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.signature.id,h=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)}(Signature,t);var r=_createSuper(Signature);function Signature(t){_classCallCheck(this,Signature);return r.call(this,u,"signature",!0)}return Signature}(c.XFAObject),d=function(){function SignatureNamespace(){_classCallCheck(this,SignatureNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(SignatureNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(SignatureNamespace.hasOwnProperty(t))return SignatureNamespace[t](r)}},{key:"signature",value:function signature(t){return new h(t)}}]);return SignatureNamespace}();r.SignatureNamespace=d},(t,r,o)=>{"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.StylesheetNamespace=void 0;var l=o(172),c=o(170);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.stylesheet.id,h=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)}(Stylesheet,t);var r=_createSuper(Stylesheet);function Stylesheet(t){_classCallCheck(this,Stylesheet);return r.call(this,u,"stylesheet",!0)}return Stylesheet}(c.XFAObject),d=function(){function StylesheetNamespace(){_classCallCheck(this,StylesheetNamespace)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(StylesheetNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(StylesheetNamespace.hasOwnProperty(t))return StylesheetNamespace[t](r)}},{key:"stylesheet",value:function stylesheet(t){return new h(t)}}]);return StylesheetNamespace}();r.StylesheetNamespace=d},(t,r,o)=>{"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.XdpNamespace=void 0;var l=o(172),c=o(170);function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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=l.NamespaceIds.xdp.id,h=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)}(Xdp,t);var r=_createSuper(Xdp);function Xdp(t){var o;_classCallCheck(this,Xdp);(o=r.call(this,u,"xdp",!0)).uuid=t.uuid||"";o.timeStamp=t.timeStamp||"";o.config=null;o.connectionSet=null;o.datasets=null;o.localeSet=null;o.stylesheet=new c.XFAObjectArray;o.template=null;return o}_createClass(Xdp,[{key:c.$onChildCheck,value:function value(t){var r=l.NamespaceIds[t[c.$nodeName]];return r&&t[c.$namespaceId]===r.id}}]);return Xdp}(c.XFAObject),d=function(){function XdpNamespace(){_classCallCheck(this,XdpNamespace)}_createClass(XdpNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(XdpNamespace.hasOwnProperty(t))return XdpNamespace[t](r)}},{key:"xdp",value:function xdp(t){return new h(t)}}]);return XdpNamespace}();r.XdpNamespace=d},(t,r,o)=>{"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.XhtmlNamespace=void 0;var l=o(172),c=o(170);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return 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 o,l=_getPrototypeOf(t);if(r){var c=_getPrototypeOf(this).constructor;o=Reflect.construct(l,arguments,c)}else o=l.apply(this,arguments);return _possibleConstructorReturn(this,o)}}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)}function _slicedToArray(t,r){return function _arrayWithHoles(t){if(Array.isArray(t))return t}(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var o=[],l=!0,c=!1,u=void 0;try{for(var h,d=t[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){o.push(h.value);if(r&&o.length===r)break}}catch(t){c=!0;u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}return o}(t,r)||function _unsupportedIterableToArray(t,r){if(!t)return;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);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray(t,r)}(t,r)||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 _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=t[o];return l}var u=l.NamespaceIds.xhtml.id,h=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-tab-stops"]);function checkStyle(t){return t?t.trim().split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/,2)})).filter((function(t){var r=_slicedToArray(t,1)[0];return h.has(r)})).map((function(t){return t.join(":")})).join(";"):""}var d=function(t){_inherits(A,t);var r=_createSuper(A);function A(t){var o;_classCallCheck(this,A);(o=r.call(this,u,"a")).href=t.href||"";o.style=checkStyle(t.style);return o}return A}(c.XmlObject),m=function(t){_inherits(B,t);var r=_createSuper(B);function B(t){var o;_classCallCheck(this,B);(o=r.call(this,u,"b")).style=checkStyle(t.style);return o}return B}(c.XmlObject),g=function(t){_inherits(Body,t);var r=_createSuper(Body);function Body(t){var o;_classCallCheck(this,Body);(o=r.call(this,u,"body")).style=checkStyle(t.style);return o}return Body}(c.XmlObject),y=function(t){_inherits(Br,t);var r=_createSuper(Br);function Br(t){var o;_classCallCheck(this,Br);(o=r.call(this,u,"br")).style=checkStyle(t.style);return o}_createClass(Br,[{key:c.$text,value:function value(){return"\n"}}]);return Br}(c.XmlObject),v=function(t){_inherits(Html,t);var r=_createSuper(Html);function Html(t){var o;_classCallCheck(this,Html);(o=r.call(this,u,"html")).style=checkStyle(t.style);return o}return Html}(c.XmlObject),S=function(t){_inherits(I,t);var r=_createSuper(I);function I(t){var o;_classCallCheck(this,I);(o=r.call(this,u,"i")).style=checkStyle(t.style);return o}return I}(c.XmlObject),k=function(t){_inherits(Li,t);var r=_createSuper(Li);function Li(t){var o;_classCallCheck(this,Li);(o=r.call(this,u,"li")).style=checkStyle(t.style);return o}return Li}(c.XmlObject),C=function(t){_inherits(Ol,t);var r=_createSuper(Ol);function Ol(t){var o;_classCallCheck(this,Ol);(o=r.call(this,u,"ol")).style=checkStyle(t.style);return o}return Ol}(c.XmlObject),w=function(t){_inherits(P,t);var r=_createSuper(P);function P(t){var o;_classCallCheck(this,P);(o=r.call(this,u,"p")).style=checkStyle(t.style);return o}return P}(c.XmlObject),_=function(t){_inherits(Span,t);var r=_createSuper(Span);function Span(t){var o;_classCallCheck(this,Span);(o=r.call(this,u,"span")).style=checkStyle(t.style);return o}return Span}(c.XmlObject),O=function(t){_inherits(Sub,t);var r=_createSuper(Sub);function Sub(t){var o;_classCallCheck(this,Sub);(o=r.call(this,u,"sub")).style=checkStyle(t.style);return o}return Sub}(c.XmlObject),x=function(t){_inherits(Sup,t);var r=_createSuper(Sup);function Sup(t){var o;_classCallCheck(this,Sup);(o=r.call(this,u,"sup")).style=checkStyle(t.style);return o}return Sup}(c.XmlObject),T=function(t){_inherits(Ul,t);var r=_createSuper(Ul);function Ul(t){var o;_classCallCheck(this,Ul);(o=r.call(this,u,"ul")).style=checkStyle(t.style);return o}return Ul}(c.XmlObject),R=function(){function XhtmlNamespace(){_classCallCheck(this,XhtmlNamespace)}_createClass(XhtmlNamespace,null,[{key:l.$buildXFAObject,value:function value(t,r){if(XhtmlNamespace.hasOwnProperty(t))return XhtmlNamespace[t](r)}},{key:"a",value:function a(t){return new d(t)}},{key:"b",value:function b(t){return new m(t)}},{key:"body",value:function body(t){return new g(t)}},{key:"br",value:function br(t){return new y(t)}},{key:"html",value:function html(t){return new v(t)}},{key:"i",value:function i(t){return new S(t)}},{key:"li",value:function li(t){return new k(t)}},{key:"ol",value:function ol(t){return new C(t)}},{key:"p",value:function p(t){return new w(t)}},{key:"span",value:function span(t){return new _(t)}},{key:"sub",value:function sub(t){return new O(t)}},{key:"sup",value:function sup(t){return new x(t)}},{key:"ul",value:function ul(t){return new T(t)}}]);return XhtmlNamespace}();r.XhtmlNamespace=R},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.UnknownNamespace=void 0;var l=o(172),c=o(170);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}var u=function(){function UnknownNamespace(t){!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,UnknownNamespace);this.namespaceId=t}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(UnknownNamespace,[{key:l.$buildXFAObject,value:function value(t,r){return new c.XmlObject(this.namespaceId,t,r)}}]);return UnknownNamespace}();r.UnknownNamespace=u},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.MessageHandler=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}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 u=1,h=2,d=1,m=2,g=3,y=4,v=5,S=6,k=7,C=8;function wrapReason(t){if("object"!==_typeof(t)||null===t)return t;switch(t.name){case"AbortException":return new c.AbortException(t.message);case"MissingPDFException":return new c.MissingPDFException(t.message);case"UnexpectedResponseException":return new c.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new c.UnknownErrorException(t.message,t.details);default:return new c.UnknownErrorException(t.message,t.toString())}}var w=function(){function MessageHandler(t,r,o){var l=this;!function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,MessageHandler);this.sourceName=t;this.targetName=r;this.comObj=o;this.callbackId=1;this.streamId=1;this.postMessageTransfers=!0;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=function(t){var r=t.data;if(r.targetName===l.sourceName)if(r.stream)l._processStreamMessage(r);else if(r.callback){var c=r.callbackId,d=l.callbackCapabilities[c];if(!d)throw new Error("Cannot resolve callback ".concat(c));delete l.callbackCapabilities[c];if(r.callback===u)d.resolve(r.data);else{if(r.callback!==h)throw new Error("Unexpected callback case");d.reject(wrapReason(r.reason))}}else{var m=l.actionHandler[r.action];if(!m)throw new Error("Unknown action from worker: ".concat(r.action));if(r.callbackId){var g=l.sourceName,y=r.sourceName;new Promise((function(t){t(m(r.data))})).then((function(t){o.postMessage({sourceName:g,targetName:y,callback:u,callbackId:r.callbackId,data:t})}),(function(t){o.postMessage({sourceName:g,targetName:y,callback:h,callbackId:r.callbackId,reason:wrapReason(t)})}))}else r.streamId?l._createStreamSink(r):m(r.data)}};o.addEventListener("message",this._onComObjOnMessage)}!function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}(MessageHandler,[{key:"on",value:function on(t,r){var o=this.actionHandler;if(o[t])throw new Error('There is already an actionName called "'.concat(t,'"'));o[t]=r}},{key:"send",value:function send(t,r,o){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:r},o)}},{key:"sendWithPromise",value:function sendWithPromise(t,r,o){var l=this.callbackId++,u=(0,c.createPromiseCapability)();this.callbackCapabilities[l]=u;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:l,data:r},o)}catch(t){u.reject(t)}return u.promise}},{key:"sendWithStream",value:function sendWithStream(t,r,o,l){var u=this,h=this.streamId++,m=this.sourceName,g=this.targetName,y=this.comObj;return new ReadableStream({start:function start(o){var d=(0,c.createPromiseCapability)();u.streamControllers[h]={controller:o,startCall:d,pullCall:null,cancelCall:null,isClosed:!1};u._postMessage({sourceName:m,targetName:g,action:t,streamId:h,data:r,desiredSize:o.desiredSize},l);return d.promise},pull:function pull(t){var r=(0,c.createPromiseCapability)();u.streamControllers[h].pullCall=r;y.postMessage({sourceName:m,targetName:g,stream:S,streamId:h,desiredSize:t.desiredSize});return r.promise},cancel:function cancel(t){(0,c.assert)(t instanceof Error,"cancel must have a valid reason");var r=(0,c.createPromiseCapability)();u.streamControllers[h].cancelCall=r;u.streamControllers[h].isClosed=!0;y.postMessage({sourceName:m,targetName:g,stream:d,streamId:h,reason:wrapReason(t)});return r.promise}},o)}},{key:"_createStreamSink",value:function _createStreamSink(t){var r=this,o=this.actionHandler[t.action],l=t.streamId,u=this.sourceName,h=t.sourceName,d=this.comObj,m={enqueue:function enqueue(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var m=this.desiredSize;this.desiredSize-=o;if(m>0&&this.desiredSize<=0){this.sinkCapability=(0,c.createPromiseCapability)();this.ready=this.sinkCapability.promise}r._postMessage({sourceName:u,targetName:h,stream:y,streamId:l,chunk:t},d)}},close:function close(){if(!this.isCancelled){this.isCancelled=!0;d.postMessage({sourceName:u,targetName:h,stream:g,streamId:l});delete r.streamSinks[l]}},error:function error(t){(0,c.assert)(t instanceof Error,"error must have a valid reason");if(!this.isCancelled){this.isCancelled=!0;d.postMessage({sourceName:u,targetName:h,stream:v,streamId:l,reason:wrapReason(t)})}},sinkCapability:(0,c.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};m.sinkCapability.resolve();m.ready=m.sinkCapability.promise;this.streamSinks[l]=m;new Promise((function(r){r(o(t.data,m))})).then((function(){d.postMessage({sourceName:u,targetName:h,stream:C,streamId:l,success:!0})}),(function(t){d.postMessage({sourceName:u,targetName:h,stream:C,streamId:l,reason:wrapReason(t)})}))}},{key:"_processStreamMessage",value:function _processStreamMessage(t){var r=t.streamId,o=this.sourceName,l=t.sourceName,u=this.comObj;switch(t.stream){case C:t.success?this.streamControllers[r].startCall.resolve():this.streamControllers[r].startCall.reject(wrapReason(t.reason));break;case k:t.success?this.streamControllers[r].pullCall.resolve():this.streamControllers[r].pullCall.reject(wrapReason(t.reason));break;case S:if(!this.streamSinks[r]){u.postMessage({sourceName:o,targetName:l,stream:k,streamId:r,success:!0});break}this.streamSinks[r].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[r].sinkCapability.resolve();this.streamSinks[r].desiredSize=t.desiredSize;var h=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(h&&h())})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:k,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:k,streamId:r,reason:wrapReason(t)})}));break;case y:(0,c.assert)(this.streamControllers[r],"enqueue should have stream controller");if(this.streamControllers[r].isClosed)break;this.streamControllers[r].controller.enqueue(t.chunk);break;case g:(0,c.assert)(this.streamControllers[r],"close should have stream controller");if(this.streamControllers[r].isClosed)break;this.streamControllers[r].isClosed=!0;this.streamControllers[r].controller.close();this._deleteStreamController(r);break;case v:(0,c.assert)(this.streamControllers[r],"error should have stream controller");this.streamControllers[r].controller.error(wrapReason(t.reason));this._deleteStreamController(r);break;case m:t.success?this.streamControllers[r].cancelCall.resolve():this.streamControllers[r].cancelCall.reject(wrapReason(t.reason));this._deleteStreamController(r);break;case d:if(!this.streamSinks[r])break;var w=this.streamSinks[t.streamId].onCancel;new Promise((function(r){r(w&&w(wrapReason(t.reason)))})).then((function(){u.postMessage({sourceName:o,targetName:l,stream:m,streamId:r,success:!0})}),(function(t){u.postMessage({sourceName:o,targetName:l,stream:m,streamId:r,reason:wrapReason(t)})}));this.streamSinks[r].sinkCapability.reject(wrapReason(t.reason));this.streamSinks[r].isCancelled=!0;delete this.streamSinks[r];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(t=function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}(l.default.mark((function _callee(t){return l.default.wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:r.next=2;return Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(t){return t&&t.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return r.stop()}}),_callee,this)}))),function _deleteStreamController(r){return t.apply(this,arguments)})},{key:"_postMessage",value:function _postMessage(t,r){r&&this.postMessageTransfers?this.comObj.postMessage(t,r):this.comObj.postMessage(t)}},{key:"destroy",value:function destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);var t;return MessageHandler}();r.MessageHandler=w},(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.PDFWorkerStream=void 0;var l=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(o(2)),c=o(4);function asyncGeneratorStep(t,r,o,l,c,u,h){try{var d=t[u](h),m=d.value}catch(t){o(t);return}d.done?r(m):Promise.resolve(m).then(l,c)}function _asyncToGenerator(t){return function(){var r=this,o=arguments;return new Promise((function(l,c){var u=t.apply(r,o);function _next(t){asyncGeneratorStep(u,l,c,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,l,c,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1;l.configurable=!0;"value"in l&&(l.writable=!0);Object.defineProperty(t,l.key,l)}}function _createClass(t,r,o){r&&_defineProperties(t.prototype,r);o&&_defineProperties(t,o);return t}var u=function(){function PDFWorkerStream(t){_classCallCheck(this,PDFWorkerStream);this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFWorkerStream,[{key:"getFullReader",value:function getFullReader(){(0,c.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new h(this._msgHandler);return this._fullRequestReader}},{key:"getRangeReader",value:function getRangeReader(t,r){var o=new d(t,r,this._msgHandler);this._rangeRequestReaders.push(o);return o}},{key:"cancelAllRequests",value:function cancelAllRequests(t){this._fullRequestReader&&this._fullRequestReader.cancel(t);this._rangeRequestReaders.slice(0).forEach((function(r){r.cancel(t)}))}}]);return PDFWorkerStream}();r.PDFWorkerStream=u;var h=function(){function PDFWorkerStreamReader(t){var r=this;_classCallCheck(this,PDFWorkerStreamReader);this._msgHandler=t;this.onProgress=null;this._contentLength=null;this._isRangeSupported=!1;this._isStreamingSupported=!1;var o=this._msgHandler.sendWithStream("GetReader");this._reader=o.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(t){r._isStreamingSupported=t.isStreamingSupported;r._isRangeSupported=t.isRangeSupported;r._contentLength=t.contentLength}))}_createClass(PDFWorkerStreamReader,[{key:"headersReady",get:function get(){return this._headersReady}},{key:"contentLength",get:function get(){return this._contentLength}},{key:"isStreamingSupported",get:function get(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function get(){return this._isRangeSupported}},{key:"read",value:(t=_asyncToGenerator(l.default.mark((function _callee(){var t,r;return l.default.wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamReader}(),d=function(){function PDFWorkerStreamRangeReader(t,r,o){_classCallCheck(this,PDFWorkerStreamRangeReader);this._msgHandler=o;this.onProgress=null;var l=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=l.getReader()}_createClass(PDFWorkerStreamRangeReader,[{key:"isStreamingSupported",get:function get(){return!1}},{key:"read",value:(t=_asyncToGenerator(l.default.mark((function _callee2(){var t,r;return l.default.wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:o.next=2;return this._reader.read();case 2:t=o.sent;r=t.value;if(!t.done){o.next=7;break}return o.abrupt("return",{value:void 0,done:!0});case 7:return o.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return o.stop()}}),_callee2,this)}))),function read(){return t.apply(this,arguments)})},{key:"cancel",value:function cancel(t){this._reader.cancel(t)}}]);var t;return PDFWorkerStreamRangeReader}()}],r={};function __w_pdfjs_require__(o){var l=r[o];if(void 0!==l)return l.exports;var c=r[o]={id:o,loaded:!1,exports:{}};t[o].call(c.exports,c,c.exports,__w_pdfjs_require__);c.loaded=!0;return c.exports}__w_pdfjs_require__.d=(t,r)=>{for(var o in r)__w_pdfjs_require__.o(r,o)&&!__w_pdfjs_require__.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})};__w_pdfjs_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);__w_pdfjs_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};__w_pdfjs_require__.nmd=t=>{t.paths=[];t.children||(t.children=[]);return t};var o={};(()=>{"use strict";var t=o;Object.defineProperty(t,"__esModule",{value:!0});Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function get(){return r.WorkerMessageHandler}});var r=__w_pdfjs_require__(1)})();return o})()}));