!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("./pdf.worker.js",[],t):"object"==typeof exports?exports["./pdf.worker.js"]=t():e["./pdf.worker.js"]=e.pdfjsWorker=t()}(this,function(){return function(e){function t(a){if(r[a])return r[a].exports;var n=r[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(a,n,function(t){return e[t]}.bind(null,n));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";var a=r(1);t.WorkerMessageHandler=a.WorkerMessageHandler},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){return s(e)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],a=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(c){n=!0,i=c}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw i}}return r}}function s(e){if(Array.isArray(e))return e}function c(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(a,n)}function l(e){return function(){var t=this,r=arguments;return new Promise(function(a,n){function i(e){c(s,a,n,i,o,"next",e)}function o(e){c(s,a,n,i,o,"throw",e)}var s=e.apply(t,r);i(void 0)})}}function u(e){return"function"==typeof e.postMessage&&"onmessage"in e}Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var h=a(r(2)),f=r(5),d=r(183),g=r(184),p=a(r(8)),m=r(223),v=r(224),b=r(186),y=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,f.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=y;var w={setup:function(e,t){var r=!1;e.on("test",function(t){if(!r){if(r=!0,!(t instanceof Uint8Array))return void e.send("test",null);var a=255===t[0];e.postMessageTransfers=a,e.send("test",{supportTransfers:a})}}),e.on("configure",function(e){(0,f.setVerbosityLevel)(e.verbosity)}),e.on("GetDocRequest",function(e){return w.createDocumentHandler(e,t)})},createDocumentHandler:function(e,t){function r(){if(w)throw new Error("Worker was terminated")}function a(e){S.push(e)}function i(e){e.finish();var t=S.indexOf(e);S.splice(t,1)}function o(e){return s.apply(this,arguments)}function s(){return s=l(h["default"].mark(function e(t){var r,a,i,o;return h["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.ensureDoc("checkHeader");case 2:return e.next=4,p.ensureDoc("parseStartXRef");case 4:return e.next=6,p.ensureDoc("parse",[t]);case 6:if(t){e.next=9;break}return e.next=9,p.ensureDoc("checkFirstPage");case 9:return e.next=11,Promise.all([p.ensureDoc("numPages"),p.ensureDoc("fingerprint")]);case 11:return r=e.sent,a=n(r,2),i=a[0],o=a[1],e.abrupt("return",{numPages:i,fingerprint:o});case 16:case"end":return e.stop()}},e)})),s.apply(this,arguments)}function c(e,t){var a,n=(0,f.createPromiseCapability)(),i=e.source;if(i.data){try{a=new g.LocalPdfManager(O,i.data,i.password,t,P),n.resolve(a)}catch(o){n.reject(o)}return n.promise}var s,c=[];try{s=new v.PDFWorkerStream(T)}catch(o){return n.reject(o),n.promise}var l=s.getFullReader();l.headersReady.then(function(){if(l.isRangeSupported){var e=i.disableAutoFetch||l.isStreamingSupported;a=new g.NetworkPdfManager(O,s,{msgHandler:T,password:i.password,length:l.contentLength,disableAutoFetch:e,rangeChunkSize:i.rangeChunkSize},t,P);for(var r=0;r=f.VerbosityLevel.INFOS?Date.now():0;n.getOperatorList({handler:T,sink:t,task:o,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){i(o),s&&(0,f.info)("page=".concat(r+1," - getOperatorList: time=")+"".concat(Date.now()-s,"ms, len=").concat(e.length)),t.close()},function(e){i(o),o.terminated||(T.send("UnsupportedFeature",{featureId:f.UNSUPPORTED_FEATURES.unknown}),t.error(e))})})},this),T.on("GetTextContent",function(e,t){var r=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},p.getPage(r).then(function(n){var o=new y("GetTextContent: page "+r);a(o);var s=x>=f.VerbosityLevel.INFOS?Date.now():0;n.extractTextContent({handler:T,task:o,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(){i(o),s&&(0,f.info)("page=".concat(r+1," - getTextContent: time=")+"".concat(Date.now()-s,"ms")),t.close()},function(e){i(o),o.terminated||t.error(e)})})}),T.on("FontFallback",function(e){return p.fontFallback(e.id,T)}),T.on("Cleanup",function(e){return p.cleanup()}),T.on("Terminate",function(e){w=!0,p&&(p.terminate(new f.AbortException("Worker was terminated.")),p=null),k&&k(new f.AbortException("Worker was terminated.")),(0,d.clearPrimitiveCaches)();var t=[];return S.forEach(function(e){t.push(e.finished),e.terminate()}),Promise.all(t).then(function(){T.destroy(),T=null})}),T.on("Ready",function(t){u(e),e=null}),I},initializeFromPort:function(e){var t=new m.MessageHandler("worker","main",e);w.setup(t,e),t.send("ready",null)}};t.WorkerMessageHandler=w,"undefined"==typeof window&&!(0,p["default"])()&&"undefined"!=typeof self&&u(self)&&w.initializeFromPort(self)},function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){"use strict";(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){function r(e,t,r,a){var i=t&&t.prototype instanceof n?t:n,o=Object.create(i.prototype),s=new d(a||[]);return o._invoke=l(e,r,s),o}function a(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(a){return{type:"throw",arg:a}}}function n(){}function i(){}function o(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){function r(n,i,o,s){var c=a(e[n],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"===t(u)&&b.call(u,"__await")?Promise.resolve(u.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},function(e){return r("throw",e,o,s)})}s(c.arg)}function n(e,t){function a(){return new Promise(function(a,n){r(e,t,a,n)})}return i=i?i.then(a,a):a()}var i;this._invoke=n}function l(e,t,r){var n=x;return function(i,o){if(n===A)throw new Error("Generator is already running");if(n===O){if("throw"===i)throw o;return p()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var c=u(s,r);if(c){if(c===P)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===x)throw n=O,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=A;var l=a(e,t,r);if("normal"===l.type){if(n=r.done?O:C,l.arg===P)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=O,r.method="throw",r.arg=l.arg)}}}function u(e,t){var r=e.iterator[t.method];if(r===m){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=m,u(e,t),"throw"===t.method))return P;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var n=a(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,P;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=m),t.delegate=null,P):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,P)}function h(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(h,this),this.reset(!0)}function g(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){for(;++r=0;--a){var n=this.tryEntries[a],i=n.completion;if("root"===n.tryLoc)return t("end");if(n.tryLoc<=this.prev){var o=b.call(n,"catchLoc"),s=b.call(n,"finallyLoc");if(o&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&b.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),f(r),P}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var a=r.completion;if("throw"===a.type){var n=a.arg;f(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:g(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=m),P}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(4)(e))},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";function a(e,t){for(var r=0;r=ce.INFOS&&console.log("Info: ".concat(e))}function p(e){de>=ce.WARNINGS}function m(e){throw new Error(e)}function v(e,t){e||m(t)}function b(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function y(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function w(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(y(r))return r}catch(a){}return null}function k(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function S(e){return"string"!=typeof e?(p("The argument for removeNullCharacters must be a string."),e):e.replace(Se,"")}function x(e){v(null!==e&&"object"===i(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function I(e){return e<=0?0:Math.ceil(Math.log2(e))}function T(e,t){return e[t]<<24>>24}function E(e,t){return e[t]<<8|e[t+1]}function F(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function B(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function _(){try{return new Function(""),!0}catch(e){return!1}}function R(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var a=2;ae[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function a(e,t){return e-t}var n=[t[0],t[2],r[0],r[2]].sort(a),i=[t[1],t[3],r[1],r[3]].sort(a),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),n[0]===t[0]&&n[1]===r[0]||n[0]===r[0]&&n[1]===t[0]?(o[0]=n[1],o[2]=n[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=Ce;var Ae=[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],Oe=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!a&&URL.createObjectURL){var n=new Blob([t],{type:r});return URL.createObjectURL(n)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o>2,f=(3&c)<<4|l>>4,d=o+1>6:64,g=o+21?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){String.prototype.startsWith||r(9)}(),function(){String.prototype.endsWith||r(61)}(),function(){String.prototype.includes||r(63)}(),function(){Array.prototype.includes||r(65)}(),function(){Array.from||r(72)}(),function(){Object.assign||r(93)}(),function(){Math.log2||(Math.log2=r(96))}(),function(){Number.isNaN||(Number.isNaN=r(98))}(),function(){Number.isInteger||(Number.isInteger=r(100))}(),function(){n.Promise&&n.Promise.prototype&&n.Promise.prototype["finally"]||(n.Promise=r(103))}(),function(){n.URL=r(125)}(),function(){n.WeakMap||(n.WeakMap=r(132))}(),function(){n.WeakSet||(n.WeakSet=r(142))}(),function(){String.prototype.codePointAt||r(144)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(146))}(),function(){n.Symbol||r(148)}(),function(){String.prototype.padStart||r(171)}(),function(){String.prototype.padEnd||r(176)}(),function(){Object.values||(Object.values=r(178))}()}},function(e,t,r){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){return"object"===("undefined"==typeof process?"undefined":a(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron}},function(e,t,r){r(10);var a=r(58);e.exports=a("String","startsWith")},function(e,t,r){"use strict";var a=r(11),n=r(47),i=r(53),o=r(21),s=r(57),c="".startsWith,l=Math.min;a({target:"String",proto:!0,forced:!s("startsWith")},{startsWith:function(e){var t=String(o(this));i(e);var r=n(l(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return c?c.call(t,a,r):t.slice(r,r+a.length)===a}})},function(e,t,r){var a=r(12),n=r(13).f,i=r(27),o=r(30),s=r(32),c=r(40),l=r(52);e.exports=function(e,t){var r,u,h,f,d,g,p=e.target,m=e.global,v=e.stat;if(u=m?a:v?a[p]||s(p,{}):(a[p]||{}).prototype)for(h in t){if(d=t[h],e.noTargetGet?(g=n(u,h),f=g&&g.value):f=u[h],r=l(m?h:p+(v?".":"#")+h,e.forced),!r&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),o(u,h,d,e)}}},function(e,t){var r="object",a=function(e){return e&&e.Math==Math&&e};e.exports=a(typeof globalThis==r&&globalThis)||a(typeof window==r&&window)||a(typeof self==r&&self)||a(typeof global==r&&global)||Function("return this")()},function(e,t,r){var a=r(14),n=r(16),i=r(17),o=r(18),s=r(22),c=r(24),l=r(25),u=Object.getOwnPropertyDescriptor;t.f=a?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(r){}if(c(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){var a=r(15);e.exports=!a(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){"use strict";var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!a.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var a=r(19),n=r(21);e.exports=function(e){return a(n(e))}},function(e,t,r){var a=r(15),n=r(20),i="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==n(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var a=r(23);e.exports=function(e,t){if(!a(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!a(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var a=r(14),n=r(15),i=r(26);e.exports=!a&&!n(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var a=r(12),n=r(23),i=a.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var a=r(14),n=r(28),i=r(17);e.exports=a?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var a=r(14),n=r(25),i=r(29),o=r(22),s=Object.defineProperty;t.f=a?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),n)try{return s(e,t,r)}catch(a){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var a=r(23);e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var a=r(12),n=r(31),i=r(27),o=r(24),s=r(32),c=r(34),l=r(35),u=l.get,h=l.enforce,f=String(c).split("toString");n("inspectSource",function(e){return c.call(e)}),(e.exports=function(e,t,r,n){var c=!!n&&!!n.unsafe,l=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet;return"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),h(r).source=f.join("string"==typeof t?t:"")),e===a?void(l?e[t]=r:s(t,r)):(c?!u&&e[t]&&(l=!0):delete e[t],void(l?e[t]=r:i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||c.call(this)})},function(e,t,r){var a=r(12),n=r(32),i=r(33),o="__core-js_shared__",s=a[o]||n(o,{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var a=r(12),n=r(27);e.exports=function(e,t){try{n(a,e,t)}catch(r){a[e]=t}return t}},function(e,t){e.exports=!1},function(e,t,r){var a=r(31);e.exports=a("native-function-to-string",Function.toString)},function(e,t,r){var a,n,i,o=r(36),s=r(12),c=r(23),l=r(27),u=r(24),h=r(37),f=r(39),d=s.WeakMap,g=function(e){return i(e)?n(e):a(e,{})},p=function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var m=new d,v=m.get,b=m.has,y=m.set;a=function(e,t){return y.call(m,e,t),t},n=function(e){return v.call(m,e)||{}},i=function(e){return b.call(m,e)}}else{var w=h("state");f[w]=!0,a=function(e,t){return l(e,w,t),t},n=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:a,get:n,has:i,enforce:g,getterFor:p}},function(e,t,r){var a=r(12),n=r(34),i=a.WeakMap;e.exports="function"==typeof i&&/native code/.test(n.call(i))},function(e,t,r){var a=r(31),n=r(38),i=a("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},function(e,t){var r=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+a).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var a=r(24),n=r(41),i=r(13),o=r(28);e.exports=function(e,t){for(var r=n(t),s=o.f,c=i.f,l=0;lc;)a(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){var a=r(18),n=r(47),i=r(49),o=function(e){return function(t,r,o){var s,c=a(t),l=n(c.length),u=i(o,l);if(e&&r!=r){for(;l>u;)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var a=r(48),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},function(e,t){var r=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:r)(e)}},function(e,t,r){var a=r(48),n=Math.max,i=Math.min;e.exports=function(e,t){var r=a(e);return r<0?n(r+t,0):i(r,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var a=r(15),n=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==l||r!=c&&("function"==typeof t?a(t):!!t)},o=i.normalize=function(e){return String(e).replace(n,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,r){var a=r(54);e.exports=function(e){if(a(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var a=r(23),n=r(20),i=r(55),o=i("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==n(e))}},function(e,t,r){var a=r(12),n=r(31),i=r(38),o=r(56),s=a.Symbol,c=n("wks");e.exports=function(e){return c[e]||(c[e]=o&&s[e]||(o?s:i)("Symbol."+e))}},function(e,t,r){var a=r(15);e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},function(e,t,r){var a=r(55),n=a("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(a){}}return!1}},function(e,t,r){var a=r(12),n=r(59),i=Function.call;e.exports=function(e,t,r){return n(i,a[e].prototype[t],r)}},function(e,t,r){var a=r(60);e.exports=function(e,t,r){if(a(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,n){return e.call(t,r,a,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){r(62);var a=r(58);e.exports=a("String","endsWith")},function(e,t,r){"use strict";var a=r(11),n=r(47),i=r(53),o=r(21),s=r(57),c="".endsWith,l=Math.min;a({target:"String",proto:!0,forced:!s("endsWith")},{endsWith:function(e){var t=String(o(this));i(e);var r=arguments.length>1?arguments[1]:void 0,a=n(t.length),s=void 0===r?a:l(n(r),a),u=String(e);return c?c.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){r(64);var a=r(58);e.exports=a("String","includes")},function(e,t,r){"use strict";var a=r(11),n=r(53),i=r(21),o=r(57);a({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(i(this)).indexOf(n(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(66);var a=r(58);e.exports=a("Array","includes")},function(e,t,r){"use strict";var a=r(11),n=r(46).includes,i=r(67);a({target:"Array",proto:!0},{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,r){var a=r(55),n=r(68),i=r(27),o=a("unscopables"),s=Array.prototype;void 0==s[o]&&i(s,o,n(null)),e.exports=function(e){s[o][e]=!0}},function(e,t,r){var a=r(29),n=r(69),i=r(50),o=r(39),s=r(71),c=r(26),l=r(37),u=l("IE_PROTO"),h="prototype",f=function(){},d=function(){var e,t=c("iframe"),r=i.length,a="<",n="script",o=">",l="java"+n+":";for(t.style.display="none",s.appendChild(t),t.src=String(l),e=t.contentWindow.document,e.open(),e.write(a+n+o+"document.F=Object"+a+"/"+n+o),e.close(),d=e.F;r--;)delete d[h][i[r]];return d()};e.exports=Object.create||function(e,t){var r;return null!==e?(f[h]=a(e),r=new f,f[h]=null,r[u]=e):r=d(),void 0===t?r:n(r,t)},o[u]=!0},function(e,t,r){var a=r(14),n=r(28),i=r(29),o=r(70);e.exports=a?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},function(e,t,r){var a=r(45),n=r(50);e.exports=Object.keys||function(e){return a(e,n)}},function(e,t,r){var a=r(42);e.exports=a("document","documentElement")},function(e,t,r){r(73),r(85);var a=r(43);e.exports=a.Array.from},function(e,t,r){"use strict";var a=r(74).charAt,n=r(35),i=r(75),o="String Iterator",s=n.set,c=n.getterFor(o);i(String,"String",function(e){s(this,{type:o,string:String(e),index:0})},function(){var e,t=c(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=a(r,n),t.index+=e.length,{value:e,done:!1})})},function(e,t,r){var a=r(48),n=r(21),i=function(e){return function(t,r){var i,o,s=String(n(t)),c=a(r),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):i:e?s.slice(c,c+2):(i-55296<<10)+(o-56320)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";var a=r(11),n=r(76),i=r(78),o=r(83),s=r(81),c=r(27),l=r(30),u=r(55),h=r(33),f=r(82),d=r(77),g=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,u,d,k,S){n(r,t,u);var x,C,A,O=function(e){if(e===d&&F)return F;if(!p&&e in T)return T[e];switch(e){case v:return function(){return new r(this,e)};case b:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",I=!1,T=e.prototype,E=T[m]||T["@@iterator"]||d&&T[d],F=!p&&E||O(d),B="Array"==t?T.entries||E:E;if(B&&(x=i(B.call(new e)),g!==Object.prototype&&x.next&&(h||i(x)===g||(o?o(x,g):"function"!=typeof x[m]&&c(x,m,w)),s(x,P,!0,!0),h&&(f[P]=w))),d==b&&E&&E.name!==b&&(I=!0,F=function(){return E.call(this)}),h&&!S||T[m]===F||c(T,m,F),f[t]=F,d)if(C={values:O(b),keys:k?F:O(v),entries:O(y)},S)for(A in C)!p&&!I&&A in T||l(T,A,C[A]);else a({target:t,proto:!0,forced:p||I},C);return C}},function(e,t,r){"use strict";var a=r(77).IteratorPrototype,n=r(68),i=r(17),o=r(81),s=r(82),c=function(){return this};e.exports=function(e,t,r){var l=t+" Iterator";return e.prototype=n(a,{next:i(1,r)}),o(e,l,!1,!0),s[l]=c,e}},function(e,t,r){"use strict";var a,n,i,o=r(78),s=r(27),c=r(24),l=r(55),u=r(33),h=l("iterator"),f=!1,d=function(){return this};[].keys&&(i=[].keys(),"next"in i?(n=o(o(i)),n!==Object.prototype&&(a=n)):f=!0),void 0==a&&(a={}),u||c(a,h)||s(a,h,d),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:f}},function(e,t,r){var a=r(24),n=r(79),i=r(37),o=r(80),s=i("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=n(e),a(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,r){var a=r(21);e.exports=function(e){return Object(a(e))}},function(e,t,r){var a=r(15);e.exports=!a(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){var a=r(28).f,n=r(24),i=r(55),o=i("toStringTag");e.exports=function(e,t,r){e&&!n(e=r?e:e.prototype,o)&&a(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){var a=r(29),n=r(84);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return a(r),n(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var a=r(23);e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var a=r(11),n=r(86),i=r(92),o=!i(function(e){Array.from(e)});a({target:"Array",stat:!0,forced:o},{from:n})},function(e,t,r){"use strict";var a=r(59),n=r(79),i=r(87),o=r(88),s=r(47),c=r(89),l=r(90);e.exports=function(e){var t,r,u,h,f=n(e),d="function"==typeof this?this:Array,g=arguments.length,p=g>1?arguments[1]:void 0,m=void 0!==p,v=0,b=l(f);if(m&&(p=a(p,g>2?arguments[2]:void 0,2)),void 0==b||d==Array&&o(b))for(t=s(f.length),r=new d(t);t>v;v++)c(r,v,m?p(f[v],v):f[v]);else for(h=b.call(f),r=new d;!(u=h.next()).done;v++)c(r,v,m?i(h,p,[u.value,v],!0):u.value);return r.length=v,r}},function(e,t,r){var a=r(29);e.exports=function(e,t,r,n){try{return n?t(a(r)[0],r[1]):t(r)}catch(i){var o=e["return"];throw void 0!==o&&a(o.call(e)),i}}},function(e,t,r){var a=r(55),n=r(82),i=a("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){"use strict";var a=r(22),n=r(28),i=r(17);e.exports=function(e,t,r){var o=a(t);o in e?n.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){var a=r(91),n=r(82),i=r(55),o=i("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||n[a(e)]}},function(e,t,r){var a=r(20),n=r(55),i=n("toStringTag"),o="Arguments"==a(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(r){}};e.exports=function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=s(t=Object(e),i))?r:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var a=r(55),n=a("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},"return":function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(c){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},e(a)}catch(o){}return r}},function(e,t,r){r(94);var a=r(43);e.exports=a.Object.assign},function(e,t,r){var a=r(11),n=r(95);a({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},function(e,t,r){"use strict";var a=r(14),n=r(15),i=r(70),o=r(51),s=r(16),c=r(79),l=r(19),u=Object.assign;e.exports=!u||n(function(){var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach(function(e){t[e]=e}),7!=u({},e)[r]||i(u({},t)).join("")!=a})?function(e,t){for(var r=c(e),n=arguments.length,u=1,h=o.f,f=s.f;n>u;)for(var d,g=l(arguments[u++]),p=h?i(g).concat(h(g)):i(g),m=p.length,v=0;m>v;)d=p[v++],a&&!f.call(g,d)||(r[d]=g[d]);return r}:u},function(e,t,r){r(97);var a=r(43);e.exports=a.Math.log2},function(e,t,r){var a=r(11),n=Math.log,i=Math.LN2;a({target:"Math",stat:!0},{log2:function(e){return n(e)/i}})},function(e,t,r){r(99);var a=r(43);e.exports=a.Number.isNaN},function(e,t,r){var a=r(11);a({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){r(101);var a=r(43);e.exports=a.Number.isInteger},function(e,t,r){var a=r(11),n=r(102);a({target:"Number",stat:!0},{isInteger:n})},function(e,t,r){var a=r(23),n=Math.floor;e.exports=function(e){return!a(e)&&isFinite(e)&&n(e)===e}},function(e,t,r){r(104),r(73),r(106),r(109),r(123),r(124);var a=r(43);e.exports=a.Promise},function(e,t,r){var a=r(30),n=r(105),i=Object.prototype;n!==i.toString&&a(i,"toString",n,{unsafe:!0})},function(e,t,r){"use strict";var a=r(91),n=r(55),i=n("toStringTag"),o={};o[i]="z",e.exports="[object z]"!==String(o)?function(){return"[object "+a(this)+"]"}:o.toString},function(e,t,r){var a=r(12),n=r(107),i=r(108),o=r(27),s=r(55),c=s("iterator"),l=s("toStringTag"),u=i.values;for(var h in n){var f=a[h],d=f&&f.prototype;if(d){if(d[c]!==u)try{o(d,c,u)}catch(g){d[c]=u}if(d[l]||o(d,l,h),n[h])for(var p in i)if(d[p]!==i[p])try{o(d,p,i[p])}catch(g){d[p]=i[p]}}}},function(e,t){e.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(e,t,r){"use strict";var a=r(18),n=r(67),i=r(82),o=r(35),s=r(75),c="Array Iterator",l=o.set,u=o.getterFor(c);e.exports=s(Array,"Array",function(e,t){l(this,{type:c,target:a(e),index:0,kind:t})},function(){var e=u(this),t=e.target,r=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:a,done:!1}:"values"==r?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var a,n,i,o,s=r(11),c=r(33),l=r(12),u=r(43),h=r(110),f=r(30),d=r(111),g=r(81),p=r(112),m=r(23),v=r(60),b=r(113),y=r(20),w=r(114),k=r(92),S=r(115),x=r(116).set,C=r(117),A=r(119),O=r(121),P=r(120),I=r(122),T=r(118),E=r(35),F=r(52),B=r(55),_=B("species"),R="Promise",L=E.get,M=E.set,D=E.getterFor(R),N=h,U=l.TypeError,j=l.document,q=l.process,z=l.fetch,H=q&&q.versions,G=H&&H.v8||"",W=P.f,X=W,V="process"==y(q),K=!!(j&&j.createEvent&&l.dispatchEvent),Y="unhandledrejection",J="rejectionhandled",Z=0,Q=1,$=2,ee=1,te=2,re=F(R,function(){var e=N.resolve(1),t=function(){},r=(e.constructor={})[_]=function(e){e(t,t)};return!((V||"function"==typeof PromiseRejectionEvent)&&(!c||e["finally"])&&e.then(t)instanceof r&&0!==G.indexOf("6.6")&&T.indexOf("Chrome/66")===-1)}),ae=re||!k(function(e){N.all(e)["catch"](function(){})}),ne=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,r){if(!t.notified){t.notified=!0;var a=t.reactions;C(function(){for(var n=t.value,i=t.state==Q,o=0;a.length>o;){var s,c,l,u=a[o++],h=i?u.ok:u.fail,f=u.resolve,d=u.reject,g=u.domain;try{h?(i||(t.rejection===te&&le(e,t),t.rejection=ee),h===!0?s=n:(g&&g.enter(),s=h(n),g&&(g.exit(),l=!0)),s===u.promise?d(U("Promise-chain cycle")):(c=ne(s))?c.call(s,f,d):f(s)):d(n)}catch(p){g&&!l&&g.exit(),d(p)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&se(e,t)})}},oe=function(e,t,r){var a,n;K?(a=j.createEvent("Event"),a.promise=t,a.reason=r,a.initEvent(e,!1,!0),l.dispatchEvent(a)):a={promise:t,reason:r},(n=l["on"+e])?n(a):e===Y&&O("Unhandled promise rejection",r)},se=function(e,t){x.call(l,function(){var r,a=t.value,n=ce(t);if(n&&(r=I(function(){V?q.emit("unhandledRejection",a,e):oe(Y,e,a)}),t.rejection=V||ce(t)?te:ee,r.error))throw r.value})},ce=function(e){return e.rejection!==ee&&!e.parent},le=function(e,t){x.call(l,function(){V?q.emit("rejectionHandled",e):oe(J,e,t.value)})},ue=function(e,t,r,a){return function(n){e(t,r,n,a)}},he=function(e,t,r,a){t.done||(t.done=!0,a&&(t=a),t.value=r,t.state=$,ie(e,t,!0))},fe=function(e,t,r,a){if(!t.done){t.done=!0,a&&(t=a);try{if(e===r)throw U("Promise can't be resolved itself");var n=ne(r);n?C(function(){var a={done:!1};try{n.call(r,ue(fe,e,a,t),ue(he,e,a,t))}catch(i){he(e,a,i,t)}}):(t.value=r,t.state=Q,ie(e,t,!1))}catch(i){he(e,{done:!1},i,t)}}};re&&(N=function(e){b(this,N,R),v(e),a.call(this);var t=L(this);try{e(ue(fe,this,t),ue(he,this,t))}catch(r){he(this,t,r)}},a=function(e){M(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},a.prototype=d(N.prototype,{then:function(e,t){var r=D(this),a=W(S(this,N));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=V?q.domain:void 0,r.parent=!0,r.reactions.push(a),r.state!=Z&&ie(this,r,!1),a.promise},"catch":function(e){return this.then(void 0,e)}}),n=function(){var e=new a,t=L(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(he,e,t)},P.f=W=function(e){return e===N||e===i?new n(e):X(e)},c||"function"!=typeof h||(o=h.prototype.then,f(h.prototype,"then",function(e,t){var r=this;return new N(function(e,t){o.call(r,e,t)}).then(e,t)}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return A(N,z.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:re},{Promise:N}),g(N,R,!1,!0),p(R),i=u[R],s({target:R,stat:!0,forced:re},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:R,stat:!0,forced:c||re},{resolve:function(e){return A(c&&this===i?N:this,e)}}),s({target:R,stat:!0,forced:ae},{all:function(e){var t=this,r=W(t),a=r.resolve,n=r.reject,i=I(function(){var r=v(t.resolve),i=[],o=0,s=1;w(e,function(e){var c=o++,l=!1;i.push(void 0),s++,r.call(t,e).then(function(e){l||(l=!0,i[c]=e,--s||a(i))},n)}),--s||a(i)});return i.error&&n(i.value),r.promise},race:function(e){var t=this,r=W(t),a=r.reject,n=I(function(){var n=v(t.resolve);w(e,function(e){n.call(t,e).then(r.resolve,a)})});return n.error&&a(n.value),r.promise}})},function(e,t,r){var a=r(12);e.exports=a.Promise},function(e,t,r){var a=r(30);e.exports=function(e,t,r){for(var n in t)a(e,n,t[n],r);return e}},function(e,t,r){"use strict";var a=r(42),n=r(28),i=r(55),o=r(14),s=i("species");e.exports=function(e){var t=a(e),r=n.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var a=r(29),n=r(88),i=r(47),o=r(59),s=r(90),c=r(87),l=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,r,u,h){var f,d,g,p,m,v,b=o(t,r,u?2:1);if(h)f=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(n(d)){for(g=0,p=i(e.length);p>g;g++)if(m=u?b(a(v=e[g])[0],v[1]):b(e[g]),m&&m instanceof l)return m;return new l((!1))}f=d.call(e)}for(;!(v=f.next()).done;)if(m=c(f,b,v.value,u),m&&m instanceof l)return m;return new l((!1))};u.stop=function(e){return new l((!0),e)}},function(e,t,r){var a=r(29),n=r(60),i=r(55),o=i("species");e.exports=function(e,t){var r,i=a(e).constructor;return void 0===i||void 0==(r=a(i)[o])?t:n(r)}},function(e,t,r){var a,n,i,o=r(12),s=r(15),c=r(20),l=r(59),u=r(71),h=r(26),f=o.location,d=o.setImmediate,g=o.clearImmediate,p=o.process,m=o.MessageChannel,v=o.Dispatch,b=0,y={},w="onreadystatechange",k=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},S=function(e){return function(){k(e)}},x=function(e){k(e.data)},C=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};d&&g||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return y[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},a(b),b},g=function(e){delete y[e]},"process"==c(p)?a=function(e){p.nextTick(S(e))}:v&&v.now?a=function(e){v.now(S(e))}:m?(n=new m,i=n.port2,n.port1.onmessage=x,a=l(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(C)?a=w in h("script")?function(e){u.appendChild(h("script"))[w]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(S(e),0)}:(a=C,o.addEventListener("message",x,!1))),e.exports={set:d,clear:g}},function(e,t,r){var a,n,i,o,s,c,l,u,h=r(12),f=r(13).f,d=r(20),g=r(116).set,p=r(118),m=h.MutationObserver||h.WebKitMutationObserver,v=h.process,b=h.Promise,y="process"==d(v),w=f(h,"queueMicrotask"),k=w&&w.value;k||(a=function(){var e,t;for(y&&(e=v.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(r){throw n?o():i=void 0,r}}i=void 0,e&&e.enter()},y?o=function(){v.nextTick(a)}:m&&!/(iphone|ipod|ipad).*applewebkit/i.test(p)?(s=!0,c=document.createTextNode(""),new m(a).observe(c,{characterData:!0}),o=function(){c.data=s=!s}):b&&b.resolve?(l=b.resolve(void 0),u=l.then,o=function(){u.call(l,a)}):o=function(){g.call(h,a)}),e.exports=k||function(e){var t={fn:e,next:void 0};i&&(i.next=t),n||(n=t,o()),i=t}},function(e,t,r){var a=r(42);e.exports=a("navigator","userAgent")||""},function(e,t,r){var a=r(29),n=r(23),i=r(120);e.exports=function(e,t){if(a(e),n(t)&&t.constructor===e)return t;var r=i.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){"use strict";var a=r(60),n=function(e){var t,r;this.promise=new e(function(e,a){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=a}),this.resolve=a(t),this.reject=a(r)};e.exports.f=function(e){return new n(e)}},function(e,t,r){var a=r(12);e.exports=function(e,t){var r=a.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,r){"use strict";var a=r(11),n=r(60),i=r(120),o=r(122),s=r(114);a({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),a=r.resolve,c=r.reject,l=o(function(){var r=n(t.resolve),i=[],o=0,c=1;s(e,function(e){var n=o++,s=!1;i.push(void 0),c++,r.call(t,e).then(function(e){s||(s=!0,i[n]={status:"fulfilled",value:e},--c||a(i))},function(e){s||(s=!0,i[n]={status:"rejected",reason:e},--c||a(i))})}),--c||a(i)});return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var a=r(11),n=r(33),i=r(110),o=r(42),s=r(115),c=r(119),l=r(30);a({target:"Promise",proto:!0,real:!0},{"finally":function(e){var t=s(this,o("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then(function(){return r})}:e,r?function(r){return c(t,e()).then(function(){throw r})}:e)}}),n||"function"!=typeof i||i.prototype["finally"]||l(i.prototype,"finally",o("Promise").prototype["finally"])},function(e,t,r){r(126),r(131),r(129);var a=r(43);e.exports=a.URL},function(e,t,r){"use strict";r(73);var a,n=r(11),i=r(14),o=r(127),s=r(12),c=r(69),l=r(30),u=r(113),h=r(24),f=r(95),d=r(86),g=r(74).codeAt,p=r(128),m=r(81),v=r(129),b=r(35),y=s.URL,w=v.URLSearchParams,k=v.getState,S=b.set,x=b.getterFor("URL"),C=Math.floor,A=Math.pow,O="Invalid authority",P="Invalid scheme",I="Invalid host",T="Invalid port",E=/[A-Za-z]/,F=/[\d+\-.A-Za-z]/,B=/\d/,_=/^(0x|0X)/,R=/^[0-7]+$/,L=/^\d+$/,M=/^[\dA-Fa-f]+$/,D=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,q=function(e,t){var r,a,n;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return I;if(r=H(t.slice(1,-1)),!r)return I;e.host=r}else if(Q(e)){if(t=p(t),D.test(t))return I;if(r=z(t),null===r)return I;e.host=r}else{if(N.test(t))return I;for(r="",a=d(t),n=0;n4)return e;for(r=[],a=0;a1&&"0"==n.charAt(0)&&(i=_.test(n)?16:8,n=n.slice(8==i?1:2)),""===n)o=0;else{if(!(10==i?L:8==i?R:M).test(n))return e;o=parseInt(n,i)}r.push(o)}for(a=0;a=A(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),a=0;a6)return;for(a=0;f();){if(n=null,a>0){if(!("."==f()&&a<4))return;h++}if(!B.test(f()))return;for(;B.test(f());){if(i=parseInt(f(),10),null===n)n=i;else{if(0==n)return;n=10*n+i}if(n>255)return;h++}c[l]=256*c[l]+n,a++,2!=a&&4!=a||l++}if(4!=a)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;c[l++]=t}else{if(null!==u)return;h++,l++,u=l}}if(null!==u)for(o=l-u,l=7;0!=l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!=l)return;return c},G=function(e){for(var t=null,r=1,a=null,n=0,i=0;i<8;i++)0!==e[i]?(n>r&&(t=a,r=n),a=null,n=0):(null===a&&(a=i),++n);return n>r&&(t=a,r=n),t},W=function(e){var t,r,a,n;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=C(e/256);return t.join(".")}if("object"==typeof e){for(t="",a=G(e),r=0;r<8;r++)n&&0===e[r]||(n&&(n=!1),a===r?(t+=r?":":"::",n=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},X={},V=f({},X,{ " ":1,'"':1,"<":1,">":1,"`":1}),K=f({},V,{"#":1,"?":1,"{":1,"}":1}),Y=f({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),J=function(e,t){var r=g(e,0);return r>32&&r<127&&!h(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},Q=function(e){return h(Z,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var r;return 2==e.length&&E.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},re=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ae=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&te(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},ce={},le={},ue={},he={},fe={},de={},ge={},pe={},me={},ve={},be={},ye={},we={},ke={},Se={},xe={},Ce={},Ae={},Oe={},Pe=function(e,t,r,n){var i,o,s,c,l=r||oe,u=0,f="",g=!1,p=!1,m=!1;for(r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(j,""),i=d(t);u<=i.length;){switch(o=i[u],l){case oe:if(!o||!E.test(o)){if(r)return P;l=ce;continue}f+=o.toLowerCase(),l=se;break;case se:if(o&&(F.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(r)return P;f="",l=ce,u=0;continue}if(r&&(Q(e)!=h(Z,f)||"file"==f&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,r)return void(Q(e)&&Z[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=ye:Q(e)&&n&&n.scheme==e.scheme?l=le:Q(e)?l=de:"/"==i[u+1]?(l=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Ce)}break;case ce:if(!n||n.cannotBeABaseURL&&"#"!=o)return P;if(n.cannotBeABaseURL&&"#"==o){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,l=Oe;break}l="file"==n.scheme?ye:he;continue;case le:if("/"!=o||"/"!=i[u+1]){l=he;continue}l=ge,u++;break;case ue:if("/"==o){l=pe;break}l=xe;continue;case he:if(e.scheme=n.scheme,o==a)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==o||"\\"==o&&Q(e))l=fe;else if("?"==o)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",l=Ae;else{if("#"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),l=xe;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",l=Oe}break;case fe:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,l=xe;continue}l=pe}else l=ge;break;case de:if(l=ge,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case ge:if("/"!=o&&"\\"!=o){l=pe;continue}break;case pe:if("@"==o){g&&(f="%40"+f),g=!0,s=d(f);for(var v=0;v65535)return T;e.port=Q(e)&&w===Z[e.scheme]?null:w,f=""}if(r)return;l=Se;continue}return T}f+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)l=we;else{if(!n||"file"!=n.scheme){l=xe;continue}if(o==a)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==o)e.host=n.host,e.path=n.path.slice(),e.query="",l=Ae;else{if("#"!=o){re(i.slice(u).join(""))||(e.host=n.host,e.path=n.path.slice(),ae(e)),l=xe;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",l=Oe}}break;case we:if("/"==o||"\\"==o){l=ke;break}n&&"file"==n.scheme&&!re(i.slice(u).join(""))&&(te(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),l=xe;continue;case ke:if(o==a||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&te(f))l=xe;else if(""==f){if(e.host="",r)return;l=Se}else{if(c=q(e,f))return c;if("localhost"==e.host&&(e.host=""),r)return;f="",l=Se}continue}f+=o;break;case Se:if(Q(e)){if(l=xe,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=a&&(l=xe,"/"!=o))continue}else e.fragment="",l=Oe;else e.query="",l=Ae;break;case xe:if(o==a||"/"==o||"\\"==o&&Q(e)||!r&&("?"==o||"#"==o)){if(ie(f)?(ae(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ne(f)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==a||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=Ae):"#"==o&&(e.fragment="",l=Oe)}else f+=J(o,K);break;case Ce:"?"==o?(e.query="",l=Ae):"#"==o?(e.fragment="",l=Oe):o!=a&&(e.path[0]+=J(o,X));break;case Ae:r||"#"!=o?o!=a&&("'"==o&&Q(e)?e.query+="%27":"#"==o?e.query+="%23":e.query+=J(o,X)):(e.fragment="",l=Oe);break;case Oe:o!=a&&(e.fragment+=J(o,V))}u++}},Ie=function(e){var t,r,a=u(this,Ie,"URL"),n=arguments.length>1?arguments[1]:void 0,o=String(e),s=S(a,{type:"URL"});if(void 0!==n)if(n instanceof Ie)t=x(n);else if(r=Pe(t={},String(n)))throw TypeError(r);if(r=Pe(s,o,null,t))throw TypeError(r);var c=s.searchParams=new w,l=k(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},i||(a.href=Ee.call(a),a.origin=Fe.call(a),a.protocol=Be.call(a),a.username=_e.call(a),a.password=Re.call(a),a.host=Le.call(a),a.hostname=Me.call(a),a.port=De.call(a),a.pathname=Ne.call(a),a.search=Ue.call(a),a.searchParams=je.call(a),a.hash=qe.call(a))},Te=Ie.prototype,Ee=function(){var e=x(this),t=e.scheme,r=e.username,a=e.password,n=e.host,i=e.port,o=e.path,s=e.query,c=e.fragment,l=t+":";return null!==n?(l+="//",$(e)&&(l+=r+(a?":"+a:"")+"@"),l+=W(n),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Fe=function(){var e=x(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(a){return"null"}return"file"!=t&&Q(e)?t+"://"+W(e.host)+(null!==r?":"+r:""):"null"},Be=function(){return x(this).scheme+":"},_e=function(){return x(this).username},Re=function(){return x(this).password},Le=function(){var e=x(this),t=e.host,r=e.port;return null===t?"":null===r?W(t):W(t)+":"+r},Me=function(){var e=x(this).host;return null===e?"":W(e)},De=function(){var e=x(this).port;return null===e?"":String(e)},Ne=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=x(this).query;return e?"?"+e:""},je=function(){return x(this).searchParams},qe=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Te,{href:ze(Ee,function(e){var t=x(this),r=String(e),a=Pe(t,r);if(a)throw TypeError(a);k(t.searchParams).updateSearchParams(t.query)}),origin:ze(Fe),protocol:ze(Be,function(e){var t=x(this);Pe(t,String(e)+":",oe)}),username:ze(_e,function(e){var t=x(this),r=d(String(e));if(!ee(t)){t.username="";for(var a=0;a=55296&&n<=56319&&r>1,e+=m(e/t);e>p*o>>1;a+=n)e=m(e/p);return m(a+(p+1)*e/(e+s))},k=function(e){var t=[];e=b(e);var r,s,c=e.length,f=u,d=0,p=l;for(r=0;r=f&&sm((a-d)/C))throw RangeError(g);for(d+=(x-f)*C,f=x,r=0;ra)throw RangeError(g);if(s==f){for(var A=d,O=n;;O+=n){var P=O<=p?i:O>=p+o?o:O-p;if(A0?arguments[0]:void 0,c=this,l=[];if(k(c,{type:y,entries:l,updateURL:function(){},updateSearchParams:R}),void 0!==s)if(g(s))if(e=m(s),"function"==typeof e)for(t=e.call(s);!(r=t.next()).done;){if(a=p(d(r.value)),(n=a.next()).done||(i=a.next()).done||!a.next().done)throw TypeError("Expected sequence with length 2");l.push({key:n.value+"",value:i.value+""})}else for(o in s)h(s,o)&&l.push({key:o,value:s[o]+""});else _(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},N=D.prototype;o(N,{append:function(e,t){L(arguments.length,2);var r=S(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},"delete":function(e){L(arguments.length,1);for(var t=S(this),r=t.entries,a=e+"",n=0;ne.key){n.splice(t,0,e);break}t===r&&n.push(e)}a.updateURL()},forEach:function(e){for(var t,r=S(this).entries,a=f(e,arguments.length>1?arguments[1]:void 0,3),n=0;nx;x++)if((f||x in w)&&(v=w[x],b=k(v,x,y),e))if(t)A[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:c.call(A,v)}else if(u)return!1;return h?-1:l||u?u:A}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,r){var a=r(23),n=r(141),i=r(55),o=i("species");e.exports=function(e,t){var r;return n(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!n(r.prototype)?a(r)&&(r=r[o],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var a=r(20);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,r){r(104),r(143),r(106);var a=r(43);e.exports=a.WeakSet},function(e,t,r){"use strict";var a=r(136),n=r(138);a("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n,!1,!0)},function(e,t,r){r(145);var a=r(58);e.exports=a("String","codePointAt")},function(e,t,r){"use strict";var a=r(11),n=r(74).codeAt;a({target:"String",proto:!0},{codePointAt:function(e){return n(this,e)}})},function(e,t,r){r(147);var a=r(43);e.exports=a.String.fromCodePoint},function(e,t,r){var a=r(11),n=r(49),i=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;a({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){for(var t,r=[],a=arguments.length,o=0;a>o;){if(t=+arguments[o++],n(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?i(t):i(((t-=65536)>>10)+55296,t%1024+56320))}return r.join("")}})},function(e,t,r){r(149),r(104),r(151),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170);var a=r(43);e.exports=a.Symbol},function(e,t,r){"use strict";var a=r(11),n=r(15),i=r(141),o=r(23),s=r(79),c=r(47),l=r(89),u=r(140),h=r(150),f=r(55),d=f("isConcatSpreadable"),g=9007199254740991,p="Maximum allowed index exceeded",m=!n(function(){var e=[];return e[d]=!1,e.concat()[0]!==e}),v=h("concat"),b=function(e){if(!o(e))return!1;var t=e[d];return void 0!==t?!!t:i(e)},y=!m||!v;a({target:"Array",proto:!0,forced:y},{concat:function(e){var t,r,a,n,i,o=s(this),h=u(o,0),f=0;for(t=-1,a=arguments.length;tg)throw TypeError(p);for(r=0;r=g)throw TypeError(p);l(h,f++,i)}return h.length=f,h}})},function(e,t,r){var a=r(15),n=r(55),i=n("species");e.exports=function(e){return!a(function(){var t=[],r=t.constructor={};return r[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,r){"use strict";var a=r(11),n=r(12),i=r(33),o=r(14),s=r(56),c=r(15),l=r(24),u=r(141),h=r(23),f=r(29),d=r(79),g=r(18),p=r(22),m=r(17),v=r(68),b=r(70),y=r(44),w=r(152),k=r(51),S=r(13),x=r(28),C=r(16),A=r(27),O=r(30),P=r(31),I=r(37),T=r(39),E=r(38),F=r(55),B=r(153),_=r(154),R=r(81),L=r(35),M=r(139).forEach,D=I("hidden"),N="Symbol",U="prototype",j=F("toPrimitive"),q=L.set,z=L.getterFor(N),H=Object[U],G=n.Symbol,W=n.JSON,X=W&&W.stringify,V=S.f,K=x.f,Y=w.f,J=C.f,Z=P("symbols"),Q=P("op-symbols"),$=P("string-to-symbol-registry"),ee=P("symbol-to-string-registry"),te=P("wks"),re=n.QObject,ae=!re||!re[U]||!re[U].findChild,ne=o&&c(function(){return 7!=v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(e,t,r){var a=V(H,t);a&&delete H[t],K(e,t,r),a&&e!==H&&K(H,t,a)}:K,ie=function(e,t){var r=Z[e]=v(G[U]);return q(r,{type:N,tag:e,description:t}),o||(r.description=t),r},oe=s&&"symbol"==typeof G.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},se=function(e,t,r){e===H&&se(Q,t,r),f(e);var a=p(t,!0);return f(r),l(Z,a)?(r.enumerable?(l(e,D)&&e[D][a]&&(e[D][a]=!1),r=v(r,{enumerable:m(0,!1)})):(l(e,D)||K(e,D,m(1,{})),e[D][a]=!0),ne(e,a,r)):K(e,a,r)},ce=function(e,t){f(e);var r=g(t),a=b(r).concat(de(r));return M(a,function(t){o&&!ue.call(r,t)||se(e,t,r[t])}),e},le=function(e,t){return void 0===t?v(e):ce(v(e),t)},ue=function(e){var t=p(e,!0),r=J.call(this,t);return!(this===H&&l(Z,t)&&!l(Q,t))&&(!(r||!l(this,t)||!l(Z,t)||l(this,D)&&this[D][t])||r)},he=function(e,t){var r=g(e),a=p(t,!0);if(r!==H||!l(Z,a)||l(Q,a)){var n=V(r,a);return!n||!l(Z,a)||l(r,D)&&r[D][a]||(n.enumerable=!0),n}},fe=function(e){var t=Y(g(e)),r=[];return M(t,function(e){l(Z,e)||l(T,e)||r.push(e)}),r},de=function(e){var t=e===H,r=Y(t?Q:g(e)),a=[];return M(r,function(e){!l(Z,e)||t&&!l(H,e)||a.push(Z[e])}),a};s||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=E(e),r=function(e){this===H&&r.call(Q,e),l(this,D)&&l(this[D],t)&&(this[D][t]=!1),ne(this,t,m(1,e))};return o&&ae&&ne(H,t,{configurable:!0,set:r}),ie(t,e)},O(G[U],"toString",function(){return z(this).tag}),C.f=ue,x.f=se,S.f=he,y.f=w.f=fe,k.f=de,o&&(K(G[U],"description",{configurable:!0,get:function(){return z(this).description}}),i||O(H,"propertyIsEnumerable",ue,{unsafe:!0})),B.f=function(e){return ie(F(e),e)}),a({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),M(b(te),function(e){_(e)}),a({target:N,stat:!0,forced:!s},{"for":function(e){var t=String(e);if(l($,t))return $[t];var r=G(t);return $[t]=r,ee[r]=t,r},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(l(ee,e))return ee[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),a({target:"Object",stat:!0,forced:!s,sham:!o},{create:le,defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:he}),a({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:fe,getOwnPropertySymbols:de}),a({target:"Object",stat:!0,forced:c(function(){k.f(1)})},{getOwnPropertySymbols:function(e){return k.f(d(e))}}),W&&a({target:"JSON",stat:!0,forced:!s||c(function(){var e=G();return"[null]"!=X([e])||"{}"!=X({a:e})||"{}"!=X(Object(e))})},{stringify:function(e){for(var t,r,a=[e],n=1;arguments.length>n;)a.push(arguments[n++]);if(r=t=a[1],(h(t)||void 0!==e)&&!oe(e))return u(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),a[1]=t,X.apply(W,a)}}),G[U][j]||A(G[U],j,G[U].valueOf),R(G,N),T[D]=!0},function(e,t,r){var a=r(18),n=r(44).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return n(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):n(a(e))}},function(e,t,r){t.f=r(55)},function(e,t,r){var a=r(43),n=r(24),i=r(153),o=r(28).f;e.exports=function(e){var t=a.Symbol||(a.Symbol={});n(t,e)||o(t,e,{value:i.f(e)})}},function(e,t,r){var a=r(154);a("asyncIterator")},function(e,t,r){"use strict";var a=r(11),n=r(14),i=r(12),o=r(24),s=r(23),c=r(28).f,l=r(40),u=i.Symbol;if(n&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(h[t]=!0),t};l(f,u);var d=f.prototype=u.prototype;d.constructor=f;var g=d.toString,p="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=g.call(e);if(o(h,e))return"";var r=p?t.slice(7,-1):t.replace(m,"$1");return""===r?void 0:r}}),a({global:!0,forced:!0},{Symbol:f})}},function(e,t,r){var a=r(154);a("hasInstance")},function(e,t,r){var a=r(154);a("isConcatSpreadable")},function(e,t,r){var a=r(154);a("iterator")},function(e,t,r){var a=r(154);a("match")},function(e,t,r){var a=r(154);a("matchAll")},function(e,t,r){var a=r(154);a("replace")},function(e,t,r){var a=r(154);a("search")},function(e,t,r){var a=r(154);a("species")},function(e,t,r){var a=r(154);a("split")},function(e,t,r){var a=r(154);a("toPrimitive")},function(e,t,r){var a=r(154);a("toStringTag")},function(e,t,r){var a=r(154);a("unscopables")},function(e,t,r){var a=r(81);a(Math,"Math",!0)},function(e,t,r){var a=r(12),n=r(81);n(a.JSON,"JSON",!0)},function(e,t,r){r(172);var a=r(58);e.exports=a("String","padStart")},function(e,t,r){"use strict";var a=r(11),n=r(173).start,i=r(175);a({target:"String",proto:!0,forced:i},{padStart:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var a=r(47),n=r(174),i=r(21),o=Math.ceil,s=function(e){return function(t,r,s){var c,l,u=String(i(t)),h=u.length,f=void 0===s?" ":String(s),d=a(r);return d<=h||""==f?u:(c=d-h,l=n.call(f,o(c/f.length)),l.length>c&&(l=l.slice(0,c)),e?u+l:l+u)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,r){"use strict";var a=r(48),n=r(21);e.exports="".repeat||function(e){var t=String(n(this)),r="",i=a(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},function(e,t,r){var a=r(118);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a)},function(e,t,r){r(177);var a=r(58);e.exports=a("String","padEnd")},function(e,t,r){"use strict";var a=r(11),n=r(173).end,i=r(175);a({target:"String",proto:!0,forced:i},{padEnd:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(179);var a=r(43);e.exports=a.Object.values},function(e,t,r){var a=r(11),n=r(180).values;a({target:"Object",stat:!0},{values:function(e){return n(e)}})},function(e,t,r){var a=r(14),n=r(70),i=r(18),o=r(16).f,s=function(e){return function(t){for(var r,s=i(t),c=n(s),l=c.length,u=0,h=[];l>u;)r=c[u++],a&&!o.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,r){"use strict";var a=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),a=!0}catch(n){}a?t.ReadableStream=ReadableStream:t.ReadableStream=r(182).ReadableStream},function(e,t,r){"use strict";function a(){}function n(e){return"object"==typeof e&&null!==e||"function"==typeof e}function i(e){return e.slice()}function o(e,t,r,a,n){new Uint8Array(e).set(new Uint8Array(r,a,n),t)}function s(e){return c(e)!==!1&&e!==1/0}function c(e){return"number"==typeof e&&(!Cr(e)&&!(e<0))}function l(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function u(e,t,r,a){var n=e[t];if(void 0!==n){if("function"!=typeof n)throw new TypeError(n+" is not a method");switch(r){case 0:return function(){return f(n,e,a)};case 1:return function(t){var r=[t].concat(a);return f(n,e,r)}}}return function(){return Promise.resolve()}}function h(e,t,r){var a=e[t];if(void 0!==a)return l(a,e,r)}function f(e,t,r){try{return Promise.resolve(l(e,t,r))}catch(a){return Promise.reject(a)}}function d(e){return e}function g(e){return!1}function p(e){if(e=Number(e),Cr(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function m(e){if(void 0===e)return function(){return 1};if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}function v(e,t,r){var a=null;r===!0&&(a=Object.prototype);var n=Object.create(a);return n.value=e,n.done=t,n}function b(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?S(e):"closed"===t._state?C(e):x(e,t._storedError)}function y(e,t){var r=e._ownerReadableStream;return Zt(r,t)}function w(e){"readable"===e._ownerReadableStream._state?A(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):O(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function k(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function S(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function x(e,t){S(e),A(e,t)}function C(e){S(e),P(e)}function A(e,t){e._closedPromise["catch"](a),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function O(e,t){x(e,t)}function P(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function I(e,t){void 0===t&&(t=!1);var r=new Tr(e);return r._forAuthorCode=t,r}function T(e){var t=new Promise(function(t,r){var a={_resolve:t,_reject:r};e._reader._readRequests.push(a)});return t}function E(e,t,r){var a=e._reader,n=a._readRequests.shift();n._resolve(v(t,r,a._forAuthorCode))}function F(e){return e._reader._readRequests.length}function B(e){var t=e._reader;return void 0!==t&&!!_(t)}function _(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function R(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?Promise.resolve(v(void 0,!0,e._forAuthorCode)):"errored"===t._state?Promise.reject(t._storedError):t._readableStreamController[Ir]()}function L(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function M(e,t){void 0===t&&(t=!1);var r=I(e),a=Object.create(Er);return a._asyncIteratorReader=r,a._preventCancel=Boolean(t),a}function D(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function N(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator"); }function U(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function j(e,t,r){if(r=Number(r),!s(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function q(e){var t=e._queue.peek();return t.value}function z(e){e._queue=new Or,e._queueTotalSize=0}function H(e){return new Lr(e)}function G(e,t,r,a,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(Rr.prototype);W(o);var s=Object.create(Mr.prototype);return ye(o,s,e,t,r,a,n,i),o}function W(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Or,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function X(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function V(e){return void 0!==e._writer}function K(e,t){var r=e._state;if("closed"===r||"errored"===r)return Promise.resolve(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var a=!1;"erroring"===r&&(a=!0,t=void 0);var n=new Promise(function(r,n){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:a}});return e._pendingAbortRequest._promise=n,a===!1&&Z(e,t),n}function Y(e){var t=new Promise(function(t,r){var a={_resolve:t,_reject:r};e._writeRequests.push(a)});return t}function J(e,t){var r=e._state;return"writable"===r?void Z(e,t):void Q(e)}function Z(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var a=e._writer;void 0!==a&&ge(a,t),ne(e)===!1&&r._started===!0&&Q(e)}function Q(e){e._state="errored",e._writableStreamController[_r]();var t=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(t)}),e._writeRequests=new Or,void 0===e._pendingAbortRequest)return void se(e);var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring===!0)return r._reject(t),void se(e);var a=e._writableStreamController[Br](r._reason);a.then(function(){r._resolve(),se(e)},function(t){r._reject(t),se(e)})}function $(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function ee(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,J(e,t)}function te(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&je(r)}function re(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),J(e,t)}function ae(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function ne(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function ie(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function oe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function se(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&Ne(t,e._storedError)}function ce(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(t===!0?We(r):Ve(r)),e._backpressure=t}function le(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function ue(e,t){var r=e._ownerWritableStream;return K(r,t)}function he(e){var t=e._ownerWritableStream,r=t._state;if("closed"===r||"errored"===r)return Promise.reject(new TypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"));var a=new Promise(function(e,r){var a={_resolve:e,_reject:r};t._closeRequest=a});return t._backpressure===!0&&"writable"===r&&Ve(e),Se(t._writableStreamController),a}function fe(e){var t=e._ownerWritableStream,r=t._state;return ae(t)===!0||"closed"===r?Promise.resolve():"errored"===r?Promise.reject(t._storedError):he(e)}function de(e,t){"pending"===e._closedPromiseState?Ne(e,t):Ue(e,t)}function ge(e,t){"pending"===e._readyPromiseState?Ge(e,t):Xe(e,t)}function pe(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Ce(t._writableStreamController)}function me(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");ge(e,r),de(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function ve(e,t){var r=e._ownerWritableStream,a=r._writableStreamController,n=xe(a,t);if(r!==e._ownerWritableStream)return Promise.reject(Re("write to"));var i=r._state;if("errored"===i)return Promise.reject(r._storedError);if(ae(r)===!0||"closed"===i)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return Promise.reject(r._storedError);var o=Y(r);return Ae(a,t,n),o}function be(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function ye(e,t,r,a,n,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,z(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=a,t._closeAlgorithm=n,t._abortAlgorithm=i;var c=Ee(t);ce(e,c);var l=r(),u=Promise.resolve(l);u.then(function(){t._started=!0,Oe(t)},function(r){t._started=!0,J(e,r)})["catch"](Fr)}function we(e,t,r,a){function n(){return h(t,"start",[i])}var i=Object.create(Mr.prototype),o=u(t,"write",1,[i]),s=u(t,"close",0,[]),c=u(t,"abort",1,[]);ye(e,i,n,o,s,c,r,a)}function ke(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Se(e){j(e,"close",0),Oe(e)}function xe(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return Pe(e,r),1}}function Ce(e){return e._strategyHWM-e._queueTotalSize}function Ae(e,t,r){var a={chunk:t};try{j(e,a,r)}catch(n){return void Pe(e,n)}var i=e._controlledWritableStream;if(ae(i)===!1&&"writable"===i._state){var o=Ee(e);ce(i,o)}Oe(e)}function Oe(e){var t=e._controlledWritableStream;if(e._started!==!1&&void 0===t._inFlightWriteRequest){var r=t._state;if("erroring"===r)return void Q(t);if(0!==e._queue.length){var a=q(e);"close"===a?Ie(e):Te(e,a.chunk)}}}function Pe(e,t){"writable"===e._controlledWritableStream._state&&Fe(e,t)}function Ie(e){var t=e._controlledWritableStream;ie(t),U(e);var r=e._closeAlgorithm();ke(e),r.then(function(){te(t)},function(e){re(t,e)})["catch"](Fr)}function Te(e,t){var r=e._controlledWritableStream;oe(r);var a=e._writeAlgorithm(t);a.then(function(){$(r);var t=r._state;if(U(e),ae(r)===!1&&"writable"===t){var a=Ee(e);ce(r,a)}Oe(e)},function(t){"writable"===r._state&&ke(e),ee(r,t)})["catch"](Fr)}function Ee(e){var t=Ce(e);return t<=0}function Fe(e,t){var r=e._controlledWritableStream;ke(e),Z(r,t)}function Be(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function _e(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function Re(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Le(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Me(e,t){Le(e),Ne(e,t)}function De(e){Le(e),je(e)}function Ne(e,t){e._closedPromise["catch"](a),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Ue(e,t){Me(e,t)}function je(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function qe(e){e._readyPromise=new Promise(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function ze(e,t){qe(e),Ge(e,t)}function He(e){qe(e),Ve(e)}function Ge(e,t){e._readyPromise["catch"](a),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function We(e){qe(e)}function Xe(e,t){ze(e,t)}function Ve(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function Ke(e,t,r,n,i,o){var s=I(e),c=H(t),l=!1,u=Promise.resolve();return new Promise(function(h,f){function d(){return new Promise(function(e,t){function r(a){a?e():g().then(r,t)}r(!1)})}function g(){return l===!0?Promise.resolve(!0):c._readyPromise.then(function(){return R(s).then(function(e){var t=e.value,r=e.done;return r===!0||(u=ve(c,t)["catch"](a),!1)})})}function p(){var e=u;return u.then(function(){return e!==u?p():void 0})}function m(e,t,r){"errored"===e._state?r(e._storedError):t["catch"](r)["catch"](Fr)}function v(e,t,r){"closed"===e._state?r():t.then(r)["catch"](Fr)}function b(e,r,a){function n(){e().then(function(){return k(r,a)},function(e){return k(!0,e)})["catch"](Fr)}l!==!0&&(l=!0,"writable"===t._state&&ae(t)===!1?p().then(n):n())}function y(e,r){l!==!0&&(l=!0,"writable"===t._state&&ae(t)===!1?p().then(function(){return k(e,r)})["catch"](Fr):k(e,r))}function k(e,t){me(c),w(s),void 0!==o&&o.removeEventListener("abort",S),e?f(t):h(void 0)}var S;if(void 0!==o){if(S=function(){var r=new DOMException("Aborted","AbortError"),a=[];n===!1&&a.push(function(){return"writable"===t._state?K(t,r):Promise.resolve()}),i===!1&&a.push(function(){return"readable"===e._state?Zt(e,r):Promise.resolve()}),b(function(){return Promise.all(a.map(function(e){return e()}))},!0,r)},o.aborted===!0)return void S();o.addEventListener("abort",S)}if(m(e,s._closedPromise,function(e){n===!1?b(function(){return K(t,e)},!0,e):y(!0,e)}),m(t,c._closedPromise,function(t){i===!1?b(function(){return Zt(e,t)},!0,t):y(!0,t)}),v(e,s._closedPromise,function(){r===!1?b(function(){return fe(c)}):y()}),ae(t)===!0||"closed"===t._state){var x=new TypeError("the destination writable stream closed before all data could be piped to it");i===!1?b(function(){return Zt(e,x)},!0,x):y(!0,x)}d()["catch"](Fr)})}function Ye(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Je(e){var t=Ze(e);if(t!==!1){if(e._pulling===!0)return void(e._pullAgain=!0);e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,Je(e))},function(t){tt(e,t)})["catch"](Fr)}}function Ze(e){var t=e._controlledReadableStream;if(nt(e)===!1)return!1;if(e._started===!1)return!1;if(Jt(t)===!0&&F(t)>0)return!0;var r=rt(e);return r>0}function Qe(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function $e(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Qe(e),Qt(t))}function et(e,t){var r=e._controlledReadableStream;if(Jt(r)===!0&&F(r)>0)E(r,t,!1);else{var a=void 0;try{a=e._strategySizeAlgorithm(t)}catch(n){throw tt(e,n),n}try{j(e,t,a)}catch(i){throw tt(e,i),i}}Je(e)}function tt(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(z(e),Qe(e),$t(r,t))}function rt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function at(e){return Ze(e)!==!0}function nt(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&"readable"===t}function it(e,t,r,a,n,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,z(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=a,t._cancelAlgorithm=n,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,Je(t)},function(e){tt(t,e)})["catch"](Fr)}function ot(e,t,r,a){function n(){return h(t,"start",[i])}var i=Object.create(Dr.prototype),o=u(t,"pull",0,[i]),s=u(t,"cancel",1,[]);it(e,i,n,o,s,r,a)}function st(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function ct(e,t){function r(){if(d===!0)return Promise.resolve();d=!0;var e=R(f).then(function(e){d=!1;var t=e.done;if(t===!0)return g===!1&&$e(l._readableStreamController),void(p===!1&&$e(u._readableStreamController));var r=e.value,a=r,n=r;g===!1&&et(l._readableStreamController,a),p===!1&&et(u._readableStreamController,n)});return e["catch"](Fr),Promise.resolve()}function a(t){if(g=!0,s=t,p===!0){var r=i([s,c]),a=Zt(e,r);h(a)}return m}function n(t){if(p=!0,c=t,g===!0){var r=i([s,c]),a=Zt(e,r);h(a)}return m}function o(){}var s,c,l,u,h,f=I(e),d=!1,g=!1,p=!1,m=new Promise(function(e){h=e});return l=Vt(o,r,a),u=Vt(o,r,n),f._closedPromise["catch"](function(e){tt(l._readableStreamController,e),tt(u._readableStreamController,e)}),[l,u]}function lt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function ut(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function ht(e){var t=Ot(e);if(t!==!1){if(e._pulling===!0)return void(e._pullAgain=!0);e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,ht(e))},function(t){Et(e,t)})["catch"](Fr)}}function ft(e){yt(e),e._pendingPullIntos=new Or}function dt(e,t){var r=!1;"closed"===e._state&&(r=!0);var a=gt(t);"default"===t.readerType?E(e,a,r):qt(e,a,r)}function gt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function pt(e,t,r,a){e._queue.push({buffer:t,byteOffset:r,byteLength:a}),e._queueTotalSize+=a}function mt(e,t){var r=t.elementSize,a=t.bytesFilled-t.bytesFilled%r,n=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+n,s=i-i%r,c=n,l=!1;s>a&&(c=s-t.bytesFilled,l=!0);for(var u=e._queue;c>0;){var h=u.peek(),f=Math.min(c,h.byteLength),d=t.byteOffset+t.bytesFilled;o(t.buffer,d,h.buffer,h.byteOffset,f),h.byteLength===f?u.shift():(h.byteOffset+=f,h.byteLength-=f),e._queueTotalSize-=f,vt(e,f,t),c-=f}return l}function vt(e,t,r){yt(e),r.bytesFilled+=t}function bt(e){0===e._queueTotalSize&&e._closeRequested===!0?(Pt(e),Qt(e._controlledReadableByteStream)):ht(e)}function yt(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function wt(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();mt(e,t)===!0&&(At(e),dt(e._controlledReadableByteStream,t))}}function kt(e,t){var r=e._controlledReadableByteStream,a=1;t.constructor!==DataView&&(a=t.constructor.BYTES_PER_ELEMENT);var n=t.constructor,i=d(t.buffer),o={buffer:i,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:a,ctor:n,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),jt(r);if("closed"===r._state){var s=new n(o.buffer,o.byteOffset,0);return Promise.resolve(v(s,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(mt(e,o)===!0){var c=gt(o);return bt(e),Promise.resolve(v(c,!1,r._reader._forAuthorCode))}if(e._closeRequested===!0){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return Et(e,l),Promise.reject(l)}}e._pendingPullIntos.push(o);var u=jt(r);return ht(e),u}function St(e,t){t.buffer=d(t.buffer);var r=e._controlledReadableByteStream;if(Ht(r)===!0)for(;zt(r)>0;){var a=At(e);dt(r,a)}}function xt(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(vt(e,t,r),!(r.bytesFilled0){var n=r.byteOffset+r.bytesFilled,i=r.buffer.slice(n-a,n);pt(e,i,0,i.byteLength)}r.buffer=d(r.buffer),r.bytesFilled-=a,dt(e._controlledReadableByteStream,r),wt(e)}}function Ct(e,t){var r=e._pendingPullIntos.peek(),a=e._controlledReadableByteStream;if("closed"===a._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");St(e,r)}else xt(e,t,r);ht(e)}function At(e){var t=e._pendingPullIntos.shift();return yt(e),t}function Ot(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested===!0)return!1;if(e._started===!1)return!1;if(B(t)===!0&&F(t)>0)return!0;if(Ht(t)===!0&&zt(t)>0)return!0;var r=Ft(e);return r>0}function Pt(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function It(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var a=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Et(e,a),a}}Pt(e),Qt(t)}function Tt(e,t){var r=e._controlledReadableByteStream,a=t.buffer,n=t.byteOffset,i=t.byteLength,o=d(a);if(B(r)===!0)if(0===F(r))pt(e,o,n,i);else{var s=new Uint8Array(o,n,i);E(r,s,!1)}else Ht(r)===!0?(pt(e,o,n,i),wt(e)):pt(e,o,n,i);ht(e)}function Et(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(ft(e),z(e),Pt(e),$t(r,t))}function Ft(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Bt(e,t){if(t=Number(t),s(t)===!1)throw new RangeError("bytesWritten must be a finite");Ct(e,t)}function _t(e,t){var r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,Ct(e,t.byteLength)}function Rt(e,t,r,a,n,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,z(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=p(i),t._pullAlgorithm=a,t._cancelAlgorithm=n,t._autoAllocateChunkSize=o,t._pendingPullIntos=new Or,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,ht(t)},function(e){Et(t,e)})["catch"](Fr)}function Lt(e,t,r){function a(){return h(t,"start",[n])}var n=Object.create(jr.prototype),i=u(t,"pull",0,[n]),o=u(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),Nr(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");Rt(e,n,a,i,o,r,s)}function Mt(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function Dt(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Nt(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Ut(e,t){void 0===t&&(t=!1);var r=new qr(e);return r._forAuthorCode=t,r}function jt(e){var t=new Promise(function(t,r){var a={_resolve:t,_reject:r};e._reader._readIntoRequests.push(a)});return t}function qt(e,t,r){var a=e._reader,n=a._readIntoRequests.shift();n._resolve(v(t,r,a._forAuthorCode))}function zt(e){return e._reader._readIntoRequests.length}function Ht(e){var t=e._reader;return void 0!==t&&!!Gt(t)}function Gt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Wt(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?Promise.reject(r._storedError):kt(r._readableStreamController,t)}function Xt(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function Vt(e,t,r,a,n){void 0===a&&(a=1),void 0===n&&(n=function(){return 1});var i=Object.create(zr.prototype);Kt(i);var o=Object.create(Dr.prototype);return it(i,o,e,t,r,a,n),i}function Kt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Yt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Jt(e){return void 0!==e._reader}function Zt(e,t){if(e._disturbed=!0,"closed"===e._state)return Promise.resolve(void 0);if("errored"===e._state)return Promise.reject(e._storedError);Qt(e);var r=e._readableStreamController[Pr](t);return r.then(function(){})}function Qt(e){e._state="closed";var t=e._reader;void 0!==t&&(_(t)&&(t._readRequests.forEach(function(e){e._resolve(v(void 0,!0,t._forAuthorCode))}),t._readRequests=new Or),P(t))}function $t(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(_(r)?(r._readRequests.forEach(function(e){e._reject(t)}),r._readRequests=new Or):(r._readIntoRequests.forEach(function(e){e._reject(t)}),r._readIntoRequests=new Or),A(r,t))}function er(e){if("object"!=typeof e||null===e)return!1;var t=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return t.call(e),!0}catch(r){return!1}}function tr(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function rr(e,t,r,a,n,i){function o(){return t}function s(t){return pr(e,t)}function c(t){return mr(e,t)}function l(){return vr(e)}function u(){return br(e)}function h(t){return ir(e,t),Promise.resolve()}e._writable=G(o,s,l,c,r,a),e._readable=Vt(o,u,h,n,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,or(e,!0),e._transformStreamController=void 0}function ar(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function nr(e,t){tt(e._readable._readableStreamController,t),ir(e,t)}function ir(e,t){ur(e._transformStreamController),Pe(e._writable._writableStreamController,t),e._backpressure===!0&&or(e,!1)}function or(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(t){e._backpressureChangePromise_resolve=t}),e._backpressure=t}function sr(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function cr(e,t,r,a){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=a}function lr(e,t){var r=Object.create(Xr.prototype),a=function(e){try{return hr(r,e),Promise.resolve()}catch(t){return Promise.reject(t)}},n=t.transform;if(void 0!==n){if("function"!=typeof n)throw new TypeError("transform is not a method");a=function(e){return f(n,t,[e,r])}}var i=u(t,"flush",0,[r]);cr(e,r,a,i)}function ur(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function hr(e,t){var r=e._controlledTransformStream,a=r._readable._readableStreamController;if(nt(a)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{et(a,t)}catch(n){throw ir(r,n),r._readable._storedError}var i=at(a);i!==r._backpressure&&or(r,!0)}function fr(e,t){nr(e._controlledTransformStream,t)}function dr(e,t){var r=e._transformAlgorithm(t);return r["catch"](function(t){throw nr(e._controlledTransformStream,t),t})}function gr(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;nt(r)===!0&&$e(r);var a=new TypeError("TransformStream terminated");ir(t,a)}function pr(e,t){var r=e._transformStreamController;if(e._backpressure===!0){var a=e._backpressureChangePromise;return a.then(function(){var a=e._writable,n=a._state;if("erroring"===n)throw a._storedError;return dr(r,t)})}return dr(r,t)}function mr(e,t){return nr(e,t),Promise.resolve()}function vr(e){var t=e._readable,r=e._transformStreamController,a=r._flushAlgorithm();return ur(r),a.then(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;nt(e)===!0&&$e(e)})["catch"](function(r){throw nr(e,r),t._storedError})}function br(e){return or(e,!1),e._backpressureChangePromise}function yr(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function wr(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}r.r(t),r.d(t,"ByteLengthQueuingStrategy",function(){return Hr}),r.d(t,"CountQueuingStrategy",function(){return Gr}),r.d(t,"ReadableStream",function(){return zr}),r.d(t,"TransformStream",function(){return Wr}),r.d(t,"WritableStream",function(){return Rr});var kr,Sr,xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"},Cr=Number.isNaN||function(e){return e!==e},Ar=16384,Or=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;t._elements.length===Ar-1&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size},e.prototype.shift=function(){var e=this._front,t=e,r=this._cursor,a=r+1,n=e._elements,i=n[r];return a===Ar&&(t=e._next,a=0),--this._size,this._cursor=a,e!==t&&(this._front=t),n[r]=void 0,i},e.prototype.forEach=function(e){for(var t=this._cursor,r=this._front,a=r._elements;!(t===a.length&&void 0===r._next||t===a.length&&(r=r._next,a=r._elements,t=0,0===a.length));)e(a[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}(),Pr=xr("[[CancelSteps]]"),Ir=xr("[[PullSteps]]"),Tr=function(){function e(e){if(Yt(e)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(Jt(e)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");b(this,e),this._readRequests=new Or}return Object.defineProperty(e.prototype,"closed",{get:function(){return _(this)?this._closedPromise:Promise.reject(L("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return _(this)?void 0===this._ownerReadableStream?Promise.reject(k("cancel")):y(this,e):Promise.reject(L("cancel"))},e.prototype.read=function(){return _(this)?void 0===this._ownerReadableStream?Promise.reject(k("read from")):R(this):Promise.reject(L("read"))},e.prototype.releaseLock=function(){if(!_(this))throw L("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");w(this)}},e}();"symbol"==typeof xr.asyncIterator&&(kr={},kr[xr.asyncIterator]=function(){return this},Sr=kr,Object.defineProperty(Sr,xr.asyncIterator,{enumerable:!1}));var Er={next:function(){if(D(this)===!1)return Promise.reject(N("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?Promise.reject(k("iterate")):R(e).then(function(t){var r=t.done;r&&w(e);var a=t.value;return v(a,r,!0)})},"return":function(e){if(D(this)===!1)return Promise.reject(N("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return Promise.reject(k("finish iterating"));if(t._readRequests.length>0)return Promise.reject(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(this._preventCancel===!1){var r=y(t,e);return w(t),r.then(function(){return v(e,!0,!0)})}return w(t),Promise.resolve(v(e,!0,!0))}};void 0!==Sr&&Object.setPrototypeOf(Er,Sr),Object.defineProperty(Er,"next",{enumerable:!1}),Object.defineProperty(Er,"return",{enumerable:!1});var Fr=a,Br=xr("[[AbortSteps]]"),_r=xr("[[ErrorSteps]]"),Rr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),W(this);var r=t.size,a=t.highWaterMark,n=e.type;if(void 0!==n)throw new RangeError("Invalid type is specified");var i=m(r);void 0===a&&(a=1),a=p(a),we(this,e,a,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(X(this)===!1)throw Be("locked");return V(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return X(this)===!1?Promise.reject(Be("abort")):V(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):K(this,e)},e.prototype.getWriter=function(){if(X(this)===!1)throw Be("getWriter");return H(this)},e}(),Lr=function(){function e(e){if(X(e)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(V(e)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)ae(e)===!1&&e._backpressure===!0?qe(this):He(this),Le(this);else if("erroring"===t)ze(this,e._storedError),Le(this);else if("closed"===t)He(this),De(this);else{var r=e._storedError;ze(this,r),Me(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return le(this)===!1?Promise.reject(_e("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(le(this)===!1)throw _e("desiredSize");if(void 0===this._ownerWritableStream)throw Re("desiredSize");return pe(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return le(this)===!1?Promise.reject(_e("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return le(this)===!1?Promise.reject(_e("abort")):void 0===this._ownerWritableStream?Promise.reject(Re("abort")):ue(this,e)},e.prototype.close=function(){if(le(this)===!1)return Promise.reject(_e("close"));var e=this._ownerWritableStream;return void 0===e?Promise.reject(Re("close")):ae(e)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):he(this)},e.prototype.releaseLock=function(){if(le(this)===!1)throw _e("releaseLock");var e=this._ownerWritableStream;void 0!==e&&me(this)},e.prototype.write=function(e){return le(this)===!1?Promise.reject(_e("write")):void 0===this._ownerWritableStream?Promise.reject(Re("write to")):ve(this,e)},e}(),Mr=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(be(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&Fe(this,e)},e.prototype[Br]=function(e){var t=this._abortAlgorithm(e);return ke(this),t},e.prototype[_r]=function(){z(this)},e}(),Dr=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(Ye(this)===!1)throw st("desiredSize");return rt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(Ye(this)===!1)throw st("close");if(nt(this)===!1)throw new TypeError("The stream is not in a state that permits close");$e(this)},e.prototype.enqueue=function(e){if(Ye(this)===!1)throw st("enqueue");if(nt(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return et(this,e)},e.prototype.error=function(e){if(Ye(this)===!1)throw st("error");tt(this,e)},e.prototype[Pr]=function(e){z(this);var t=this._cancelAlgorithm(e);return Qe(this),t},e.prototype[Ir]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=U(this);return this._closeRequested===!0&&0===this._queue.length?(Qe(this),Qt(e)):Je(this),Promise.resolve(v(t,!1,e._reader._forAuthorCode))}var r=T(e);return Je(this),r},e}(),Nr=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Ur=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(ut(this)===!1)throw Dt("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(ut(this)===!1)throw Dt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");g(this._view.buffer)===!0,Bt(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(ut(this)===!1)throw Dt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated"); if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");g(e.buffer)===!0,_t(this._associatedReadableByteStreamController,e)},e}(),jr=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(lt(this)===!1)throw Nt("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(Ur.prototype);Mt(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(lt(this)===!1)throw Nt("desiredSize");return Ft(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(lt(this)===!1)throw Nt("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");It(this)},e.prototype.enqueue=function(e){if(lt(this)===!1)throw Nt("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");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 enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");g(e.buffer)===!0,Tt(this,e)},e.prototype.error=function(e){if(lt(this)===!1)throw Nt("error");Et(this,e)},e.prototype[Pr]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}z(this);var r=this._cancelAlgorithm(e);return Pt(this),r},e.prototype[Ir]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,bt(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(a){return Promise.reject(a)}return Promise.resolve(v(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(o){return Promise.reject(o)}var s={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(s)}var c=T(e);return ht(this),c},e}(),qr=function(){function e(e){if(!Yt(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(lt(e._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Jt(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");b(this,e),this._readIntoRequests=new Or}return Object.defineProperty(e.prototype,"closed",{get:function(){return Gt(this)?this._closedPromise:Promise.reject(Xt("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Gt(this)?void 0===this._ownerReadableStream?Promise.reject(k("cancel")):y(this,e):Promise.reject(Xt("cancel"))},e.prototype.read=function(e){return Gt(this)?void 0===this._ownerReadableStream?Promise.reject(k("read from")):ArrayBuffer.isView(e)?(g(e.buffer)===!0,0===e.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):Wt(this,e)):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(Xt("read"))},e.prototype.releaseLock=function(){if(!Gt(this))throw Xt("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");w(this)}},e}(),zr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Kt(this);var r=t.size,a=t.highWaterMark,n=e.type,i=String(n);if("bytes"===i){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===a&&(a=0),a=p(a),Lt(this,e,a)}else{if(void 0!==n)throw new RangeError("Invalid type is specified");var o=m(r);void 0===a&&(a=1),a=p(a),ot(this,e,a,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(Yt(this)===!1)throw tr("locked");return Jt(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Yt(this)===!1?Promise.reject(tr("cancel")):Jt(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):Zt(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(Yt(this)===!1)throw tr("getReader");if(void 0===t)return I(this,!0);if(t=String(t),"byob"===t)return Ut(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var r=e.writable,n=e.readable,i=void 0===t?{}:t,o=i.preventClose,s=i.preventAbort,c=i.preventCancel,l=i.signal;if(Yt(this)===!1)throw tr("pipeThrough");if(X(r)===!1)throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(Yt(n)===!1)throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),s=Boolean(s),c=Boolean(c),void 0!==l&&!er(l))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(Jt(this)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(V(r)===!0)throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var u=Ke(this,r,o,s,c,l);return u["catch"](a),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,a=r.preventClose,n=r.preventAbort,i=r.preventCancel,o=r.signal;return Yt(this)===!1?Promise.reject(tr("pipeTo")):X(e)===!1?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(a=Boolean(a),n=Boolean(n),i=Boolean(i),void 0===o||er(o)?Jt(this)===!0?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):V(e)===!0?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ke(this,e,a,n,i,o):Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(Yt(this)===!1)throw tr("tee");var e=ct(this);return i(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(Yt(this)===!1)throw tr("getIterator");return M(this,r)},e}();"symbol"==typeof xr.asyncIterator&&Object.defineProperty(zr.prototype,xr.asyncIterator,{value:zr.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Hr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),Gr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),Wr=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var a=t.size,n=t.highWaterMark,i=r.size,o=r.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var c=m(a);void 0===n&&(n=1),n=p(n);var l=e.readableType;if(void 0!==l)throw new RangeError("Invalid readable type specified");var u=m(i);void 0===o&&(o=0),o=p(o);var f,d=new Promise(function(e){f=e});rr(this,d,n,c,o,u),lr(this,e);var g=h(e,"start",[this._transformStreamController]);f(g)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(ar(this)===!1)throw wr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(ar(this)===!1)throw wr("writable");return this._writable},enumerable:!0,configurable:!0}),e}(),Xr=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(sr(this)===!1)throw yr("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return rt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(sr(this)===!1)throw yr("enqueue");hr(this,e)},e.prototype.error=function(e){if(sr(this)===!1)throw yr("error");fr(this,e)},e.prototype.terminate=function(){if(sr(this)===!1)throw yr("terminate");gr(this)},e}()},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(a,n)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(a,n){function o(e){i(c,a,n,o,s,"next",e)}function s(e){i(c,a,n,o,s,"throw",e)}var c=e.apply(t,r);o(void 0)})}}function s(e){return e===m}function c(e,t){return e instanceof v&&(void 0===t||e.name===t)}function l(e,t){return e instanceof b&&(void 0===t||e.cmd===t)}function u(e,t){return e instanceof y&&(void 0===t||c(e.get("Type"),t))}function h(e){return e instanceof w}function f(e,t){return e.num===t.num&&e.gen===t.gen}function d(e){return"object"===n(e)&&null!==e&&void 0!==e.getBytes}function g(){b._clearCache(),v._clearCache(),w._clearCache()}Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=g,t.isEOF=s,t.isCmd=l,t.isDict=u,t.isName=c,t.isRef=h,t.isRefsEqual=f,t.isStream=d,t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0;var p=a(r(2)),m=(r(5),{});t.EOF=m;var v=function(){function e(e){this.name=e}var t=Object.create(null);return e.prototype={},e.get=function(r){var a=t[r];return a?a:t[r]=new e(r)},e._clearCache=function(){t=Object.create(null)},e}();t.Name=v;var b=function(){function e(e){this.cmd=e}var t=Object.create(null);return e.prototype={},e.get=function(r){var a=t[r];return a?a:t[r]=new e(r)},e._clearCache=function(){t=Object.create(null)},e}();t.Cmd=b;var y=function(){function e(e){this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=t}var t=function(){return t};return e.prototype={assignXref:function(e){this.xref=e},get:function(e,t,r){var a=this._map[e];return void 0!==a||e in this._map||void 0===t||(a=this._map[t],void 0!==a||t in this._map||void 0===r||(a=this._map[r])),a instanceof w&&this.xref?this.xref.fetch(a,this.suppressEncryption):a},getAsync:function(){function e(e,r,a){return t.apply(this,arguments)}var t=o(p["default"].mark(function r(e,t,a){var n;return p["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=this._map[e],void 0!==n||e in this._map||void 0===t||(n=this._map[t],void 0!==n||t in this._map||void 0===a||(n=this._map[a])),!(n instanceof w&&this.xref)){r.next=4;break}return r.abrupt("return",this.xref.fetchAsync(n,this.suppressEncryption));case 4:return r.abrupt("return",n);case 5:case"end":return r.stop()}},r,this)}));return e}(),getArray:function(e,t,r){var a=this.get(e,t,r);if(!Array.isArray(a)||!this.xref)return a;a=a.slice();for(var n=0,i=a.length;n=this.end?this.numChunks:Math.floor(t/this.chunkSize),n=r;n=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,a=Math.floor(e/r),n=Math.floor((t-1)/r)+1,i=a;i=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t}},{key:"getInt32",value:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),a=this.getByte();return(e<<24)+(t<<16)+(r<<8)+a}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,a=this.pos,n=this.end;if(!e){n>this.progressiveDataLength&&this.ensureRange(a,n);var i=r.subarray(a,n);return t?new Uint8ClampedArray(i):i}var o=a+e;o>n&&(o=n),o>this.progressiveDataLength&&this.ensureRange(a,o),this.pos=o;var s=r.subarray(a,o);return t?new Uint8ClampedArray(s):s}},{key:"peekByte",value:function(){var e=this.getByte();return this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){e||(e=1),this.pos+=e}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,r){function a(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),a.prototype=Object.create(this),a.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[],n=t;n0&&void 0!==arguments[0]?arguments[0]:[],t=[],r=!0,a=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0)for(var s=i.value,c=this.getBeginChunk(s.begin),l=this.getEndChunk(s.end),u=c;u=0&&a+1!==o&&(t.push({beginChunk:r,endChunk:a+1}),r=o),n+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),a=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,a=r?this.progressiveDataLength:e.begin,n=a+t.byteLength,i=Math.floor(a/this.chunkSize),s=nc){(0,d.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(a,'"'));break}r=r.get("Parent")}return t}function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,d.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,a=[];e>=1e3;)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(v[r]),r=e/10|0,e%=10,a.push(v[10+r]),a.push(v[20+e]);var n=a.join("");return t?n.toLowerCase():n}Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=u,t.getInheritableProperty=h,t.toRomanNumerals=f,t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var d=r(5),g=function(e){function t(e,r){var a;return n(this,t),a=i(this,s(t).call(this,"Missing data [".concat(e,", ").concat(r,")"))),a.begin=e,a.end=r,a}return c(t,e),t}(d.BaseException);t.MissingDataException=g;var p=function(e){function t(){return n(this,t),i(this,s(t).apply(this,arguments))}return c(t,e),t}(d.BaseException);t.XRefEntryException=p;var m=function(e){function t(){return n(this,t),i(this,s(t).apply(this,arguments))}return c(t,e),t}(d.BaseException);t.XRefParseException=m;var v=["","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(e,t,r){"use strict";function a(e,t){return o(e)||i(e,t)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],a=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(c){n=!0,i=c}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw i}}return r}}function o(e){if(Array.isArray(e))return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r3&&void 0!==arguments[3]&&arguments[3];(0,f.assert)(r>0,'The "limit" must be a positive integer.');var n=(0,f.bytesToString)(e.peekBytes(r)),i=a?n.lastIndexOf(t):n.indexOf(t); return i!==-1&&(e.pos+=i,!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var f=r(5),d=r(188),g=r(183),p=r(186),m=r(190),v=r(202),b=r(200),y=r(189),w=r(203),k=r(204),S=r(218),x=1,C=[0,0,612,792],A=function(){function e(t){var r=t.pdfManager,a=t.xref,n=t.pageIndex,i=t.pageDict,o=t.ref,c=t.fontCache,l=t.builtInCMapCache,u=t.pdfFunctionFactory;s(this,e),this.pdfManager=r,this.pageIndex=n,this.pageDict=i,this.xref=a,this.ref=o,this.fontCache=c,this.builtInCMapCache=l,this.pdfFunctionFactory=u,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null;var h={obj:0};this.idFactory={createObjId:function(){return"p".concat(n,"_").concat(++h.obj)},getDocId:function(){return"g_".concat(r.docId)}}}return l(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,p.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,g.isDict)(r[0])?g.Dict.merge(this.xref,r):r[0]:r}},{key:"_getBoundingBox",value:function(e){var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,f.warn)("Empty /".concat(e," entry."))}return null}},{key:"getContentStream",value:function(){var e,t=this.content;if(Array.isArray(t)){var r=this.xref,a=[],n=!0,i=!1,o=void 0;try{for(var s,c=t[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var l=s.value;a.push(r.fetchIfRef(l))}}catch(u){i=!0,o=u}finally{try{n||null==c["return"]||c["return"]()}finally{if(i)throw o}}e=new m.StreamsSequenceStream(a)}else e=(0,g.isStream)(t)?t:new m.NullStream;return e}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(function(){var r=new d.ObjectLoader(t.resources,e,t.xref);return r.load()})}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,n=e.sink,i=e.task,o=e.intent,s=e.renderInteractiveForms,c=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),h=new k.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),d=Promise.all([c,l]),g=d.then(function(e){var s=a(e,1),c=s[0],l=new w.OperatorList(o,n,t.pageIndex);return r.send("StartRenderPage",{transparency:h.hasBlendModes(t.resources),pageIndex:t.pageIndex,intent:o}),h.getOperatorList({stream:c,task:i,resources:t.resources,operatorList:l}).then(function(){return l})});return Promise.all([g,this._parsedAnnotations]).then(function(e){var t=a(e,2),r=t[0],n=t[1];if(0===n.length)return r.flush(!0),{length:r.totalLength};var c=[],l=!0,d=!1,g=void 0;try{for(var p,m=n[Symbol.iterator]();!(l=(p=m.next()).done);l=!0){var v=p.value;u(v,o)&&c.push(v.getOperatorList(h,i,s))}}catch(b){d=!0,g=b}finally{try{l||null==m["return"]||m["return"]()}finally{if(d)throw g}}return Promise.all(c).then(function(e){r.addOp(f.OPS.beginAnnotations,[]);var t=!0,a=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;r.addOpList(s)}}catch(c){a=!0,n=c}finally{try{t||null==o["return"]||o["return"]()}finally{if(a)throw n}}return r.addOp(f.OPS.endAnnotations,[]),r.flush(!0),{length:r.totalLength}})})}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,n=e.task,i=e.normalizeWhitespace,o=e.sink,s=e.combineTextItems,c=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","XObject","Font"]),u=Promise.all([c,l]);return u.then(function(e){var c=a(e,1),l=c[0],u=new k.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,options:t.evaluatorOptions,pdfFunctionFactory:t.pdfFunctionFactory});return u.getTextContent({stream:l,task:n,resources:t.resources,normalizeWhitespace:i,combineTextItems:s,sink:o})})}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then(function(t){for(var r=[],a=0,n=t.length;a=360?e%=360:e<0&&(e=(e%360+360)%360),(0,f.shadow)(this,"rotate",e)}},{key:"annotations",get:function(){return(0,f.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then(function(){for(var t=e.annotations,r=[],a=0,n=t.length;a0&&(this.collection=n)}catch(a){if(a instanceof p.MissingDataException)throw a;(0,f.info)("Cannot fetch Collection dictionary.")}}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),h(e,"%PDF-",1024)){e.moveStart();for(var t,r=12,a="";(t=e.getByte())>32&&!(a.length>=r);)a+=String.fromCharCode(t);this.pdfFormatVersion||(this.pdfFormatVersion=a.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"setup",value:function(e){this.xref.parse(e),this.catalog=new d.Catalog(this.pdfManager,this.xref)}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization;(0,f.assert)(r&&r.pageFirst===e);var a=g.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(a).then(function(e){if((0,g.isDict)(e,"Page")||(0,g.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return a&&!t.pageKidsCountCache.has(a)&&t.pageKidsCountCache.put(a,1),[e,a];throw new f.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})["catch"](function(r){return(0,f.info)(r),t.getPageDict(e)})}},{key:"getPage",value:function(e){var t=this;if(void 0!==this._pagePromises[e])return this._pagePromises[e];var r=this.catalog,n=this.linearization,i=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=i.then(function(n){var i=a(n,2),o=i[0],s=i[1];return new A({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:o,ref:s,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,pdfFunctionFactory:t.pdfFunctionFactory})})}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0)["catch"](function(t){if(t instanceof p.XRefEntryException)throw e._pagePromises.length=0,e.cleanup(),new p.XRefParseException})}},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:function(){return this.catalog.cleanup()}},{key:"linearization",get:function(){var e=null;try{e=y.Linearization.create(this.stream)}catch(t){if(t instanceof p.MissingDataException)throw t;(0,f.info)(t)}return(0,f.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),h(e,"endobj",1024)&&(t=e.pos+6);else{for(var r=1024,a="startxref".length,n=!1,i=e.end;!n&&i>0;)i-=r-a,i<0&&(i=0),e.pos=i,n=h(e,"startxref",r,!0);if(n){e.skip(9);var o;do o=e.getByte();while((0,f.isSpace)(o));for(var s="";o>=32&&o<=57;)s+=String.fromCharCode(o),o=e.getByte();t=parseInt(s,10),isNaN(t)&&(t=0)}}return(0,f.shadow)(this,"startXRef",t)}},{key:"numPages",get:function(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,f.shadow)(this,"numPages",t)}},{key:"documentInfo",get:function(){var e,t={Title:f.isString,Author:f.isString,Subject:f.isString,Keywords:f.isString,Creator:f.isString,Producer:f.isString,CreationDate:f.isString,ModDate:f.isString,Trapped:g.isName},r={PDFFormatVersion:this.pdfFormatVersion,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};try{e=this.xref.trailer.get("Info")}catch(a){if(a instanceof p.MissingDataException)throw a;(0,f.info)("The document information dictionary is invalid.")}if((0,g.isDict)(e)){var n=!0,i=!1,o=void 0;try{for(var s,c=e.getKeys()[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var l=s.value,u=e.get(l);if(t[l])t[l](u)?r[l]="string"!=typeof u?u:(0,f.stringToPDFString)(u):(0,f.info)('Bad value in document info for "'.concat(l,'".'));else if("string"==typeof l){var h=void 0;if((0,f.isString)(u))h=(0,f.stringToPDFString)(u);else{if(!((0,g.isName)(u)||(0,f.isNum)(u)||(0,f.isBool)(u))){(0,f.info)('Unsupported value in document info for (custom) "'.concat(l,'".'));continue}h=u}r.Custom||(r.Custom=Object.create(null)),r.Custom[l]=h}}}catch(a){i=!0,o=a}finally{try{n||null==c["return"]||c["return"]()}finally{if(i)throw o}}}return(0,f.shadow)(this,"documentInfo",r)}},{key:"fingerprint",get:function(){var e,t=this.xref.trailer.get("ID");e=Array.isArray(t)&&t[0]&&(0,f.isString)(t[0])&&t[0]!==P?(0,f.stringToBytes)(t[0]):(0,b.calculateMD5)(this.stream.getByteRange(0,O),0,O);for(var r=[],a=0,n=e.length;a0;){var s=a.shift(),c=i.fetchIfRef(s.obj);if(null!==c){if(!c.has("Title"))throw new k.FormatError("Invalid outline item encountered.");var l={url:null,dest:null};e.parseDestDictionary({destDict:c,resultObj:l,docBaseUrl:this.pdfManager.docBaseUrl});var u=c.get("Title"),h=c.get("F")||0,f=c.getArray("C"),d=c.get("Count"),g=o;!Array.isArray(f)||3!==f.length||0===f[0]&&0===f[1]&&0===f[2]||(g=P.ColorSpace.singletons.rgb.getRgb(f,0));var p={dest:l.dest,url:l.url,unsafeUrl:l.unsafeUrl,newWindow:l.newWindow,title:(0,k.stringToPDFString)(u),color:g,count:Number.isInteger(d)?d:void 0,bold:!!(2&h),italic:!!(1&h),items:[]};s.parent.items.push(p),t=c.getRaw("First"),(0,S.isRef)(t)&&!n.has(t)&&(a.push({obj:t,parent:p}),n.put(t)),t=c.getRaw("Next"),(0,S.isRef)(t)&&!n.has(t)&&(a.push({obj:t,parent:s.parent}),n.put(t))}}return r.items.length>0?r.items:null}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,S.isDict)(e))return null;var t=e.get("P");if(!(0,k.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var a in k.PermissionFlag){var n=k.PermissionFlag[a];t&n&&r.push(n)}return r}},{key:"getDestination",value:function(e){var t=this._readDests();return t instanceof F||t instanceof S.Dict?y(t.get(e)||null):null}},{key:"_readDests",value:function(){var e=this.catDict.get("Names");return e&&e.has("Dests")?new F(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}},{key:"_readPageLabels",value:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,a="",n=new B(e,this.xref),i=n.getAll(),o="",s=1,c=0,l=this.numPages;c=1))throw new k.FormatError("Invalid start in PageLabel dictionary.");s=d}else s=1}switch(r){case"D":o=s;break;case"R":case"r":o=(0,C.toRomanNumerals)(s,"r"===r);break;case"A":case"a":for(var g=26,p=65,m=97,v="a"===r?m:p,b=s-1,y=String.fromCharCode(v+b%g),w=[],x=0,A=b/g|0;x<=A;x++)w.push(y);o=w.join("");break;default:if(r)throw new k.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));o=""}t[c]=a+o,s++}return t}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach(function(e){r.push(e)}),Promise.all(r).then(function(r){var a=!0,n=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var c=o.value;if(c.loadedName===e)return void c.fallback(t)}}catch(l){n=!0,i=l}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw i}}})}},{key:"cleanup",value:function(){var e=this;(0,S.clearPrimitiveCaches)(),this.pageKidsCountCache.clear();var t=[];return this.fontCache.forEach(function(e){t.push(e)}),Promise.all(t).then(function(t){for(var r=0,a=t.length;r0&&s+r=0){var l=c.objId;if(l&&!o.has(l)&&o.put(l,r),s+r<=e)return s+=r,"continue"}var u=c.get("Kids");if(!Array.isArray(u))return(0,S.isName)(c.get("Type"),"Page")||!c.has("Type")&&c.has("Contents")?s===e?(a.resolve([c,null]),{v:void 0}):(s++,"continue"):(a.reject(new k.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var h=u.length-1;h>=0;h--)n.push(u[h])};n.length;){var l=c();switch(l){case"continue":continue;default:if("object"===p(l))return l.v}}a.reject(new Error("Page index ".concat(e," not found.")))}var r,a=(0,k.createPromiseCapability)(),n=[this.catDict.getRaw("Pages")],i=this.xref,o=this.pageKidsCountCache,s=0;return t(),a.promise}},{key:"getPageIndex",value:function(e){function t(t){var r,n=0;return a.fetchAsync(t).then(function(a){if((0,S.isRefsEqual)(t,e)&&!(0,S.isDict)(a,"Page")&&(!(0,S.isDict)(a)||a.has("Type")||!a.has("Contents")))throw new k.FormatError("The reference does not point to a /Page dictionary.");if(!a)return null;if(!(0,S.isDict)(a))throw new k.FormatError("Node must be a dictionary.");return r=a.getRaw("Parent"),a.getAsync("Parent")}).then(function(e){if(!e)return null;if(!(0,S.isDict)(e))throw new k.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")}).then(function(e){if(!e)return null;for(var i=[],o=!1,s=0,c=e.length;s0&&(0===r||t>=a[r-1])&&t<=e.numPages});c&&(o=i);break;case"NumCopies":i>0&&(o=i);break;default:(0,k.assert)("boolean"==typeof i),o=i}void 0!==o?a[n]=o:(0,k.info)('Bad value in ViewerPreferences for "'.concat(n,'".'))}else(0,k.info)('Bad value in ViewerPreferences for "'.concat(n,'".'))}return(0,k.shadow)(this,"viewerPreferences",a)}},{key:"openActionDestination",get:function(){var t=this.catDict.get("OpenAction"),r=null;if((0,S.isDict)(t)){var a=new S.Dict(this.xref);a.set("A",t);var n={url:null,dest:null};e.parseDestDictionary({destDict:a,resultObj:n}),Array.isArray(n.dest)&&(r=n.dest)}else Array.isArray(t)&&(r=t);return(0,k.shadow)(this,"openActionDestination",r)}},{key:"attachments",get:function(){var e=this.catDict.get("Names"),t=null;if(e&&e.has("EmbeddedFiles")){var r=new F(e.getRaw("EmbeddedFiles"),this.xref),a=r.getAll();for(var n in a){var i=new _(a[n],this.xref);t||(t=Object.create(null)),t[(0,k.stringToPDFString)(n)]=i.serializable}}return(0,k.shadow)(this,"attachments",t)}},{key:"javaScript",get:function(){function e(e){var t=e.get("S");if((0,S.isName)(t,"JavaScript")){var a=e.get("JS");if((0,S.isStream)(a))a=(0,k.bytesToString)(a.getBytes());else if(!(0,k.isString)(a))return;r||(r=[]),r.push((0,k.stringToPDFString)(a))}}var t=this.catDict.get("Names"),r=null;if(t&&t.has("JavaScript")){var a=new F(t.getRaw("JavaScript"),this.xref),n=a.getAll();for(var i in n){var o=n[i];(0,S.isDict)(o)&&e(o)}}var s=this.catDict.get("OpenAction");if((0,S.isDict)(s,"Action")){var c=s.get("S");if((0,S.isName)(c,"Named")){var l=s.get("N");(0,S.isName)(l,"Print")&&(r||(r=[]),r.push("print({});"))}else e(s)}return(0,k.shadow)(this,"javaScript",r)}}],[{key:"parseDestDictionary",value:function(e){function t(e){return e.startsWith("www.")?"http://".concat(e):e}function r(e){try{return(0,k.stringToUTF8String)(e)}catch(t){return e}}var a=e.destDict;if(!(0,S.isDict)(a))return void(0,k.warn)("parseDestDictionary: `destDict` must be a dictionary.");var n=e.resultObj;if("object"!==p(n))return void(0,k.warn)("parseDestDictionary: `resultObj` must be an object.");var i,o,s=e.docBaseUrl||null,c=a.get("A");if(!(0,S.isDict)(c)&&a.has("Dest")&&(c=a.get("Dest")),(0,S.isDict)(c)){var l=c.get("S");if(!(0,S.isName)(l))return void(0,k.warn)("parseDestDictionary: Invalid type in Action dictionary.");var u=l.name;switch(u){case"URI":i=c.get("URI"),(0,S.isName)(i)?i="/"+i.name:(0,k.isString)(i)&&(i=t(i));break;case"GoTo":o=c.get("D");break;case"Launch":case"GoToR":var h=c.get("F");(0,S.isDict)(h)?i=h.get("F")||null:(0,k.isString)(h)&&(i=h);var f=c.get("D");if(f&&((0,S.isName)(f)&&(f=f.name),(0,k.isString)(i))){var d=i.split("#")[0];(0,k.isString)(f)?i=d+"#"+f:Array.isArray(f)&&(i=d+"#"+JSON.stringify(f))}var g=c.get("NewWindow");(0,k.isBool)(g)&&(n.newWindow=g);break;case"Named":var m=c.get("N");(0,S.isName)(m)&&(n.action=m.name);break;case"JavaScript":var v,b=c.get("JS");if((0,S.isStream)(b)?v=(0,k.bytesToString)(b.getBytes()):(0,k.isString)(b)&&(v=b),v){var y=["app.launchURL","window.open"],w=new RegExp("^\\s*("+y.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),x=w.exec((0,k.stringToPDFString)(v));if(x&&x[2]){i=x[2],"true"===x[3]&&"app.launchURL"===x[1]&&(n.newWindow=!0);break}}default:(0,k.warn)('parseDestDictionary: unsupported action type "'.concat(u,'".'))}}else a.has("Dest")&&(o=a.get("Dest"));if((0,k.isString)(i)){i=r(i);var C=(0,k.createValidAbsoluteUrl)(i,s);C&&(n.url=C.href),n.unsafeUrl=i}o&&((0,S.isName)(o)&&(o=o.name),((0,k.isString)(o)||Array.isArray(o))&&(n.dest=o))}}]),e}();t.Catalog=I;var T=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t;e?((0,k.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;var r;try{r=t.get("Encrypt")}catch(a){if(a instanceof C.MissingDataException)throw a;(0,k.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(a,'".'))}if((0,S.isDict)(r)){var n=t.get("ID"),i=n&&n.length?n[0]:"";r.suppressEncryption=!0,this.encrypt=new O.CipherTransformFactory(r,i,this.pdfManager.password)}var o;try{o=t.get("Root")}catch(a){if(a instanceof C.MissingDataException)throw a;(0,k.warn)('XRef.parse - Invalid "Root" reference: "'.concat(a,'".'))}if(!(0,S.isDict)(o)||!o.has("Pages")){if(!e)throw new C.XRefParseException;throw new k.FormatError("Invalid root reference")}this.root=o},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,S.isCmd)(t,"trailer"))throw new k.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,S.isDict)(r)&&r.dict&&(r=r.dict),!(0,S.isDict)(r))throw new k.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r},readXRefTable:function(e){var t=e.lexer.stream,r=this.tableState;t.pos=r.streamPos,e.buf1=r.parserBuf1,e.buf2=r.parserBuf2;for(var a;;){if(!("firstEntryNum"in r&&"entryCount"in r)){if((0,S.isCmd)(a=e.getObj(),"trailer"))break;r.firstEntryNum=a,r.entryCount=e.getObj()}var n=r.firstEntryNum,i=r.entryCount;if(!Number.isInteger(n)||!Number.isInteger(i))throw new k.FormatError("Invalid XRef table: wrong types in subsection header");for(var o=r.entryNum;o0;){var l=c[0],u=c[1];if(!Number.isInteger(l)||!Number.isInteger(u))throw new k.FormatError("Invalid XRef range fields: ".concat(l,", ").concat(u));if(!Number.isInteger(i)||!Number.isInteger(o)||!Number.isInteger(s))throw new k.FormatError("Invalid XRef entry fields length: ".concat(l,", ").concat(u));for(t=a.entryNum;t=e.length);)r+=String.fromCharCode(i),i=e[t];return r}function t(e,t,r){for(var a=r.length,n=e.length,i=0;t=a)break;t++,i++}return i}var r=9,a=10,n=13,i=32,o=37,s=60,c=/^(\d+)\s+(\d+)\s+obj\b/,l=/\bendobj[\b\s]$/,u=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,h=25,f=new Uint8Array([116,114,97,105,108,101,114]),d=new Uint8Array([115,116,97,114,116,120,114,101,102]),g=new Uint8Array([111,98,106]),p=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var m=this.stream;m.pos=0;for(var v=m.getBytes(),b=m.start,y=v.length,w=[],A=[];b=y)break;O=v[b]}while(O!==a&&O!==n);else++b}var U,j;for(U=0,j=A.length;U2&&void 0!==arguments[2]&&arguments[2],a=e.gen,n=e.num;if(t.gen!==a)throw new C.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var i=this.stream.makeSubStream(t.offset+this.stream.start),o=new x.Parser({lexer:new x.Lexer(i),xref:this,allowStreams:!0}),s=o.getObj(),c=o.getObj(),l=o.getObj();if(Number.isInteger(s)||(s=parseInt(s,10)),Number.isInteger(c)||(c=parseInt(c,10)),s!==n||c!==a||!(l instanceof S.Cmd))throw new C.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==l.cmd){if(l.cmd.startsWith("obj")&&(n=parseInt(l.cmd.substring(3),10),!Number.isNaN(n)))return n;throw new C.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?o.getObj(this.encrypt.createCipherTransform(n,a)):o.getObj(),(0,S.isStream)(t)||this._cacheMap.set(n,t),t},fetchCompressed:function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],t.offset),a=this.fetch(S.Ref.get(r,0));if(!(0,S.isStream)(a))throw new k.FormatError("bad ObjStm stream");var n=a.dict.get("First"),i=a.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(i))throw new k.FormatError("invalid first and n parameters for ObjStm stream");var o,s,c=new x.Parser({lexer:new x.Lexer(a),xref:this,allowStreams:!0}),l=[],u=[];for(o=0;o0;){var n=t.fetchIfRef(a.shift());if((0,S.isDict)(n))if(n.has("Kids"))for(var i=n.get("Kids"),o=0,s=i.length;on)return(0,k.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var i=r.get("Kids");if(!Array.isArray(i))return null;for(var o=0,s=i.length-1;o<=s;){var c=o+s>>1,l=t.fetchIfRef(i[c]),u=l.get("Limits");if(et.fetchIfRef(u[1]))){r=t.fetchIfRef(i[c]);break}o=c+1}}if(o>s)return null}var h=r.get(this._type);if(Array.isArray(h)){for(var f=0,d=h.length-2;f<=d;){var g=f+d>>1,p=g+(1&g),m=t.fetchIfRef(h[p]);if(em))return t.fetchIfRef(h[p+1]);f=p+2}}(0,k.info)('Falling back to an exhaustive search, for key "'.concat(e,'", ')+'in "'.concat(this._type,'" tree.'));for(var v=0,b=h.length;v=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?(15&e)+9:-1}Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var c=r(190),l=r(5),u=r(183),h=r(191),f=r(193),d=r(196),g=r(198),p=r(186),m=1e3,v=5552,b=function(){function e(t){var r=t.lexer,n=t.xref,i=t.allowStreams,o=void 0!==i&&i,s=t.recoveryMode,c=void 0!==s&&s;a(this,e),this.lexer=r,this.xref=n,this.allowStreams=o,this.recoveryMode=c,this.imageCache=Object.create(null),this.refill()}return i(e,[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof u.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof p.MissingDataException)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof u.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,u.isCmd)(this.buf1,"]")&&!(0,u.isEOF)(this.buf1);)r.push(this.getObj(e));if((0,u.isEOF)(this.buf1)){if(!this.recoveryMode)throw new l.FormatError("End of file inside array");return r}return this.shift(),r;case"<<":for(var a=new u.Dict(this.xref);!(0,u.isCmd)(this.buf1,">>")&&!(0,u.isEOF)(this.buf1);)if((0,u.isName)(this.buf1)){var n=this.buf1.name;if(this.shift(),(0,u.isEOF)(this.buf1))break;a.set(n,this.getObj(e))}else(0,l.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,u.isEOF)(this.buf1)){if(!this.recoveryMode)throw new l.FormatError("End of file inside dictionary");return a}return(0,u.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(a,e):a:(this.shift(),a);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,u.isCmd)(this.buf2,"R")){var i=u.Ref.get(t,this.buf1);return this.shift(),this.shift(),i}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,a=69,n=73,i=32,o=10,s=13,c=10,u=0,h=e.pos,f=0;(t=e.getByte())!==-1;)if(0===f)f=t===a?1:0;else if(1===f)f=t===n?2:0;else if((0,l.assert)(2===f),t===i||t===o||t===s){r=e.pos;for(var d=e.peekBytes(c),g=0,p=d.length;g127)){f=0;break}if(2===f)break}else f=0;t===-1&&((0,l.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,l.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var m=4;return e.skip(-m),t=e.peekByte(),e.skip(m),(0,l.isSpace)(t)||m--,e.pos-m-h}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var t,r,a,n=e.pos,i=!1;(t=e.getByte())!==-1;)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!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:r=e.getUint16(),r>2?e.skip(r-2):e.skip(-2)}if(i)break}return a=e.pos-n,t===-1?((0,l.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r,a=126,n=62,i=e.pos;(t=e.getByte())!==-1;)if(t===a){for(t=e.peekByte();(0,l.isSpace)(t);)e.skip(),t=e.peekByte();if(t===n){e.skip();break}}return r=e.pos-i,t===-1?((0,l.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r,a=62,n=e.pos;(t=e.getByte())!==-1&&t!==a;);return r=e.pos-n,t===-1?((0,l.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=69,a=73,n=0;(t=e.getByte())!==-1;)if(0===n)n=t===r?1:0;else if(1===n)n=t===a?2:0;else if(2===n)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,a=r.stream,n=new u.Dict(this.xref);!(0,u.isCmd)(this.buf1,"ID")&&!(0,u.isEOF)(this.buf1);){if(!(0,u.isName)(this.buf1))throw new l.FormatError("Dictionary key must be a name object");var i=this.buf1.name;if(this.shift(),(0,u.isEOF)(this.buf1))break;n.set(i,this.getObj(e))}r.beginInlineImagePos!==-1&&(t=a.pos-r.beginInlineImagePos);var s,c=n.get("Filter","F");if((0,u.isName)(c))s=c.name;else if(Array.isArray(c)){var h=this.xref.fetchIfRef(c[0]);(0,u.isName)(h)&&(s=h.name)}var f,d=a.pos;f="DCTDecode"===s||"DCT"===s?this.findDCTDecodeInlineStreamEnd(a):"ASCII85Decode"===s||"A85"===s?this.findASCII85DecodeInlineStreamEnd(a):"ASCIIHexDecode"===s||"AHx"===s?this.findASCIIHexDecodeInlineStreamEnd(a):this.findDefaultInlineStreamEnd(a);var g,p=a.makeSubStream(d,f,n);if(f=n)return r.pos+=s,r.pos-e;s++}r.pos+=o}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,a=r.stream;r.skipToNextLine();var n=a.pos-1,i=e.get("Length");if(Number.isInteger(i)||((0,l.info)('Bad length "'.concat(i,'" in stream')),i=0),a.pos=n+i,r.nextChar(),this.tryShift()&&(0,u.isCmd)(this.buf2,"endstream"))this.shift();else{var o=new Uint8Array([101,110,100,115,116,114,101,97,109]),s=this._findStreamLength(n,o);if(s<0){for(var c=1,h=1;h<=c;h++){var f=o.length-h,d=o.slice(0,f),g=this._findStreamLength(n,d);if(g>=0){var p=a.peekBytes(f+1)[f];if(!(0,l.isSpace)(p))break;(0,l.info)('Found "'.concat((0,l.bytesToString)(d),'" when ')+"searching for endstream command."),s=g;break}}if(s<0)throw new l.FormatError("Missing endstream command.")}i=s,r.nextChar(),this.shift(),this.shift()}return this.shift(),a=a.makeSubStream(n,i,e),t&&(a=t.createStream(a,i)),a=this.filter(a,e,i),a.dict=e,a}},{key:"filter",value:function t(e,r,a){var t=r.get("Filter","F"),n=r.get("DecodeParms","DP");if((0,u.isName)(t))return Array.isArray(n)&&(0,l.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,t.name,a,n);var i=a;if(Array.isArray(t))for(var o=t,s=n,c=0,h=o.length;c1&&void 0!==arguments[1]?arguments[1]:null;a(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this.beginInlineImagePos=-1}return i(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,a=0;if(45===e?(a=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(a=1,e=this.nextChar()),10===e||13===e)do e=this.nextChar();while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if(10===r&&0===a&&((0,l.isSpace)(e)||e===-1))return(0,l.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new l.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}a=a||1;for(var n=e-48,i=0,o=1;(e=this.nextChar())>=0;)if(48<=e&&e<=57){var s=e-48;t?i=10*i+s:(0!==r&&(r*=10),n=10*n+s)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,l.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)o=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(n/=r),t&&(n*=Math.pow(10,o*i)),a*n}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var n=!1;switch(0|a){case-1:(0,l.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,l.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var i=15&a;a=this.nextChar(),n=!0,a>=48&&a<=55&&(i=(i<<3)+(15&a),a=this.nextChar(),a>=48&&a<=55&&(n=!1,i=(i<<3)+(15&a))),r.push(String.fromCharCode(i));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;n||(a=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!y[e];)if(35===e){if(e=this.nextChar(),y[e]){(0,l.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var a=s(e);if(a!==-1){t=e,e=this.nextChar();var n=s(e);if(n===-1){if((0,l.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),y[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(a<<4|n))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,l.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),u.Name.get(r.join(""))}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;for(var t,r,a=this.currentChar,n=!0;;){if(a<0){(0,l.warn)("Unterminated hex string");break}if(62===a){this.nextChar();break}if(1!==y[a]){if(n){if(t=s(a),t===-1){(0,l.warn)('Ignoring invalid character "'.concat(a,'" in hex string')),a=this.nextChar();continue}}else{if(r=s(a),r===-1){(0,l.warn)('Ignoring invalid character "'.concat(a,'" in hex string')),a=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}n=!n,a=this.nextChar()}else a=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return u.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==y[t])break;t=this.nextChar()}switch(0|t){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:return this.nextChar(),u.Cmd.get("[");case 93:return this.nextChar(),u.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),u.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),u.Cmd.get(">>")):u.Cmd.get(">");case 123:return this.nextChar(),u.Cmd.get("{");case 125:return this.nextChar(),u.Cmd.get("}");case 41:throw this.nextChar(),new l.FormatError("Illegal character: ".concat(t))}for(var r=String.fromCharCode(t),a=this.knownCommands,n=a&&void 0!==a[r];(t=this.nextChar())>=0&&!y[t];){var i=r+String.fromCharCode(t);if(n&&void 0===a[i])break;if(128===r.length)throw new l.FormatError("Command token too long: ".concat(r.length));r=i,n=a&&void 0!==a[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),u.Cmd.get(r)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=w;var k=function(){function e(){a(this,e)}return i(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.get(t);if(Number.isInteger(a)&&(r?a>=0:a>0))return a;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}function r(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var a=0;a0))throw new Error("Hint (".concat(a,") in the linearization dictionary ")+"is invalid.")}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}var a,n,i=new b({lexer:new w(e),xref:null}),o=i.getObj(),s=i.getObj(),c=i.getObj(),h=i.getObj();if(!(Number.isInteger(o)&&Number.isInteger(s)&&(0,u.isCmd)(c,"obj")&&(0,u.isDict)(h)&&(0,l.isNum)(a=h.get("Linearized"))&&a>0))return null;if((n=t(h,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:n,hints:r(h),objectNumberFirst:t(h,"O"),endFirst:t(h,"E"),numPages:t(h,"N"),mainXRefEntriesOffset:t(h,"T"),pageFirst:h.has("P")?t(h,"P",!0):0}}}]),e}();t.Linearization=k},function(e,t,r){"use strict";function a(e){return o(e)||i(e)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return e===-1||t===-1?-1:(e<<8)+t},getInt32:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),a=this.getByte();return(e<<24)+(t<<16)+(r<<8)+a},getBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,a=this.pos,n=this.end;if(!e){var i=r.subarray(a,n);return t?new Uint8ClampedArray(i):i}var o=a+e;o>n&&(o=n),this.pos=o;var s=r.subarray(a,o);return t?new Uint8ClampedArray(s):s},peekByte:function(){var e=this.getByte();return this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},getByteRange:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,a){return new e(this.bytes.buffer,t,r,a)}},e}();t.Stream=l;var u=function(){function e(e){var t=(0,s.stringToBytes)(e);l.call(this,t)}return e.prototype=l.prototype,e}();t.StringStream=u;var h=function(){function e(e){if(this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=t,this.minBufferLength=512,e)for(;this.minBufferLength1&&void 0!==arguments[1]&&arguments[1],a=this.pos;if(e){for(this.ensureBuffer(a+e),t=a+e;!this.eof&&this.bufferLengthn&&(t=n)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;var i=this.buffer.subarray(a,t);return!r||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},peekByte:function(){var e=this.getByte();return this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},makeSubStream:function(e,t,r){for(var a=e+t;this.bufferLength<=a&&!this.eof;)this.readBlock();return new l(this.buffer,e,t,r)},getByteRange:function(e,t){(0,s.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},e}();t.DecodeStream=h;var f=function(){function e(e){this.streams=e;for(var t=0,r=0,a=e.length;r>e,this.codeSize=a-=e,t},e.prototype.getCode=function(e){for(var t,r=this.str,a=e[0],n=e[1],i=this.codeSize,o=this.codeBuf;i>16,u=65535&c;if(l<1||i>l,this.codeSize=i-l,u},e.prototype.generateHuffmanTable=function(e){var t,r=e.length,a=0;for(t=0;ta&&(a=e[t]);for(var n=1<>=1;for(t=u;t>=1,0!==l){var u,h;if(1===l)u=n,h=i;else{if(2!==l)throw new s.FormatError("Unknown block type in flate stream");var f,d=this.getBits(5)+257,g=this.getBits(5)+1,p=this.getBits(4)+4,m=new Uint8Array(t.length);for(f=0;f0;)S[f++]=w}u=this.generateHuffmanTable(S.subarray(0,d)),h=this.generateHuffmanTable(S.subarray(d,k))}e=this.buffer;for(var A=e?e.length:0,O=this.bufferLength;;){var P=this.getCode(u);if(P<256)O+1>=A&&(e=this.ensureBuffer(O+1),A=e.length),e[O++]=P;else{if(256===P)return void(this.bufferLength=O);P-=257,P=r[P];var I=P>>16;I>0&&(I=this.getBits(I)),o=(65535&P)+I,P=this.getCode(h),P=a[P],I=P>>16,I>0&&(I=this.getBits(I));var T=(65535&P)+I;O+o>=A&&(e=this.ensureBuffer(O+o),A=e.length);for(var E=0;E15))throw new s.FormatError("Unsupported predictor: ".concat(a));2===a?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=e,this.dict=e.dict;var n=this.colors=r.get("Colors")||1,i=this.bits=r.get("BitsPerComponent")||8,o=this.columns=r.get("Columns")||1;return this.pixBytes=n*i+7>>3,this.rowBytes=o*n*i+7>>3,h.call(this,t),this}return e.prototype=Object.create(h.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,n=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,c=0,l=0,u=0,h=t;if(1===a&&1===n)for(o=0;o>1,f^=f>>2,f^=f>>4,s=(1&f)<<7,r[h++]=f}else if(8===a){for(o=0;o>8&255,r[h++]=255&g}}else{var p=new Uint8Array(n+1),m=(1<>l-a)&m,l-=a,c=c<=8&&(r[b++]=c>>u-8&255,u-=8);u>0&&(r[b++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var n=this.bufferLength,i=this.ensureBuffer(n+e),o=i.subarray(n-e,n);0===o.length&&(o=new Uint8Array(e));var c,l,u,h=n;switch(r){case 0:for(c=0;c>1)+a[c];for(;c>1)+a[c]&255,h++;break;case 4:for(c=0;c0,a=this.decrypt;e=a(e,!r);var n,i=this.bufferLength,o=e.length,s=this.ensureBuffer(i+o);for(n=0;n=0;--o)i[c+o]=255&u,u>>=8}},e}();t.Ascii85Stream=m;var v=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t=.5*t),h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e=8e3,t=this.str.getBytes(e);if(!t.length)return void(this.eof=!0);for(var r=t.length+1>>1,a=this.ensureBuffer(this.bufferLength+r),n=this.bufferLength,i=this.firstDigit,o=0,s=t.length;o=48&&l<=57)c=15&l;else{if(!(l>=65&&l<=70||l>=97&&l<=102)){if(62===l){this.eof=!0;break}continue}c=(15&l)+9}i<0?i=c:(a[n++]=i<<4|c,i=-1)}i>=0&&this.eof&&(a[n++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=n},e}();t.AsciiHexStream=v;var b=function(){function e(e,t){this.str=e,this.dict=e.dict,h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])return void(this.eof=!0);var t,r=this.bufferLength,a=e[0];if(a<128){if(t=this.ensureBuffer(r+a+1),t[r++]=e[1],a>0){var n=this.str.getBytes(a);t.set(n,r),r+=a}}else{a=257-a;var i=e[1];t=this.ensureBuffer(r+a+1);for(var o=0;o>>t&(1<0;if(y<256)g[0]=y,p=1;else{if(!(y>=258)){if(256===y){f=9,c=258,p=0;continue}this.eof=!0,delete this.lzwState;break}if(y=0;t--)g[t]=l[r],r=h[r];else g[p++]=g[0]}if(w&&(h[c]=d,u[c]=u[d]+1,l[c]=g[0],c++,f=c+s&c+s-1?f:0|Math.min(Math.log(c+s)/.6931471805599453+1,12)),d=y,m+=p,n1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0;var r=t.EndOfBlock;null!==r&&void 0!==r||(r=!0),this.eoblock=r,this.black=t.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(var a;0===(a=this._lookBits(12));)this._eatBits(1);1===a&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}var e=-2,t=-1,r=0,n=1,o=2,s=3,c=4,l=5,u=6,h=7,f=8,d=[[-1,-1],[-1,-1],[7,f],[7,h],[6,u],[6,u],[6,l],[6,l],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[4,r],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,n],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,c],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[3,s],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o],[1,o]],g=[[-1,-1],[12,e],[-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]],p=[[-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]],m=[[-1,-1],[-1,-1],[12,e],[12,e],[-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]],v=[[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]],b=[[-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]];return i.prototype={readNextChar:function(){if(this.eof)return-1;var e,i,d,g,p=this.refLine,m=this.codingLine,v=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;var b,y,w;if(this.nextLine2D){for(g=0;m[g]=64);do y+=w=this._getWhiteCode();while(w>=64)}else{do b+=w=this._getWhiteCode();while(w>=64);do y+=w=this._getBlackCode();while(w>=64)}for(this._addPixels(m[this.codingPos]+b,i),m[this.codingPos]0?--e:++e;p[e]<=m[this.codingPos]&&p[e]0?--e:++e;p[e]<=m[this.codingPos]&&p[e]0?--e:++e;p[e]<=m[this.codingPos]&&p[e]=64)}else do b+=w=this._getWhiteCode();while(w>=64);this._addPixels(m[this.codingPos]+b,i),i^=1}var k=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(b=this._lookBits(12),this.eoline)for(;b!==t&&1!==b;)this._eatBits(1),b=this._lookBits(12);else for(;0===b;)this._eatBits(1),b=this._lookBits(12);1===b?(this._eatBits(12),k=!0):b===t&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&k&&this.byteAlign){if(b=this._lookBits(12),1===b){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(g=0;g<4;++g)b=this._lookBits(12),1!==b&&(0,a.info)("bad rtc code: "+b),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(b=this._lookBits(13),b===t)return this.eof=!0,-1;if(b>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&b))}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1],this.row++}var S;if(this.outputBits>=8)S=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&m[this.codingPos]d?(S<<=d,1&this.codingPos||(S|=255>>8-d),this.outputBits-=d,d=0):(S<<=this.outputBits,1&this.codingPos||(S|=255>>8-this.outputBits),d-=this.outputBits,this.outputBits=0,m[this.codingPos]0&&(S<<=d,d=0));while(d)}return this.black&&(S^=255),S},_addPixels:function(e,t){var r=this.codingLine,n=this.codingPos;e>r[n]&&(e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e),this.codingPos=n},_addPixelsNeg:function(e,t){var r=this.codingLine,n=this.codingPos;if(e>r[n])e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e;else if(e0&&e=i){var c=a[s-i];if(c[0]===o)return this._eatBits(o),[!0,c[1],!0]}}return[!1,0,!1]},_getTwoDimCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(7),e=d[r],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var n=this._findTableCode(1,7,d);if(n[0]&&n[2])return n[1]}return(0,a.info)("Bad two dim code"),t},_getWhiteCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(12),r===t)return 1;if(e=r>>5===0?g[r]:p[r>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{var n=this._findTableCode(1,9,p);if(n[0])return n[1];if(n=this._findTableCode(11,12,g),n[0])return n[1]}return(0,a.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){var e,r;if(this.eoblock){if(e=this._lookBits(13),e===t)return 1;if(r=e>>7===0?m[e]:e>>9===0&&e>>7!==0?v[(e>>1)-64]:b[e>>7],r[0]>0)return this._eatBits(r[0]),r[1]}else{var n=this._findTableCode(2,6,b);if(n[0])return n[1];if(n=this._findTableCode(7,12,v,64),n[0])return n[1];if(n=this._findTableCode(10,13,m),n[0])return n[1]}return(0,a.info)("bad black code"),this._eatBits(1),1},_lookBits:function(e){for(var r;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|r,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},i}();t.CCITTFaxDecoder=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var a=r(183),n=r(190),i=r(194),o=r(5),s=function(){function e(e,t,r,a){this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,n.DecodeStream.call(this,t)}return e.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new i.Jbig2Image,t=[];if((0,a.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,a.isStream)(r)){var n=r.getBytes();t.push({data:n,start:0,end:n.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var o=e.parseChunks(t),s=o.length,c=0;c>>0}var n=e.getContexts(t),i=1,o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===o?s:s>0?-s:null}function a(e,t,r){for(var a=e.getContexts("IAID"),n=1,i=0;i=B&&O=R)for(G=G<<1&b,d=0;d=0&&T=0&&(E=j[P][T],E&&(G|=E<=e?B<<=1:B=B<<1|S[E][F];for(u=0;u=w||F<0||F>=y?B<<=1:B=B<<1|a[E][F];var _=x.readBit(C,B);I[T]=_}}return S}function s(e,t,n,s,l,h,f,g,p,m,v,b){if(e&&t)throw new d("symbol refinement with Huffman is not supported");var y,w,k=[],S=0,x=(0,u.log2)(n.length+s),C=v.decoder,A=v.contextCache;for(e&&(y=P(1),w=[],x=Math.max(x,1));k.length1)R=c(e,t,I,S,0,L,1,n.concat(k),x,0,0,1,0,h,p,m,v,0,b);else{var M=a(A,C,x),D=r(A,"IARDX",C),N=r(A,"IARDY",C),U=M1&&(R=e?S.readBits(k):r(I,"IAIT",P));var L=l*T+R,M=e?v.symbolIDTable.decode(S):a(I,P,h),D=t&&(e?S.readBit():r(I,"IARI",P)),N=u[M],U=N[0].length,j=N.length;if(D){var q=r(I,"IARDW",P),z=r(I,"IARDH",P),H=r(I,"IARDX",P),G=r(I,"IARDY",P);U+=q,j+=z,N=o(U,j,b,N,(q>>1)+H,(z>>1)+G,!1,y,w)}var W,X,V,K=L-(1&p?0:j-1),Y=_-(2&p?U-1:0);if(f){for(W=0;W=0;y--)F=e?_(E,l,h,!0):i(!1,l,h,r,!1,b,T,v), B[y]=F;var R,L,M,D,N,U,j,q,z;for(R=0;R=0;w--)M=B[w][R][L]^M,D|=M<>8,j=g+R*p-L*m>>8,U>=0&&U+A<=a&&j>=0&&j+O<=n)for(y=0;y=n))for(z=S[G],q=N[y],w=0;w=0&&H>5&7,c=[31&o],l=t+6;if(7===o){s=536870911&(0,u.readUint32)(e,l-1),l+=3;var h=s+7>>3;for(c[0]=e[l++];--h>0;)c.push(e[l++])}else if(5===o||6===o)throw new d("invalid referred-to flags");r.retainBits=c;var f,g,p=r.number<=256?1:r.number<=65536?2:4,m=[];for(f=0;f>>24&255,x[3]=y.height>>16&255,x[4]=y.height>>8&255,x[5]=255&y.height,f=l,g=e.length;f>2&3,h.huffmanDWSelector=f>>4&3,h.bitmapSizeSelector=f>>6&1,h.aggregationInstancesSelector=f>>7&1,h.bitmapCodingContextUsed=!!(256&f),h.bitmapCodingContextRetained=!!(512&f),h.template=f>>10&3,h.refinementTemplate=f>>12&1,c+=2,!h.huffman){for(i=0===h.template?4:1,a=[],n=0;n>2&3,g.stripSize=1<>4&3,g.transposed=!!(64&p),g.combinationOperator=p>>7&3,g.defaultPixelValue=p>>9&1,g.dsOffset=p<<17>>27,g.refinementTemplate=p>>15&1,g.huffman){var m=(0,u.readUint16)(s,c);c+=2,g.huffmanFS=3&m,g.huffmanDS=m>>2&3,g.huffmanDT=m>>4&3,g.huffmanRefinementDW=m>>6&3,g.huffmanRefinementDH=m>>8&3,g.huffmanRefinementDX=m>>10&3,g.huffmanRefinementDY=m>>12&3,g.huffmanRefinementSizeSelector=!!(16384&m)}if(g.refinement&&!g.refinementTemplate){for(a=[],n=0;n<2;n++)a.push({x:(0,u.readInt8)(s,c),y:(0,u.readInt8)(s,c+1)}),c+=2;g.refinementAt=a}g.numberOfSymbolInstances=(0,u.readUint32)(s,c),c+=4,r=[g,o.referredTo,s,c,l];break;case 16:var b={},y=s[c++];b.mmr=!!(1&y),b.template=y>>1&3,b.patternWidth=s[c++],b.patternHeight=s[c++],b.maxPatternIndex=(0,u.readUint32)(s,c),c+=4,r=[b,o.number,s,c,l];break;case 22:case 23:var w={};w.info=v(s,c),c+=j;var k=s[c++];w.mmr=!!(1&k),w.template=k>>1&3,w.enableSkip=!!(8&k),w.combinationOperator=k>>4&7,w.defaultPixelValue=k>>7&1,w.gridWidth=(0,u.readUint32)(s,c),c+=4,w.gridHeight=(0,u.readUint32)(s,c),c+=4,w.gridOffsetX=4294967295&(0,u.readUint32)(s,c),c+=4,w.gridOffsetY=4294967295&(0,u.readUint32)(s,c),c+=4,w.gridVectorX=(0,u.readUint16)(s,c),c+=2,w.gridVectorY=(0,u.readUint16)(s,c),c+=2,r=[w,o.referredTo,s,c,l];break;case 38:case 39:var S={};S.info=v(s,c),c+=j;var x=s[c++];if(S.mmr=!!(1&x),S.template=x>>1&3,S.prediction=!!(8&x),!S.mmr){for(i=0===S.template?4:1,a=[],n=0;n>2&1,C.combinationOperator=A>>3&3,C.requiresBuffer=!!(32&A),C.combinationOperatorOverride=!!(64&A),r=[C];break;case 49:break;case 50:break;case 51:break;case 53:r=[o.number,s,c,l];break;case 62:break;default:throw new d("segment type ".concat(o.typeName,"(").concat(o.type,")")+" is not implemented")}var O="on"+o.typeName;O in t&&t[O].apply(t,r)}function y(e,t){for(var r=0,a=e.length;r>=1;return{imgData:f,width:c,height:l}}function S(){}function x(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function C(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function A(e,t){t||this.assignPrefixCodes(e),this.rootNode=new C(null);var r,a,n=e.length;for(r=0;r0&&this.rootNode.buildTree(a,a.prefixLength-1)}function O(e,t,r){var a,n,i=e[t],o=4294967295&(0,u.readUint32)(e,t+1),s=4294967295&(0,u.readUint32)(e,t+5),c=new I(e,t+9,r),l=(i>>1&7)+1,h=(i>>4&7)+1,f=[],d=o;do a=c.readBits(l),n=c.readBits(h),f.push(new x([d,a,n,0])),d+=1<=32){var l=void 0,u=void 0,h=void 0;switch(o){case 32:if(0===i)throw new d("no previous value in symbol ID table");u=n.readBits(2)+3,l=s[i-1].prefixLength;break;case 33:u=n.readBits(3)+3,l=0;break;case 34:u=n.readBits(7)+11,l=0;break;default:throw new d("invalid code length in symbol ID table")}for(h=0;h>c&1,c--;if(a&&!d)for(var g=5,p=0;p>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var a=0,n=r.length;a>3,u=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,h=this.buffer,f=128>>(7&e.x),g=e.y*l+(e.x>>3);switch(u){case 0:for(r=0;r>=1,n||(n=128,i++);g+=l}break;case 2:for(r=0;r>=1,n||(n=128,i++);g+=l}break;default:throw new d("operator ".concat(u," is not supported"))}},onImmediateGenericRegion:function(e,r,a,n){var o=e.info,s=new t(r,a,n),c=i(e.mmr,o.width,o.height,e.template,e.prediction,null,e.at,s);this.drawBitmap(o,c)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,a,n,i,o){var c,l;e.huffman&&(c=F(e,a,this.customTables),l=new I(n,i,o));var u=this.symbols;u||(this.symbols=u={});for(var h=[],f=0,d=a.length;f>t&1;if(t<=0)this.children[r]=new C(e);else{var a=this.children[r];a||(this.children[r]=a=new C(null)),a.buildTree(e,t-1)}},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new d("invalid Huffman data");return r.decodeNode(e)}},A.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes:function(e){var t,r=e.length,a=0;for(t=0;t=this.end)throw new d("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<=this.end?-1:this.data[this.position++]}},R.prototype={parseChunks:function(e){return w(e)},parse:function(e){var t=k(e),r=t.imgData,a=t.width,n=t.height;return this.width=a,this.height=n,r}},R}();t.Jbig2Image=g},function(e,t,r){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}return i(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,a=e[t]>>1,n=1&e[t],i=o[a],s=i.qe,c=this.a-s;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--;while(0===(32768&c));return this.a=c,e[t]=a<<1|n,r}}]),e}();t.ArithmeticDecoder=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var a=r(5),n=r(190),i=r(183),o=r(197),s=function(){function e(e,t,r,a){for(var i;(i=e.getByte())!==-1;)if(255===i){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,n.DecodeStream.call(this,t)}return e.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,a=t.length,n=new Int32Array(a),s=!1,c=(1<0&&void 0!==arguments[0]&&arguments[0];return(0,a.createObjectURL)(this.bytes,"image/jpeg",e)},e}();t.JpegStream=s},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?o(e):t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var u=r(5),h=function(e){function t(e){return n(this,t),i(this,s(t).call(this,"JPEG error: ".concat(e)))}return c(t,e),t}(u.BaseException),f=function(e){function t(e,r){var a;return n(this,t),a=i(this,s(t).call(this,e)),a.scanLines=r,a}return c(t,e),t}(u.BaseException),d=function(e){function t(){return n(this,t),i(this,s(t).apply(this,arguments))}return c(t,e),t}(u.BaseException),g=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.decodeTransform,r=void 0===t?null:t,a=e.colorTransform,n=void 0===a?-1:a;this._decodeTransform=r,this._colorTransform=n}function t(e,t){for(var r,a,n=0,i=[],o=16;o>0&&!e[o-1];)o--;i.push({children:[],index:0});var s,c=i[0];for(r=0;r0;)c=i.pop();for(c.index++,i.push(c);i.length<=r;)i.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;n++}r+10)return j--,U>>j&1;if(U=e[t++],255===U){var r=e[t++];if(r){if(220===r&&L){t+=2;var a=e[t++]<<8|e[t++];if(a>0&&a!==n.scanLines)throw new f("Found DNL marker (0xFFDC) while parsing scan data",a)}else if(217===r)throw new d("Found EOI marker (0xFFD9) while parsing scan data");throw new h("unexpected marker ".concat((U<<8|r).toString(16)))}}return j=7,U>>>7}function b(e){for(var t=e;;){if(t=t[v()],"number"==typeof t)return t;if("object"!==a(t))throw new h("invalid huffman sequence")}}function y(e){for(var t=0;e>0;)t=t<<1|v(),e--;return t}function w(e){if(1===e)return 1===v()?1:-1;var t=y(e);return t>=1<>4;if(0!==o){n+=s;var l=c[n];e.blockData[t+l]=w(o),n++}else{if(s<15)break;n+=16}}}function S(e,t){var r=b(e.huffmanTableDC),a=0===r?0:w(r)<0)return void q--;for(var r=l,a=g;r<=a;){var n=b(e.huffmanTableAC),i=15&n,o=n>>4;if(0!==i){r+=o;var s=c[r];e.blockData[t+s]=w(i)*(1<>4,0===r)o<15?(q=y(o)+(1<9&&void 0!==arguments[9]&&arguments[9],M=n.mcusPerLine,D=n.progressive,N=t,U=0,j=0,q=0,z=0,H=i.length;R=D?0===l?0===p?S:x:0===p?C:A:k;var G,W,X=0;W=1===H?i[0].blocksPerLine*i[0].blocksPerColumn:M*n.mcusPerColumn;for(var V,K;X=65488&&J<=65495))break;t+=2}return G=s(e,t),G&&G.invalid&&((0,u.warn)("decodeScan - unexpected Scan data, current marker is: "+G.invalid),t=G.offset),t-N}function i(e,t,r){var a,n,i,o,s,c,u,f,d,k,S,x,C,A,O,P,I,T=e.quantizationTable,E=e.blockData;if(!T)throw new h("missing required Quantization Table.");for(var F=0;F<64;F+=8)d=E[t+F],k=E[t+F+1],S=E[t+F+2],x=E[t+F+3],C=E[t+F+4],A=E[t+F+5],O=E[t+F+6],P=E[t+F+7],d*=T[F],0!==(k|S|x|C|A|O|P)?(k*=T[F+1],S*=T[F+2],x*=T[F+3],C*=T[F+4],A*=T[F+5],O*=T[F+6],P*=T[F+7],a=y*d+128>>8,n=y*C+128>>8,i=S,o=O,s=w*(k-P)+128>>8,f=w*(k+P)+128>>8,c=x<<4,u=A<<4,a=a+n+1>>1,n=a-n,I=i*b+o*v+128>>8,i=i*v-o*b+128>>8,o=I,s=s+u+1>>1,u=s-u,f=f+c+1>>1,c=f-c,a=a+o+1>>1,o=a-o,n=n+i+1>>1,i=n-i,I=s*m+f*p+2048>>12,s=s*p-f*m+2048>>12,f=I,I=c*g+u*l+2048>>12,c=c*l-u*g+2048>>12,u=I,r[F]=a+f,r[F+7]=a-f,r[F+1]=n+u,r[F+6]=n-u,r[F+2]=i+c,r[F+5]=i-c,r[F+3]=o+s,r[F+4]=o-s):(I=y*d+512>>10,r[F]=I,r[F+1]=I,r[F+2]=I,r[F+3]=I,r[F+4]=I,r[F+5]=I,r[F+6]=I,r[F+7]=I);for(var B=0;B<8;++B)d=r[B],k=r[B+8],S=r[B+16],x=r[B+24],C=r[B+32],A=r[B+40],O=r[B+48],P=r[B+56],0!==(k|S|x|C|A|O|P)?(a=y*d+2048>>12,n=y*C+2048>>12,i=S,o=O,s=w*(k-P)+2048>>12,f=w*(k+P)+2048>>12,c=x,u=A,a=(a+n+1>>1)+4112,n=a-n,I=i*b+o*v+2048>>12,i=i*v-o*b+2048>>12,o=I,s=s+u+1>>1,u=s-u,f=f+c+1>>1,c=f-c,a=a+o+1>>1,o=a-o,n=n+i+1>>1,i=n-i,I=s*m+f*p+2048>>12,s=s*p-f*m+2048>>12,f=I,I=c*g+u*l+2048>>12,c=c*l-u*g+2048>>12,u=I,d=a+f,P=a-f,k=n+u,O=n-u,S=i+c,A=i-c,x=o+s,C=o-s,d=d<16?0:d>=4080?255:d>>4,k=k<16?0:k>=4080?255:k>>4,S=S<16?0:S>=4080?255:S>>4,x=x<16?0:x>=4080?255:x>>4,C=C<16?0:C>=4080?255:C>>4,A=A<16?0:A>=4080?255:A>>4,O=O<16?0:O>=4080?255:O>>4,P=P<16?0:P>=4080?255:P>>4,E[t+B]=d,E[t+B+8]=k,E[t+B+16]=S,E[t+B+24]=x,E[t+B+32]=C,E[t+B+40]=A,E[t+B+48]=O,E[t+B+56]=P):(I=y*d+8192>>14,I=I<-2040?0:I>=2024?255:I+2056>>4,E[t+B]=I,E[t+B+8]=I,E[t+B+16]=I,E[t+B+24]=I,E[t+B+32]=I,E[t+B+40]=I,E[t+B+48]=I,E[t+B+56]=I)}function o(e,t){for(var a=t.blocksPerLine,n=t.blocksPerColumn,o=new Int16Array(64),s=0;s2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-1,i=a=n)return null;var o=r(t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=r(i);!(s>=65472&&s<=65534);){if(++i>=n)return null;s=r(i)}return{invalid:o.toString(16),marker:s,offset:i}}var c=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]),l=4017,g=799,p=3406,m=2276,v=1567,b=3784,y=5793,w=2896;return e.prototype={parse:function(e){function r(){var t=e[b]<<8|e[b+1];return b+=2,t}function a(){var t=r(),a=b+t-2,n=s(e,a,b);n&&n.invalid&&((0,u.warn)("readDataBlock - incorrect length, current marker is: "+n.invalid),a=n.offset);var i=e.subarray(b,a);return b+=i.length,i}function i(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},m=p.dnlScanLines,v=void 0===m?null:m,b=0,y=null,w=null,k=0,S=[],x=[],C=[],A=r();if(65496!==A)throw new h("SOI not found");A=r();e:for(;65497!==A;){var O,P,I;switch(A){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 T=a();65504===A&&74===T[0]&&70===T[1]&&73===T[2]&&70===T[3]&&0===T[4]&&(y={version:{major:T[5],minor:T[6]},densityUnits:T[7],xDensity:T[8]<<8|T[9],yDensity:T[10]<<8|T[11],thumbWidth:T[12],thumbHeight:T[13],thumbData:T.subarray(14,14+3*T[12]*T[13])}),65518===A&&65===T[0]&&100===T[1]&&111===T[2]&&98===T[3]&&101===T[4]&&(w={version:T[5]<<8|T[6],flags0:T[7]<<8|T[8],flags1:T[9]<<8|T[10],transformCode:T[11]});break;case 65499:for(var E,F=r(),B=F+b-2;b>4===0)for(P=0;P<64;P++)E=c[P],R[E]=e[b++];else{if(_>>4!==1)throw new h("DQT - invalid table spec");for(P=0;P<64;P++)E=c[P],R[E]=r()}S[15&_]=R}break;case 65472:case 65473:case 65474:if(l)throw new h("Only single frame JPEGs supported");r(),l={},l.extended=65473===A,l.progressive=65474===A,l.precision=e[b++];var L=r();l.scanLines=v||L,l.samplesPerLine=r(),l.components=[],l.componentIds={};var M,D=e[b++],N=0,U=0;for(O=0;O>4,q=15&e[b+1];N>4===0?C:x)[15&G]=t(W,V)}break;case 65501:r(),g=r();break;case 65498:var K=1===++k&&!v;r();var Y,J=e[b++],Z=[];for(O=0;O>4],Y.huffmanTableAC=x[15&$],Z.push(Y)}var ee=e[b++],te=e[b++],re=e[b++];try{var ae=n(e,b,l,Z,g,ee,te,re>>4,15&re,K);b+=ae}catch(ne){if(ne instanceof f)return(0,u.warn)("".concat(ne.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:ne.scanLines});if(ne instanceof d){(0,u.warn)("".concat(ne.message," -- ignoring the rest of the image data."));break e}throw ne}break;case 65500:b+=4;break;case 65535:255!==e[b]&&b--;break;default:if(255===e[b-3]&&e[b-2]>=192&&e[b-2]<=254){b-=3;break}var ie=s(e,b-2);if(ie&&ie.invalid){(0,u.warn)("JpegImage.parse - unexpected data, current marker is: "+ie.invalid),b=ie.offset;break}if(b>e.length-2){(0,u.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new h("JpegImage.parse - unknown marker: "+A.toString(16))}A=r()}for(this.width=l.samplesPerLine,this.height=l.scanLines,this.jfif=y,this.adobe=w,this.components=[],O=0;O2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,p=this.height/t,m=0,v=this.components.length,b=e*t*v,y=new Uint8ClampedArray(b),w=new Uint32Array(e),k=4294967288;for(c=0;c>8)+S[u+1];return y},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(e){for(var t,r,a,n=0,i=e.length;n4)throw new h("Unsupported color mode");var s=this._getLinearizedBlockData(t,r,o);if(1===this.numComponents&&n){for(var c=s.length,l=new Uint8ClampedArray(3*c),u=0,f=0;f0?Math.min(a.xcb,n.PPx-1):Math.min(a.xcb,n.PPx),n.ycb_=r>0?Math.min(a.ycb,n.PPy-1):Math.min(a.ycb,n.PPy),n}function n(e,t,r){var a=1<t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,l=t.try1>t.try0?Math.ceil(t.try1/n)-Math.floor(t.try0/n):0,u=c*l;t.precinctParameters={precinctWidth:a,precinctHeight:n,numprecinctswide:c,numprecinctshigh:l,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function i(e,t,r){var a,n,i,o,s=r.xcb_,c=r.ycb_,l=1<>s,f=t.tby0>>c,d=t.tbx1+l-1>>s,g=t.tby1+u-1>>c,p=t.resolution.precinctParameters,m=[],v=[];for(n=f;nw.cbxMax&&(w.cbxMax=a),nw.cbyMax&&(w.cbyMax=n)):v[o]=w={cbxMin:a,cbyMin:n,cbxMax:a,cbyMax:n},i.precinct=w}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:d-h+1,numcodeblockhigh:g-f+1},t.codeblocks=m,t.precincts=v}function o(e,t,r){for(var a=[],n=e.subbands,i=0,o=n.length;ie.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],s=i.precinctParameters.numprecincts;if(!(n>=s)){for(;t=0;--m){var v=c.resolutions[m],b=p*v.precinctParameters.precinctWidth,y=p*v.precinctParameters.precinctHeight;h=Math.min(h,b),f=Math.min(f,y),d=Math.max(d,v.precinctParameters.numprecinctswide),g=Math.max(g,v.precinctParameters.numprecinctshigh),u[m]={width:b,height:y},p<<=1}r=Math.min(r,h),a=Math.min(a,f),n=Math.max(n,d),i=Math.max(i,g),o[s]={resolutions:u,minWidth:h,minHeight:f,maxNumWide:d,maxNumHigh:g}}return{components:o,minWidth:r,minHeight:a,maxNumWide:n,maxNumHigh:i}}function v(e){for(var t=e.SIZ,r=e.currentTile.index,o=e.tiles[r],u=t.Csiz,h=0;h>>f&(1<0;){var q=S.shift();w=q.codeblock,void 0===w.data&&(w.data=[]),w.data.push({data:t,start:r+h,end:r+h+q.dataLength,codingpasses:q.codingpasses}),h+=q.dataLength}}}return h}function y(e,t,r,a,n,i,o,s){for(var c=a.tbx0,l=a.tby0,u=a.tbx1-a.tbx0,f=a.codeblocks,d="H"===a.type.charAt(0)?1:0,g="H"===a.type.charAt(1)?t:0,p=0,m=f.length;p=i?e[G]=R:e[G]=R*(1<0?1-m:0));var P=v.subbands[S],E=x[P.type],F=f?1:Math.pow(2,h+E-O)*(1+A/2048),B=l+O-1;y(k,b,w,P,F,B,f,u)}g.push({width:b,height:w,items:k})}var _=d.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:_.width,height:_.height,items:_.items}}function k(e){for(var t=e.SIZ,r=e.components,a=t.Csiz,n=[],i=0,o=e.tiles.length;i>2);b[k++]=T+m>>u,b[k++]=T>>u,b[k++]=T+p>>u}else for(f=0;f>u,b[k++]=g-.34413*p-.71414*m>>u,b[k++]=g+1.772*p>>u;if(S)for(f=0,k=3;f>u}else for(s=0;s>u,k+=a}n.push(y)}return n}function S(e,t){for(var r=e.SIZ,a=r.Csiz,n=e.tiles[t],i=0;i>24&255,o>>16&255,o>>8&255,255&o);(0,u.warn)("Unsupported header type "+o+" ("+d+")")}c&&(r+=s)}},parseImageProperties:function(e){for(var t=e.getByte();t>=0;){var r=t;t=e.getByte();var a=r<<8|t;if(65361===a){e.skip(4);var n=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.getInt32()>>>0,s=e.getInt32()>>>0;e.skip(16);var c=e.getUint16();return this.width=n-o,this.height=i-s,this.componentsCount=c,void(this.bitsPerComponent=8)}}throw new f("No size marker found in JPX stream")},parseCodestream:function(e,a,n){var i={},o=!1;try{for(var s=a;s+1>5,d=[];l>3,I.mu=0):(I.epsilon=e[l]>>3,I.mu=(7&e[l])<<8|e[l+1],l+=2),d.push(I)}P.SPqcds=d,i.mainHeader?i.QCD=P:(i.currentTile.QCD=P,i.currentTile.QCC=[]);break;case 65373:y=(0,u.readUint16)(e,s);var T={};l=s+2;var E;switch(i.SIZ.Csiz<257?E=e[l++]:(E=(0,u.readUint16)(e,l),l+=2),h=e[l++],31&h){case 0:g=8,p=!0;break;case 1:g=16,p=!1;break;case 2:g=16,p=!0;break;default:throw new Error("Invalid SQcd value "+h)}for(T.noQuantization=8===g,T.scalarExpounded=p,T.guardBits=h>>5,d=[];l>3,I.mu=0):(I.epsilon=e[l]>>3,I.mu=(7&e[l])<<8|e[l+1],l+=2),d.push(I);T.SPqcds=d,i.mainHeader?i.QCC[E]=T:i.currentTile.QCC[E]=T;break;case 65362:y=(0,u.readUint16)(e,s);var F={};l=s+2;var B=e[l++];F.entropyCoderWithCustomPrecincts=!!(1&B),F.sopMarkerUsed=!!(2&B),F.ephMarkerUsed=!!(4&B),F.progressionOrder=e[l++],F.layersCount=(0,u.readUint16)(e,l),l+=2,F.multipleComponentTransform=e[l++],F.decompositionLevelsCount=e[l++],F.xcb=(15&e[l++])+2,F.ycb=(15&e[l++])+2;var _=e[l++];if(F.selectiveArithmeticCodingBypass=!!(1&_),F.resetContextProbabilities=!!(2&_),F.terminationOnEachCodingPass=!!(4&_),F.verticallyStripe=!!(8&_),F.predictableTermination=!!(16&_),F.segmentationSymbolUsed=!!(32&_),F.reversibleTransformation=e[l++],F.entropyCoderWithCustomPrecincts){for(var R=[];l>4})}F.precinctsSizes=R}var M=[];if(F.selectiveArithmeticCodingBypass&&M.push("selectiveArithmeticCodingBypass"),F.resetContextProbabilities&&M.push("resetContextProbabilities"),F.terminationOnEachCodingPass&&M.push("terminationOnEachCodingPass"),F.verticallyStripe&&M.push("verticallyStripe"),F.predictableTermination&&M.push("predictableTermination"),M.length>0)throw o=!0,new Error("Unsupported COD options ("+M.join(", ")+")");i.mainHeader?i.COD=F:(i.currentTile.COD=F,i.currentTile.COC=[]);break;case 65424:y=(0,u.readUint16)(e,s),m={},m.index=(0,u.readUint16)(e,s+2),m.length=(0,u.readUint32)(e,s+4),m.dataEnd=m.length+s-2,m.partIndex=e[s+8],m.partsCount=e[s+9],i.mainHeader=!1,0===m.partIndex&&(m.COD=i.COD,m.COC=i.COC.slice(0),m.QCD=i.QCD,m.QCC=i.QCC.slice(0)),i.currentTile=m;break;case 65427:m=i.currentTile,0===m.partIndex&&(S(i,m.index),v(i)),y=m.dataEnd-s,b(i,e,s,y);break;case 65365:case 65367:case 65368:case 65380:y=(0,u.readUint16)(e,s);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+c.toString(16))}s+=y}}catch(D){if(o||this.failOnCorruptedImage)throw new f(D.message);(0,u.warn)("JPX: Trying to recover from: "+D.message)}this.tiles=k(i),this.width=i.SIZ.Xsiz-i.SIZ.XOsiz,this.height=i.SIZ.Ysiz-i.SIZ.YOsiz,this.componentsCount=i.SIZ.Csiz}};var C=function(){function e(e,t){var r=(0,u.log2)(Math.max(e,t))+1;this.levels=[];for(var a=0;a>=1,t>>=1,a++}a--,r=this.levels[a],r.items[r.index]=n,this.currentLevel=a,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return e--,e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),A=function(){function e(e,t,r){var a=(0,u.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;nr)return this.currentLevel=a,this.propagateValues(),!1;e>>=1,t>>=1,a++}return this.currentLevel=a-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)t=this.levels[e],t.items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),O=function(){function e(e,t,r,o,s){this.width=e,this.height=t,this.contextLabelTable="HH"===r?i:"HL"===r?n:a;var c=e*t;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),this.coefficentsMagnitude=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c),this.processingFlags=new Uint8Array(c);var l=new Uint8Array(c);if(0!==o)for(var u=0;u0,c=t+10&&(a=r-i,s&&(n[a-1]+=16),c&&(n[a+1]+=16),n[a]+=4),e+1=r)break;if(o[p]&=u,!a[p]&&i[p]){var b=c[i[p]],y=e.readBit(s,b);if(y){var w=this.decodeSignBit(v,g,p);n[p]=w,a[p]=1,this.setNeighborsSignificance(v,g,p),o[p]|=f}l[p]++,o[p]|=h}}},decodeSignBit:function(e,t,r){var a,n,i,o,s,c,l=this.width,u=this.height,h=this.coefficentsMagnitude,f=this.coefficentsSign;o=t>0&&0!==h[r-1],t+10&&0!==h[r-l],e+1=0?(s=9+a,c=this.decoder.readBit(this.contexts,s)):(s=9-a,c=1^this.decoder.readBit(this.contexts,s)),c},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,a=this.height,n=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,l=1,u=2,h=r*a,f=4*r,d=0;d>1;t=0|t;var n,i,o,s,c=-1.586134342059924,l=-.052980118572961,u=.882911075530934,h=.443506852043971,f=1.230174104914001,d=1/f;for(n=t-3,i=a+4;i--;n+=2)e[n]*=d;for(n=t-2,o=h*e[n-1],i=a+3;i--&&(s=h*e[n+1],e[n]=f*e[n]-o-s,i--);n+=2)n+=2,o=h*e[n+1],e[n]=f*e[n]-o-s;for(n=t-1,o=u*e[n-1],i=a+2;i--&&(s=u*e[n+1],e[n]-=o+s,i--);n+=2)n+=2,o=u*e[n+1],e[n]-=o+s;for(n=t,o=l*e[n-1],i=a+1;i--&&(s=l*e[n+1],e[n]-=o+s,i--);n+=2)n+=2,o=l*e[n+1],e[n]-=o+s;if(0!==a)for(n=t+1,o=c*e[n-1],i=a;i--&&(s=c*e[n+1],e[n]-=o+s,i--);n+=2)n+=2,o=c*e[n+1],e[n]-=o+s},e}(),T=function(){function e(){P.call(this)}return e.prototype=Object.create(P.prototype),e.prototype.filter=function(e,t,r){var a=r>>1;t=0|t;var n,i;for(n=t,i=a+1;i--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,i=a;i--;n+=2)e[n]+=e[n-1]+e[n+1]>>1},e}();return e}();t.JpxImage=d},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r>5&255,d[i++]=n>>13&255,d[i++]=n>>21&255,d[i++]=n>>>29&255,d[i++]=0,d[i++]=0,d[i++]=0;var g=new Int32Array(16);for(i=0;i>>32-x)|0,v=k}c=c+v|0,l=l+b|0,u=u+y|0,h=h+w|0}return new Uint8Array([255&c,c>>8&255,c>>16&255,c>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255])}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 e}();t.calculateMD5=m;var v=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<>>32-e,this.low=this.low<>>e|r<<32-e,this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),b=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function a(t){return e(t,2)^e(t,13)^e(t,22)}function n(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}function s(e,s,l){var u,h,f,d=1779033703,g=3144134277,p=1013904242,m=2773480762,v=1359893119,b=2600822924,y=528734635,w=1541459225,k=64*Math.ceil((l+9)/64),S=new Uint8Array(k);for(u=0;u>>29&255,S[u++]=l>>21&255,S[u++]=l>>13&255,S[u++]=l>>5&255,S[u++]=l<<3&255;var x=new Uint32Array(64);for(u=0;u>24&255,d>>16&255,d>>8&255,255&d,g>>24&255,g>>16&255,g>>8&255,255&g,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v,b>>24&255,b>>16&255,b>>8&255,255&b,y>>24&255,y>>16&255,y>>8&255,255&y,w>>24&255,w>>16&255,w>>8&255,255&w])}var c=[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 s}();t.calculateSHA256=b;var y=function(){function e(e,t,r,a,n){e.assign(t),e.and(r),n.assign(t),n.not(),n.and(a),e.xor(n)}function t(e,t,r,a,n){e.assign(t),e.and(r),n.assign(t),n.and(a),e.xor(n),n.assign(r),n.and(a),e.xor(n)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}function o(o,c,l,u){u=!!u;var h,f,d,g,p,m,b,y;u?(h=new v(3418070365,3238371032),f=new v(1654270250,914150663),d=new v(2438529370,812702999),g=new v(355462360,4144912697),p=new v(1731405415,4290775857),m=new v(2394180231,1750603025),b=new v(3675008525,1694076839),y=new v(1203062813,3204075428)):(h=new v(1779033703,4089235720),f=new v(3144134277,2227873595),d=new v(1013904242,4271175723),g=new v(2773480762,1595750129),p=new v(1359893119,2917565137),m=new v(2600822924,725511199),b=new v(528734635,4215389547),y=new v(1541459225,327033209));var w,k,S,x=128*Math.ceil((l+17)/128),C=new Uint8Array(x);for(w=0;w>>29&255,C[w++]=l>>21&255,C[w++]=l>>13&255,C[w++]=l>>5&255,C[w++]=l<<3&255;var A=new Array(80);for(w=0;w<80;w++)A[w]=new v(0,0);var O,P=new v(0,0),I=new v(0,0),T=new v(0,0),E=new v(0,0),F=new v(0,0),B=new v(0,0),_=new v(0,0),R=new v(0,0),L=new v(0,0),M=new v(0,0),D=new v(0,0),N=new v(0,0);for(w=0;w=1;--c){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],a=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=a,r=i[15],a=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=a,i[3]=n;for(var l=0;l<16;++l)i[l]=this._inv_s[i[l]];for(var u=0,h=16*c;u<16;++u,++h)i[u]^=t[h];for(var f=0;f<16;f+=4){var d=this._mix[i[f]],g=this._mix[i[f+1]],p=this._mix[i[f+2]],m=this._mix[i[f+3]];r=d^g>>>8^g<<24^p>>>16^p<<16^m>>>24^m<<8,i[f]=r>>>24&255,i[f+1]=r>>16&255,i[f+2]=r>>8&255,i[f+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],a=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=a,r=i[15],a=i[11],n=i[7],i[15]=i[3],i[11]=r,i[7]=a,i[3]=n;for(var v=0;v<16;++v)i[v]=this._inv_s[i[v]],i[v]^=t[v];return i}},{key:"_encrypt",value:function(e,t){var r,a,n,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var c=1;c=g;--d)if(h[d]!==f){f=0;break}u-=f,i[i.length-1]=h.subarray(0,16-f)}}for(var p=new Uint8Array(u),m=0,v=0,b=i.length;m2&&void 0!==arguments[2]?arguments[2]:null,a=e.length,n=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o=256&&(c=255&(27^c)));for(var h=0;h<4;++h)a[l]=n^=a[l-32],l++,a[l]=i^=a[l-32],l++,a[l]=o^=a[l-32],l++,a[l]=s^=a[l-32],l++}return a}}]),t}(S);t.AES256Cipher=C;var A=function(){function e(e,t){if(e.length!==t.length)return!1;for(var r=0;ro-32;){var s=t.length+n.length+a.length,c=new Uint8Array(64*s),l=e(t,n);l=e(l,a);for(var u=0,h=0;u<64;u++,h+=s)c.set(l,h);var f=new x(n.subarray(0,16));i=f.encrypt(c,n.subarray(16,32));for(var d=0,g=0;g<16;g++)d*=1,d%=3,d+=(i[g]>>>0)%3,d%=3;0===d?n=b(i,0,i.length):1===d?n=w(i,0,i.length):2===d&&(n=y(i,0,i.length)),o++}return n.subarray(0,32)}function r(){}function a(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255,f[d++]=n>>16&255,f[d++]=n>>>24&255,l=0,u=e.length;l=4&&!c&&(f[d++]=255,f[d++]=255,f[d++]=255,f[d++]=255);var g=m(f,0,d),v=s>>3;if(i>=3)for(l=0;l<50;++l)g=m(g,0,v);var b,y,w=g.subarray(0,v);if(i>=3){for(d=0;d<32;++d)f[d]=o[d];for(l=0,u=e.length;l>3;if(r>=3)for(n=0;n<50;++n)l=m(l,0,l.length);var h,f;if(r>=3){f=t;var d,g=new Uint8Array(u);for(n=19;n>=0;n--){for(d=0;d=4){var _=a.get("CF");(0,d.isDict)(_)&&(_.suppressEncryption=!0),this.cf=_,this.stmf=a.get("StmF")||s,this.strf=a.get("StrF")||s,this.eff=a.get("EFF")||this.stmf}}function n(e,t,r,a){var n,i,o=new Uint8Array(r.length+9);for(n=0,i=r.length;n>8&255,o[n++]=e>>16&255,o[n++]=255&t,o[n++]=t>>8&255,a&&(o[n++]=115,o[n++]=65,o[n++]=108,o[n++]=84);var s=m(o,0,n);return s.subarray(0,Math.min(r.length+5,16))}function i(e,t,r,a,i){if(!(0,d.isName)(t))throw new f.FormatError("Invalid crypt filter name.");var o,s=e.get(t.name);if(null!==s&&void 0!==s&&(o=s.get("CFM")),!o||"None"===o.name)return function(){return new k};if("V2"===o.name)return function(){return new p(n(r,a,i,!1))};if("AESV2"===o.name)return function(){return new x(n(r,a,i,!0))};if("AESV3"===o.name)return function(){return new C(i)};throw new f.FormatError("Unknown crypto method")}var o=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]),s=d.Name.get("Identity");return a.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new P(i(this.cf,this.stmf,e,t,this.encryptionKey),i(this.cf,this.strf,e,t,this.encryptionKey));var r=n(e,t,this.encryptionKey,!1),a=function(){return new p(r)};return new P(a,a)}},a}();t.CipherTransformFactory=I},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;rh&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var g=o<=8?new Uint8Array(h):new Uint16Array(h),p=0;p2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,g.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,g.isDict)(r)){var n=r.get("ColorSpace");if((0,g.isDict)(n)){var i=n.get(e.name);if(i){if((0,g.isName)(i))return this.parseToIR(i,t,r,a);e=i;break}}}throw new d.FormatError("unrecognized colorspace ".concat(e.name))}if(Array.isArray(e)){var o,s,c,l,u,h,f=t.fetchIfRef(e[0]).name;switch(f){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return s=t.fetchIfRef(e[1]),l=s.getArray("WhitePoint"),u=s.getArray("BlackPoint"),h=s.get("Gamma"),["CalGrayCS",l,u,h];case"CalRGB":s=t.fetchIfRef(e[1]),l=s.getArray("WhitePoint"),u=s.getArray("BlackPoint"),h=s.getArray("Gamma");var p=s.getArray("Matrix");return["CalRGBCS",l,u,h,p];case"ICCBased":var m=t.fetchIfRef(e[1]),v=m.dict;if(o=v.get("N"),c=v.get("Alternate")){var b=this.parseToIR(c,t,r,a),y=this.fromIR(b,a);if(y.numComps===o)return b;(0,d.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===o)return"DeviceGrayCS";if(3===o)return"DeviceRgbCS";if(4===o)return"DeviceCmykCS";break;case"Pattern":var w=e[1]||null;return w&&(w=this.parseToIR(w,t,r,a)),["PatternCS",w];case"Indexed":case"I":var k=this.parseToIR(e[1],t,r,a),S=t.fetchIfRef(e[2])+1,x=t.fetchIfRef(e[3]);return(0,g.isStream)(x)&&(x=x.getBytes()),["IndexedCS",k,S,x];case"Separation":case"DeviceN":var C=t.fetchIfRef(e[1]);o=Array.isArray(C)?C.length:1,c=this.parseToIR(e[2],t,r,a);var A=a.create(t.fetchIfRef(e[3]));return["AlternateCS",o,c,A];case"Lab":s=t.fetchIfRef(e[1]),l=s.getArray("WhitePoint"),u=s.getArray("BlackPoint");var O=s.getArray("Range");return["LabCS",l,u,O];default:throw new d.FormatError('unimplemented color space object "'.concat(f,'"'))}}throw new d.FormatError('unrecognized color space object: "'.concat(e,'"'))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,d.warn)("The decode map is not the correct length"),!0;for(var r=0,a=e.length;r8?Math.pow((e+16)/116,3):e*C}function u(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var a=c(0),n=a,i=c(e[0]),o=a,s=c(e[1]),l=a,u=c(e[2]),h=(1-n)/(1-i),f=1-h,d=(1-o)/(1-s),g=1-d,p=(1-l)/(1-u),m=1-p;r[0]=t[0]*h+f,r[1]=t[1]*d+g,r[2]=t[2]*p+m}function f(r,a,n){if(1===r[0]&&1===r[2])return n[0]=a[0],n[1]=a[1],void(n[2]=a[2]);var i=n;e(v,a,i);var o=k;t(r,i,o),e(b,o,n)}function g(t,a,n){var i=n;e(v,a,i);var o=k;r(t,i,o),e(b,o,n)}function m(t,r,n,o,s,c){var l=i(0,1,r[n]*c),h=i(0,1,r[n+1]*c),d=i(0,1,r[n+2]*c),p=Math.pow(l,t.GR),m=Math.pow(h,t.GG),v=Math.pow(d,t.GB),b=t.MXA*p+t.MXB*m+t.MXC*v,k=t.MYA*p+t.MYB*m+t.MYC*v,C=t.MZA*p+t.MZB*m+t.MZC*v,A=S;A[0]=b,A[1]=k,A[2]=C;var O=x;f(t.whitePoint,A,O);var P=S;u(t.blackPoint,O,P);var I=x;g(w,P,I);var T=S;e(y,I,T),o[s]=255*a(T[0]),o[s+1]=255*a(T[1]),o[s+2]=255*a(T[2])}var v=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),b=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),y=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),w=new Float32Array([1,1,1]),k=new Float32Array(3),S=new Float32Array(3),x=new Float32Array(3),C=Math.pow(24/116,3)/8,A=function(e){function t(e,r,a,i){var s;if(l(this,t),s=n(this,o(t).call(this,"CalRGB",3)),!e)throw new d.FormatError("WhitePoint missing - required for color space CalRGB");r=r||new Float32Array(3),a=a||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);var c=e[0],u=e[1],h=e[2];s.whitePoint=e;var f=r[0],g=r[1],p=r[2];if(s.blackPoint=r,s.GR=a[0],s.GG=a[1],s.GB=a[2],s.MXA=i[0],s.MYA=i[1],s.MZA=i[2],s.MXB=i[3],s.MYB=i[4],s.MZB=i[5],s.MXC=i[6],s.MYC=i[7],s.MZC=i[8],c<0||h<0||1!==u)throw new d.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(f<0||g<0||p<0)&&((0,d.info)("Invalid BlackPoint for ".concat(s.name," [").concat(f,", ").concat(g,", ").concat(p,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,d.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return s(t,e),h(t,[{key:"getRgbItem",value:function(e,t,r,a){m(this,e,t,r,a,1)}},{key:"getRgbBuffer",value:function(e,t,r,a,n,i,o){for(var s=1/((1<=6/29?e*e*e:108/841*(e-4/29)}function t(e,t,r,a){return r+e*(a-r)/t}function r(r,a,n,i,o,s){var c=a[n],l=a[n+1],u=a[n+2];i!==!1&&(c=t(c,i,0,100),l=t(l,i,r.amin,r.amax),u=t(u,i,r.bmin,r.bmax)),l=l>r.amax?r.amax:lr.bmax?r.bmax:ui.amax||i.bmin>i.bmax)&&((0,d.info)("Invalid Range, falling back to defaults"),i.amin=-100,i.amax=100,i.bmin=-100,i.bmax=100),i}return s(t,e),h(t,[{key:"getRgbItem",value:function(e,t,a,n){r(this,e,t,!1,a,n)}},{key:"getRgbBuffer",value:function(e,t,a,n,i,o,s){for(var c=(1<0)return null;for(var a=[],n=0,i=r.length/8;nt[2]||lt[3])return null;a[n].push({x:c,y:l})}}return a}function y(e,t,r){var a=w.Util.getAxialAlignedBoundingBox(t,r),n=h(a,4),i=n[0],o=n[1],s=n[2],c=n[3];if(i===s||o===c)return[1,0,0,1,e[0],e[1]];var l=(e[2]-e[0])/(s-i),u=(e[3]-e[1])/(c-o);return[l,0,0,u,e[0]-i*l,e[1]-o*u]}Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=b,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var w=r(5),k=r(188),S=r(183),x=r(201),C=r(186),A=r(203),O=r(190),P=function(){function e(){p(this,e)}return v(e,null,[{key:"create",value:function(e,t,r,a){return r.ensure(this,"_create",[e,t,r,a])}},{key:"_create",value:function(e,t,r,a){var n=e.fetchIfRef(t);if((0,S.isDict)(n)){var i=(0,S.isRef)(t)?t.toString():"annot_".concat(a.createObjId()),o=n.get("Subtype");o=(0,S.isName)(o)?o.name:null;var s={xref:e,dict:n,subtype:o,id:i,pdfManager:r};switch(o){case"Link":return new M(s);case"Text":return new L(s);case"Widget":var c=(0,C.getInheritableProperty)({dict:n,key:"FT"});switch(c=(0,S.isName)(c)?c.name:null){case"Tx":return new B(s);case"Btn":return new _(s);case"Ch":return new R(s)}return(0,w.warn)('Unimplemented widget field type "'+c+'", falling back to base field type.'),new F(s);case"Popup":return new D(s);case"FreeText":return new N(s);case"Line":return new U(s);case"Square":return new j(s);case"Circle":return new q(s);case"PolyLine":return new z(s);case"Polygon":return new H(s);case"Caret":return new G(s);case"Ink":return new W(s);case"Highlight":return new X(s);case"Underline":return new V(s);case"Squiggly":return new K(s);case"StrikeOut":return new Y(s);case"Stamp":return new J(s);case"FileAttachment":return new Z(s);default:return o?(0,w.warn)('Unimplemented annotation type "'+o+'", falling back to base annotation.'):(0,w.warn)("Annotation is missing the required /Subtype."),new I(s)}}}}]),e}();t.AnnotationFactory=P;var I=function(){function e(t){p(this,e);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.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}}return v(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,w.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,w.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,w.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,w.AnnotationFlag.PRINT)&&!this._hasFlag(e,w.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,w.AnnotationFlag.HIDDEN)}},{key:"setContents",value:function(e){this.contents=(0,w.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,w.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=w.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){var t=new Uint8ClampedArray(3);if(!Array.isArray(e))return void(this.color=t);switch(e.length){case 0:this.color=null;break;case 1:x.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:x.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:x.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new T,(0,S.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,S.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var a=e.getArray("Border");Array.isArray(a)&&a.length>=3&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length&&this.borderStyle.setDashArray(a[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,S.isDict)(t)){var r=t.get("N");if((0,S.isStream)(r))return void(this.appearance=r);if((0,S.isDict)(r)){var a=e.get("AS");(0,S.isName)(a)&&r.has(a.name)&&(this.appearance=r.get(a.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then(function(t){if(t){var r=new k.ObjectLoader(t,e,t.xref);return r.load().then(function(){return t})}})}},{key:"getOperatorList",value:function(e,t,r){var a=this;if(!this.appearance)return Promise.resolve(new A.OperatorList);var n=this.data,i=this.appearance.dict,o=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),s=i.getArray("BBox")||[0,0,1,1],c=i.getArray("Matrix")||[1,0,0,1,0,0],l=y(n.rect,s,c);return o.then(function(r){var i=new A.OperatorList;return i.addOp(w.OPS.beginAnnotation,[n.rect,l,c]),e.getOperatorList({stream:a.appearance,task:t,resources:r,operatorList:i}).then(function(){return i.addOp(w.OPS.endAnnotation,[]),a.appearance.reset(),i})})}},{key:"viewable",get:function(){return 0===this.flags||this._isViewable(this.flags)}},{key:"printable",get:function(){return 0!==this.flags&&this._isPrintable(this.flags)}}]),e}();t.Annotation=I;var T=function(){function e(){p(this,e),this.width=1,this.style=w.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return v(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,S.isName)(e))return void(this.width=0);if(Number.isInteger(e)){if(e>0){var r=(t[2]-t[0])/2,a=(t[3]-t[1])/2;r>0&&a>0&&(e>r||e>a)&&((0,w.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,S.isName)(e))switch(e.name){case"S":this.style=w.AnnotationBorderStyleType.SOLID;break;case"D":this.style=w.AnnotationBorderStyleType.DASHED;break;case"B":this.style=w.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=w.AnnotationBorderStyleType.INSET;break;case"U":this.style=w.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t=!0,r=!0,a=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){var c=o.value,l=+c>=0;if(!l){t=!1;break}c>0&&(r=!1)}}catch(u){n=!0,i=u}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw i}}t&&!r?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=T;var E=function(e){function t(e){var r;p(this,t),r=o(this,c(t).call(this,e));var a=e.dict;if(a.has("IRT")){var n=a.getRaw("IRT");r.data.inReplyTo=(0,S.isRef)(n)?n.toString():null;var i=a.get("RT");r.data.replyType=(0,S.isName)(i)?i.name:w.AnnotationReplyType.REPLY}if(r.data.replyType===w.AnnotationReplyType.GROUP){var s=a.get("IRT");r.data.title=(0,w.stringToPDFString)(s.get("T")||""),r.setContents(s.get("Contents")),r.data.contents=r.contents,s.has("CreationDate")?(r.setCreationDate(s.get("CreationDate")),r.data.creationDate=r.creationDate):r.data.creationDate=null,s.has("M")?(r.setModificationDate(s.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,r.data.hasPopup=s.has("Popup"),s.has("C")?(r.setColor(s.getArray("C")),r.data.color=r.color):r.data.color=null}else r.data.title=(0,w.stringToPDFString)(a.get("T")||""),r.setCreationDate(a.get("CreationDate")),r.data.creationDate=r.creationDate,r.data.hasPopup=a.has("Popup"),a.has("C")||(r.data.color=null);return r}return l(t,e),v(t,[{key:"setCreationDate",value:function(e){this.creationDate=(0,w.isString)(e)?e:null}}]),t}(I);t.MarkupAnnotation=E;var F=function(e){function t(e){var r;p(this,t),r=o(this,c(t).call(this,e));var a=e.dict,n=r.data;n.annotationType=w.AnnotationType.WIDGET,n.fieldName=r._constructFieldName(a),n.fieldValue=(0,C.getInheritableProperty)({dict:a,key:"V",getArray:!0}),n.alternativeText=(0,w.stringToPDFString)(a.get("TU")||""),n.defaultAppearance=(0,C.getInheritableProperty)({dict:a,key:"DA"})||"";var i=(0,C.getInheritableProperty)({dict:a,key:"FT"});return n.fieldType=(0,S.isName)(i)?i.name:null,r.fieldResources=(0,C.getInheritableProperty)({dict:a,key:"DR"})||S.Dict.empty,n.fieldFlags=(0,C.getInheritableProperty)({dict:a,key:"Ff"}),(!Number.isInteger(n.fieldFlags)||n.fieldFlags<0)&&(n.fieldFlags=0),n.readOnly=r.hasFieldFlag(w.AnnotationFieldFlag.READONLY),r}return l(t,e),v(t,[{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,w.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,w.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,w.stringToPDFString)(e.get("T")));for(var r=e;r.has("Parent")&&(r=r.get("Parent"),(0,S.isDict)(r));)r.has("T")&&t.unshift((0,w.stringToPDFString)(r.get("T")));return t.join(".")}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,r,n){return n?Promise.resolve(new A.OperatorList):a(c(t.prototype),"getOperatorList",this).call(this,e,r,n)}}]),t}(I),B=function(e){function t(e){var r;p(this,t),r=o(this,c(t).call(this,e));var a=e.dict;r.data.fieldValue=(0,w.stringToPDFString)(r.data.fieldValue||"");var n=(0,C.getInheritableProperty)({dict:a,key:"Q"});(!Number.isInteger(n)||n<0||n>2)&&(n=null),r.data.textAlignment=n;var i=(0,C.getInheritableProperty)({dict:a,key:"MaxLen"});return(!Number.isInteger(i)||i<0)&&(i=null),r.data.maxLen=i,r.data.multiLine=r.hasFieldFlag(w.AnnotationFieldFlag.MULTILINE),r.data.comb=r.hasFieldFlag(w.AnnotationFieldFlag.COMB)&&!r.hasFieldFlag(w.AnnotationFieldFlag.MULTILINE)&&!r.hasFieldFlag(w.AnnotationFieldFlag.PASSWORD)&&!r.hasFieldFlag(w.AnnotationFieldFlag.FILESELECT)&&null!==r.data.maxLen,r}return l(t,e),v(t,[{key:"getOperatorList",value:function(e,r,n){if(n||this.appearance)return a(c(t.prototype),"getOperatorList",this).call(this,e,r,n);var i=new A.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(i);var o=new O.Stream((0,w.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:o,task:r,resources:this.fieldResources,operatorList:i}).then(function(){return i})}}]),t}(F),_=function(e){function t(e){var r;return p(this,t),r=o(this,c(t).call(this,e)),r.data.checkBox=!r.hasFieldFlag(w.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(w.AnnotationFieldFlag.PUSHBUTTON),r.data.radioButton=r.hasFieldFlag(w.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(w.AnnotationFieldFlag.PUSHBUTTON),r.data.pushButton=r.hasFieldFlag(w.AnnotationFieldFlag.PUSHBUTTON),r.data.checkBox?r._processCheckBox(e):r.data.radioButton?r._processRadioButton(e):r.data.pushButton?r._processPushButton(e):(0,w.warn)("Invalid field flags for button widget annotation"),r}return l(t,e),v(t,[{key:"_processCheckBox",value:function(e){(0,S.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);var t=e.dict.get("AP");if((0,S.isDict)(t)){var r=t.get("D");if((0,S.isDict)(r)){var a=r.getKeys(),n=2===a.length;n&&(this.data.exportValue="Off"===a[0]?a[1]:a[0])}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,S.isDict)(t)&&t.has("V")){var r=t.get("V");(0,S.isName)(r)&&(this.data.fieldValue=r.name)}var a=e.dict.get("AP");if((0,S.isDict)(a)){var n=a.get("N");if((0,S.isDict)(n)){var i=!0,o=!1,s=void 0;try{for(var c,l=n.getKeys()[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var u=c.value;if("Off"!==u){this.data.buttonValue=u;break}}}catch(h){o=!0,s=h}finally{try{i||null==l["return"]||l["return"]()}finally{if(o)throw s}}}}}},{key:"_processPushButton",value:function(e){return e.dict.has("A")?void k.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):void(0,w.warn)("Push buttons without action dictionaries are not supported")}}]),t}(F),R=function(e){function t(e){var r;p(this,t),r=o(this,c(t).call(this,e)),r.data.options=[];var a=(0,C.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(a))for(var n=e.xref,i=0,s=a.length;ii&&(p=Math.max(p,b),y+=v+2*o,b=0,v=0),m.push({transform:w,x:b,y:y,w:k.width,h:k.height}),b+=k.width+2*o,v=Math.max(v,k.height)}var S=Math.max(p,b)+o,x=y+v+o,C=new Uint8ClampedArray(S*x*4),A=S<<2;for(g=0;g=0;)O[T-4]=O[T],O[T-3]=O[T+1],O[T-2]=O[T+2],O[T-1]=O[T+3],O[T+P]=O[T+P-4],O[T+P+1]=O[T+P-3],O[T+P+2]=O[T+P-2],O[T+P+3]=O[T+P-1],T-=A}return s.splice(u,4*d,a.OPS.paintInlineImageXObjectGroup),c.splice(u,4*d,[{width:S,height:x,kind:a.ImageKind.RGBA_32BPP,data:C},m]),u+1}),e(n,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,function(e,t){var r=e.fnArray,n=e.iCurr-3,i=(t-n)%4;switch(i){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(i))},function(e,r){var n=10,i=100,o=1e3,s=e.fnArray,c=e.argsArray,l=e.iCurr,u=l-3,h=l-2,f=l-1,d=Math.floor((r-u)/4);if(d=t(u,d,s,c),d=4&&n[s-4]===n[c]&&n[s-3]===n[l]&&n[s-2]===n[u]&&n[s-1]===n[h]&&i[s-4][0]===f&&i[s-4][1]===d&&(g++,p-=5);for(var m=p+4,v=1;v=r)break}a=(a||n)[e[t]],a&&!Array.isArray(a)?(o.iCurr=t,t++,!a.checkFn||(0,a.checkFn)(o)?(i=a,a=null):a=null):t++}this.state=a,this.match=i,this.lastProcessed=t},push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset:function(){this.state=null,this.match=null,this.lastProcessed=0}},r}(),i=function(){function e(e){this.queue=e}return e.prototype={push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush:function(){},reset:function(){}},e}(),o=function(){function e(e,t,r){this._streamSink=t,this.fnArray=[],this.argsArray=[],t&&"oplist"!==e?this.optimizer=new n(this):this.optimizer=new i(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=r,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}var t=1e3,r=t-5;return e.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function(e,n){this.optimizer.push(e,n),this.weight++,this._streamSink&&(this.weight>=t?this.flush():this.weight>=r&&(e===a.OPS.restore||e===a.OPS.endText)&&this.flush())},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(a.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){Object.assign(this.dependencies,e.dependencies);for(var t=0,r=e.length;t0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},e}();t.OperatorList=o},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(a,n)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){function o(e){n(c,a,i,o,s,"next",e)}function s(e){n(c,a,i,o,s,"throw",e)}var c=e.apply(t,r);o(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var o=a(r(2)),s=r(5),c=r(205),l=r(183),u=r(206),h=r(209),f=r(212),d=r(211),g=r(215),p=r(189),m=r(216),v=r(201),b=r(190),y=r(210),w=r(186),k=r(217),S=r(218),x=r(196),C=r(220),A=r(221),O=r(203),P=r(222),I=function(){function e(e){var t=this,r=e.xref,n=e.handler,c=e.pageIndex,l=e.idFactory,u=e.fontCache,h=e.builtInCMapCache,f=e.options,d=void 0===f?null:f,g=e.pdfFunctionFactory;this.xref=r,this.handler=n,this.pageIndex=c,this.idFactory=l,this.fontCache=u,this.builtInCMapCache=h,this.options=d||a,this.pdfFunctionFactory=g,this.parsingType3Font=!1,this.fetchBuiltInCMap=function(){var e=i(o["default"].mark(function r(e){var a,n,i;return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.builtInCMapCache.has(e)){r.next=2;break}return r.abrupt("return",t.builtInCMapCache.get(e));case 2:return a=t.handler.sendWithStream("FetchBuiltInCMap",{name:e}),n=a.getReader(),r.next=6,new Promise(function(e,t){function r(){n.read().then(function(t){var a=t.value,n=t.done;n||(e(a),r())},t)}r()});case 6:return i=r.sent,i.compressionType!==s.CMapCompressionType.NONE&&t.builtInCMapCache.set(e,i),r.abrupt("return",i);case 9:case"end":return r.stop()}},r)}));return function(t){return e.apply(this,arguments)}}()}function t(){this.reset()}function r(e){if(!(0,l.isName)(e))return"source-over";switch(e.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"}return(0,s.warn)("Unsupported blend mode: "+e.name),"source-over"}var a={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:s.NativeImageDecoding.DECODE,ignoreErrors:!1,isEvalSupported:!0},n=20,p=100;t.prototype={check:function(){return!(++this.checked0&&void 0!==arguments[0]?arguments[0]:a,t=Object.create(this);return t.options=e,t},hasBlendModes:function(e){if(!(0,l.isDict)(e))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var r=[e],a=this.xref;r.length;){var n,i,o,s=r.shift(),c=s.get("ExtGState");if((0,l.isDict)(c)){var u=c.getKeys();for(i=0,o=u.length;im)){r.next=11;break}return(0,s.warn)("Image exceeded maximum allowed size and was removed."),r.abrupt("return",void 0);case 11:if(v=d.get("ImageMask","IM")||!1,!v){r.next=24;break}return k=d.get("Width","W"),S=d.get("Height","H"),C=k+7>>3,O=a.getBytes(C*S,!0),I=d.getArray("Decode","D"),y=P.PDFImage.createMask({imgArray:O,width:k,height:S,imageIsFromDecodeStream:a instanceof b.DecodeStream,inverseDecode:!!I&&I[0]>0}),y.cached=!!l,w=[y],c.addOp(s.OPS.paintImageMaskXObject,w),l&&(u[l]={fn:s.OPS.paintImageMaskXObject,args:w}),r.abrupt("return",void 0);case 24:if(T=d.get("SMask","SM")||!1,E=d.get("Mask")||!1,F=200,!i||T||E||a instanceof x.JpegStream||!(g+p0&&a.addOp(s.OPS.setGState,[c])})},loadFont:function(e,t,r){function a(){return Promise.resolve(new T("g_font_error",new u.ErrorFont("Font "+e+" is not available"),t))}var n,i=this,o=this.xref;if(t){if(!(0,l.isRef)(t))throw new Error('The "font" object should be a reference.');n=t}else{var c=r.get("Font");if(!c)return(0,s.warn)("fontRes not available"),a();n=c.getRaw(e)}if(!n)return(0,s.warn)("fontRef not available"),a();if(this.fontCache.has(n))return this.fontCache.get(n);if(t=o.fetchIfRef(n),!(0,l.isDict)(t))return a();if(t.translated)return t.translated;var h,f=(0,s.createPromiseCapability)(),d=this.preEvaluateFont(t),g=d.descriptor,p=d.hash,m=(0,l.isRef)(n);if(m&&(h=n.toString()),p&&(0,l.isDict)(g)){g.fontAliases||(g.fontAliases=Object.create(null));var v=g.fontAliases;if(v[p]){var b=v[p].aliasRef;if(m&&b&&this.fontCache.has(b))return this.fontCache.putAlias(n,b),this.fontCache.get(n)}else v[p]={fontID:u.Font.getFontID()};m&&(v[p].aliasRef=n),h=v[p].fontID}m?this.fontCache.put(n,f.promise):(h||(h=this.idFactory.createObjId()),this.fontCache.put("id_".concat(h),f.promise)),(0,s.assert)(h,'The "fontID" must be defined.'),t.loadedName="".concat(this.idFactory.getDocId(),"_f").concat(h),t.translated=f.promise;var y;try{y=this.translateFont(d)}catch(w){y=Promise.reject(w)}return y.then(function(e){if(void 0!==e.fontType){var r=o.stats.fontTypes;r[e.fontType]=!0}f.resolve(new T(t.loadedName,e,t))})["catch"](function(e){i.handler.send("UnsupportedFeature",{featureId:s.UNSUPPORTED_FEATURES.font});try{var r=g&&g.get("FontFile3"),a=r&&r.get("Subtype"),n=(0,u.getFontType)(d.type,a&&a.name),c=o.stats.fontTypes;c[n]=!0}catch(l){}f.resolve(new T(t.loadedName,new u.ErrorFont(e instanceof Error?e.message:e),t))}),f.promise},buildPath:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=e.length-1;if(r||(r=[]),n<0||e.fnArray[n]!==s.OPS.constructPath)a&&((0,s.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(s.OPS.save,null)),e.addOp(s.OPS.constructPath,[[t],r]),a&&e.addOp(s.OPS.restore,null);else{var i=e.argsArray[n];i[0].push(t),Array.prototype.push.apply(i[1],r)}},handleColorN:function(){function e(e,r,a,n,i,o,s){return t.apply(this,arguments)}var t=i(o["default"].mark(function r(e,t,a,n,i,c,u){var h,f,d,p,m,v,b;return o["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(h=a[a.length-1],!(0,l.isName)(h)||!(f=i.get(h.name))){r.next=16;break}if(d=(0,l.isStream)(f)?f.dict:f,p=d.get("PatternType"),p!==I){r.next=9;break}return m=n.base?n.base.getRgb(a,0):null,r.abrupt("return",this.handleTilingType(t,m,c,f,d,e,u));case 9:if(p!==R){r.next=15;break}return v=d.get("Shading"),b=d.getArray("Matrix"),f=g.Pattern.parseShading(v,b,this.xref,c,this.handler,this.pdfFunctionFactory),e.addOp(t,f.getIR()),r.abrupt("return",void 0);case 15:throw new s.FormatError("Unknown PatternType: ".concat(p));case 16:throw new s.FormatError("Unknown PatternName: ".concat(h));case 17:case"end":return r.stop()}},r,this)}));return e}(),getOperatorList:function(e){function r(e){for(var t=0,r=S.savedStatesDepth;t0&&(t[3]*=r*I.fontMatrix[3])}var a=s.Util.transform(I.ctm,s.Util.transform(I.textMatrix,t));R.transform=a,e.vertical?(R.width=Math.sqrt(a[0]*a[0]+a[1]*a[1]),R.height=0,R.vertical=!0):(R.width=0,R.height=Math.sqrt(a[2]*a[2]+a[3]*a[3]),R.vertical=!1);var n=I.textLineMatrix[0],i=I.textLineMatrix[1],o=Math.sqrt(n*n+i*i);n=I.ctm[0],i=I.ctm[1];var c=Math.sqrt(n*n+i*i);R.textAdvanceScale=c*o,R.lastAdvanceWidth=0,R.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*I.fontSize;return l?(R.spaceWidth=l,R.fakeSpaceMin=l*L,R.fakeMultiSpaceMin=l*M,R.fakeMultiSpaceMax=l*D,R.textRunBreakAllowed=!e.isMonospace):(R.spaceWidth=0,R.fakeSpaceMin=1/0,R.fakeMultiSpaceMin=1/0,R.fakeMultiSpaceMax=0,R.textRunBreakAllowed=!1),R.initialized=!0,R}function a(e){for(var t,r=0,a=e.length;r=32&&t<=127;)r++;return r0&&c(p,a.str)}var m=0,v=0;if(t.vertical){var b=u*I.fontMatrix[0];v=b*I.fontSize+g,i+=v}else{var y=u*I.fontMatrix[0];m=(y*I.fontSize+g)*I.textHScale,n+=m}I.translateTextMatrix(m,v),a.str.push(h)}return t.vertical?(a.lastAdvanceHeight=i,a.height+=Math.abs(i)):(a.lastAdvanceWidth=n,a.width+=n),a}function c(e,t){if(!(e0;)t.push(" ")}}function u(){R.initialized&&(R.vertical?R.height*=R.textAdvanceScale:R.width*=R.textAdvanceScale,B.items.push(n(R)),R.initialized=!1,R.str.length=0)}function h(){var e=B.items.length;e>0&&(A.enqueue(B,e),B.items=[],B.styles=Object.create(null))}var d=this,g=e.stream,p=e.task,v=e.resources,b=e.stateManager,y=void 0===b?null:b,k=e.normalizeWhitespace,S=void 0!==k&&k,x=e.combineTextItems,C=void 0!==x&&x,A=e.sink,O=e.seenStyles,P=void 0===O?Object.create(null):O;v=v||l.Dict.empty,y=y||new E(new F);var I,T=/\s/g,B={items:[],styles:Object.create(null)},R={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},L=.3,M=1.5,D=4,N=this,U=this.xref,j=null,q=Object.create(null),z=new _(g,U,y),H=new t;return new Promise(function G(e,t){var a=function(r){h(),Promise.all([r,A.ready]).then(function(){try{G(e,t)}catch(r){t(r)}},t)};p.ensureNotTerminated(),H.reset();for(var n,f={},d=[];!(n=H.check())&&(d.length=0,f.args=d,z.read(f));){I=y.state;var g=f.fn;d=f.args;var m,b;switch(0|g){case s.OPS.setFont:var k=d[0].name,x=d[1];if(I.font&&k===I.fontName&&x===I.fontSize)break;return u(),I.fontName=k,I.fontSize=x,void a(i(k,null));case s.OPS.setTextRise:u(),I.textRise=d[0];break;case s.OPS.setHScale:u(),I.textHScale=d[0]/100;break;case s.OPS.setLeading:u(),I.leading=d[0];break;case s.OPS.moveText:var O=!!I.font&&0===(I.font.vertical?d[0]:d[1]);if(m=d[0]-d[1],C&&O&&R.initialized&&m>0&&m<=R.fakeMultiSpaceMax){I.translateTextLineMatrix(d[0],d[1]),R.width+=d[0]-R.lastAdvanceWidth,R.height+=d[1]-R.lastAdvanceHeight,b=d[0]-R.lastAdvanceWidth-(d[1]-R.lastAdvanceHeight),c(b,R.str);break}u(),I.translateTextLineMatrix(d[0],d[1]),I.textMatrix=I.textLineMatrix.slice();break;case s.OPS.setLeadingMoveText:u(),I.leading=-d[1],I.translateTextLineMatrix(d[0],d[1]),I.textMatrix=I.textLineMatrix.slice();break;case s.OPS.nextLine:u(),I.carriageReturn();break;case s.OPS.setTextMatrix:if(m=I.calcTextLineMatrixAdvance(d[0],d[1],d[2],d[3],d[4],d[5]),C&&null!==m&&R.initialized&&m.value>0&&m.value<=R.fakeMultiSpaceMax){I.translateTextLineMatrix(m.width,m.height),R.width+=m.width-R.lastAdvanceWidth,R.height+=m.height-R.lastAdvanceHeight,b=m.width-R.lastAdvanceWidth-(m.height-R.lastAdvanceHeight),c(b,R.str);break}u(),I.setTextMatrix(d[0],d[1],d[2],d[3],d[4],d[5]),I.setTextLineMatrix(d[0],d[1],d[2],d[3],d[4],d[5]);break;case s.OPS.setCharSpacing:I.charSpacing=d[0];break;case s.OPS.setWordSpacing:I.wordSpacing=d[0];break;case s.OPS.beginText:u(),I.textMatrix=s.IDENTITY_MATRIX.slice(),I.textLineMatrix=s.IDENTITY_MATRIX.slice();break;case s.OPS.showSpacedText:for(var T,F=d[0],_=0,L=F.length;_R.fakeMultiSpaceMax,M||(R.height+=T)):(m=-m,T=m*I.textHScale,I.translateTextMatrix(T,0),M=R.textRunBreakAllowed&&m>R.fakeMultiSpaceMax,M||(R.width+=T)),M?u():m>0&&c(m,R.str)}break;case s.OPS.showText:o(d[0]);break;case s.OPS.nextLineShowText:u(),I.carriageReturn(),o(d[0]);break;case s.OPS.nextLineSetSpacingShowText:u(),I.wordSpacing=d[0],I.charSpacing=d[1],I.carriageReturn(),o(d[2]);break;case s.OPS.paintXObject:u(),j||(j=v.get("XObject")||l.Dict.empty);var D=d[0].name;if(D&&void 0!==q[D])break;return void a(new Promise(function(e,t){if(!D)throw new s.FormatError("XObject must be referred to by name.");var r=j.get(D);if(!r)return void e();if(!(0,l.isStream)(r))throw new s.FormatError("XObject should be a stream");var a=r.dict.get("Subtype");if(!(0,l.isName)(a))throw new s.FormatError("XObject should have a Name subtype");if("Form"!==a.name)return q[D]=!0,void e();var n=y.state.clone(),i=new E(n),o=r.dict.getArray("Matrix");Array.isArray(o)&&6===o.length&&i.transform(o),h();var c={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,A.enqueue(e,t)},get desiredSize(){return A.desiredSize},get ready(){return A.ready}};N.getTextContent({stream:r,task:p,resources:r.dict.get("Resources")||v,stateManager:i,normalizeWhitespace:S,combineTextItems:C,sink:c,seenStyles:P}).then(function(){c.enqueueInvoked||(q[D]=!0),e()},t)})["catch"](function(e){if(!(e instanceof s.AbortException)){if(N.options.ignoreErrors)return void(0,s.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'));throw e}}));case s.OPS.setGState:u();var U=d[0],W=v.get("ExtGState");if(!(0,l.isDict)(W)||!(0,l.isName)(U))break;var X=W.get(U.name);if(!(0,l.isDict)(X))break;var V=X.get("Font");if(V)return I.fontName=null,I.fontSize=V[1],void a(i(null,V[0]))}if(B.items.length>=A.desiredSize){n=!0;break}}return n?void a(w):(u(),h(),void e())})["catch"](function(e){if(!(e instanceof s.AbortException)){if(d.options.ignoreErrors)return(0,s.warn)('getTextContent - ignoring errors during "'.concat(p.name,'" ')+'task: "'.concat(e,'".')),u(),void h();throw e}})},extractDataStructures:function(e,t,r){var a,n=this,i=this.xref,o=e.get("ToUnicode")||t.get("ToUnicode"),c=o?this.readToUnicode(o):Promise.resolve(void 0);if(r.composite){var f=e.get("CIDSystemInfo");(0,l.isDict)(f)&&(r.cidSystemInfo={registry:(0,s.stringToPDFString)(f.get("Registry")),ordering:(0,s.stringToPDFString)(f.get("Ordering")),supplement:f.get("Supplement")});var d=e.get("CIDToGIDMap");(0,l.isStream)(d)&&(a=d.getBytes())}var g,p=[],m=null;if(e.has("Encoding")){if(g=e.get("Encoding"),(0,l.isDict)(g)){if(m=g.get("BaseEncoding"),m=(0,l.isName)(m)?m.name:null,g.has("Differences"))for(var v=g.get("Differences"),b=0,y=0,w=v.length;y0,r.dict=e,c.then(function(e){return r.toUnicode=e,n.buildToUnicode(r)}).then(function(e){return r.toUnicode=e,a&&(r.cidToGidMap=n.readCidToGidMap(a,e)),r})},_buildSimpleFontToUnicode:function(e){(0,s.assert)(!e.composite,"Must be a simple font.");var t,r,a=[],n=e.defaultEncoding.slice(),i=e.baseEncodingName,o=e.differences;for(t in o)r=o[t],".notdef"!==r&&(n[t]=r);var c=(0,y.getGlyphsUnicode)();for(t in n)if(r=n[t],""!==r)if(void 0!==c[r])a[t]=String.fromCharCode(c[r]);else{var l=0;switch(r[0]){case"G":3===r.length&&(l=parseInt(r.substring(1),16));break;case"g":5===r.length&&(l=parseInt(r.substring(1),16));break;case"C":case"c":r.length>=3&&(l=+r.substring(1));break;default:var d=(0,f.getUnicodeForGlyph)(r,c);d!==-1&&(l=d)}if(l){if(i&&l===+t){var g=(0,h.getEncoding)(i);if(g&&(r=g[t])){a[t]=String.fromCharCode(c[r]);continue}}a[t]=String.fromCodePoint(l)}}return new u.ToUnicodeMap(a)},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof c.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var t=e.cidSystemInfo.registry,r=e.cidSystemInfo.ordering,a=l.Name.get(t+"-"+r+"-UCS2");return c.CMapFactory.create({encoding:a,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(t){var r=e.cMap,a=[];return r.forEach(function(e,r){if(r>65535)throw new s.FormatError("Max size of CID is 65,535");var n=t.lookup(r);n&&(a[e]=String.fromCharCode((n.charCodeAt(0)<<8)+n.charCodeAt(1)))}),new u.ToUnicodeMap(a)})}return Promise.resolve(new u.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=e;return(0,l.isName)(t)?c.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){return e instanceof c.IdentityCMap?new u.IdentityToUnicodeMap(0,65535):new u.ToUnicodeMap(e.getMap())}):(0,l.isStream)(t)?c.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){if(e instanceof c.IdentityCMap)return new u.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach(function(e,r){for(var a=[],n=0;n>1;(0!==i||t.has(o))&&(r[o]=i)}return r},extractWidths:function(e,t,r){var a,n,i,o,s,c,h,f,d=this.xref,g=[],p=0,m=[];if(r.composite){if(p=e.has("DW")?e.get("DW"):1e3,f=e.get("W"))for(n=0,i=f.length;nc&&(0,s.info)("Command ".concat(n,": expected [0, ").concat(c,"] args, ")+"but received ".concat(u," args."));else{if(u!==c){for(var h=this.nonProcessedArgs;u>c;)h.push(t.shift()),u--;for(;u=s.OPS.moveTo&&o<=s.OPS.endPath&&++this._numInvalidPathOPS>r)throw new s.FormatError("Invalid ".concat(f));(0,s.warn)("Skipping ".concat(f)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(o,t),e.fn=o,e.args=t,!0}if(a===l.EOF)return!1;if(null!==a&&(null===t&&(t=[]),t.push(a),t.length>33))throw new s.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case s.OPS.save:this.stateManager.save();break;case s.OPS.restore:this.stateManager.restore();break;case s.OPS.transform:this.stateManager.transform(t)}}},e}()},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r0&&void 0!==arguments[0]&&arguments[0];l(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return h(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){for(var a=r.length-1;e<=t;)this._map[e++]=r,r=r.substring(0,a)+String.fromCharCode(r.charCodeAt(a)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){for(var a=0,n=r.length;e<=t&&a>>0;for(var s=n[i],c=0,l=s.length;c=u&&a<=h)return r.charcode=a,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=b;var y=function(e){function t(e,r){var a;return l(this,t),a=n(this,o(t).call(this)),a.vertical=e,a.addCodespaceRange(r,0,65535),a}return s(t,e),h(t,[{key:"mapCidRange",value:function(e,t,r){(0,f.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,f.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,f.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,f.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,f.unreachable)("should not access .isIdentityCMap")}}]),t}(b);t.IdentityCMap=y;var w=function(){function e(e,t){for(var r=0,a=0;a<=t;a++)r=r<<8|e[a];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var a=0,n=r;n>=0;n--)a+=e[n]+t[n],e[n]=255&a,a>>=8}function a(e,t){for(var r=1,a=t;a>=0&&r>0;a--)r+=e[a],e[a]=255&r,r>>=8}function n(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(c)}function i(i,o,c){return new Promise(function(l,u){var h=new n(i),f=h.readByte();o.vertical=!!(1&f);for(var d,g,p=null,m=new Uint8Array(s),v=new Uint8Array(s),b=new Uint8Array(s),y=new Uint8Array(s),w=new Uint8Array(s);(g=h.readByte())>=0;){var k=g>>5;if(7!==k){var S=!!(16&g),x=15&g; if(x+1>s)throw new Error("processBinaryCMap: Invalid dataSize.");var C,A=1,O=h.readNumber();switch(k){case 0:for(h.readHex(m,x),h.readHexNumber(v,x),r(v,m,x),o.addCodespaceRange(x+1,e(m,x),e(v,x)),C=1;C=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new f.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,a=this.tmpBuf,n=0;do{var i=this.readByte();if(i<0)throw new f.FormatError("unexpected EOF in bcmap");r=!(128&i),a[n++]=127&i}while(!r);for(var o=t,s=0,c=0;o>=0;){for(;c<8&&a.length>0;)s=a[--n]<>=8,c-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,a=0,n=0;n<=t;n++)a=(1&a)<<8|e[n],e[n]=a>>1^r},readString:function(){for(var e=this.readNumber(),t="",r=0;r>>0}function t(e){if(!(0,f.isString)(e))throw new f.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new f.FormatError("Malformed CMap: expected int.")}function a(r,a){for(;;){var n=a.getObj();if((0,d.isEOF)(n))break;if((0,d.isCmd)(n,"endbfchar"))return;t(n);var i=e(n);n=a.getObj(),t(n);var o=n;r.mapOne(i,o)}}function n(r,a){for(;;){var n=a.getObj();if((0,d.isEOF)(n))break;if((0,d.isCmd)(n,"endbfrange"))return;t(n);var i=e(n);n=a.getObj(),t(n);var o=e(n);if(n=a.getObj(),Number.isInteger(n)||(0,f.isString)(n)){var s=Number.isInteger(n)?String.fromCharCode(n):n;r.mapBfRange(i,o,s)}else{if(!(0,d.isCmd)(n,"["))break;n=a.getObj();for(var c=[];!(0,d.isCmd)(n,"]")&&!(0,d.isEOF)(n);)c.push(n),n=a.getObj();r.mapBfRangeToArray(i,o,c)}}throw new f.FormatError("Invalid bf range.")}function i(a,n){for(;;){var i=n.getObj();if((0,d.isEOF)(i))break;if((0,d.isCmd)(i,"endcidchar"))return;t(i);var o=e(i);i=n.getObj(),r(i);var s=i;a.mapOne(o,s)}}function o(a,n){for(;;){var i=n.getObj();if((0,d.isEOF)(i))break;if((0,d.isCmd)(i,"endcidrange"))return;t(i);var o=e(i);i=n.getObj(),t(i);var s=e(i);i=n.getObj(),r(i);var c=i;a.mapCidRange(o,s,c)}}function s(t,r){for(;;){var a=r.getObj();if((0,d.isEOF)(a))break;if((0,d.isCmd)(a,"endcodespacerange"))return;if(!(0,f.isString)(a))break;var n=e(a);if(a=r.getObj(),!(0,f.isString)(a))break;var i=e(a);t.addCodespaceRange(a.length,n,i)}throw new f.FormatError("Invalid codespace range.")}function c(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function l(e,t){var r=t.getObj();(0,d.isName)(r)&&(0,f.isString)(r.name)&&(e.name=r.name)}function u(e,t,r,u){var g,m;e:for(;;)try{var v=t.getObj();if((0,d.isEOF)(v))break;if((0,d.isName)(v))"WMode"===v.name?c(e,t):"CMapName"===v.name&&l(e,t),g=v;else if((0,d.isCmd)(v))switch(v.cmd){case"endcmap":break e;case"usecmap":(0,d.isName)(g)&&(m=g.name);break;case"begincodespacerange":s(e,t);break;case"beginbfchar":a(e,t);break;case"begincidchar":i(e,t);break;case"beginbfrange":n(e,t);break;case"begincidrange":o(e,t)}}catch(b){if(b instanceof p.MissingDataException)throw b;(0,f.warn)("Invalid cMap data: "+b);continue}return!u&&m&&(u=m),u?h(e,r,u):Promise.resolve(e)}function h(e,t,r){return k(r,t).then(function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,a=0;a=0?o[n]=a:o[n]=0;else if(s)for(n in t)o[n]=t[n];else for(i=p.StandardEncoding,n=0;n=0?o[n]=a:o[n]=0;var c,l=e.differences;if(l)for(n in l){var h=l[n];if(a=r.indexOf(h),a===-1){c||(c=(0,g.getGlyphsUnicode)());var f=u(h,c);f!==h&&(a=r.indexOf(f))}a>=0?o[n]=a:o[n]=0}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=l,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var f=r(5),d=r(207),g=r(210),p=r(209),m=r(211),v=r(212),b=r(213),y=r(205),w=r(186),k=r(190),S=r(214),x=[[57344,63743],[1048576,1114109]],C=1e3,A=!0;t.SEAC_ANALYSIS_ENABLED=A;var O={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=O;var P=[".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"],I=function(){function e(e,t,r,a,n,i,o,s){this.fontChar=e,this.unicode=t,this.accent=r,this.width=a,this.vmetric=n,this.operatorListId=i,this.isSpace=o,this.isInFont=s}return e.prototype.matchesForCache=function(e,t,r,a,n,i,o,s){return this.fontChar===e&&this.unicode===t&&this.accent===r&&this.width===a&&this.vmetric===n&&this.operatorListId===i&&this.isSpace===o&&this.isInFont===s},e}(),T=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=T;var E=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,f.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=E;var F=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e,t,r){var a,n;if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(a=0,n=r.length;ar;)r<<=1,a++;var n=r*t;return{range:n,entry:a,rangeShift:t*e-n}};var n=12,i=16;return a.prototype={toArray:function(){var o=this.sfnt,s=this.tables,c=Object.keys(s);c.sort();var l,u,h,d,g,p=c.length,m=n+p*i,v=[m];for(l=0;l>>0;m+=b,v.push(m)}var y=new Uint8Array(m);for(l=0;l>>0}t(y,m+4,k),t(y,m+8,v[l]),t(y,m+12,s[g].length),m+=i}return y},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},a}(),B=function(){function e(e,t,r){var n;this.name=e,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(r.flags&O.Serif),this.isSymbolicFont=!!(r.flags&O.Symbolic),this.isMonospace=!!(r.flags&O.FixedPitch);var i=r.type,o=r.subtype;if(this.type=i,this.subtype=o,this.fallbackName=this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif",this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.wideChars=r.wideChars,this.cMap=r.cMap,this.ascent=r.ascent/C,this.descent=r.descent/C,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.fallbackToUnicode=r.fallbackToUnicode||new T,this.toFontChar=[],"Type3"===r.type){for(n=0;n<256;n++)this.toFontChar[n]=this.differences[n]||r.defaultEncoding[n];return void(this.fontType=f.FontType.TYPE3)}if(this.cidEncoding=r.cidEncoding,this.vertical=r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!t||t.isEmpty)return t&&(0,f.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();var c=D(t,r),u=a(c,2);i=u[0],o=u[1],i===this.type&&o===this.subtype||(0,f.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(i,"/").concat(o,"."));try{var h;switch(i){case"MMType1":(0,f.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var d="Type1C"===o||"CIDFontType0C"===o?new L(t,r):new R(e,t,r);s(r),h=this.convert(e,d,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",h=this.checkAndRepair(e,t,r),this.isOpenType&&(s(r),i="OpenType");break;default:throw new f.FormatError("Font ".concat(i," is not supported"))}}catch(g){return(0,f.warn)(g),void this.fallbackToSystemFont()}this.data=h,this.fontType=l(i,o),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.encoding=r.baseEncoding,this.seacMap=r.seacMap}function t(e,t){return(e<<8)+t}function r(e,t,r){e[t+1]=r,e[t]=r>>>8}function n(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function i(e,t,r,a){return(e<<24)+(t<<16)+(r<<8)+a}function o(e){return String.fromCharCode(e>>8&255,255&e)}function h(e){return e=e>32767?32767:e<-32768?-32768:e,String.fromCharCode(e>>8&255,255&e)}function w(e){var t=e.peekBytes(4);return 65536===(0,f.readUint32)(t,0)||"true"===(0,f.bytesToString)(t)}function S(e){var t=e.peekBytes(4);return"ttcf"===(0,f.bytesToString)(t)}function B(e){var t=e.peekBytes(4);return"OTTO"===(0,f.bytesToString)(t)}function _(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function M(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}function D(e,t){var r,a,n=t.type,i=t.subtype,o=t.composite;return w(e)||S(e)?r=o?"CIDFontType2":"TrueType":B(e)?r=o?"CIDFontType2":"OpenType":_(e)?r=o?"CIDFontType0":"MMType1"===n?"MMType1":"Type1":M(e)?o?(r="CIDFontType0",a="CIDFontType0C"):(r="MMType1"===n?"MMType1":"Type1",a="Type1C"):((0,f.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=n,a=i),[r,a]}function N(e,t,r){for(var a,n=[],i=0,o=e.length;is){if(i++,i>=x.length){(0,f.warn)("Ran out of space in font private use area.");break}o=x[i][0],s=x[i][1]}var u=o++;0===l&&(l=r),a[u]=l,n[c]=u}}return{toFontChar:n,charCodeToGlyphId:a,nextAvailableFontCharCode:o}}function j(e,t){var r=[];for(var a in e)e[a]>=t||r.push({fontCharCode:0|a,glyphId:e[a]});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var n=[],i=r.length,o=0;o65535?2:1,l="\0\0"+o(c)+"\0\0"+(0,f.string32)(4+8*c);for(r=s.length-1;r>=0&&!(s[r][0]<=65535);--r);var u=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var h,d,g,p,m=s[r][1]<65535?1:0,v=u+m,b=F.getSearchParams(v,2),y="",w="",k="",S="",x="",C=0;for(r=0,a=u;r0&&(w+="ÿÿ",y+="ÿÿ",k+="\0",S+="\0\0");var I="\0\0"+o(2*v)+o(b.range)+o(b.entry)+o(b.rangeShift)+w+"\0\0"+y+k+S+x,T="",E="";if(c>1){for(l+="\0\0\n"+(0,f.string32)(4+8*c+4+I.length),T="",r=0,a=s.length;ri)return!1;t.getBytes(6);var o=t.getUint16();return 0!==o&&(e.data[8]=e.data[9]=0,!0)}function H(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,n=0,i=0,s=0,c=null,l=0;if(t){for(var u in t){u|=0,(c>u||!c)&&(c=u),l 123 are reserved for internal usage");s|=1<65535&&(l=65535)}else c=0,l=255;var d=e.bbox||[0,0,0,0],g=r.unitsPerEm||1/(e.fontMatrix||f.FONT_IDENTITY_MATRIX)[0],p=e.ascentScaled?1:g/C,m=r.ascent||Math.round(p*(e.ascent||d[3])),b=r.descent||Math.round(p*(e.descent||d[1]));b>0&&e.descent>0&&d[1]<0&&(b=-b);var y=r.yMax||m,w=-r.yMin||-b;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,f.string32)(a)+(0,f.string32)(n)+(0,f.string32)(i)+(0,f.string32)(s)+"*21*"+o(e.italicAngle?1:0)+o(c||e.firstChar)+o(l||e.lastChar)+o(m)+o(b)+"\0d"+o(y)+o(w)+"\0\0\0\0\0\0\0\0"+o(e.xHeight)+o(e.capHeight)+o(0)+o(c||e.firstChar)+"\0"}function G(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,f.string32)(t)+"\0\0\0\0"+(0,f.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function W(e,t){t||(t=[[],[]]);var r,a,n,i,s,c=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(r=0,a=c.length;r0,u&&"CIDFontType2"===n&&this.cidEncoding.startsWith("Identity-")){var h=(0,m.getGlyphMapForStandardFonts)(),d=[];for(t in h)d[+t]=h[t];if(/Arial-?Black/i.test(a)){var b=(0,m.getSupplementalGlyphMapForArialBlack)();for(t in b)d[+t]=b[t]}else if(/Calibri/i.test(a)){var y=(0,m.getSupplementalGlyphMapForCalibri)();for(t in y)d[+t]=y[t]}var w=this.toUnicode instanceof E;w||this.toUnicode.forEach(function(e,t){d[+e]=t}),this.toFontChar=d,this.toUnicode=new T(d)}else if(/Symbol/i.test(o))this.toFontChar=N(p.SymbolSetEncoding,(0,g.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(o))/Wingdings/i.test(a)&&(0,f.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=N(p.ZapfDingbatsEncoding,(0,g.getDingbatsGlyphsUnicode)(),this.differences);else if(u)this.toFontChar=N(this.defaultEncoding,(0,g.getGlyphsUnicode)(),this.differences);else{var k=(0,g.getGlyphsUnicode)();this.toUnicode.forEach(function(t,a){if(!e.composite){var n=e.differences[t]||e.defaultEncoding[t];r=(0,v.getUnicodeForGlyph)(n,k),r!==-1&&(a=r)}e.toFontChar[t]=a})}this.loadedName=o.split("-")[0],this.fontType=l(n,i)},checkAndRepair:function(e,a,o){function c(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var n=0;n>>0,a=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start?e.start:0,e.skip(a);var o=e.getBytes(n);return e.pos=i,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:n,offset:a,data:o}}function h(e){return{version:(0,f.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function m(e){var t=(0,f.bytesToString)(e.getBytes(4));(0,f.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),a=e.getUint16(),n=e.getInt32()>>>0,i=[],o=0;o>>0);var s={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:n,offsetTable:i};switch(r){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new f.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}function v(e,t){for(var r=m(e),a=r.numFonts,n=r.offsetTable,i=0;i>>0,g=!1;if((!o||o.platformId!==u||o.encodingId!==h)&&(0===u&&0===h?g=!0:1===u&&0===h?g=!0:3!==u||1!==h||!a&&o?r&&3===u&&0===h&&(g=!0,c=!0):(g=!0,r||(c=!0)),g&&(o={platformId:u,encodingId:h,offset:d}),c))break}if(o&&(t.pos=i+o.offset),!o||t.peekByte()===-1)return(0,f.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var p=t.getUint16();t.getUint16(),t.getUint16();var m,v,b=!1,y=[];if(0===p){for(m=0;m<256;m++){var w=t.getByte();w&&y.push({charCode:m,glyphId:w})}b=!0}else if(4===p){var k=t.getUint16()>>1;t.getBytes(6);var S,x=[];for(S=0;S>1)-(k-S);n.offsetIndex=O,C=Math.max(C,O+n.end-n.start+1)}else n.offsetIndex=-1}var P=[];for(m=0;ma&&((0,f.info)("The numOfMetrics ("+i+") should not be greater than the numGlyphs ("+a+")"),i=a,t.data[34]=(65280&i)>>8,t.data[35]=255&i);var o=a-i,s=o-(r.length-4*i>>1);if(s>0){var c=new Uint8Array(r.length+2*s);c.set(r.data),n&&(c[r.length]=r.data[2],c[r.length+1]=r.data[3]),r.data=c}}function x(e,t,a,i,o,s){var c={length:0,sizeOfInstructions:0};if(a-t<=12)return c;var l=e.subarray(t,a),u=n(l[0],l[1]);if(u<0)return u=-1,r(l,0,u),i.set(l,o),c.length=l.length,c;var h,f=10,d=0;for(h=0;hl.length?c:!s&&m>0?(i.set(l.subarray(0,p),o),i.set([0,0],o+p),i.set(l.subarray(v,S),o+p+2),S-=m,l.length-S>3&&(S=S+3&-4),c.length=S,c):l.length-S>3?(S=S+3&-4,i.set(l.subarray(0,S),o),c.length=S,c):(i.set(l,o),c.length=l.length,c)}function C(e,r,a){var n=e.data,o=i(n[0],n[1],n[2],n[3]);o>>16!==1&&((0,f.info)("Attempting to fix invalid version in head table: "+o),n[0]=0,n[1]=1,n[2]=0,n[3]=0);var s=t(n[50],n[51]);if(s<0||s>1){(0,f.info)("Attempting to fix invalid indexToLocFormat in head table: "+s);var c=r+1;if(a===c<<1)n[50]=0,n[51]=0;else{if(a!==c<<2)throw new f.FormatError("Could not fix indexToLocFormat: "+s);n[50]=0,n[51]=1}}}function O(e,t,r,a,n,i,o){var s,c,l;a?(s=4,c=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},l=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},l=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,h=e.data,f=s*(1+u);h=new Uint8Array(f),h.set(e.data.subarray(0,f)),e.data=h;var d=t.data,g=d.length,p=new Uint8Array(g),m=c(h,0),v=0,b=Object.create(null);l(h,0,v);var y,w;for(y=0,w=s;yg&&(g+3&-4)===k&&(k=g),k>g&&(m=k);var S=x(d,m,k,p,v,n),C=S.length;0===C&&(b[y]=!0),S.sizeOfInstructions>o&&(o=S.sizeOfInstructions),v+=C,l(h,w,v),m=k}if(0===v){var A=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(y=0,w=s;yO+v?t.data=p.subarray(0,O+v):(t.data=new Uint8Array(O+v),t.data.set(p.subarray(0,v))),t.data.set(p.subarray(0,O),v),l(e.data,h.length-s,v+O)}else t.data=p.subarray(0,v);return{missingGlyphs:b,maxSizeOfInstructions:o}}function I(e,t,r){var n=(a.start?a.start:0)+e.offset;a.pos=n;var i=e.length,o=n+i,s=a.getInt32();a.getBytes(28);var c,l,u=!0;switch(s){case 65536:c=P;break;case 131072:var h=a.getUint16();if(h!==r){u=!1;break}var d=[];for(l=0;l=32768){u=!1;break}d.push(g)}if(!u)break;for(var p=[],m=[];a.posi)){a.pos=v;var b=m.name;if(m.encoding){for(var y="",w=0,k=m.length;w0&&(c+=k-1)}}else(m||b)&&((0,f.warn)("TT: nested FDEFs not allowed"),p=!0),m=!0,u=c,i=h.pop(),t.functionsDefined[i]={data:s,i:c};else if(!m&&!b)if(i=h[h.length-1],isNaN(i))(0,f.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[i]=!0,i in t.functionsStackDeltas){var S=h.length+t.functionsStackDeltas[i];if(S<0)return(0,f.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=S}else if(i in t.functionsDefined&&!g.includes(i)){ if(d.push({data:s,i:c,stackTop:h.length-1}),g.push(i),o=t.functionsDefined[i],!o)return(0,f.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);s=o.data,c=o.i}if(!m&&!b){var x=w<=142?N[w]:w>=192&&w<=223?-1:w>=224?-2:0;for(w>=113&&w<=117&&(a=h.pop(),isNaN(a)||(x=2*-a));x<0&&h.length>0;)h.pop(),x++;for(;x>0;)h.push(NaN),x--}}t.tooComplexToFollowFunctions=p;var C=[s];c>s.length&&C.push(new Uint8Array(c-s.length)),u>l&&((0,f.warn)("TT: complementing a missing function tail"),C.push(new Uint8Array([34,45]))),_(e,C)}function B(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,f.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,a=e.functionsUsed.length;rt)return(0,f.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,f.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}function _(e,t){if(t.length>1){var r,a,n=0;for(r=0,a=t.length;r0||!(o.cMap instanceof y.IdentityCMap));if("OTTO"===j.version&&!Z||!X.head||!X.hhea||!X.maxp||!X.post)return Y=new k.Stream(X["CFF "].data),K=new L(Y,o),s(o),this.convert(e,K,o);delete X.glyf,delete X.loca,delete X.fpgm,delete X.prep,delete X["cvt "],this.isOpenType=!0}if(!X.maxp)throw new f.FormatError('Required "maxp" table is not found');a.pos=(a.start||0)+X.maxp.offset;var Q=a.getInt32(),$=a.getUint16(),ee=$+1,te=!0;ee>65535&&(te=!1,ee=$,(0,f.warn)("Not enough space in glyfs to duplicate first glyph."));var re=0,ae=0;if(Q>=65536&&X.maxp.length>=22){a.pos+=8;var ne=a.getUint16();ne>2&&(X.maxp.data[14]=0,X.maxp.data[15]=2),a.pos+=4,re=a.getUint16(),a.pos+=4,ae=a.getUint16()}X.maxp.data[4]=ee>>8,X.maxp.data[5]=255ⅇvar ie=R(X.fpgm,X.prep,X["cvt "],re);if(ie||(delete X.fpgm,delete X.prep,delete X["cvt "]),w(a,X.hhea,X.hmtx,ee,te),!X.head)throw new f.FormatError('Required "head" table is not found');C(X.head,$,J?X.loca.length:0);var oe=Object.create(null);if(J){var se=t(X.head.data[50],X.head.data[51]),ce=O(X.loca,X.glyf,$,se,ie,te,ae);oe=ce.missingGlyphs,Q>=65536&&X.maxp.length>=22&&(X.maxp.data[26]=ce.maxSizeOfInstructions>>8,X.maxp.data[27]=255&ce.maxSizeOfInstructions)}if(!X.hhea)throw new f.FormatError('Required "hhea" table is not found');0===X.hhea.data[10]&&0===X.hhea.data[11]&&(X.hhea.data[10]=255,X.hhea.data[11]=255);var le={unitsPerEm:t(X.head.data[18],X.head.data[19]),yMax:t(X.head.data[42],X.head.data[43]),yMin:n(X.head.data[38],X.head.data[39]),ascent:t(X.hhea.data[4],X.hhea.data[5]),descent:n(X.hhea.data[6],X.hhea.data[7])};this.ascent=le.ascent/le.unitsPerEm,this.descent=le.descent/le.unitsPerEm,X.post&&I(X.post,o,$),X.post={tag:"post",data:G(o)};var ue,he=[];if(o.composite){var fe=o.cidToGidMap||[],de=0===fe.length;o.cMap.forEach(function(e,t){if(t>65535)throw new f.FormatError("Max size of CID is 65,535");var r=-1;de?r=t:void 0!==fe[t]&&(r=fe[t]),r>=0&&r<$&&M(r)&&(he[e]=r)})}else{var ge=b(X.cmap,a,this.isSymbolicFont,o.hasEncoding),pe=ge.platformId,me=ge.encodingId,ve=ge.mappings,be=ve.length;if(o.hasEncoding&&(3===pe&&1===me||1===pe&&0===me)||pe===-1&&me===-1&&(0,p.getEncoding)(o.baseEncodingName)){var ye=[];"MacRomanEncoding"!==o.baseEncodingName&&"WinAnsiEncoding"!==o.baseEncodingName||(ye=(0,p.getEncoding)(o.baseEncodingName));var we=(0,g.getGlyphsUnicode)();for(ue=0;ue<256;ue++){var ke,Se;if(ke=this.differences&&ue in this.differences?this.differences[ue]:ue in ye&&""!==ye[ue]?ye[ue]:p.StandardEncoding[ue]){Se=u(ke,we);var xe;3===pe&&1===me?xe=we[Se]:1===pe&&0===me&&(xe=p.MacRomanEncoding.indexOf(Se));for(var Ce=!1,Ae=0;Ae0&&M(Oe)&&(he[ue]=Oe)}}}}else if(0===pe&&0===me)for(var Pe=0;Pe=61440&&ue<=61695&&(ue&=255),he[ue]=ve[Ie].glyphId}0===he.length&&(he[0]=0);var Te=ee-1;te||(Te=0);var Ee=U(he,M,Te);if(this.toFontChar=Ee.toFontChar,X.cmap={tag:"cmap",data:q(Ee.charCodeToGlyphId,ee)},X["OS/2"]&&z(X["OS/2"])||(X["OS/2"]={tag:"OS/2",data:H(o,Ee.charCodeToGlyphId,le)}),!J)try{Y=new k.Stream(X["CFF "].data);var Fe=new d.CFFParser(Y,o,A);K=Fe.parse(),K.duplicateFirstGlyph();var Be=new d.CFFCompiler(K);X["CFF "].data=Be.compile()}catch(_e){(0,f.warn)("Failed to compile font "+o.loadedName)}if(X.name){var Re=T(X.name);X.name.data=W(e,Re)}else X.name={tag:"name",data:W(this.name)};var Le=new F(j.version);for(var Me in X)Le.addTable(Me,X[Me].data);return Le.toArray()},convert:function(e,t,r){function a(e,t){var r=null;for(var a in e)t===e[a]&&(r||(r=[]),r.push(0|a));return r}function n(e,t){for(var r in e)if(t===e[r])return 0|r;return l.charCodeToGlyphId[l.nextAvailableFontCharCode]=t,l.nextAvailableFontCharCode++}r.fixedPitch=!1,r.builtInEncoding&&c(r,r.builtInEncoding);var i=1;t instanceof L&&(i=t.numGlyphs-1);var s=t.getGlyphMapping(r),l=U(s,t.hasGlyphId.bind(t),i);this.toFontChar=l.toFontChar;var u=t.numGlyphs,d=t.seacs;if(A&&d&&d.length){var g=r.fontMatrix||f.FONT_IDENTITY_MATRIX,m=t.getCharset(),v=Object.create(null);for(var b in d){b|=0;var y=d[b],w=p.StandardEncoding[y[2]],k=p.StandardEncoding[y[3]],S=m.indexOf(w),x=m.indexOf(k);if(!(S<0||x<0)){var C={x:y[0]*g[0]+y[1]*g[2]+g[4],y:y[0]*g[1]+y[1]*g[3]+g[5]},O=a(s,b);if(O)for(var P=0,I=O.length;P=i){for(s+=a;s=0&&(i[o]=t)}return h(e,i,a)},hasGlyphId:function(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;var t=this.charstrings[e-1];return t.charstring.length>0},getSeacs:function(e){var t,r,a=[];for(t=0,r=e.length;t0;w--)y[w]-=y[w-1];m.setByName(b,y)}}i.topDict.privateDict=m;var k=new d.CFFIndex;for(c=0,l=a.length;c=t)throw new a.FormatError("Invalid CFF header");0!==r&&((0,a.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var n=e[0],i=e[1],o=e[2],s=e[3],c=new h(n,i,o,s);return{obj:c,endPos:o}},parseDict:function(e){function t(){var t=e[n++];return 30===t?r():28===t?(t=e[n++],t=(t<<24|e[n++]<<16)>>16):29===t?(t=e[n++],t=t<<8|e[n++],t=t<<8|e[n++],t=t<<8|e[n++]):t>=32&&t<=246?t-139:t>=247&&t<=250?256*(t-247)+e[n++]+108:t>=251&&t<=254?-(256*(t-251))-e[n++]-108:((0,a.warn)('CFFParser_parseDict: "'+t+'" is a reserved command.'),NaN)}function r(){for(var t="",r=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;n>4,c=15&o;if(s===r)break;if(t+=a[s],c===r)break;t+=a[c]}return parseFloat(t)}var n=0,i=[],o=[];n=0;for(var s=e.length;no)return!1;for(var c=e.stackSize,l=e.stack,u=n.length,h=0;h>16,h+=2,c++;else if(14===f){if(c>=4&&(c-=4,this.seacAnalysisEnabled))return e.seac=l.slice(c,c+4),!1;d=t[f]}else if(f>=32&&f<=246)l[c]=f-139,c++;else if(f>=247&&f<=254)l[c]=f<251?(f-247<<8)+n[h]+108:-(f-251<<8)-n[h]-108,h++,c++;else if(255===f)l[c]=(n[h]<<24|n[h+1]<<16|n[h+2]<<8|n[h+3])/65536,h+=4,c++;else if(19===f||20===f)e.hints+=c>>1,h+=e.hints+7>>3,c%=2,d=t[f];else{if(10===f||29===f){var p;if(p=10===f?i:s,!p)return d=t[f],(0,a.warn)("Missing subrsIndex for "+d.id),!1;var m=32768;p.count<1240?m=107:p.count<33900&&(m=1131);var v=l[--c]+m;if(v<0||v>=p.count||isNaN(v))return d=t[f],(0,a.warn)("Out of bounds subrIndex for "+d.id),!1;e.stackSize=c,e.callDepth++;var b=this.parseCharString(e,p.get(v),i,s);if(!b)return!1;e.callDepth--,c=e.stackSize;continue}if(11===f)return e.stackSize=c,!0;d=t[f]}if(d){if(d.stem&&(e.hints+=c>>1,3===f||23===f?e.hasVStems=!0:!e.hasVStems||1!==f&&18!==f||((0,a.warn)("CFF stem hints are in wrong order"),n[h-1]=1===f?3:23)),"min"in d&&!e.undefStack&&c=2&&d.stem?c%=2:c>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),c>0&&l[c-1]>=0&&(e.width=l[c-1])),"stackDelta"in d?("stackFn"in d&&d.stackFn(l,c),c+=d.stackDelta):d.stackClearing?c=0:d.resetStack?(c=0,e.undefStack=!1):d.undefStack&&(c=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=c,!0},parseCharStrings:function(e){for(var t=e.charStrings,r=e.localSubrIndex,n=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,c=[],l=[],u=t.count,h=0;h=o.length&&((0,a.warn)("Invalid fd index for glyph index."),g=!1),g&&(m=o[v].privateDict,p=m.subrsIndex)}else r&&(p=r);if(g&&(g=this.parseCharString(d,f,p,n)),null!==d.width){var b=m.getByName("nominalWidthX");l[h]=b+d.width}else{var y=m.getByName("defaultWidthX");l[h]=y}null!==d.seac&&(c[h]=d.seac),g||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:l}},emptyPrivateDictionary:function(e){var t=this.createDict(m,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(!e.hasName("Private"))return void this.emptyPrivateDictionary(e);var t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length)return void e.removeByName("Private");var r=t[0],a=t[1];if(0===r||a>=this.bytes.length)return void this.emptyPrivateDictionary(e);var n=a+r,i=this.bytes.subarray(a,n),o=this.parseDict(i),s=this.createDict(m,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var c=s.getByName("Subrs"),l=a+c;if(0===c||l>=this.bytes.length)return void this.emptyPrivateDictionary(e);var u=this.parseIndex(l);s.subrsIndex=u.obj}},parseCharsets:function(e,t,r,i){if(0===e)return new b((!0),v.ISO_ADOBE,n.ISOAdobeCharset);if(1===e)return new b((!0),v.EXPERT,n.ExpertCharset);if(2===e)return new b((!0),v.EXPERT_SUBSET,n.ExpertSubsetCharset);var o,s,c,l=this.bytes,u=e,h=l[e++],f=[".notdef"];switch(t-=1,h){case 0:for(c=0;c=65535)return void(0,a.warn)("Not enough space in charstrings to duplicate first glyph.");var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])},hasGlyphId:function(e){if(e<0||e>=this.charStrings.count)return!1;var t=this.charStrings.get(e);return t.length>0}},e}();t.CFF=u;var h=function(){function e(e,t,r,a){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=a}return e}();t.CFFHeader=h;var f=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=c-1?s[e]:e-c<=this.strings.length?this.strings[e-c]:s[0]},getSID:function(e){var t=s.indexOf(e);return t!==-1?t:(t=this.strings.indexOf(e),t!==-1?t+c:-1)},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=f;var d=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=d;var g=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var n=0;n=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=w;var k=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of ".concat(e));for(var n=r.data,i=this.offsets[e],o=5,s=0,c=t.length;s>24&255,n[h]=g>>16&255,n[f]=g>>8&255,n[d]=255&g}}},e}(),S=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var n=this.compileNameIndex(e.names);if(t.add(n),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o=-107&&e<=107?t=[e+139]:e>=108&&e<=1131?(e-=108,t=[(e>>8)+247,255&e]):e>=-1131&&e<=-108?(e=-e-108,t=[(e>>8)+251,255&e]):t=e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new d,r=0,n=e.length;r"~"||"["===l||"]"===l||"("===l||")"===l||"{"===l||"}"===l||"<"===l||">"===l||"/"===l||"%"===l)&&(l="_"),s[c]=l}s=s.join(""),""===s&&(s="Bad_Font_Name"),t.add((0,a.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var a=[],n=new d,i=0,o=e.length;i>8&255,255&o]);else{var s=1+2*o;i=new Uint8Array(s),i[0]=0;for(var c=0,l=e.charset.length,u=!1,h=1;h>8&255,i[h+1]=255&f}}return this.compileTypedArray(i)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,r,a=e.format;switch(a){case 0:for(t=new Uint8Array(1+e.fdSelect.length),t[0]=a,r=0;r>8&255,255&n,i];for(r=1;r>8&255,255&r,s),i=s)}var c=(o.length-3)/3;o[1]=c>>8&255,o[2]=255&c,o.push(r>>8&255,255&r),t=new Uint8Array(o)}return this.compileTypedArray(t)},compileTypedArray:function(e){for(var t=[],r=0,a=e.length;r>8&255,255&a],o=1;for(n=0;n>8&255,255&c):3===s?i.push(c>>16&255,c>>8&255,255&c):i.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[n]&&(c+=r[n].length);for(n=0;n=65520&&e<=65535?0:e>=62976&&e<=63743?l()[e]||e:173===e?45:e}function n(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var a,n=e.length;if(7===n&&"n"===e[1]&&"i"===e[2])a=e.substring(3);else{if(!(n>=5&&n<=7))return-1;a=e.substring(1)}if(a===a.toUpperCase()&&(r=parseInt(a,16),r>=0))return r}return-1}function i(e){for(var t=0,r=u.length;t=a.begin&&e=t.begin&&e=t.begin&&e=0;a--)r+=e[a];return r}var c=r(186).getLookupTableFactory,l=c(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}),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}],h=c(function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["IJ"]="IJ",e["ij"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ʼn"]="ʼn",e["ſ"]="s",e["DŽ"]="DŽ",e["Dž"]="Dž",e["dž"]="dž",e["LJ"]="LJ",e["Lj"]="Lj",e["lj"]="lj",e["NJ"]="NJ",e["Nj"]="Nj",e["nj"]="nj",e["DZ"]="DZ",e["Dz"]="Dz",e["dz"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ff"]="ff",e["fi"]="fi",e["fl"]="fl",e["ffi"]="ffi",e["ffl"]="ffl",e["ſt"]="ſt",e["st"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې",e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"});t.mapSpecialUnicodeValues=a,t.reverseIfRtl=s,t.getUnicodeRangeFor=i,t.getNormalizedUnicodes=h,t.getUnicodeForGlyph=n},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r>1;for(o=a+c+14,i=[],s=0;s>1;r>16,l=0,h=0;if(s+=10,c<0){do{o=e[s]<<8|e[s+1];var f=e[s+2]<<8|e[s+3];s+=4;var d,g;1&o?(d=(e[s]<<24|e[s+1]<<16)>>16,g=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(d=e[s++],g=e[s++]),2&o?(l=d,h=g):(l=0,h=0);var p=1,m=1,v=0,b=0;8&o?(p=m=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(p=(e[s]<<24|e[s+1]<<16)/1073741824,m=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(p=(e[s]<<24|e[s+1]<<16)/1073741824,v=(e[s+2]<<24|e[s+3]<<16)/1073741824,b=(e[s+4]<<24|e[s+5]<<16)/1073741824,m=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var y=r.glyphs[f];y&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[p,v,b,m,l,h]}),u(y,t,r),t.push({cmd:"restore"}))}while(32&o)}else{var w,k,S=[];for(w=0;w0;)A.push({flags:o})}for(w=0;w>16,s+=2;break;case 2:l-=e[s++];break;case 18:l+=e[s++]}A[w].x=l}for(w=0;w>16,s+=2;break;case 4:h-=e[s++];break;case 36:h+=e[s++]}A[w].y=h}var P=0;for(s=0;s>1,O=!0;break;case 3:d+=l.length>>1,O=!0;break;case 4:h+=l.pop(),n(u,h),O=!0;break;case 5:for(;l.length>0;)u+=l.shift(),h+=l.shift(),i(u,h);break;case 6:for(;l.length>0&&(u+=l.shift(),i(u,h),0!==l.length);)h+=l.shift(),i(u,h);break;case 7:for(;l.length>0&&(h+=l.shift(),i(u,h),0!==l.length);)u+=l.shift(),i(u,h);break;case 8:for(;l.length>0;)m=u+l.shift(),y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w+l.shift(),o(m,y,b,w,u,h);break;case 10:if(C=l.pop(),A=null,r.isCFFCIDFont){var I=r.fdSelect.getFDIndex(a);if(I>=0&&IMath.abs(h-_)?u+=l.shift():h+=l.shift(),o(m,y,b,w,u,h);break;default:throw new f.FormatError("unknown operator: 12 ".concat(P))}break;case 14:if(l.length>=4){var R=l.pop(),L=l.pop();h=l.pop(),u=l.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[u,h]});var M=c(r.cmap,String.fromCharCode(r.glyphNameMap[p.StandardEncoding[R]]));v(r.glyphs[M.glyphId],t,r,M.glyphId),t.push({cmd:"restore"}),M=c(r.cmap,String.fromCharCode(r.glyphNameMap[p.StandardEncoding[L]])),v(r.glyphs[M.glyphId],t,r,M.glyphId)}return;case 18:d+=l.length>>1,O=!0;break;case 19:d+=l.length>>1,g+=d+7>>3,O=!0;break;case 20:d+=l.length>>1,g+=d+7>>3,O=!0;break;case 21:h+=l.pop(),u+=l.pop(),n(u,h),O=!0;break;case 22:u+=l.pop(),n(u,h),O=!0;break;case 23:d+=l.length>>1,O=!0;break;case 24:for(;l.length>2;)m=u+l.shift(),y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w+l.shift(),o(m,y,b,w,u,h);u+=l.shift(),h+=l.shift(),i(u,h);break;case 25:for(;l.length>6;)u+=l.shift(),h+=l.shift(),i(u,h);m=u+l.shift(),y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w+l.shift(),o(m,y,b,w,u,h);break;case 26:for(l.length%2&&(u+=l.shift());l.length>0;)m=u,y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b,h=w+l.shift(),o(m,y,b,w,u,h);break;case 27:for(l.length%2&&(h+=l.shift());l.length>0;)m=u+l.shift(),y=h,b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w,o(m,y,b,w,u,h);break;case 28:l.push((e[g]<<24|e[g+1]<<16)>>16),g+=2;break;case 29:C=l.pop()+r.gsubrsBias,A=r.gsubrs[C],A&&s(A);break;case 30:for(;l.length>0&&(m=u,y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w+(1===l.length?l.shift():0),o(m,y,b,w,u,h),0!==l.length);)m=u+l.shift(),y=h,b=m+l.shift(),w=y+l.shift(),h=w+l.shift(),u=b+(1===l.length?l.shift():0),o(m,y,b,w,u,h);break;case 31:for(;l.length>0&&(m=u+l.shift(),y=h,b=m+l.shift(),w=y+l.shift(),h=w+l.shift(),u=b+(1===l.length?l.shift():0),o(m,y,b,w,u,h),0!==l.length);)m=u,y=h+l.shift(),b=m+l.shift(),w=y+l.shift(),u=b+l.shift(),h=w+(1===l.length?l.shift():0),o(m,y,b,w,u,h);break;default:if(P<32)throw new f.FormatError("unknown operator: ".concat(P));P<247?l.push(P-139):P<251?l.push(256*(P-247)+e[g++]+108):P<255?l.push(256*-(P-251)-e[g++]-108):(l.push((e[g]<<24|e[g+1]<<16|e[g+2]<<8|e[g+3])/65536),g+=4)}O&&(l.length=0)}}var l=[],u=0,h=0,d=0;s(e)}var b=[],y=function(){function e(t){l(this,e),this.constructor===e&&(0,f.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return h(e,[{key:"getPathJs",value:function(e){var t=c(this.cmap,e),r=this.compiledGlyphs[t.glyphId];return r||(r=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=r),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),r}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return b;var r=this.fontMatrix;if(this.isCFFCIDFont){var a=this.fdSelect.getFDIndex(t);if(a>=0&&aa)return!0;for(var n=a-e,i=n;i>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),r?this.stack.splice(n,e):this.stack.length=0,!1}},e}(),c=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,r){if(r>=e.length)return new Uint8Array(0);var a,n,i=0|t,o=52845,s=22719;for(a=0;a>8,i=(u+i)*o+s&65535}return l}function r(t,r,a){var n,i,o=0|r,s=52845,c=22719,l=t.length,u=l>>>1,h=new Uint8Array(u);for(n=0,i=0;n>8,o=(g+o)*s+c&65535}}}return Array.prototype.slice.call(h,a,i)}function c(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function l(a,n,o){if(n){var s=a.getBytes(),c=!(e(s[0])&&e(s[1])&&e(s[2])&&e(s[3]));a=new i.Stream(c?t(s,u,4):r(s,u,4))}this.seacAnalysisEnabled=!!o,this.stream=a,this.nextChar()}var u=55665,h=4330;return l.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){var e=this.getToken();return"true"===e?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(t===-1)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isSpace)(t))break;t=this.nextChar()}if(c(t))return this.nextChar(),String.fromCharCode(t);var r="";do r+=String.fromCharCode(t),t=this.nextChar();while(t>=0&&!(0,a.isSpace)(t)&&!c(t));return r},readCharStrings:function(e,r){return r===-1?e:t(e,h,r)},extractFontProgram:function(e){var t=this.stream,r=[],a=[],n=Object.create(null);n.lenIV=4;for(var i,c,l,u,h,f={subrs:[],charstrings:[],properties:{privateData:n}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();;){if(i=this.getToken(),null===i||"end"===i)break;if("/"===i){var d=this.getToken();c=this.readInt(),this.getToken(),l=c>0?t.getBytes(c):new Uint8Array(0),u=f.properties.privateData.lenIV,h=this.readCharStrings(l,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),a.push({glyph:d,encoded:h})}}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var g=this.readInt();c=this.readInt(),this.getToken(),l=c>0?t.getBytes(c):new Uint8Array(0),u=f.properties.privateData.lenIV,h=this.readCharStrings(l,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),r[g]=h}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var p=this.readNumberArray();p.length>0&&p.length%2===0&&o&&(f.properties.privateData[i]=p);break;case"StemSnapH":case"StemSnapV":f.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":f.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":f.properties.privateData[i]=this.readNumber();break;case"ForceBold":f.properties.privateData[i]=this.readBoolean()}for(var m=0;m-1&&void 0===e.widths[w]&&w>=e.firstChar&&w<=e.lastChar&&(e.widths[w]=v.width)}}return f},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a,i=this.getToken();if(/^\d+$/.test(i)){a=[];var o=0|parseInt(i,10);this.getToken();for(var s=0;s=f||P<=0)return void(0,n.info)("Bad shading domain.");for(var T,E=new Float32Array(s.numComps),F=new Float32Array(1),B=0;B<=O;B++){F[0]=h+B*P,A(F,0,E,0),T=s.getRgb(E,0);var _=n.Util.makeCssRgb(T[0],T[1],T[2]);I.push([B/O,_])}var R="transparent";e.has("Background")&&(T=s.getRgb(e.get("Background"),0),R=n.Util.makeCssRgb(T[0],T[1],T[2])),g||(I.unshift([0,R]),I[1][0]+=u.SMALL_NUMBER),p||(I[I.length-1][0]-=u.SMALL_NUMBER,I.push([1,R])),this.colorStops=I}return e.prototype={getIR:function(){var e,t,r,a,i,o=this.coordsArr,s=this.shadingType;s===c.AXIAL?(t=[o[0],o[1]],r=[o[2],o[3]],a=null,i=null,e="axial"):s===c.RADIAL?(t=[o[0],o[1]],r=[o[3],o[4]],a=o[2],i=o[5],e="radial"):(0,n.unreachable)("getPattern type unknown: ".concat(s));var l=this.matrix;if(l&&(t=n.Util.applyTransform(t,l),r=n.Util.applyTransform(r,l),s===c.RADIAL)){var u=n.Util.singularValueDecompose2dScale(l);a*=u[0],i*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,r,a,i]}},e}(),u.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var a=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(a):this.tmpCompsBuf}function t(e,t){for(var r=e.coords,a=e.colors,i=[],o=[],s=0;t.hasData;){var c=t.readFlag(),l=t.readCoordinate(),u=t.readComponents();if(0===s){if(!(0<=c&&c<=2))throw new n.FormatError("Unknown type4 flag");switch(c){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1}i.push(c)}o.push(r.length),r.push(l),a.push(u),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}function r(e,t,r){for(var a=e.coords,n=e.colors,i=[];t.hasData;){var o=t.readCoordinate(),s=t.readComponents();i.push(a.length),a.push(o),n.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:r})}function a(e,t){var r=e.figures[t];(0,n.assert)("patch"===r.type,"Unexpected patch mesh figure");var a=e.coords,i=e.colors,o=r.coords,s=r.colors,c=Math.min(a[o[0]][0],a[o[3]][0],a[o[12]][0],a[o[15]][0]),l=Math.min(a[o[0]][1],a[o[3]][1],a[o[12]][1],a[o[15]][1]),u=Math.max(a[o[0]][0],a[o[3]][0],a[o[12]][0],a[o[15]][0]),h=Math.max(a[o[0]][1],a[o[3]][1],a[o[12]][1],a[o[15]][1]),f=Math.ceil((u-c)*p/(e.bounds[2]-e.bounds[0]));f=Math.max(d,Math.min(g,f));var v=Math.ceil((h-l)*p/(e.bounds[3]-e.bounds[1]));v=Math.max(d,Math.min(g,v));for(var b=f+1,y=new Int32Array((v+1)*b),w=new Int32Array((v+1)*b),k=0,S=new Uint8Array(3),x=new Uint8Array(3),C=i[s[0]],A=i[s[1]],O=i[s[2]],P=i[s[3]],I=m(v),T=m(f),E=0;E<=v;E++){S[0]=(C[0]*(v-E)+O[0]*E)/v|0,S[1]=(C[1]*(v-E)+O[1]*E)/v|0,S[2]=(C[2]*(v-E)+O[2]*E)/v|0,x[0]=(A[0]*(v-E)+P[0]*E)/v|0,x[1]=(A[1]*(v-E)+P[1]*E)/v|0,x[2]=(A[2]*(v-E)+P[2]*E)/v|0;for(var F=0;F<=f;F++,k++)if(0!==E&&E!==v||0!==F&&F!==f){for(var B=0,_=0,R=0,L=0;L<=3;L++)for(var M=0;M<=3;M++,R++){var D=I[E][L]*T[F][M];B+=a[o[R]][0]*D,_+=a[o[R]][1]*D}y[k]=a.length,a.push([B,_]),w[k]=i.length;var N=new Uint8Array(3);N[0]=(S[0]*(f-F)+x[0]*F)/f|0,N[1]=(S[1]*(f-F)+x[1]*F)/f|0,N[2]=(S[2]*(f-F)+x[2]*F)/f|0,i.push(N)}}y[0]=o[0],w[0]=s[0],y[f]=o[3],w[f]=s[1],y[b*v]=o[12],w[b*v]=s[2],y[b*v+f]=o[15],w[b*v+f]=s[3],e.figures[t]={type:"lattice",coords:y,colors:w,verticesPerRow:b}}function s(e,t){for(var r=e.coords,a=e.colors,i=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s=t.readFlag();if(!(0<=s&&s<=3))throw new n.FormatError("Unknown type6 flag");var c,l,u=r.length;for(c=0,l=0!==s?8:12;cs?s:t,r=r>c?c:r,a=a0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var a=this.stream.getByte();return this.buffer=a&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),a=this.context.decode,n=e<32?1/((1<=0&&"ET"===g[P];--P)g[P]="EN";for(P=m+1;P0&&(T=g[m-1]);var E=C;I+1F&&a(F)&&(_=F);for(F=B;F>=_;--F){var R=-1;for(m=0,v=k.length;m=0&&(s(d,R,m),R=-1):R<0&&(R=m);R>=0&&s(d,R,k.length)}for(m=0,v=d.length;m"!==L||(d[m]="")}return c(d.join(""),l)}Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=l;var u=r(5),h=["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"],f=["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"],d=[],g=[]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var a=r(186),n=(0,a.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556, e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500; }),e.ZapfDingbats=(0,a.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});t.getMetrics=n},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r>c)*u,l&=(1<r?e=r:e0&&(d=a[h-1]);var g=r[1];h>1,c=a.length>>1,u=new m(i),h=Object.create(null),d=8192,g=d,p=new Float32Array(c);return function(e,t,r,a){var i,o,l="",f=p;for(i=0;iy&&(o=y)),m[i]=o}g>0&&(g--,h[l]=m),r.set(m,a)}}}}(),p=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}var t=100;return e.prototype={push:function(e){if(this.stack.length>=t)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=t)throw new Error("PostScript function stack overflow.");for(var r=this.stack,a=r.length-e,n=e-1;n>=0;n--,a++)r.push(r[a])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,a,n,i=this.stack,o=i.length-e,s=i.length-1,c=o+(t-Math.floor(t/e)*e);for(r=o,a=s;r0?n.push(r<>a);break;case"ceiling":r=n.pop(),n.push(Math.ceil(r));break;case"copy":r=n.pop(),n.copy(r);break;case"cos":r=n.pop(),n.push(Math.cos(r));break;case"cvi":r=0|n.pop(),n.push(r);break;case"cvr":break;case"div":a=n.pop(),r=n.pop(),n.push(r/a);break;case"dup":n.copy(1);break;case"eq":a=n.pop(),r=n.pop(),n.push(r===a);break;case"exch":n.roll(2,1);break;case"exp":a=n.pop(),r=n.pop(),n.push(Math.pow(r,a));break;case"false":n.push(!1);break;case"floor":r=n.pop(),n.push(Math.floor(r));break;case"ge":a=n.pop(),r=n.pop(),n.push(r>=a);break;case"gt":a=n.pop(),r=n.pop(),n.push(r>a);break;case"idiv":a=n.pop(),r=n.pop(),n.push(r/a|0);break;case"index":r=n.pop(),n.index(r);break;case"le":a=n.pop(),r=n.pop(),n.push(r<=a);break;case"ln":r=n.pop(),n.push(Math.log(r));break;case"log":r=n.pop(),n.push(Math.log(r)/Math.LN10);break;case"lt":a=n.pop(),r=n.pop(),n.push(r=t?new r(t):e.max<=t?e:new n(e,t)}function d(){}return e.prototype.visit=function(e){(0,l.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitLiteral(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitBinaryOperation(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitMin(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitVariable(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariableDefinition(this)},s.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},d.prototype={compile:function(e,a,n){var l,d,g,p,m,v,b,y,w,k,S=[],x=[],C=a.length>>1,A=n.length>>1,O=0;for(l=0;le.min&&(o.unshift("Math.max(",a,", "),o.push(")")),i=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var a=r.join("");switch(a.toLowerCase()){case"if":return u.IF;case"ifelse":return u.IFELSE;default:return u.getOperator(a)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new o.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}();t.PostScriptLexer=h},function(e,t,r){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r>>8,t[r++]=255&i)}}else{if(!(0,o.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e,r=t.byteLength}for(var s=r>>2,u=r-4*s,h=new Uint32Array(t.buffer,0,s),f=0,d=0,g=this.h1,p=this.h2,m=3432918353,v=461845907,b=m&l,y=v&l,w=0;w>>17,f=f*v&c|f*y&l,g^=f,g=g<<13|g>>>19,g=5*g+3864292196):(d=h[w],d=d*m&c|d*b&l,d=d<<15|d>>>17,d=d*v&c|d*y&l,p^=d,p=p<<13|p>>>19,p=5*p+3864292196);switch(f=0,u){case 3:f^=t[4*s+2]<<16;case 2:f^=t[4*s+1]<<8;case 1:f^=t[4*s],f=f*m&c|f*b&l,f=f<<15|f>>>17,f=f*v&c|f*y&l,1&s?g^=f:p^=f}this.h1=g,this.h2=p}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&c|36045*e&l,t=4283543511*t&c|(2950163797*(t<<16|e>>>16)&c)>>>16,e^=t>>>1,e=444984403*e&c|60499*e&l,t=3301882366*t&c|(3120437893*(t<<16|e>>>16)&c)>>>16,e^=t>>>1;var r=(e>>>0).toString(16),a=(t>>>0).toString(16);return r.padStart(8,"0")+a.padStart(8,"0")}}]),e}();t.MurmurHash3_64=u},function(e,t,r){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;ra?a:e}function r(e,t,r,a,n,i){var o,s,c,l,u=n*i,h=t<=8?new Uint8Array(u):t<=16?new Uint16Array(u):new Uint32Array(u),f=r/n,d=a/i,g=0,p=new Uint16Array(n),m=r;for(o=0;o0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==k||a.height!==S)&&((0,s.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),k=a.width,S=a.height),k<1||S<1)throw new s.FormatError("Invalid image width: ".concat(k," or ")+"height: ".concat(S));this.width=k,this.height=S,this.interpolate=b.get("Interpolate","I")||!1,this.imageMask=b.get("ImageMask","IM")||!1,this.matte=b.get("Matte")||!1;var x=a.bitsPerComponent;if(!x&&(x=b.get("BitsPerComponent","BPC"),!x)){if(!this.imageMask)throw new s.FormatError("Bits per component missing in image: ".concat(this.imageMask));x=1}if(this.bpc=x,!this.imageMask){var C=b.get("ColorSpace","CS");if(!C)switch((0,s.info)("JPX images (which do not require color spaces)"),a.numComps){case 1:C=c.Name.get("DeviceGray");break;case 3:C=c.Name.get("DeviceRGB");break;case 4:C=c.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(a.numComps," ")+"color components not supported.")}var A=o?r:null;this.colorSpace=l.ColorSpace.parse(C,t,A,v),this.numComps=this.colorSpace.numComps}if(this.decode=b.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||m&&!l.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var O=(1<>3)*i,l=a.byteLength,u=c===l;if(!o||s&&!u)if(s)for(t=new Uint8ClampedArray(c),t.set(a),r=l;r>7&1,l[f+1]=a>>6&1,l[f+2]=a>>5&1,l[f+3]=a>>4&1,l[f+4]=a>>3&1,l[f+5]=a>>2&1,l[f+6]=a>>1&1,l[f+7]=1&a,f+=8;if(f>=1}else{var v=0;for(a=0,f=0,r=s;f>b;l[f]=y<0?0:y>h?h:y,a&=(1<p[w+1]){v=255;break}}c[h]=v}}if(c)for(h=0,d=3,f=t*i;h0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,a=this.drawHeight,n={width:r,height:a,kind:0,data:null},i=this.numComps,o=this.width,c=this.height,l=this.bpc,f=o*i*l+7>>3;if(!t){var d;if("DeviceGray"===this.colorSpace.name&&1===l?d=s.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==l||this.needsDecode||(d=s.ImageKind.RGB_24BPP),d&&!this.smask&&!this.mask&&r===o&&a===c){if(n.kind=d,e=this.getImageBytes(c*f),this.image instanceof u.DecodeStream)n.data=e;else{var g=new Uint8ClampedArray(e.length);g.set(e),n.data=g}if(this.needsDecode){(0,s.assert)(d===s.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var p=n.data,m=0,v=p.length;m>3,l=this.getImageBytes(i*c),u=this.getComponents(l);if(1!==o){this.needsDecode&&this.decodeBuffer(u),a=n*i;var h=255/((1<3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!a,this.image.getBytes(e,!0)}},n}();t.PDFImage=d},function(e,t,r){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){if("object"!==a(e))return e;switch(e.name){case"AbortException":return new o.AbortException(e.message);case"MissingPDFException":return new o.MissingPDFException(e.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new o.UnknownErrorException(e.message,e.details);default:return new o.UnknownErrorException(e.message,e.toString())}}function i(e,t,r){var a=this;this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null);var i=this.callbacksCapabilities=Object.create(null),o=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.isReply){var s=t.callbackId;if(!(t.callbackId in i))throw new Error("Cannot resolve callback ".concat(s));var c=i[s];delete i[s],"reason"in t?c.reject(n(t.reason)):c.resolve(t.data)}else{if(!(t.action in o))throw new Error("Unknown action from worker: ".concat(t.action));var l=o[t.action];if(t.callbackId){var u=a.sourceName,h=t.sourceName;new Promise(function(e){e(l(t.data))}).then(function(e){r.postMessage({sourceName:u,targetName:h,isReply:!0,callbackId:t.callbackId,data:e})},function(e){r.postMessage({sourceName:u,targetName:h,isReply:!0,callbackId:t.callbackId,reason:n(e)})})}else t.streamId?a._createStreamSink(t):l(t.data)}},r.addEventListener("message",this._onComObjOnMessage)}Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=i;var o=r(5),s={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};i.prototype={on:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t},send:function(e,t,r){this.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)},sendWithPromise:function(e,t,r){var a=this.callbackId++,n=(0,o.createPromiseCapability)();this.callbacksCapabilities[a]=n;try{this.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},r)}catch(i){n.reject(i)}return n.promise},sendWithStream:function(e,t,r,a){var i=this,c=this.streamId++,l=this.sourceName,u=this.targetName,h=this.comObj;return new o.ReadableStream({start:function(r){var n=(0,o.createPromiseCapability)();return i.streamControllers[c]={controller:r,startCall:n,pullCall:null,cancelCall:null,isClosed:!1},i.postMessage({sourceName:l,targetName:u,action:e,streamId:c,data:t,desiredSize:r.desiredSize},a),n.promise},pull:function(e){var t=(0,o.createPromiseCapability)();return i.streamControllers[c].pullCall=t,h.postMessage({sourceName:l,targetName:u,stream:s.PULL,streamId:c,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,o.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,o.createPromiseCapability)();return i.streamControllers[c].cancelCall=t,i.streamControllers[c].isClosed=!0,h.postMessage({sourceName:l,targetName:u,stream:s.CANCEL,streamId:c,reason:n(e)}),t.promise}},r)},_createStreamSink:function(e){var t=this,r=this.actionHandler[e.action],a=e.streamId,i=e.desiredSize,c=this.sourceName,l=e.sourceName,u=(0,o.createPromiseCapability)(),h=this.comObj,f={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var i=this.desiredSize;this.desiredSize-=r,i>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t.postMessage({sourceName:c,targetName:l,stream:s.ENQUEUE,streamId:a,chunk:e},n)}},close:function(){this.isCancelled||(this.isCancelled=!0,h.postMessage({sourceName:c,targetName:l,stream:s.CLOSE,streamId:a}),delete t.streamSinks[a])},error:function(e){(0,o.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,h.postMessage({sourceName:c,targetName:l,stream:s.ERROR,streamId:a,reason:n(e)}))},sinkCapability:u,onPull:null,onCancel:null,isCancelled:!1,desiredSize:i,ready:null};f.sinkCapability.resolve(),f.ready=f.sinkCapability.promise,this.streamSinks[a]=f,new Promise(function(t){t(r(e.data,f))}).then(function(){h.postMessage({sourceName:c,targetName:l,stream:s.START_COMPLETE,streamId:a,success:!0})},function(e){h.postMessage({sourceName:c,targetName:l,stream:s.START_COMPLETE,streamId:a,reason:n(e)})})},_processStreamMessage:function(e){var t=this,r=this.sourceName,a=e.sourceName,i=e.streamId,c=this.comObj,l=function(){Promise.all([t.streamControllers[i].startCall,t.streamControllers[i].pullCall,t.streamControllers[i].cancelCall].map(function(e){return e&&e.promise["catch"](function(){})})).then(function(){delete t.streamControllers[i]})};switch(e.stream){case s.START_COMPLETE:e.success?this.streamControllers[i].startCall.resolve():this.streamControllers[i].startCall.reject(n(e.reason));break;case s.PULL_COMPLETE:e.success?this.streamControllers[i].pullCall.resolve():this.streamControllers[i].pullCall.reject(n(e.reason));break;case s.PULL:if(!this.streamSinks[i]){c.postMessage({sourceName:r,targetName:a,stream:s.PULL_COMPLETE,streamId:i,success:!0});break}this.streamSinks[i].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[i].sinkCapability.resolve(),this.streamSinks[i].desiredSize=e.desiredSize;var u=this.streamSinks[e.streamId].onPull;new Promise(function(e){e(u&&u())}).then(function(){c.postMessage({sourceName:r,targetName:a,stream:s.PULL_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:r,targetName:a,stream:s.PULL_COMPLETE,streamId:i,reason:n(e)})});break;case s.ENQUEUE:if((0,o.assert)(this.streamControllers[i],"enqueue should have stream controller"),this.streamControllers[i].isClosed)break;this.streamControllers[i].controller.enqueue(e.chunk);break;case s.CLOSE:if((0,o.assert)(this.streamControllers[i],"close should have stream controller"),this.streamControllers[i].isClosed)break;this.streamControllers[i].isClosed=!0,this.streamControllers[i].controller.close(),l();break;case s.ERROR:(0,o.assert)(this.streamControllers[i],"error should have stream controller"),this.streamControllers[i].controller.error(n(e.reason)),l();break;case s.CANCEL_COMPLETE:e.success?this.streamControllers[i].cancelCall.resolve():this.streamControllers[i].cancelCall.reject(n(e.reason)),l();break;case s.CANCEL:if(!this.streamSinks[i])break;var h=this.streamSinks[e.streamId].onCancel;new Promise(function(t){t(h&&h(n(e.reason)))}).then(function(){c.postMessage({sourceName:r,targetName:a,stream:s.CANCEL_COMPLETE,streamId:i,success:!0})},function(e){c.postMessage({sourceName:r,targetName:a,stream:s.CANCEL_COMPLETE,streamId:i,reason:n(e)})}),this.streamSinks[i].sinkCapability.reject(n(e.reason)),this.streamSinks[i].isCancelled=!0,delete this.streamSinks[i];break;default:throw new Error("Unexpected stream case")}},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},function(e,t,r){"use strict";function a(e){return e&&e.__esModule?e:{"default":e}}function n(e,t,r,a,n,i,o){try{var s=e[i](o),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(a,n)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){function o(e){n(c,a,i,o,s,"next",e)}function s(e){n(c,a,i,o,s,"throw",e)}var c=e.apply(t,r);o(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r