!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= 0) { var type = b >> 5; if (type === 7) { // metadata, e.g. comment or usecmap switch (b & 0x1f) { case 0: stream.readstring(); // skipping comment break; case 1: usecmap = stream.readstring(); break; } continue; } var sequence = !!(b & 0x10); var datasize = b & 15; assert(datasize + 1 <= max_num_size); var ucs2datasize = 1; var subitemscount = stream.readnumber(); var i; switch (type) { case 0: // codespacerange stream.readhex(start, datasize); stream.readhexnumber(end, datasize); addhex(end, start, datasize); cmap.addcodespacerange(datasize + 1, hextoint(start, datasize), hextoint(end, datasize)); for (i = 1; i < subitemscount; i++) { inchex(end, datasize); stream.readhexnumber(start, datasize); addhex(start, end, datasize); stream.readhexnumber(end, datasize); addhex(end, start, datasize); cmap.addcodespacerange(datasize + 1, hextoint(start, datasize), hextoint(end, datasize)); } break; case 1: // notdefrange stream.readhex(start, datasize); stream.readhexnumber(end, datasize); addhex(end, start, datasize); code = stream.readnumber(); // undefined range, skipping for (i = 1; i < subitemscount; i++) { inchex(end, datasize); stream.readhexnumber(start, datasize); addhex(start, end, datasize); stream.readhexnumber(end, datasize); addhex(end, start, datasize); code = stream.readnumber(); // nop } break; case 2: // cidchar stream.readhex(char, datasize); code = stream.readnumber(); cmap.mapone(hextoint(char, datasize), code); for (i = 1; i < subitemscount; i++) { inchex(char, datasize); if (!sequence) { stream.readhexnumber(tmp, datasize); addhex(char, tmp, datasize); } code = stream.readsigned() + (code + 1); cmap.mapone(hextoint(char, datasize), code); } break; case 3: // cidrange stream.readhex(start, datasize); stream.readhexnumber(end, datasize); addhex(end, start, datasize); code = stream.readnumber(); cmap.mapcidrange(hextoint(start, datasize), hextoint(end, datasize), code); for (i = 1; i < subitemscount; i++) { inchex(end, datasize); if (!sequence) { stream.readhexnumber(start, datasize); addhex(start, end, datasize); } else { start.set(end); } stream.readhexnumber(end, datasize); addhex(end, start, datasize); code = stream.readnumber(); cmap.mapcidrange(hextoint(start, datasize), hextoint(end, datasize), code); } break; case 4: // bfchar stream.readhex(char, ucs2datasize); stream.readhex(charcode, datasize); cmap.mapone(hextoint(char, ucs2datasize), hextostr(charcode, datasize)); for (i = 1; i < subitemscount; i++) { inchex(char, ucs2datasize); if (!sequence) { stream.readhexnumber(tmp, ucs2datasize); addhex(char, tmp, ucs2datasize); } inchex(charcode, datasize); stream.readhexsigned(tmp, datasize); addhex(charcode, tmp, datasize); cmap.mapone(hextoint(char, ucs2datasize), hextostr(charcode, datasize)); } break; case 5: // bfrange stream.readhex(start, ucs2datasize); stream.readhexnumber(end, ucs2datasize); addhex(end, start, ucs2datasize); stream.readhex(charcode, datasize); cmap.mapbfrange(hextoint(start, ucs2datasize), hextoint(end, ucs2datasize), hextostr(charcode, datasize)); for (i = 1; i < subitemscount; i++) { inchex(end, ucs2datasize); if (!sequence) { stream.readhexnumber(start, ucs2datasize); addhex(start, end, ucs2datasize); } else { start.set(end); } stream.readhexnumber(end, ucs2datasize); addhex(end, start, ucs2datasize); stream.readhex(charcode, datasize); cmap.mapbfrange(hextoint(start, ucs2datasize), hextoint(end, ucs2datasize), hextostr(charcode, datasize)); } break; default: error('unknown type: ' + type); break; } } if (usecmap) { extend(usecmap); } return cmap; } function binarycmapreader() {} binarycmapreader.prototype = { read: processbinarycmap }; return binarycmapreader; })(); var cmapfactory = (function cmapfactoryclosure() { function strtoint(str) { var a = 0; for (var i = 0; i < str.length; i++) { a = (a << 8) | str.charcodeat(i); } return a >>> 0; } function expectstring(obj) { if (!isstring(obj)) { error('malformed cmap: expected string.'); } } function expectint(obj) { if (!isint(obj)) { error('malformed cmap: expected int.'); } } function parsebfchar(cmap, lexer) { while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } if (iscmd(obj, 'endbfchar')) { return; } expectstring(obj); var src = strtoint(obj); obj = lexer.getobj(); // todo are /dstname used? expectstring(obj); var dst = obj; cmap.mapone(src, dst); } } function parsebfrange(cmap, lexer) { while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } if (iscmd(obj, 'endbfrange')) { return; } expectstring(obj); var low = strtoint(obj); obj = lexer.getobj(); expectstring(obj); var high = strtoint(obj); obj = lexer.getobj(); if (isint(obj) || isstring(obj)) { var dstlow = isint(obj) ? string.fromcharcode(obj) : obj; cmap.mapbfrange(low, high, dstlow); } else if (iscmd(obj, '[')) { obj = lexer.getobj(); var array = []; while (!iscmd(obj, ']') && !iseof(obj)) { array.push(obj); obj = lexer.getobj(); } cmap.mapbfrangetoarray(low, high, array); } else { break; } } error('invalid bf range.'); } function parsecidchar(cmap, lexer) { while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } if (iscmd(obj, 'endcidchar')) { return; } expectstring(obj); var src = strtoint(obj); obj = lexer.getobj(); expectint(obj); var dst = obj; cmap.mapone(src, dst); } } function parsecidrange(cmap, lexer) { while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } if (iscmd(obj, 'endcidrange')) { return; } expectstring(obj); var low = strtoint(obj); obj = lexer.getobj(); expectstring(obj); var high = strtoint(obj); obj = lexer.getobj(); expectint(obj); var dstlow = obj; cmap.mapcidrange(low, high, dstlow); } } function parsecodespacerange(cmap, lexer) { while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } if (iscmd(obj, 'endcodespacerange')) { return; } if (!isstring(obj)) { break; } var low = strtoint(obj); obj = lexer.getobj(); if (!isstring(obj)) { break; } var high = strtoint(obj); cmap.addcodespacerange(obj.length, low, high); } error('invalid codespace range.'); } function parsewmode(cmap, lexer) { var obj = lexer.getobj(); if (isint(obj)) { cmap.vertical = !!obj; } } function parsecmapname(cmap, lexer) { var obj = lexer.getobj(); if (isname(obj) && isstring(obj.name)) { cmap.name = obj.name; } } function parsecmap(cmap, lexer, builtincmapparams, usecmap) { var previous; var embededusecmap; objloop: while (true) { var obj = lexer.getobj(); if (iseof(obj)) { break; } else if (isname(obj)) { if (obj.name === 'wmode') { parsewmode(cmap, lexer); } else if (obj.name === 'cmapname') { parsecmapname(cmap, lexer); } previous = obj; } else if (iscmd(obj)) { switch (obj.cmd) { case 'endcmap': break objloop; case 'usecmap': if (isname(previous)) { embededusecmap = previous.name; } break; case 'begincodespacerange': parsecodespacerange(cmap, lexer); break; case 'beginbfchar': parsebfchar(cmap, lexer); break; case 'begincidchar': parsecidchar(cmap, lexer); break; case 'beginbfrange': parsebfrange(cmap, lexer); break; case 'begincidrange': parsecidrange(cmap, lexer); break; } } } if (!usecmap && embededusecmap) { // load the usecmap definition from the file only if there wasn't one // specified. usecmap = embededusecmap; } if (usecmap) { extendcmap(cmap, builtincmapparams, usecmap); } } function extendcmap(cmap, builtincmapparams, usecmap) { cmap.usecmap = createbuiltincmap(usecmap, builtincmapparams); // if there aren't any code space ranges defined clone all the parent ones // into this cmap. if (cmap.numcodespaceranges === 0) { var usecodespaceranges = cmap.usecmap.codespaceranges; for (var i = 0; i < usecodespaceranges.length; i++) { cmap.codespaceranges[i] = usecodespaceranges[i].slice(); } cmap.numcodespaceranges = cmap.usecmap.numcodespaceranges; } // merge the map into the current one, making sure not to override // any previously defined entries. cmap.usecmap.foreach(function(key, value) { if (!cmap.contains(key)) { cmap.mapone(key, cmap.usecmap.lookup(key)); } }); } function parsebinarycmap(name, builtincmapparams) { var url = builtincmapparams.url + name + '.bcmap'; var cmap = new cmap(true); new binarycmapreader().read(url, cmap, function (usecmap) { extendcmap(cmap, builtincmapparams, usecmap); }); return cmap; } function createbuiltincmap(name, builtincmapparams) { if (name === 'identity-h') { return new identitycmap(false, 2); } else if (name === 'identity-v') { return new identitycmap(true, 2); } if (built_in_cmaps.indexof(name) === -1) { error('unknown cmap name: ' + name); } assert(builtincmapparams, 'built-in cmap parameters are not provided'); if (builtincmapparams.packed) { return parsebinarycmap(name, builtincmapparams); } var request = new xmlhttprequest(); var url = builtincmapparams.url + name; request.open('get', url, false); request.send(null); if (!request.responsetext) { error('unable to get cmap at: ' + url); } var cmap = new cmap(true); var lexer = new lexer(new stringstream(request.responsetext)); parsecmap(cmap, lexer, builtincmapparams, null); return cmap; } return { create: function (encoding, builtincmapparams, usecmap) { if (isname(encoding)) { return createbuiltincmap(encoding.name, builtincmapparams); } else if (isstream(encoding)) { var cmap = new cmap(); var lexer = new lexer(encoding); try { parsecmap(cmap, lexer, builtincmapparams, usecmap); } catch (e) { warn('invalid cmap data. ' + e); } if (cmap.isidentitycmap) { return createbuiltincmap(cmap.name, builtincmapparams); } return cmap; } error('encoding required.'); } }; })(); // unicode private use area var private_use_offset_start = 0xe000; var private_use_offset_end = 0xf8ff; var skip_private_use_range_f000_to_f01f = false; // pdf glyph space units are one thousandth of a textspace unit // except for type 3 fonts var pdf_glyph_space_units = 1000; // hinting is currently disabled due to unknown problems on windows // in tracemonkey and various other pdfs with type1 fonts. var hinting_enabled = false; // accented charactars are not displayed properly on windows, using this flag // to control analysis of seac charstrings. var seac_analysis_enabled = false; var fontflags = { fixedpitch: 1, serif: 2, symbolic: 4, script: 8, nonsymbolic: 32, italic: 64, allcap: 65536, smallcap: 131072, forcebold: 262144 }; var encodings = { expertencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclamsmall', 'hungarumlautsmall', '', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior', 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior', '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior', 'circumflexsmall', 'hyphensuperior', 'gravesmall', 'asmall', 'bsmall', 'csmall', 'dsmall', 'esmall', 'fsmall', 'gsmall', 'hsmall', 'ismall', 'jsmall', 'ksmall', 'lsmall', 'msmall', 'nsmall', 'osmall', 'psmall', 'qsmall', 'rsmall', 'ssmall', 'tsmall', 'usmall', 'vsmall', 'wsmall', 'xsmall', 'ysmall', 'zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'tildesmall', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'lslashsmall', '', '', 'scaronsmall', 'zcaronsmall', 'dieresissmall', 'brevesmall', 'caronsmall', '', 'dotaccentsmall', '', '', 'macronsmall', '', '', 'figuredash', 'hypheninferior', '', '', 'ogoneksmall', 'ringsmall', 'cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters', 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior', 'commainferior', 'agravesmall', 'aacutesmall', 'acircumflexsmall', 'atildesmall', 'adieresissmall', 'aringsmall', 'aesmall', 'ccedillasmall', 'egravesmall', 'eacutesmall', 'ecircumflexsmall', 'edieresissmall', 'igravesmall', 'iacutesmall', 'icircumflexsmall', 'idieresissmall', 'ethsmall', 'ntildesmall', 'ogravesmall', 'oacutesmall', 'ocircumflexsmall', 'otildesmall', 'odieresissmall', 'oesmall', 'oslashsmall', 'ugravesmall', 'uacutesmall', 'ucircumflexsmall', 'udieresissmall', 'yacutesmall', 'thornsmall', 'ydieresissmall'], macexpertencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclamsmall', 'hungarumlautsmall', 'centoldstyle', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '', 'questionsmall', '', '', '', '', 'ethsmall', '', '', 'onequarter', 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior', 'circumflexsmall', 'hypheninferior', 'gravesmall', 'asmall', 'bsmall', 'csmall', 'dsmall', 'esmall', 'fsmall', 'gsmall', 'hsmall', 'ismall', 'jsmall', 'ksmall', 'lsmall', 'msmall', 'nsmall', 'osmall', 'psmall', 'qsmall', 'rsmall', 'ssmall', 'tsmall', 'usmall', 'vsmall', 'wsmall', 'xsmall', 'ysmall', 'zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '', 'aacutesmall', 'agravesmall', 'acircumflexsmall', 'adieresissmall', 'atildesmall', 'aringsmall', 'ccedillasmall', 'eacutesmall', 'egravesmall', 'ecircumflexsmall', 'edieresissmall', 'iacutesmall', 'igravesmall', 'icircumflexsmall', 'idieresissmall', 'ntildesmall', 'oacutesmall', 'ogravesmall', 'ocircumflexsmall', 'odieresissmall', 'otildesmall', 'uacutesmall', 'ugravesmall', 'ucircumflexsmall', 'udieresissmall', '', 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior', 'eightinferior', 'seveninferior', 'scaronsmall', '', 'centinferior', 'twoinferior', '', 'dieresissmall', '', 'caronsmall', 'osuperior', 'fiveinferior', '', 'commainferior', 'periodinferior', 'yacutesmall', '', 'dollarinferior', '', 'thornsmall', '', 'nineinferior', 'zeroinferior', 'zcaronsmall', 'aesmall', 'oslashsmall', 'questiondownsmall', 'oneinferior', 'lslashsmall', '', '', '', '', '', '', 'cedillasmall', '', '', '', '', '', 'oesmall', 'figuredash', 'hyphensuperior', '', '', '', '', 'exclamdownsmall', '', 'ydieresissmall', '', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior', 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior', '', '', '', '', '', 'lsuperior', 'ogoneksmall', 'brevesmall', 'macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior', 'periodsuperior', 'dotaccentsmall', 'ringsmall'], macromanencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '', 'adieresis', 'aring', 'ccedilla', 'eacute', 'ntilde', 'odieresis', 'udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis', 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute', 'dieresis', 'notequal', 'ae', 'oslash', 'infinity', 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine', 'omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin', 'approxequal', 'delta', 'guillemotleft', 'guillemotright', 'ellipsis', 'space', 'agrave', 'atilde', 'otilde', 'oe', 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright', 'divide', 'lozenge', 'ydieresis', 'ydieresis', 'fraction', 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand', 'acircumflex', 'ecircumflex', 'aacute', 'edieresis', 'egrave', 'iacute', 'icircumflex', 'idieresis', 'igrave', 'oacute', 'ocircumflex', 'apple', 'ograve', 'uacute', 'ucircumflex', 'ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron'], standardencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown', 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency', 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl', 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla', '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'ae', '', 'ordfeminine', '', '', '', '', 'lslash', 'oslash', 'oe', 'ordmasculine', '', '', '', '', '', 'ae', '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'], winansiencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'bullet', 'euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase', 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'scaron', 'guilsinglleft', 'oe', 'bullet', 'zcaron', 'bullet', 'bullet', 'quoteleft', 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash', 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet', 'zcaron', 'ydieresis', 'space', 'exclamdown', 'cent', 'sterling', 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright', 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered', 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute', 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior', 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters', 'questiondown', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis', 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis', 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve', 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'multiply', 'oslash', 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn', 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis', 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis', 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve', 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash', 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn', 'ydieresis'], symbolsetencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent', 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus', 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'congruent', 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota', 'theta1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho', 'sigma', 'tau', 'upsilon', 'sigma1', 'omega', 'xi', 'psi', 'zeta', 'bracketleft', 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex', 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota', 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho', 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta', 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'euro', 'upsilon1', 'minute', 'lessequal', 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade', 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree', 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional', 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence', 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn', 'aleph', 'ifraktur', 'rfraktur', 'weierstrass', 'circlemultiply', 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset', 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element', 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif', 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot', 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup', 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans', 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp', 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex', 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex', '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt', 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp', 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid', 'bracerightbt'], zapfdingbatsencoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117', 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19', 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7', 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36', 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46', 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56', 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66', 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75', 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97', 'a98', 'a99', 'a100', '', 'a89', 'a90', 'a93', 'a94', 'a91', 'a92', 'a205', 'a85', 'a206', 'a86', 'a87', 'a88', 'a95', 'a96', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112', 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125', 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134', 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143', 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152', 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161', 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169', 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177', 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201', 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187', 'a188', 'a189', 'a190', 'a191'] }; /** * hold a map of decoded fonts and of the standard fourteen type1 * fonts and their acronyms. */ var stdfontmap = { 'arialnarrow': 'helvetica', 'arialnarrow-bold': 'helvetica-bold', 'arialnarrow-bolditalic': 'helvetica-boldoblique', 'arialnarrow-italic': 'helvetica-oblique', 'arialblack': 'helvetica', 'arialblack-bold': 'helvetica-bold', 'arialblack-bolditalic': 'helvetica-boldoblique', 'arialblack-italic': 'helvetica-oblique', 'arial': 'helvetica', 'arial-bold': 'helvetica-bold', 'arial-bolditalic': 'helvetica-boldoblique', 'arial-italic': 'helvetica-oblique', 'arial-bolditalicmt': 'helvetica-boldoblique', 'arial-boldmt': 'helvetica-bold', 'arial-italicmt': 'helvetica-oblique', 'arialmt': 'helvetica', 'courier-bold': 'courier-bold', 'courier-bolditalic': 'courier-boldoblique', 'courier-italic': 'courier-oblique', 'couriernew': 'courier', 'couriernew-bold': 'courier-bold', 'couriernew-bolditalic': 'courier-boldoblique', 'couriernew-italic': 'courier-oblique', 'couriernewps-bolditalicmt': 'courier-boldoblique', 'couriernewps-boldmt': 'courier-bold', 'couriernewps-italicmt': 'courier-oblique', 'couriernewpsmt': 'courier', 'helvetica': 'helvetica', 'helvetica-bold': 'helvetica-bold', 'helvetica-bolditalic': 'helvetica-boldoblique', 'helvetica-boldoblique': 'helvetica-boldoblique', 'helvetica-italic': 'helvetica-oblique', 'helvetica-oblique':'helvetica-oblique', 'symbol-bold': 'symbol', 'symbol-bolditalic': 'symbol', 'symbol-italic': 'symbol', 'timesnewroman': 'times-roman', 'timesnewroman-bold': 'times-bold', 'timesnewroman-bolditalic': 'times-bolditalic', 'timesnewroman-italic': 'times-italic', 'timesnewromanps': 'times-roman', 'timesnewromanps-bold': 'times-bold', 'timesnewromanps-bolditalic': 'times-bolditalic', 'timesnewromanps-bolditalicmt': 'times-bolditalic', 'timesnewromanps-boldmt': 'times-bold', 'timesnewromanps-italic': 'times-italic', 'timesnewromanps-italicmt': 'times-italic', 'timesnewromanpsmt': 'times-roman', 'timesnewromanpsmt-bold': 'times-bold', 'timesnewromanpsmt-bolditalic': 'times-bolditalic', 'timesnewromanpsmt-italic': 'times-italic' }; /** * holds the map of the non-standard fonts that might be included as a standard * fonts without glyph data. */ var nonstdfontmap = { 'centurygothic': 'helvetica', 'centurygothic-bold': 'helvetica-bold', 'centurygothic-bolditalic': 'helvetica-boldoblique', 'centurygothic-italic': 'helvetica-oblique', 'comicsansms': 'comic sans ms', 'comicsansms-bold': 'comic sans ms-bold', 'comicsansms-bolditalic': 'comic sans ms-bolditalic', 'comicsansms-italic': 'comic sans ms-italic', 'lucidaconsole': 'courier', 'lucidaconsole-bold': 'courier-bold', 'lucidaconsole-bolditalic': 'courier-boldoblique', 'lucidaconsole-italic': 'courier-oblique', 'ms-gothic': 'ms gothic', 'ms-gothic-bold': 'ms gothic-bold', 'ms-gothic-bolditalic': 'ms gothic-bolditalic', 'ms-gothic-italic': 'ms gothic-italic', 'ms-mincho': 'ms mincho', 'ms-mincho-bold': 'ms mincho-bold', 'ms-mincho-bolditalic': 'ms mincho-bolditalic', 'ms-mincho-italic': 'ms mincho-italic', 'ms-pgothic': 'ms pgothic', 'ms-pgothic-bold': 'ms pgothic-bold', 'ms-pgothic-bolditalic': 'ms pgothic-bolditalic', 'ms-pgothic-italic': 'ms pgothic-italic', 'ms-pmincho': 'ms pmincho', 'ms-pmincho-bold': 'ms pmincho-bold', 'ms-pmincho-bolditalic': 'ms pmincho-bolditalic', 'ms-pmincho-italic': 'ms pmincho-italic', 'wingdings': 'zapfdingbats' }; var seriffonts = { 'adobe jenson': true, 'adobe text': true, 'albertus': true, 'aldus': true, 'alexandria': true, 'algerian': true, 'american typewriter': true, 'antiqua': true, 'apex': true, 'arno': true, 'aster': true, 'aurora': true, 'baskerville': true, 'bell': true, 'bembo': true, 'bembo schoolbook': true, 'benguiat': true, 'berkeley old style': true, 'bernhard modern': true, 'berthold city': true, 'bodoni': true, 'bauer bodoni': true, 'book antiqua': true, 'bookman': true, 'bordeaux roman': true, 'californian fb': true, 'calisto': true, 'calvert': true, 'capitals': true, 'cambria': true, 'cartier': true, 'caslon': true, 'catull': true, 'centaur': true, 'century old style': true, 'century schoolbook': true, 'chaparral': true, 'charis sil': true, 'cheltenham': true, 'cholla slab': true, 'clarendon': true, 'clearface': true, 'cochin': true, 'colonna': true, 'computer modern': true, 'concrete roman': true, 'constantia': true, 'cooper black': true, 'corona': true, 'ecotype': true, 'egyptienne': true, 'elephant': true, 'excelsior': true, 'fairfield': true, 'ff scala': true, 'folkard': true, 'footlight': true, 'freeserif': true, 'friz quadrata': true, 'garamond': true, 'gentium': true, 'georgia': true, 'gloucester': true, 'goudy old style': true, 'goudy schoolbook': true, 'goudy pro font': true, 'granjon': true, 'guardian egyptian': true, 'heather': true, 'hercules': true, 'high tower text': true, 'hiroshige': true, 'hoefler text': true, 'humana serif': true, 'imprint': true, 'ionic no. 5': true, 'janson': true, 'joanna': true, 'korinna': true, 'lexicon': true, 'liberation serif': true, 'linux libertine': true, 'literaturnaya': true, 'lucida': true, 'lucida bright': true, 'melior': true, 'memphis': true, 'miller': true, 'minion': true, 'modern': true, 'mona lisa': true, 'mrs eaves': true, 'ms serif': true, 'museo slab': true, 'new york': true, 'nimbus roman': true, 'nps rawlinson roadway': true, 'palatino': true, 'perpetua': true, 'plantin': true, 'plantin schoolbook': true, 'playbill': true, 'poor richard': true, 'rawlinson roadway': true, 'renault': true, 'requiem': true, 'rockwell': true, 'roman': true, 'rotis serif': true, 'sabon': true, 'scala': true, 'seagull': true, 'sistina': true, 'souvenir': true, 'stix': true, 'stone informal': true, 'stone serif': true, 'sylfaen': true, 'times': true, 'trajan': true, 'trinit茅': true, 'trump mediaeval': true, 'utopia': true, 'vale type': true, 'bitstream vera': true, 'vera serif': true, 'versailles': true, 'wanted': true, 'weiss': true, 'wide latin': true, 'windsor': true, 'xits': true }; var symbolsfonts = { 'dingbats': true, 'symbol': true, 'zapfdingbats': true }; // glyph map for well-known standard fonts. sometimes ghostscript uses cid fonts // but does not embed the cid to gid mapping. the mapping is incomplete for all // glyphs, but common for some set of the standard fonts. var glyphmapforstandardfonts = { '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38, '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45, '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52, '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894, '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66, '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73, '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80, '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87, '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94, '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101, '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108, '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115, '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122, '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199, '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224, '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233, '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238, '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246, '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224, '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182, '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168, '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804, '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719, '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248, '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776, '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711, '224': 321, '225': 322, '227': 353, '229': 382, '234': 253, '252': 263, '253': 268, '254': 269, '258': 258, '260': 260, '261': 261, '265': 280, '266': 281, '268': 283, '269': 313, '275': 323, '276': 324, '278': 328, '284': 345, '285': 346, '286': 347, '292': 367, '295': 377, '296': 378, '298': 380, '305': 963, '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359, '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524, '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776, '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782, '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769, '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342, '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363, '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824, '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045, '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753, '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849, '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460, '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467, '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474, '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480, '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487, '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494, '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502, '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509, '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516, '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522, '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529, '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549, '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556, '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290, '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296, '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533, '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595, '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606, '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615, '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884, '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887, '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889, '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892, '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588, '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275, '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799, '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377 }; // some characters, e.g. copyrightserif, are mapped to the private use area and // might not be displayed using standard fonts. mapping/hacking well-known chars // to the similar equivalents in the normal characters range. var specialpuasymbols = { '63721': 0x00a9, // copyrightsans (0xf8e9) => copyright '63193': 0x00a9, // copyrightserif (0xf6d9) => copyright '63720': 0x00ae, // registersans (0xf8e8) => registered '63194': 0x00ae, // registerserif (0xf6da) => registered '63722': 0x2122, // trademarksans (0xf8ea) => trademark '63195': 0x2122, // trademarkserif (0xf6db) => trademark '63729': 0x23a7, // bracelefttp (0xf8f1) '63730': 0x23a8, // braceleftmid (0xf8f2) '63731': 0x23a9, // braceleftbt (0xf8f3) '63740': 0x23ab, // bracerighttp (0xf8fc) '63741': 0x23ac, // bracerightmid (0xf8fd) '63742': 0x23ad, // bracerightbt (0xf8fe) '63726': 0x23a1, // bracketlefttp (0xf8ee) '63727': 0x23a2, // bracketleftex (0xf8ef) '63728': 0x23a3, // bracketleftbt (0xf8f0) '63737': 0x23a4, // bracketrighttp (0xf8f9) '63738': 0x23a5, // bracketrightex (0xf8fa) '63739': 0x23a6, // bracketrightbt (0xf8fb) '63723': 0x239b, // parenlefttp (0xf8eb) '63724': 0x239c, // parenleftex (0xf8ec) '63725': 0x239d, // parenleftbt (0xf8ed) '63734': 0x239e, // parenrighttp (0xf8f6) '63735': 0x239f, // parenrightex (0xf8f7) '63736': 0x23a0, // parenrightbt (0xf8f8) }; function mapspecialunicodevalues(code) { if (code >= 0xfff0 && code <= 0xffff) { // specials unicode block. return 0; } else if (code >= 0xf600 && code <= 0xf8ff) { return (specialpuasymbols[code] || code); } return code; } var unicoderanges = [ { 'begin': 0x0000, 'end': 0x007f }, // basic latin { 'begin': 0x0080, 'end': 0x00ff }, // latin-1 supplement { 'begin': 0x0100, 'end': 0x017f }, // latin extended-a { 'begin': 0x0180, 'end': 0x024f }, // latin extended-b { 'begin': 0x0250, 'end': 0x02af }, // ipa extensions { 'begin': 0x02b0, 'end': 0x02ff }, // spacing modifier letters { 'begin': 0x0300, 'end': 0x036f }, // combining diacritical marks { 'begin': 0x0370, 'end': 0x03ff }, // greek and coptic { 'begin': 0x2c80, 'end': 0x2cff }, // coptic { 'begin': 0x0400, 'end': 0x04ff }, // cyrillic { 'begin': 0x0530, 'end': 0x058f }, // armenian { 'begin': 0x0590, 'end': 0x05ff }, // hebrew { 'begin': 0xa500, 'end': 0xa63f }, // vai { 'begin': 0x0600, 'end': 0x06ff }, // arabic { 'begin': 0x07c0, 'end': 0x07ff }, // nko { 'begin': 0x0900, 'end': 0x097f }, // devanagari { 'begin': 0x0980, 'end': 0x09ff }, // bengali { 'begin': 0x0a00, 'end': 0x0a7f }, // gurmukhi { 'begin': 0x0a80, 'end': 0x0aff }, // gujarati { 'begin': 0x0b00, 'end': 0x0b7f }, // oriya { 'begin': 0x0b80, 'end': 0x0bff }, // tamil { 'begin': 0x0c00, 'end': 0x0c7f }, // telugu { 'begin': 0x0c80, 'end': 0x0cff }, // kannada { 'begin': 0x0d00, 'end': 0x0d7f }, // malayalam { 'begin': 0x0e00, 'end': 0x0e7f }, // thai { 'begin': 0x0e80, 'end': 0x0eff }, // lao { 'begin': 0x10a0, 'end': 0x10ff }, // georgian { 'begin': 0x1b00, 'end': 0x1b7f }, // balinese { 'begin': 0x1100, 'end': 0x11ff }, // hangul jamo { 'begin': 0x1e00, 'end': 0x1eff }, // latin extended additional { 'begin': 0x1f00, 'end': 0x1fff }, // greek extended { 'begin': 0x2000, 'end': 0x206f }, // general punctuation { 'begin': 0x2070, 'end': 0x209f }, // superscripts and subscripts { 'begin': 0x20a0, 'end': 0x20cf }, // currency symbol { 'begin': 0x20d0, 'end': 0x20ff }, // combining diacritical marks for symbols { 'begin': 0x2100, 'end': 0x214f }, // letterlike symbols { 'begin': 0x2150, 'end': 0x218f }, // number forms { 'begin': 0x2190, 'end': 0x21ff }, // arrows { 'begin': 0x2200, 'end': 0x22ff }, // mathematical operators { 'begin': 0x2300, 'end': 0x23ff }, // miscellaneous technical { 'begin': 0x2400, 'end': 0x243f }, // control pictures { 'begin': 0x2440, 'end': 0x245f }, // optical character recognition { 'begin': 0x2460, 'end': 0x24ff }, // enclosed alphanumerics { 'begin': 0x2500, 'end': 0x257f }, // box drawing { 'begin': 0x2580, 'end': 0x259f }, // block elements { 'begin': 0x25a0, 'end': 0x25ff }, // geometric shapes { 'begin': 0x2600, 'end': 0x26ff }, // miscellaneous symbols { 'begin': 0x2700, 'end': 0x27bf }, // dingbats { 'begin': 0x3000, 'end': 0x303f }, // cjk symbols and punctuation { 'begin': 0x3040, 'end': 0x309f }, // hiragana { 'begin': 0x30a0, 'end': 0x30ff }, // katakana { 'begin': 0x3100, 'end': 0x312f }, // bopomofo { 'begin': 0x3130, 'end': 0x318f }, // hangul compatibility jamo { 'begin': 0xa840, 'end': 0xa87f }, // phags-pa { 'begin': 0x3200, 'end': 0x32ff }, // enclosed cjk letters and months { 'begin': 0x3300, 'end': 0x33ff }, // cjk compatibility { 'begin': 0xac00, 'end': 0xd7af }, // hangul syllables { 'begin': 0xd800, 'end': 0xdfff }, // non-plane 0 * { 'begin': 0x10900, 'end': 0x1091f }, // phoenicia { 'begin': 0x4e00, 'end': 0x9fff }, // cjk unified ideographs { 'begin': 0xe000, 'end': 0xf8ff }, // private use area (plane 0) { 'begin': 0x31c0, 'end': 0x31ef }, // cjk strokes { 'begin': 0xfb00, 'end': 0xfb4f }, // alphabetic presentation forms { 'begin': 0xfb50, 'end': 0xfdff }, // arabic presentation forms-a { 'begin': 0xfe20, 'end': 0xfe2f }, // combining half marks { 'begin': 0xfe10, 'end': 0xfe1f }, // vertical forms { 'begin': 0xfe50, 'end': 0xfe6f }, // small form variants { 'begin': 0xfe70, 'end': 0xfeff }, // arabic presentation forms-b { 'begin': 0xff00, 'end': 0xffef }, // halfwidth and fullwidth forms { 'begin': 0xfff0, 'end': 0xffff }, // specials { 'begin': 0x0f00, 'end': 0x0fff }, // tibetan { 'begin': 0x0700, 'end': 0x074f }, // syriac { 'begin': 0x0780, 'end': 0x07bf }, // thaana { 'begin': 0x0d80, 'end': 0x0dff }, // sinhala { 'begin': 0x1000, 'end': 0x109f }, // myanmar { 'begin': 0x1200, 'end': 0x137f }, // ethiopic { 'begin': 0x13a0, 'end': 0x13ff }, // cherokee { 'begin': 0x1400, 'end': 0x167f }, // unified canadian aboriginal syllabics { 'begin': 0x1680, 'end': 0x169f }, // ogham { 'begin': 0x16a0, 'end': 0x16ff }, // runic { 'begin': 0x1780, 'end': 0x17ff }, // khmer { 'begin': 0x1800, 'end': 0x18af }, // mongolian { 'begin': 0x2800, 'end': 0x28ff }, // braille patterns { 'begin': 0xa000, 'end': 0xa48f }, // yi syllables { 'begin': 0x1700, 'end': 0x171f }, // tagalog { 'begin': 0x10300, 'end': 0x1032f }, // old italic { 'begin': 0x10330, 'end': 0x1034f }, // gothic { 'begin': 0x10400, 'end': 0x1044f }, // deseret { 'begin': 0x1d000, 'end': 0x1d0ff }, // byzantine musical symbols { 'begin': 0x1d400, 'end': 0x1d7ff }, // mathematical alphanumeric symbols { 'begin': 0xff000, 'end': 0xffffd }, // private use (plane 15) { 'begin': 0xfe00, 'end': 0xfe0f }, // variation selectors { 'begin': 0xe0000, 'end': 0xe007f }, // tags { 'begin': 0x1900, 'end': 0x194f }, // limbu { 'begin': 0x1950, 'end': 0x197f }, // tai le { 'begin': 0x1980, 'end': 0x19df }, // new tai lue { 'begin': 0x1a00, 'end': 0x1a1f }, // buginese { 'begin': 0x2c00, 'end': 0x2c5f }, // glagolitic { 'begin': 0x2d30, 'end': 0x2d7f }, // tifinagh { 'begin': 0x4dc0, 'end': 0x4dff }, // yijing hexagram symbols { 'begin': 0xa800, 'end': 0xa82f }, // syloti nagri { 'begin': 0x10000, 'end': 0x1007f }, // linear b syllabary { 'begin': 0x10140, 'end': 0x1018f }, // ancient greek numbers { 'begin': 0x10380, 'end': 0x1039f }, // ugaritic { 'begin': 0x103a0, 'end': 0x103df }, // old persian { 'begin': 0x10450, 'end': 0x1047f }, // shavian { 'begin': 0x10480, 'end': 0x104af }, // osmanya { 'begin': 0x10800, 'end': 0x1083f }, // cypriot syllabary { 'begin': 0x10a00, 'end': 0x10a5f }, // kharoshthi { 'begin': 0x1d300, 'end': 0x1d35f }, // tai xuan jing symbols { 'begin': 0x12000, 'end': 0x123ff }, // cuneiform { 'begin': 0x1d360, 'end': 0x1d37f }, // counting rod numerals { 'begin': 0x1b80, 'end': 0x1bbf }, // sundanese { 'begin': 0x1c00, 'end': 0x1c4f }, // lepcha { 'begin': 0x1c50, 'end': 0x1c7f }, // ol chiki { 'begin': 0xa880, 'end': 0xa8df }, // saurashtra { 'begin': 0xa900, 'end': 0xa92f }, // kayah li { 'begin': 0xa930, 'end': 0xa95f }, // rejang { 'begin': 0xaa00, 'end': 0xaa5f }, // cham { 'begin': 0x10190, 'end': 0x101cf }, // ancient symbols { 'begin': 0x101d0, 'end': 0x101ff }, // phaistos disc { 'begin': 0x102a0, 'end': 0x102df }, // carian { 'begin': 0x1f030, 'end': 0x1f09f } // domino tiles ]; var macstandardglyphordering = [ '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'adieresis', 'aring', 'ccedilla', 'eacute', 'ntilde', 'odieresis', 'udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis', 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute', 'dieresis', 'notequal', 'ae', 'oslash', 'infinity', 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine', 'omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin', 'approxequal', 'delta', 'guillemotleft', 'guillemotright', 'ellipsis', 'nonbreakingspace', 'agrave', 'atilde', 'otilde', 'oe', 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright', 'divide', 'lozenge', 'ydieresis', 'ydieresis', 'fraction', 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand', 'acircumflex', 'ecircumflex', 'aacute', 'edieresis', 'egrave', 'iacute', 'icircumflex', 'idieresis', 'igrave', 'oacute', 'ocircumflex', 'apple', 'ograve', 'uacute', 'ucircumflex', 'ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'lslash', 'lslash', 'scaron', 'scaron', 'zcaron', 'zcaron', 'brokenbar', 'eth', 'eth', 'yacute', 'yacute', 'thorn', 'thorn', 'minus', 'multiply', 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter', 'threequarters', 'franc', 'gbreve', 'gbreve', 'idotaccent', 'scedilla', 'scedilla', 'cacute', 'cacute', 'ccaron', 'ccaron', 'dcroat']; function getunicoderangefor(value) { for (var i = 0, ii = unicoderanges.length; i < ii; i++) { var range = unicoderanges[i]; if (value >= range.begin && value < range.end) { return i; } } return -1; } function isrtlrangefor(value) { var range = unicoderanges[13]; if (value >= range.begin && value < range.end) { return true; } range = unicoderanges[11]; if (value >= range.begin && value < range.end) { return true; } return false; } // the normalization table is obtained by filtering the unicode characters // database with entries. var normalizedunicodes = { '\u00a8': '\u0020\u0308', '\u00af': '\u0020\u0304', '\u00b4': '\u0020\u0301', '\u00b5': '\u03bc', '\u00b8': '\u0020\u0327', '\u0132': '\u0049\u004a', '\u0133': '\u0069\u006a', '\u013f': '\u004c\u00b7', '\u0140': '\u006c\u00b7', '\u0149': '\u02bc\u006e', '\u017f': '\u0073', '\u01c4': '\u0044\u017d', '\u01c5': '\u0044\u017e', '\u01c6': '\u0064\u017e', '\u01c7': '\u004c\u004a', '\u01c8': '\u004c\u006a', '\u01c9': '\u006c\u006a', '\u01ca': '\u004e\u004a', '\u01cb': '\u004e\u006a', '\u01cc': '\u006e\u006a', '\u01f1': '\u0044\u005a', '\u01f2': '\u0044\u007a', '\u01f3': '\u0064\u007a', '\u02d8': '\u0020\u0306', '\u02d9': '\u0020\u0307', '\u02da': '\u0020\u030a', '\u02db': '\u0020\u0328', '\u02dc': '\u0020\u0303', '\u02dd': '\u0020\u030b', '\u037a': '\u0020\u0345', '\u0384': '\u0020\u0301', '\u03d0': '\u03b2', '\u03d1': '\u03b8', '\u03d2': '\u03a5', '\u03d5': '\u03c6', '\u03d6': '\u03c0', '\u03f0': '\u03ba', '\u03f1': '\u03c1', '\u03f2': '\u03c2', '\u03f4': '\u0398', '\u03f5': '\u03b5', '\u03f9': '\u03a3', '\u0587': '\u0565\u0582', '\u0675': '\u0627\u0674', '\u0676': '\u0648\u0674', '\u0677': '\u06c7\u0674', '\u0678': '\u064a\u0674', '\u0e33': '\u0e4d\u0e32', '\u0eb3': '\u0ecd\u0eb2', '\u0edc': '\u0eab\u0e99', '\u0edd': '\u0eab\u0ea1', '\u0f77': '\u0fb2\u0f81', '\u0f79': '\u0fb3\u0f81', '\u1e9a': '\u0061\u02be', '\u1fbd': '\u0020\u0313', '\u1fbf': '\u0020\u0313', '\u1fc0': '\u0020\u0342', '\u1ffe': '\u0020\u0314', '\u2002': '\u0020', '\u2003': '\u0020', '\u2004': '\u0020', '\u2005': '\u0020', '\u2006': '\u0020', '\u2008': '\u0020', '\u2009': '\u0020', '\u200a': '\u0020', '\u2017': '\u0020\u0333', '\u2024': '\u002e', '\u2025': '\u002e\u002e', '\u2026': '\u002e\u002e\u002e', '\u2033': '\u2032\u2032', '\u2034': '\u2032\u2032\u2032', '\u2036': '\u2035\u2035', '\u2037': '\u2035\u2035\u2035', '\u203c': '\u0021\u0021', '\u203e': '\u0020\u0305', '\u2047': '\u003f\u003f', '\u2048': '\u003f\u0021', '\u2049': '\u0021\u003f', '\u2057': '\u2032\u2032\u2032\u2032', '\u205f': '\u0020', '\u20a8': '\u0052\u0073', '\u2100': '\u0061\u002f\u0063', '\u2101': '\u0061\u002f\u0073', '\u2103': '\u00b0\u0043', '\u2105': '\u0063\u002f\u006f', '\u2106': '\u0063\u002f\u0075', '\u2107': '\u0190', '\u2109': '\u00b0\u0046', '\u2116': '\u004e\u006f', '\u2121': '\u0054\u0045\u004c', '\u2135': '\u05d0', '\u2136': '\u05d1', '\u2137': '\u05d2', '\u2138': '\u05d3', '\u213b': '\u0046\u0041\u0058', '\u2160': '\u0049', '\u2161': '\u0049\u0049', '\u2162': '\u0049\u0049\u0049', '\u2163': '\u0049\u0056', '\u2164': '\u0056', '\u2165': '\u0056\u0049', '\u2166': '\u0056\u0049\u0049', '\u2167': '\u0056\u0049\u0049\u0049', '\u2168': '\u0049\u0058', '\u2169': '\u0058', '\u216a': '\u0058\u0049', '\u216b': '\u0058\u0049\u0049', '\u216c': '\u004c', '\u216d': '\u0043', '\u216e': '\u0044', '\u216f': '\u004d', '\u2170': '\u0069', '\u2171': '\u0069\u0069', '\u2172': '\u0069\u0069\u0069', '\u2173': '\u0069\u0076', '\u2174': '\u0076', '\u2175': '\u0076\u0069', '\u2176': '\u0076\u0069\u0069', '\u2177': '\u0076\u0069\u0069\u0069', '\u2178': '\u0069\u0078', '\u2179': '\u0078', '\u217a': '\u0078\u0069', '\u217b': '\u0078\u0069\u0069', '\u217c': '\u006c', '\u217d': '\u0063', '\u217e': '\u0064', '\u217f': '\u006d', '\u222c': '\u222b\u222b', '\u222d': '\u222b\u222b\u222b', '\u222f': '\u222e\u222e', '\u2230': '\u222e\u222e\u222e', '\u2474': '\u0028\u0031\u0029', '\u2475': '\u0028\u0032\u0029', '\u2476': '\u0028\u0033\u0029', '\u2477': '\u0028\u0034\u0029', '\u2478': '\u0028\u0035\u0029', '\u2479': '\u0028\u0036\u0029', '\u247a': '\u0028\u0037\u0029', '\u247b': '\u0028\u0038\u0029', '\u247c': '\u0028\u0039\u0029', '\u247d': '\u0028\u0031\u0030\u0029', '\u247e': '\u0028\u0031\u0031\u0029', '\u247f': '\u0028\u0031\u0032\u0029', '\u2480': '\u0028\u0031\u0033\u0029', '\u2481': '\u0028\u0031\u0034\u0029', '\u2482': '\u0028\u0031\u0035\u0029', '\u2483': '\u0028\u0031\u0036\u0029', '\u2484': '\u0028\u0031\u0037\u0029', '\u2485': '\u0028\u0031\u0038\u0029', '\u2486': '\u0028\u0031\u0039\u0029', '\u2487': '\u0028\u0032\u0030\u0029', '\u2488': '\u0031\u002e', '\u2489': '\u0032\u002e', '\u248a': '\u0033\u002e', '\u248b': '\u0034\u002e', '\u248c': '\u0035\u002e', '\u248d': '\u0036\u002e', '\u248e': '\u0037\u002e', '\u248f': '\u0038\u002e', '\u2490': '\u0039\u002e', '\u2491': '\u0031\u0030\u002e', '\u2492': '\u0031\u0031\u002e', '\u2493': '\u0031\u0032\u002e', '\u2494': '\u0031\u0033\u002e', '\u2495': '\u0031\u0034\u002e', '\u2496': '\u0031\u0035\u002e', '\u2497': '\u0031\u0036\u002e', '\u2498': '\u0031\u0037\u002e', '\u2499': '\u0031\u0038\u002e', '\u249a': '\u0031\u0039\u002e', '\u249b': '\u0032\u0030\u002e', '\u249c': '\u0028\u0061\u0029', '\u249d': '\u0028\u0062\u0029', '\u249e': '\u0028\u0063\u0029', '\u249f': '\u0028\u0064\u0029', '\u24a0': '\u0028\u0065\u0029', '\u24a1': '\u0028\u0066\u0029', '\u24a2': '\u0028\u0067\u0029', '\u24a3': '\u0028\u0068\u0029', '\u24a4': '\u0028\u0069\u0029', '\u24a5': '\u0028\u006a\u0029', '\u24a6': '\u0028\u006b\u0029', '\u24a7': '\u0028\u006c\u0029', '\u24a8': '\u0028\u006d\u0029', '\u24a9': '\u0028\u006e\u0029', '\u24aa': '\u0028\u006f\u0029', '\u24ab': '\u0028\u0070\u0029', '\u24ac': '\u0028\u0071\u0029', '\u24ad': '\u0028\u0072\u0029', '\u24ae': '\u0028\u0073\u0029', '\u24af': '\u0028\u0074\u0029', '\u24b0': '\u0028\u0075\u0029', '\u24b1': '\u0028\u0076\u0029', '\u24b2': '\u0028\u0077\u0029', '\u24b3': '\u0028\u0078\u0029', '\u24b4': '\u0028\u0079\u0029', '\u24b5': '\u0028\u007a\u0029', '\u2a0c': '\u222b\u222b\u222b\u222b', '\u2a74': '\u003a\u003a\u003d', '\u2a75': '\u003d\u003d', '\u2a76': '\u003d\u003d\u003d', '\u2e9f': '\u6bcd', '\u2ef3': '\u9f9f', '\u2f00': '\u4e00', '\u2f01': '\u4e28', '\u2f02': '\u4e36', '\u2f03': '\u4e3f', '\u2f04': '\u4e59', '\u2f05': '\u4e85', '\u2f06': '\u4e8c', '\u2f07': '\u4ea0', '\u2f08': '\u4eba', '\u2f09': '\u513f', '\u2f0a': '\u5165', '\u2f0b': '\u516b', '\u2f0c': '\u5182', '\u2f0d': '\u5196', '\u2f0e': '\u51ab', '\u2f0f': '\u51e0', '\u2f10': '\u51f5', '\u2f11': '\u5200', '\u2f12': '\u529b', '\u2f13': '\u52f9', '\u2f14': '\u5315', '\u2f15': '\u531a', '\u2f16': '\u5338', '\u2f17': '\u5341', '\u2f18': '\u535c', '\u2f19': '\u5369', '\u2f1a': '\u5382', '\u2f1b': '\u53b6', '\u2f1c': '\u53c8', '\u2f1d': '\u53e3', '\u2f1e': '\u56d7', '\u2f1f': '\u571f', '\u2f20': '\u58eb', '\u2f21': '\u5902', '\u2f22': '\u590a', '\u2f23': '\u5915', '\u2f24': '\u5927', '\u2f25': '\u5973', '\u2f26': '\u5b50', '\u2f27': '\u5b80', '\u2f28': '\u5bf8', '\u2f29': '\u5c0f', '\u2f2a': '\u5c22', '\u2f2b': '\u5c38', '\u2f2c': '\u5c6e', '\u2f2d': '\u5c71', '\u2f2e': '\u5ddb', '\u2f2f': '\u5de5', '\u2f30': '\u5df1', '\u2f31': '\u5dfe', '\u2f32': '\u5e72', '\u2f33': '\u5e7a', '\u2f34': '\u5e7f', '\u2f35': '\u5ef4', '\u2f36': '\u5efe', '\u2f37': '\u5f0b', '\u2f38': '\u5f13', '\u2f39': '\u5f50', '\u2f3a': '\u5f61', '\u2f3b': '\u5f73', '\u2f3c': '\u5fc3', '\u2f3d': '\u6208', '\u2f3e': '\u6236', '\u2f3f': '\u624b', '\u2f40': '\u652f', '\u2f41': '\u6534', '\u2f42': '\u6587', '\u2f43': '\u6597', '\u2f44': '\u65a4', '\u2f45': '\u65b9', '\u2f46': '\u65e0', '\u2f47': '\u65e5', '\u2f48': '\u66f0', '\u2f49': '\u6708', '\u2f4a': '\u6728', '\u2f4b': '\u6b20', '\u2f4c': '\u6b62', '\u2f4d': '\u6b79', '\u2f4e': '\u6bb3', '\u2f4f': '\u6bcb', '\u2f50': '\u6bd4', '\u2f51': '\u6bdb', '\u2f52': '\u6c0f', '\u2f53': '\u6c14', '\u2f54': '\u6c34', '\u2f55': '\u706b', '\u2f56': '\u722a', '\u2f57': '\u7236', '\u2f58': '\u723b', '\u2f59': '\u723f', '\u2f5a': '\u7247', '\u2f5b': '\u7259', '\u2f5c': '\u725b', '\u2f5d': '\u72ac', '\u2f5e': '\u7384', '\u2f5f': '\u7389', '\u2f60': '\u74dc', '\u2f61': '\u74e6', '\u2f62': '\u7518', '\u2f63': '\u751f', '\u2f64': '\u7528', '\u2f65': '\u7530', '\u2f66': '\u758b', '\u2f67': '\u7592', '\u2f68': '\u7676', '\u2f69': '\u767d', '\u2f6a': '\u76ae', '\u2f6b': '\u76bf', '\u2f6c': '\u76ee', '\u2f6d': '\u77db', '\u2f6e': '\u77e2', '\u2f6f': '\u77f3', '\u2f70': '\u793a', '\u2f71': '\u79b8', '\u2f72': '\u79be', '\u2f73': '\u7a74', '\u2f74': '\u7acb', '\u2f75': '\u7af9', '\u2f76': '\u7c73', '\u2f77': '\u7cf8', '\u2f78': '\u7f36', '\u2f79': '\u7f51', '\u2f7a': '\u7f8a', '\u2f7b': '\u7fbd', '\u2f7c': '\u8001', '\u2f7d': '\u800c', '\u2f7e': '\u8012', '\u2f7f': '\u8033', '\u2f80': '\u807f', '\u2f81': '\u8089', '\u2f82': '\u81e3', '\u2f83': '\u81ea', '\u2f84': '\u81f3', '\u2f85': '\u81fc', '\u2f86': '\u820c', '\u2f87': '\u821b', '\u2f88': '\u821f', '\u2f89': '\u826e', '\u2f8a': '\u8272', '\u2f8b': '\u8278', '\u2f8c': '\u864d', '\u2f8d': '\u866b', '\u2f8e': '\u8840', '\u2f8f': '\u884c', '\u2f90': '\u8863', '\u2f91': '\u897e', '\u2f92': '\u898b', '\u2f93': '\u89d2', '\u2f94': '\u8a00', '\u2f95': '\u8c37', '\u2f96': '\u8c46', '\u2f97': '\u8c55', '\u2f98': '\u8c78', '\u2f99': '\u8c9d', '\u2f9a': '\u8d64', '\u2f9b': '\u8d70', '\u2f9c': '\u8db3', '\u2f9d': '\u8eab', '\u2f9e': '\u8eca', '\u2f9f': '\u8f9b', '\u2fa0': '\u8fb0', '\u2fa1': '\u8fb5', '\u2fa2': '\u9091', '\u2fa3': '\u9149', '\u2fa4': '\u91c6', '\u2fa5': '\u91cc', '\u2fa6': '\u91d1', '\u2fa7': '\u9577',