@xysfe/actui 1.6.31 → 1.6.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Pdfjs/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Pdfjs=t():e.Pdfjs=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},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="../es",t(t.s=1991)}({0:function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},1:function(e,t,r){var n=r(27)("wks"),i=r(24),o=r(0).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},10:function(e,t,r){var n=r(0),i=r(2),o=r(17),a=r(5),s=r(7),u=function(e,t,r){var c,l,f,h=e&u.F,d=e&u.G,p=e&u.S,v=e&u.P,y=e&u.B,g=e&u.W,m=d?i:i[t]||(i[t]={}),b=m.prototype,_=d?n:p?n[t]:(n[t]||{}).prototype;d&&(r=t);for(c in r)(l=!h&&_&&void 0!==_[c])&&s(m,c)||(f=l?_[c]:r[c],m[c]=d&&"function"!=typeof _[c]?r[c]:y&&l?o(f,n):g&&_[c]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,e&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},11:function(e,t){e.exports={}},12:function(e,t,r){var n=r(30),i=r(16);e.exports=function(e){return n(i(e))}},13:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},14:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},15:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},16:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},17:function(e,t,r){var n=r(19);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},18:function(e,t){e.exports=!0},19:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(66),i=r.n(n),o=r(218),a=r.n(o),s=r(1992),u=(r.n(s),r(1998));r.n(u);s.GlobalWorkerOptions.workerSrc=window.__global_cdn__+"/js/pdf/pdf.worker.es5.js";var c={INITED:1,DRAWING:2,RENDERING:3,RENDERED:4,DESTROYED:5},l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),this.scale=t.scale,this.viewport=t.viewport,this.container=t.container,this.brandColor=t.brandColor,this.pdfPage=null,this.state=c.INITED,this.canvas=null,this.canvasWrapper=null,this.index=t.index;var r=document.createElement("div");r.className="pdf-act-page",this.pageWidth=Math.floor(this.viewport.width/this.scale),this.pageHeight=Math.floor(this.viewport.height/this.scale),r.style="width:"+this.pageWidth+"px;height:"+this.pageHeight+"px;",this.div=r,this.setLoading(),this.container.appendChild(r)}return e.prototype.setLoading=function(){var e=document.createElement("span");e.className="pdf-act-loading",this.div.appendChild(e)},e.prototype.hideLoading=function(){var e=this.div.firstElementChild;e&&(e.style.visibility="hidden")},e.prototype.draw=function(){if([c.INITED].includes(this.state)){this.state=c.DRAWING;var e=document.createElement("div");this.canvasWrapper=e,e.style.width=this.div.style.width,e.style.height=this.div.style.height,e.className="pdf-act-page-wrapper";var t=document.createElement("canvas");this.canvas=t;var r=t.getContext("2d",{alpha:!1});t.width=this.pageWidth*window.devicePixelRatio,t.height=this.pageHeight*window.devicePixelRatio,t.style.height=this.pageHeight+"px",t.style.width=this.pageWidth+"px",this.renderContext={canvasContext:r,viewport:this.viewport,transform:[window.devicePixelRatio/this.scale,0,0,window.devicePixelRatio/this.scale,0,0]}}},e.prototype.render=function(){var e=this;return this.state!==c.DRAWING?i.a.resolve():(this.state=c.RENDERING,this.renderTask=this.pdfPage.render(this.renderContext),this.renderTask.promise.then(function(){if(e.state===c.DESTROYED)return i.a.reject();e.state=c.RENDERED,e.renderTask=null;var t=document.createElement("img");t.style.width=e.pageWidth+"px",t.style.height=e.pageHeight+"px",t.onload=function(){return e.hideLoading(),e.canvasWrapper.appendChild(t),e.div.appendChild(e.canvasWrapper),i.a.resolve()},t.src=e.canvas.toDataURL("image/png"),e.canvas.width=0,e.canvas.height=0,delete e.canvas}).catch(function(){return i.a.reject()}))},e.prototype.destroy=function(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.pdfPage&&this.pdfPage.cleanup(),this.state=c.DESTROYED},e.prototype.setPdfPage=function(e){this.pdfPage=e},e}(),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),this.url=t.url||"",this.container=t.container||null,this.brandColor=t.brandColor||"#8c7fee",this.pdfLoadingTask=null,this.pdfDocument=null,this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.visibleCount=5,this.endNum=5}return e.prototype.init=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.destroy(),this.url=t.url||this.url,this.container=t.container||this.container,this.brandColor=t.brandColor||this.brandColor,this.pdfLoadingTask=Object(s.getDocument)({url:this.url,cMapPacked:!0,cMapUrl:window.__global_cdn__+"/js/pdf/cmaps/"}),this.pdfLoadingTask.promise.then(function(t){return e.pdfDocument=t,e.numPages=t.numPages,e.initPage()}).catch(function(e){return i.a.reject(e)})},e.prototype.initPage=function(){var e=this;return this.pdfDocument.getPage(1).then(function(t){var r=t.getViewport({scale:1}),n=e.container.offsetWidth,o=r.width/n;e.pageHeight=Math.floor(r.height/o);for(var a=0;a<e.numPages;a++){var s=new l({scale:o,viewport:r,container:e.container,brandColor:e.brandColor});e.pageArr.push(s)}e.pageArr[0]&&e.pageArr[0].setPdfPage(t);for(var u=[],c=2;c<=e.numPages;c++)!function(t){u.push(e.pdfDocument.getPage(t).then(function(r){var n=e.pageArr[t-1];n&&!n.pdfPage&&n.setPdfPage(r)}))}(c);return i.a.all(u).then(function(){return e.render(e.startNum,e.endNum),i.a.resolve({pageHeight:e.pageHeight,render:e.render.bind(e)})})})},e.prototype.render=function(e,t){for(var r=[],n=e;n<=t;n++)if(n>=0&&n<this.numPages){var i=this.pageArr[n];i.draw(),r.push(i)}this._render(r)},e.prototype._render=function(e){var t=this,r=e.shift();r&&r.render().then(function(){t._render(e)}).catch(function(e){console.error(e)})},e.prototype.pageViewDestroy=function(e,t){this.pageArr.forEach(function(r,n){(n<e||n>t)&&r.destroy()})},e.prototype.destroy=function(){if(this.pageViewDestroy(0,this.numPages),this.container)for(;this.container.firstChild;)this.container.firstChild.remove();this.url="",this.container=null,this.pdfLoadingTask&&(this.pdfLoadingTask.destroy(),this.pdfLoadingTask=null),this.pdfDocument&&(this.pdfDocument.destroy(),this.pdfDocument=null),this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.visibleCount=4,this.endNum=4,this.renderCallback=null},e}();t.default=f},1992:function(module,exports,__webpack_require__){(function(Buffer,process,global){!function(e,t){module.exports=t()}(0,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},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 n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(t){return e[t]}.bind(null,i));return n},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";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return n.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return u.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}});var n=r(1),i=r(198),o=r(5),a=r(209),s=r(200),u=r(203),c=r(210),l=r(211);if(r(7).isNodeJS){var f=r(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(e){return new f(e)})}else{var h,d=r(215).PDFNetworkStream;(0,n.isFetchSupported)()&&(h=r(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(e){return h&&(0,n.isValidFetchUrl)(e.url)?new h(e):new d(e)})}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){"@babel/helpers - typeof";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 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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=h();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){p(s,n,i,o,a,"next",e)}function a(e){p(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,i=t.rel,o=t.enabled,a=void 0===o||o;(0,C.assert)(r&&"string"==typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,C.removeNullCharacters)(r);a?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var u="";switch(n){case I.NONE:break;case I.SELF:u="_self";break;case I.BLANK:u="_blank";break;case I.PARENT:u="_parent";break;case I.TOP:u="_top"}e.target=u,e.rel="string"==typeof i?i:P}function _(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}function A(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function w(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(e){return!1}}function S(e){return new Promise(function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)})}function k(e){console.log("Deprecated API usage: "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=b,t.getFilenameFromUrl=_,t.isFetchSupported=A,t.isValidFetchUrl=w,t.loadScript=S,t.deprecated=k,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var x=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),C=r(5),P="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=P;var R="http://www.w3.org/2000/svg",T=function(){function e(){y(this,e)}return m(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=T;var E=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,i=t.isCompressed,o=void 0!==i&&i;y(this,e),this.baseUrl=n,this.isCompressed=o}return m(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=v(x.default.mark(function e(t){var r,n,i,o=this;return x.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?C.CMapCompressionType.BINARY:C.CMapCompressionType.NONE,!A()||!w(n,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(n).then(function(){var e=v(x.default.mark(function e(t){var r;return x.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!o.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=C.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:i});case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 9:return e.abrupt("return",new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n,!0),o.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){var n;if(o.isCompressed&&r.response?n=new Uint8Array(r.response):!o.isCompressed&&r.responseText&&(n=(0,C.stringToBytes)(r.responseText)),n)return void e({cMapData:n,compressionType:i})}t(new Error(r.statusText))}},r.send(null)}).catch(function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 10:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=E;var O=function(){function e(){y(this,e)}return m(e,[{key:"create",value:function(e,t){(0,C.assert)(e>0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(R,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,C.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(R,e)}}]),e}();t.DOMSVGFactory=O;var L=function(){function e(t){var r=t.viewBox,n=t.scale,i=t.rotation,o=t.offsetX,a=void 0===o?0:o,s=t.offsetY,u=void 0===s?0:s,c=t.dontFlip,l=void 0!==c&&c;y(this,e),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=u;var f,h,d,p,v=(r[2]+r[0])/2,g=(r[3]+r[1])/2;switch(i%=360,i=i<0?i+360:i){case 180:f=-1,h=0,d=0,p=1;break;case 90:f=0,h=1,d=1,p=0;break;case 270:f=0,h=-1,d=-1,p=0;break;case 0:f=1,h=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,p=-p);var m,b,_,A;0===f?(m=Math.abs(g-r[1])*n+a,b=Math.abs(v-r[0])*n+u,_=Math.abs(r[3]-r[1])*n,A=Math.abs(r[2]-r[0])*n):(m=Math.abs(v-r[0])*n+a,b=Math.abs(g-r[1])*n+u,_=Math.abs(r[2]-r[0])*n,A=Math.abs(r[3]-r[1])*n),this.transform=[f*n,h*n,d*n,p*n,m-f*n*v-d*n*g,b-h*n*v-p*n*g],this.width=_,this.height=A}return m(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,i=t.rotation,o=void 0===i?this.rotation:i,a=t.offsetX,s=void 0===a?this.offsetX:a,u=t.offsetY,c=void 0===u?this.offsetY:u,l=t.dontFlip,f=void 0!==l&&l;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:o,offsetX:s,offsetY:c,dontFlip:f})}},{key:"convertToViewportPoint",value:function(e,t){return C.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=C.Util.applyTransform([e[0],e[1]],this.transform),r=C.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return C.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=L;var F=function(e){function t(e,n){var i;return y(this,t),i=r.call(this,e),i.type=n,i}s(t,e);var r=c(t);return t}(C.BaseException);t.RenderingCancelledException=F;var I={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=I;var M=function(){function e(){y(this,e),this.started=Object.create(null),this.times=[]}return m(e,[{key:"time",value:function(e){e in this.started&&(0,C.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,C.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,i=n(this.times);try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.name;a.length>r&&(r=a.length)}}catch(e){i.e(e)}finally{i.f()}var s,u=n(this.times);try{for(u.s();!(s=u.n()).done;){var c=s.value,l=c.end-c.start;t.push("".concat(c.name.padEnd(r)," ").concat(l,"ms\n"))}}catch(e){u.e(e)}finally{u.f()}return t.join("")}}]),e}();t.StatTimer=M;var j,D=function(){function e(){y(this,e)}return m(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,C.isString)(e))return null;j||(j=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=j.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var u=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var l=parseInt(t[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===u?(o+=c,a+=l):"+"===u&&(o-=c,a-=l),new Date(Date.UTC(r,n,i,o,a,s))}}]),e}();t.PDFDateString=D},function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){"use strict";(function(e){function t(e){"@babel/helpers - typeof";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,n){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=c(e,r,s),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e,r){function i(o,a,s,u){var c=n(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"===t(f)&&m.call(f,"__await")?r.resolve(f.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):r.resolve(f).then(function(e){l.value=e,s(l)},function(e){return i("throw",e,s,u)})}u(c.arg)}function o(e,t){function n(){return new r(function(r,n){i(e,t,r,n)})}return a=a?a.then(n,n):n()}var a;this._invoke=o}function c(e,t,r){var i=S;return function(o,a){if(i===x)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=l(s,r);if(u){if(u===P)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=x;var c=n(e,t,r);if("normal"===c.type){if(i=r.done?C:k,c.arg===P)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=C,r.method="throw",r.arg=c.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===y){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=y,l(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 i=n(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,P;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,P):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,P)}function f(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 h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function p(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(m.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=y,t.done=!0,t};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",A=b.asyncIterator||"@@asyncIterator",w=b.toStringTag||"@@toStringTag";e.wrap=r;var S="suspendedStart",k="suspendedYield",x="executing",C="completed",P={},R={};R[_]=function(){return this};var T=Object.getPrototypeOf,E=T&&T(T(p([])));E&&E!==g&&m.call(E,_)&&(R=E);var O=a.prototype=i.prototype=Object.create(R);return o.prototype=O.constructor=a,a.constructor=o,a[w]=o.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,w in e||(e[w]="GeneratorFunction")),e.prototype=Object.create(O),e},e.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[A]=function(){return this},e.AsyncIterator=u,e.async=function(t,n,i,o,a){void 0===a&&(a=Promise);var s=new u(r(t,n,i,o),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},s(O),O[w]="Generator",O[_]=function(){return this},O.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=p,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=y)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return o.type="throw",o.arg=e,r.next=t,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),s=m.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,P):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),P},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),h(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 n=r.completion;if("throw"===n.type){var i=n.arg;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:p(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=y),P}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){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 n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function o(e){"@babel/helpers - typeof";return(o="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=h();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){Number.isInteger(e)&&(ue=e)}function v(){return ue}function y(e){ue>=ne.INFOS&&console.log("Info: ".concat(e))}function g(e){ue>=ne.WARNINGS&&console.log("Warning: ".concat(e))}function m(e){throw new Error(e)}function b(e,t){e||m(t)}function _(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}var n=new URL(t,r);return r.origin===n.origin}function A(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(A(r))return r}catch(e){}return null}function S(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function k(e){return"string"!=typeof e?(g("The argument for removeNullCharacters must be a string."),e):e.replace(ge,"")}function x(e){b(null!==e&&"object"===o(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var r=[],n=0;n<t;n+=8192){var i=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function C(e){b("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);return r}function P(e){return void 0!==e.length?e.length:(b(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}function R(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,n=0;n<t;n++)r+=P(e[n]);for(var i=0,o=new Uint8Array(r),a=0;a<t;a++){var s=e[a];s instanceof Uint8Array||(s="string"==typeof s?C(s):new Uint8Array(s));var u=s.byteLength;o.set(s,i),i+=u}return o}function T(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function E(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}function O(){try{return new Function(""),!0}catch(e){return!1}}function L(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var i=2;i<t;i+=2)r.push(String.fromCharCode(e.charCodeAt(i+1)<<8|e.charCodeAt(i)));else for(var o=0;o<t;++o){var a=we[e.charCodeAt(o)];r.push(a?String.fromCharCode(a):e.charAt(o))}return r.join("")}function F(e){return decodeURIComponent(escape(e))}function I(e){return unescape(encodeURIComponent(e))}function M(e){for(var t in e)return!1;return!0}function j(e){return"boolean"==typeof e}function D(e){return"number"==typeof e}function N(e){return"string"==typeof e}function U(e){return"object"===o(e)&&null!==e&&void 0!==e.byteLength}function q(e,t){return e.length===t.length&&e.every(function(e,r){return e===t[r]})}function W(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise(function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=P,t.arraysToBytes=R,t.assert=b,t.bytesToString=x,t.createPromiseCapability=W,t.getVerbosityLevel=v,t.info=y,t.isArrayBuffer=U,t.isArrayEqual=q,t.isBool=j,t.isEmptyObj=M,t.isNum=D,t.isString=N,t.isSameOrigin=_,t.createValidAbsoluteUrl=w,t.removeNullCharacters=k,t.setVerbosityLevel=p,t.shadow=S,t.string32=T,t.stringToBytes=C,t.stringToPDFString=L,t.stringToUTF8String=F,t.utf8StringToString=I,t.warn=g,t.unreachable=m,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(6);var B=[1,0,0,1,0,0];t.IDENTITY_MATRIX=B;var G=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=G;var z={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=z;var H={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=H;var Y={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=Y;var X={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=X;var V={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=V;var K={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=K;var Q={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=Q;var J={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=J;var Z={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=Z;var $={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=$;var ee={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=ee;var te={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=te;var re={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=re;var ne={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=ne;var ie={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=ie;var oe={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=oe;var ae={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};t.UNSUPPORTED_FEATURES=ae;var se={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=se;var ue=ne.WARNINGS,ce=function(){function e(t){this.constructor===e&&m("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=ce;var le=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.code=n,i}s(t,e);var r=c(t);return t}(ce);t.PasswordException=le;var fe=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.details=n,i}s(t,e);var r=c(t);return t}(ce);t.UnknownErrorException=fe;var he=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.InvalidPDFException=he;var de=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.MissingPDFException=de;var pe=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.status=n,i}s(t,e);var r=c(t);return t}(ce);t.UnexpectedResponseException=pe;var ve=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.FormatError=ve;var ye=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.AbortException=ye;var ge=/\x00/g,me={get value(){return S(this,"value",E())}};t.IsLittleEndianCached=me;var be={get value(){return S(this,"value",O())}};t.IsEvalSupportedCached=be;var _e=["rgb(",0,",",0,",",0,")"],Ae=function(){function e(){a(this,e)}return i(e,null,[{key:"makeCssRgb",value:function(e,t,r){return _e[1]=e,_e[3]=t,_e[5]=r,_e.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),o=e.applyTransform([t[0],t[3]],r),a=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],i[0],o[0],a[0]),Math.min(n[1],i[1],o[1],a[1]),Math.max(n[0],i[0],o[0],a[0]),Math.max(n[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(r+o)/2,s=Math.sqrt((r+o)*(r+o)-4*(r*o-i*n))/2,u=a+s||1,c=a-s||1;return[Math.sqrt(u),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[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 n(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(n),o=[t[1],t[3],r[1],r[3]].sort(n),a=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0]?(a[0]=i[1],a[2]=i[2],o[0]===t[1]&&o[1]===r[1]||o[0]===r[1]&&o[1]===t[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),e}();t.Util=Ae;var we=[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],Se=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([t],{type:r});return URL.createObjectURL(n)}for(var i="data:".concat(r,";base64,"),o=0,a=t.length;o<a;o+=3){var s=255&t[o],u=255&t[o+1],c=255&t[o+2];i+=e[s>>2]+e[(3&s)<<4|u>>4]+e[o+1<a?(15&u)<<2|c>>6:64]+e[o+2<a?63&c:64]}return i}}();t.createObjectURL=Se},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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)}var i=r(7);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")})}(),function(){o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i.isNodeJS){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,r=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];t.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a=o[i];r.call(this,a)}}}}}(),function(){if(o&&!i.isNodeJS){!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(o&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,r,n){var i=void 0===n?[t,r]:[t,r,n];e.apply(this,i)},window.history.replaceState=function(e,r,n){var i=void 0===n?[e,r]:[e,r,n];t.apply(this,i)}}}(),function(){String.prototype.startsWith||r(53)}(),function(){String.prototype.endsWith||r(64)}(),function(){String.prototype.includes||r(66)}(),function(){Array.prototype.includes||r(68)}(),function(){Array.from||r(76)}(),function(){Object.assign||r(98)}(),function(){Math.log2||(Math.log2=r(101))}(),function(){Number.isNaN||(Number.isNaN=r(103))}(),function(){Number.isInteger||(Number.isInteger=r(105))}(),function(){Uint8Array.prototype.slice||r(108)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(113))}(),function(){globalThis.URL=r(136)}(),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=r(143).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(144))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(151))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(153))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(159))}(),function(){String.prototype.codePointAt||r(161)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(163))}(),function(){globalThis.Symbol||r(165)}(),function(){String.prototype.padStart||r(188)}(),function(){String.prototype.padEnd||r(193)}(),function(){Object.values||(Object.values=r(195))}()}},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":n(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=i},function(e,t,r){r(9),e.exports=r(11)},function(e,t,r){r(10)({global:!0},{globalThis:r(11)})},function(e,t,r){var n=r(11),i=r(12).f,o=r(26),a=r(29),s=r(30),u=r(40),c=r(52);e.exports=function(e,t){var r,l,f,h,d,p=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in t){if(h=t[l],e.noTargetGet?(d=i(r,l),f=d&&d.value):f=r[l],!c(v?l:p+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(r,l,h,e)}}},function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||Function("return this")()},function(e,t,r){var n=r(13),i=r(15),o=r(16),a=r(17),s=r(21),u=r(23),c=r(24),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){var n=r(14);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},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 n=r(18),i=r(20);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(14),i=r(19),o="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.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 n=r(22);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;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 n=r(13),i=r(14),o=r(25);e.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(11),i=r(22),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,r){var n=r(13),i=r(27),o=r(16);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(13),i=r(24),o=r(28),a=r(21),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(e){}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 n=r(22);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(11),i=r(26),o=r(23),a=r(30),s=r(31),u=r(33),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;if("function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e===n)return void(c?e[t]=r:a(t,r));u?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=r:i(e,t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,r){var n=r(11),i=r(26);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(32),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(11),i=r(30),o=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,r){var n,i,o,a=r(34),s=r(11),u=r(22),c=r(26),l=r(23),f=r(35),h=r(39),d=s.WeakMap,p=function(e){return o(e)?i(e):n(e,{})},v=function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(a){var y=new d,g=y.get,m=y.has,b=y.set;n=function(e,t){return b.call(y,e,t),t},i=function(e){return g.call(y,e)||{}},o=function(e){return m.call(y,e)}}else{var _=f("state");h[_]=!0,n=function(e,t){return c(e,_,t),t},i=function(e){return l(e,_)?e[_]:{}},o=function(e){return l(e,_)}}e.exports={set:n,get:i,has:o,enforce:p,getterFor:v}},function(e,t,r){var n=r(11),i=r(31),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(36),i=r(38),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,r){var n=r(37),i=r(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(23),i=r(41),o=r(12),a=r(27);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||s(e,l,u(t,l))}}},function(e,t,r){var n=r(42),i=r(44),o=r(51),a=r(28);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(43),i=r(11),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){var n=r(11);e.exports=n},function(e,t,r){var n=r(45),i=r(50),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(23),i=r(17),o=r(46).indexOf,a=r(39);e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(17),i=r(47),o=r(49),a=function(e){return function(t,r,a){var s,u=n(t),c=i(u.length),l=o(a,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(48),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(48),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(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 n=r(14),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,r){r(54);var n=r(61);e.exports=n("String","startsWith")},function(e,t,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),u=r(60),c=r(37),l="".startsWith,f=Math.min,h=u("startsWith");n({target:"String",proto:!0,forced:!(!c&&!h&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}()||h)},{startsWith:function(e){var t=String(s(this));a(e);var r=o(f(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return l?l.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){var n=r(56);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(22),i=r(19),o=r(57),a=o("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(11),i=r(36),o=r(23),a=r(38),s=r(58),u=r(59),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,r){var n=r(14);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,r){var n=r(58);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(57),i=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){var n=r(11),i=r(62),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},function(e,t,r){var n=r(63);e.exports=function(e,t,r){if(n(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,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}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(65);var n=r(61);e.exports=n("String","endsWith")},function(e,t,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),u=r(60),c=r(37),l="".endsWith,f=Math.min,h=u("endsWith");n({target:"String",proto:!0,forced:!(!c&&!h&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}()||h)},{endsWith:function(e){var t=String(s(this));a(e);var r=arguments.length>1?arguments[1]:void 0,n=o(t.length),i=void 0===r?n:f(o(r),n),u=String(e);return l?l.call(t,u,i):t.slice(i-u.length,i)===u}})},function(e,t,r){r(67);var n=r(61);e.exports=n("String","includes")},function(e,t,r){"use strict";var n=r(10),i=r(55),o=r(20);n({target:"String",proto:!0,forced:!r(60)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(69);var n=r(61);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(10),i=r(46).includes,o=r(70);n({target:"Array",proto:!0,forced:!r(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,r){var n=r(57),i=r(71),o=r(27),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,r){var n,i=r(28),o=r(72),a=r(50),s=r(39),u=r(74),c=r(25),l=r(35),f=l("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe");return t.style.display="none",u.appendChild(t),t.src=String("javascript:"),e=t.contentWindow.document,e.open(),e.write(d("document.F=Object")),e.close(),e.F},y=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}y=n?p(n):v();for(var e=a.length;e--;)delete y.prototype[a[e]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=i(e),r=new h,h.prototype=null,r[f]=e):r=y(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(13),i=r(27),o=r(28),a=r(73);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;s>u;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(45),i=r(50);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(42);e.exports=n("document","documentElement")},function(e,t,r){var n=r(13),i=r(14),o=r(23),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var r=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return s[e]=!!r&&!i(function(){if(c&&!n)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,l,f)})}},function(e,t,r){r(77),r(89);var n=r(43);e.exports=n.Array.from},function(e,t,r){"use strict";var n=r(78).charAt,i=r(33),o=r(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(48),i=r(20),o=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){"use strict";var n=r(10),i=r(80),o=r(82),a=r(87),s=r(85),u=r(26),c=r(29),l=r(57),f=r(37),h=r(86),d=r(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g=function(){return this};e.exports=function(e,t,r,l,d,m,b){i(r,t,l);var _,A,w,S=function(e){if(e===d&&R)return R;if(!v&&e in C)return C[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",x=!1,C=e.prototype,P=C[y]||C["@@iterator"]||d&&C[d],R=!v&&P||S(d),T="Array"==t?C.entries||P:P;if(T&&(_=o(T.call(new e)),p!==Object.prototype&&_.next&&(f||o(_)===p||(a?a(_,p):"function"!=typeof _[y]&&u(_,y,g)),s(_,k,!0,!0),f&&(h[k]=g))),"values"==d&&P&&"values"!==P.name&&(x=!0,R=function(){return P.call(this)}),f&&!b||C[y]===R||u(C,y,R),h[t]=R,d)if(A={values:S("values"),keys:m?R:S("keys"),entries:S("entries")},b)for(w in A)!v&&!x&&w in C||c(C,w,A[w]);else n({target:t,proto:!0,forced:v||x},A);return A}},function(e,t,r){"use strict";var n=r(81).IteratorPrototype,i=r(71),o=r(16),a=r(85),s=r(86),u=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,r){"use strict";var n,i,o,a=r(82),s=r(26),u=r(23),c=r(57),l=r(37),f=c("iterator"),h=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),void 0==n&&(n={}),l||u(n,f)||s(n,f,d),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){var n=r(23),i=r(83),o=r(35),a=r(84),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,r){var n=r(20);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(14);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){var n=r(27).f,i=r(23),o=r(57),a=o("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){var n=r(28),i=r(88);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(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n=r(22);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(10),i=r(90);n({target:"Array",stat:!0,forced:!r(97)(function(e){Array.from(e)})},{from:i})},function(e,t,r){"use strict";var n=r(62),i=r(83),o=r(91),a=r(92),s=r(47),u=r(93),c=r(94);e.exports=function(e){var t,r,l,f,h,d,p=i(e),v="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=c(p),_=0;if(m&&(g=n(g,y>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(t=s(p.length),r=new v(t);t>_;_++)d=m?g(p[_],_):p[_],u(r,_,d);else for(f=b.call(p),h=f.next,r=new v;!(l=h.call(f)).done;_++)d=m?o(f,g,[l.value,_],!0):l.value,u(r,_,d);return r.length=_,r}},function(e,t,r){var n=r(28);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(57),i=r(86),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,r){"use strict";var n=r(21),i=r(27),o=r(16);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},function(e,t,r){var n=r(95),i=r(86),o=r(57),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(96),i=r(19),o=r(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=Object(e),a))?r:s?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(57),i=n("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},function(e,t,r){var n=r(57),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},function(e,t,r){r(99);var n=r(43);e.exports=n.Object.assign},function(e,t,r){var n=r(10),i=r(100);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,r){"use strict";var n=r(13),i=r(14),o=r(73),a=r(51),s=r(15),u=r(83),c=r(18),l=Object.assign,f=Object.defineProperty;e.exports=!l||i(function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||o(l({},t)).join("")!=i})?function(e,t){for(var r=u(e),i=arguments.length,l=1,f=a.f,h=s.f;i>l;)for(var d,p=c(arguments[l++]),v=f?o(p).concat(f(p)):o(p),y=v.length,g=0;y>g;)d=v[g++],n&&!h.call(p,d)||(r[d]=p[d]);return r}:l},function(e,t,r){r(102);var n=r(43);e.exports=n.Math.log2},function(e,t,r){var n=r(10),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},function(e,t,r){r(104);var n=r(43);e.exports=n.Number.isNaN},function(e,t,r){r(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){r(106);var n=r(43);e.exports=n.Number.isInteger},function(e,t,r){r(10)({target:"Number",stat:!0},{isInteger:r(107)})},function(e,t,r){var n=r(22),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){r(109)},function(e,t,r){"use strict";var n=r(110),i=r(112),o=r(14),a=n.aTypedArray,s=n.aTypedArrayConstructor,u=n.exportTypedArrayMethod,c=[].slice,l=o(function(){new Int8Array(1).slice()});u("slice",function(e,t){for(var r=c.call(a(this),e,t),n=i(this,this.constructor),o=0,u=r.length,l=new(s(n))(u);u>o;)l[o]=r[o++];return l},l)},function(e,t,r){"use strict";var n,i=r(111),o=r(13),a=r(11),s=r(22),u=r(23),c=r(95),l=r(26),f=r(29),h=r(27).f,d=r(82),p=r(87),v=r(57),y=r(38),g=a.Int8Array,m=g&&g.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,A=g&&d(g),w=m&&d(m),S=Object.prototype,k=S.isPrototypeOf,x=v("toStringTag"),C=y("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==c(a.opera),R=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(e){var t=c(e);return"DataView"===t||u(T,t)},O=function(e){return s(e)&&u(T,c(e))},L=function(e){if(O(e))return e;throw TypeError("Target is not a typed array")},F=function(e){if(p){if(k.call(A,e))return e}else for(var t in T)if(u(T,n)){var r=a[t];if(r&&(e===r||k.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,r){if(o){if(r)for(var n in T){var i=a[n];i&&u(i.prototype,e)&&delete i.prototype[e]}w[e]&&!r||f(w,e,r?t:P&&m[e]||t)}},M=function(e,t,r){var n,i;if(o){if(p){if(r)for(n in T)(i=a[n])&&u(i,e)&&delete i[e];if(A[e]&&!r)return;try{return f(A,e,r?t:P&&g[e]||t)}catch(e){}}for(n in T)!(i=a[n])||i[e]&&!r||f(i,e,t)}};for(n in T)a[n]||(P=!1);if((!P||"function"!=typeof A||A===Function.prototype)&&(A=function(){throw TypeError("Incorrect invocation")},P))for(n in T)a[n]&&p(a[n],A);if((!P||!w||w===S)&&(w=A.prototype,P))for(n in T)a[n]&&p(a[n].prototype,w);if(P&&d(_)!==w&&p(_,w),o&&!u(w,x)){R=!0,h(w,x,{get:function(){return s(this)?this[C]:void 0}});for(n in T)a[n]&&l(a[n],C,n)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&C,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:M,isView:E,isTypedArray:O,TypedArray:A,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var n=r(28),i=r(63),o=r(57),a=o("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[a])?t:i(r)}},function(e,t,r){r(114),r(77),r(116),r(119),r(134),r(135);var n=r(43);e.exports=n.Promise},function(e,t,r){var n=r(96),i=r(29),o=r(115);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n=r(96),i=r(95);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){var n=r(11),i=r(117),o=r(118),a=r(26),s=r(57),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var h=n[f],d=h&&h.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[c]||a(d,c,f),i[f])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(e){d[p]=o[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 n=r(17),i=r(70),o=r(86),a=r(33),s=r(79),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){"use strict";var n,i,o,a,s=r(10),u=r(37),c=r(11),l=r(42),f=r(120),h=r(29),d=r(121),p=r(85),v=r(122),y=r(22),g=r(63),m=r(123),b=r(19),_=r(31),A=r(124),w=r(97),S=r(112),k=r(125).set,x=r(128),C=r(129),P=r(131),R=r(130),T=r(132),E=r(33),O=r(52),L=r(57),F=r(133),I=L("species"),M="Promise",j=E.get,D=E.set,N=E.getterFor(M),U=f,q=c.TypeError,W=c.document,B=c.process,G=l("fetch"),z=R.f,H=z,Y="process"==b(B),X=!!(W&&W.createEvent&&c.dispatchEvent),V=O(M,function(){if(_(U)===String(U)){if(66===F)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype.finally)return!0;if(F>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e(function(){},function(){})},r=e.constructor={};return r[I]=t,!(e.then(function(){})instanceof t)}),K=V||!w(function(e){U.all(e).catch(function(){})}),Q=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;x(function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,c,l=n[a++],f=o?l.ok:l.fail,h=l.resolve,d=l.reject,p=l.domain;try{f?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),c=!0)),s===l.promise?d(q("Promise-chain cycle")):(u=Q(s))?u.call(s,h,d):h(s)):d(i)}catch(e){p&&!c&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&$(e,t)})}},Z=function(e,t,r){var n,i;X?(n=W.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(i=c["on"+e])?i(n):"unhandledrejection"===e&&P("Unhandled promise rejection",r)},$=function(e,t){k.call(c,function(){var r,n=t.value,i=ee(t);if(i&&(r=T(function(){Y?B.emit("unhandledRejection",n,e):Z("unhandledrejection",e,n)}),t.rejection=Y||ee(t)?2:1,r.error))throw r.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(c,function(){Y?B.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},re=function(e,t,r,n){return function(i){e(t,r,i,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,J(e,t,!0))},ie=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw q("Promise can't be resolved itself");var i=Q(r);i?x(function(){var n={done:!1};try{i.call(r,re(ie,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}}):(t.value=r,t.state=1,J(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};V&&(U=function(e){m(this,U,M),g(e),n.call(this);var t=j(this);try{e(re(ie,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},n=function(e){D(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},n.prototype=d(U.prototype,{then:function(e,t){var r=N(this),n=z(S(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Y?B.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&J(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(ne,e,t)},R.f=z=function(e){return e===U||e===o?new i(e):H(e)},u||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",function(e,t){var r=this;return new U(function(e,t){a.call(r,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,G.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:U}),p(U,M,!1,!0),v(M),o=l(M),s({target:M,stat:!0,forced:V},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:u||V},{resolve:function(e){return C(u&&this===o?U:this,e)}}),s({target:M,stat:!0,forced:K},{all:function(e){var t=this,r=z(t),n=r.resolve,i=r.reject,o=T(function(){var r=g(t.resolve),o=[],a=0,s=1;A(e,function(e){var u=a++,c=!1;o.push(void 0),s++,r.call(t,e).then(function(e){c||(c=!0,o[u]=e,--s||n(o))},i)}),--s||n(o)});return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=z(t),n=r.reject,i=T(function(){var i=g(t.resolve);A(e,function(e){i.call(t,e).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=r(11);e.exports=n.Promise},function(e,t,r){var n=r(29);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(42),i=r(27),o=r(57),a=r(13),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&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 n=r(28),i=r(92),o=r(47),a=r(62),s=r(94),u=r(91),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var h,d,p,v,y,g,m,b=a(t,r,l?2:1);if(f)h=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(e.length);v>p;p++)if((y=l?b(n(m=e[p])[0],m[1]):b(e[p]))&&y instanceof c)return y;return new c(!1)}h=d.call(e)}for(g=h.next;!(m=g.call(h)).done;)if("object"==typeof(y=u(h,b,m.value,l))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,r){var n,i,o,a=r(11),s=r(14),u=r(19),c=r(62),l=r(74),f=r(25),h=r(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,y=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,_={},A=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){A(e)}},S=function(e){A(e.data)},k=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};p&&v||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},v=function(e){delete _[e]},"process"==u(y)?n=function(e){y.nextTick(w(e))}:m&&m.now?n=function(e){m.now(w(e))}:g&&!h?(i=new g,o=i.port2,i.port1.onmessage=S,n=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)||"file:"===d.protocol?n="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),A(e)}}:function(e){setTimeout(w(e),0)}:(n=k,a.addEventListener("message",S,!1))),e.exports={set:p,clear:v}},function(e,t,r){var n=r(127);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(42);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n,i,o,a,s,u,c,l,f=r(11),h=r(12).f,d=r(19),p=r(125).set,v=r(126),y=f.MutationObserver||f.WebKitMutationObserver,g=f.process,m=f.Promise,b="process"==d(g),_=h(f,"queueMicrotask"),A=_&&_.value;A||(n=function(){var e,t;for(b&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},b?a=function(){g.nextTick(n)}:y&&!v?(s=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):m&&m.resolve?(c=m.resolve(void 0),l=c.then,a=function(){l.call(c,n)}):a=function(){p.call(f,n)}),e.exports=A||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,r){var n=r(28),i=r(22),o=r(130);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(63),i=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(11);e.exports=function(e,t){var r=n.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(e){return{error:!0,value:e}}}},function(e,t,r){var n,i,o=r(11),a=r(127),s=o.process,u=s&&s.versions,c=u&&u.v8;c?(n=c.split("."),i=n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){"use strict";var n=r(10),i=r(63),o=r(130),a=r(132),s=r(124);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=a(function(){var r=i(t.resolve),o=[],a=0,u=1;s(e,function(e){var i=a++,s=!1;o.push(void 0),u++,r.call(t,e).then(function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--u||n(o))},function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--u||n(o))})}),--u||n(o)});return c.error&&u(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(10),i=r(37),o=r(120),a=r(14),s=r(42),u=r(112),c=r(129),l=r(29);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,s("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)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,r){r(137),r(142),r(140);var n=r(43);e.exports=n.URL},function(e,t,r){"use strict";r(77);var n,i=r(10),o=r(13),a=r(138),s=r(11),u=r(72),c=r(29),l=r(123),f=r(23),h=r(100),d=r(90),p=r(78).codeAt,v=r(139),y=r(85),g=r(140),m=r(33),b=s.URL,_=g.URLSearchParams,A=g.getState,w=m.set,S=m.getterFor("URL"),k=Math.floor,x=Math.pow,C=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,R=/\d/,T=/^(0x|0X)/,E=/^[0-7]+$/,O=/^\d+$/,L=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,D=function(e,t){var r,n,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=U(t.slice(1,-1))))return"Invalid host";e.host=r}else if(V(e)){if(t=v(t),F.test(t))return"Invalid host";if(null===(r=N(t)))return"Invalid host";e.host=r}else{if(I.test(t))return"Invalid host";for(r="",n=d(t),i=0;i<n.length;i++)r+=Y(n[i],B);e.host=r}},N=function(e){var t,r,n,i,o,a,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=T.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?E:L).test(i))return e;a=parseInt(i,o)}r.push(a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=x(256,5-t))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*x(256,3-n);return s},U=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,c++,l=c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&L.test(h());)t=16*t+parseInt(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!R.test(h()))return;for(;R.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,c++,l=c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u},q=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t},W=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=q(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},B={},G=h({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),z=h({},G,{"#":1,"?":1,"{":1,"}":1}),H=h({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var r=p(e,0);return r>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(e){return f(X,e.scheme)},K=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},J=function(e,t){var r;return 2==e.length&&C.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},Z=function(e){var t;return e.length>1&&J(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},$=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&J(t[0],!0)||t.pop()},ee=function(e){return"."===e||"%2e"===e.toLowerCase()},te=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},re={},ne={},ie={},oe={},ae={},se={},ue={},ce={},le={},fe={},he={},de={},pe={},ve={},ye={},ge={},me={},be={},_e={},Ae={},we={},Se=function(e,t,r,i){var o,a,s,u,c=r||re,l=0,h="",p=!1,v=!1,y=!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(M,"")),t=t.replace(j,""),o=d(t);l<=o.length;){switch(a=o[l],c){case re:if(!a||!C.test(a)){if(r)return"Invalid scheme";c=ie;continue}h+=a.toLowerCase(),c=ne;break;case ne:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";h="",c=ie,l=0;continue}if(r&&(V(e)!=f(X,h)||"file"==h&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(V(e)&&X[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ve:V(e)&&i&&i.scheme==e.scheme?c=oe:V(e)?c=ce:"/"==o[l+1]?(c=ae,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=_e)}break;case ie:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,c=we;break}c="file"==i.scheme?ve:se;continue;case oe:if("/"!=a||"/"!=o[l+1]){c=se;continue}c=le,l++;break;case ae:if("/"==a){c=fe;break}c=be;continue;case se:if(e.scheme=i.scheme,a==n)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&V(e))c=ue;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",c=Ae;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),c=be;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=we}break;case ue:if(!V(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,c=be;continue}c=fe}else c=le;break;case ce:if(c=le,"/"!=a||"/"!=h.charAt(l+1))continue;l++;break;case le:if("/"!=a&&"\\"!=a){c=fe;continue}break;case fe:if("@"==a){p&&(h="%40"+h),p=!0,s=d(h);for(var g=0;g<s.length;g++){var m=s[g];if(":"!=m||y){var b=Y(m,H);y?e.password+=b:e.username+=b}else y=!0}h=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(p&&""==h)return"Invalid authority";l-=d(h).length+1,h="",c=he}else h+=a;break;case he:case de:if(r&&"file"==e.scheme){c=ge;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(V(e)&&""==h)return"Invalid host";if(r&&""==h&&(K(e)||null!==e.port))return;if(u=D(e,h))return u;if(h="",c=me,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return"Invalid host";if(u=D(e,h))return u;if(h="",c=pe,r==de)return}break;case pe:if(!R.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)||r){if(""!=h){var _=parseInt(h,10);if(_>65535)return"Invalid port";e.port=V(e)&&_===X[e.scheme]?null:_,h=""}if(r)return;c=me;continue}return"Invalid port"}h+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)c=ye;else{if(!i||"file"!=i.scheme){c=be;continue}if(a==n)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",c=Ae;else{if("#"!=a){Z(o.slice(l).join(""))||(e.host=i.host,e.path=i.path.slice(),$(e)),c=be;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=we}}break;case ye:if("/"==a||"\\"==a){c=ge;break}i&&"file"==i.scheme&&!Z(o.slice(l).join(""))&&(J(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),c=be;continue;case ge:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&J(h))c=be;else if(""==h){if(e.host="",r)return;c=me}else{if(u=D(e,h))return u;if("localhost"==e.host&&(e.host=""),r)return;h="",c=me}continue}h+=a;break;case me:if(V(e)){if(c=be,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(c=be,"/"!=a))continue}else e.fragment="",c=we;else e.query="",c=Ae;break;case be:if(a==n||"/"==a||"\\"==a&&V(e)||!r&&("?"==a||"#"==a)){if(te(h)?($(e),"/"==a||"\\"==a&&V(e)||e.path.push("")):ee(h)?"/"==a||"\\"==a&&V(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&J(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==n||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=Ae):"#"==a&&(e.fragment="",c=we)}else h+=Y(a,z);break;case _e:"?"==a?(e.query="",c=Ae):"#"==a?(e.fragment="",c=we):a!=n&&(e.path[0]+=Y(a,B));break;case Ae:r||"#"!=a?a!=n&&("'"==a&&V(e)?e.query+="%27":e.query+="#"==a?"%23":Y(a,B)):(e.fragment="",c=we);break;case we:a!=n&&(e.fragment+=Y(a,G))}l++}},ke=function(e){var t,r,n=l(this,ke,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(n,{type:"URL"});if(void 0!==i)if(i instanceof ke)t=S(i);else if(r=Se(t={},String(i)))throw TypeError(r);if(r=Se(s,a,null,t))throw TypeError(r);var u=s.searchParams=new _,c=A(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},o||(n.href=Ce.call(n),n.origin=Pe.call(n),n.protocol=Re.call(n),n.username=Te.call(n),n.password=Ee.call(n),n.host=Oe.call(n),n.hostname=Le.call(n),n.port=Fe.call(n),n.pathname=Ie.call(n),n.search=Me.call(n),n.searchParams=je.call(n),n.hash=De.call(n))},xe=ke.prototype,Ce=function(){var e=S(this),t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",K(e)&&(c+=r+(n?":"+n:"")+"@"),c+=W(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Pe=function(){var e=S(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&V(e)?t+"://"+W(e.host)+(null!==r?":"+r:""):"null"},Re=function(){return S(this).scheme+":"},Te=function(){return S(this).username},Ee=function(){return S(this).password},Oe=function(){var e=S(this),t=e.host,r=e.port;return null===t?"":null===r?W(t):W(t)+":"+r},Le=function(){var e=S(this).host;return null===e?"":W(e)},Fe=function(){var e=S(this).port;return null===e?"":String(e)},Ie=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Me=function(){var e=S(this).query;return e?"?"+e:""},je=function(){return S(this).searchParams},De=function(){var e=S(this).fragment;return e?"#"+e:""},Ne=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&u(xe,{href:Ne(Ce,function(e){var t=S(this),r=String(e),n=Se(t,r);if(n)throw TypeError(n);A(t.searchParams).updateSearchParams(t.query)}),origin:Ne(Pe),protocol:Ne(Re,function(e){var t=S(this);Se(t,String(e)+":",re)}),username:Ne(Te,function(e){var t=S(this),r=d(String(e));if(!Q(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=Y(r[n],H)}}),password:Ne(Ee,function(e){var t=S(this),r=d(String(e));if(!Q(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=Y(r[n],H)}}),host:Ne(Oe,function(e){var t=S(this);t.cannotBeABaseURL||Se(t,String(e),he)}),hostname:Ne(Le,function(e){var t=S(this);t.cannotBeABaseURL||Se(t,String(e),de)}),port:Ne(Fe,function(e){var t=S(this);Q(t)||(e=String(e),""==e?t.port=null:Se(t,e,pe))}),pathname:Ne(Ie,function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",me))}),search:Ne(Me,function(e){var t=S(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,Ae)),A(t.searchParams).updateSearchParams(t.query)}),searchParams:Ne(je),hash:Ne(De,function(e){var t=S(this);if(""==(e=String(e)))return void(t.fragment=null);"#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,we)})}),c(xe,"toJSON",function(){return Ce.call(this)},{enumerable:!0}),c(xe,"toString",function(){return Ce.call(this)},{enumerable:!0}),b){var Ue=b.createObjectURL,qe=b.revokeObjectURL;Ue&&c(ke,"createObjectURL",function(e){return Ue.apply(b,arguments)}),qe&&c(ke,"revokeObjectURL",function(e){return qe.apply(b,arguments)})}y(ke,"URL"),i({global:!0,forced:!a,sham:!o},{URL:ke})},function(e,t,r){var n=r(14),i=r(57),o=r(37),a=i("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})},function(e,t,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t},c=function(e){return e+22+75*(e<26)},l=function(e,t,r){var n=0;for(e=r?a(e/700):e>>1,e+=a(e/t);e>455;n+=36)e=a(e/35);return a(n+36*e/(e+38))},f=function(e){var t=[];e=u(e);var r,n,i=e.length,f=128,h=0,d=72;for(r=0;r<e.length;r++)(n=e[r])<128&&t.push(s(n));var p=t.length,v=p;for(p&&t.push("-");v<i;){var y=2147483647;for(r=0;r<e.length;r++)(n=e[r])>=f&&n<y&&(y=n);var g=v+1;if(y-f>a((2147483647-h)/g))throw RangeError(o);for(h+=(y-f)*g,f=y,r=0;r<e.length;r++){if((n=e[r])<f&&++h>2147483647)throw RangeError(o);if(n==f){for(var m=h,b=36;;b+=36){var _=b<=d?1:b>=d+26?26:b-d;if(m<_)break;var A=m-_,w=36-_;t.push(s(c(_+A%w))),m=a(A/w)}t.push(s(c(m))),d=l(h,g,v==p),h=0,++v}}++h,++f}return t.join("")};e.exports=function(e){var t,r,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)r=a[t],o.push(n.test(r)?"xn--"+f(r):r);return o.join(".")}},function(e,t,r){"use strict";r(118);var n=r(10),i=r(42),o=r(138),a=r(29),s=r(121),u=r(85),c=r(80),l=r(33),f=r(123),h=r(23),d=r(62),p=r(95),v=r(28),y=r(22),g=r(71),m=r(16),b=r(141),_=r(94),A=r(57),w=i("fetch"),S=i("Headers"),k=A("iterator"),x=l.set,C=l.getterFor("URLSearchParams"),P=l.getterFor("URLSearchParamsIterator"),R=/\+/g,T=Array(4),E=function(e){return T[e-1]||(T[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},O=function(e){try{return decodeURIComponent(e)}catch(t){return e}},L=function(e){var t=e.replace(R," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(E(r--),O);return t}},F=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},M=function(e){return I[e]},j=function(e){return encodeURIComponent(e).replace(F,M)},D=function(e,t){if(t)for(var r,n,i=t.split("&"),o=0;o<i.length;)r=i[o++],r.length&&(n=r.split("="),e.push({key:L(n.shift()),value:L(n.join("="))}))},N=function(e){this.entries.length=0,D(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=c(function(e,t){x(this,{type:"URLSearchParamsIterator",iterator:b(C(e).entries),kind:t})},"Iterator",function(){var e=P(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),W=function(){f(this,W,"URLSearchParams");var e,t,r,n,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(x(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:N}),void 0!==c)if(y(c))if("function"==typeof(e=_(c)))for(t=e.call(c),r=t.next;!(n=r.call(t)).done;){if(i=b(v(n.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(u in c)h(c,u)&&d.push({key:u,value:c[u]+""});else D(d,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},B=W.prototype;s(B,{append:function(e,t){U(arguments.length,2);var r=C(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){U(arguments.length,1);for(var t=C(this),r=t.entries,n=e+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=[],i=0;i<t.length;i++)t[i].key===r&&n.push(t[i].value);return n},has:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var r,n=C(this),i=n.entries,o=!1,a=e+"",s=t+"",u=0;u<i.length;u++)r=i[u],r.key===a&&(o?i.splice(u--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var e,t,r,n=C(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(e=o[r],t=0;t<r;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===r&&i.push(e)}n.updateURL()},forEach:function(e){for(var t,r=C(this).entries,n=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)t=r[i++],n(t.value,t.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(B,k,B.entries),a(B,"toString",function(){for(var e,t=C(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(j(e.key)+"="+j(e.value));return r.join("&")},{enumerable:!0}),u(W,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof w||"function"!=typeof S||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,i=[e];return arguments.length>1&&(t=arguments[1],y(t)&&(r=t.body,"URLSearchParams"===p(r)&&(n=t.headers?new S(t.headers):new S,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:m(0,String(r)),headers:m(0,n)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:W,getState:C}},function(e,t,r){var n=r(28),i=r(94);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){"use strict";r(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){!function(e,r){!function(e){"use strict";function t(){}function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}function n(e){return e.slice()}function i(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function o(e){return!1!==a(e)&&e!==1/0}function a(e){return"number"==typeof e&&(!Or(e)&&!(e<0))}function s(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,n){var i=e[t];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(r){case 0:return function(){return l(i,e,n)};case 1:return function(t){var r=[t].concat(n);return l(i,e,r)}}}return function(){return v(void 0)}}function c(e,t,r){var n=e[t];if(void 0!==n)return s(n,e,r)}function l(e,t,r){try{return v(s(e,t,r))}catch(e){return y(e)}}function f(e){return e}function h(e){if(e=Number(e),Or(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function d(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 p(e){return new Fr(e)}function v(e){return Mr(e)}function y(e){return jr(e)}function g(e,t,r){return Ir.call(e,t,r)}function m(e,t,r){g(g(e,t,r),void 0,Lr)}function b(e,t){m(e,t)}function _(e,t){m(e,void 0,t)}function A(e,t,r){return g(e,t,r)}function w(e){g(e,void 0,Lr)}function S(e,t,r){var n=null;!0===r&&(n=Object.prototype);var i=Object.create(n);return i.value=e,i.done=t,i}function k(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?R(e):"closed"===t._state?E(e):T(e,t._storedError)}function x(e,t){return or(e._ownerReadableStream,t)}function C(e){"readable"===e._ownerReadableStream._state?O(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):L(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 P(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function R(e){e._closedPromise=p(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function T(e,t){R(e),O(e,t)}function E(e){R(e),F(e)}function O(e,t){w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function L(e,t){T(e,t)}function F(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 qr(e);return r._forAuthorCode=t,r}function M(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)})}function j(e,t,r){var n=e._reader;n._readRequests.shift()._resolve(S(t,r,n._forAuthorCode))}function D(e){return e._reader._readRequests.length}function N(e){var t=e._reader;return void 0!==t&&!!U(t)}function U(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function q(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?v(S(void 0,!0,e._forAuthorCode)):"errored"===t._state?y(t._storedError):t._readableStreamController[Ur]()}function W(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function B(e,t){void 0===t&&(t=!1);var r=I(e),n=Object.create(Wr);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function G(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function z(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function H(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Y(e,t,r){if(r=Number(r),!o(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 X(e){return e._queue.peek().value}function V(e){e._queue=new Dr,e._queueTotalSize=0}function K(e){return new Hr(e)}function Q(e,t,r,n,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(zr.prototype);return J(a),Ce(a,Object.create(Yr.prototype),e,t,r,n,i,o),a}function J(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Dr,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Z(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function $(e){return void 0!==e._writer}function ee(e,t){var r=e._state;if("closed"===r||"errored"===r)return v(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var i=p(function(r,i){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,!1===n&&ie(e,t),i}function te(e){var t=e._state;if("closed"===t||"errored"===t)return y(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=p(function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n}),n=e._writer;return void 0!==n&&!0===e._backpressure&&"writable"===t&&et(n),Te(e._writableStreamController),r}function re(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)})}function ne(e,t){if("writable"===e._state)return void ie(e,t);oe(e)}function ie(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&Ae(n,t),!1===fe(e)&&!0===r._started&&oe(e)}function oe(e){e._state="errored",e._writableStreamController[Gr]();var t=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(t)}),e._writeRequests=new Dr,void 0===e._pendingAbortRequest)return void pe(e);var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(t),void pe(e);m(e._writableStreamController[Br](r._reason),function(){r._resolve(),pe(e)},function(t){r._reject(t),pe(e)})}function ae(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function se(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,ne(e,t)}function ue(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Xe(t)}function ce(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),ne(e,t)}function le(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function fe(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function he(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function de(e){e._inFlightWriteRequest=e._writeRequests.shift()}function pe(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&He(t,e._storedError)}function ve(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?Ze(r):et(r)),e._backpressure=t}function ye(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function ge(e,t){return ee(e._ownerWritableStream,t)}function me(e){return te(e._ownerWritableStream)}function be(e){var t=e._ownerWritableStream,r=t._state;return!0===le(t)||"closed"===r?v(void 0):"errored"===r?y(t._storedError):me(e)}function _e(e,t){"pending"===e._closedPromiseState?He(e,t):Ye(e,t)}function Ae(e,t){"pending"===e._readyPromiseState?Je(e,t):$e(e,t)}function we(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Oe(t._writableStreamController)}function Se(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ae(e,r),_e(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function ke(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,i=Ee(n,t);if(r!==e._ownerWritableStream)return y(We("write to"));var o=r._state;if("errored"===o)return y(r._storedError);if(!0===le(r)||"closed"===o)return y(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return y(r._storedError);var a=re(r);return Le(n,t,i),a}function xe(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ce(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,V(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o;var u=De(t);ve(e,u),m(v(r()),function(){t._started=!0,Fe(t)},function(r){t._started=!0,ne(e,r)})}function Pe(e,t,r,n){function i(){return c(t,"start",[o])}var o=Object.create(Yr.prototype),a=u(t,"write",1,[o]),s=u(t,"close",0,[]),l=u(t,"abort",1,[]);Ce(e,o,i,a,s,l,r,n)}function Re(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Te(e){Y(e,"close",0),Fe(e)}function Ee(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ie(e,t),1}}function Oe(e){return e._strategyHWM-e._queueTotalSize}function Le(e,t,r){var n={chunk:t};try{Y(e,n,r)}catch(t){return void Ie(e,t)}var i=e._controlledWritableStream;if(!1===le(i)&&"writable"===i._state){ve(i,De(e))}Fe(e)}function Fe(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){if("erroring"===t._state)return void oe(t);if(0!==e._queue.length){var r=X(e);"close"===r?Me(e):je(e,r.chunk)}}}function Ie(e,t){"writable"===e._controlledWritableStream._state&&Ne(e,t)}function Me(e){var t=e._controlledWritableStream;he(t),H(e);var r=e._closeAlgorithm();Re(e),m(r,function(){ue(t)},function(e){ce(t,e)})}function je(e,t){var r=e._controlledWritableStream;de(r),m(e._writeAlgorithm(t),function(){ae(r);var t=r._state;if(H(e),!1===le(r)&&"writable"===t){var n=De(e);ve(r,n)}Fe(e)},function(t){"writable"===r._state&&Re(e),se(r,t)})}function De(e){return Oe(e)<=0}function Ne(e,t){var r=e._controlledWritableStream;Re(e),ie(r,t)}function Ue(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function qe(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function We(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Be(e){e._closedPromise=p(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Ge(e,t){Be(e),He(e,t)}function ze(e){Be(e),Xe(e)}function He(e,t){w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Ye(e,t){Ge(e,t)}function Xe(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function Ve(e){e._readyPromise=p(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function Ke(e,t){Ve(e),Je(e,t)}function Qe(e){Ve(e),et(e)}function Je(e,t){w(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Ze(e){Ve(e)}function $e(e,t){Ke(e,t)}function et(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function tt(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}function rt(e,r,n,i,o,a){var s=I(e),u=K(r);e._disturbed=!0;var c=!1,l=v(void 0);return p(function(f,h){function d(){return!0===c?v(!0):g(u._readyPromise,function(){return g(q(s),function(e){return!0===e.done||(l=g(ke(u,e.value),void 0,t),!1)})})}function y(){var e=l;return g(l,function(){return e!==l?y():void 0})}function A(e,t,r){"errored"===e._state?r(e._storedError):_(t,r)}function S(e,t,n){function i(){m(e(),function(){return x(t,n)},function(e){return x(!0,e)})}!0!==c&&(c=!0,"writable"===r._state&&!1===le(r)?b(y(),i):i())}function k(e,t){!0!==c&&(c=!0,"writable"===r._state&&!1===le(r)?b(y(),function(){return x(e,t)}):x(e,t))}function x(e,t){Se(u),C(s),void 0!==a&&a.removeEventListener("abort",P),e?h(t):f(void 0)}var P;if(void 0!==a){if(P=function(){var t=new Vr("Aborted","AbortError"),n=[];!1===i&&n.push(function(){return"writable"===r._state?ee(r,t):v(void 0)}),!1===o&&n.push(function(){return"readable"===e._state?or(e,t):v(void 0)}),S(function(){return Promise.all(n.map(function(e){return e()}))},!0,t)},!0===a.aborted)return void P();a.addEventListener("abort",P)}if(A(e,s._closedPromise,function(e){!1===i?S(function(){return ee(r,e)},!0,e):k(!0,e)}),A(r,u._closedPromise,function(t){!1===o?S(function(){return or(e,t)},!0,t):k(!0,t)}),function(e,t,r){"closed"===e._state?r():b(t,r)}(e,s._closedPromise,function(){!1===n?S(function(){return be(u)}):k()}),!0===le(r)||"closed"===r._state){var R=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?S(function(){return or(e,R)},!0,R):k(!0,R)}w(function(){return p(function(e,t){function r(n){n?e():g(d(),r,t)}r(!1)})}())})}function nt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function it(e){if(!1!==ot(e)){if(!0===e._pulling)return void(e._pullAgain=!0);e._pulling=!0,m(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,it(e))},function(t){ct(e,t)})}}function ot(e){var t=e._controlledReadableStream;return!1!==ht(e)&&(!1!==e._started&&(!0===ir(t)&&D(t)>0||lt(e)>0))}function at(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function st(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(at(e),ar(t))}function ut(e,t){var r=e._controlledReadableStream;if(!0===ir(r)&&D(r)>0)j(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(t){throw ct(e,t),t}try{Y(e,t,n)}catch(t){throw ct(e,t),t}}it(e)}function ct(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(V(e),at(e),sr(r,t))}function lt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function ft(e){return!0!==ot(e)}function ht(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function dt(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,V(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,m(v(r()),function(){t._started=!0,it(t)},function(e){ct(t,e)})}function pt(e,t,r,n){function i(){return c(t,"start",[o])}var o=Object.create(Kr.prototype),a=u(t,"pull",0,[o]),s=u(t,"cancel",1,[]);dt(e,o,i,a,s,r,n)}function vt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function yt(e,t){function r(){return!0===d?v(void 0):(d=!0,w(A(q(h),function(e){if(d=!1,!0===e.done)return!1===y&&st(c._readableStreamController),void(!1===g&&st(l._readableStreamController));var t=e.value,r=t,n=t;!1===y&&ut(c._readableStreamController,r),!1===g&&ut(l._readableStreamController,n)})),v(void 0))}function i(t){if(y=!0,s=t,!0===g){var r=n([s,u]),i=or(e,r);f(i)}return m}function o(t){if(g=!0,u=t,!0===y){var r=n([s,u]),i=or(e,r);f(i)}return m}function a(){}var s,u,c,l,f,h=I(e),d=!1,y=!1,g=!1,m=p(function(e){f=e});return c=tr(a,r,i),l=tr(a,r,o),_(h._closedPromise,function(e){ct(c._readableStreamController,e),ct(l._readableStreamController,e)}),[c,l]}function gt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function mt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function bt(e){if(!1!==It(e)){if(!0===e._pulling)return void(e._pullAgain=!0);e._pulling=!0,m(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,bt(e))},function(t){Nt(e,t)})}}function _t(e){Pt(e),e._pendingPullIntos=new Dr}function At(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=wt(t);"default"===t.readerType?j(e,n,r):Kt(e,n,r)}function wt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function St(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function kt(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+o,s=a-a%r,u=o,c=!1;s>n&&(u=s-t.bytesFilled,c=!0);for(var l=e._queue;u>0;){var f=l.peek(),h=Math.min(u,f.byteLength),d=t.byteOffset+t.bytesFilled;i(t.buffer,d,f.buffer,f.byteOffset,h),f.byteLength===h?l.shift():(f.byteOffset+=h,f.byteLength-=h),e._queueTotalSize-=h,xt(e,h,t),u-=h}return c}function xt(e,t,r){Pt(e),r.bytesFilled+=t}function Ct(e){0===e._queueTotalSize&&!0===e._closeRequested?(Mt(e),ar(e._controlledReadableByteStream)):bt(e)}function Pt(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function Rt(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===kt(e,t)&&(Ft(e),At(e._controlledReadableByteStream,t))}}function Tt(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o=f(t.buffer),a={buffer:o,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),Vt(r);if("closed"===r._state){return v(S(new i(a.buffer,a.byteOffset,0),!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===kt(e,a)){var s=wt(a);return Ct(e),v(S(s,!1,r._reader._forAuthorCode))}if(!0===e._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return Nt(e,u),y(u)}}e._pendingPullIntos.push(a);var c=Vt(r);return bt(e),c}function Et(e,t){t.buffer=f(t.buffer);var r=e._controlledReadableByteStream;if(!0===Jt(r))for(;Qt(r)>0;){var n=Ft(e);At(r,n)}}function Ot(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(xt(e,t,r),!(r.bytesFilled<r.elementSize)){Ft(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,o=r.buffer.slice(i-n,i);St(e,o,0,o.byteLength)}r.buffer=f(r.buffer),r.bytesFilled-=n,At(e._controlledReadableByteStream,r),Rt(e)}}function Lt(e,t){var r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Et(e,r)}else Ot(e,t,r);bt(e)}function Ft(e){var t=e._pendingPullIntos.shift();return Pt(e),t}function It(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===N(t)&&D(t)>0||(!0===Jt(t)&&Qt(t)>0||Ut(e)>0))))}function Mt(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function jt(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){if(e._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Nt(e,r),r}}Mt(e),ar(t)}function Dt(e,t){var r=e._controlledReadableByteStream,n=t.buffer,i=t.byteOffset,o=t.byteLength,a=f(n);if(!0===N(r))if(0===D(r))St(e,a,i,o);else{var s=new Uint8Array(a,i,o);j(r,s,!1)}else!0===Jt(r)?(St(e,a,i,o),Rt(e)):St(e,a,i,o);bt(e)}function Nt(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(_t(e),V(e),Mt(e),sr(r,t))}function Ut(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function qt(e,t){if(t=Number(t),!1===o(t))throw new RangeError("bytesWritten must be a finite");Lt(e,t)}function Wt(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,Lt(e,t.byteLength)}function Bt(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,V(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=h(o),t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new Dr,e._readableStreamController=t,m(v(r()),function(){t._started=!0,bt(t)},function(e){Nt(t,e)})}function Gt(e,t,r){function n(){return c(t,"start",[i])}var i=Object.create(Zr.prototype),o=u(t,"pull",0,[i]),a=u(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Qr(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");Bt(e,i,n,o,a,r,s)}function zt(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function Ht(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Yt(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Xt(e,t){void 0===t&&(t=!1);var r=new $r(e);return r._forAuthorCode=t,r}function Vt(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)})}function Kt(e,t,r){var n=e._reader;n._readIntoRequests.shift()._resolve(S(t,r,n._forAuthorCode))}function Qt(e){return e._reader._readIntoRequests.length}function Jt(e){var t=e._reader;return void 0!==t&&!!Zt(t)}function Zt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function $t(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?y(r._storedError):Tt(r._readableStreamController,t)}function er(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function tr(e,t,r,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(en.prototype);return rr(o),dt(o,Object.create(Kr.prototype),e,t,r,n,i),o}function rr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function nr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function ir(e){return void 0!==e._reader}function or(e,r){return e._disturbed=!0,"closed"===e._state?v(void 0):"errored"===e._state?y(e._storedError):(ar(e),A(e._readableStreamController[Nr](r),t))}function ar(e){e._state="closed";var t=e._reader;void 0!==t&&(U(t)&&(t._readRequests.forEach(function(e){e._resolve(S(void 0,!0,t._forAuthorCode))}),t._readRequests=new Dr),F(t))}function sr(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(U(r)?(r._readRequests.forEach(function(e){e._reject(t)}),r._readRequests=new Dr):(r._readIntoRequests.forEach(function(e){e._reject(t)}),r._readIntoRequests=new Dr),O(r,t))}function ur(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function cr(e,t,r,n,i,o){function a(){return t}function s(t){return wr(e,t)}function u(t){return Sr(e,t)}function c(){return kr(e)}function l(){return xr(e)}function f(t){return hr(e,t),v(void 0)}e._writable=Q(a,s,c,u,r,n),e._readable=tr(a,l,f,i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,dr(e,!0),e._transformStreamController=void 0}function lr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function fr(e,t){ct(e._readable._readableStreamController,t),hr(e,t)}function hr(e,t){gr(e._transformStreamController),Ie(e._writable._writableStreamController,t),!0===e._backpressure&&dr(e,!1)}function dr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=p(function(t){e._backpressureChangePromise_resolve=t}),e._backpressure=t}function pr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function vr(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function yr(e,t){var r=Object.create(on.prototype),n=function(e){try{return mr(r,e),v(void 0)}catch(e){return y(e)}},i=t.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");n=function(e){return l(i,t,[e,r])}}var o=u(t,"flush",0,[r]);vr(e,r,n,o)}function gr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function mr(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!1===ht(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ut(n,t)}catch(e){throw hr(r,e),r._readable._storedError}ft(n)!==r._backpressure&&dr(r,!0)}function br(e,t){fr(e._controlledTransformStream,t)}function _r(e,t){return A(e._transformAlgorithm(t),void 0,function(t){throw fr(e._controlledTransformStream,t),t})}function Ar(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;!0===ht(r)&&st(r),hr(t,new TypeError("TransformStream terminated"))}function wr(e,t){var r=e._transformStreamController;if(!0===e._backpressure){return A(e._backpressureChangePromise,function(){var n=e._writable;if("erroring"===n._state)throw n._storedError;return _r(r,t)})}return _r(r,t)}function Sr(e,t){return fr(e,t),v(void 0)}function kr(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return gr(r),A(n,function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===ht(e)&&st(e)},function(r){throw fr(e,r),t._storedError})}function xr(e){return dr(e,!1),e._backpressureChangePromise}function Cr(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function Pr(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var Rr,Tr,Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"},Or=Number.isNaN||function(e){return e!==e},Lr=t,Fr=Promise,Ir=Promise.prototype.then,Mr=Promise.resolve.bind(Fr),jr=Promise.reject.bind(Fr),Dr=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;16383===t._elements.length&&(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,n=r+1,i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o},e.prototype.forEach=function(e){for(var t=this._cursor,r=this._front,n=r._elements;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}(),Nr=Er("[[CancelSteps]]"),Ur=Er("[[PullSteps]]"),qr=function(){function e(e){if(!1===nr(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===ir(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readRequests=new Dr}return Object.defineProperty(e.prototype,"closed",{get:function(){return U(this)?this._closedPromise:y(W("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return U(this)?void 0===this._ownerReadableStream?y(P("cancel")):x(this,e):y(W("cancel"))},e.prototype.read=function(){return U(this)?void 0===this._ownerReadableStream?y(P("read from")):q(this):y(W("read"))},e.prototype.releaseLock=function(){if(!U(this))throw W("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");C(this)}},e}();"symbol"==typeof Er.asyncIterator&&(Rr={},Rr[Er.asyncIterator]=function(){return this},Tr=Rr,Object.defineProperty(Tr,Er.asyncIterator,{enumerable:!1}));var Wr={next:function(){if(!1===G(this))return y(z("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?y(P("iterate")):A(q(e),function(t){var r=t.done;return r&&C(e),S(t.value,r,!0)})},return:function(e){if(!1===G(this))return y(z("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return y(P("finish iterating"));if(t._readRequests.length>0)return y(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=x(t,e);return C(t),A(r,function(){return S(e,!0,!0)})}return C(t),v(S(e,!0,!0))}};void 0!==Tr&&Object.setPrototypeOf(Wr,Tr),Object.defineProperty(Wr,"next",{enumerable:!1}),Object.defineProperty(Wr,"return",{enumerable:!1});var Br=Er("[[AbortSteps]]"),Gr=Er("[[ErrorSteps]]"),zr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),J(this);var r=t.size,n=t.highWaterMark;if(void 0!==e.type)throw new RangeError("Invalid type is specified");var i=d(r);void 0===n&&(n=1),n=h(n),Pe(this,e,n,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Z(this))throw Ue("locked");return $(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===Z(this)?y(Ue("abort")):!0===$(this)?y(new TypeError("Cannot abort a stream that already has a writer")):ee(this,e)},e.prototype.close=function(){return!1===Z(this)?y(Ue("close")):!0===$(this)?y(new TypeError("Cannot close a stream that already has a writer")):!0===le(this)?y(new TypeError("Cannot close an already-closing stream")):te(this)},e.prototype.getWriter=function(){if(!1===Z(this))throw Ue("getWriter");return K(this)},e}(),Hr=function(){function e(e){if(!1===Z(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===$(e))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)!1===le(e)&&!0===e._backpressure?Ve(this):Qe(this),Be(this);else if("erroring"===t)Ke(this,e._storedError),Be(this);else if("closed"===t)Qe(this),ze(this);else{var r=e._storedError;Ke(this,r),Ge(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===ye(this)?y(qe("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ye(this))throw qe("desiredSize");if(void 0===this._ownerWritableStream)throw We("desiredSize");return we(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===ye(this)?y(qe("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ye(this)?y(qe("abort")):void 0===this._ownerWritableStream?y(We("abort")):ge(this,e)},e.prototype.close=function(){if(!1===ye(this))return y(qe("close"));var e=this._ownerWritableStream;return void 0===e?y(We("close")):!0===le(e)?y(new TypeError("Cannot close an already-closing stream")):me(this)},e.prototype.releaseLock=function(){if(!1===ye(this))throw qe("releaseLock");void 0!==this._ownerWritableStream&&Se(this)},e.prototype.write=function(e){return!1===ye(this)?y(qe("write")):void 0===this._ownerWritableStream?y(We("write to")):ke(this,e)},e}(),Yr=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===xe(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Ne(this,e)},e.prototype[Br]=function(e){var t=this._abortAlgorithm(e);return Re(this),t},e.prototype[Gr]=function(){V(this)},e}(),Xr="undefined"!=typeof DOMException?DOMException:void 0,Vr=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Xr)?Xr:function(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}(),Kr=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===nt(this))throw vt("desiredSize");return lt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===nt(this))throw vt("close");if(!1===ht(this))throw new TypeError("The stream is not in a state that permits close");st(this)},e.prototype.enqueue=function(e){if(!1===nt(this))throw vt("enqueue");if(!1===ht(this))throw new TypeError("The stream is not in a state that permits enqueue");return ut(this,e)},e.prototype.error=function(e){if(!1===nt(this))throw vt("error");ct(this,e)},e.prototype[Nr]=function(e){V(this);var t=this._cancelAlgorithm(e);return at(this),t},e.prototype[Ur]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=H(this);return!0===this._closeRequested&&0===this._queue.length?(at(this),ar(e)):it(this),v(S(t,!1,e._reader._forAuthorCode))}var r=M(e);return it(this),r},e}(),Qr=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Jr=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===mt(this))throw Ht("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===mt(this))throw Ht("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,qt(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===mt(this))throw Ht("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");e.buffer,Wt(this._associatedReadableByteStreamController,e)},e}(),Zr=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===gt(this))throw Yt("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(Jr.prototype);zt(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===gt(this))throw Yt("desiredSize");return Ut(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===gt(this))throw Yt("close");if(!0===this._closeRequested)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");jt(this)},e.prototype.enqueue=function(e){if(!1===gt(this))throw Yt("enqueue");if(!0===this._closeRequested)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");e.buffer,Dt(this,e)},e.prototype.error=function(e){if(!1===gt(this))throw Yt("error");Nt(this,e)},e.prototype[Nr]=function(e){if(this._pendingPullIntos.length>0){this._pendingPullIntos.peek().bytesFilled=0}V(this);var t=this._cancelAlgorithm(e);return Mt(this),t},e.prototype[Ur]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,Ct(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return y(e)}return v(S(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(e){return y(e)}var o={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=M(e);return bt(this),a},e}(),$r=function(){function e(e){if(!nr(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===gt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(ir(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readIntoRequests=new Dr}return Object.defineProperty(e.prototype,"closed",{get:function(){return Zt(this)?this._closedPromise:y(er("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Zt(this)?void 0===this._ownerReadableStream?y(P("cancel")):x(this,e):y(er("cancel"))},e.prototype.read=function(e){return Zt(this)?void 0===this._ownerReadableStream?y(P("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?y(new TypeError("view must have non-zero byteLength")):$t(this,e)):y(new TypeError("view must be an array buffer view")):y(er("read"))},e.prototype.releaseLock=function(){if(!Zt(this))throw er("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");C(this)}},e}(),en=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),rr(this);var r=t.size,n=t.highWaterMark,i=e.type;if("bytes"===String(i)){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=h(n),Gt(this,e,n)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(r);void 0===n&&(n=1),n=h(n),pt(this,e,n,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===nr(this))throw ur("locked");return ir(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===nr(this)?y(ur("cancel")):!0===ir(this)?y(new TypeError("Cannot cancel a stream that already has a reader")):or(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===nr(this))throw ur("getReader");if(void 0===t)return I(this,!0);if("byob"===(t=String(t)))return Xt(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,a=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===nr(this))throw ur("pipeThrough");if(!1===Z(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===nr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==u&&!tt(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===ir(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===$(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return w(rt(this,r,o,a,s,u)),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,n=r.preventClose,i=r.preventAbort,o=r.preventCancel,a=r.signal;return!1===nr(this)?y(ur("pipeTo")):!1===Z(e)?y(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),i=Boolean(i),o=Boolean(o),void 0===a||tt(a)?!0===ir(this)?y(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===$(e)?y(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):rt(this,e,n,i,o,a):y(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===nr(this))throw ur("tee");return n(yt(this))},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(!1===nr(this))throw ur("getIterator");return B(this,r)},e}();"symbol"==typeof Er.asyncIterator&&Object.defineProperty(en.prototype,Er.asyncIterator,{value:en.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var tn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),rn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),nn=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var n=t.size,i=t.highWaterMark,o=r.size,a=r.highWaterMark;if(void 0!==e.writableType)throw new RangeError("Invalid writable type specified");var s=d(n);if(void 0===i&&(i=1),i=h(i),void 0!==e.readableType)throw new RangeError("Invalid readable type specified");var u=d(o);void 0===a&&(a=0),a=h(a);var l;cr(this,p(function(e){l=e}),i,s,a,u),yr(this,e);var f=c(e,"start",[this._transformStreamController]);l(f)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===lr(this))throw Pr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===lr(this))throw Pr("writable");return this._writable},enumerable:!0,configurable:!0}),e}(),on=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===pr(this))throw Cr("desiredSize");return lt(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===pr(this))throw Cr("enqueue");mr(this,e)},e.prototype.error=function(e){if(!1===pr(this))throw Cr("error");br(this,e)},e.prototype.terminate=function(){if(!1===pr(this))throw Cr("terminate");Ar(this)},e}();e.ByteLengthQueuingStrategy=tn,e.CountQueuingStrategy=rn,e.ReadableStream=en,e.TransformStream=nn,e.WritableStream=zr,Object.defineProperty(e,"__esModule",{value:!0})}(t)}()},function(e,t,r){r(145),r(114),r(77),r(116);var n=r(43);e.exports=n.Map},function(e,t,r){"use strict";var n=r(146),i=r(150);e.exports=n("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){"use strict";var n=r(10),i=r(11),o=r(52),a=r(29),s=r(147),u=r(124),c=r(123),l=r(22),f=r(14),h=r(97),d=r(85),p=r(149);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),g=v?"set":"add",m=i[e],b=m&&m.prototype,_=m,A={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(o(e,"function"!=typeof m||!(y||b.forEach&&!f(function(){(new m).entries().next()}))))_=r.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(o(e,!0)){var S=new _,k=S[g](y?{}:-0,1)!=S,x=f(function(){S.has(1)}),C=h(function(e){new m(e)}),P=!y&&f(function(){for(var e=new m,t=5;t--;)e[g](t,t);return!e.has(-0)});C||(_=t(function(t,r){c(t,_,e);var n=p(new m,t,_);return void 0!=r&&u(r,n[g],n,v),n}),_.prototype=b,b.constructor=_),(x||P)&&(w("delete"),w("has"),v&&w("get")),(P||k)&&w(g),y&&b.clear&&delete b.clear}return A[e]=_,n({global:!0,forced:_!=m},A),d(_,e),y||r.setStrong(_,e,v),_}},function(e,t,r){var n=r(39),i=r(22),o=r(23),a=r(27).f,s=r(38),u=r(148),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(e){a(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!f(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!o(e,c)){if(!f(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},v=function(e){return u&&y.REQUIRED&&f(e)&&!o(e,c)&&h(e),e},y=e.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};n[c]=!0},function(e,t,r){var n=r(14);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,r){var n=r(22),i=r(87);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},function(e,t,r){"use strict";var n=r(27).f,i=r(71),o=r(121),a=r(62),s=r(123),u=r(124),c=r(79),l=r(122),f=r(13),h=r(147).fastKey,d=r(33),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,r,c){var l=e(function(e,n){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=n&&u(n,e[c],e,r)}),d=v(t),y=function(e,t,r){var n,i,o=d(e),a=g(e,t);return a?a.value=r:(o.last=a={index:i=h(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var r,n=d(e),i=h(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(l.prototype,{clear:function(){for(var e=this,t=d(e),r=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,r=d(t),n=g(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=d(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&n(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,r){var n=t+" Iterator",i=v(t),o=v(n);c(e,t,function(e,t){p(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),l(t)}}},function(e,t,r){r(152),r(114),r(77),r(116);var n=r(43);e.exports=n.Set},function(e,t,r){"use strict";var n=r(146),i=r(150);e.exports=n("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){r(114),r(154),r(116);var n=r(43);e.exports=n.WeakMap},function(e,t,r){"use strict";var n,i=r(11),o=r(121),a=r(147),s=r(146),u=r(155),c=r(22),l=r(33).enforce,f=r(34),h=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=e.exports=s("WeakMap",p,u);if(f&&h){n=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var y=v.prototype,g=y.delete,m=y.has,b=y.get,_=y.set;o(y,{delete:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen.has(e)}return m.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),m.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var r=l(this);r.frozen||(r.frozen=new n),m.call(this,e)?_.call(this,e,t):r.frozen.set(e,t)}else _.call(this,e,t);return this}})}},function(e,t,r){"use strict";var n=r(121),i=r(147).getWeakData,o=r(28),a=r(22),s=r(123),u=r(124),c=r(156),l=r(23),f=r(33),h=f.set,d=f.getterFor,p=c.find,v=c.findIndex,y=0,g=function(e){return e.frozen||(e.frozen=new m)},m=function(){this.entries=[]},b=function(e,t){return p(e.entries,function(e){return e[0]===t})};m.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var r=b(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var f=e(function(e,n){s(e,f,t),h(e,{type:t,id:y++,frozen:void 0}),void 0!=n&&u(n,e[c],e,r)}),p=d(t),v=function(e,t,r){var n=p(e),a=i(o(t),!0);return!0===a?g(n).set(t,r):a[n.id]=r,e};return n(f.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var r=i(e);return!0===r?g(t).delete(e):r&&l(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var r=i(e);return!0===r?g(t).has(e):r&&l(r,t.id)}}),n(f.prototype,r?{get:function(e){var t=p(this);if(a(e)){var r=i(e);return!0===r?g(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},function(e,t,r){var n=r(62),i=r(18),o=r(83),a=r(47),s=r(157),u=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,l=4==e,f=6==e,h=5==e||f;return function(d,p,v,y){for(var g,m,b=o(d),_=i(b),A=n(p,v,3),w=a(_.length),S=0,k=y||s,x=t?k(d,w):r?k(d,0):void 0;w>S;S++)if((h||S in _)&&(g=_[S],m=A(g,S,b),e))if(t)x[S]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:u.call(x,g)}else if(l)return!1;return f?-1:c||l?l:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){var n=r(22),i=r(158),o=r(57),a=o("species");e.exports=function(e,t){var r;return i(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(19);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){r(114),r(160),r(116);var n=r(43);e.exports=n.WeakSet},function(e,t,r){"use strict";var n=r(146),i=r(155);n("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){r(162);var n=r(61);e.exports=n("String","codePointAt")},function(e,t,r){"use strict";var n=r(10),i=r(78).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,r){r(164);var n=r(43);e.exports=n.String.fromCodePoint},function(e,t,r){var n=r(10),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){r(166),r(114),r(168),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187);var n=r(43);e.exports=n.Symbol},function(e,t,r){"use strict";var n=r(10),i=r(14),o=r(158),a=r(22),s=r(83),u=r(47),c=r(93),l=r(157),f=r(167),h=r(57),d=r(133),p=h("isConcatSpreadable"),v=d>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),y=f("concat"),g=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,r,n,i,o,a=s(this),f=l(a,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(o=-1===t?a:arguments[t],g(o)){if(i=u(o.length),h+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&c(f,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,h++,o)}return f.length=h,f}})},function(e,t,r){var n=r(14),i=r(57),o=r(133),a=i("species");e.exports=function(e){return o>=51||!n(function(){var t=[],r=t.constructor={};return r[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,r){"use strict";var n=r(10),i=r(11),o=r(42),a=r(37),s=r(13),u=r(58),c=r(59),l=r(14),f=r(23),h=r(158),d=r(22),p=r(28),v=r(83),y=r(17),g=r(21),m=r(16),b=r(71),_=r(73),A=r(44),w=r(169),S=r(51),k=r(12),x=r(27),C=r(15),P=r(26),R=r(29),T=r(36),E=r(35),O=r(39),L=r(38),F=r(57),I=r(170),M=r(171),j=r(85),D=r(33),N=r(156).forEach,U=E("hidden"),q=F("toPrimitive"),W=D.set,B=D.getterFor("Symbol"),G=Object.prototype,z=i.Symbol,H=o("JSON","stringify"),Y=k.f,X=x.f,V=w.f,K=C.f,Q=T("symbols"),J=T("op-symbols"),Z=T("string-to-symbol-registry"),$=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&l(function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=Y(G,t);n&&delete G[t],X(e,t,r),n&&e!==G&&X(G,t,n)}:X,ie=function(e,t){var r=Q[e]=b(z.prototype);return W(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ae=function(e,t,r){e===G&&ae(J,t,r),p(e);var n=g(t,!0);return p(r),f(Q,n)?(r.enumerable?(f(e,U)&&e[U][n]&&(e[U][n]=!1),r=b(r,{enumerable:m(0,!1)})):(f(e,U)||X(e,U,m(1,{})),e[U][n]=!0),ne(e,n,r)):X(e,n,r)},se=function(e,t){p(e);var r=y(t),n=_(r).concat(he(r));return N(n,function(t){s&&!ce.call(r,t)||ae(e,t,r[t])}),e},ue=function(e,t){return void 0===t?b(e):se(b(e),t)},ce=function(e){var t=g(e,!0),r=K.call(this,t);return!(this===G&&f(Q,t)&&!f(J,t))&&(!(r||!f(this,t)||!f(Q,t)||f(this,U)&&this[U][t])||r)},le=function(e,t){var r=y(e),n=g(t,!0);if(r!==G||!f(Q,n)||f(J,n)){var i=Y(r,n);return!i||!f(Q,n)||f(r,U)&&r[U][n]||(i.enumerable=!0),i}},fe=function(e){var t=V(y(e)),r=[];return N(t,function(e){f(Q,e)||f(O,e)||r.push(e)}),r},he=function(e){var t=e===G,r=V(t?J:y(e)),n=[];return N(r,function(e){!f(Q,e)||t&&!f(G,e)||n.push(Q[e])}),n};if(u||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),r=function(e){this===G&&r.call(J,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ne(this,t,m(1,e))};return s&&re&&ne(G,t,{configurable:!0,set:r}),ie(t,e)},R(z.prototype,"toString",function(){return B(this).tag}),R(z,"withoutSetter",function(e){return ie(L(e),e)}),C.f=ce,x.f=ae,k.f=le,A.f=w.f=fe,S.f=he,I.f=function(e){return ie(F(e),e)},s&&(X(z.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||R(G,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),N(_(ee),function(e){M(e)}),n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(Z,t))return Z[t];var r=z(t);return Z[t]=r,$[r]=t,r},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f($,e))return $[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:ue,defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe,getOwnPropertySymbols:he}),n({target:"Object",stat:!0,forced:l(function(){S.f(1)})},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),H){n({target:"JSON",stat:!0,forced:!u||l(function(){var e=z();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))})},{stringify:function(e,t,r){for(var n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t,(d(t)||void 0!==e)&&!oe(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}})}z.prototype[q]||P(z.prototype,q,z.prototype.valueOf),j(z,"Symbol"),O[U]=!0},function(e,t,r){var n=r(17),i=r(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(n(e))}},function(e,t,r){var n=r(57);t.f=n},function(e,t,r){var n=r(43),i=r(23),o=r(170),a=r(27).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,r){r(171)("asyncIterator")},function(e,t,r){"use strict";var n=r(10),i=r(13),o=r(11),a=r(23),s=r(22),u=r(27).f,c=r(40),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(h,l);var d=h.prototype=l.prototype;d.constructor=h;var p=d.toString,v="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(f,e))return"";var r=v?t.slice(7,-1):t.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(e,t,r){r(171)("hasInstance")},function(e,t,r){r(171)("isConcatSpreadable")},function(e,t,r){r(171)("iterator")},function(e,t,r){r(171)("match")},function(e,t,r){r(171)("matchAll")},function(e,t,r){r(171)("replace")},function(e,t,r){r(171)("search")},function(e,t,r){r(171)("species")},function(e,t,r){r(171)("split")},function(e,t,r){r(171)("toPrimitive")},function(e,t,r){r(171)("toStringTag")},function(e,t,r){r(171)("unscopables")},function(e,t,r){r(85)(Math,"Math",!0)},function(e,t,r){var n=r(11);r(85)(n.JSON,"JSON",!0)},function(e,t,r){r(189);var n=r(61);e.exports=n("String","padStart")},function(e,t,r){"use strict";var n=r(10),i=r(190).start;n({target:"String",proto:!0,forced:r(192)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(47),i=r(191),o=r(20),a=Math.ceil,s=function(e){return function(t,r,s){var u,c,l=String(o(t)),f=l.length,h=void 0===s?" ":String(s),d=n(r);return d<=f||""==h?l:(u=d-f,c=i.call(h,a(u/h.length)),c.length>u&&(c=c.slice(0,u)),e?l+c:c+l)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,r){"use strict";var n=r(48),i=r(20);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t,r){var n=r(127);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){r(194);var n=r(61);e.exports=n("String","padEnd")},function(e,t,r){"use strict";var n=r(10),i=r(190).end;n({target:"String",proto:!0,forced:r(192)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(196);var n=r(43);e.exports=n.Object.values},function(e,t,r){var n=r(10),i=r(197).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,r){var n=r(13),i=r(73),o=r(17),a=r(15).f,s=function(e){return function(t){for(var r,s=o(t),u=i(s),c=u.length,l=0,f=[];c>l;)r=u[l++],n&&!a.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){asyncGeneratorStep(s,n,i,o,a,"next",e)}function a(e){asyncGeneratorStep(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="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 setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"==typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var n=Object.create(null),i=null,o=null;for(var a in t)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||t[a]instanceof Uint8Array)n[a]=t[a];else{var s=t[a];if("string"==typeof s)n[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[a]=new Uint8Array(s)}else n[a]=new Uint8Array(s)}else o=t[a];else i=t[a];else n[a]=new URL(t[a],window.location).href;if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!o){var u={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=u.port?PDFWorker.fromPort(u):new PDFWorker(u),r._worker=o}var c=r.docId;return o.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,n,i,c),t=new Promise(function(e){var t;i?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},i):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),e(t)});return Promise.all([e,t]).then(function(e){var t=_slicedToArray(e,2),i=t[0],a=t[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(c,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var u=new WorkerTransport(s,r,a,n);r._transport=u,s.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.5.207",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var e=0;return function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),t}()}(),PDFDataRangeTransport=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(e,t)}}catch(e){n.e(e)}finally{n.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then(function(){var n,i=_createForOfIteratorHelper(r._progressListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(e,t)}}catch(e){i.e(e)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var r,n=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(e)}}catch(e){n.e(e)}finally{n.f()}})}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then(function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;){(0,t.value)()}}catch(e){r.e(e)}finally{r.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(e){return e&&e.dest?e.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,i=e.offsetX,o=void 0===i?0:i,a=e.offsetY,s=void 0===a?0:a,u=e.dontFlip,c=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:o,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,i=e.intent,o=void 0===i?"display":i,a=e.enableWebGL,s=void 0!==a&&a,u=e.renderInteractiveForms,c=void 0!==u&&u,l=e.transform,f=void 0===l?null:l,h=e.imageLayer,d=void 0===h?null:h,p=e.canvasFactory,v=void 0===p?null:p,y=e.background,g=void 0===y?null:y;this._stats&&this._stats.time("Overall");var m="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[m]||(this.intentStates[m]=Object.create(null));var b=this.intentStates[m];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,A=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:m,renderInteractiveForms:!0===c}));var w=function(e){var r=b.renderTasks.indexOf(S);r>=0&&b.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===m)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(S.capability.reject(e),t._abortOperatorList({intentState:b,reason:e})):S.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:w,params:{canvasContext:r,viewport:n,transform:f,imageLayer:d,background:g},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:A,useRequestAnimationFrame:"print"!==m,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(S);var k=S.task;return b.displayReadyCapability.promise.then(function(e){if(t.pendingCleanup)return void w();t._stats&&t._stats.time("Rendering"),S.initializeGraphics(e),S.operatorListChanged()}).catch(w),k}},{key:"getOperatorList",value:function(){function e(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var e=r.renderTasks.indexOf(t);e>=0&&r.renderTasks.splice(e,1)}}this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var t,r=this.intentStates.oplist;return r.opListReadCapability||(t={},t.operatorListChanged=e,r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(t),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==i},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise(function(e,r){function n(){i.read().then(function(t){var r,i=t.value;if(t.done)return void e(o);Object.assign(o.styles,i.styles),(r=o.items).push.apply(r,_toConsumableArray(i.items)),n()},r)}var i=t.getReader(),o={items:[],styles:Object.create(null)};n()})}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach(function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach(function(e){var r=e.capability.promise.catch(function(){});t.push(r),e.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some(function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(function(t){delete e.intentStates[t]}),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r<n;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk;for(var i=0;i<t.renderTasks.length;i++)t.renderTasks[i].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",e),n=r.getReader(),i=this.intentStates[e.intent];i.streamReader=n;!function e(){n.read().then(function(r){var n=r.value;if(r.done)return void(i.streamReader=null);t._transport.destroyed||(t._renderPageChunk(n,i),e())},function(e){if(i.streamReader=null,!t._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var r=0;r<i.renderTasks.length;r++)i.renderTasks[r].operatorListChanged();t._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}})}()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,n=e.reason,i=e.force,o=void 0!==i&&i;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!o){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout(function(){t._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(function(e){return t.intentStates[e]===r&&(delete t.intentStates[e],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){function r(e){if("object"!==_typeof(e)||null===e)return e;if(i.has(e))return i.get(e);var n,o;if((n=e.buffer)&&(0,_util.isArrayBuffer)(n)){return o=t&&t.includes(n)?new e.constructor(n,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,o),o}o=Array.isArray(e)?[]:{},i.set(e,o);for(var a in e){for(var s=void 0,u=e;!(s=Object.getOwnPropertyDescriptor(u,a));)u=Object.getPrototypeOf(u);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=r(s.value);else if(e.hasOwnProperty&&e.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[a]))}return o}var n=this;if(!this._defer)return void this._listeners.forEach(function(t){t.call(n,{data:e})});var i=new WeakMap,o={data:r(e)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(n,o)})})}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler())){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,i=t.port,o=void 0===i?null:i,a=t.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,e),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),i=function(){r.removeEventListener("error",o),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=function(){e._webWorker||i()};r.addEventListener("error",o),n.on("test",function(t){if(r.removeEventListener("error",o),e.destroyed)return void i();t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())}),n.on("ready",function(t){if(r.removeEventListener("error",o),e.destroyed)return void i();try{a()}catch(t){e._setupFakeWorker()}});var a=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(t){if(e.destroyed)return void e._readyCapability.reject(new Error("Worker was destroyed"));var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(i,r);var o=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=o,e._readyCapability.resolve(),o.send("configure",{verbosity:e.verbosity})}).catch(function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,i){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",function(t,r){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then(function(e){var t=e.value;if(e.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t])}).catch(function(e){r.error(e)})},r.onCancel=function(t){e._fullReader.cancel(t)}}),t.on("ReaderHeadersReady",function(t){var n=(0,_util.createPromiseCapability)(),i=e._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),i.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},n.reject),n.promise}),t.on("GetRangeReader",function(t,r){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=e._networkStream.getRangeReader(t.begin,t.end);if(!n)return void r.close();r.onPull=function(){n.read().then(function(e){var t=e.value;if(e.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t])}).catch(function(e){r.error(e)})},r.onCancel=function(e){n.cancel(e)}}),t.on("GetDoc",function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))}),t.on("DocException",function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}r._capability.reject(t)}),t.on("PasswordRequest",function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(t){e._passwordCapability.reject(t)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise}),t.on("DataLoaded",function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)}),t.on("StartRenderPage",function(t){if(!e.destroyed){e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)}}),t.on("commonobj",function(r){if(!e.destroyed){var n=_slicedToArray(r,3),i=n[0],o=n[1],a=n[2];if(!e.commonObjs.has(i))switch(o){case"Font":var s=e._params;if("error"in a){var u=a.error;(0,_util.warn)("Error during font loading: ".concat(u)),e.commonObjs.resolve(i,u);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var l=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(l).catch(function(e){return t.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&l.data&&(l.data=null),e.commonObjs.resolve(i,l)});break;case"FontPath":case"FontType3Res":case"Image":e.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),t.on("obj",function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],i=r[1],o=r[2],a=r[3],s=e.pageCache[i];if(!s.objs.has(n))switch(o){case"Image":s.objs.resolve(n,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),t.on("DocProgress",function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",function(t,r){if(e.destroyed)return void r.error(new Error("Worker was destroyed"));var n=!1;r.onPull=function(){if(n)return void r.close();n=!0,e.CMapReaderFactory.fetch(t).then(function(e){r.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){r.error(e)})}})}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n});return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,r=e.pageCache.length;t<r;t++){var n=e.pageCache[t];if(n){if(!n.cleanup())throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet;return function(){function t(e){var r=e.callback,n=e.params,i=e.objs,o=e.commonObjs,a=e.operatorList,s=e.pageIndex,u=e.canvasFactory,c=e.webGLContext,l=e.useRequestAnimationFrame,f=void 0!==l&&l,h=e.pdfBug,d=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=c,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,i=r.viewport,o=r.transform,a=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady)return void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound));this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){e._nextBound().catch(e.cancel.bind(e))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){function t(){return r.apply(this,arguments)}var r=_asyncToGenerator(_regenerator.default.mark(function t(){return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}},t,this)}));return t}()}]),t}()}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=c();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){f(s,n,i,o,a,"next",e)}function a(e){f(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var y,g=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),m=r(5),b=function(){function e(t){var r=t.docId,n=t.onUnsupportedFeature;d(this,e),this.constructor===e&&(0,m.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return v(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){function e(e){return t.apply(this,arguments)}var t=h(g.default.mark(function e(t){var r,n,i=this;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(r=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:m.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,m.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(n=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise(function(e){var r=i._queueLoadingCallback(e);i._prepareFontLoadEvent([n],[t],r)});case 26:case"end":return e.stop()}},e,this,[[7,12]])}));return e}()},{key:"_queueLoadingCallback",value:function(e){(0,m.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,m.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!=typeof document&&!!document.fonts;return(0,m.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,m.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,m.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=y,t.FontLoader=y=function(e){function t(e){var n;return d(this,t),n=r.call(this,e),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}i(t,e);var r=a(t);return v(t,[{key:"_queueLoadingCallback",value:function(e){function t(){for((0,m.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;r.requests.length>0&&r.requests[0].done;){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}function o(e,t){return++l>30?((0,m.warn)("Load test font never loaded."),void t()):(c.font="30px "+e,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?void t():void setTimeout(o.bind(null,e,t)))}var a,s,u=document.createElement("canvas");u.width=1,u.height=1;var c=u.getContext("2d"),l=0,f="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont;h=i(h,976,f.length,f);var d=n(h,16);for(a=0,s=f.length-3;a<s;a+=4)d=d-1482184792+n(f,a)|0;a<f.length&&(d=d-1482184792+n(f+"XXX",a)|0),h=i(h,16,4,(0,m.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(h),");"),v='@font-face {font-family:"'.concat(f,'";src:').concat(p,"}");this.insertRule(v);var y=[];for(a=0,s=t.length;a<s;a++)y.push(t[a].loadedName);y.push(f);var g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",a=0,s=y.length;a<s;++a){var b=document.createElement("span");b.textContent="Hi",b.style.fontFamily=y[a],g.appendChild(b)}document.body.appendChild(g),o(f,function(){document.body.removeChild(g),r.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,m.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){return(0,m.shadow)(this,"_loadTestFont",function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")}())}}]),t}(b);var _=function(){function e(t,r){var n=r.isEvalSupported,i=void 0===n||n,o=r.disableFontFace,a=void 0!==o&&o,s=r.ignoreErrors,u=void 0!==s&&s,c=r.onUnsupportedFeature,l=void 0===c?null:c,f=r.fontRegistry,h=void 0===f?null:f;d(this,e),this.compiledGlyphs=Object.create(null);for(var p in t)this[p]=t[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===u,this._onUnsupportedFeature=l,this.fontRegistry=h}return v(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,m.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:m.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,m.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&m.IsEvalSupportedCached.value){for(var i,o="",a=0,s=r.length;a<s;a++)n=r[a],i=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+i+");\n";return this.compiledGlyphs[t]=new Function("c","size",o)}return this.compiledGlyphs[t]=function(e,t){for(var i=0,o=r.length;i<o;i++)n=r[i],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}]),e}();t.FontFaceObject=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var n=r(7),i=Object.create(null);!function(){n.isNodeJS&&(i.disableFontFace=!0)}();var o=Object.freeze(i);t.apiCompatibilityParams=o},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=t*i-r*n,u=r*n-t*i;return[i/s,r/u,n/u,t/s,(i*o-n*a)/u,(r*o-t*a)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,n,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*n+s[2]*i,s[1]*n+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],e._originalTransform(t,r,n,i,o,a)},e.setTransform=function(t,r,n,i,o,a){this._transformMatrix=[t,r,n,i,o,a],e._originalSetTransform(t,r,n,i,o,a)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}function s(e){var t,r,n,i,o=e.width,a=e.height,s=o+1,u=new Uint8Array(s*(a+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=o+7&-8,f=e.data,h=new Uint8Array(l*a),d=0;for(t=0,i=f.length;t<i;t++)for(var p=128,v=f[t];p>0;)h[d++]=v&p?0:255,p>>=1;var y=0;for(d=0,0!==h[d]&&(u[0]=1,++y),r=1;r<o;r++)h[d]!==h[d+1]&&(u[r]=h[d]?2:1,++y),d++;for(0!==h[d]&&(u[r]=2,++y),t=1;t<a;t++){d=t*l,n=t*s,h[d-l]!==h[d]&&(u[n]=h[d]?1:8,++y);var g=(h[d]?4:0)+(h[d-l]?8:0);for(r=1;r<o;r++)g=(g>>2)+(h[d+1]?4:0)+(h[d-l+1]?8:0),c[g]&&(u[n+r]=c[g],++y),d++;if(h[d-l]!==h[d]&&(u[n+r]=h[d]?2:4,++y),y>1e3)return null}for(d=l*(a-1),n=t*s,0!==h[d]&&(u[n]=8,++y),r=1;r<o;r++)h[d]!==h[d+1]&&(u[n+r]=h[d]?4:8,++y),d++;if(0!==h[d]&&(u[n+r]=4,++y),y>1e3)return null;var m=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(t=0;y&&t<=a;t++){for(var _=t*s,A=_+o;_<A&&!u[_];)_++;if(_!==A){var w,S=[_%s,t],k=u[_],x=_;do{var C=m[k];do{_+=C}while(!u[_]);w=u[_],5!==w&&10!==w?(k=w,u[_]=0):(k=w&51*k>>4,u[_]&=k>>2|k<<2),S.push(_%s),S.push(_/s|0),u[_]||--y}while(x!==_);b.push(S),--t}}return function(e){e.save(),e.scale(1/o,-1/a),e.translate(0,-a),e.beginPath();for(var t=0,r=b.length;t<r;t++){var n=b[t];e.moveTo(n[0],n[1]);for(var i=2,s=n.length;i<s;i+=2)e.lineTo(n[i],n[i+1])}e.fill(),e.beginPath(),e.restore()}}Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var u=r(5),c=r(202),l=16,f=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,r),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),n&&a(i.context),i},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}(),h=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=u.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=u.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=u.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),d=function(){function e(e,t,r,n,i,o){this.ctx=e,this.current=new h,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new f(this.canvasFactory),e&&a(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);var r,n,i,o,a,s=t.height,c=t.width,f=s%l,h=(s-f)/l,d=0===f?h:h+1,p=e.createImageData(c,l),v=0,y=t.data,g=p.data;if(t.kind===u.ImageKind.GRAYSCALE_1BPP){var m=y.byteLength,b=new Uint32Array(g.buffer,0,g.byteLength>>2),_=b.length,A=c+7>>3,w=4294967295,S=u.IsLittleEndianCached.value?4278190080:255;for(n=0;n<d;n++){for(o=n<h?l:f,r=0,i=0;i<o;i++){for(var k=m-v,x=0,C=k>A?c:8*k-7,P=-8&C,R=0,T=0;x<P;x+=8)T=y[v++],b[r++]=128&T?w:S,b[r++]=64&T?w:S,b[r++]=32&T?w:S,b[r++]=16&T?w:S,b[r++]=8&T?w:S,b[r++]=4&T?w:S,b[r++]=2&T?w:S,b[r++]=1&T?w:S;for(;x<C;x++)0===R&&(T=y[v++],R=128),b[r++]=T&R?w:S,R>>=1}for(;r<_;)b[r++]=0;e.putImageData(p,0,n*l)}}else if(t.kind===u.ImageKind.RGBA_32BPP){for(i=0,a=c*l*4,n=0;n<h;n++)g.set(y.subarray(v,v+a)),v+=a,e.putImageData(p,0,i),i+=l;n<d&&(a=c*f*4,g.set(y.subarray(v,v+a)),e.putImageData(p,0,i))}else{if(t.kind!==u.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(o=l,a=c*o,n=0;n<d;n++){for(n>=h&&(o=f,a=c*o),r=0,i=a;i--;)g[r++]=y[v++],g[r++]=y[v++],g[r++]=y[v++],g[r++]=255;e.putImageData(p,0,n*l)}}}function r(e,t){for(var r=t.height,n=t.width,i=r%l,o=(r-i)/l,a=0===i?o:o+1,s=e.createImageData(n,l),u=0,c=t.data,f=s.data,h=0;h<a;h++){for(var d=h<o?l:i,p=3,v=0;v<d;v++)for(var y=0,g=0;g<n;g++){if(!y){var m=c[u++];y=128}f[p]=m&y?0:255,p+=4,y>>=1}e.putImageData(s,0,h*l)}}function i(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,i=r.length;n<i;n++){var o=r[n];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function o(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function d(e,t,r,n){for(var i=e.length,o=3;o<i;o+=4){var a=e[o];if(0===a)e[o-3]=t,e[o-2]=r,e[o-1]=n;else if(a<255){var s=255-a;e[o-3]=e[o-3]*a+t*s>>8,e[o-2]=e[o-2]*a+r*s>>8,e[o-1]=e[o-1]*a+n*s>>8}}}function p(e,t,r){for(var n=e.length,i=3;i<n;i+=4){var o=r?r[e[i]]:e[i];t[i]=t[i]*o*(1/255)|0}}function v(e,t,r){for(var n=e.length,i=3;i<n;i+=4){var o=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=r?t[i]*r[o>>8]>>8:t[i]*o>>16}}function y(e,t,r,n,i,o,a){var s,u=!!o,c=u?o[0]:0,l=u?o[1]:0,f=u?o[2]:0;s="Luminosity"===i?v:p;for(var h=Math.min(n,Math.ceil(1048576/r)),y=0;y<n;y+=h){var g=Math.min(h,n-y),m=e.getImageData(0,y,r,g),b=t.getImageData(0,y,r,g);u&&d(m.data,c,l,f),s(m.data,b.data,a),e.putImageData(b,0,y)}}function g(e,t,r,n){var i=t.canvas,o=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var a=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:i,properties:{subtype:t.subtype,backdrop:a}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}y(o,r,i.width,i.height,t.subtype,a,t.transferMap),e.drawImage(i,0,0)}var m=["butt","round","square"],b=["miter","round","bevel"],_={},A={};e.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,n=e.transparency,i=void 0!==n&&n,a=e.background,s=void 0===a?null:a,u=this.ctx.canvas.width,c=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,u,c),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",u,c,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),o(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,r,i){var o=e.argsArray,a=e.fnArray,s=t||0,c=o.length;if(c===s)return s;for(var l,f=c-s>10&&"function"==typeof r,h=f?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((l=a[s])!==u.OPS.dependency)this[l].apply(this,o[s]);else{var y,g=n(o[s]);try{for(g.s();!(y=g.n()).done;){var m=y.value,b=m.startsWith("g_")?p:v;if(!b.has(m))return b.get(m,r),s}}catch(e){g.e(e)}finally{g.f()}}if(++s===c)return s;if(f&&++d>10){if(Date.now()>h)return r(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=m[e]},setLineJoin:function(e){this.ctx.lineJoin=b[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var n=e[t],i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,t,r,!0),a=this.ctx,s=a.mozCurrentTransform;this.ctx.save();var u=o.context;u.scale(1/e.scaleX,1/e.scaleY),u.translate(-e.offsetX,-e.offsetY),u.transform.apply(u,s),e.startTransformInverse=u.mozCurrentTransformInverse,i(a,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),i(e,this.ctx),this.current.resumeSMaskCtx=e;var t=u.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),i(e,this.ctx);var t=u.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,i,o){this.ctx.transform(e,t,r,n,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,a=0,s=0,c=e.length;a<c;a++)switch(0|e[a]){case u.OPS.rectangle:i=t[s++],o=t[s++];var l=t[s++],f=t[s++];0===l&&(l=this.getSinglePixelWidth()),0===f&&(f=this.getSinglePixelWidth());var h=i+l,d=o+f;this.ctx.moveTo(i,o),this.ctx.lineTo(h,o),this.ctx.lineTo(h,d),this.ctx.lineTo(i,d),this.ctx.lineTo(i,o),this.ctx.closePath();break;case u.OPS.moveTo:i=t[s++],o=t[s++],r.moveTo(i,o);break;case u.OPS.lineTo:i=t[s++],o=t[s++],r.lineTo(i,o);break;case u.OPS.curveTo:i=t[s+4],o=t[s+5],r.bezierCurveTo(t[s],t[s+1],t[s+2],t[s+3],i,o),s+=6;break;case u.OPS.curveTo2:r.bezierCurveTo(i,o,t[s],t[s+1],t[s+2],t[s+3]),i=t[s+2],o=t[s+3],s+=4;break;case u.OPS.curveTo3:i=t[s+2],o=t[s+3],r.bezierCurveTo(t[s],t[s+1],i,o,i,o),s+=4;break;case u.OPS.closePath:r.closePath()}n.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){t.save();var n=t.mozCurrentTransform,i=u.Util.singularValueDecompose2dScale(n)[0];t.strokeStyle=r.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,i=!1;n&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),i=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=A},beginText:function(){this.current.textMatrix=u.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0===e)return void t.beginPath();t.save(),t.beginPath();for(var r=0;r<e.length;r++){var n=e[r];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),n=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(n.fontMatrix=r.fontMatrix?r.fontMatrix:u.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,u.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var i=r.loadedName||"sans-serif",o="normal";r.black?o="900":r.bold&&(o="bold");var a=r.italic?"italic":"normal",s='"'.concat(i,'", ').concat(r.fallbackName),c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(a," ").concat(o," ").concat(c,"px ").concat(s)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,i,o){this.current.textMatrix=[e,t,r,n,i,o],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,n){var i,o=this.ctx,a=this.current,s=a.font,c=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,f=c&u.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&u.TextRenderingMode.ADD_TO_PATH_FLAG),d=a.patternFill&&!s.missingFile;if((s.disableFontFace||h||d)&&(i=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||d?(o.save(),o.translate(t,r),o.beginPath(),i(o,l),n&&o.setTransform.apply(o,n),f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fill(),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:l,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,n=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return(0,u.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var n=t.fontSize;if(0!==n){var i=this.ctx,o=t.fontSizeScale,a=t.charSpacing,s=t.wordSpacing,c=t.fontDirection,l=t.textHScale*c,f=e.length,h=r.vertical,d=h?1:-1,p=r.defaultVMetrics,v=n*t.fontMatrix[0],y=t.textRenderingMode===u.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;i.save();var g;if(t.patternFill){i.save();var m=t.fillColor.getPattern(i,this);g=i.mozCurrentTransform,i.restore(),i.fillStyle=m}i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),c>0?i.scale(l,-1):i.scale(l,1);var b=t.lineWidth,_=t.textMatrixScale;if(0===_||0===b){var A=t.textRenderingMode&u.TextRenderingMode.FILL_STROKE_MASK;A!==u.TextRenderingMode.STROKE&&A!==u.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var w,S=0;for(w=0;w<f;++w){var k=e[w];if((0,u.isNum)(k))S+=d*k*n/1e3;else{var x,C,P,R,T=!1,E=(k.isSpace?s:0)+a,O=k.fontChar,L=k.accent,F=k.width;if(h){var I,M,j;I=k.vmetric||p,M=k.vmetric?I[1]:.5*F,M=-M*v,j=I[2]*v,F=I?-I[0]:F,x=M/o,C=(S+j)/o}else x=S/o,C=0;if(r.remeasure&&F>0){var D=1e3*i.measureText(O).width/n*o;if(F<D&&this.isFontSubpixelAAEnabled){var N=F/D;T=!0,i.save(),i.scale(N,1),x/=N}else F!==D&&(x+=(F-D)/2e3*n/o)}(k.isInFont||r.missingFile)&&(y&&!L?i.fillText(O,x,C):(this.paintChar(O,x,C,g),L&&(P=x+L.offset.x/o,R=C-L.offset.y/o,this.paintChar(L.fontChar,P,R,g))));var U;U=h?F*v-E*c:F*v+E*c,S+=U,T&&i.restore()}}h?t.y-=S:t.x+=S*l,i.restore()}},showType3Text:function(e){var t,r,n,i,o=this.ctx,a=this.current,s=a.font,c=a.fontSize,l=a.fontDirection,f=s.vertical?1:-1,h=a.charSpacing,d=a.wordSpacing,p=a.textHScale*l,v=a.fontMatrix||u.FONT_IDENTITY_MATRIX,y=e.length,g=a.textRenderingMode===u.TextRenderingMode.INVISIBLE;if(!g&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(p,l),t=0;t<y;++t)if(r=e[t],(0,u.isNum)(r))i=f*r*c/1e3,this.ctx.translate(i,0),a.x+=i*p;else{var m=(r.isSpace?d:0)+h,b=s.charProcOperatorList[r.operatorListId];if(b){this.processingType3=r,this.save(),o.scale(c,c),o.transform.apply(o,v),this.executeOperatorList(b),this.restore();var _=u.Util.applyTransform([r.width,0],v);n=_[0]*c+m,o.translate(n,0),a.x+=n*p}else(0,u.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,n,i,o){this.ctx.rect(r,n,i-r,o-n),this.clip(),this.endPath()},getColorN_Pattern:function(t){var r,n=this;if("TilingPattern"===t[0]){var i=t[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:function(t){return new e(t,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};r=new c.TilingPattern(t,i,this.ctx,a,o)}else r=(0,c.getShadingPatternFromIR)(t);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var n=u.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(e,t,r){var n=u.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,c.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var n=t.mozCurrentTransformInverse;if(n){var i=t.canvas,o=i.width,a=i.height,s=u.Util.applyTransform([0,0],n),l=u.Util.applyTransform([0,a],n),f=u.Util.applyTransform([o,0],n),h=u.Util.applyTransform([o,a],n),d=Math.min(s[0],l[0],f[0],h[0]),p=Math.min(s[1],l[1],f[1],h[1]),v=Math.max(s[0],l[0],f[0],h[0]),y=Math.max(s[1],l[1],f[1],h[1]);this.ctx.fillRect(d,p,v-d,y-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,u.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,u.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,u.info)("TODO: Support non-isolated groups."),e.knockout&&(0,u.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var n=u.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),o=[0,0,t.canvas.width,t.canvas.height];n=u.Util.intersect(n,o)||[0,0,0,0];var a=Math.floor(n[0]),s=Math.floor(n[1]),c=Math.max(Math.ceil(n[2])-a,1),l=Math.max(Math.ceil(n[3])-s,1),f=1,h=1;c>4096&&(f=c/4096,c=4096),l>4096&&(h=l/4096,l=4096);var d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,c,l,!0),v=p.context;v.scale(1/f,1/h),v.translate(-a,-s),v.transform.apply(v,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:a,offsetY:s,scaleX:f,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(a,s),t.scale(f,h)),i(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),o(this.ctx),this.current=new h,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],n,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,n=e.width,i=e.height,o=this.current.fillColor,a=this.current.patternFill,u=this.processingType3;if(u&&void 0===u.compiled&&(u.compiled=n<=1e3&&i<=1e3?s({data:e.data,width:n,height:i}):null),u&&u.compiled)return void u.compiled(t);var c=this.cachedCanvases.getCanvas("maskCanvas",n,i),l=c.context;l.save(),r(l,e),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,n,i),l.restore(),this.paintInlineImageXObject(c.canvas)},paintImageMaskXObjectRepeat:function(e,t,n,i){var o=e.width,a=e.height,s=this.current.fillColor,u=this.current.patternFill,c=this.cachedCanvases.getCanvas("maskCanvas",o,a),l=c.context;l.save(),r(l,e),l.globalCompositeOperation="source-in",l.fillStyle=u?s.getPattern(l,this):s,l.fillRect(0,0,o,a),l.restore();for(var f=this.ctx,h=0,d=i.length;h<d;h+=2)f.save(),f.transform(t,0,0,n,i[h],i[h+1]),f.scale(1,-1),f.drawImage(c.canvas,0,0,o,a,0,-1,1,1),f.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,n=this.current.fillColor,i=this.current.patternFill,o=0,a=e.length;o<a;o++){var s=e[o],u=s.width,c=s.height,l=this.cachedCanvases.getCanvas("maskCanvas",u,c),f=l.context;f.save(),r(f,s),f.globalCompositeOperation="source-in",f.fillStyle=i?n.getPattern(f,this):n,f.fillRect(0,0,u,c),f.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(l.canvas,0,0,u,c,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(!t)return void(0,u.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(t)},paintImageXObjectRepeat:function(e,t,r,n){var i=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(!i)return void(0,u.warn)("Dependent image isn't ready yet");for(var o=i.width,a=i.height,s=[],c=0,l=n.length;c<l;c+=2)s.push({transform:[t,0,0,r,n[c],n[c+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(i,s)},paintInlineImageXObject:function(e){var r=e.width,n=e.height,i=this.ctx;this.save(),i.scale(1/r,-1/n);var o,a,s=i.mozCurrentTransformInverse,u=s[0],c=s[1],l=Math.max(Math.sqrt(u*u+c*c),1),f=s[2],h=s[3],d=Math.max(Math.sqrt(f*f+h*h),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)o=e;else{a=this.cachedCanvases.getCanvas("inlineImage",r,n);var p=a.context;t(p,e),o=a.canvas}for(var v=r,y=n,g="prescale1";l>2&&v>1||d>2&&y>1;){var m=v,b=y;l>2&&v>1&&(m=Math.ceil(v/2),l/=v/m),d>2&&y>1&&(b=Math.ceil(y/2),d/=y/b),a=this.cachedCanvases.getCanvas(g,m,b),p=a.context,p.clearRect(0,0,m,b),p.drawImage(o,0,0,v,y,0,0,m,b),o=a.canvas,v=m,y=b,g="prescale1"===g?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,y,0,-n,r,n),this.imageLayer){var _=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:_[0],top:_[1],width:r/s[0],height:n/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){var n=this.ctx,i=e.width,o=e.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);t(a.context,e);for(var s=0,u=r.length;s<u;s++){var c=r[s];if(n.save(),n.transform.apply(n,c.transform),n.scale(1,-1),n.drawImage(a.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:l[0],top:l[1],width:i,height:o})}n.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,u.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===A?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}};for(var w in u.OPS)e.prototype[u.OPS[w]]=e.prototype[w];return e}();t.CanvasGraphics=d},function(e,t,r){"use strict";function n(e,t){if(t&&"undefined"!=typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}}function i(e){var t=a[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=i,t.TilingPattern=void 0;var o=r(5),a={};a.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7];return{type:"Pattern",getPattern:function(e){n(e,r);var c;"axial"===t?c=e.createLinearGradient(o[0],o[1],a[0],a[1]):"radial"===t&&(c=e.createRadialGradient(o[0],o[1],s,a[0],a[1],u));for(var l=0,f=i.length;l<f;++l){var h=i[l];c.addColorStop(h[0],h[1])}return c}}}};var s=function(){function e(e,t,r,n,i,o,a,s){var u,c=t.coords,l=t.colors,f=e.data,h=4*e.width;c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=o,o=a,a=u),c[n+1]>c[i+1]&&(u=n,n=i,i=u,u=a,a=s,s=u),c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=o,o=a,a=u);var d=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,v=(c[n]+t.offsetX)*t.scaleX,y=(c[n+1]+t.offsetY)*t.scaleY,g=(c[i]+t.offsetX)*t.scaleX,m=(c[i+1]+t.offsetY)*t.scaleY;if(!(p>=m))for(var b,_,A,w,S,k,x,C,P=l[o],R=l[o+1],T=l[o+2],E=l[a],O=l[a+1],L=l[a+2],F=l[s],I=l[s+1],M=l[s+2],j=Math.round(p),D=Math.round(m),N=j;N<=D;N++){if(N<y){var U=void 0;U=N<p?0:p===y?1:(p-N)/(p-y),b=d-(d-v)*U,_=P-(P-E)*U,A=R-(R-O)*U,w=T-(T-L)*U}else{var q=void 0;q=N>m?1:y===m?0:(y-N)/(y-m),b=v-(v-g)*q,_=E-(E-F)*q,A=O-(O-I)*q,w=L-(L-M)*q}var W=void 0;W=N<p?0:N>m?1:(p-N)/(p-m),S=d-(d-g)*W,k=P-(P-F)*W,x=R-(R-I)*W,C=T-(T-M)*W;for(var B=Math.round(Math.min(b,S)),G=Math.round(Math.max(b,S)),z=h*N+4*B,H=B;H<=G;H++)W=(b-H)/(b-S),W<0?W=0:W>1&&(W=1),f[z++]=_-(_-k)*W|0,f[z++]=A-(A-x)*W|0,f[z++]=w-(w-C)*W|0,f[z++]=255}}function t(t,r,n){var i,o,a=r.coords,s=r.colors;switch(r.type){case"lattice":var u=r.verticesPerRow,c=Math.floor(a.length/u)-1,l=u-1;for(i=0;i<c;i++)for(var f=i*u,h=0;h<l;h++,f++)e(t,n,a[f],a[f+1],a[f+u],s[f],s[f+1],s[f+u]),e(t,n,a[f+u+1],a[f+1],a[f+u],s[f+u+1],s[f+1],s[f+u]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)e(t,n,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function r(e,r,n,i,o,a,s,u){var c,l,f,h,d=Math.floor(e[0]),p=Math.floor(e[1]),v=Math.ceil(e[2])-d,y=Math.ceil(e[3])-p,g=Math.min(Math.ceil(Math.abs(v*r[0]*1.1)),3e3),m=Math.min(Math.ceil(Math.abs(y*r[1]*1.1)),3e3),b=v/g,_=y/m,A={coords:n,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},w=g+4,S=m+4;if(u.isEnabled)c=u.drawFigures({width:g,height:m,backgroundColor:a,figures:o,context:A}),l=s.getCanvas("mesh",w,S,!1),l.context.drawImage(c,2,2),c=l.canvas;else{l=s.getCanvas("mesh",w,S,!1);var k=l.context,x=k.createImageData(g,m);if(a){var C=x.data;for(f=0,h=C.length;f<h;f+=4)C[f]=a[0],C[f+1]=a[1],C[f+2]=a[2],C[f+3]=255}for(f=0;f<o.length;f++)t(x,o[f],A);k.putImageData(x,2,2),c=l.canvas}return{canvas:c,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}return r}();a.Mesh={fromIR:function(e){var t=e[2],r=e[3],i=e[4],a=e[5],u=e[6],c=e[7],l=e[8];return{type:"Pattern",getPattern:function(e,f,h){n(e,c);var d;if(h)d=o.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(d=o.Util.singularValueDecompose2dScale(f.baseTransform),u){var p=o.Util.singularValueDecompose2dScale(u);d=[d[0]*p[0],d[1]*p[1]]}var v=s(a,d,t,r,i,h?null:l,f.cachedCanvases,f.webGLContext);return h||(e.setTransform.apply(e,f.baseTransform),u&&e.transform.apply(e,u)),e.translate(v.offsetX,v.offsetY),e.scale(v.scaleX,v.scaleY),e.createPattern(v.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var u=function(){function e(e,t,r,n,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=n,this.baseTransform=i,this.type="Pattern",this.ctx=r}var t={COLORED:1,UNCOLORED:2};return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,n=this.xstep,i=this.ystep,a=this.paintType,s=this.tilingType,u=this.color,c=this.canvasGraphicsFactory;(0,o.info)("TilingType: "+s);var l=r[0],f=r[1],h=r[2],d=r[3],p=o.Util.singularValueDecompose2dScale(this.matrix),v=o.Util.singularValueDecompose2dScale(this.baseTransform),y=[p[0]*v[0],p[1]*v[1]],g=this.getSizeAndScale(n,this.ctx.canvas.width,y[0]),m=this.getSizeAndScale(i,this.ctx.canvas.height,y[1]),b=e.cachedCanvases.getCanvas("pattern",g.size,m.size,!0),_=b.context,A=c.createCanvasGraphics(_);return A.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(A,a,u),A.transform(g.scale,0,0,m.scale,0,0),A.transform(1,0,0,1,-l,-f),this.clipBbox(A,r,l,f,h,d),A.executeOperatorList(t),this.ctx.transform(1,0,0,1,l,f),this.ctx.scale(1/g.scale,1/m.scale),b.canvas},getSizeAndScale:function(e,t,r){e=Math.abs(e);var n=Math.max(3e3,t),i=Math.ceil(e*r);return i>=n?i=n:r=i/e,{scale:r,size:i}},clipBbox:function(e,t,r,n,i,o){if(Array.isArray(t)&&4===t.length){var a=i-r,s=o-n;e.ctx.rect(r,n,a,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,r,n){var i=e.ctx,a=e.current;switch(r){case t.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case t.UNCOLORED:var u=o.Util.makeCssRgb(n[0],n[1],n[2]);i.fillStyle=u,i.strokeStyle=u,a.fillColor=u,a.strokeColor=u;break;default:throw new o.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},e}();t.TilingPattern=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e){"@babel/helpers - typeof";return(u="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 c(e){if("object"!==u(e)||null===e)return e;switch(e.name){case"AbortException":return new f.AbortException(e.message);case"MissingPDFException":return new f.MissingPDFException(e.message);case"UnexpectedResponseException":return new f.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new f.UnknownErrorException(e.message,e.details);default:return new f.UnknownErrorException(e.message,e.toString())}}Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var l=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),f=r(5),h={UNKNOWN:0,DATA:1,ERROR:2},d={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8},p=function(){function e(t,r,n){var i=this;o(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName){if(t.stream)return void i._processStreamMessage(t);if(t.callback){var r=t.callbackId,o=i.callbackCapabilities[r];if(!o)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===h.DATA)o.resolve(t.data);else{if(t.callback!==h.ERROR)throw new Error("Unexpected callback case");o.reject(c(t.reason))}}else{var a=i.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,u=t.sourceName;return void new Promise(function(e){e(a(t.data))}).then(function(e){n.postMessage({sourceName:s,targetName:u,callback:h.DATA,callbackId:t.callbackId,data:e})},function(e){n.postMessage({sourceName:s,targetName:u,callback:h.ERROR,callbackId:t.callbackId,reason:c(e)})})}if(t.streamId)return void i._createStreamSink(t);a(t.data)}}},n.addEventListener("message",this._onComObjOnMessage)}return s(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,i=(0,f.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){i.reject(e)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,n){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName,u=this.comObj;return new ReadableStream({start:function(r){var u=(0,f.createPromiseCapability)();return i.streamControllers[o]={controller:r,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:a,targetName:s,action:e,streamId:o,data:t,desiredSize:r.desiredSize},n),u.promise},pull:function(e){var t=(0,f.createPromiseCapability)();return i.streamControllers[o].pullCall=t,u.postMessage({sourceName:a,targetName:s,stream:d.PULL,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,f.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,f.createPromiseCapability)();return i.streamControllers[o].cancelCall=t,i.streamControllers[o].isClosed=!0,u.postMessage({sourceName:a,targetName:s,stream:d.CANCEL,streamId:o,reason:c(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,i=this.sourceName,o=e.sourceName,a=this.comObj,s={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=r,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,f.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:d.ENQUEUE,streamId:n,chunk:e},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,f.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.ERROR,streamId:n,reason:c(e)}))},sinkCapability:(0,f.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[n]=s,new Promise(function(t){t(r(e.data,s))}).then(function(){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,success:!0})},function(e){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,reason:c(e)})})}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj;switch(e.stream){case d.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(c(e.reason));break;case d.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(c(e.reason));break;case d.PULL:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var o=this.streamSinks[e.streamId].onPull;new Promise(function(e){e(o&&o())}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,reason:c(e)})});break;case d.ENQUEUE:if((0,f.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case d.CLOSE:if((0,f.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case d.ERROR:(0,f.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(c(e.reason)),this._deleteStreamController(t);break;case d.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(c(e.reason)),this._deleteStreamController(t);break;case d.CANCEL:if(!this.streamSinks[t])break;var a=this.streamSinks[e.streamId].onCancel;new Promise(function(t){t(a&&a(c(e.reason)))}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:t,reason:c(e)})}),this.streamSinks[t].sinkCapability.reject(c(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){function e(e){return t.apply(this,arguments)}var t=i(l.default.mark(function e(t){return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map(function(e){return e&&e.promise}));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=p},function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||u(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function a(e){if(Array.isArray(e))return e}function s(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var d=r(5),p=r(206),v=function(){function e(t){l(this,e),(0,d.assert)("string"==typeof t,"Metadata: input is not a string"),t=this._repair(t);var r=new p.SimpleXMLParser,n=r.parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}return h(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))}),n="",i=0,o=r.length;i<o;i+=2){var a=256*r.charCodeAt(i)+r.charCodeAt(i+1);n+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+n})}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,i=0,o=n.length;i<o;i++){var a=n[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,u=a.childNodes.length;s<u;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var c=a.childNodes[s],l=c.nodeName.toLowerCase();this._metadataMap.set(l,c.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e,t=Object.create(null),r=s(this._metadataMap);try{for(r.s();!(e=r.n()).done;){var i=n(e.value,2),o=i[0],a=i[1];t[o]=a}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"has",value:function(e){return this._metadataMap.has(e)}}]),e}();t.Metadata=v},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){return c(e)||u(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(e){if(Array.isArray(e))return e}function l(e,t,r){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=f(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function h(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&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=g();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&_(e.prototype,t),r&&_(e,r),e}function w(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}function S(e){for(var t=0,r=e.length;t<r;t++)if(!w(e,t))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var k={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10},x=function(){function e(){b(this,e)}return A(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,function(e,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)})}},{key:"_parseContent",value:function(e,t){function r(){for(;i<e.length&&w(e,i);)++i}for(var n=[],i=t;i<e.length&&!w(e,i)&&">"!==e[i]&&"/"!==e[i];)++i;var o=e.substring(t,i);for(r();i<e.length&&">"!==e[i]&&"/"!==e[i]&&"?"!==e[i];){r();for(var a="",s="";i<e.length&&!w(e,i)&&"="!==e[i];)a+=e[i],++i;if(r(),"="!==e[i])return null;++i,r();var u=e[i];if('"'!==u&&"'"!==u)return null;var c=e.indexOf(u,++i);if(c<0)return null;s=e.substring(i,c),n.push({name:a,value:this._resolveEntities(s)}),i=c+1,r()}return{name:o,attributes:n,parsed:i-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var r=t;r<e.length&&!w(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;var n=e.substring(t,r);!function(){for(;r<e.length&&w(e,r);)++r}();for(var i=r;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r;return{name:n,value:e.substring(i,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var r=e[t],n=t;if("<"===r){++n;var i=e[n],o=void 0;switch(i){case"/":if(++n,(o=e.indexOf(">",n))<0)return void this.onError(k.UnterminatedElement);this.onEndElement(e.substring(n,o)),n=o+1;break;case"?":++n;var a=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+a.parsed,n+a.parsed+2))return void this.onError(k.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),n+=a.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((o=e.indexOf("--\x3e",n+3))<0)return void this.onError(k.UnterminatedComment);this.onComment(e.substring(n+3,o)),n=o+3}else if("[CDATA["===e.substring(n+1,n+8)){if((o=e.indexOf("]]>",n+8))<0)return void this.onError(k.UnterminatedCdat);this.onCdata(e.substring(n+8,o)),n=o+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(k.MalformedElement);var s=e.indexOf("[",n+8),u=!1;if((o=e.indexOf(">",n+8))<0)return void this.onError(k.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if((o=e.indexOf("]>",n+8))<0)return void this.onError(k.UnterminatedDoctypeDeclaration);u=!0}var c=e.substring(n+8,o+(u?1:0));this.onDoctype(c),n=o+(u?2:1)}break;default:var l=this._parseContent(e,n);if(null===l)return void this.onError(k.MalformedElement);var f=!1;if("/>"===e.substring(n+l.parsed,n+l.parsed+2))f=!0;else if(">"!==e.substring(n+l.parsed,n+l.parsed+1))return void this.onError(k.UnterminatedElement);this.onBeginElement(l.name,l.attributes,f),n+=l.parsed+(f?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;var h=e.substring(t,n);this.onText(this._resolveEntities(h))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),C=function(){function e(t,r){b(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return A(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]),e}(),P=function(e){function t(){var e;return b(this,t),e=r.call(this),e._currentFragment=null,e._stack=null,e._errorCode=k.NoError,e}h(t,e);var r=p(t);return A(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=k.NoError,this.parseXml(e),this._errorCode===k.NoError){var t=i(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return l(m(t.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!S(e)){var t=new C("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new C("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new C(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),t}(x);t.SimpleXMLParser=P},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var f=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),h=r(5),d=function(){function e(t,r){var n=this;u(this,e),(0,h.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var i=t.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(e,t){n._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener(function(e,t){n._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(e){n._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){n._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return l(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some(function(r){return r._begin===e.begin&&(r._enqueue(t),!0)});(0,h.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,h.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new p(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new v(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=d;var p=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var i,a=o(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._loaded+=s.byteLength}}catch(e){a.e(e)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return l(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(f.default.mark(function e(){var t,r;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,h.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),v=function(){function e(t,r,n){u(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return l(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(f.default.mark(function e(){var t,r;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,h.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";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<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var a=r(5),s=function(){function e(t){var r=t.enable,i=void 0!==r&&r;n(this,e),this._enabled=!0===i}return o(e,[{key:"composeSMask",value:function(e){var t=e.layer,r=e.mask,n=e.properties;return u.composeSMask(t,r,n)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,i=e.figures,o=e.context;return u.drawFigures(t,r,n,i,o)}},{key:"clear",value:function(){u.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=u.tryInitGL()),(0,a.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=s;var u=function(){function e(e,t,r){var n=e.createShader(r);if(e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,i=t.length;n<i;++n)e.attachShader(r,t[n]);if(e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){var o=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function i(e,t,r){e.activeTexture(r);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),n}function o(){l||(f=document.createElement("canvas"),l=f.getContext("webgl",{premultipliedalpha:!1}))}function a(){var e,i;o(),e=f,f=null,i=l,l=null;var a=t(i,h),s=r(i,d),u=n(i,[a,s]);i.useProgram(u);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.backdropLocation=i.getUniformLocation(u,"u_backdrop"),c.subtypeLocation=i.getUniformLocation(u,"u_subtype");var v=i.getAttribLocation(u,"a_texCoord"),y=i.getUniformLocation(u,"u_image"),g=i.getUniformLocation(u,"u_mask"),m=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,m),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(v),i.vertexAttribPointer(v,2,i.FLOAT,!1,0,0),i.uniform1i(y,0),i.uniform1i(g,1),p=c}function s(e,t,r){var n=e.width,o=e.height;p||a();var s=p,u=s.canvas,c=s.gl;u.width=n,u.height=o,c.viewport(0,0,c.drawingBufferWidth,c.drawingBufferHeight),c.uniform2f(s.resolutionLocation,n,o),r.backdrop?c.uniform4f(s.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):c.uniform4f(s.resolutionLocation,0,0,0,0),c.uniform1i(s.subtypeLocation,"Luminosity"===r.subtype?1:0);var l=i(c,e,c.TEXTURE0),f=i(c,t,c.TEXTURE1),h=c.createBuffer();return c.bindBuffer(c.ARRAY_BUFFER,h),c.bufferData(c.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,o,0,o,n,0,n,o]),c.STATIC_DRAW),c.enableVertexAttribArray(s.positionLocation),c.vertexAttribPointer(s.positionLocation,2,c.FLOAT,!1,0,0),c.clearColor(0,0,0,0),c.enable(c.BLEND),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.clear(c.COLOR_BUFFER_BIT),c.drawArrays(c.TRIANGLES,0,6),c.flush(),c.deleteTexture(l),c.deleteTexture(f),c.deleteBuffer(h),u}function u(){var e,i;o(),e=f,f=null,i=l,l=null;var a=t(i,v),s=r(i,y),u=n(i,[a,s]);i.useProgram(u);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.scaleLocation=i.getUniformLocation(u,"u_scale"),c.offsetLocation=i.getUniformLocation(u,"u_offset"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.colorLocation=i.getAttribLocation(u,"a_color"),g=c}function c(e,t,r,n,i){g||u();var o=g,a=o.canvas,s=o.gl;a.width=e,a.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,e,t);var c,l,f,h=0;for(c=0,l=n.length;c<l;c++)switch(n[c].type){case"lattice":f=n[c].coords.length/n[c].verticesPerRow|0,h+=(f-1)*(n[c].verticesPerRow-1)*6;break;case"triangles":h+=n[c].coords.length}var d=new Float32Array(2*h),p=new Uint8Array(3*h),v=i.coords,y=i.colors,m=0,b=0;for(c=0,l=n.length;c<l;c++){var _=n[c],A=_.coords,w=_.colors;switch(_.type){case"lattice":var S=_.verticesPerRow;f=A.length/S|0;for(var k=1;k<f;k++)for(var x=k*S+1,C=1;C<S;C++,x++)d[m]=v[A[x-S-1]],d[m+1]=v[A[x-S-1]+1],d[m+2]=v[A[x-S]],d[m+3]=v[A[x-S]+1],d[m+4]=v[A[x-1]],d[m+5]=v[A[x-1]+1],p[b]=y[w[x-S-1]],p[b+1]=y[w[x-S-1]+1],p[b+2]=y[w[x-S-1]+2],p[b+3]=y[w[x-S]],p[b+4]=y[w[x-S]+1],p[b+5]=y[w[x-S]+2],p[b+6]=y[w[x-1]],p[b+7]=y[w[x-1]+1],p[b+8]=y[w[x-1]+2],d[m+6]=d[m+2],d[m+7]=d[m+3],d[m+8]=d[m+4],d[m+9]=d[m+5],d[m+10]=v[A[x]],d[m+11]=v[A[x]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=y[w[x]],p[b+16]=y[w[x]+1],p[b+17]=y[w[x]+2],m+=12,b+=18;break;case"triangles":for(var P=0,R=A.length;P<R;P++)d[m]=v[A[P]],d[m+1]=v[A[P]+1],p[b]=y[w[P]],p[b+1]=y[w[P]+1],p[b+2]=y[w[P]+2],m+=2,b+=3}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var T=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,T),s.bufferData(s.ARRAY_BUFFER,d,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var E=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,p,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,h),s.flush(),s.deleteBuffer(T),s.deleteBuffer(E),a}var l,f,h=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",d=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",p=null,v=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",y=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;return{tryInitGL:function(){try{return o(),!!l}catch(e){}return!1},composeSMask:s,drawFigures:c,cleanup:function(){p&&p.canvas&&(p.canvas.width=0,p.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),p=null,g=null}}}()},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=s(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function u(e){"@babel/helpers - typeof";return(u="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 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)}function f(e){var t=p();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var b=r(1),_=r(5),A=function(){function e(){y(this,e)}return m(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case _.AnnotationType.LINK:return new S(e);case _.AnnotationType.TEXT:return new k(e);case _.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new R(e):e.data.checkBox?new P(e):new T(e);case"Ch":return new E(e)}return new x(e);case _.AnnotationType.POPUP:return new O(e);case _.AnnotationType.FREETEXT:return new F(e);case _.AnnotationType.LINE:return new I(e);case _.AnnotationType.SQUARE:return new M(e);case _.AnnotationType.CIRCLE:return new j(e);case _.AnnotationType.POLYLINE:return new D(e);case _.AnnotationType.CARET:return new U(e);case _.AnnotationType.INK:return new q(e);case _.AnnotationType.POLYGON:return new N(e);case _.AnnotationType.HIGHLIGHT:return new W(e);case _.AnnotationType.UNDERLINE:return new B(e);case _.AnnotationType.SQUIGGLY:return new G(e);case _.AnnotationType.STRIKEOUT:return new z(e);case _.AnnotationType.STAMP:return new H(e);case _.AnnotationType.FILEATTACHMENT:return new Y(e);default:return new w(e)}}}]),e}(),w=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return m(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=t.rect[2]-t.rect[0],a=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);var s=_.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,a-=2*t.borderStyle.width);var u=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(u>0||c>0){var l="".concat(u,"px / ").concat(c,"px");i.style.borderRadius=l}switch(t.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}t.color?i.style.borderColor=_.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new L({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),i=n.render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),S=function(e){function t(e){y(this,t);var n=!!(e.data.url||e.data.dest||e.data.action);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,b.addLinkAttributes)(r,{url:e.url,target:e.newWindow?b.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),t}(w),k=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(w),x=function(e){function t(){return y(this,t),r.apply(this,arguments)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container}}]),t}(w),C=function(e){function t(e){y(this,t);var n=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var i=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(i=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,i)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'.concat(t.loadedName,'", '):"",o=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=i+o}}}]),t}(x),P=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(x),R=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(x),T=function(e){function t(){return y(this,t),r.apply(this,arguments)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=a(v(t.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),t}(S),E=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,r=n(this.data.options);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=document.createElement("option");o.textContent=i.displayValue,o.value=i.exportValue,this.data.fieldValue.includes(i.displayValue)&&o.setAttribute("selected",!0),e.appendChild(o)}}catch(e){r.e(e)}finally{r.f()}return this.container.appendChild(e),this.container}}]),t}(x),O=function(e){function t(e){y(this,t);var n=!(!e.data.title&&!e.data.contents);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new L({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(r.style.left),o=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(r.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(n.render()),this.container}}]),t}(w),L=function(){function e(t){y(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return m(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var r=this.color;if(r){var n=.7*(255-r[0])+r[0],i=.7*(255-r[1])+r[1],o=.7*(255-r[2])+r[2];t.style.backgroundColor=_.Util.makeCssRgb(0|n,0|i,0|o)}var a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);var s=b.PDFDateString.toDateObject(this.modificationDate);if(s){var u=document.createElement("span");u.textContent="{{date}}, {{time}}",u.dataset.l10nId="annotation_date_string",u.dataset.l10nArgs=JSON.stringify({date:s.toLocaleDateString(),time:s.toLocaleTimeString()}),t.appendChild(u)}var c=this._formatContents(this.contents);return t.appendChild(c),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,i=r.length;n<i;++n){var o=r[n];t.appendChild(document.createTextNode(o)),n<i-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),F=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),I=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(w),M=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",r-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,e),this.container}}]),t}(w),j=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",r/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",r/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,e),this.container}}]),t}(w),D=function(e){function t(e){var n;y(this,t);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=r.call(this,e,i,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],o=this.svgFactory.create(r,i),a=[],s=n(t.vertices);try{for(s.s();!(e=s.n()).done;){var u=e.value,c=u.x-t.rect[0],l=t.rect[3]-u.y;a.push(c+","+l)}}catch(e){s.e(e)}finally{s.f()}a=a.join(" ");var f=this.svgFactory.createElement(this.svgElementName);return f.setAttribute("points",a),f.setAttribute("stroke-width",t.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),o.appendChild(f),this.container.append(o),this._createPopup(this.container,f,t),this.container}}]),t}(w),N=function(e){function t(e){var n;return y(this,t),n=r.call(this,e),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}c(t,e);var r=f(t);return t}(D),U=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),q=function(e){function t(e){var n;y(this,t);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=r.call(this,e,i,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],o=this.svgFactory.create(r,i),a=n(t.inkLists);try{for(a.s();!(e=a.n()).done;){var s,u=e.value,c=[],l=n(u);try{for(l.s();!(s=l.n()).done;){var f=s.value,h=f.x-t.rect[0],d=t.rect[3]-f.y;c.push("".concat(h,",").concat(d))}}catch(e){l.e(e)}finally{l.f()}c=c.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",c),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),o.appendChild(p)}}catch(e){a.e(e)}finally{a.f()}return this.container.append(o),this.container}}]),t}(w),W=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),B=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),G=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),z=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),H=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),Y=function(e){function t(e){var n;y(this,t),n=r.call(this,e,!0);var i=n.data.file,o=i.filename,a=i.content;return n.filename=(0,b.getFilenameFromUrl)(o),n.content=a,n.linkService.eventBus&&n.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(n),id:(0,_.stringToPDFString)(o),filename:o,content:a}),n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){if(!this.downloadManager)return void(0,_.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}]),t}(w),X=function(){function e(){y(this,e)}return m(e,null,[{key:"render",value:function(e){var t,r=[],i=[],o=n(e.annotations);try{for(o.s();!(t=o.n()).done;){var a=t.value;a&&(a.annotationType!==_.AnnotationType.POPUP?r.push(a):i.push(a))}}catch(e){o.e(e)}finally{o.f()}i.length&&r.push.apply(r,i);for(var s=0,u=r;s<u.length;s++){var c=u[s],l=A.create({data:c,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new b.DOMSVGFactory});l.isRenderable&&e.div.appendChild(l.render())}}},{key:"update",value:function(e){var t,r=n(e.annotations);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=e.div.querySelector('[data-annotation-id="'.concat(i.id,'"]'));o&&(o.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(e){r.e(e)}finally{r.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=X},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r(5),i=function(){function e(e){return!f.test(e)}function t(t,r,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(t._textDivs.push(o),e(r.str))return a.isWhitespace=!0,void t._textDivProperties.set(o,a);var s=n.Util.transform(t._viewport.transform,r.transform),u=Math.atan2(s[1],s[0]),c=i[r.fontName];c.vertical&&(u+=Math.PI/2);var l=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=l;c.ascent?f=c.ascent*f:c.descent&&(f=(1+c.descent)*f);var h,d;0===u?(h=s[4],d=s[5]-f):(h=s[4]+f*Math.sin(u),d=s[5]-f*Math.cos(u)),o.style.left="".concat(h,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(l,"px"),o.style.fontFamily=c.fontFamily,o.textContent=r.str,t._fontInspectorEnabled&&(o.dataset.fontName=r.fontName),0!==u&&(a.angle=u*(180/Math.PI));var p=!1;if(r.str.length>1)p=!0;else if(r.transform[0]!==r.transform[3]){var v=Math.abs(r.transform[0]),y=Math.abs(r.transform[3]);v!==y&&Math.max(v,y)/Math.min(v,y)>1.5&&(p=!0)}if(p&&(c.vertical?a.canvasWidth=r.height*t._viewport.scale:a.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(o,a),t._textContentStream&&t._layoutText(o),t._enhanceTextSelection){var g=1,m=0;0!==u&&(g=Math.cos(u),m=Math.sin(u));var b,_,A=(c.vertical?r.height:r.width)*t._viewport.scale,w=l;0!==u?(b=[g,m,-m,g,h,d],_=n.Util.getAxialAlignedBoundingBox([0,0,A,w],b)):_=[h,d,h+A,d+w],t._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[A,w],m:b})}}function r(e){if(!e._canceled){var t=e._textDivs,r=e._capability,n=t.length;if(n>l)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var i=0;i<n;i++)e._layoutText(t[i]);e._renderingDone=!0,r.resolve()}}function i(e,t,r){for(var n=0,i=0;i<r;i++){var o=e[t++];o>0&&(n=n?Math.min(o,n):o)}return n}function o(e){for(var t=e._bounds,r=e._viewport,o=a(r.width,r.height,t),s=0;s<o.length;s++){var u=t[s].div,c=e._textDivProperties.get(u);if(0!==c.angle){var l=o[s],f=t[s],h=f.m,d=h[0],p=h[1],v=[[0,0],[0,f.size[1]],[f.size[0],0],f.size],y=new Float64Array(64);v.forEach(function(e,t){var r=n.Util.applyTransform(e,h);y[t+0]=d&&(l.left-r[0])/d,y[t+4]=p&&(l.top-r[1])/p,y[t+8]=d&&(l.right-r[0])/d,y[t+12]=p&&(l.bottom-r[1])/p,y[t+16]=p&&(l.left-r[0])/-p,y[t+20]=d&&(l.top-r[1])/d,y[t+24]=p&&(l.right-r[0])/-p,y[t+28]=d&&(l.bottom-r[1])/d,y[t+32]=d&&(l.left-r[0])/-d,y[t+36]=p&&(l.top-r[1])/-p,y[t+40]=d&&(l.right-r[0])/-d,y[t+44]=p&&(l.bottom-r[1])/-p,y[t+48]=p&&(l.left-r[0])/p,y[t+52]=d&&(l.top-r[1])/-d,y[t+56]=p&&(l.right-r[0])/p,y[t+60]=d&&(l.bottom-r[1])/-d});var g=1+Math.min(Math.abs(d),Math.abs(p));c.paddingLeft=i(y,32,16)/g,c.paddingTop=i(y,48,16)/g,c.paddingRight=i(y,0,16)/g,c.paddingBottom=i(y,16,16)/g,e._textDivProperties.set(u,c)}else c.paddingLeft=t[s].left-o[s].left,c.paddingTop=t[s].top-o[s].top,c.paddingRight=o[s].right-t[s].right,c.paddingBottom=o[s].bottom-t[s].bottom,e._textDivProperties.set(u,c)}}function a(e,t,r){var n=r.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,n);var i=new Array(r.length);return n.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),r.map(function(t,r){var o=i[r],a=n[r];a.x1=t.top,a.y1=e-o.right,a.x2=t.bottom,a.y2=e-o.left,a.index=r,a.x1New=void 0,a.x2New=void 0}),s(t,n),n.forEach(function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}),i}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var r=n.length-1;r>=0&&n[r].start>=e.y2;)r--;var i,o,a,s,u=-1/0;for(a=t;a<=r;a++){i=n[a],o=i.boundary;var c;c=o.x2>e.x1?o.index>e.index?o.x1New:e.x1:void 0===o.x2New?(o.x2+e.x1)/2:o.x2New,c>u&&(u=c)}for(e.x1New=u,a=t;a<=r;a++)i=n[a],o=i.boundary,void 0===o.x2New?o.x2>e.x1?o.index>e.index&&(o.x2New=o.x2):o.x2New=u:o.x2New>u&&(o.x2New=Math.max(u,o.x2));var l=[],f=null;for(a=t;a<=r;a++){i=n[a],o=i.boundary;var h=o.x2>e.x2?o:e;f===h?l[l.length-1].end=i.end:(l.push({start:i.start,end:i.end,boundary:h}),f=h)}for(n[t].start<e.y1&&(l[0].start=e.y1,l.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[r].end&&(l[l.length-1].end=e.y2,l.push({start:e.y2,end:n[r].end,boundary:n[r].boundary})),a=t;a<=r;a++)if(i=n[a],o=i.boundary,void 0===o.x2New){var d=!1;for(s=t-1;!d&&s>=0&&n[s].start>=o.y1;s--)d=n[s].boundary===o;for(s=r+1;!d&&s<n.length&&n[s].end<=o.y2;s++)d=n[s].boundary===o;for(s=0;!d&&s<l.length;s++)d=l[s].boundary===o;d||(o.x2New=u)}Array.prototype.splice.apply(n,[t,r-t+1].concat(l))}),n.forEach(function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))})}function u(e){var t=this,r=e.textContent,i=e.textContentStream,o=e.container,a=e.viewport,s=e.textDivs,u=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=r,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}).catch(function(){})}function c(e){var t=new u({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}var l=1e5,f=/\S/;return u.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,r){for(var n=0,i=e.length;n<i;n++)this._textContentItemsStr.push(e[n].str),t(this,e[n],r)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var r="";if(0!==t.canvasWidth){var n=e.style,i=n.fontSize,o=n.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(e.textContent),s=a.width;s>0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,i=(0,n.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then(function(r){var n=r.value;if(r.done)return void i.resolve();Object.assign(o,n.styles),t._processItems(n.items,o),e()},i.reject)}()}i.promise.then(function(){o=null,e?t._renderTimer=setTimeout(function(){r(t),t._renderTimer=null},e):r(t)},this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,i=this._textDivs.length;n<i;n++){var a=this._textDivs[n],s=this._textDivProperties.get(a);s.isWhitespace||(e?(t.length=0,r.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),a.style.padding=r.join(" "),t.length&&(a.style.transform=t.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},c}();t.renderTextLayer=i},function(e,t,r){"use strict";function n(e){return a(e)||o(e)||h(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return d(e)}function s(e,t){return l(e)||c(e,t)||h(e,t)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function l(e){if(Array.isArray(e))return e}function f(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var g=r(5),m=r(1),b=r(7),_=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=_;var A=function(e){var t,r=[],n=[],i=f(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;"save"!==o.fn?"restore"===o.fn?r=n.pop():r.push(o):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(e){i.e(e)}finally{i.f()}return r},w=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)},S=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(w(e[0])," ").concat(w(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(w(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(w(e[4])," ").concat(w(e[5]),")");return"matrix(".concat(w(e[0])," ").concat(w(e[1])," ").concat(w(e[2])," ").concat(w(e[3])," ").concat(w(e[4])," ")+"".concat(w(e[5]),")")},k={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},x=["butt","round","square"],C=["miter","round","bevel"],P=function(){function e(e,t,r){for(var n=-1,i=t;i<r;i++){var o=255&(n^e[i]);n=n>>>8^u[o]}return-1^n}function t(t,r,n,i){var o=i,a=r.length;n[o]=a>>24&255,n[o+1]=a>>16&255,n[o+2]=a>>8&255,n[o+3]=255&a,o+=4,n[o]=255&t.charCodeAt(0),n[o+1]=255&t.charCodeAt(1),n[o+2]=255&t.charCodeAt(2),n[o+3]=255&t.charCodeAt(3),o+=4,n.set(r,o),o+=r.length;var s=e(n,i+4,o);n[o]=s>>24&255,n[o+1]=s>>16&255,n[o+2]=s>>8&255,n[o+3]=255&s}function r(e,t,r){for(var n=1,i=0,o=t;o<r;++o)n=(n+(255&e[o]))%65521,i=(i+n)%65521;return i<<16|n}function n(e){if(!b.isNodeJS)return i(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var r=__webpack_require__(1993).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,g.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return i(e)}function i(e){var t=e.length,n=Math.ceil(t/65535),i=new Uint8Array(2+t+5*n+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;t>65535;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+65535),o),o+=65535,a+=65535,t-=65535;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;var s=r(e,0,e.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(e,r,i,o){var u,c,l,f=e.width,h=e.height,d=e.data;switch(r){case g.ImageKind.GRAYSCALE_1BPP:c=0,u=1,l=f+7>>3;break;case g.ImageKind.RGB_24BPP:c=2,u=8,l=3*f;break;case g.ImageKind.RGBA_32BPP:c=6,u=8,l=4*f;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+l)*h),v=0,y=0,m=0;m<h;++m)p[v++]=0,p.set(d.subarray(y,y+l),v),y+=l,v+=l;if(r===g.ImageKind.GRAYSCALE_1BPP&&o){v=0;for(var b=0;b<h;b++){v++;for(var _=0;_<l;_++)p[v++]^=255}}var A=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,h>>24&255,h>>16&255,h>>8&255,255&h,u,c,0,0,0]),w=n(p),S=a.length+3*s+A.length+w.length,k=new Uint8Array(S),x=0;return k.set(a,x),x+=a.length,t("IHDR",A,k,x),x+=s+A.length,t("IDATA",w,k,x),x+=s+w.length,t("IEND",new Uint8Array(0),k,x),(0,g.createObjectURL)(k,"image/png",i)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,u=new Int32Array(256),c=0;c<256;c++){for(var l=c,f=0;f<8;f++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;u[c]=l}return function(e,t,r){return o(e,void 0===e.kind?g.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}(),R=function(){function e(){p(this,e),this.fontSizeScale=1,this.fontWeight=k.fontWeight,this.fontSize=0,this.textMatrix=g.IDENTITY_MATRIX,this.fontMatrix=g.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=g.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=k.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return y(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),T=0,E=0,O=0;t.SVGGraphics=_=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,e),this.svgFactory=new m.DOMSVGFactory,this.current=new R,this.transformMatrix=g.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(var i in g.OPS)this._operatorIdMapping[g.OPS[i]]=i}return y(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,n=e.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===g.OPS.dependency){var a,s=f(n[i]);try{for(s.s();!(a=s.n()).done;)!function(){var e=a.value,r=e.startsWith("g_")?t.commonObjs:t.objs,n=new Promise(function(t){r.get(e,t)});t.current.dependencies.push(n)}()}catch(e){s.e(e)}finally{s.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,r,n,i,o){var a=[e,t,r,n,i,o];this.transformMatrix=g.Util.transform(this.transformMatrix,a),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var n=this._initialize(t);return this.loadDependencies(e).then(function(){return r.transformMatrix=g.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),n})}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,i=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push({fnId:s,fn:t[s],args:r[o]})}return A(i)}},{key:"executeOpTree",value:function(e){var t,r=f(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=n.fn,o=n.fnId,a=n.args;switch(0|o){case g.OPS.beginText:this.beginText();break;case g.OPS.dependency:break;case g.OPS.setLeading:this.setLeading(a);break;case g.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case g.OPS.setFont:this.setFont(a);break;case g.OPS.showText:case g.OPS.showSpacedText:this.showText(a[0]);break;case g.OPS.endText:this.endText();break;case g.OPS.moveText:this.moveText(a[0],a[1]);break;case g.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case g.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case g.OPS.setHScale:this.setHScale(a[0]);break;case g.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.setTextRise:this.setTextRise(a[0]);break;case g.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case g.OPS.setLineWidth:this.setLineWidth(a[0]);break;case g.OPS.setLineJoin:this.setLineJoin(a[0]);break;case g.OPS.setLineCap:this.setLineCap(a[0]);break;case g.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case g.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case g.OPS.setFillColorN:this.setFillColorN(a);break;case g.OPS.shadingFill:this.shadingFill(a[0]);break;case g.OPS.setDash:this.setDash(a[0],a[1]);break;case g.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case g.OPS.setFlatness:this.setFlatness(a[0]);break;case g.OPS.setGState:this.setGState(a[0]);break;case g.OPS.fill:this.fill();break;case g.OPS.eoFill:this.eoFill();break;case g.OPS.stroke:this.stroke();break;case g.OPS.fillStroke:this.fillStroke();break;case g.OPS.eoFillStroke:this.eoFillStroke();break;case g.OPS.clip:this.clip("nonzero");break;case g.OPS.eoClip:this.clip("evenodd");break;case g.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case g.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case g.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case g.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case g.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case g.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case g.OPS.closePath:this.closePath();break;case g.OPS.closeStroke:this.closeStroke();break;case g.OPS.closeFillStroke:this.closeFillStroke();break;case g.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case g.OPS.nextLine:this.nextLine();break;case g.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.constructPath:this.constructPath(a[0],a[1]);break;case g.OPS.endPath:this.endPath();break;case 92:this.group(n.items);break;default:(0,g.warn)("Unimplemented operator ".concat(i))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,r,n,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[e,t,r,n,i,o],a.textMatrixScale=Math.sqrt(e*e+t*t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(w(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",w(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=g.IDENTITY_MATRIX,e.lineMatrix=g.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(w(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",w(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,n=t.fontSize;if(0!==n){var i,o=t.fontSizeScale,a=t.charSpacing,s=t.wordSpacing,u=t.fontDirection,c=t.textHScale*u,l=r.vertical,h=l?1:-1,d=r.defaultVMetrics,p=n*t.fontMatrix[0],v=0,y=f(e);try{for(y.s();!(i=y.n()).done;){var m=i.value;if(null!==m)if((0,g.isNum)(m))v+=h*m*n/1e3;else{var b=(m.isSpace?s:0)+a,_=m.fontChar,A=void 0,x=void 0,C=m.width;if(l){var P=void 0,R=m.vmetric||d;P=m.vmetric?R[1]:.5*C,P=-P*p;var T=R[2]*p;C=R?-R[0]:C,A=P/o,x=(v+T)/o}else A=v/o,x=0;(m.isInFont||r.missingFile)&&(t.xcoords.push(t.x+A),l&&t.ycoords.push(-t.y+x),t.tspan.textContent+=_);var E=void 0;E=l?C*p-b*u:C*p+b*u,v+=E}else v+=u*s}}catch(e){y.e(e)}finally{y.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(w).join(" ")),l?t.tspan.setAttributeNS(null,"y",t.ycoords.map(w).join(" ")):t.tspan.setAttributeNS(null,"y",w(-t.y)),l?t.y-=v:t.x+=v*c,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(w(t.fontSize),"px")),t.fontStyle!==k.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==k.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var O=t.textRenderingMode&g.TextRenderingMode.FILL_STROKE_MASK;if(O===g.TextRenderingMode.FILL||O===g.TextRenderingMode.FILL_STROKE?(t.fillColor!==k.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===g.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),O===g.TextRenderingMode.STROKE||O===g.TextRenderingMode.FILL_STROKE){var L=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,L)}var F=t.textMatrix;0!==t.textRise&&(F=F.slice(),F[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(S(F)," scale(").concat(w(c),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,g.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,r=this.commonObjs.get(e[0]),n=e[1];t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix?r.fontMatrix:g.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";n<0?(n=-n,t.fontDirection=-1):t.fontDirection=1,t.fontSize=n,t.fontFamily=r.loadedName,t.fontWeight=i,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",w(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&g.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=x[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=C[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=g.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=g.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,n=g.Util.inverseTransform(this.transformMatrix),i=g.Util.applyTransform([0,0],n),o=g.Util.applyTransform([0,r],n),a=g.Util.applyTransform([t,0],n),s=g.Util.applyTransform([t,r],n),u=Math.min(i[0],o[0],a[0],s[0]),c=Math.min(i[1],o[1],a[1],s[1]),l=Math.max(i[0],o[0],a[0],s[0]),f=Math.max(i[1],o[1],a[1],s[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",u),h.setAttributeNS(null,"y",c),h.setAttributeNS(null,"width",l-u),h.setAttributeNS(null,"height",f-c),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(h)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],i=e[3]||g.IDENTITY_MATRIX,o=s(e[4],4),a=o[0],u=o[1],c=o[2],l=o[3],f=e[5],h=e[6],d=e[7],p="shading".concat(O++),v=g.Util.applyTransform([a,u],i),y=s(v,2),m=y[0],b=y[1],_=g.Util.applyTransform([c,l],i),A=s(_,2),w=A[0],S=A[1],k=g.Util.singularValueDecompose2dScale(i),x=s(k,2),C=x[0],P=x[1],R=f*C,T=h*P,E=this.svgFactory.createElement("svg:pattern");E.setAttributeNS(null,"id",p),E.setAttributeNS(null,"patternUnits","userSpaceOnUse"),E.setAttributeNS(null,"width",R),E.setAttributeNS(null,"height",T),E.setAttributeNS(null,"x","".concat(m)),E.setAttributeNS(null,"y","".concat(b));var L=this.svg,F=this.transformMatrix,I=this.current.fillColor,M=this.current.strokeColor,j=this.svgFactory.create(w-m,S-b);if(this.svg=j,this.transformMatrix=i,2===d){var D=g.Util.makeCssRgb.apply(g.Util,n(t));this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(r)),this.svg=L,this.transformMatrix=F,this.current.fillColor=I,this.current.strokeColor=M,E.appendChild(j.childNodes[0]),this.defs.appendChild(E),"url(#".concat(p,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(O++),n=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=e[4],s=e[5],u=e[6],c=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",s[0]),t.setAttributeNS(null,"cy",s[1]),t.setAttributeNS(null,"r",c),t.setAttributeNS(null,"fx",a[0]),t.setAttributeNS(null,"fy",a[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var l,h=f(n);try{for(h.s();!(l=h.n()).done;){var d=l.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),t.appendChild(p)}}catch(e){h.e(e)}finally{h.f()}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,g.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,n=this.current,i=n.x,o=n.y,a=[],s=0,u=f(e);try{for(u.s();!(r=u.n()).done;){switch(0|r.value){case g.OPS.rectangle:i=t[s++],o=t[s++];var c=t[s++],l=t[s++],h=i+c,d=o+l;a.push("M",w(i),w(o),"L",w(h),w(o),"L",w(h),w(d),"L",w(i),w(d),"Z");break;case g.OPS.moveTo:i=t[s++],o=t[s++],a.push("M",w(i),w(o));break;case g.OPS.lineTo:i=t[s++],o=t[s++],a.push("L",w(i),w(o));break;case g.OPS.curveTo:i=t[s+4],o=t[s+5],a.push("C",w(t[s]),w(t[s+1]),w(t[s+2]),w(t[s+3]),w(i),w(o)),s+=6;break;case g.OPS.curveTo2:a.push("C",w(i),w(o),w(t[s]),w(t[s+1]),w(t[s+2]),w(t[s+3])),i=t[s+2],o=t[s+3],s+=4;break;case g.OPS.curveTo3:i=t[s+2],o=t[s+3],a.push("C",w(t[s]),w(t[s+1]),w(i),w(o),w(i),w(o)),s+=4;break;case g.OPS.closePath:a.push("Z")}}}catch(e){u.e(e)}finally{u.f()}a=a.join(" "),n.path&&e.length>0&&e[0]!==g.OPS.rectangle&&e[0]!==g.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip){if(!e.element)return void(this.pendingClip=null);var t="clippath".concat(T++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",S(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=f(e);try{for(r.s();!(t=r.n()).done;){var n=s(t.value,2),i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,g.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map(function(e){return t*e})),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",w(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",w(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(w).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",w(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);if(!t)return void(0,g.warn)("Dependent image with object ID ".concat(e," is not ready yet"));this.paintInlineImageXObject(t)}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,i=P(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",w(r)),o.setAttributeNS(null,"height",w(n)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",w(-n)),a.setAttributeNS(null,"width",w(r)+"px"),a.setAttributeNS(null,"height",w(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(w(1/r)," ").concat(w(-1/n),")")),t?t.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,i=t.fillColor;t.maskId="mask".concat(E++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",w(r)),a.setAttributeNS(null,"height",w(n)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(e,o)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",w(r)),i.setAttributeNS(null,"height",w(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",S(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",S(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=c();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){f(s,n,i,o,a,"next",e)}function a(e){f(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function y(e){var t=k.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?k.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}function g(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var m=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),b=r(5),_=r(213),A=__webpack_require__(1994),w=__webpack_require__(1995),S=__webpack_require__(1996),k=__webpack_require__(1997),x=/^file:\/\/\/[a-zA-Z]:\//,C=function(){function e(t){d(this,e),this.source=t,this.url=y(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return v(e,[{key:"getFullReader",value:function(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new O(this):new T(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new L(this,e,t):new E(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=C;var P=function(){function e(t){d(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}return v(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=h(m.default.mark(function e(){var t,r;return m.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){if(!this._readableStream)return void this._error(e);this._readableStream.destroy(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),R=function(){function e(t){d(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return v(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=h(m.default.mark(function e(){var t,r;return m.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){if(!this._readableStream)return void this._error(e);this._readableStream.destroy(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),T=function(e){function t(e){var n;d(this,t),n=r.call(this,e);var i=function(t){if(404===t.statusCode){var r=new b.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(t);var i=function(e){return n._readableStream.headers[e.toLowerCase()]},o=(0,_.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:e.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),a=o.allowRangeRequests,s=o.suggestedLength;n._isRangeSupported=a,n._contentLength=s||n._contentLength,n._filename=(0,_.extractFilenameFromHeader)(i)};return n._request=null,"http:"===n._url.protocol?n._request=w.request(g(n._url,e.httpHeaders),i):n._request=S.request(g(n._url,e.httpHeaders),i),n._request.on("error",function(e){n._storedError=e,n._headersCapability.reject(e)}),n._request.end(),n}i(t,e);var r=a(t);return t}(P),E=function(e){function t(e,n,i){var o;d(this,t),o=r.call(this,e),o._httpHeaders={};for(var a in e.httpHeaders){var s=e.httpHeaders[a];void 0!==s&&(o._httpHeaders[a]=s)}o._httpHeaders.Range="bytes=".concat(n,"-").concat(i-1);var u=function(e){if(404===e.statusCode){var t=new b.MissingPDFException('Missing PDF "'.concat(o._url,'".'));return void(o._storedError=t)}o._setReadableStream(e)};return o._request=null,"http:"===o._url.protocol?o._request=w.request(g(o._url,o._httpHeaders),u):o._request=S.request(g(o._url,o._httpHeaders),u),o._request.on("error",function(e){o._storedError=e}),o._request.end(),o}i(t,e);var r=a(t);return t}(R),O=function(e){function t(e){var n;d(this,t),n=r.call(this,e);var i=decodeURIComponent(n._url.path);return x.test(n._url.href)&&(i=i.replace(/^\//,"")),A.lstat(i,function(e,t){if(e)return"ENOENT"===e.code&&(e=new b.MissingPDFException('Missing PDF "'.concat(i,'".'))),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(A.createReadStream(i)),n._headersCapability.resolve()}),n}i(t,e);var r=a(t);return t}(P),L=function(e){function t(e,n,i){var o;d(this,t),o=r.call(this,e);var a=decodeURIComponent(o._url.path);return x.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(A.createReadStream(a,{start:n,end:i-1})),o}i(t,e);var r=a(t);return t}(R)},function(e,t,r){"use strict";function n(e){var t=e.getResponseHeader,r=e.isHttp,n=e.rangeChunkSize,i=e.disableRange;(0,s.assert)(n>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n?o:i||!r?o:"bytes"!==t("Accept-Ranges")?o:"identity"!==(t("Content-Encoding")||"identity")?o:(o.allowRangeRequests=!0,o)):o}function i(e){var t=e("Content-Disposition");if(t){var r=(0,u.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(e){}if(/\.pdf$/i.test(r))return r}return null}function o(e,t){return 404===e||0===e&&t.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+t+'".'):new s.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function a(e){return 200===e||206===e}Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=o,t.extractFilenameFromHeader=i,t.validateRangeRequestCapabilities=n,t.validateResponseStatus=a;var s=r(5),u=r(214)},function(e,t,r){"use strict";function n(e,t){return u(e)||s(e,t)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function u(e){if(Array.isArray(e))return e}function c(e){function t(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function r(e,t){if(e){if(!/^[\x00-\xFF]+$/.test(t))return t;try{var r=new TextDecoder(e,{fatal:!0}),n=Array.from(t,function(e){return 255&e.charCodeAt(0)});t=r.decode(new Uint8Array(n)),u=!1}catch(r){if(/^utf-?8$/i.test(e))try{t=decodeURIComponent(escape(t)),u=!1}catch(e){}}}return t}function i(e){return u&&/[\x80-\xff]/.test(e)&&(e=r("utf-8",e),u&&(e=r("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),r=0;r<t.length;++r){var n=t[r].indexOf('"');-1!==n&&(t[r]=t[r].slice(0,n),t.length=r+1),t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function a(e){var t=e.indexOf("'");return-1===t?e:r(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function s(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,i){if("q"===n||"Q"===n)return i=i.replace(/_/g," "),i=i.replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),r(t,i);try{i=atob(i)}catch(e){}return r(t,i)})}var u=!0,c=t("filename\\*","i").exec(e);if(c){c=c[1];var l=o(c);return l=unescape(l),l=a(l),l=s(l),i(l)}if(c=function(e){for(var r,i=[],s=t("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(r=s.exec(e));){var u=r,c=n(u,4),l=c[1],f=c[2],h=c[3];if((l=parseInt(l,10))in i){if(0===l)break}else i[l]=[f,h]}for(var d=[],p=0;p<i.length&&p in i;++p){var v=n(i[p],2),y=v[0],g=v[1];g=o(g),y&&(g=unescape(g),0===p&&(g=a(g))),d.push(g)}return d.join("")}(e)){return i(s(c))}if(c=t("filename","i").exec(e)){c=c[1];var f=o(c);return f=s(f),i(f)}return""}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=c},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e){var t=e.response;return"string"!=typeof t?t:(0,l.stringToBytes)(t).buffer}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var c=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),l=r(5),f=r(213),h=function(){function e(t,r){o(this,e),this.url=t,r=r||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return s(e,[{key:"requestRange",value:function(e,t,r){var n={begin:e,end:t};for(var i in r)n[i]=r[i];return this.request(n)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&t.setRequestHeader(i,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests){if(delete this.pendingRequests[e],0===n.status&&this.isHttp)return void(r.onError&&r.onError(n.status));var i=n.status||200;if(!(200===i&&206===r.expectedStatus)&&i!==r.expectedStatus)return void(r.onError&&r.onError(n.status));var o=u(n);if(206===i){var a=n.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);r.onDone({begin:parseInt(s[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),d=function(){function e(t){o(this,e),this._source=t,this._manager=new h(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new v(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}}]),e}();t.PDFNetworkStream=d;var p=function(){function e(t,r){o(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,l.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return s(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,f.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,o=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,f.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach(function(e){e.reject(r)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(c.default.mark(function e(){var t,r;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,l.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),v=function(){function e(t,r,n){o(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return s(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(c.default.mark(function e(){var t,r;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,l.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function c(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var l=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),f=r(5),h=r(213),d=function(){function e(t){o(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"getFullReader",value:function(){return(0,f.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new v(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=d;var p=function(){function e(t){var r=this;o(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,f.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=c(this._stream.httpHeaders);var i=n.url;fetch(i,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,h.validateResponseStatus)(e.status))throw(0,h.createResponseStatusError)(e.status,i);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,h.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=n.allowRangeRequests,a=n.suggestedLength;r._isRangeSupported=o,r._contentLength=a||r._contentLength,r._filename=(0,h.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new f.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return s(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(l.default.mark(function e(){var t,r,n,i;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),v=function(){function e(t,r,n){var i=this;o(this,e),this._stream=t,this._reader=null,this._loaded=0;var a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,f.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=c(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,h.validateResponseStatus)(e.status))throw(0,h.createResponseStatusError)(e.status,s);i._readCapability.resolve(),i._reader=e.body.getReader()}),this.onProgress=null}return s(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(l.default.mark(function e(){var t,r,n,i;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])})}).call(exports,__webpack_require__(961).Buffer,__webpack_require__(664),__webpack_require__(287))},1993:function(e,t){},1994:function(e,t){},1995:function(e,t){},1996:function(e,t){},1997:function(e,t){},1998:function(e,t){},2:function(e,t){var r=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},20:function(e,t,r){var n=r(27)("keys"),i=r(24);e.exports=function(e){return n[e]||(n[e]=i(e))}},21:function(e,t,r){var n=r(6),i=r(0).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},218:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},23:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},24:function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},25:function(e,t,r){var n=r(9).f,i=r(7),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},26:function(e,t,r){var n=r(37),i=r(28);e.exports=Object.keys||function(e){return n(e,i)}},27:function(e,t,r){var n=r(2),i=r(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},287:function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},29:function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},3:function(e,t,r){e.exports=!r(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(e,t,r){var n=r(14);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},31:function(e,t,r){var n=r(15),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},33:function(e,t,r){"use strict";var n=r(18),i=r(10),o=r(47),a=r(5),s=r(11),u=r(55),c=r(25),l=r(57),f=r(1)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,v,y,g){u(r,t,p);var m,b,_,A=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},w=t+" Iterator",S="values"==v,k=!1,x=e.prototype,C=x[f]||x["@@iterator"]||v&&x[v],P=C||A(v),R=v?S?A("entries"):P:void 0,T="Array"==t?x.entries||C:C;if(T&&(_=l(T.call(new e)))!==Object.prototype&&_.next&&(c(_,w,!0),n||"function"==typeof _[f]||a(_,f,d)),S&&C&&"values"!==C.name&&(k=!0,P=function(){return C.call(this)}),n&&!g||!h&&!k&&x[f]||a(x,f,P),s[t]=P,s[w]=d,v)if(m={values:S?P:A("values"),keys:y?P:A("keys"),entries:R},g)for(b in m)b in x||o(x,b,m[b]);else i(i.P+i.F*(h||k),t,m);return m}},34:function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},36:function(e,t,r){e.exports=!r(3)&&!r(13)(function(){return 7!=Object.defineProperty(r(21)("div"),"a",{get:function(){return 7}}).a})},37:function(e,t,r){var n=r(7),i=r(12),o=r(41)(!1),a=r(20)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},38:function(e,t,r){var n=r(0).document;e.exports=n&&n.documentElement},39:function(e,t,r){"use strict";function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=i(t),this.reject=i(r)}var i=r(19);e.exports.f=function(e){return new n(e)}},4:function(e,t,r){var n=r(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},40:function(e,t,r){var n=r(14),i=r(1)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},41:function(e,t,r){var n=r(12),i=r(31),o=r(42);e.exports=function(e){return function(t,r,a){var s,u=n(t),c=i(u.length),l=o(a,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}}},42:function(e,t,r){var n=r(15),i=Math.max,o=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):o(e,t)}},44:function(e,t,r){"use strict";var n=r(54)(!0);r(33)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},46:function(e,t,r){var n=r(4),i=r(56),o=r(28),a=r(20)("IE_PROTO"),s=function(){},u=function(){var e,t=r(21)("iframe"),n=o.length;for(t.style.display="none",r(38).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},47:function(e,t,r){e.exports=r(5)},48:function(e,t,r){r(63);for(var n=r(0),i=r(5),o=r(11),a=r(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},5:function(e,t,r){var n=r(9),i=r(23);e.exports=r(3)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},52:function(e,t,r){var n=r(40),i=r(1)("iterator"),o=r(11);e.exports=r(2).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},54:function(e,t,r){var n=r(15),i=r(16);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},55:function(e,t,r){"use strict";var n=r(46),i=r(23),o=r(25),a={};r(5)(a,r(1)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},56:function(e,t,r){var n=r(9),i=r(4),o=r(26);e.exports=r(3)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},57:function(e,t,r){var n=r(7),i=r(29),o=r(20)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},58:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},59:function(e,t,r){var n=r(4),i=r(19),o=r(1)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},6:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},60:function(e,t,r){var n,i,o,a=r(17),s=r(81),u=r(38),c=r(21),l=r(0),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,y=0,g={},m=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){m.call(e.data)};h&&d||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++y]=function(){s("function"==typeof e?e:Function(e),t)},n(y),y},d=function(e){delete g[e]},"process"==r(14)(f)?n=function(e){f.nextTick(a(m,e,1))}:v&&v.now?n=function(e){v.now(a(m,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),e.exports={set:h,clear:d}},61:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},62:function(e,t,r){var n=r(4),i=r(6),o=r(39);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},63:function(e,t,r){"use strict";var n=r(64),i=r(58),o=r(11),a=r(12);e.exports=r(33)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},64:function(e,t){e.exports=function(){}},66:function(e,t,r){e.exports={default:r(79),__esModule:!0}},664:function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):y=-1,p.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=p.length;t;){for(d=p,p=[];++y<t;)d&&d[y].run();y=-1,t=p.length}d=null,v=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var d,p=[],v=!1,y=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new u(e,t)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},67:function(e,t){},7:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},72:function(e,t,r){var n=r(17),i=r(73),o=r(74),a=r(4),s=r(31),u=r(52),c={},l={},t=e.exports=function(e,t,r,f,h){var d,p,v,y,g=h?function(){return e}:u(e),m=n(r,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=s(e.length);d>b;b++)if((y=t?m(a(p=e[b])[0],p[1]):m(e[b]))===c||y===l)return y}else for(v=g.call(e);!(p=v.next()).done;)if((y=i(v,m,p.value,t))===c||y===l)return y};t.BREAK=c,t.RETURN=l},73:function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},74:function(e,t,r){var n=r(11),i=r(1)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},75:function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},76:function(e,t,r){var n=r(5);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},77:function(e,t,r){var n=r(1)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},78:function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(9),a=r(3),s=r(1)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},79:function(e,t,r){r(67),r(44),r(48),r(80),r(84),r(85),e.exports=r(2).Promise},80:function(e,t,r){"use strict";var n,i,o,a,s=r(18),u=r(0),c=r(17),l=r(40),f=r(10),h=r(6),d=r(19),p=r(75),v=r(72),y=r(59),g=r(60).set,m=r(82)(),b=r(39),_=r(61),A=r(83),w=r(62),S=u.TypeError,k=u.process,x=k&&k.versions,C=x&&x.v8||"",P=u.Promise,R="process"==l(k),T=function(){},E=i=b.f,O=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[r(1)("species")]=function(e){e(T,T)};return(R||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==C.indexOf("6.6")&&-1===A.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},F=function(e,t){if(!e._n){e._n=!0;var r=e._c;m(function(){for(var n=e._v,i=1==e._s,o=0;r.length>o;)!function(t){var r,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&j(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?c(S("Promise-chain cycle")):(o=L(r))?o.call(r,u,c):u(r)):c(n)}catch(e){l&&!a&&l.exit(),c(e)}}(r[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){g.call(u,function(){var t,r,n,i=e._v,o=M(e);if(o&&(t=_(function(){R?k.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=R||M(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){g.call(u,function(){var t;R?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),F(t,!0))},N=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(t=L(e))?m(function(){var n={_w:r,_d:!1};try{t.call(e,c(N,n,1),c(D,n,1))}catch(e){D.call(n,e)}}):(r._v=e,r._s=1,F(r,!1))}catch(e){D.call({_w:r,_d:!1},e)}}};O||(P=function(e){p(this,P,"Promise","_h"),d(e),n.call(this);try{e(c(N,this,1),c(D,this,1))}catch(e){D.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(76)(P.prototype,{then:function(e,t){var r=E(y(this,P));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=c(N,e,1),this.reject=c(D,e,1)},b.f=E=function(e){return e===P||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!O,{Promise:P}),r(25)(P,"Promise"),r(78)("Promise"),a=r(2).Promise,f(f.S+f.F*!O,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!O),"Promise",{resolve:function(e){return w(s&&this===a?P:this,e)}}),f(f.S+f.F*!(O&&r(77)(function(e){P.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=E(t),n=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,a=1;v(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=E(t),n=r.reject,i=_(function(){v(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},81:function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},82:function(e,t,r){var n=r(0),i=r(60).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(14)(a);e.exports=function(){var e,t,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},83:function(e,t,r){var n=r(0),i=n.navigator;e.exports=i&&i.userAgent||""},84:function(e,t,r){"use strict";var n=r(10),i=r(2),o=r(0),a=r(59),s=r(62);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},85:function(e,t,r){"use strict";var n=r(10),i=r(39),o=r(61);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},9:function(e,t,r){var n=r(4),i=r(36),o=r(34),a=Object.defineProperty;t.f=r(3)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},961:function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return a(this,e,t,r)}function a(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,r,n):"string"==typeof t?l(e,t,r):d(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,r,n){return s(t),t<=0?i(e,t):void 0!==r?"string"==typeof n?i(e,t).fill(r,n):i(e,t).fill(r):i(e,t)}function c(e,t){if(s(t),e=i(e,t<0?0:0|p(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function l(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(t,r);e=i(e,n);var a=e.write(t,r);return a!==n&&(e=e.slice(0,a)),e}function f(e,t){var r=t.length<0?0:0|p(t.length);e=i(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=f(e,t),e}function d(e,t){if(o.isBuffer(t)){var r=0|p(t.length);return e=i(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||K(t.length)?i(e,0):f(e,t);if("Buffer"===t.type&&Z(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),o.alloc(+e)}function y(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(n)return z(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;c<s;c++)if(o(e,c)===o(t,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(r+u>s&&(r=s-u),c=r;c>=0;c--){for(var f=!0,h=0;h<u;h++)if(o(e,c+h)!==o(t,h)){f=!1;break}if(f)return c}return-1}function A(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return V(z(t,e.length-r),e,r,n)}function S(e,t,r,n){return V(H(t),e,r,n)}function k(e,t,r,n){return S(e,t,r,n)}function x(e,t,r,n){return V(X(t),e,r,n)}function C(e,t,r,n){return V(Y(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return T(n)}function T(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=$));return r}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=G(e[o]);return i}function F(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,i){return i||N(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,i){return i||N(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,r,n,52,8),r+8}function W(e){if(e=B(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Y(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function X(e){return Q.toByteArray(W(e))}function V(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function K(e){return e!==e}var Q=r(962),J=r(963),Z=r(964);t.Buffer=o,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return c(null,e)},o.allocUnsafeSlow=function(e){return c(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Z(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},o.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){M(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){M(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=o.isBuffer(e)?e:z(new o(e,n).toString()),u=s.length;for(a=0;a<r-t;++a)this[a+t]=s[a%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,r(287))},962:function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function o(e,t,r){return 3*(t+r)/4-r}function a(e){var t,r,i=n(e),a=i[0],s=i[1],u=new h(o(e,a,s)),c=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=f[e.charCodeAt(r)]<<18|f[e.charCodeAt(r+1)]<<12|f[e.charCodeAt(r+2)]<<6|f[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=f[e.charCodeAt(r)]<<2|f[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=f[e.charCodeAt(r)]<<10|f[e.charCodeAt(r+1)]<<4|f[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}function c(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(u(e,o,o+16383>a?a:o+16383));return 1===n?(t=e[r-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}t.byteLength=i,t.toByteArray=a,t.fromByteArray=c;for(var l=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=d.length;p<v;++p)l[p]=d[p],f[d.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},963:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?h/u:h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*v}},964:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}}})});
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Pdfjs=t():e.Pdfjs=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},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="../es",t(t.s=2003)}({0:function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},1:function(e,t,r){var n=r(27)("wks"),i=r(24),o=r(0).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},10:function(e,t,r){var n=r(0),i=r(2),o=r(17),a=r(5),s=r(7),u=function(e,t,r){var c,l,f,h=e&u.F,d=e&u.G,p=e&u.S,v=e&u.P,y=e&u.B,g=e&u.W,m=d?i:i[t]||(i[t]={}),b=m.prototype,_=d?n:p?n[t]:(n[t]||{}).prototype;d&&(r=t);for(c in r)(l=!h&&_&&void 0!==_[c])&&s(m,c)||(f=l?_[c]:r[c],m[c]=d&&"function"!=typeof _[c]?r[c]:y&&l?o(f,n):g&&_[c]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[c]=f,e&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},11:function(e,t){e.exports={}},12:function(e,t,r){var n=r(30),i=r(16);e.exports=function(e){return n(i(e))}},13:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},14:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},15:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},16:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},17:function(e,t,r){var n=r(19);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},18:function(e,t){e.exports=!0},19:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2:function(e,t){var r=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},20:function(e,t,r){var n=r(27)("keys"),i=r(24);e.exports=function(e){return n[e]||(n[e]=i(e))}},2003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(66),i=r.n(n),o=r(218),a=r.n(o),s=r(2004),u=(r.n(s),r(2010));r.n(u);s.GlobalWorkerOptions.workerSrc=window.__global_cdn__+"/js/pdf/pdf.worker.es5.js";var c={INITED:1,DRAWING:2,RENDERING:3,RENDERED:4,DESTROYED:5},l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),this.scale=t.scale,this.viewport=t.viewport,this.container=t.container,this.brandColor=t.brandColor,this.pdfPage=null,this.state=c.INITED,this.canvas=null,this.canvasWrapper=null,this.index=t.index;var r=document.createElement("div");r.className="pdf-act-page",this.pageWidth=Math.floor(this.viewport.width/this.scale),this.pageHeight=Math.floor(this.viewport.height/this.scale),r.style="width:"+this.pageWidth+"px;height:"+this.pageHeight+"px;",this.div=r,this.setLoading(),this.container.appendChild(r)}return e.prototype.setLoading=function(){var e=document.createElement("span");e.className="pdf-act-loading",this.div.appendChild(e)},e.prototype.hideLoading=function(){var e=this.div.firstElementChild;e&&(e.style.visibility="hidden")},e.prototype.draw=function(){if([c.INITED].includes(this.state)){this.state=c.DRAWING;var e=document.createElement("div");this.canvasWrapper=e,e.style.width=this.div.style.width,e.style.height=this.div.style.height,e.className="pdf-act-page-wrapper";var t=document.createElement("canvas");this.canvas=t;var r=t.getContext("2d",{alpha:!1});t.width=this.pageWidth*window.devicePixelRatio,t.height=this.pageHeight*window.devicePixelRatio,t.style.height=this.pageHeight+"px",t.style.width=this.pageWidth+"px",this.renderContext={canvasContext:r,viewport:this.viewport,transform:[window.devicePixelRatio/this.scale,0,0,window.devicePixelRatio/this.scale,0,0]}}},e.prototype.render=function(){var e=this;return this.state!==c.DRAWING?i.a.resolve():(this.state=c.RENDERING,this.renderTask=this.pdfPage.render(this.renderContext),this.renderTask.promise.then(function(){if(e.state===c.DESTROYED)return i.a.reject();e.state=c.RENDERED,e.renderTask=null;var t=document.createElement("img");t.style.width=e.pageWidth+"px",t.style.height=e.pageHeight+"px",t.onload=function(){return e.hideLoading(),e.canvasWrapper.appendChild(t),e.div.appendChild(e.canvasWrapper),i.a.resolve()},t.src=e.canvas.toDataURL("image/png"),e.canvas.width=0,e.canvas.height=0,delete e.canvas}).catch(function(){return i.a.reject()}))},e.prototype.destroy=function(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.pdfPage&&this.pdfPage.cleanup(),this.state=c.DESTROYED},e.prototype.setPdfPage=function(e){this.pdfPage=e},e}(),f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,e),this.url=t.url||"",this.container=t.container||null,this.brandColor=t.brandColor||"#8c7fee",this.pdfLoadingTask=null,this.pdfDocument=null,this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.visibleCount=5,this.endNum=5}return e.prototype.init=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.destroy(),this.url=t.url||this.url,this.container=t.container||this.container,this.brandColor=t.brandColor||this.brandColor,this.pdfLoadingTask=Object(s.getDocument)({url:this.url,cMapPacked:!0,cMapUrl:window.__global_cdn__+"/js/pdf/cmaps/"}),this.pdfLoadingTask.promise.then(function(t){return e.pdfDocument=t,e.numPages=t.numPages,e.initPage()}).catch(function(e){return i.a.reject(e)})},e.prototype.initPage=function(){var e=this;return this.pdfDocument.getPage(1).then(function(t){var r=t.getViewport({scale:1}),n=e.container.offsetWidth,o=r.width/n;e.pageHeight=Math.floor(r.height/o);for(var a=0;a<e.numPages;a++){var s=new l({scale:o,viewport:r,container:e.container,brandColor:e.brandColor});e.pageArr.push(s)}e.pageArr[0]&&e.pageArr[0].setPdfPage(t);for(var u=[],c=2;c<=e.numPages;c++)!function(t){u.push(e.pdfDocument.getPage(t).then(function(r){var n=e.pageArr[t-1];n&&!n.pdfPage&&n.setPdfPage(r)}))}(c);return i.a.all(u).then(function(){return e.render(e.startNum,e.endNum),i.a.resolve({pageHeight:e.pageHeight,render:e.render.bind(e)})})})},e.prototype.render=function(e,t){for(var r=[],n=e;n<=t;n++)if(n>=0&&n<this.numPages){var i=this.pageArr[n];i.draw(),r.push(i)}this._render(r)},e.prototype._render=function(e){var t=this,r=e.shift();r&&r.render().then(function(){t._render(e)}).catch(function(e){console.error(e)})},e.prototype.pageViewDestroy=function(e,t){this.pageArr.forEach(function(r,n){(n<e||n>t)&&r.destroy()})},e.prototype.destroy=function(){if(this.pageViewDestroy(0,this.numPages),this.container)for(;this.container.firstChild;)this.container.firstChild.remove();this.url="",this.container=null,this.pdfLoadingTask&&(this.pdfLoadingTask.destroy(),this.pdfLoadingTask=null),this.pdfDocument&&(this.pdfDocument.destroy(),this.pdfDocument=null),this.numPages=0,this.pageHeight=0,this.pageArr=[],this.startNum=0,this.visibleCount=4,this.endNum=4,this.renderCallback=null},e}();t.default=f},2004:function(module,exports,__webpack_require__){(function(Buffer,process,global){!function(e,t){module.exports=t()}(0,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},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 n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(t){return e[t]}.bind(null,i));return n},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";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return n.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return u.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return c.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}});var n=r(1),i=r(198),o=r(5),a=r(209),s=r(200),u=r(203),c=r(210),l=r(211);if(r(7).isNodeJS){var f=r(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(e){return new f(e)})}else{var h,d=r(215).PDFNetworkStream;(0,n.isFetchSupported)()&&(h=r(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(e){return h&&(0,n.isValidFetchUrl)(e.url)?new h(e):new d(e)})}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){"@babel/helpers - typeof";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 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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=h();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function v(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){p(s,n,i,o,a,"next",e)}function a(e){p(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,i=t.rel,o=t.enabled,a=void 0===o||o;(0,C.assert)(r&&"string"==typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,C.removeNullCharacters)(r);a?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var u="";switch(n){case I.NONE:break;case I.SELF:u="_self";break;case I.BLANK:u="_blank";break;case I.PARENT:u="_parent";break;case I.TOP:u="_top"}e.target=u,e.rel="string"==typeof i?i:P}function _(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}function A(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function w(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(e){return!1}}function S(e){return new Promise(function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)})}function k(e){console.log("Deprecated API usage: "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=b,t.getFilenameFromUrl=_,t.isFetchSupported=A,t.isValidFetchUrl=w,t.loadScript=S,t.deprecated=k,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var x=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),C=r(5),P="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=P;var R="http://www.w3.org/2000/svg",T=function(){function e(){y(this,e)}return m(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=T;var E=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,i=t.isCompressed,o=void 0!==i&&i;y(this,e),this.baseUrl=n,this.isCompressed=o}return m(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=v(x.default.mark(function e(t){var r,n,i,o=this;return x.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),i=this.isCompressed?C.CMapCompressionType.BINARY:C.CMapCompressionType.NONE,!A()||!w(n,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(n).then(function(){var e=v(x.default.mark(function e(t){var r;return x.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!o.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=C.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:i});case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 9:return e.abrupt("return",new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n,!0),o.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){var n;if(o.isCompressed&&r.response?n=new Uint8Array(r.response):!o.isCompressed&&r.responseText&&(n=(0,C.stringToBytes)(r.responseText)),n)return void e({cMapData:n,compressionType:i})}t(new Error(r.statusText))}},r.send(null)}).catch(function(e){throw new Error("Unable to load ".concat(o.isCompressed?"binary ":"")+"CMap at: ".concat(n))}));case 10:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=E;var O=function(){function e(){y(this,e)}return m(e,[{key:"create",value:function(e,t){(0,C.assert)(e>0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(R,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,C.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(R,e)}}]),e}();t.DOMSVGFactory=O;var L=function(){function e(t){var r=t.viewBox,n=t.scale,i=t.rotation,o=t.offsetX,a=void 0===o?0:o,s=t.offsetY,u=void 0===s?0:s,c=t.dontFlip,l=void 0!==c&&c;y(this,e),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=a,this.offsetY=u;var f,h,d,p,v=(r[2]+r[0])/2,g=(r[3]+r[1])/2;switch(i%=360,i=i<0?i+360:i){case 180:f=-1,h=0,d=0,p=1;break;case 90:f=0,h=1,d=1,p=0;break;case 270:f=0,h=-1,d=-1,p=0;break;case 0:f=1,h=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}l&&(d=-d,p=-p);var m,b,_,A;0===f?(m=Math.abs(g-r[1])*n+a,b=Math.abs(v-r[0])*n+u,_=Math.abs(r[3]-r[1])*n,A=Math.abs(r[2]-r[0])*n):(m=Math.abs(v-r[0])*n+a,b=Math.abs(g-r[1])*n+u,_=Math.abs(r[2]-r[0])*n,A=Math.abs(r[3]-r[1])*n),this.transform=[f*n,h*n,d*n,p*n,m-f*n*v-d*n*g,b-h*n*v-p*n*g],this.width=_,this.height=A}return m(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,i=t.rotation,o=void 0===i?this.rotation:i,a=t.offsetX,s=void 0===a?this.offsetX:a,u=t.offsetY,c=void 0===u?this.offsetY:u,l=t.dontFlip,f=void 0!==l&&l;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:o,offsetX:s,offsetY:c,dontFlip:f})}},{key:"convertToViewportPoint",value:function(e,t){return C.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=C.Util.applyTransform([e[0],e[1]],this.transform),r=C.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return C.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=L;var F=function(e){function t(e,n){var i;return y(this,t),i=r.call(this,e),i.type=n,i}s(t,e);var r=c(t);return t}(C.BaseException);t.RenderingCancelledException=F;var I={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=I;var M=function(){function e(){y(this,e),this.started=Object.create(null),this.times=[]}return m(e,[{key:"time",value:function(e){e in this.started&&(0,C.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,C.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,i=n(this.times);try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.name;a.length>r&&(r=a.length)}}catch(e){i.e(e)}finally{i.f()}var s,u=n(this.times);try{for(u.s();!(s=u.n()).done;){var c=s.value,l=c.end-c.start;t.push("".concat(c.name.padEnd(r)," ").concat(l,"ms\n"))}}catch(e){u.e(e)}finally{u.f()}return t.join("")}}]),e}();t.StatTimer=M;var j,D=function(){function e(){y(this,e)}return m(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,C.isString)(e))return null;j||(j=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=j.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var u=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var l=parseInt(t[9],10)||0;return l=l>=0&&l<=59?l:0,"-"===u?(o+=c,a+=l):"+"===u&&(o-=c,a-=l),new Date(Date.UTC(r,n,i,o,a,s))}}]),e}();t.PDFDateString=D},function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){"use strict";(function(e){function t(e){"@babel/helpers - typeof";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,n){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),s=new d(n||[]);return a._invoke=c(e,r,s),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e,r){function i(o,a,s,u){var c=n(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"===t(f)&&m.call(f,"__await")?r.resolve(f.__await).then(function(e){i("next",e,s,u)},function(e){i("throw",e,s,u)}):r.resolve(f).then(function(e){l.value=e,s(l)},function(e){return i("throw",e,s,u)})}u(c.arg)}function o(e,t){function n(){return new r(function(r,n){i(e,t,r,n)})}return a=a?a.then(n,n):n()}var a;this._invoke=o}function c(e,t,r){var i=S;return function(o,a){if(i===x)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=l(s,r);if(u){if(u===P)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=x;var c=n(e,t,r);if("normal"===c.type){if(i=r.done?C:k,c.arg===P)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=C,r.method="throw",r.arg=c.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===y){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=y,l(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 i=n(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,P;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,P):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,P)}function f(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 h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function p(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(m.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=y,t.done=!0,t};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",A=b.asyncIterator||"@@asyncIterator",w=b.toStringTag||"@@toStringTag";e.wrap=r;var S="suspendedStart",k="suspendedYield",x="executing",C="completed",P={},R={};R[_]=function(){return this};var T=Object.getPrototypeOf,E=T&&T(T(p([])));E&&E!==g&&m.call(E,_)&&(R=E);var O=a.prototype=i.prototype=Object.create(R);return o.prototype=O.constructor=a,a.constructor=o,a[w]=o.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,w in e||(e[w]="GeneratorFunction")),e.prototype=Object.create(O),e},e.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[A]=function(){return this},e.AsyncIterator=u,e.async=function(t,n,i,o,a){void 0===a&&(a=Promise);var s=new u(r(t,n,i,o),a);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},s(O),O[w]="Generator",O[_]=function(){return this},O.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=p,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&m.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=y)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return o.type="throw",o.arg=e,r.next=t,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),s=m.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,P):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),P},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),h(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 n=r.completion;if("throw"===n.type){var i=n.arg;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:p(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=y),P}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(e){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 n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function o(e){"@babel/helpers - typeof";return(o="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=h();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){Number.isInteger(e)&&(ue=e)}function v(){return ue}function y(e){ue>=ne.INFOS&&console.log("Info: ".concat(e))}function g(e){ue>=ne.WARNINGS&&console.log("Warning: ".concat(e))}function m(e){throw new Error(e)}function b(e,t){e||m(t)}function _(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}var n=new URL(t,r);return r.origin===n.origin}function A(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(A(r))return r}catch(e){}return null}function S(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function k(e){return"string"!=typeof e?(g("The argument for removeNullCharacters must be a string."),e):e.replace(ge,"")}function x(e){b(null!==e&&"object"===o(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var r=[],n=0;n<t;n+=8192){var i=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function C(e){b("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);return r}function P(e){return void 0!==e.length?e.length:(b(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}function R(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,n=0;n<t;n++)r+=P(e[n]);for(var i=0,o=new Uint8Array(r),a=0;a<t;a++){var s=e[a];s instanceof Uint8Array||(s="string"==typeof s?C(s):new Uint8Array(s));var u=s.byteLength;o.set(s,i),i+=u}return o}function T(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function E(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}function O(){try{return new Function(""),!0}catch(e){return!1}}function L(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n)<<8|e.charCodeAt(n+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var i=2;i<t;i+=2)r.push(String.fromCharCode(e.charCodeAt(i+1)<<8|e.charCodeAt(i)));else for(var o=0;o<t;++o){var a=we[e.charCodeAt(o)];r.push(a?String.fromCharCode(a):e.charAt(o))}return r.join("")}function F(e){return decodeURIComponent(escape(e))}function I(e){return unescape(encodeURIComponent(e))}function M(e){for(var t in e)return!1;return!0}function j(e){return"boolean"==typeof e}function D(e){return"number"==typeof e}function N(e){return"string"==typeof e}function U(e){return"object"===o(e)&&null!==e&&void 0!==e.byteLength}function q(e,t){return e.length===t.length&&e.every(function(e,r){return e===t[r]})}function W(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise(function(r,n){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,n(e)}}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=P,t.arraysToBytes=R,t.assert=b,t.bytesToString=x,t.createPromiseCapability=W,t.getVerbosityLevel=v,t.info=y,t.isArrayBuffer=U,t.isArrayEqual=q,t.isBool=j,t.isEmptyObj=M,t.isNum=D,t.isString=N,t.isSameOrigin=_,t.createValidAbsoluteUrl=w,t.removeNullCharacters=k,t.setVerbosityLevel=p,t.shadow=S,t.string32=T,t.stringToBytes=C,t.stringToPDFString=L,t.stringToUTF8String=F,t.utf8StringToString=I,t.warn=g,t.unreachable=m,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(6);var B=[1,0,0,1,0,0];t.IDENTITY_MATRIX=B;var G=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=G;var z={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=z;var H={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=H;var Y={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=Y;var X={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=X;var V={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=V;var K={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=K;var Q={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=Q;var J={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=J;var Z={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=Z;var $={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=$;var ee={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=ee;var te={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=te;var re={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=re;var ne={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=ne;var ie={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=ie;var oe={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=oe;var ae={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"};t.UNSUPPORTED_FEATURES=ae;var se={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=se;var ue=ne.WARNINGS,ce=function(){function e(t){this.constructor===e&&m("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=ce;var le=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.code=n,i}s(t,e);var r=c(t);return t}(ce);t.PasswordException=le;var fe=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.details=n,i}s(t,e);var r=c(t);return t}(ce);t.UnknownErrorException=fe;var he=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.InvalidPDFException=he;var de=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.MissingPDFException=de;var pe=function(e){function t(e,n){var i;return a(this,t),i=r.call(this,e),i.status=n,i}s(t,e);var r=c(t);return t}(ce);t.UnexpectedResponseException=pe;var ve=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.FormatError=ve;var ye=function(e){function t(){return a(this,t),r.apply(this,arguments)}s(t,e);var r=c(t);return t}(ce);t.AbortException=ye;var ge=/\x00/g,me={get value(){return S(this,"value",E())}};t.IsLittleEndianCached=me;var be={get value(){return S(this,"value",O())}};t.IsEvalSupportedCached=be;var _e=["rgb(",0,",",0,",",0,")"],Ae=function(){function e(){a(this,e)}return i(e,null,[{key:"makeCssRgb",value:function(e,t,r){return _e[1]=e,_e[3]=t,_e[5]=r,_e.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),o=e.applyTransform([t[0],t[3]],r),a=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],i[0],o[0],a[0]),Math.min(n[1],i[1],o[1],a[1]),Math.max(n[0],i[0],o[0],a[0]),Math.max(n[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(r+o)/2,s=Math.sqrt((r+o)*(r+o)-4*(r*o-i*n))/2,u=a+s||1,c=a-s||1;return[Math.sqrt(u),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[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 n(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(n),o=[t[1],t[3],r[1],r[3]].sort(n),a=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0]?(a[0]=i[1],a[2]=i[2],o[0]===t[1]&&o[1]===r[1]||o[0]===r[1]&&o[1]===t[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}]),e}();t.Util=Ae;var we=[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],Se=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var n=new Blob([t],{type:r});return URL.createObjectURL(n)}for(var i="data:".concat(r,";base64,"),o=0,a=t.length;o<a;o+=3){var s=255&t[o],u=255&t[o+1],c=255&t[o+2];i+=e[s>>2]+e[(3&s)<<4|u>>4]+e[o+1<a?(15&u)<<2|c>>6:64]+e[o+2<a?63&c:64]}return i}}();t.createObjectURL=Se},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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)}var i=r(7);if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=r(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":n(window))&&"object"===("undefined"==typeof document?"undefined":n(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!function(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(e){return Buffer.from(e,"binary").toString("base64")})}(),function(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(e){return Buffer.from(e,"base64").toString("binary")})}(),function(){o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(o&&!i.isNodeJS){var e=document.createElement("div");if(e.classList.add("testOne","testTwo"),!0!==e.classList.contains("testOne")||!0!==e.classList.contains("testTwo")){var t=DOMTokenList.prototype.add,r=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i];t.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a=o[i];r.call(this,a)}}}}}(),function(){if(o&&!i.isNodeJS){!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(e){var t=arguments.length>1?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(o&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,r,n){var i=void 0===n?[t,r]:[t,r,n];e.apply(this,i)},window.history.replaceState=function(e,r,n){var i=void 0===n?[e,r]:[e,r,n];t.apply(this,i)}}}(),function(){String.prototype.startsWith||r(53)}(),function(){String.prototype.endsWith||r(64)}(),function(){String.prototype.includes||r(66)}(),function(){Array.prototype.includes||r(68)}(),function(){Array.from||r(76)}(),function(){Object.assign||r(98)}(),function(){Math.log2||(Math.log2=r(101))}(),function(){Number.isNaN||(Number.isNaN=r(103))}(),function(){Number.isInteger||(Number.isInteger=r(105))}(),function(){Uint8Array.prototype.slice||r(108)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(113))}(),function(){globalThis.URL=r(136)}(),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(e){}e||(globalThis.ReadableStream=r(143).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(144))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(151))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(153))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(159))}(),function(){String.prototype.codePointAt||r(161)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(163))}(),function(){globalThis.Symbol||r(165)}(),function(){String.prototype.padStart||r(188)}(),function(){String.prototype.padEnd||r(193)}(),function(){Object.values||(Object.values=r(195))}()}},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":n(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=i},function(e,t,r){r(9),e.exports=r(11)},function(e,t,r){r(10)({global:!0},{globalThis:r(11)})},function(e,t,r){var n=r(11),i=r(12).f,o=r(26),a=r(29),s=r(30),u=r(40),c=r(52);e.exports=function(e,t){var r,l,f,h,d,p=e.target,v=e.global,y=e.stat;if(r=v?n:y?n[p]||s(p,{}):(n[p]||{}).prototype)for(l in t){if(h=t[l],e.noTargetGet?(d=i(r,l),f=d&&d.value):f=r[l],!c(v?l:p+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(r,l,h,e)}}},function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||Function("return this")()},function(e,t,r){var n=r(13),i=r(15),o=r(16),a=r(17),s=r(21),u=r(23),c=r(24),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){var n=r(14);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},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 n=r(18),i=r(20);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(14),i=r(19),o="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.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 n=r(22);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;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 n=r(13),i=r(14),o=r(25);e.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(11),i=r(22),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,r){var n=r(13),i=r(27),o=r(16);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(13),i=r(24),o=r(28),a=r(21),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return s(e,t,r)}catch(e){}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 n=r(22);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(11),i=r(26),o=r(23),a=r(30),s=r(31),u=r(33),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;if("function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e===n)return void(c?e[t]=r:a(t,r));u?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=r:i(e,t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,r){var n=r(11),i=r(26);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(32),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(11),i=r(30),o=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,r){var n,i,o,a=r(34),s=r(11),u=r(22),c=r(26),l=r(23),f=r(35),h=r(39),d=s.WeakMap,p=function(e){return o(e)?i(e):n(e,{})},v=function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(a){var y=new d,g=y.get,m=y.has,b=y.set;n=function(e,t){return b.call(y,e,t),t},i=function(e){return g.call(y,e)||{}},o=function(e){return m.call(y,e)}}else{var _=f("state");h[_]=!0,n=function(e,t){return c(e,_,t),t},i=function(e){return l(e,_)?e[_]:{}},o=function(e){return l(e,_)}}e.exports={set:n,get:i,has:o,enforce:p,getterFor:v}},function(e,t,r){var n=r(11),i=r(31),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(36),i=r(38),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,r){var n=r(37),i=r(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(23),i=r(41),o=r(12),a=r(27);e.exports=function(e,t){for(var r=i(t),s=a.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||s(e,l,u(t,l))}}},function(e,t,r){var n=r(42),i=r(44),o=r(51),a=r(28);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(43),i=r(11),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){var n=r(11);e.exports=n},function(e,t,r){var n=r(45),i=r(50),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(23),i=r(17),o=r(46).indexOf,a=r(39);e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(17),i=r(47),o=r(49),a=function(e){return function(t,r,a){var s,u=n(t),c=i(u.length),l=o(a,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(48),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(48),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(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 n=r(14),i=/#|\.prototype\./,o=function(e,t){var r=s[a(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,r){r(54);var n=r(61);e.exports=n("String","startsWith")},function(e,t,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),u=r(60),c=r(37),l="".startsWith,f=Math.min,h=u("startsWith");n({target:"String",proto:!0,forced:!(!c&&!h&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}()||h)},{startsWith:function(e){var t=String(s(this));a(e);var r=o(f(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return l?l.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){var n=r(56);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(22),i=r(19),o=r(57),a=o("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(11),i=r(36),o=r(23),a=r(38),s=r(58),u=r(59),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,r){var n=r(14);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,r){var n=r(58);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(57),i=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[i]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,r){var n=r(11),i=r(62),o=Function.call;e.exports=function(e,t,r){return i(o,n[e].prototype[t],r)}},function(e,t,r){var n=r(63);e.exports=function(e,t,r){if(n(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,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}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(65);var n=r(61);e.exports=n("String","endsWith")},function(e,t,r){"use strict";var n=r(10),i=r(12).f,o=r(47),a=r(55),s=r(20),u=r(60),c=r(37),l="".endsWith,f=Math.min,h=u("endsWith");n({target:"String",proto:!0,forced:!(!c&&!h&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}()||h)},{endsWith:function(e){var t=String(s(this));a(e);var r=arguments.length>1?arguments[1]:void 0,n=o(t.length),i=void 0===r?n:f(o(r),n),u=String(e);return l?l.call(t,u,i):t.slice(i-u.length,i)===u}})},function(e,t,r){r(67);var n=r(61);e.exports=n("String","includes")},function(e,t,r){"use strict";var n=r(10),i=r(55),o=r(20);n({target:"String",proto:!0,forced:!r(60)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(69);var n=r(61);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(10),i=r(46).includes,o=r(70);n({target:"Array",proto:!0,forced:!r(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,r){var n=r(57),i=r(71),o=r(27),a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,r){var n,i=r(28),o=r(72),a=r(50),s=r(39),u=r(74),c=r(25),l=r(35),f=l("IE_PROTO"),h=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe");return t.style.display="none",u.appendChild(t),t.src=String("javascript:"),e=t.contentWindow.document,e.open(),e.write(d("document.F=Object")),e.close(),e.F},y=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}y=n?p(n):v();for(var e=a.length;e--;)delete y.prototype[a[e]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h.prototype=i(e),r=new h,h.prototype=null,r[f]=e):r=y(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(13),i=r(27),o=r(28),a=r(73);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=n.length,u=0;s>u;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(45),i=r(50);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(42);e.exports=n("document","documentElement")},function(e,t,r){var n=r(13),i=r(14),o=r(23),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var r=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return s[e]=!!r&&!i(function(){if(c&&!n)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,l,f)})}},function(e,t,r){r(77),r(89);var n=r(43);e.exports=n.Array.from},function(e,t,r){"use strict";var n=r(78).charAt,i=r(33),o=r(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(48),i=r(20),o=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){"use strict";var n=r(10),i=r(80),o=r(82),a=r(87),s=r(85),u=r(26),c=r(29),l=r(57),f=r(37),h=r(86),d=r(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g=function(){return this};e.exports=function(e,t,r,l,d,m,b){i(r,t,l);var _,A,w,S=function(e){if(e===d&&R)return R;if(!v&&e in C)return C[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",x=!1,C=e.prototype,P=C[y]||C["@@iterator"]||d&&C[d],R=!v&&P||S(d),T="Array"==t?C.entries||P:P;if(T&&(_=o(T.call(new e)),p!==Object.prototype&&_.next&&(f||o(_)===p||(a?a(_,p):"function"!=typeof _[y]&&u(_,y,g)),s(_,k,!0,!0),f&&(h[k]=g))),"values"==d&&P&&"values"!==P.name&&(x=!0,R=function(){return P.call(this)}),f&&!b||C[y]===R||u(C,y,R),h[t]=R,d)if(A={values:S("values"),keys:m?R:S("keys"),entries:S("entries")},b)for(w in A)!v&&!x&&w in C||c(C,w,A[w]);else n({target:t,proto:!0,forced:v||x},A);return A}},function(e,t,r){"use strict";var n=r(81).IteratorPrototype,i=r(71),o=r(16),a=r(85),s=r(86),u=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,r){"use strict";var n,i,o,a=r(82),s=r(26),u=r(23),c=r(57),l=r(37),f=c("iterator"),h=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),void 0==n&&(n={}),l||u(n,f)||s(n,f,d),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){var n=r(23),i=r(83),o=r(35),a=r(84),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,r){var n=r(20);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(14);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){var n=r(27).f,i=r(23),o=r(57),a=o("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){var n=r(28),i=r(88);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(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n=r(22);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(10),i=r(90);n({target:"Array",stat:!0,forced:!r(97)(function(e){Array.from(e)})},{from:i})},function(e,t,r){"use strict";var n=r(62),i=r(83),o=r(91),a=r(92),s=r(47),u=r(93),c=r(94);e.exports=function(e){var t,r,l,f,h,d,p=i(e),v="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=c(p),_=0;if(m&&(g=n(g,y>2?arguments[2]:void 0,2)),void 0==b||v==Array&&a(b))for(t=s(p.length),r=new v(t);t>_;_++)d=m?g(p[_],_):p[_],u(r,_,d);else for(f=b.call(p),h=f.next,r=new v;!(l=h.call(f)).done;_++)d=m?o(f,g,[l.value,_],!0):l.value,u(r,_,d);return r.length=_,r}},function(e,t,r){var n=r(28);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(57),i=r(86),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,r){"use strict";var n=r(21),i=r(27),o=r(16);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},function(e,t,r){var n=r(95),i=r(86),o=r(57),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(96),i=r(19),o=r(57),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=Object(e),a))?r:s?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(57),i=n("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},function(e,t,r){var n=r(57),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},function(e,t,r){r(99);var n=r(43);e.exports=n.Object.assign},function(e,t,r){var n=r(10),i=r(100);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,r){"use strict";var n=r(13),i=r(14),o=r(73),a=r(51),s=r(15),u=r(83),c=r(18),l=Object.assign,f=Object.defineProperty;e.exports=!l||i(function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||o(l({},t)).join("")!=i})?function(e,t){for(var r=u(e),i=arguments.length,l=1,f=a.f,h=s.f;i>l;)for(var d,p=c(arguments[l++]),v=f?o(p).concat(f(p)):o(p),y=v.length,g=0;y>g;)d=v[g++],n&&!h.call(p,d)||(r[d]=p[d]);return r}:l},function(e,t,r){r(102);var n=r(43);e.exports=n.Math.log2},function(e,t,r){var n=r(10),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},function(e,t,r){r(104);var n=r(43);e.exports=n.Number.isNaN},function(e,t,r){r(10)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){r(106);var n=r(43);e.exports=n.Number.isInteger},function(e,t,r){r(10)({target:"Number",stat:!0},{isInteger:r(107)})},function(e,t,r){var n=r(22),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){r(109)},function(e,t,r){"use strict";var n=r(110),i=r(112),o=r(14),a=n.aTypedArray,s=n.aTypedArrayConstructor,u=n.exportTypedArrayMethod,c=[].slice,l=o(function(){new Int8Array(1).slice()});u("slice",function(e,t){for(var r=c.call(a(this),e,t),n=i(this,this.constructor),o=0,u=r.length,l=new(s(n))(u);u>o;)l[o]=r[o++];return l},l)},function(e,t,r){"use strict";var n,i=r(111),o=r(13),a=r(11),s=r(22),u=r(23),c=r(95),l=r(26),f=r(29),h=r(27).f,d=r(82),p=r(87),v=r(57),y=r(38),g=a.Int8Array,m=g&&g.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,A=g&&d(g),w=m&&d(m),S=Object.prototype,k=S.isPrototypeOf,x=v("toStringTag"),C=y("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==c(a.opera),R=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(e){var t=c(e);return"DataView"===t||u(T,t)},O=function(e){return s(e)&&u(T,c(e))},L=function(e){if(O(e))return e;throw TypeError("Target is not a typed array")},F=function(e){if(p){if(k.call(A,e))return e}else for(var t in T)if(u(T,n)){var r=a[t];if(r&&(e===r||k.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},I=function(e,t,r){if(o){if(r)for(var n in T){var i=a[n];i&&u(i.prototype,e)&&delete i.prototype[e]}w[e]&&!r||f(w,e,r?t:P&&m[e]||t)}},M=function(e,t,r){var n,i;if(o){if(p){if(r)for(n in T)(i=a[n])&&u(i,e)&&delete i[e];if(A[e]&&!r)return;try{return f(A,e,r?t:P&&g[e]||t)}catch(e){}}for(n in T)!(i=a[n])||i[e]&&!r||f(i,e,t)}};for(n in T)a[n]||(P=!1);if((!P||"function"!=typeof A||A===Function.prototype)&&(A=function(){throw TypeError("Incorrect invocation")},P))for(n in T)a[n]&&p(a[n],A);if((!P||!w||w===S)&&(w=A.prototype,P))for(n in T)a[n]&&p(a[n].prototype,w);if(P&&d(_)!==w&&p(_,w),o&&!u(w,x)){R=!0,h(w,x,{get:function(){return s(this)?this[C]:void 0}});for(n in T)a[n]&&l(a[n],C,n)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:R&&C,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:I,exportTypedArrayStaticMethod:M,isView:E,isTypedArray:O,TypedArray:A,TypedArrayPrototype:w}},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,r){var n=r(28),i=r(63),o=r(57),a=o("species");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[a])?t:i(r)}},function(e,t,r){r(114),r(77),r(116),r(119),r(134),r(135);var n=r(43);e.exports=n.Promise},function(e,t,r){var n=r(96),i=r(29),o=r(115);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n=r(96),i=r(95);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){var n=r(11),i=r(117),o=r(118),a=r(26),s=r(57),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var h=n[f],d=h&&h.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(e){d[u]=l}if(d[c]||a(d,c,f),i[f])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(e){d[p]=o[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 n=r(17),i=r(70),o=r(86),a=r(33),s=r(79),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){"use strict";var n,i,o,a,s=r(10),u=r(37),c=r(11),l=r(42),f=r(120),h=r(29),d=r(121),p=r(85),v=r(122),y=r(22),g=r(63),m=r(123),b=r(19),_=r(31),A=r(124),w=r(97),S=r(112),k=r(125).set,x=r(128),C=r(129),P=r(131),R=r(130),T=r(132),E=r(33),O=r(52),L=r(57),F=r(133),I=L("species"),M="Promise",j=E.get,D=E.set,N=E.getterFor(M),U=f,q=c.TypeError,W=c.document,B=c.process,G=l("fetch"),z=R.f,H=z,Y="process"==b(B),X=!!(W&&W.createEvent&&c.dispatchEvent),V=O(M,function(){if(_(U)===String(U)){if(66===F)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype.finally)return!0;if(F>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e(function(){},function(){})},r=e.constructor={};return r[I]=t,!(e.then(function(){})instanceof t)}),K=V||!w(function(e){U.all(e).catch(function(){})}),Q=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;x(function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var s,u,c,l=n[a++],f=o?l.ok:l.fail,h=l.resolve,d=l.reject,p=l.domain;try{f?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),c=!0)),s===l.promise?d(q("Promise-chain cycle")):(u=Q(s))?u.call(s,h,d):h(s)):d(i)}catch(e){p&&!c&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&$(e,t)})}},Z=function(e,t,r){var n,i;X?(n=W.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(i=c["on"+e])?i(n):"unhandledrejection"===e&&P("Unhandled promise rejection",r)},$=function(e,t){k.call(c,function(){var r,n=t.value,i=ee(t);if(i&&(r=T(function(){Y?B.emit("unhandledRejection",n,e):Z("unhandledrejection",e,n)}),t.rejection=Y||ee(t)?2:1,r.error))throw r.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){k.call(c,function(){Y?B.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},re=function(e,t,r,n){return function(i){e(t,r,i,n)}},ne=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,J(e,t,!0))},ie=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw q("Promise can't be resolved itself");var i=Q(r);i?x(function(){var n={done:!1};try{i.call(r,re(ie,e,n,t),re(ne,e,n,t))}catch(r){ne(e,n,r,t)}}):(t.value=r,t.state=1,J(e,t,!1))}catch(r){ne(e,{done:!1},r,t)}}};V&&(U=function(e){m(this,U,M),g(e),n.call(this);var t=j(this);try{e(re(ie,this,t),re(ne,this,t))}catch(e){ne(this,t,e)}},n=function(e){D(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},n.prototype=d(U.prototype,{then:function(e,t){var r=N(this),n=z(S(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Y?B.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&J(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=j(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(ne,e,t)},R.f=z=function(e){return e===U||e===o?new i(e):H(e)},u||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",function(e,t){var r=this;return new U(function(e,t){a.call(r,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof G&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,G.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:U}),p(U,M,!1,!0),v(M),o=l(M),s({target:M,stat:!0,forced:V},{reject:function(e){var t=z(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:u||V},{resolve:function(e){return C(u&&this===o?U:this,e)}}),s({target:M,stat:!0,forced:K},{all:function(e){var t=this,r=z(t),n=r.resolve,i=r.reject,o=T(function(){var r=g(t.resolve),o=[],a=0,s=1;A(e,function(e){var u=a++,c=!1;o.push(void 0),s++,r.call(t,e).then(function(e){c||(c=!0,o[u]=e,--s||n(o))},i)}),--s||n(o)});return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=z(t),n=r.reject,i=T(function(){var i=g(t.resolve);A(e,function(e){i.call(t,e).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=r(11);e.exports=n.Promise},function(e,t,r){var n=r(29);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(42),i=r(27),o=r(57),a=r(13),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&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 n=r(28),i=r(92),o=r(47),a=r(62),s=r(94),u=r(91),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var h,d,p,v,y,g,m,b=a(t,r,l?2:1);if(f)h=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(e.length);v>p;p++)if((y=l?b(n(m=e[p])[0],m[1]):b(e[p]))&&y instanceof c)return y;return new c(!1)}h=d.call(e)}for(g=h.next;!(m=g.call(h)).done;)if("object"==typeof(y=u(h,b,m.value,l))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,r){var n,i,o,a=r(11),s=r(14),u=r(19),c=r(62),l=r(74),f=r(25),h=r(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,y=a.process,g=a.MessageChannel,m=a.Dispatch,b=0,_={},A=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){A(e)}},S=function(e){A(e.data)},k=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};p&&v||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},v=function(e){delete _[e]},"process"==u(y)?n=function(e){y.nextTick(w(e))}:m&&m.now?n=function(e){m.now(w(e))}:g&&!h?(i=new g,o=i.port2,i.port1.onmessage=S,n=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(k)||"file:"===d.protocol?n="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),A(e)}}:function(e){setTimeout(w(e),0)}:(n=k,a.addEventListener("message",S,!1))),e.exports={set:p,clear:v}},function(e,t,r){var n=r(127);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(42);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n,i,o,a,s,u,c,l,f=r(11),h=r(12).f,d=r(19),p=r(125).set,v=r(126),y=f.MutationObserver||f.WebKitMutationObserver,g=f.process,m=f.Promise,b="process"==d(g),_=h(f,"queueMicrotask"),A=_&&_.value;A||(n=function(){var e,t;for(b&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},b?a=function(){g.nextTick(n)}:y&&!v?(s=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):m&&m.resolve?(c=m.resolve(void 0),l=c.then,a=function(){l.call(c,n)}):a=function(){p.call(f,n)}),e.exports=A||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,r){var n=r(28),i=r(22),o=r(130);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(63),i=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(11);e.exports=function(e,t){var r=n.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(e){return{error:!0,value:e}}}},function(e,t,r){var n,i,o=r(11),a=r(127),s=o.process,u=s&&s.versions,c=u&&u.v8;c?(n=c.split("."),i=n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){"use strict";var n=r(10),i=r(63),o=r(130),a=r(132),s=r(124);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=a(function(){var r=i(t.resolve),o=[],a=0,u=1;s(e,function(e){var i=a++,s=!1;o.push(void 0),u++,r.call(t,e).then(function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--u||n(o))},function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--u||n(o))})}),--u||n(o)});return c.error&&u(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(10),i=r(37),o=r(120),a=r(14),s=r(42),u=r(112),c=r(129),l=r(29);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=u(this,s("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)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,r){r(137),r(142),r(140);var n=r(43);e.exports=n.URL},function(e,t,r){"use strict";r(77);var n,i=r(10),o=r(13),a=r(138),s=r(11),u=r(72),c=r(29),l=r(123),f=r(23),h=r(100),d=r(90),p=r(78).codeAt,v=r(139),y=r(85),g=r(140),m=r(33),b=s.URL,_=g.URLSearchParams,A=g.getState,w=m.set,S=m.getterFor("URL"),k=Math.floor,x=Math.pow,C=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,R=/\d/,T=/^(0x|0X)/,E=/^[0-7]+$/,O=/^\d+$/,L=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,D=function(e,t){var r,n,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(r=U(t.slice(1,-1))))return"Invalid host";e.host=r}else if(V(e)){if(t=v(t),F.test(t))return"Invalid host";if(null===(r=N(t)))return"Invalid host";e.host=r}else{if(I.test(t))return"Invalid host";for(r="",n=d(t),i=0;i<n.length;i++)r+=Y(n[i],B);e.host=r}},N=function(e){var t,r,n,i,o,a,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=T.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?E:L).test(i))return e;a=parseInt(i,o)}r.push(a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=x(256,5-t))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*x(256,3-n);return s},U=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,c++,l=c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&L.test(h());)t=16*t+parseInt(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!R.test(h()))return;for(;R.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,c++,l=c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u},q=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t},W=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=q(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},B={},G=h({},B,{" ":1,'"':1,"<":1,">":1,"`":1}),z=h({},G,{"#":1,"?":1,"{":1,"}":1}),H=h({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(e,t){var r=p(e,0);return r>32&&r<127&&!f(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(e){return f(X,e.scheme)},K=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},J=function(e,t){var r;return 2==e.length&&C.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},Z=function(e){var t;return e.length>1&&J(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},$=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&J(t[0],!0)||t.pop()},ee=function(e){return"."===e||"%2e"===e.toLowerCase()},te=function(e){return".."===(e=e.toLowerCase())||"%2e."===e||".%2e"===e||"%2e%2e"===e},re={},ne={},ie={},oe={},ae={},se={},ue={},ce={},le={},fe={},he={},de={},pe={},ve={},ye={},ge={},me={},be={},_e={},Ae={},we={},Se=function(e,t,r,i){var o,a,s,u,c=r||re,l=0,h="",p=!1,v=!1,y=!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(M,"")),t=t.replace(j,""),o=d(t);l<=o.length;){switch(a=o[l],c){case re:if(!a||!C.test(a)){if(r)return"Invalid scheme";c=ie;continue}h+=a.toLowerCase(),c=ne;break;case ne:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";h="",c=ie,l=0;continue}if(r&&(V(e)!=f(X,h)||"file"==h&&(K(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(V(e)&&X[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ve:V(e)&&i&&i.scheme==e.scheme?c=oe:V(e)?c=ce:"/"==o[l+1]?(c=ae,l++):(e.cannotBeABaseURL=!0,e.path.push(""),c=_e)}break;case ie:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,c=we;break}c="file"==i.scheme?ve:se;continue;case oe:if("/"!=a||"/"!=o[l+1]){c=se;continue}c=le,l++;break;case ae:if("/"==a){c=fe;break}c=be;continue;case se:if(e.scheme=i.scheme,a==n)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&V(e))c=ue;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",c=Ae;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),c=be;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=we}break;case ue:if(!V(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,c=be;continue}c=fe}else c=le;break;case ce:if(c=le,"/"!=a||"/"!=h.charAt(l+1))continue;l++;break;case le:if("/"!=a&&"\\"!=a){c=fe;continue}break;case fe:if("@"==a){p&&(h="%40"+h),p=!0,s=d(h);for(var g=0;g<s.length;g++){var m=s[g];if(":"!=m||y){var b=Y(m,H);y?e.password+=b:e.username+=b}else y=!0}h=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(p&&""==h)return"Invalid authority";l-=d(h).length+1,h="",c=he}else h+=a;break;case he:case de:if(r&&"file"==e.scheme){c=ge;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)){if(V(e)&&""==h)return"Invalid host";if(r&&""==h&&(K(e)||null!==e.port))return;if(u=D(e,h))return u;if(h="",c=me,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),h+=a}else{if(""==h)return"Invalid host";if(u=D(e,h))return u;if(h="",c=pe,r==de)return}break;case pe:if(!R.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&V(e)||r){if(""!=h){var _=parseInt(h,10);if(_>65535)return"Invalid port";e.port=V(e)&&_===X[e.scheme]?null:_,h=""}if(r)return;c=me;continue}return"Invalid port"}h+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)c=ye;else{if(!i||"file"!=i.scheme){c=be;continue}if(a==n)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",c=Ae;else{if("#"!=a){Z(o.slice(l).join(""))||(e.host=i.host,e.path=i.path.slice(),$(e)),c=be;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",c=we}}break;case ye:if("/"==a||"\\"==a){c=ge;break}i&&"file"==i.scheme&&!Z(o.slice(l).join(""))&&(J(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),c=be;continue;case ge:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&J(h))c=be;else if(""==h){if(e.host="",r)return;c=me}else{if(u=D(e,h))return u;if("localhost"==e.host&&(e.host=""),r)return;h="",c=me}continue}h+=a;break;case me:if(V(e)){if(c=be,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(c=be,"/"!=a))continue}else e.fragment="",c=we;else e.query="",c=Ae;break;case be:if(a==n||"/"==a||"\\"==a&&V(e)||!r&&("?"==a||"#"==a)){if(te(h)?($(e),"/"==a||"\\"==a&&V(e)||e.path.push("")):ee(h)?"/"==a||"\\"==a&&V(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&J(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==n||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=Ae):"#"==a&&(e.fragment="",c=we)}else h+=Y(a,z);break;case _e:"?"==a?(e.query="",c=Ae):"#"==a?(e.fragment="",c=we):a!=n&&(e.path[0]+=Y(a,B));break;case Ae:r||"#"!=a?a!=n&&("'"==a&&V(e)?e.query+="%27":e.query+="#"==a?"%23":Y(a,B)):(e.fragment="",c=we);break;case we:a!=n&&(e.fragment+=Y(a,G))}l++}},ke=function(e){var t,r,n=l(this,ke,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(n,{type:"URL"});if(void 0!==i)if(i instanceof ke)t=S(i);else if(r=Se(t={},String(i)))throw TypeError(r);if(r=Se(s,a,null,t))throw TypeError(r);var u=s.searchParams=new _,c=A(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},o||(n.href=Ce.call(n),n.origin=Pe.call(n),n.protocol=Re.call(n),n.username=Te.call(n),n.password=Ee.call(n),n.host=Oe.call(n),n.hostname=Le.call(n),n.port=Fe.call(n),n.pathname=Ie.call(n),n.search=Me.call(n),n.searchParams=je.call(n),n.hash=De.call(n))},xe=ke.prototype,Ce=function(){var e=S(this),t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",K(e)&&(c+=r+(n?":"+n:"")+"@"),c+=W(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Pe=function(){var e=S(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&V(e)?t+"://"+W(e.host)+(null!==r?":"+r:""):"null"},Re=function(){return S(this).scheme+":"},Te=function(){return S(this).username},Ee=function(){return S(this).password},Oe=function(){var e=S(this),t=e.host,r=e.port;return null===t?"":null===r?W(t):W(t)+":"+r},Le=function(){var e=S(this).host;return null===e?"":W(e)},Fe=function(){var e=S(this).port;return null===e?"":String(e)},Ie=function(){var e=S(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Me=function(){var e=S(this).query;return e?"?"+e:""},je=function(){return S(this).searchParams},De=function(){var e=S(this).fragment;return e?"#"+e:""},Ne=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&u(xe,{href:Ne(Ce,function(e){var t=S(this),r=String(e),n=Se(t,r);if(n)throw TypeError(n);A(t.searchParams).updateSearchParams(t.query)}),origin:Ne(Pe),protocol:Ne(Re,function(e){var t=S(this);Se(t,String(e)+":",re)}),username:Ne(Te,function(e){var t=S(this),r=d(String(e));if(!Q(t)){t.username="";for(var n=0;n<r.length;n++)t.username+=Y(r[n],H)}}),password:Ne(Ee,function(e){var t=S(this),r=d(String(e));if(!Q(t)){t.password="";for(var n=0;n<r.length;n++)t.password+=Y(r[n],H)}}),host:Ne(Oe,function(e){var t=S(this);t.cannotBeABaseURL||Se(t,String(e),he)}),hostname:Ne(Le,function(e){var t=S(this);t.cannotBeABaseURL||Se(t,String(e),de)}),port:Ne(Fe,function(e){var t=S(this);Q(t)||(e=String(e),""==e?t.port=null:Se(t,e,pe))}),pathname:Ne(Ie,function(e){var t=S(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",me))}),search:Ne(Me,function(e){var t=S(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,Ae)),A(t.searchParams).updateSearchParams(t.query)}),searchParams:Ne(je),hash:Ne(De,function(e){var t=S(this);if(""==(e=String(e)))return void(t.fragment=null);"#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,we)})}),c(xe,"toJSON",function(){return Ce.call(this)},{enumerable:!0}),c(xe,"toString",function(){return Ce.call(this)},{enumerable:!0}),b){var Ue=b.createObjectURL,qe=b.revokeObjectURL;Ue&&c(ke,"createObjectURL",function(e){return Ue.apply(b,arguments)}),qe&&c(ke,"revokeObjectURL",function(e){return qe.apply(b,arguments)})}y(ke,"URL"),i({global:!0,forced:!a,sham:!o},{URL:ke})},function(e,t,r){var n=r(14),i=r(57),o=r(37),a=i("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})},function(e,t,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t},c=function(e){return e+22+75*(e<26)},l=function(e,t,r){var n=0;for(e=r?a(e/700):e>>1,e+=a(e/t);e>455;n+=36)e=a(e/35);return a(n+36*e/(e+38))},f=function(e){var t=[];e=u(e);var r,n,i=e.length,f=128,h=0,d=72;for(r=0;r<e.length;r++)(n=e[r])<128&&t.push(s(n));var p=t.length,v=p;for(p&&t.push("-");v<i;){var y=2147483647;for(r=0;r<e.length;r++)(n=e[r])>=f&&n<y&&(y=n);var g=v+1;if(y-f>a((2147483647-h)/g))throw RangeError(o);for(h+=(y-f)*g,f=y,r=0;r<e.length;r++){if((n=e[r])<f&&++h>2147483647)throw RangeError(o);if(n==f){for(var m=h,b=36;;b+=36){var _=b<=d?1:b>=d+26?26:b-d;if(m<_)break;var A=m-_,w=36-_;t.push(s(c(_+A%w))),m=a(A/w)}t.push(s(c(m))),d=l(h,g,v==p),h=0,++v}}++h,++f}return t.join("")};e.exports=function(e){var t,r,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)r=a[t],o.push(n.test(r)?"xn--"+f(r):r);return o.join(".")}},function(e,t,r){"use strict";r(118);var n=r(10),i=r(42),o=r(138),a=r(29),s=r(121),u=r(85),c=r(80),l=r(33),f=r(123),h=r(23),d=r(62),p=r(95),v=r(28),y=r(22),g=r(71),m=r(16),b=r(141),_=r(94),A=r(57),w=i("fetch"),S=i("Headers"),k=A("iterator"),x=l.set,C=l.getterFor("URLSearchParams"),P=l.getterFor("URLSearchParamsIterator"),R=/\+/g,T=Array(4),E=function(e){return T[e-1]||(T[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},O=function(e){try{return decodeURIComponent(e)}catch(t){return e}},L=function(e){var t=e.replace(R," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(E(r--),O);return t}},F=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},M=function(e){return I[e]},j=function(e){return encodeURIComponent(e).replace(F,M)},D=function(e,t){if(t)for(var r,n,i=t.split("&"),o=0;o<i.length;)r=i[o++],r.length&&(n=r.split("="),e.push({key:L(n.shift()),value:L(n.join("="))}))},N=function(e){this.entries.length=0,D(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=c(function(e,t){x(this,{type:"URLSearchParamsIterator",iterator:b(C(e).entries),kind:t})},"Iterator",function(){var e=P(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),W=function(){f(this,W,"URLSearchParams");var e,t,r,n,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(x(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:N}),void 0!==c)if(y(c))if("function"==typeof(e=_(c)))for(t=e.call(c),r=t.next;!(n=r.call(t)).done;){if(i=b(v(n.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(u in c)h(c,u)&&d.push({key:u,value:c[u]+""});else D(d,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},B=W.prototype;s(B,{append:function(e,t){U(arguments.length,2);var r=C(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){U(arguments.length,1);for(var t=C(this),r=t.entries,n=e+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=[],i=0;i<t.length;i++)t[i].key===r&&n.push(t[i].value);return n},has:function(e){U(arguments.length,1);for(var t=C(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var r,n=C(this),i=n.entries,o=!1,a=e+"",s=t+"",u=0;u<i.length;u++)r=i[u],r.key===a&&(o?i.splice(u--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var e,t,r,n=C(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(e=o[r],t=0;t<r;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===r&&i.push(e)}n.updateURL()},forEach:function(e){for(var t,r=C(this).entries,n=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)t=r[i++],n(t.value,t.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(B,k,B.entries),a(B,"toString",function(){for(var e,t=C(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(j(e.key)+"="+j(e.value));return r.join("&")},{enumerable:!0}),u(W,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof w||"function"!=typeof S||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,i=[e];return arguments.length>1&&(t=arguments[1],y(t)&&(r=t.body,"URLSearchParams"===p(r)&&(n=t.headers?new S(t.headers):new S,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:m(0,String(r)),headers:m(0,n)}))),i.push(t)),w.apply(this,i)}}),e.exports={URLSearchParams:W,getState:C}},function(e,t,r){var n=r(28),i=r(94);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){"use strict";r(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){!function(e,r){!function(e){"use strict";function t(){}function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}function n(e){return e.slice()}function i(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)}function o(e){return!1!==a(e)&&e!==1/0}function a(e){return"number"==typeof e&&(!Or(e)&&!(e<0))}function s(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,n){var i=e[t];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(r){case 0:return function(){return l(i,e,n)};case 1:return function(t){var r=[t].concat(n);return l(i,e,r)}}}return function(){return v(void 0)}}function c(e,t,r){var n=e[t];if(void 0!==n)return s(n,e,r)}function l(e,t,r){try{return v(s(e,t,r))}catch(e){return y(e)}}function f(e){return e}function h(e){if(e=Number(e),Or(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function d(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 p(e){return new Fr(e)}function v(e){return Mr(e)}function y(e){return jr(e)}function g(e,t,r){return Ir.call(e,t,r)}function m(e,t,r){g(g(e,t,r),void 0,Lr)}function b(e,t){m(e,t)}function _(e,t){m(e,void 0,t)}function A(e,t,r){return g(e,t,r)}function w(e){g(e,void 0,Lr)}function S(e,t,r){var n=null;!0===r&&(n=Object.prototype);var i=Object.create(n);return i.value=e,i.done=t,i}function k(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?R(e):"closed"===t._state?E(e):T(e,t._storedError)}function x(e,t){return or(e._ownerReadableStream,t)}function C(e){"readable"===e._ownerReadableStream._state?O(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):L(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 P(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function R(e){e._closedPromise=p(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function T(e,t){R(e),O(e,t)}function E(e){R(e),F(e)}function O(e,t){w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function L(e,t){T(e,t)}function F(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 qr(e);return r._forAuthorCode=t,r}function M(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)})}function j(e,t,r){var n=e._reader;n._readRequests.shift()._resolve(S(t,r,n._forAuthorCode))}function D(e){return e._reader._readRequests.length}function N(e){var t=e._reader;return void 0!==t&&!!U(t)}function U(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function q(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?v(S(void 0,!0,e._forAuthorCode)):"errored"===t._state?y(t._storedError):t._readableStreamController[Ur]()}function W(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function B(e,t){void 0===t&&(t=!1);var r=I(e),n=Object.create(Wr);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function G(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function z(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function H(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Y(e,t,r){if(r=Number(r),!o(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 X(e){return e._queue.peek().value}function V(e){e._queue=new Dr,e._queueTotalSize=0}function K(e){return new Hr(e)}function Q(e,t,r,n,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(zr.prototype);return J(a),Ce(a,Object.create(Yr.prototype),e,t,r,n,i,o),a}function J(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new Dr,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Z(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function $(e){return void 0!==e._writer}function ee(e,t){var r=e._state;if("closed"===r||"errored"===r)return v(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var i=p(function(r,i){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,!1===n&&ie(e,t),i}function te(e){var t=e._state;if("closed"===t||"errored"===t)return y(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=p(function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n}),n=e._writer;return void 0!==n&&!0===e._backpressure&&"writable"===t&&et(n),Te(e._writableStreamController),r}function re(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)})}function ne(e,t){if("writable"===e._state)return void ie(e,t);oe(e)}function ie(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&Ae(n,t),!1===fe(e)&&!0===r._started&&oe(e)}function oe(e){e._state="errored",e._writableStreamController[Gr]();var t=e._storedError;if(e._writeRequests.forEach(function(e){e._reject(t)}),e._writeRequests=new Dr,void 0===e._pendingAbortRequest)return void pe(e);var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(t),void pe(e);m(e._writableStreamController[Br](r._reason),function(){r._resolve(),pe(e)},function(t){r._reject(t),pe(e)})}function ae(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function se(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,ne(e,t)}function ue(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var t=e._writer;void 0!==t&&Xe(t)}function ce(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),ne(e,t)}function le(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function fe(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function he(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function de(e){e._inFlightWriteRequest=e._writeRequests.shift()}function pe(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&He(t,e._storedError)}function ve(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?Ze(r):et(r)),e._backpressure=t}function ye(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function ge(e,t){return ee(e._ownerWritableStream,t)}function me(e){return te(e._ownerWritableStream)}function be(e){var t=e._ownerWritableStream,r=t._state;return!0===le(t)||"closed"===r?v(void 0):"errored"===r?y(t._storedError):me(e)}function _e(e,t){"pending"===e._closedPromiseState?He(e,t):Ye(e,t)}function Ae(e,t){"pending"===e._readyPromiseState?Je(e,t):$e(e,t)}function we(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Oe(t._writableStreamController)}function Se(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ae(e,r),_e(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function ke(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,i=Ee(n,t);if(r!==e._ownerWritableStream)return y(We("write to"));var o=r._state;if("errored"===o)return y(r._storedError);if(!0===le(r)||"closed"===o)return y(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return y(r._storedError);var a=re(r);return Le(n,t,i),a}function xe(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ce(e,t,r,n,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,V(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o;var u=De(t);ve(e,u),m(v(r()),function(){t._started=!0,Fe(t)},function(r){t._started=!0,ne(e,r)})}function Pe(e,t,r,n){function i(){return c(t,"start",[o])}var o=Object.create(Yr.prototype),a=u(t,"write",1,[o]),s=u(t,"close",0,[]),l=u(t,"abort",1,[]);Ce(e,o,i,a,s,l,r,n)}function Re(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Te(e){Y(e,"close",0),Fe(e)}function Ee(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return Ie(e,t),1}}function Oe(e){return e._strategyHWM-e._queueTotalSize}function Le(e,t,r){var n={chunk:t};try{Y(e,n,r)}catch(t){return void Ie(e,t)}var i=e._controlledWritableStream;if(!1===le(i)&&"writable"===i._state){ve(i,De(e))}Fe(e)}function Fe(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){if("erroring"===t._state)return void oe(t);if(0!==e._queue.length){var r=X(e);"close"===r?Me(e):je(e,r.chunk)}}}function Ie(e,t){"writable"===e._controlledWritableStream._state&&Ne(e,t)}function Me(e){var t=e._controlledWritableStream;he(t),H(e);var r=e._closeAlgorithm();Re(e),m(r,function(){ue(t)},function(e){ce(t,e)})}function je(e,t){var r=e._controlledWritableStream;de(r),m(e._writeAlgorithm(t),function(){ae(r);var t=r._state;if(H(e),!1===le(r)&&"writable"===t){var n=De(e);ve(r,n)}Fe(e)},function(t){"writable"===r._state&&Re(e),se(r,t)})}function De(e){return Oe(e)<=0}function Ne(e,t){var r=e._controlledWritableStream;Re(e),ie(r,t)}function Ue(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function qe(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function We(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Be(e){e._closedPromise=p(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Ge(e,t){Be(e),He(e,t)}function ze(e){Be(e),Xe(e)}function He(e,t){w(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Ye(e,t){Ge(e,t)}function Xe(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function Ve(e){e._readyPromise=p(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function Ke(e,t){Ve(e),Je(e,t)}function Qe(e){Ve(e),et(e)}function Je(e,t){w(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Ze(e){Ve(e)}function $e(e,t){Ke(e,t)}function et(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function tt(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}function rt(e,r,n,i,o,a){var s=I(e),u=K(r);e._disturbed=!0;var c=!1,l=v(void 0);return p(function(f,h){function d(){return!0===c?v(!0):g(u._readyPromise,function(){return g(q(s),function(e){return!0===e.done||(l=g(ke(u,e.value),void 0,t),!1)})})}function y(){var e=l;return g(l,function(){return e!==l?y():void 0})}function A(e,t,r){"errored"===e._state?r(e._storedError):_(t,r)}function S(e,t,n){function i(){m(e(),function(){return x(t,n)},function(e){return x(!0,e)})}!0!==c&&(c=!0,"writable"===r._state&&!1===le(r)?b(y(),i):i())}function k(e,t){!0!==c&&(c=!0,"writable"===r._state&&!1===le(r)?b(y(),function(){return x(e,t)}):x(e,t))}function x(e,t){Se(u),C(s),void 0!==a&&a.removeEventListener("abort",P),e?h(t):f(void 0)}var P;if(void 0!==a){if(P=function(){var t=new Vr("Aborted","AbortError"),n=[];!1===i&&n.push(function(){return"writable"===r._state?ee(r,t):v(void 0)}),!1===o&&n.push(function(){return"readable"===e._state?or(e,t):v(void 0)}),S(function(){return Promise.all(n.map(function(e){return e()}))},!0,t)},!0===a.aborted)return void P();a.addEventListener("abort",P)}if(A(e,s._closedPromise,function(e){!1===i?S(function(){return ee(r,e)},!0,e):k(!0,e)}),A(r,u._closedPromise,function(t){!1===o?S(function(){return or(e,t)},!0,t):k(!0,t)}),function(e,t,r){"closed"===e._state?r():b(t,r)}(e,s._closedPromise,function(){!1===n?S(function(){return be(u)}):k()}),!0===le(r)||"closed"===r._state){var R=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?S(function(){return or(e,R)},!0,R):k(!0,R)}w(function(){return p(function(e,t){function r(n){n?e():g(d(),r,t)}r(!1)})}())})}function nt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function it(e){if(!1!==ot(e)){if(!0===e._pulling)return void(e._pullAgain=!0);e._pulling=!0,m(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,it(e))},function(t){ct(e,t)})}}function ot(e){var t=e._controlledReadableStream;return!1!==ht(e)&&(!1!==e._started&&(!0===ir(t)&&D(t)>0||lt(e)>0))}function at(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function st(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(at(e),ar(t))}function ut(e,t){var r=e._controlledReadableStream;if(!0===ir(r)&&D(r)>0)j(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(t){throw ct(e,t),t}try{Y(e,t,n)}catch(t){throw ct(e,t),t}}it(e)}function ct(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(V(e),at(e),sr(r,t))}function lt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function ft(e){return!0!==ot(e)}function ht(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function dt(e,t,r,n,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,V(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,m(v(r()),function(){t._started=!0,it(t)},function(e){ct(t,e)})}function pt(e,t,r,n){function i(){return c(t,"start",[o])}var o=Object.create(Kr.prototype),a=u(t,"pull",0,[o]),s=u(t,"cancel",1,[]);dt(e,o,i,a,s,r,n)}function vt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function yt(e,t){function r(){return!0===d?v(void 0):(d=!0,w(A(q(h),function(e){if(d=!1,!0===e.done)return!1===y&&st(c._readableStreamController),void(!1===g&&st(l._readableStreamController));var t=e.value,r=t,n=t;!1===y&&ut(c._readableStreamController,r),!1===g&&ut(l._readableStreamController,n)})),v(void 0))}function i(t){if(y=!0,s=t,!0===g){var r=n([s,u]),i=or(e,r);f(i)}return m}function o(t){if(g=!0,u=t,!0===y){var r=n([s,u]),i=or(e,r);f(i)}return m}function a(){}var s,u,c,l,f,h=I(e),d=!1,y=!1,g=!1,m=p(function(e){f=e});return c=tr(a,r,i),l=tr(a,r,o),_(h._closedPromise,function(e){ct(c._readableStreamController,e),ct(l._readableStreamController,e)}),[c,l]}function gt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function mt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function bt(e){if(!1!==It(e)){if(!0===e._pulling)return void(e._pullAgain=!0);e._pulling=!0,m(e._pullAlgorithm(),function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,bt(e))},function(t){Nt(e,t)})}}function _t(e){Pt(e),e._pendingPullIntos=new Dr}function At(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=wt(t);"default"===t.readerType?j(e,n,r):Kt(e,n,r)}function wt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function St(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function kt(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+o,s=a-a%r,u=o,c=!1;s>n&&(u=s-t.bytesFilled,c=!0);for(var l=e._queue;u>0;){var f=l.peek(),h=Math.min(u,f.byteLength),d=t.byteOffset+t.bytesFilled;i(t.buffer,d,f.buffer,f.byteOffset,h),f.byteLength===h?l.shift():(f.byteOffset+=h,f.byteLength-=h),e._queueTotalSize-=h,xt(e,h,t),u-=h}return c}function xt(e,t,r){Pt(e),r.bytesFilled+=t}function Ct(e){0===e._queueTotalSize&&!0===e._closeRequested?(Mt(e),ar(e._controlledReadableByteStream)):bt(e)}function Pt(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function Rt(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===kt(e,t)&&(Ft(e),At(e._controlledReadableByteStream,t))}}function Tt(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,o=f(t.buffer),a={buffer:o,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(a),Vt(r);if("closed"===r._state){return v(S(new i(a.buffer,a.byteOffset,0),!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===kt(e,a)){var s=wt(a);return Ct(e),v(S(s,!1,r._reader._forAuthorCode))}if(!0===e._closeRequested){var u=new TypeError("Insufficient bytes to fill elements in the given buffer");return Nt(e,u),y(u)}}e._pendingPullIntos.push(a);var c=Vt(r);return bt(e),c}function Et(e,t){t.buffer=f(t.buffer);var r=e._controlledReadableByteStream;if(!0===Jt(r))for(;Qt(r)>0;){var n=Ft(e);At(r,n)}}function Ot(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(xt(e,t,r),!(r.bytesFilled<r.elementSize)){Ft(e);var n=r.bytesFilled%r.elementSize;if(n>0){var i=r.byteOffset+r.bytesFilled,o=r.buffer.slice(i-n,i);St(e,o,0,o.byteLength)}r.buffer=f(r.buffer),r.bytesFilled-=n,At(e._controlledReadableByteStream,r),Rt(e)}}function Lt(e,t){var r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Et(e,r)}else Ot(e,t,r);bt(e)}function Ft(e){var t=e._pendingPullIntos.shift();return Pt(e),t}function It(e){var t=e._controlledReadableByteStream;return"readable"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===N(t)&&D(t)>0||(!0===Jt(t)&&Qt(t)>0||Ut(e)>0))))}function Mt(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function jt(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){if(e._pendingPullIntos.peek().bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Nt(e,r),r}}Mt(e),ar(t)}function Dt(e,t){var r=e._controlledReadableByteStream,n=t.buffer,i=t.byteOffset,o=t.byteLength,a=f(n);if(!0===N(r))if(0===D(r))St(e,a,i,o);else{var s=new Uint8Array(a,i,o);j(r,s,!1)}else!0===Jt(r)?(St(e,a,i,o),Rt(e)):St(e,a,i,o);bt(e)}function Nt(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(_t(e),V(e),Mt(e),sr(r,t))}function Ut(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function qt(e,t){if(t=Number(t),!1===o(t))throw new RangeError("bytesWritten must be a finite");Lt(e,t)}function Wt(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,Lt(e,t.byteLength)}function Bt(e,t,r,n,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,V(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=h(o),t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new Dr,e._readableStreamController=t,m(v(r()),function(){t._started=!0,bt(t)},function(e){Nt(t,e)})}function Gt(e,t,r){function n(){return c(t,"start",[i])}var i=Object.create(Zr.prototype),o=u(t,"pull",0,[i]),a=u(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Qr(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");Bt(e,i,n,o,a,r,s)}function zt(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function Ht(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Yt(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Xt(e,t){void 0===t&&(t=!1);var r=new $r(e);return r._forAuthorCode=t,r}function Vt(e){return p(function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)})}function Kt(e,t,r){var n=e._reader;n._readIntoRequests.shift()._resolve(S(t,r,n._forAuthorCode))}function Qt(e){return e._reader._readIntoRequests.length}function Jt(e){var t=e._reader;return void 0!==t&&!!Zt(t)}function Zt(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function $t(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?y(r._storedError):Tt(r._readableStreamController,t)}function er(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function tr(e,t,r,n,i){void 0===n&&(n=1),void 0===i&&(i=function(){return 1});var o=Object.create(en.prototype);return rr(o),dt(o,Object.create(Kr.prototype),e,t,r,n,i),o}function rr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function nr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function ir(e){return void 0!==e._reader}function or(e,r){return e._disturbed=!0,"closed"===e._state?v(void 0):"errored"===e._state?y(e._storedError):(ar(e),A(e._readableStreamController[Nr](r),t))}function ar(e){e._state="closed";var t=e._reader;void 0!==t&&(U(t)&&(t._readRequests.forEach(function(e){e._resolve(S(void 0,!0,t._forAuthorCode))}),t._readRequests=new Dr),F(t))}function sr(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(U(r)?(r._readRequests.forEach(function(e){e._reject(t)}),r._readRequests=new Dr):(r._readIntoRequests.forEach(function(e){e._reject(t)}),r._readIntoRequests=new Dr),O(r,t))}function ur(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function cr(e,t,r,n,i,o){function a(){return t}function s(t){return wr(e,t)}function u(t){return Sr(e,t)}function c(){return kr(e)}function l(){return xr(e)}function f(t){return hr(e,t),v(void 0)}e._writable=Q(a,s,c,u,r,n),e._readable=tr(a,l,f,i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,dr(e,!0),e._transformStreamController=void 0}function lr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function fr(e,t){ct(e._readable._readableStreamController,t),hr(e,t)}function hr(e,t){gr(e._transformStreamController),Ie(e._writable._writableStreamController,t),!0===e._backpressure&&dr(e,!1)}function dr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=p(function(t){e._backpressureChangePromise_resolve=t}),e._backpressure=t}function pr(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function vr(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function yr(e,t){var r=Object.create(on.prototype),n=function(e){try{return mr(r,e),v(void 0)}catch(e){return y(e)}},i=t.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");n=function(e){return l(i,t,[e,r])}}var o=u(t,"flush",0,[r]);vr(e,r,n,o)}function gr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function mr(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!1===ht(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ut(n,t)}catch(e){throw hr(r,e),r._readable._storedError}ft(n)!==r._backpressure&&dr(r,!0)}function br(e,t){fr(e._controlledTransformStream,t)}function _r(e,t){return A(e._transformAlgorithm(t),void 0,function(t){throw fr(e._controlledTransformStream,t),t})}function Ar(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;!0===ht(r)&&st(r),hr(t,new TypeError("TransformStream terminated"))}function wr(e,t){var r=e._transformStreamController;if(!0===e._backpressure){return A(e._backpressureChangePromise,function(){var n=e._writable;if("erroring"===n._state)throw n._storedError;return _r(r,t)})}return _r(r,t)}function Sr(e,t){return fr(e,t),v(void 0)}function kr(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return gr(r),A(n,function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===ht(e)&&st(e)},function(r){throw fr(e,r),t._storedError})}function xr(e){return dr(e,!1),e._backpressureChangePromise}function Cr(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function Pr(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var Rr,Tr,Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"},Or=Number.isNaN||function(e){return e!==e},Lr=t,Fr=Promise,Ir=Promise.prototype.then,Mr=Promise.resolve.bind(Fr),jr=Promise.reject.bind(Fr),Dr=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;16383===t._elements.length&&(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,n=r+1,i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o},e.prototype.forEach=function(e){for(var t=this._cursor,r=this._front,n=r._elements;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}(),Nr=Er("[[CancelSteps]]"),Ur=Er("[[PullSteps]]"),qr=function(){function e(e){if(!1===nr(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===ir(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readRequests=new Dr}return Object.defineProperty(e.prototype,"closed",{get:function(){return U(this)?this._closedPromise:y(W("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return U(this)?void 0===this._ownerReadableStream?y(P("cancel")):x(this,e):y(W("cancel"))},e.prototype.read=function(){return U(this)?void 0===this._ownerReadableStream?y(P("read from")):q(this):y(W("read"))},e.prototype.releaseLock=function(){if(!U(this))throw W("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");C(this)}},e}();"symbol"==typeof Er.asyncIterator&&(Rr={},Rr[Er.asyncIterator]=function(){return this},Tr=Rr,Object.defineProperty(Tr,Er.asyncIterator,{enumerable:!1}));var Wr={next:function(){if(!1===G(this))return y(z("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?y(P("iterate")):A(q(e),function(t){var r=t.done;return r&&C(e),S(t.value,r,!0)})},return:function(e){if(!1===G(this))return y(z("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return y(P("finish iterating"));if(t._readRequests.length>0)return y(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=x(t,e);return C(t),A(r,function(){return S(e,!0,!0)})}return C(t),v(S(e,!0,!0))}};void 0!==Tr&&Object.setPrototypeOf(Wr,Tr),Object.defineProperty(Wr,"next",{enumerable:!1}),Object.defineProperty(Wr,"return",{enumerable:!1});var Br=Er("[[AbortSteps]]"),Gr=Er("[[ErrorSteps]]"),zr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),J(this);var r=t.size,n=t.highWaterMark;if(void 0!==e.type)throw new RangeError("Invalid type is specified");var i=d(r);void 0===n&&(n=1),n=h(n),Pe(this,e,n,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Z(this))throw Ue("locked");return $(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===Z(this)?y(Ue("abort")):!0===$(this)?y(new TypeError("Cannot abort a stream that already has a writer")):ee(this,e)},e.prototype.close=function(){return!1===Z(this)?y(Ue("close")):!0===$(this)?y(new TypeError("Cannot close a stream that already has a writer")):!0===le(this)?y(new TypeError("Cannot close an already-closing stream")):te(this)},e.prototype.getWriter=function(){if(!1===Z(this))throw Ue("getWriter");return K(this)},e}(),Hr=function(){function e(e){if(!1===Z(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===$(e))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)!1===le(e)&&!0===e._backpressure?Ve(this):Qe(this),Be(this);else if("erroring"===t)Ke(this,e._storedError),Be(this);else if("closed"===t)Qe(this),ze(this);else{var r=e._storedError;Ke(this,r),Ge(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===ye(this)?y(qe("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===ye(this))throw qe("desiredSize");if(void 0===this._ownerWritableStream)throw We("desiredSize");return we(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===ye(this)?y(qe("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ye(this)?y(qe("abort")):void 0===this._ownerWritableStream?y(We("abort")):ge(this,e)},e.prototype.close=function(){if(!1===ye(this))return y(qe("close"));var e=this._ownerWritableStream;return void 0===e?y(We("close")):!0===le(e)?y(new TypeError("Cannot close an already-closing stream")):me(this)},e.prototype.releaseLock=function(){if(!1===ye(this))throw qe("releaseLock");void 0!==this._ownerWritableStream&&Se(this)},e.prototype.write=function(e){return!1===ye(this)?y(qe("write")):void 0===this._ownerWritableStream?y(We("write to")):ke(this,e)},e}(),Yr=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===xe(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&Ne(this,e)},e.prototype[Br]=function(e){var t=this._abortAlgorithm(e);return Re(this),t},e.prototype[Gr]=function(){V(this)},e}(),Xr="undefined"!=typeof DOMException?DOMException:void 0,Vr=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(Xr)?Xr:function(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}(),Kr=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===nt(this))throw vt("desiredSize");return lt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===nt(this))throw vt("close");if(!1===ht(this))throw new TypeError("The stream is not in a state that permits close");st(this)},e.prototype.enqueue=function(e){if(!1===nt(this))throw vt("enqueue");if(!1===ht(this))throw new TypeError("The stream is not in a state that permits enqueue");return ut(this,e)},e.prototype.error=function(e){if(!1===nt(this))throw vt("error");ct(this,e)},e.prototype[Nr]=function(e){V(this);var t=this._cancelAlgorithm(e);return at(this),t},e.prototype[Ur]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=H(this);return!0===this._closeRequested&&0===this._queue.length?(at(this),ar(e)):it(this),v(S(t,!1,e._reader._forAuthorCode))}var r=M(e);return it(this),r},e}(),Qr=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Jr=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===mt(this))throw Ht("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===mt(this))throw Ht("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,qt(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===mt(this))throw Ht("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");e.buffer,Wt(this._associatedReadableByteStreamController,e)},e}(),Zr=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===gt(this))throw Yt("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(Jr.prototype);zt(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===gt(this))throw Yt("desiredSize");return Ut(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===gt(this))throw Yt("close");if(!0===this._closeRequested)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");jt(this)},e.prototype.enqueue=function(e){if(!1===gt(this))throw Yt("enqueue");if(!0===this._closeRequested)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");e.buffer,Dt(this,e)},e.prototype.error=function(e){if(!1===gt(this))throw Yt("error");Nt(this,e)},e.prototype[Nr]=function(e){if(this._pendingPullIntos.length>0){this._pendingPullIntos.peek().bytesFilled=0}V(this);var t=this._cancelAlgorithm(e);return Mt(this),t},e.prototype[Ur]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,Ct(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return y(e)}return v(S(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(e){return y(e)}var o={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=M(e);return bt(this),a},e}(),$r=function(){function e(e){if(!nr(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===gt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(ir(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readIntoRequests=new Dr}return Object.defineProperty(e.prototype,"closed",{get:function(){return Zt(this)?this._closedPromise:y(er("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Zt(this)?void 0===this._ownerReadableStream?y(P("cancel")):x(this,e):y(er("cancel"))},e.prototype.read=function(e){return Zt(this)?void 0===this._ownerReadableStream?y(P("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?y(new TypeError("view must have non-zero byteLength")):$t(this,e)):y(new TypeError("view must be an array buffer view")):y(er("read"))},e.prototype.releaseLock=function(){if(!Zt(this))throw er("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");C(this)}},e}(),en=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),rr(this);var r=t.size,n=t.highWaterMark,i=e.type;if("bytes"===String(i)){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=h(n),Gt(this,e,n)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(r);void 0===n&&(n=1),n=h(n),pt(this,e,n,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===nr(this))throw ur("locked");return ir(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===nr(this)?y(ur("cancel")):!0===ir(this)?y(new TypeError("Cannot cancel a stream that already has a reader")):or(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===nr(this))throw ur("getReader");if(void 0===t)return I(this,!0);if("byob"===(t=String(t)))return Xt(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,a=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===nr(this))throw ur("pipeThrough");if(!1===Z(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===nr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==u&&!tt(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===ir(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===$(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return w(rt(this,r,o,a,s,u)),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,n=r.preventClose,i=r.preventAbort,o=r.preventCancel,a=r.signal;return!1===nr(this)?y(ur("pipeTo")):!1===Z(e)?y(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),i=Boolean(i),o=Boolean(o),void 0===a||tt(a)?!0===ir(this)?y(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===$(e)?y(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):rt(this,e,n,i,o,a):y(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===nr(this))throw ur("tee");return n(yt(this))},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(!1===nr(this))throw ur("getIterator");return B(this,r)},e}();"symbol"==typeof Er.asyncIterator&&Object.defineProperty(en.prototype,Er.asyncIterator,{value:en.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var tn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),rn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),nn=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var n=t.size,i=t.highWaterMark,o=r.size,a=r.highWaterMark;if(void 0!==e.writableType)throw new RangeError("Invalid writable type specified");var s=d(n);if(void 0===i&&(i=1),i=h(i),void 0!==e.readableType)throw new RangeError("Invalid readable type specified");var u=d(o);void 0===a&&(a=0),a=h(a);var l;cr(this,p(function(e){l=e}),i,s,a,u),yr(this,e);var f=c(e,"start",[this._transformStreamController]);l(f)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===lr(this))throw Pr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===lr(this))throw Pr("writable");return this._writable},enumerable:!0,configurable:!0}),e}(),on=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===pr(this))throw Cr("desiredSize");return lt(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===pr(this))throw Cr("enqueue");mr(this,e)},e.prototype.error=function(e){if(!1===pr(this))throw Cr("error");br(this,e)},e.prototype.terminate=function(){if(!1===pr(this))throw Cr("terminate");Ar(this)},e}();e.ByteLengthQueuingStrategy=tn,e.CountQueuingStrategy=rn,e.ReadableStream=en,e.TransformStream=nn,e.WritableStream=zr,Object.defineProperty(e,"__esModule",{value:!0})}(t)}()},function(e,t,r){r(145),r(114),r(77),r(116);var n=r(43);e.exports=n.Map},function(e,t,r){"use strict";var n=r(146),i=r(150);e.exports=n("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){"use strict";var n=r(10),i=r(11),o=r(52),a=r(29),s=r(147),u=r(124),c=r(123),l=r(22),f=r(14),h=r(97),d=r(85),p=r(149);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),g=v?"set":"add",m=i[e],b=m&&m.prototype,_=m,A={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(o(e,"function"!=typeof m||!(y||b.forEach&&!f(function(){(new m).entries().next()}))))_=r.getConstructor(t,e,v,g),s.REQUIRED=!0;else if(o(e,!0)){var S=new _,k=S[g](y?{}:-0,1)!=S,x=f(function(){S.has(1)}),C=h(function(e){new m(e)}),P=!y&&f(function(){for(var e=new m,t=5;t--;)e[g](t,t);return!e.has(-0)});C||(_=t(function(t,r){c(t,_,e);var n=p(new m,t,_);return void 0!=r&&u(r,n[g],n,v),n}),_.prototype=b,b.constructor=_),(x||P)&&(w("delete"),w("has"),v&&w("get")),(P||k)&&w(g),y&&b.clear&&delete b.clear}return A[e]=_,n({global:!0,forced:_!=m},A),d(_,e),y||r.setStrong(_,e,v),_}},function(e,t,r){var n=r(39),i=r(22),o=r(23),a=r(27).f,s=r(38),u=r(148),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(e){a(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!f(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!o(e,c)){if(!f(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},v=function(e){return u&&y.REQUIRED&&f(e)&&!o(e,c)&&h(e),e},y=e.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};n[c]=!0},function(e,t,r){var n=r(14);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,r){var n=r(22),i=r(87);e.exports=function(e,t,r){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},function(e,t,r){"use strict";var n=r(27).f,i=r(71),o=r(121),a=r(62),s=r(123),u=r(124),c=r(79),l=r(122),f=r(13),h=r(147).fastKey,d=r(33),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,r,c){var l=e(function(e,n){s(e,l,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=n&&u(n,e[c],e,r)}),d=v(t),y=function(e,t,r){var n,i,o=d(e),a=g(e,t);return a?a.value=r:(o.last=a={index:i=h(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var r,n=d(e),i=h(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(l.prototype,{clear:function(){for(var e=this,t=d(e),r=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,r=d(t),n=g(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=d(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(l.prototype,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&n(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,r){var n=t+" Iterator",i=v(t),o=v(n);c(e,t,function(e,t){p(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),l(t)}}},function(e,t,r){r(152),r(114),r(77),r(116);var n=r(43);e.exports=n.Set},function(e,t,r){"use strict";var n=r(146),i=r(150);e.exports=n("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){r(114),r(154),r(116);var n=r(43);e.exports=n.WeakMap},function(e,t,r){"use strict";var n,i=r(11),o=r(121),a=r(147),s=r(146),u=r(155),c=r(22),l=r(33).enforce,f=r(34),h=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=e.exports=s("WeakMap",p,u);if(f&&h){n=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var y=v.prototype,g=y.delete,m=y.has,b=y.get,_=y.set;o(y,{delete:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen.has(e)}return m.call(this,e)},get:function(e){if(c(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),m.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!d(e)){var r=l(this);r.frozen||(r.frozen=new n),m.call(this,e)?_.call(this,e,t):r.frozen.set(e,t)}else _.call(this,e,t);return this}})}},function(e,t,r){"use strict";var n=r(121),i=r(147).getWeakData,o=r(28),a=r(22),s=r(123),u=r(124),c=r(156),l=r(23),f=r(33),h=f.set,d=f.getterFor,p=c.find,v=c.findIndex,y=0,g=function(e){return e.frozen||(e.frozen=new m)},m=function(){this.entries=[]},b=function(e,t){return p(e.entries,function(e){return e[0]===t})};m.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var r=b(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var f=e(function(e,n){s(e,f,t),h(e,{type:t,id:y++,frozen:void 0}),void 0!=n&&u(n,e[c],e,r)}),p=d(t),v=function(e,t,r){var n=p(e),a=i(o(t),!0);return!0===a?g(n).set(t,r):a[n.id]=r,e};return n(f.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var r=i(e);return!0===r?g(t).delete(e):r&&l(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var r=i(e);return!0===r?g(t).has(e):r&&l(r,t.id)}}),n(f.prototype,r?{get:function(e){var t=p(this);if(a(e)){var r=i(e);return!0===r?g(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),f}}},function(e,t,r){var n=r(62),i=r(18),o=r(83),a=r(47),s=r(157),u=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,l=4==e,f=6==e,h=5==e||f;return function(d,p,v,y){for(var g,m,b=o(d),_=i(b),A=n(p,v,3),w=a(_.length),S=0,k=y||s,x=t?k(d,w):r?k(d,0):void 0;w>S;S++)if((h||S in _)&&(g=_[S],m=A(g,S,b),e))if(t)x[S]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:u.call(x,g)}else if(l)return!1;return f?-1:c||l?l:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){var n=r(22),i=r(158),o=r(57),a=o("species");e.exports=function(e,t){var r;return i(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(19);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){r(114),r(160),r(116);var n=r(43);e.exports=n.WeakSet},function(e,t,r){"use strict";var n=r(146),i=r(155);n("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,r){r(162);var n=r(61);e.exports=n("String","codePointAt")},function(e,t,r){"use strict";var n=r(10),i=r(78).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,r){r(164);var n=r(43);e.exports=n.String.fromCodePoint},function(e,t,r){var n=r(10),i=r(49),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){r(166),r(114),r(168),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187);var n=r(43);e.exports=n.Symbol},function(e,t,r){"use strict";var n=r(10),i=r(14),o=r(158),a=r(22),s=r(83),u=r(47),c=r(93),l=r(157),f=r(167),h=r(57),d=r(133),p=h("isConcatSpreadable"),v=d>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),y=f("concat"),g=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,r,n,i,o,a=s(this),f=l(a,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(o=-1===t?a:arguments[t],g(o)){if(i=u(o.length),h+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&c(f,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,h++,o)}return f.length=h,f}})},function(e,t,r){var n=r(14),i=r(57),o=r(133),a=i("species");e.exports=function(e){return o>=51||!n(function(){var t=[],r=t.constructor={};return r[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,r){"use strict";var n=r(10),i=r(11),o=r(42),a=r(37),s=r(13),u=r(58),c=r(59),l=r(14),f=r(23),h=r(158),d=r(22),p=r(28),v=r(83),y=r(17),g=r(21),m=r(16),b=r(71),_=r(73),A=r(44),w=r(169),S=r(51),k=r(12),x=r(27),C=r(15),P=r(26),R=r(29),T=r(36),E=r(35),O=r(39),L=r(38),F=r(57),I=r(170),M=r(171),j=r(85),D=r(33),N=r(156).forEach,U=E("hidden"),q=F("toPrimitive"),W=D.set,B=D.getterFor("Symbol"),G=Object.prototype,z=i.Symbol,H=o("JSON","stringify"),Y=k.f,X=x.f,V=w.f,K=C.f,Q=T("symbols"),J=T("op-symbols"),Z=T("string-to-symbol-registry"),$=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,re=!te||!te.prototype||!te.prototype.findChild,ne=s&&l(function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=Y(G,t);n&&delete G[t],X(e,t,r),n&&e!==G&&X(G,t,n)}:X,ie=function(e,t){var r=Q[e]=b(z.prototype);return W(r,{type:"Symbol",tag:e,description:t}),s||(r.description=t),r},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ae=function(e,t,r){e===G&&ae(J,t,r),p(e);var n=g(t,!0);return p(r),f(Q,n)?(r.enumerable?(f(e,U)&&e[U][n]&&(e[U][n]=!1),r=b(r,{enumerable:m(0,!1)})):(f(e,U)||X(e,U,m(1,{})),e[U][n]=!0),ne(e,n,r)):X(e,n,r)},se=function(e,t){p(e);var r=y(t),n=_(r).concat(he(r));return N(n,function(t){s&&!ce.call(r,t)||ae(e,t,r[t])}),e},ue=function(e,t){return void 0===t?b(e):se(b(e),t)},ce=function(e){var t=g(e,!0),r=K.call(this,t);return!(this===G&&f(Q,t)&&!f(J,t))&&(!(r||!f(this,t)||!f(Q,t)||f(this,U)&&this[U][t])||r)},le=function(e,t){var r=y(e),n=g(t,!0);if(r!==G||!f(Q,n)||f(J,n)){var i=Y(r,n);return!i||!f(Q,n)||f(r,U)&&r[U][n]||(i.enumerable=!0),i}},fe=function(e){var t=V(y(e)),r=[];return N(t,function(e){f(Q,e)||f(O,e)||r.push(e)}),r},he=function(e){var t=e===G,r=V(t?J:y(e)),n=[];return N(r,function(e){!f(Q,e)||t&&!f(G,e)||n.push(Q[e])}),n};if(u||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),r=function(e){this===G&&r.call(J,e),f(this,U)&&f(this[U],t)&&(this[U][t]=!1),ne(this,t,m(1,e))};return s&&re&&ne(G,t,{configurable:!0,set:r}),ie(t,e)},R(z.prototype,"toString",function(){return B(this).tag}),R(z,"withoutSetter",function(e){return ie(L(e),e)}),C.f=ce,x.f=ae,k.f=le,A.f=w.f=fe,S.f=he,I.f=function(e){return ie(F(e),e)},s&&(X(z.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||R(G,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),N(_(ee),function(e){M(e)}),n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(Z,t))return Z[t];var r=z(t);return Z[t]=r,$[r]=t,r},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f($,e))return $[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:ue,defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe,getOwnPropertySymbols:he}),n({target:"Object",stat:!0,forced:l(function(){S.f(1)})},{getOwnPropertySymbols:function(e){return S.f(v(e))}}),H){n({target:"JSON",stat:!0,forced:!u||l(function(){var e=z();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))})},{stringify:function(e,t,r){for(var n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t,(d(t)||void 0!==e)&&!oe(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}})}z.prototype[q]||P(z.prototype,q,z.prototype.valueOf),j(z,"Symbol"),O[U]=!0},function(e,t,r){var n=r(17),i=r(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(n(e))}},function(e,t,r){var n=r(57);t.f=n},function(e,t,r){var n=r(43),i=r(23),o=r(170),a=r(27).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,r){r(171)("asyncIterator")},function(e,t,r){"use strict";var n=r(10),i=r(13),o=r(11),a=r(23),s=r(22),u=r(27).f,c=r(40),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(h,l);var d=h.prototype=l.prototype;d.constructor=h;var p=d.toString,v="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(f,e))return"";var r=v?t.slice(7,-1):t.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(e,t,r){r(171)("hasInstance")},function(e,t,r){r(171)("isConcatSpreadable")},function(e,t,r){r(171)("iterator")},function(e,t,r){r(171)("match")},function(e,t,r){r(171)("matchAll")},function(e,t,r){r(171)("replace")},function(e,t,r){r(171)("search")},function(e,t,r){r(171)("species")},function(e,t,r){r(171)("split")},function(e,t,r){r(171)("toPrimitive")},function(e,t,r){r(171)("toStringTag")},function(e,t,r){r(171)("unscopables")},function(e,t,r){r(85)(Math,"Math",!0)},function(e,t,r){var n=r(11);r(85)(n.JSON,"JSON",!0)},function(e,t,r){r(189);var n=r(61);e.exports=n("String","padStart")},function(e,t,r){"use strict";var n=r(10),i=r(190).start;n({target:"String",proto:!0,forced:r(192)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(47),i=r(191),o=r(20),a=Math.ceil,s=function(e){return function(t,r,s){var u,c,l=String(o(t)),f=l.length,h=void 0===s?" ":String(s),d=n(r);return d<=f||""==h?l:(u=d-f,c=i.call(h,a(u/h.length)),c.length>u&&(c=c.slice(0,u)),e?l+c:c+l)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,r){"use strict";var n=r(48),i=r(20);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},function(e,t,r){var n=r(127);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){r(194);var n=r(61);e.exports=n("String","padEnd")},function(e,t,r){"use strict";var n=r(10),i=r(190).end;n({target:"String",proto:!0,forced:r(192)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(196);var n=r(43);e.exports=n.Object.values},function(e,t,r){var n=r(10),i=r(197).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,r){var n=r(13),i=r(73),o=r(17),a=r(15).f,s=function(e){return function(t){for(var r,s=o(t),u=i(s),c=u.length,l=0,f=[];c>l;)r=u[l++],n&&!a.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){asyncGeneratorStep(s,n,i,o,a,"next",e)}function a(e){asyncGeneratorStep(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="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 setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"==typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var n=Object.create(null),i=null,o=null;for(var a in t)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||t[a]instanceof Uint8Array)n[a]=t[a];else{var s=t[a];if("string"==typeof s)n[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[a]=new Uint8Array(s)}else n[a]=new Uint8Array(s)}else o=t[a];else i=t[a];else n[a]=new URL(t[a],window.location).href;if(n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.fontExtraProperties=!0===n.fontExtraProperties,n.pdfBug=!0===n.pdfBug,Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!=typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!=typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof n.disableRange&&(n.disableRange=!1),"boolean"!=typeof n.disableStream&&(n.disableStream=!1),"boolean"!=typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(n.verbosity),!o){var u={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=u.port?PDFWorker.fromPort(u):new PDFWorker(u),r._worker=o}var c=r.docId;return o.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,n,i,c),t=new Promise(function(e){var t;i?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},i):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream})),e(t)});return Promise.all([e,t]).then(function(e){var t=_slicedToArray(e,2),i=t[0],a=t[1];if(r.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(c,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var u=new WorkerTransport(s,r,a,n);r._transport=u,s.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.5.207",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var e=0;return function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),t}()}(),PDFDataRangeTransport=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(e,t)}}catch(e){n.e(e)}finally{n.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then(function(){var n,i=_createForOfIteratorHelper(r._progressListeners);try{for(i.s();!(n=i.n()).done;){(0,n.value)(e,t)}}catch(e){i.e(e)}finally{i.f()}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var r,n=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){(0,r.value)(e)}}catch(e){n.e(e)}finally{n.f()}})}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then(function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;){(0,t.value)()}}catch(e){r.e(e)}finally{r.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then(function(e){return e&&e.dest?e.dest:null})}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,i=e.offsetX,o=void 0===i?0:i,a=e.offsetY,s=void 0===a?0:a,u=e.dontFlip,c=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:o,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,i=e.intent,o=void 0===i?"display":i,a=e.enableWebGL,s=void 0!==a&&a,u=e.renderInteractiveForms,c=void 0!==u&&u,l=e.transform,f=void 0===l?null:l,h=e.imageLayer,d=void 0===h?null:h,p=e.canvasFactory,v=void 0===p?null:p,y=e.background,g=void 0===y?null:y;this._stats&&this._stats.time("Overall");var m="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[m]||(this.intentStates[m]=Object.create(null));var b=this.intentStates[m];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,A=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:m,renderInteractiveForms:!0===c}));var w=function(e){var r=b.renderTasks.indexOf(S);r>=0&&b.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===m)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(S.capability.reject(e),t._abortOperatorList({intentState:b,reason:e})):S.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:w,params:{canvasContext:r,viewport:n,transform:f,imageLayer:d,background:g},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:A,useRequestAnimationFrame:"print"!==m,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(S);var k=S.task;return b.displayReadyCapability.promise.then(function(e){if(t.pendingCleanup)return void w();t._stats&&t._stats.time("Rendering"),S.initializeGraphics(e),S.operatorListChanged()}).catch(w),k}},{key:"getOperatorList",value:function(){function e(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var e=r.renderTasks.indexOf(t);e>=0&&r.renderTasks.splice(e,1)}}this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var t,r=this.intentStates.oplist;return r.opListReadCapability||(t={},t.operatorListChanged=e,r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(t),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,i=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==i},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise(function(e,r){function n(){i.read().then(function(t){var r,i=t.value;if(t.done)return void e(o);Object.assign(o.styles,i.styles),(r=o.items).push.apply(r,_toConsumableArray(i.items)),n()},r)}var i=t.getReader(),o={items:[],styles:Object.create(null)};n()})}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach(function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach(function(e){var r=e.capability.promise.catch(function(){});t.push(r),e.cancel()})}),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some(function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk}))&&(Object.keys(this.intentStates).forEach(function(t){delete e.intentStates[t]}),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r<n;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk;for(var i=0;i<t.renderTasks.length;i++)t.renderTasks[i].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",e),n=r.getReader(),i=this.intentStates[e.intent];i.streamReader=n;!function e(){n.read().then(function(r){var n=r.value;if(r.done)return void(i.streamReader=null);t._transport.destroyed||(t._renderPageChunk(n,i),e())},function(e){if(i.streamReader=null,!t._transport.destroyed){if(i.operatorList){i.operatorList.lastChunk=!0;for(var r=0;r<i.renderTasks.length;r++)i.renderTasks[r].operatorListChanged();t._tryCleanup()}if(i.displayReadyCapability)i.displayReadyCapability.reject(e);else{if(!i.opListReadCapability)throw e;i.opListReadCapability.reject(e)}}})}()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,n=e.reason,i=e.force,o=void 0!==i&&i;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!o){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout(function(){t._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some(function(e){return t.intentStates[e]===r&&(delete t.intentStates[e],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),e}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){function r(e){if("object"!==_typeof(e)||null===e)return e;if(i.has(e))return i.get(e);var n,o;if((n=e.buffer)&&(0,_util.isArrayBuffer)(n)){return o=t&&t.includes(n)?new e.constructor(n,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,o),o}o=Array.isArray(e)?[]:{},i.set(e,o);for(var a in e){for(var s=void 0,u=e;!(s=Object.getOwnPropertyDescriptor(u,a));)u=Object.getPrototypeOf(u);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=r(s.value);else if(e.hasOwnProperty&&e.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[a]))}return o}var n=this;if(!this._defer)return void this._listeners.forEach(function(t){t.call(n,{data:e})});var i=new WeakMap,o={data:r(e)};this._deferred.then(function(){n._listeners.forEach(function(e){e.call(n,o)})})}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler())){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}},_callee)}));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,i=t.port,o=void 0===i?null:i,a=t.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,e),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),i=function(){r.removeEventListener("error",o),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},o=function(){e._webWorker||i()};r.addEventListener("error",o),n.on("test",function(t){if(r.removeEventListener("error",o),e.destroyed)return void i();t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())}),n.on("ready",function(t){if(r.removeEventListener("error",o),e.destroyed)return void i();try{a()}catch(t){e._setupFakeWorker()}});var a=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(function(t){if(e.destroyed)return void e._readyCapability.reject(new Error("Worker was destroyed"));var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(i,r);var o=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=o,e._readyCapability.resolve(),o.send("configure",{verbosity:e.verbosity})}).catch(function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,i){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",function(t,r){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then(function(e){var t=e.value;if(e.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t])}).catch(function(e){r.error(e)})},r.onCancel=function(t){e._fullReader.cancel(t)}}),t.on("ReaderHeadersReady",function(t){var n=(0,_util.createPromiseCapability)(),i=e._fullReader;return i.headersReady.then(function(){i.isStreamingSupported&&i.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),i.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},n.reject),n.promise}),t.on("GetRangeReader",function(t,r){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var n=e._networkStream.getRangeReader(t.begin,t.end);if(!n)return void r.close();r.onPull=function(){n.read().then(function(e){var t=e.value;if(e.done)return void r.close();(0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t])}).catch(function(e){r.error(e)})},r.onCancel=function(e){n.cancel(e)}}),t.on("GetDoc",function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))}),t.on("DocException",function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}r._capability.reject(t)}),t.on("PasswordRequest",function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(t){e._passwordCapability.reject(t)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise}),t.on("DataLoaded",function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)}),t.on("StartRenderPage",function(t){if(!e.destroyed){e.pageCache[t.pageIndex]._startRenderPage(t.transparency,t.intent)}}),t.on("commonobj",function(r){if(!e.destroyed){var n=_slicedToArray(r,3),i=n[0],o=n[1],a=n[2];if(!e.commonObjs.has(i))switch(o){case"Font":var s=e._params;if("error"in a){var u=a.error;(0,_util.warn)("Error during font loading: ".concat(u)),e.commonObjs.resolve(i,u);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var l=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(l).catch(function(e){return t.sendWithPromise("FontFallback",{id:i})}).finally(function(){!s.fontExtraProperties&&l.data&&(l.data=null),e.commonObjs.resolve(i,l)});break;case"FontPath":case"FontType3Res":case"Image":e.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}}),t.on("obj",function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],i=r[1],o=r[2],a=r[3],s=e.pageCache[i];if(!s.objs.has(n))switch(o){case"Image":s.objs.resolve(n,a);a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}}),t.on("DocProgress",function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",function(t,r){if(e.destroyed)return void r.error(new Error("Worker was destroyed"));var n=!1;r.onPull=function(){if(n)return void r.close();n=!0,e.CMapReaderFactory.fetch(t).then(function(e){r.enqueue(e,1,[e.cMapData.buffer])}).catch(function(e){r.error(e)})}})}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then(function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n});return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,r=e.pageCache.length;t<r;t++){var n=e.pageCache[t];if(n){if(!n.cleanup())throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),e}(),PDFObjects=function(){function e(){_classCallCheck(this,e),this._objs=Object.create(null)}return _createClass(e,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet;return function(){function t(e){var r=e.callback,n=e.params,i=e.objs,o=e.commonObjs,a=e.operatorList,s=e.pageIndex,u=e.canvasFactory,c=e.webGLContext,l=e.useRequestAnimationFrame,f=void 0!==l&&l,h=e.pdfBug,d=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=c,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===f&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,i=r.viewport,o=r.transform,a=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a),this.gfx.beginDrawing({transform:o,viewport:i,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady)return void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound));this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){e._nextBound().catch(e.cancel.bind(e))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){function t(){return r.apply(this,arguments)}var r=_asyncToGenerator(_regenerator.default.mark(function t(){return _regenerator.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}},t,this)}));return t}()}]),t}()}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=c();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){f(s,n,i,o,a,"next",e)}function a(e){f(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var y,g=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),m=r(5),b=function(){function e(t){var r=t.docId,n=t.onUnsupportedFeature;d(this,e),this.constructor===e&&(0,m.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return v(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){function e(e){return t.apply(this,arguments)}var t=h(g.default.mark(function e(t){var r,n,i=this;return g.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(r=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:m.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,m.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(n=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise(function(e){var r=i._queueLoadingCallback(e);i._prepareFontLoadEvent([n],[t],r)});case 26:case"end":return e.stop()}},e,this,[[7,12]])}));return e}()},{key:"_queueLoadingCallback",value:function(e){(0,m.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,m.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!=typeof document&&!!document.fonts;return(0,m.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,m.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,m.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=y,t.FontLoader=y=function(e){function t(e){var n;return d(this,t),n=r.call(this,e),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}i(t,e);var r=a(t);return v(t,[{key:"_queueLoadingCallback",value:function(e){function t(){for((0,m.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;r.requests.length>0&&r.requests[0].done;){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){return e.substring(0,t)+n+e.substring(t+r)}function o(e,t){return++l>30?((0,m.warn)("Load test font never loaded."),void t()):(c.font="30px "+e,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?void t():void setTimeout(o.bind(null,e,t)))}var a,s,u=document.createElement("canvas");u.width=1,u.height=1;var c=u.getContext("2d"),l=0,f="lt".concat(Date.now()).concat(this.loadTestFontId++),h=this._loadTestFont;h=i(h,976,f.length,f);var d=n(h,16);for(a=0,s=f.length-3;a<s;a+=4)d=d-1482184792+n(f,a)|0;a<f.length&&(d=d-1482184792+n(f+"XXX",a)|0),h=i(h,16,4,(0,m.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(h),");"),v='@font-face {font-family:"'.concat(f,'";src:').concat(p,"}");this.insertRule(v);var y=[];for(a=0,s=t.length;a<s;a++)y.push(t[a].loadedName);y.push(f);var g=document.createElement("div");for(g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px",a=0,s=y.length;a<s;++a){var b=document.createElement("span");b.textContent="Hi",b.style.fontFamily=y[a],g.appendChild(b)}document.body.appendChild(g),o(f,function(){document.body.removeChild(g),r.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,m.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){return(0,m.shadow)(this,"_loadTestFont",function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")}())}}]),t}(b);var _=function(){function e(t,r){var n=r.isEvalSupported,i=void 0===n||n,o=r.disableFontFace,a=void 0!==o&&o,s=r.ignoreErrors,u=void 0!==s&&s,c=r.onUnsupportedFeature,l=void 0===c?null:c,f=r.fontRegistry,h=void 0===f?null:f;d(this,e),this.compiledGlyphs=Object.create(null);for(var p in t)this[p]=t[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===u,this._onUnsupportedFeature=l,this.fontRegistry=h}return v(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,m.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:m.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,m.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&m.IsEvalSupportedCached.value){for(var i,o="",a=0,s=r.length;a<s;a++)n=r[a],i=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+i+");\n";return this.compiledGlyphs[t]=new Function("c","size",o)}return this.compiledGlyphs[t]=function(e,t){for(var i=0,o=r.length;i<o;i++)n=r[i],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}]),e}();t.FontFaceObject=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var n=r(7),i=Object.create(null);!function(){n.isNodeJS&&(i.disableFontFace=!0)}();var o=Object.freeze(i);t.apiCompatibilityParams=o},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=t*i-r*n,u=r*n-t*i;return[i/s,r/u,n/u,t/s,(i*o-n*a)/u,(r*o-t*a)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,n,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*n+s[2]*i,s[1]*n+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],e._originalTransform(t,r,n,i,o,a)},e.setTransform=function(t,r,n,i,o,a){this._transformMatrix=[t,r,n,i,o,a],e._originalSetTransform(t,r,n,i,o,a)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}function s(e){var t,r,n,i,o=e.width,a=e.height,s=o+1,u=new Uint8Array(s*(a+1)),c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),l=o+7&-8,f=e.data,h=new Uint8Array(l*a),d=0;for(t=0,i=f.length;t<i;t++)for(var p=128,v=f[t];p>0;)h[d++]=v&p?0:255,p>>=1;var y=0;for(d=0,0!==h[d]&&(u[0]=1,++y),r=1;r<o;r++)h[d]!==h[d+1]&&(u[r]=h[d]?2:1,++y),d++;for(0!==h[d]&&(u[r]=2,++y),t=1;t<a;t++){d=t*l,n=t*s,h[d-l]!==h[d]&&(u[n]=h[d]?1:8,++y);var g=(h[d]?4:0)+(h[d-l]?8:0);for(r=1;r<o;r++)g=(g>>2)+(h[d+1]?4:0)+(h[d-l+1]?8:0),c[g]&&(u[n+r]=c[g],++y),d++;if(h[d-l]!==h[d]&&(u[n+r]=h[d]?2:4,++y),y>1e3)return null}for(d=l*(a-1),n=t*s,0!==h[d]&&(u[n]=8,++y),r=1;r<o;r++)h[d]!==h[d+1]&&(u[n+r]=h[d]?4:8,++y),d++;if(0!==h[d]&&(u[n+r]=4,++y),y>1e3)return null;var m=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(t=0;y&&t<=a;t++){for(var _=t*s,A=_+o;_<A&&!u[_];)_++;if(_!==A){var w,S=[_%s,t],k=u[_],x=_;do{var C=m[k];do{_+=C}while(!u[_]);w=u[_],5!==w&&10!==w?(k=w,u[_]=0):(k=w&51*k>>4,u[_]&=k>>2|k<<2),S.push(_%s),S.push(_/s|0),u[_]||--y}while(x!==_);b.push(S),--t}}return function(e){e.save(),e.scale(1/o,-1/a),e.translate(0,-a),e.beginPath();for(var t=0,r=b.length;t<r;t++){var n=b[t];e.moveTo(n[0],n[1]);for(var i=2,s=n.length;i<s;i+=2)e.lineTo(n[i],n[i+1])}e.fill(),e.beginPath(),e.restore()}}Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var u=r(5),c=r(202),l=16,f=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,r),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(t,r),this.cache[e]=i),n&&a(i.context),i},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}(),h=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=u.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=u.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=u.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),d=function(){function e(e,t,r,n,i,o){this.ctx=e,this.current=new h,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new f(this.canvasFactory),e&&a(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);var r,n,i,o,a,s=t.height,c=t.width,f=s%l,h=(s-f)/l,d=0===f?h:h+1,p=e.createImageData(c,l),v=0,y=t.data,g=p.data;if(t.kind===u.ImageKind.GRAYSCALE_1BPP){var m=y.byteLength,b=new Uint32Array(g.buffer,0,g.byteLength>>2),_=b.length,A=c+7>>3,w=4294967295,S=u.IsLittleEndianCached.value?4278190080:255;for(n=0;n<d;n++){for(o=n<h?l:f,r=0,i=0;i<o;i++){for(var k=m-v,x=0,C=k>A?c:8*k-7,P=-8&C,R=0,T=0;x<P;x+=8)T=y[v++],b[r++]=128&T?w:S,b[r++]=64&T?w:S,b[r++]=32&T?w:S,b[r++]=16&T?w:S,b[r++]=8&T?w:S,b[r++]=4&T?w:S,b[r++]=2&T?w:S,b[r++]=1&T?w:S;for(;x<C;x++)0===R&&(T=y[v++],R=128),b[r++]=T&R?w:S,R>>=1}for(;r<_;)b[r++]=0;e.putImageData(p,0,n*l)}}else if(t.kind===u.ImageKind.RGBA_32BPP){for(i=0,a=c*l*4,n=0;n<h;n++)g.set(y.subarray(v,v+a)),v+=a,e.putImageData(p,0,i),i+=l;n<d&&(a=c*f*4,g.set(y.subarray(v,v+a)),e.putImageData(p,0,i))}else{if(t.kind!==u.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(o=l,a=c*o,n=0;n<d;n++){for(n>=h&&(o=f,a=c*o),r=0,i=a;i--;)g[r++]=y[v++],g[r++]=y[v++],g[r++]=y[v++],g[r++]=255;e.putImageData(p,0,n*l)}}}function r(e,t){for(var r=t.height,n=t.width,i=r%l,o=(r-i)/l,a=0===i?o:o+1,s=e.createImageData(n,l),u=0,c=t.data,f=s.data,h=0;h<a;h++){for(var d=h<o?l:i,p=3,v=0;v<d;v++)for(var y=0,g=0;g<n;g++){if(!y){var m=c[u++];y=128}f[p]=m&y?0:255,p+=4,y>>=1}e.putImageData(s,0,h*l)}}function i(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,i=r.length;n<i;n++){var o=r[n];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function o(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function d(e,t,r,n){for(var i=e.length,o=3;o<i;o+=4){var a=e[o];if(0===a)e[o-3]=t,e[o-2]=r,e[o-1]=n;else if(a<255){var s=255-a;e[o-3]=e[o-3]*a+t*s>>8,e[o-2]=e[o-2]*a+r*s>>8,e[o-1]=e[o-1]*a+n*s>>8}}}function p(e,t,r){for(var n=e.length,i=3;i<n;i+=4){var o=r?r[e[i]]:e[i];t[i]=t[i]*o*(1/255)|0}}function v(e,t,r){for(var n=e.length,i=3;i<n;i+=4){var o=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=r?t[i]*r[o>>8]>>8:t[i]*o>>16}}function y(e,t,r,n,i,o,a){var s,u=!!o,c=u?o[0]:0,l=u?o[1]:0,f=u?o[2]:0;s="Luminosity"===i?v:p;for(var h=Math.min(n,Math.ceil(1048576/r)),y=0;y<n;y+=h){var g=Math.min(h,n-y),m=e.getImageData(0,y,r,g),b=t.getImageData(0,y,r,g);u&&d(m.data,c,l,f),s(m.data,b.data,a),e.putImageData(b,0,y)}}function g(e,t,r,n){var i=t.canvas,o=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var a=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var s=n.composeSMask({layer:r.canvas,mask:i,properties:{subtype:t.subtype,backdrop:a}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}y(o,r,i.width,i.height,t.subtype,a,t.transferMap),e.drawImage(i,0,0)}var m=["butt","round","square"],b=["miter","round","bevel"],_={},A={};e.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,n=e.transparency,i=void 0!==n&&n,a=e.background,s=void 0===a?null:a,u=this.ctx.canvas.width,c=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,u,c),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",u,c,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),o(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,r,i){var o=e.argsArray,a=e.fnArray,s=t||0,c=o.length;if(c===s)return s;for(var l,f=c-s>10&&"function"==typeof r,h=f?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,r),s;if((l=a[s])!==u.OPS.dependency)this[l].apply(this,o[s]);else{var y,g=n(o[s]);try{for(g.s();!(y=g.n()).done;){var m=y.value,b=m.startsWith("g_")?p:v;if(!b.has(m))return b.get(m,r),s}}catch(e){g.e(e)}finally{g.f()}}if(++s===c)return s;if(f&&++d>10){if(Date.now()>h)return r(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=m[e]},setLineJoin:function(e){this.ctx.lineJoin=b[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var n=e[t],i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=n[1];break;case"ca":this.current.fillAlpha=n[1],this.ctx.globalAlpha=n[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,t,r,!0),a=this.ctx,s=a.mozCurrentTransform;this.ctx.save();var u=o.context;u.scale(1/e.scaleX,1/e.scaleY),u.translate(-e.offsetX,-e.offsetY),u.transform.apply(u,s),e.startTransformInverse=u.mozCurrentTransformInverse,i(a,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),i(e,this.ctx),this.current.resumeSMaskCtx=e;var t=u.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),g(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),i(e,this.ctx);var t=u.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,i,o){this.ctx.transform(e,t,r,n,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,a=0,s=0,c=e.length;a<c;a++)switch(0|e[a]){case u.OPS.rectangle:i=t[s++],o=t[s++];var l=t[s++],f=t[s++];0===l&&(l=this.getSinglePixelWidth()),0===f&&(f=this.getSinglePixelWidth());var h=i+l,d=o+f;this.ctx.moveTo(i,o),this.ctx.lineTo(h,o),this.ctx.lineTo(h,d),this.ctx.lineTo(i,d),this.ctx.lineTo(i,o),this.ctx.closePath();break;case u.OPS.moveTo:i=t[s++],o=t[s++],r.moveTo(i,o);break;case u.OPS.lineTo:i=t[s++],o=t[s++],r.lineTo(i,o);break;case u.OPS.curveTo:i=t[s+4],o=t[s+5],r.bezierCurveTo(t[s],t[s+1],t[s+2],t[s+3],i,o),s+=6;break;case u.OPS.curveTo2:r.bezierCurveTo(i,o,t[s],t[s+1],t[s+2],t[s+3]),i=t[s+2],o=t[s+3],s+=4;break;case u.OPS.curveTo3:i=t[s+2],o=t[s+3],r.bezierCurveTo(t[s],t[s+1],i,o,i,o),s+=4;break;case u.OPS.closePath:r.closePath()}n.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){t.save();var n=t.mozCurrentTransform,i=u.Util.singularValueDecompose2dScale(n)[0];t.strokeStyle=r.getPattern(t,this),t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*i),t.stroke(),t.restore()}else t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.fillColor,n=this.current.patternFill,i=!1;n&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),i=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=A},beginText:function(){this.current.textMatrix=u.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0===e)return void t.beginPath();t.save(),t.beginPath();for(var r=0;r<e.length;r++){var n=e[r];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),n=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(n.fontMatrix=r.fontMatrix?r.fontMatrix:u.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,u.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var i=r.loadedName||"sans-serif",o="normal";r.black?o="900":r.bold&&(o="bold");var a=r.italic?"italic":"normal",s='"'.concat(i,'", ').concat(r.fallbackName),c=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font="".concat(a," ").concat(o," ").concat(c,"px ").concat(s)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,i,o){this.current.textMatrix=[e,t,r,n,i,o],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,n){var i,o=this.ctx,a=this.current,s=a.font,c=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,f=c&u.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&u.TextRenderingMode.ADD_TO_PATH_FLAG),d=a.patternFill&&!s.missingFile;if((s.disableFontFace||h||d)&&(i=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||d?(o.save(),o.translate(t,r),o.beginPath(),i(o,l),n&&o.setTransform.apply(o,n),f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fill(),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(f!==u.TextRenderingMode.FILL&&f!==u.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),f!==u.TextRenderingMode.STROKE&&f!==u.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:l,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,n=!1,i=3;i<r.length;i+=4)if(r[i]>0&&r[i]<255){n=!0;break}return(0,u.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var n=t.fontSize;if(0!==n){var i=this.ctx,o=t.fontSizeScale,a=t.charSpacing,s=t.wordSpacing,c=t.fontDirection,l=t.textHScale*c,f=e.length,h=r.vertical,d=h?1:-1,p=r.defaultVMetrics,v=n*t.fontMatrix[0],y=t.textRenderingMode===u.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;i.save();var g;if(t.patternFill){i.save();var m=t.fillColor.getPattern(i,this);g=i.mozCurrentTransform,i.restore(),i.fillStyle=m}i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),c>0?i.scale(l,-1):i.scale(l,1);var b=t.lineWidth,_=t.textMatrixScale;if(0===_||0===b){var A=t.textRenderingMode&u.TextRenderingMode.FILL_STROKE_MASK;A!==u.TextRenderingMode.STROKE&&A!==u.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var w,S=0;for(w=0;w<f;++w){var k=e[w];if((0,u.isNum)(k))S+=d*k*n/1e3;else{var x,C,P,R,T=!1,E=(k.isSpace?s:0)+a,O=k.fontChar,L=k.accent,F=k.width;if(h){var I,M,j;I=k.vmetric||p,M=k.vmetric?I[1]:.5*F,M=-M*v,j=I[2]*v,F=I?-I[0]:F,x=M/o,C=(S+j)/o}else x=S/o,C=0;if(r.remeasure&&F>0){var D=1e3*i.measureText(O).width/n*o;if(F<D&&this.isFontSubpixelAAEnabled){var N=F/D;T=!0,i.save(),i.scale(N,1),x/=N}else F!==D&&(x+=(F-D)/2e3*n/o)}(k.isInFont||r.missingFile)&&(y&&!L?i.fillText(O,x,C):(this.paintChar(O,x,C,g),L&&(P=x+L.offset.x/o,R=C-L.offset.y/o,this.paintChar(L.fontChar,P,R,g))));var U;U=h?F*v-E*c:F*v+E*c,S+=U,T&&i.restore()}}h?t.y-=S:t.x+=S*l,i.restore()}},showType3Text:function(e){var t,r,n,i,o=this.ctx,a=this.current,s=a.font,c=a.fontSize,l=a.fontDirection,f=s.vertical?1:-1,h=a.charSpacing,d=a.wordSpacing,p=a.textHScale*l,v=a.fontMatrix||u.FONT_IDENTITY_MATRIX,y=e.length,g=a.textRenderingMode===u.TextRenderingMode.INVISIBLE;if(!g&&0!==c){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,a.textMatrix),o.translate(a.x,a.y),o.scale(p,l),t=0;t<y;++t)if(r=e[t],(0,u.isNum)(r))i=f*r*c/1e3,this.ctx.translate(i,0),a.x+=i*p;else{var m=(r.isSpace?d:0)+h,b=s.charProcOperatorList[r.operatorListId];if(b){this.processingType3=r,this.save(),o.scale(c,c),o.transform.apply(o,v),this.executeOperatorList(b),this.restore();var _=u.Util.applyTransform([r.width,0],v);n=_[0]*c+m,o.translate(n,0),a.x+=n*p}else(0,u.warn)('Type3 character "'.concat(r.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,n,i,o){this.ctx.rect(r,n,i-r,o-n),this.clip(),this.endPath()},getColorN_Pattern:function(t){var r,n=this;if("TilingPattern"===t[0]){var i=t[1],o=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:function(t){return new e(t,n.commonObjs,n.objs,n.canvasFactory,n.webGLContext)}};r=new c.TilingPattern(t,i,this.ctx,a,o)}else r=(0,c.getShadingPatternFromIR)(t);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var n=u.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(e,t,r){var n=u.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,c.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var n=t.mozCurrentTransformInverse;if(n){var i=t.canvas,o=i.width,a=i.height,s=u.Util.applyTransform([0,0],n),l=u.Util.applyTransform([0,a],n),f=u.Util.applyTransform([o,0],n),h=u.Util.applyTransform([o,a],n),d=Math.min(s[0],l[0],f[0],h[0]),p=Math.min(s[1],l[1],f[1],h[1]),v=Math.max(s[0],l[0],f[0],h[0]),y=Math.max(s[1],l[1],f[1],h[1]);this.ctx.fillRect(d,p,v-d,y-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,u.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,u.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,u.info)("TODO: Support non-isolated groups."),e.knockout&&(0,u.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var n=u.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),o=[0,0,t.canvas.width,t.canvas.height];n=u.Util.intersect(n,o)||[0,0,0,0];var a=Math.floor(n[0]),s=Math.floor(n[1]),c=Math.max(Math.ceil(n[2])-a,1),l=Math.max(Math.ceil(n[3])-s,1),f=1,h=1;c>4096&&(f=c/4096,c=4096),l>4096&&(h=l/4096,l=4096);var d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,c,l,!0),v=p.context;v.scale(1/f,1/h),v.translate(-a,-s),v.transform.apply(v,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:a,offsetY:s,scaleX:f,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(a,s),t.scale(f,h)),i(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),o(this.ctx),this.current=new h,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],n,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,n=e.width,i=e.height,o=this.current.fillColor,a=this.current.patternFill,u=this.processingType3;if(u&&void 0===u.compiled&&(u.compiled=n<=1e3&&i<=1e3?s({data:e.data,width:n,height:i}):null),u&&u.compiled)return void u.compiled(t);var c=this.cachedCanvases.getCanvas("maskCanvas",n,i),l=c.context;l.save(),r(l,e),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,n,i),l.restore(),this.paintInlineImageXObject(c.canvas)},paintImageMaskXObjectRepeat:function(e,t,n,i){var o=e.width,a=e.height,s=this.current.fillColor,u=this.current.patternFill,c=this.cachedCanvases.getCanvas("maskCanvas",o,a),l=c.context;l.save(),r(l,e),l.globalCompositeOperation="source-in",l.fillStyle=u?s.getPattern(l,this):s,l.fillRect(0,0,o,a),l.restore();for(var f=this.ctx,h=0,d=i.length;h<d;h+=2)f.save(),f.transform(t,0,0,n,i[h],i[h+1]),f.scale(1,-1),f.drawImage(c.canvas,0,0,o,a,0,-1,1,1),f.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,n=this.current.fillColor,i=this.current.patternFill,o=0,a=e.length;o<a;o++){var s=e[o],u=s.width,c=s.height,l=this.cachedCanvases.getCanvas("maskCanvas",u,c),f=l.context;f.save(),r(f,s),f.globalCompositeOperation="source-in",f.fillStyle=i?n.getPattern(f,this):n,f.fillRect(0,0,u,c),f.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(l.canvas,0,0,u,c,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(!t)return void(0,u.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(t)},paintImageXObjectRepeat:function(e,t,r,n){var i=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(!i)return void(0,u.warn)("Dependent image isn't ready yet");for(var o=i.width,a=i.height,s=[],c=0,l=n.length;c<l;c+=2)s.push({transform:[t,0,0,r,n[c],n[c+1]],x:0,y:0,w:o,h:a});this.paintInlineImageXObjectGroup(i,s)},paintInlineImageXObject:function(e){var r=e.width,n=e.height,i=this.ctx;this.save(),i.scale(1/r,-1/n);var o,a,s=i.mozCurrentTransformInverse,u=s[0],c=s[1],l=Math.max(Math.sqrt(u*u+c*c),1),f=s[2],h=s[3],d=Math.max(Math.sqrt(f*f+h*h),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)o=e;else{a=this.cachedCanvases.getCanvas("inlineImage",r,n);var p=a.context;t(p,e),o=a.canvas}for(var v=r,y=n,g="prescale1";l>2&&v>1||d>2&&y>1;){var m=v,b=y;l>2&&v>1&&(m=Math.ceil(v/2),l/=v/m),d>2&&y>1&&(b=Math.ceil(y/2),d/=y/b),a=this.cachedCanvases.getCanvas(g,m,b),p=a.context,p.clearRect(0,0,m,b),p.drawImage(o,0,0,v,y,0,0,m,b),o=a.canvas,v=m,y=b,g="prescale1"===g?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,y,0,-n,r,n),this.imageLayer){var _=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:_[0],top:_[1],width:r/s[0],height:n/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){var n=this.ctx,i=e.width,o=e.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);t(a.context,e);for(var s=0,u=r.length;s<u;s++){var c=r[s];if(n.save(),n.transform.apply(n,c.transform),n.scale(1,-1),n.drawImage(a.canvas,c.x,c.y,c.w,c.h,0,-1,1,1),this.imageLayer){var l=this.getCanvasPosition(c.x,c.y);this.imageLayer.appendImage({imgData:e,left:l[0],top:l[1],width:i,height:o})}n.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,u.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===A?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}};for(var w in u.OPS)e.prototype[u.OPS[w]]=e.prototype[w];return e}();t.CanvasGraphics=d},function(e,t,r){"use strict";function n(e,t){if(t&&"undefined"!=typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],r,n),e.clip(i)}}function i(e){var t=a[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=i,t.TilingPattern=void 0;var o=r(5),a={};a.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7];return{type:"Pattern",getPattern:function(e){n(e,r);var c;"axial"===t?c=e.createLinearGradient(o[0],o[1],a[0],a[1]):"radial"===t&&(c=e.createRadialGradient(o[0],o[1],s,a[0],a[1],u));for(var l=0,f=i.length;l<f;++l){var h=i[l];c.addColorStop(h[0],h[1])}return c}}}};var s=function(){function e(e,t,r,n,i,o,a,s){var u,c=t.coords,l=t.colors,f=e.data,h=4*e.width;c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=o,o=a,a=u),c[n+1]>c[i+1]&&(u=n,n=i,i=u,u=a,a=s,s=u),c[r+1]>c[n+1]&&(u=r,r=n,n=u,u=o,o=a,a=u);var d=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,v=(c[n]+t.offsetX)*t.scaleX,y=(c[n+1]+t.offsetY)*t.scaleY,g=(c[i]+t.offsetX)*t.scaleX,m=(c[i+1]+t.offsetY)*t.scaleY;if(!(p>=m))for(var b,_,A,w,S,k,x,C,P=l[o],R=l[o+1],T=l[o+2],E=l[a],O=l[a+1],L=l[a+2],F=l[s],I=l[s+1],M=l[s+2],j=Math.round(p),D=Math.round(m),N=j;N<=D;N++){if(N<y){var U=void 0;U=N<p?0:p===y?1:(p-N)/(p-y),b=d-(d-v)*U,_=P-(P-E)*U,A=R-(R-O)*U,w=T-(T-L)*U}else{var q=void 0;q=N>m?1:y===m?0:(y-N)/(y-m),b=v-(v-g)*q,_=E-(E-F)*q,A=O-(O-I)*q,w=L-(L-M)*q}var W=void 0;W=N<p?0:N>m?1:(p-N)/(p-m),S=d-(d-g)*W,k=P-(P-F)*W,x=R-(R-I)*W,C=T-(T-M)*W;for(var B=Math.round(Math.min(b,S)),G=Math.round(Math.max(b,S)),z=h*N+4*B,H=B;H<=G;H++)W=(b-H)/(b-S),W<0?W=0:W>1&&(W=1),f[z++]=_-(_-k)*W|0,f[z++]=A-(A-x)*W|0,f[z++]=w-(w-C)*W|0,f[z++]=255}}function t(t,r,n){var i,o,a=r.coords,s=r.colors;switch(r.type){case"lattice":var u=r.verticesPerRow,c=Math.floor(a.length/u)-1,l=u-1;for(i=0;i<c;i++)for(var f=i*u,h=0;h<l;h++,f++)e(t,n,a[f],a[f+1],a[f+u],s[f],s[f+1],s[f+u]),e(t,n,a[f+u+1],a[f+1],a[f+u],s[f+u+1],s[f+1],s[f+u]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)e(t,n,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}function r(e,r,n,i,o,a,s,u){var c,l,f,h,d=Math.floor(e[0]),p=Math.floor(e[1]),v=Math.ceil(e[2])-d,y=Math.ceil(e[3])-p,g=Math.min(Math.ceil(Math.abs(v*r[0]*1.1)),3e3),m=Math.min(Math.ceil(Math.abs(y*r[1]*1.1)),3e3),b=v/g,_=y/m,A={coords:n,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},w=g+4,S=m+4;if(u.isEnabled)c=u.drawFigures({width:g,height:m,backgroundColor:a,figures:o,context:A}),l=s.getCanvas("mesh",w,S,!1),l.context.drawImage(c,2,2),c=l.canvas;else{l=s.getCanvas("mesh",w,S,!1);var k=l.context,x=k.createImageData(g,m);if(a){var C=x.data;for(f=0,h=C.length;f<h;f+=4)C[f]=a[0],C[f+1]=a[1],C[f+2]=a[2],C[f+3]=255}for(f=0;f<o.length;f++)t(x,o[f],A);k.putImageData(x,2,2),c=l.canvas}return{canvas:c,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}return r}();a.Mesh={fromIR:function(e){var t=e[2],r=e[3],i=e[4],a=e[5],u=e[6],c=e[7],l=e[8];return{type:"Pattern",getPattern:function(e,f,h){n(e,c);var d;if(h)d=o.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(d=o.Util.singularValueDecompose2dScale(f.baseTransform),u){var p=o.Util.singularValueDecompose2dScale(u);d=[d[0]*p[0],d[1]*p[1]]}var v=s(a,d,t,r,i,h?null:l,f.cachedCanvases,f.webGLContext);return h||(e.setTransform.apply(e,f.baseTransform),u&&e.transform.apply(e,u)),e.translate(v.offsetX,v.offsetY),e.scale(v.scaleX,v.scaleY),e.createPattern(v.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var u=function(){function e(e,t,r,n,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=n,this.baseTransform=i,this.type="Pattern",this.ctx=r}var t={COLORED:1,UNCOLORED:2};return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,n=this.xstep,i=this.ystep,a=this.paintType,s=this.tilingType,u=this.color,c=this.canvasGraphicsFactory;(0,o.info)("TilingType: "+s);var l=r[0],f=r[1],h=r[2],d=r[3],p=o.Util.singularValueDecompose2dScale(this.matrix),v=o.Util.singularValueDecompose2dScale(this.baseTransform),y=[p[0]*v[0],p[1]*v[1]],g=this.getSizeAndScale(n,this.ctx.canvas.width,y[0]),m=this.getSizeAndScale(i,this.ctx.canvas.height,y[1]),b=e.cachedCanvases.getCanvas("pattern",g.size,m.size,!0),_=b.context,A=c.createCanvasGraphics(_);return A.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(A,a,u),A.transform(g.scale,0,0,m.scale,0,0),A.transform(1,0,0,1,-l,-f),this.clipBbox(A,r,l,f,h,d),A.executeOperatorList(t),this.ctx.transform(1,0,0,1,l,f),this.ctx.scale(1/g.scale,1/m.scale),b.canvas},getSizeAndScale:function(e,t,r){e=Math.abs(e);var n=Math.max(3e3,t),i=Math.ceil(e*r);return i>=n?i=n:r=i/e,{scale:r,size:i}},clipBbox:function(e,t,r,n,i,o){if(Array.isArray(t)&&4===t.length){var a=i-r,s=o-n;e.ctx.rect(r,n,a,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,r,n){var i=e.ctx,a=e.current;switch(r){case t.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case t.UNCOLORED:var u=o.Util.makeCssRgb(n[0],n[1],n[2]);i.fillStyle=u,i.strokeStyle=u,a.fillColor=u,a.strokeColor=u;break;default:throw new o.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},e}();t.TilingPattern=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e){"@babel/helpers - typeof";return(u="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 c(e){if("object"!==u(e)||null===e)return e;switch(e.name){case"AbortException":return new f.AbortException(e.message);case"MissingPDFException":return new f.MissingPDFException(e.message);case"UnexpectedResponseException":return new f.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new f.UnknownErrorException(e.message,e.details);default:return new f.UnknownErrorException(e.message,e.toString())}}Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var l=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),f=r(5),h={UNKNOWN:0,DATA:1,ERROR:2},d={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8},p=function(){function e(t,r,n){var i=this;o(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName){if(t.stream)return void i._processStreamMessage(t);if(t.callback){var r=t.callbackId,o=i.callbackCapabilities[r];if(!o)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===h.DATA)o.resolve(t.data);else{if(t.callback!==h.ERROR)throw new Error("Unexpected callback case");o.reject(c(t.reason))}}else{var a=i.actionHandler[t.action];if(!a)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,u=t.sourceName;return void new Promise(function(e){e(a(t.data))}).then(function(e){n.postMessage({sourceName:s,targetName:u,callback:h.DATA,callbackId:t.callbackId,data:e})},function(e){n.postMessage({sourceName:s,targetName:u,callback:h.ERROR,callbackId:t.callbackId,reason:c(e)})})}if(t.streamId)return void i._createStreamSink(t);a(t.data)}}},n.addEventListener("message",this._onComObjOnMessage)}return s(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,i=(0,f.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){i.reject(e)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,n){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName,u=this.comObj;return new ReadableStream({start:function(r){var u=(0,f.createPromiseCapability)();return i.streamControllers[o]={controller:r,startCall:u,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:a,targetName:s,action:e,streamId:o,data:t,desiredSize:r.desiredSize},n),u.promise},pull:function(e){var t=(0,f.createPromiseCapability)();return i.streamControllers[o].pullCall=t,u.postMessage({sourceName:a,targetName:s,stream:d.PULL,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,f.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,f.createPromiseCapability)();return i.streamControllers[o].cancelCall=t,i.streamControllers[o].isClosed=!0,u.postMessage({sourceName:a,targetName:s,stream:d.CANCEL,streamId:o,reason:c(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,i=this.sourceName,o=e.sourceName,a=this.comObj,s={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var s=this.desiredSize;this.desiredSize-=r,s>0&&this.desiredSize<=0&&(this.sinkCapability=(0,f.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:d.ENQUEUE,streamId:n,chunk:e},a)}},close:function(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,f.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:i,targetName:o,stream:d.ERROR,streamId:n,reason:c(e)}))},sinkCapability:(0,f.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[n]=s,new Promise(function(t){t(r(e.data,s))}).then(function(){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,success:!0})},function(e){a.postMessage({sourceName:i,targetName:o,stream:d.START_COMPLETE,streamId:n,reason:c(e)})})}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj;switch(e.stream){case d.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(c(e.reason));break;case d.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(c(e.reason));break;case d.PULL:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var o=this.streamSinks[e.streamId].onPull;new Promise(function(e){e(o&&o())}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:r,targetName:n,stream:d.PULL_COMPLETE,streamId:t,reason:c(e)})});break;case d.ENQUEUE:if((0,f.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case d.CLOSE:if((0,f.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case d.ERROR:(0,f.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(c(e.reason)),this._deleteStreamController(t);break;case d.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(c(e.reason)),this._deleteStreamController(t);break;case d.CANCEL:if(!this.streamSinks[t])break;var a=this.streamSinks[e.streamId].onCancel;new Promise(function(t){t(a&&a(c(e.reason)))}).then(function(){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:t,success:!0})},function(e){i.postMessage({sourceName:r,targetName:n,stream:d.CANCEL_COMPLETE,streamId:t,reason:c(e)})}),this.streamSinks[t].sinkCapability.reject(c(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){function e(e){return t.apply(this,arguments)}var t=i(l.default.mark(function e(t){return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map(function(e){return e&&e.promise}));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=p},function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||u(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function a(e){if(Array.isArray(e))return e}function s(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var d=r(5),p=r(206),v=function(){function e(t){l(this,e),(0,d.assert)("string"==typeof t,"Metadata: input is not a string"),t=this._repair(t);var r=new p.SimpleXMLParser,n=r.parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}return h(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)}).replace(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))}),n="",i=0,o=r.length;i<o;i+=2){var a=256*r.charCodeAt(i)+r.charCodeAt(i+1);n+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+n})}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,i=0,o=n.length;i<o;i++){var a=n[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,u=a.childNodes.length;s<u;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var c=a.childNodes[s],l=c.nodeName.toLowerCase();this._metadataMap.set(l,c.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e,t=Object.create(null),r=s(this._metadataMap);try{for(r.s();!(e=r.n()).done;){var i=n(e.value,2),o=i[0],a=i[1];t[o]=a}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"has",value:function(e){return this._metadataMap.has(e)}}]),e}();t.Metadata=v},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){return c(e)||u(e,t)||a(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function c(e){if(Array.isArray(e))return e}function l(e,t,r){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=f(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function h(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&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=g();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&_(e.prototype,t),r&&_(e,r),e}function w(e,t){var r=e[t];return" "===r||"\n"===r||"\r"===r||"\t"===r}function S(e){for(var t=0,r=e.length;t<r;t++)if(!w(e,t))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var k={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10},x=function(){function e(){b(this,e)}return A(e,[{key:"_resolveEntities",value:function(e){var t=this;return e.replace(/&([^;]+);/g,function(e,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)})}},{key:"_parseContent",value:function(e,t){function r(){for(;i<e.length&&w(e,i);)++i}for(var n=[],i=t;i<e.length&&!w(e,i)&&">"!==e[i]&&"/"!==e[i];)++i;var o=e.substring(t,i);for(r();i<e.length&&">"!==e[i]&&"/"!==e[i]&&"?"!==e[i];){r();for(var a="",s="";i<e.length&&!w(e,i)&&"="!==e[i];)a+=e[i],++i;if(r(),"="!==e[i])return null;++i,r();var u=e[i];if('"'!==u&&"'"!==u)return null;var c=e.indexOf(u,++i);if(c<0)return null;s=e.substring(i,c),n.push({name:a,value:this._resolveEntities(s)}),i=c+1,r()}return{name:o,attributes:n,parsed:i-t}}},{key:"_parseProcessingInstruction",value:function(e,t){for(var r=t;r<e.length&&!w(e,r)&&">"!==e[r]&&"/"!==e[r];)++r;var n=e.substring(t,r);!function(){for(;r<e.length&&w(e,r);)++r}();for(var i=r;r<e.length&&("?"!==e[r]||">"!==e[r+1]);)++r;return{name:n,value:e.substring(i,r),parsed:r-t}}},{key:"parseXml",value:function(e){for(var t=0;t<e.length;){var r=e[t],n=t;if("<"===r){++n;var i=e[n],o=void 0;switch(i){case"/":if(++n,(o=e.indexOf(">",n))<0)return void this.onError(k.UnterminatedElement);this.onEndElement(e.substring(n,o)),n=o+1;break;case"?":++n;var a=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+a.parsed,n+a.parsed+2))return void this.onError(k.UnterminatedXmlDeclaration);this.onPi(a.name,a.value),n+=a.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if((o=e.indexOf("--\x3e",n+3))<0)return void this.onError(k.UnterminatedComment);this.onComment(e.substring(n+3,o)),n=o+3}else if("[CDATA["===e.substring(n+1,n+8)){if((o=e.indexOf("]]>",n+8))<0)return void this.onError(k.UnterminatedCdat);this.onCdata(e.substring(n+8,o)),n=o+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(k.MalformedElement);var s=e.indexOf("[",n+8),u=!1;if((o=e.indexOf(">",n+8))<0)return void this.onError(k.UnterminatedDoctypeDeclaration);if(s>0&&o>s){if((o=e.indexOf("]>",n+8))<0)return void this.onError(k.UnterminatedDoctypeDeclaration);u=!0}var c=e.substring(n+8,o+(u?1:0));this.onDoctype(c),n=o+(u?2:1)}break;default:var l=this._parseContent(e,n);if(null===l)return void this.onError(k.MalformedElement);var f=!1;if("/>"===e.substring(n+l.parsed,n+l.parsed+2))f=!0;else if(">"!==e.substring(n+l.parsed,n+l.parsed+1))return void this.onError(k.UnterminatedElement);this.onBeginElement(l.name,l.attributes,f),n+=l.parsed+(f?2:1)}}else{for(;n<e.length&&"<"!==e[n];)n++;var h=e.substring(t,n);this.onText(this._resolveEntities(h))}t=n}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(e){}},{key:"onCdata",value:function(e){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(e){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(e){}}]),e}(),C=function(){function e(t,r){b(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return A(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]),e}(),P=function(e){function t(){var e;return b(this,t),e=r.call(this),e._currentFragment=null,e._stack=null,e._errorCode=k.NoError,e}h(t,e);var r=p(t);return A(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=k.NoError,this.parseXml(e),this._errorCode===k.NoError){var t=i(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return l(m(t.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!S(e)){var t=new C("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new C("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new C(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r<n;r++)t.childNodes[r].parentNode=t}},{key:"onError",value:function(e){this._errorCode=e}}]),t}(x);t.SimpleXMLParser=P},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var f=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),h=r(5),d=function(){function e(t,r){var n=this;u(this,e),(0,h.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var i=t.initialData;if(i&&i.length>0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(e,t){n._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener(function(e,t){n._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(e){n._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){n._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return l(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some(function(r){return r._begin===e.begin&&(r._enqueue(t),!0)});(0,h.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,h.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new p(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new v(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=d;var p=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var i,a=o(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._loaded+=s.byteLength}}catch(e){a.e(e)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return l(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(f.default.mark(function e(){var t,r;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,h.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),v=function(){function e(t,r,n){u(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return l(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(f.default.mark(function e(){var t,r;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,h.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";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<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var a=r(5),s=function(){function e(t){var r=t.enable,i=void 0!==r&&r;n(this,e),this._enabled=!0===i}return o(e,[{key:"composeSMask",value:function(e){var t=e.layer,r=e.mask,n=e.properties;return u.composeSMask(t,r,n)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,i=e.figures,o=e.context;return u.drawFigures(t,r,n,i,o)}},{key:"clear",value:function(){u.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=u.tryInitGL()),(0,a.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=s;var u=function(){function e(e,t,r){var n=e.createShader(r);if(e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,i=t.length;n<i;++n)e.attachShader(r,t[n]);if(e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){var o=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function i(e,t,r){e.activeTexture(r);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),n}function o(){l||(f=document.createElement("canvas"),l=f.getContext("webgl",{premultipliedalpha:!1}))}function a(){var e,i;o(),e=f,f=null,i=l,l=null;var a=t(i,h),s=r(i,d),u=n(i,[a,s]);i.useProgram(u);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.backdropLocation=i.getUniformLocation(u,"u_backdrop"),c.subtypeLocation=i.getUniformLocation(u,"u_subtype");var v=i.getAttribLocation(u,"a_texCoord"),y=i.getUniformLocation(u,"u_image"),g=i.getUniformLocation(u,"u_mask"),m=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,m),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(v),i.vertexAttribPointer(v,2,i.FLOAT,!1,0,0),i.uniform1i(y,0),i.uniform1i(g,1),p=c}function s(e,t,r){var n=e.width,o=e.height;p||a();var s=p,u=s.canvas,c=s.gl;u.width=n,u.height=o,c.viewport(0,0,c.drawingBufferWidth,c.drawingBufferHeight),c.uniform2f(s.resolutionLocation,n,o),r.backdrop?c.uniform4f(s.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):c.uniform4f(s.resolutionLocation,0,0,0,0),c.uniform1i(s.subtypeLocation,"Luminosity"===r.subtype?1:0);var l=i(c,e,c.TEXTURE0),f=i(c,t,c.TEXTURE1),h=c.createBuffer();return c.bindBuffer(c.ARRAY_BUFFER,h),c.bufferData(c.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,o,0,o,n,0,n,o]),c.STATIC_DRAW),c.enableVertexAttribArray(s.positionLocation),c.vertexAttribPointer(s.positionLocation,2,c.FLOAT,!1,0,0),c.clearColor(0,0,0,0),c.enable(c.BLEND),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.clear(c.COLOR_BUFFER_BIT),c.drawArrays(c.TRIANGLES,0,6),c.flush(),c.deleteTexture(l),c.deleteTexture(f),c.deleteBuffer(h),u}function u(){var e,i;o(),e=f,f=null,i=l,l=null;var a=t(i,v),s=r(i,y),u=n(i,[a,s]);i.useProgram(u);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.scaleLocation=i.getUniformLocation(u,"u_scale"),c.offsetLocation=i.getUniformLocation(u,"u_offset"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.colorLocation=i.getAttribLocation(u,"a_color"),g=c}function c(e,t,r,n,i){g||u();var o=g,a=o.canvas,s=o.gl;a.width=e,a.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(o.resolutionLocation,e,t);var c,l,f,h=0;for(c=0,l=n.length;c<l;c++)switch(n[c].type){case"lattice":f=n[c].coords.length/n[c].verticesPerRow|0,h+=(f-1)*(n[c].verticesPerRow-1)*6;break;case"triangles":h+=n[c].coords.length}var d=new Float32Array(2*h),p=new Uint8Array(3*h),v=i.coords,y=i.colors,m=0,b=0;for(c=0,l=n.length;c<l;c++){var _=n[c],A=_.coords,w=_.colors;switch(_.type){case"lattice":var S=_.verticesPerRow;f=A.length/S|0;for(var k=1;k<f;k++)for(var x=k*S+1,C=1;C<S;C++,x++)d[m]=v[A[x-S-1]],d[m+1]=v[A[x-S-1]+1],d[m+2]=v[A[x-S]],d[m+3]=v[A[x-S]+1],d[m+4]=v[A[x-1]],d[m+5]=v[A[x-1]+1],p[b]=y[w[x-S-1]],p[b+1]=y[w[x-S-1]+1],p[b+2]=y[w[x-S-1]+2],p[b+3]=y[w[x-S]],p[b+4]=y[w[x-S]+1],p[b+5]=y[w[x-S]+2],p[b+6]=y[w[x-1]],p[b+7]=y[w[x-1]+1],p[b+8]=y[w[x-1]+2],d[m+6]=d[m+2],d[m+7]=d[m+3],d[m+8]=d[m+4],d[m+9]=d[m+5],d[m+10]=v[A[x]],d[m+11]=v[A[x]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=y[w[x]],p[b+16]=y[w[x]+1],p[b+17]=y[w[x]+2],m+=12,b+=18;break;case"triangles":for(var P=0,R=A.length;P<R;P++)d[m]=v[A[P]],d[m+1]=v[A[P]+1],p[b]=y[w[P]],p[b+1]=y[w[P]+1],p[b+2]=y[w[P]+2],m+=2,b+=3}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var T=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,T),s.bufferData(s.ARRAY_BUFFER,d,s.STATIC_DRAW),s.enableVertexAttribArray(o.positionLocation),s.vertexAttribPointer(o.positionLocation,2,s.FLOAT,!1,0,0);var E=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,E),s.bufferData(s.ARRAY_BUFFER,p,s.STATIC_DRAW),s.enableVertexAttribArray(o.colorLocation),s.vertexAttribPointer(o.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(o.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(o.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,h),s.flush(),s.deleteBuffer(T),s.deleteBuffer(E),a}var l,f,h=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",d=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",p=null,v=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",y=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",g=null;return{tryInitGL:function(){try{return o(),!!l}catch(e){}return!1},composeSMask:s,drawFigures:c,cleanup:function(){p&&p.canvas&&(p.canvas.width=0,p.canvas.height=0),g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),p=null,g=null}}}()},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=s(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function u(e){"@babel/helpers - typeof";return(u="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 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)}function f(e){var t=p();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var b=r(1),_=r(5),A=function(){function e(){y(this,e)}return m(e,null,[{key:"create",value:function(e){switch(e.data.annotationType){case _.AnnotationType.LINK:return new S(e);case _.AnnotationType.TEXT:return new k(e);case _.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new C(e);case"Btn":return e.data.radioButton?new R(e):e.data.checkBox?new P(e):new T(e);case"Ch":return new E(e)}return new x(e);case _.AnnotationType.POPUP:return new O(e);case _.AnnotationType.FREETEXT:return new F(e);case _.AnnotationType.LINE:return new I(e);case _.AnnotationType.SQUARE:return new M(e);case _.AnnotationType.CIRCLE:return new j(e);case _.AnnotationType.POLYLINE:return new D(e);case _.AnnotationType.CARET:return new U(e);case _.AnnotationType.INK:return new q(e);case _.AnnotationType.POLYGON:return new N(e);case _.AnnotationType.HIGHLIGHT:return new W(e);case _.AnnotationType.UNDERLINE:return new B(e);case _.AnnotationType.SQUIGGLY:return new G(e);case _.AnnotationType.STRIKEOUT:return new z(e);case _.AnnotationType.STAMP:return new H(e);case _.AnnotationType.FILEATTACHMENT:return new Y(e);default:return new w(e)}}}]),e}(),w=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return m(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=t.rect[2]-t.rect[0],a=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);var s=_.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,a-=2*t.borderStyle.width);var u=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(u>0||c>0){var l="".concat(u,"px / ").concat(c,"px");i.style.borderRadius=l}switch(t.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}t.color?i.style.borderColor=_.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left="".concat(s[0],"px"),i.style.top="".concat(s[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(a,"px"),i}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new L({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),i=n.render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),S=function(e){function t(e){y(this,t);var n=!!(e.data.url||e.data.dest||e.data.action);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,b.addLinkAttributes)(r,{url:e.url,target:e.newWindow?b.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),t}(w),k=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(w),x=function(e){function t(){return y(this,t),r.apply(this,arguments)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container}}]),t}(w),C=function(e){function t(e){y(this,t);var n=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var i=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(i=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,i)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'.concat(t.loadedName,'", '):"",o=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=i+o}}}]),t}(x),P=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",e.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(x),R=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(x),T=function(e){function t(){return y(this,t),r.apply(this,arguments)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=a(v(t.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),t}(S),E=function(e){function t(e){return y(this,t),r.call(this,e,e.renderInteractiveForms)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,r=n(this.data.options);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=document.createElement("option");o.textContent=i.displayValue,o.value=i.exportValue,this.data.fieldValue.includes(i.displayValue)&&o.setAttribute("selected",!0),e.appendChild(o)}}catch(e){r.e(e)}finally{r.f()}return this.container.appendChild(e),this.container}}]),t}(x),O=function(e){function t(e){y(this,t);var n=!(!e.data.title&&!e.data.contents);return r.call(this,e,n)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new L({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(r.style.left),o=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(i+o,"px -").concat(r.style.top),this.container.style.left="".concat(i+o,"px"),this.container.appendChild(n.render()),this.container}}]),t}(w),L=function(){function e(t){y(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return m(e,[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var r=this.color;if(r){var n=.7*(255-r[0])+r[0],i=.7*(255-r[1])+r[1],o=.7*(255-r[2])+r[2];t.style.backgroundColor=_.Util.makeCssRgb(0|n,0|i,0|o)}var a=document.createElement("h1");a.textContent=this.title,t.appendChild(a);var s=b.PDFDateString.toDateObject(this.modificationDate);if(s){var u=document.createElement("span");u.textContent="{{date}}, {{time}}",u.dataset.l10nId="annotation_date_string",u.dataset.l10nArgs=JSON.stringify({date:s.toLocaleDateString(),time:s.toLocaleTimeString()}),t.appendChild(u)}var c=this._formatContents(this.contents);return t.appendChild(c),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,i=r.length;n<i;++n){var o=r[n];t.appendChild(document.createTextNode(o)),n<i-1&&t.appendChild(document.createElement("br"))}return t}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),F=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),I=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),i.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),i.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),i.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(w),M=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",t-i),o.setAttribute("height",r-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,e),this.container}}]),t}(w),j=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",t/2),o.setAttribute("cy",r/2),o.setAttribute("rx",t/2-i/2),o.setAttribute("ry",r/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),n.appendChild(o),this.container.append(n),this._createPopup(this.container,o,e),this.container}}]),t}(w),D=function(e){function t(e){var n;y(this,t);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=r.call(this,e,i,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],o=this.svgFactory.create(r,i),a=[],s=n(t.vertices);try{for(s.s();!(e=s.n()).done;){var u=e.value,c=u.x-t.rect[0],l=t.rect[3]-u.y;a.push(c+","+l)}}catch(e){s.e(e)}finally{s.f()}a=a.join(" ");var f=this.svgFactory.createElement(this.svgElementName);return f.setAttribute("points",a),f.setAttribute("stroke-width",t.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),o.appendChild(f),this.container.append(o),this._createPopup(this.container,f,t),this.container}}]),t}(w),N=function(e){function t(e){var n;return y(this,t),n=r.call(this,e),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}c(t,e);var r=f(t);return t}(D),U=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),q=function(e){function t(e){var n;y(this,t);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=r.call(this,e,i,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],i=t.rect[3]-t.rect[1],o=this.svgFactory.create(r,i),a=n(t.inkLists);try{for(a.s();!(e=a.n()).done;){var s,u=e.value,c=[],l=n(u);try{for(l.s();!(s=l.n()).done;){var f=s.value,h=f.x-t.rect[0],d=t.rect[3]-f.y;c.push("".concat(h,",").concat(d))}}catch(e){l.e(e)}finally{l.f()}c=c.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",c),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),o.appendChild(p)}}catch(e){a.e(e)}finally{a.f()}return this.container.append(o),this.container}}]),t}(w),W=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),B=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),G=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),z=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),H=function(e){function t(e){y(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r.call(this,e,n,!0)}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(w),Y=function(e){function t(e){var n;y(this,t),n=r.call(this,e,!0);var i=n.data.file,o=i.filename,a=i.content;return n.filename=(0,b.getFilenameFromUrl)(o),n.content=a,n.linkService.eventBus&&n.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(n),id:(0,_.stringToPDFString)(o),filename:o,content:a}),n}c(t,e);var r=f(t);return m(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){if(!this.downloadManager)return void(0,_.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}]),t}(w),X=function(){function e(){y(this,e)}return m(e,null,[{key:"render",value:function(e){var t,r=[],i=[],o=n(e.annotations);try{for(o.s();!(t=o.n()).done;){var a=t.value;a&&(a.annotationType!==_.AnnotationType.POPUP?r.push(a):i.push(a))}}catch(e){o.e(e)}finally{o.f()}i.length&&r.push.apply(r,i);for(var s=0,u=r;s<u.length;s++){var c=u[s],l=A.create({data:c,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new b.DOMSVGFactory});l.isRenderable&&e.div.appendChild(l.render())}}},{key:"update",value:function(e){var t,r=n(e.annotations);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=e.div.querySelector('[data-annotation-id="'.concat(i.id,'"]'));o&&(o.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(e){r.e(e)}finally{r.f()}e.div.removeAttribute("hidden")}}]),e}();t.AnnotationLayer=X},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r(5),i=function(){function e(e){return!f.test(e)}function t(t,r,i){var o=document.createElement("span"),a={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(t._textDivs.push(o),e(r.str))return a.isWhitespace=!0,void t._textDivProperties.set(o,a);var s=n.Util.transform(t._viewport.transform,r.transform),u=Math.atan2(s[1],s[0]),c=i[r.fontName];c.vertical&&(u+=Math.PI/2);var l=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=l;c.ascent?f=c.ascent*f:c.descent&&(f=(1+c.descent)*f);var h,d;0===u?(h=s[4],d=s[5]-f):(h=s[4]+f*Math.sin(u),d=s[5]-f*Math.cos(u)),o.style.left="".concat(h,"px"),o.style.top="".concat(d,"px"),o.style.fontSize="".concat(l,"px"),o.style.fontFamily=c.fontFamily,o.textContent=r.str,t._fontInspectorEnabled&&(o.dataset.fontName=r.fontName),0!==u&&(a.angle=u*(180/Math.PI));var p=!1;if(r.str.length>1)p=!0;else if(r.transform[0]!==r.transform[3]){var v=Math.abs(r.transform[0]),y=Math.abs(r.transform[3]);v!==y&&Math.max(v,y)/Math.min(v,y)>1.5&&(p=!0)}if(p&&(c.vertical?a.canvasWidth=r.height*t._viewport.scale:a.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(o,a),t._textContentStream&&t._layoutText(o),t._enhanceTextSelection){var g=1,m=0;0!==u&&(g=Math.cos(u),m=Math.sin(u));var b,_,A=(c.vertical?r.height:r.width)*t._viewport.scale,w=l;0!==u?(b=[g,m,-m,g,h,d],_=n.Util.getAxialAlignedBoundingBox([0,0,A,w],b)):_=[h,d,h+A,d+w],t._bounds.push({left:_[0],top:_[1],right:_[2],bottom:_[3],div:o,size:[A,w],m:b})}}function r(e){if(!e._canceled){var t=e._textDivs,r=e._capability,n=t.length;if(n>l)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var i=0;i<n;i++)e._layoutText(t[i]);e._renderingDone=!0,r.resolve()}}function i(e,t,r){for(var n=0,i=0;i<r;i++){var o=e[t++];o>0&&(n=n?Math.min(o,n):o)}return n}function o(e){for(var t=e._bounds,r=e._viewport,o=a(r.width,r.height,t),s=0;s<o.length;s++){var u=t[s].div,c=e._textDivProperties.get(u);if(0!==c.angle){var l=o[s],f=t[s],h=f.m,d=h[0],p=h[1],v=[[0,0],[0,f.size[1]],[f.size[0],0],f.size],y=new Float64Array(64);v.forEach(function(e,t){var r=n.Util.applyTransform(e,h);y[t+0]=d&&(l.left-r[0])/d,y[t+4]=p&&(l.top-r[1])/p,y[t+8]=d&&(l.right-r[0])/d,y[t+12]=p&&(l.bottom-r[1])/p,y[t+16]=p&&(l.left-r[0])/-p,y[t+20]=d&&(l.top-r[1])/d,y[t+24]=p&&(l.right-r[0])/-p,y[t+28]=d&&(l.bottom-r[1])/d,y[t+32]=d&&(l.left-r[0])/-d,y[t+36]=p&&(l.top-r[1])/-p,y[t+40]=d&&(l.right-r[0])/-d,y[t+44]=p&&(l.bottom-r[1])/-p,y[t+48]=p&&(l.left-r[0])/p,y[t+52]=d&&(l.top-r[1])/-d,y[t+56]=p&&(l.right-r[0])/p,y[t+60]=d&&(l.bottom-r[1])/-d});var g=1+Math.min(Math.abs(d),Math.abs(p));c.paddingLeft=i(y,32,16)/g,c.paddingTop=i(y,48,16)/g,c.paddingRight=i(y,0,16)/g,c.paddingBottom=i(y,16,16)/g,e._textDivProperties.set(u,c)}else c.paddingLeft=t[s].left-o[s].left,c.paddingTop=t[s].top-o[s].top,c.paddingRight=o[s].right-t[s].right,c.paddingBottom=o[s].bottom-t[s].bottom,e._textDivProperties.set(u,c)}}function a(e,t,r){var n=r.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,n);var i=new Array(r.length);return n.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),r.map(function(t,r){var o=i[r],a=n[r];a.x1=t.top,a.y1=e-o.right,a.x2=t.bottom,a.y2=e-o.left,a.index=r,a.x1New=void 0,a.x2New=void 0}),s(t,n),n.forEach(function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}),i}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach(function(e){for(var t=0;t<n.length&&n[t].end<=e.y1;)t++;for(var r=n.length-1;r>=0&&n[r].start>=e.y2;)r--;var i,o,a,s,u=-1/0;for(a=t;a<=r;a++){i=n[a],o=i.boundary;var c;c=o.x2>e.x1?o.index>e.index?o.x1New:e.x1:void 0===o.x2New?(o.x2+e.x1)/2:o.x2New,c>u&&(u=c)}for(e.x1New=u,a=t;a<=r;a++)i=n[a],o=i.boundary,void 0===o.x2New?o.x2>e.x1?o.index>e.index&&(o.x2New=o.x2):o.x2New=u:o.x2New>u&&(o.x2New=Math.max(u,o.x2));var l=[],f=null;for(a=t;a<=r;a++){i=n[a],o=i.boundary;var h=o.x2>e.x2?o:e;f===h?l[l.length-1].end=i.end:(l.push({start:i.start,end:i.end,boundary:h}),f=h)}for(n[t].start<e.y1&&(l[0].start=e.y1,l.unshift({start:n[t].start,end:e.y1,boundary:n[t].boundary})),e.y2<n[r].end&&(l[l.length-1].end=e.y2,l.push({start:e.y2,end:n[r].end,boundary:n[r].boundary})),a=t;a<=r;a++)if(i=n[a],o=i.boundary,void 0===o.x2New){var d=!1;for(s=t-1;!d&&s>=0&&n[s].start>=o.y1;s--)d=n[s].boundary===o;for(s=r+1;!d&&s<n.length&&n[s].end<=o.y2;s++)d=n[s].boundary===o;for(s=0;!d&&s<l.length;s++)d=l[s].boundary===o;d||(o.x2New=u)}Array.prototype.splice.apply(n,[t,r-t+1].concat(l))}),n.forEach(function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))})}function u(e){var t=this,r=e.textContent,i=e.textContentStream,o=e.container,a=e.viewport,s=e.textDivs,u=e.textContentItemsStr,c=e.enhanceTextSelection;this._textContent=r,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._enhanceTextSelection=!!c,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)}).catch(function(){})}function c(e){var t=new u({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}var l=1e5,f=/\S/;return u.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,r){for(var n=0,i=e.length;n<i;n++)this._textContentItemsStr.push(e[n].str),t(this,e[n],r)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var r="";if(0!==t.canvasWidth){var n=e.style,i=n.fontSize,o=n.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(e.textContent),s=a.width;s>0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,i=(0,n.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function e(){t._reader.read().then(function(r){var n=r.value;if(r.done)return void i.resolve();Object.assign(o,n.styles),t._processItems(n.items,o),e()},i.reject)}()}i.promise.then(function(){o=null,e?t._renderTimer=setTimeout(function(){r(t),t._renderTimer=null},e):r(t)},this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,i=this._textDivs.length;n<i;n++){var a=this._textDivs[n],s=this._textDivProperties.get(a);s.isWhitespace||(e?(t.length=0,r.length=0,s.originalTransform&&t.push(s.originalTransform),s.paddingTop>0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),a.style.padding=r.join(" "),t.length&&(a.style.transform=t.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},c}();t.renderTextLayer=i},function(e,t,r){"use strict";function n(e){return a(e)||o(e)||h(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e){if(Array.isArray(e))return d(e)}function s(e,t){return l(e)||c(e,t)||h(e,t)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function l(e){if(Array.isArray(e))return e}function f(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var g=r(5),m=r(1),b=r(7),_=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=_;var A=function(e){var t,r=[],n=[],i=f(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;"save"!==o.fn?"restore"===o.fn?r=n.pop():r.push(o):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(e){i.e(e)}finally{i.f()}return r},w=function(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)},S=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(w(e[0])," ").concat(w(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(w(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(w(e[4])," ").concat(w(e[5]),")");return"matrix(".concat(w(e[0])," ").concat(w(e[1])," ").concat(w(e[2])," ").concat(w(e[3])," ").concat(w(e[4])," ")+"".concat(w(e[5]),")")},k={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},x=["butt","round","square"],C=["miter","round","bevel"],P=function(){function e(e,t,r){for(var n=-1,i=t;i<r;i++){var o=255&(n^e[i]);n=n>>>8^u[o]}return-1^n}function t(t,r,n,i){var o=i,a=r.length;n[o]=a>>24&255,n[o+1]=a>>16&255,n[o+2]=a>>8&255,n[o+3]=255&a,o+=4,n[o]=255&t.charCodeAt(0),n[o+1]=255&t.charCodeAt(1),n[o+2]=255&t.charCodeAt(2),n[o+3]=255&t.charCodeAt(3),o+=4,n.set(r,o),o+=r.length;var s=e(n,i+4,o);n[o]=s>>24&255,n[o+1]=s>>16&255,n[o+2]=s>>8&255,n[o+3]=255&s}function r(e,t,r){for(var n=1,i=0,o=t;o<r;++o)n=(n+(255&e[o]))%65521,i=(i+n)%65521;return i<<16|n}function n(e){if(!b.isNodeJS)return i(e);try{var t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);var r=__webpack_require__(2005).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(e){(0,g.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return i(e)}function i(e){var t=e.length,n=Math.ceil(t/65535),i=new Uint8Array(2+t+5*n+4),o=0;i[o++]=120,i[o++]=156;for(var a=0;t>65535;)i[o++]=0,i[o++]=255,i[o++]=255,i[o++]=0,i[o++]=0,i.set(e.subarray(a,a+65535),o),o+=65535,a+=65535,t-=65535;i[o++]=1,i[o++]=255&t,i[o++]=t>>8&255,i[o++]=255&~t,i[o++]=(65535&~t)>>8&255,i.set(e.subarray(a),o),o+=e.length-a;var s=r(e,0,e.length);return i[o++]=s>>24&255,i[o++]=s>>16&255,i[o++]=s>>8&255,i[o++]=255&s,i}function o(e,r,i,o){var u,c,l,f=e.width,h=e.height,d=e.data;switch(r){case g.ImageKind.GRAYSCALE_1BPP:c=0,u=1,l=f+7>>3;break;case g.ImageKind.RGB_24BPP:c=2,u=8,l=3*f;break;case g.ImageKind.RGBA_32BPP:c=6,u=8,l=4*f;break;default:throw new Error("invalid format")}for(var p=new Uint8Array((1+l)*h),v=0,y=0,m=0;m<h;++m)p[v++]=0,p.set(d.subarray(y,y+l),v),y+=l,v+=l;if(r===g.ImageKind.GRAYSCALE_1BPP&&o){v=0;for(var b=0;b<h;b++){v++;for(var _=0;_<l;_++)p[v++]^=255}}var A=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,h>>24&255,h>>16&255,h>>8&255,255&h,u,c,0,0,0]),w=n(p),S=a.length+3*s+A.length+w.length,k=new Uint8Array(S),x=0;return k.set(a,x),x+=a.length,t("IHDR",A,k,x),x+=s+A.length,t("IDATA",w,k,x),x+=s+w.length,t("IEND",new Uint8Array(0),k,x),(0,g.createObjectURL)(k,"image/png",i)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,u=new Int32Array(256),c=0;c<256;c++){for(var l=c,f=0;f<8;f++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;u[c]=l}return function(e,t,r){return o(e,void 0===e.kind?g.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}(),R=function(){function e(){p(this,e),this.fontSizeScale=1,this.fontWeight=k.fontWeight,this.fontSize=0,this.textMatrix=g.IDENTITY_MATRIX,this.fontMatrix=g.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=g.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=k.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return y(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),T=0,E=0,O=0;t.SVGGraphics=_=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,e),this.svgFactory=new m.DOMSVGFactory,this.current=new R,this.transformMatrix=g.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(var i in g.OPS)this._operatorIdMapping[g.OPS[i]]=i}return y(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,n=e.argsArray,i=0,o=r.length;i<o;i++)if(r[i]===g.OPS.dependency){var a,s=f(n[i]);try{for(s.s();!(a=s.n()).done;)!function(){var e=a.value,r=e.startsWith("g_")?t.commonObjs:t.objs,n=new Promise(function(t){r.get(e,t)});t.current.dependencies.push(n)}()}catch(e){s.e(e)}finally{s.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(e,t,r,n,i,o){var a=[e,t,r,n,i,o];this.transformMatrix=g.Util.transform(this.transformMatrix,a),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var n=this._initialize(t);return this.loadDependencies(e).then(function(){return r.transformMatrix=g.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),n})}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,i=[],o=0,a=n.length;o<a;o++){var s=n[o];i.push({fnId:s,fn:t[s],args:r[o]})}return A(i)}},{key:"executeOpTree",value:function(e){var t,r=f(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=n.fn,o=n.fnId,a=n.args;switch(0|o){case g.OPS.beginText:this.beginText();break;case g.OPS.dependency:break;case g.OPS.setLeading:this.setLeading(a);break;case g.OPS.setLeadingMoveText:this.setLeadingMoveText(a[0],a[1]);break;case g.OPS.setFont:this.setFont(a);break;case g.OPS.showText:case g.OPS.showSpacedText:this.showText(a[0]);break;case g.OPS.endText:this.endText();break;case g.OPS.moveText:this.moveText(a[0],a[1]);break;case g.OPS.setCharSpacing:this.setCharSpacing(a[0]);break;case g.OPS.setWordSpacing:this.setWordSpacing(a[0]);break;case g.OPS.setHScale:this.setHScale(a[0]);break;case g.OPS.setTextMatrix:this.setTextMatrix(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.setTextRise:this.setTextRise(a[0]);break;case g.OPS.setTextRenderingMode:this.setTextRenderingMode(a[0]);break;case g.OPS.setLineWidth:this.setLineWidth(a[0]);break;case g.OPS.setLineJoin:this.setLineJoin(a[0]);break;case g.OPS.setLineCap:this.setLineCap(a[0]);break;case g.OPS.setMiterLimit:this.setMiterLimit(a[0]);break;case g.OPS.setFillRGBColor:this.setFillRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeRGBColor:this.setStrokeRGBColor(a[0],a[1],a[2]);break;case g.OPS.setStrokeColorN:this.setStrokeColorN(a);break;case g.OPS.setFillColorN:this.setFillColorN(a);break;case g.OPS.shadingFill:this.shadingFill(a[0]);break;case g.OPS.setDash:this.setDash(a[0],a[1]);break;case g.OPS.setRenderingIntent:this.setRenderingIntent(a[0]);break;case g.OPS.setFlatness:this.setFlatness(a[0]);break;case g.OPS.setGState:this.setGState(a[0]);break;case g.OPS.fill:this.fill();break;case g.OPS.eoFill:this.eoFill();break;case g.OPS.stroke:this.stroke();break;case g.OPS.fillStroke:this.fillStroke();break;case g.OPS.eoFillStroke:this.eoFillStroke();break;case g.OPS.clip:this.clip("nonzero");break;case g.OPS.eoClip:this.clip("evenodd");break;case g.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case g.OPS.paintImageXObject:this.paintImageXObject(a[0]);break;case g.OPS.paintInlineImageXObject:this.paintInlineImageXObject(a[0]);break;case g.OPS.paintImageMaskXObject:this.paintImageMaskXObject(a[0]);break;case g.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(a[0],a[1]);break;case g.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case g.OPS.closePath:this.closePath();break;case g.OPS.closeStroke:this.closeStroke();break;case g.OPS.closeFillStroke:this.closeFillStroke();break;case g.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case g.OPS.nextLine:this.nextLine();break;case g.OPS.transform:this.transform(a[0],a[1],a[2],a[3],a[4],a[5]);break;case g.OPS.constructPath:this.constructPath(a[0],a[1]);break;case g.OPS.endPath:this.endPath();break;case 92:this.group(n.items);break;default:(0,g.warn)("Unimplemented operator ".concat(i))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(e,t,r,n,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[e,t,r,n,i,o],a.textMatrixScale=Math.sqrt(e*e+t*t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(w(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",w(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=g.IDENTITY_MATRIX,e.lineMatrix=g.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(w(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",w(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,n=t.fontSize;if(0!==n){var i,o=t.fontSizeScale,a=t.charSpacing,s=t.wordSpacing,u=t.fontDirection,c=t.textHScale*u,l=r.vertical,h=l?1:-1,d=r.defaultVMetrics,p=n*t.fontMatrix[0],v=0,y=f(e);try{for(y.s();!(i=y.n()).done;){var m=i.value;if(null!==m)if((0,g.isNum)(m))v+=h*m*n/1e3;else{var b=(m.isSpace?s:0)+a,_=m.fontChar,A=void 0,x=void 0,C=m.width;if(l){var P=void 0,R=m.vmetric||d;P=m.vmetric?R[1]:.5*C,P=-P*p;var T=R[2]*p;C=R?-R[0]:C,A=P/o,x=(v+T)/o}else A=v/o,x=0;(m.isInFont||r.missingFile)&&(t.xcoords.push(t.x+A),l&&t.ycoords.push(-t.y+x),t.tspan.textContent+=_);var E=void 0;E=l?C*p-b*u:C*p+b*u,v+=E}else v+=u*s}}catch(e){y.e(e)}finally{y.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(w).join(" ")),l?t.tspan.setAttributeNS(null,"y",t.ycoords.map(w).join(" ")):t.tspan.setAttributeNS(null,"y",w(-t.y)),l?t.y-=v:t.x+=v*c,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(w(t.fontSize),"px")),t.fontStyle!==k.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==k.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var O=t.textRenderingMode&g.TextRenderingMode.FILL_STROKE_MASK;if(O===g.TextRenderingMode.FILL||O===g.TextRenderingMode.FILL_STROKE?(t.fillColor!==k.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===g.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),O===g.TextRenderingMode.STROKE||O===g.TextRenderingMode.FILL_STROKE){var L=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,L)}var F=t.textMatrix;0!==t.textRise&&(F=F.slice(),F[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(S(F)," scale(").concat(w(c),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,g.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(e){var t=this.current,r=this.commonObjs.get(e[0]),n=e[1];t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix?r.fontMatrix:g.FONT_IDENTITY_MATRIX;var i="normal";r.black?i="900":r.bold&&(i="bold");var o=r.italic?"italic":"normal";n<0?(n=-n,t.fontDirection=-1):t.fontDirection=1,t.fontSize=n,t.fontFamily=r.loadedName,t.fontWeight=i,t.fontStyle=o,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",w(-t.y)),t.xcoords=[],t.ycoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&g.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=x[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=C[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=g.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=g.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,n=g.Util.inverseTransform(this.transformMatrix),i=g.Util.applyTransform([0,0],n),o=g.Util.applyTransform([0,r],n),a=g.Util.applyTransform([t,0],n),s=g.Util.applyTransform([t,r],n),u=Math.min(i[0],o[0],a[0],s[0]),c=Math.min(i[1],o[1],a[1],s[1]),l=Math.max(i[0],o[0],a[0],s[0]),f=Math.max(i[1],o[1],a[1],s[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",u),h.setAttributeNS(null,"y",c),h.setAttributeNS(null,"width",l-u),h.setAttributeNS(null,"height",f-c),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(h)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],i=e[3]||g.IDENTITY_MATRIX,o=s(e[4],4),a=o[0],u=o[1],c=o[2],l=o[3],f=e[5],h=e[6],d=e[7],p="shading".concat(O++),v=g.Util.applyTransform([a,u],i),y=s(v,2),m=y[0],b=y[1],_=g.Util.applyTransform([c,l],i),A=s(_,2),w=A[0],S=A[1],k=g.Util.singularValueDecompose2dScale(i),x=s(k,2),C=x[0],P=x[1],R=f*C,T=h*P,E=this.svgFactory.createElement("svg:pattern");E.setAttributeNS(null,"id",p),E.setAttributeNS(null,"patternUnits","userSpaceOnUse"),E.setAttributeNS(null,"width",R),E.setAttributeNS(null,"height",T),E.setAttributeNS(null,"x","".concat(m)),E.setAttributeNS(null,"y","".concat(b));var L=this.svg,F=this.transformMatrix,I=this.current.fillColor,M=this.current.strokeColor,j=this.svgFactory.create(w-m,S-b);if(this.svg=j,this.transformMatrix=i,2===d){var D=g.Util.makeCssRgb.apply(g.Util,n(t));this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(r)),this.svg=L,this.transformMatrix=F,this.current.fillColor=I,this.current.strokeColor=M,E.appendChild(j.childNodes[0]),this.defs.appendChild(E),"url(#".concat(p,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(O++),n=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var a=e[4],s=e[5],u=e[6],c=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",s[0]),t.setAttributeNS(null,"cy",s[1]),t.setAttributeNS(null,"r",c),t.setAttributeNS(null,"fx",a[0]),t.setAttributeNS(null,"fy",a[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var l,h=f(n);try{for(h.s();!(l=h.n()).done;){var d=l.value,p=this.svgFactory.createElement("svg:stop");p.setAttributeNS(null,"offset",d[0]),p.setAttributeNS(null,"stop-color",d[1]),t.appendChild(p)}}catch(e){h.e(e)}finally{h.f()}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,g.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,n=this.current,i=n.x,o=n.y,a=[],s=0,u=f(e);try{for(u.s();!(r=u.n()).done;){switch(0|r.value){case g.OPS.rectangle:i=t[s++],o=t[s++];var c=t[s++],l=t[s++],h=i+c,d=o+l;a.push("M",w(i),w(o),"L",w(h),w(o),"L",w(h),w(d),"L",w(i),w(d),"Z");break;case g.OPS.moveTo:i=t[s++],o=t[s++],a.push("M",w(i),w(o));break;case g.OPS.lineTo:i=t[s++],o=t[s++],a.push("L",w(i),w(o));break;case g.OPS.curveTo:i=t[s+4],o=t[s+5],a.push("C",w(t[s]),w(t[s+1]),w(t[s+2]),w(t[s+3]),w(i),w(o)),s+=6;break;case g.OPS.curveTo2:a.push("C",w(i),w(o),w(t[s]),w(t[s+1]),w(t[s+2]),w(t[s+3])),i=t[s+2],o=t[s+3],s+=4;break;case g.OPS.curveTo3:i=t[s+2],o=t[s+3],a.push("C",w(t[s]),w(t[s+1]),w(i),w(o),w(i),w(o)),s+=4;break;case g.OPS.closePath:a.push("Z")}}}catch(e){u.e(e)}finally{u.f()}a=a.join(" "),n.path&&e.length>0&&e[0]!==g.OPS.rectangle&&e[0]!==g.OPS.moveTo?a=n.path.getAttributeNS(null,"d")+a:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",a),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip){if(!e.element)return void(this.pendingClip=null);var t="clippath".concat(T++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",S(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null}),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=f(e);try{for(r.s();!(t=r.n()).done;){var n=s(t.value,2),i=n[0],o=n[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o);break;case"CA":this.setStrokeAlpha(o);break;case"ca":this.setFillAlpha(o);break;default:(0,g.warn)("Unimplemented graphic state operator ".concat(i))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map(function(e){return t*e})),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",w(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",w(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(w).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",w(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);if(!t)return void(0,g.warn)("Dependent image with object ID ".concat(e," is not ready yet"));this.paintInlineImageXObject(t)}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,i=P(e,this.forceDataSchema,!!t),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",w(r)),o.setAttributeNS(null,"height",w(n)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",w(-n)),a.setAttributeNS(null,"width",w(r)+"px"),a.setAttributeNS(null,"height",w(n)+"px"),a.setAttributeNS(null,"transform","scale(".concat(w(1/r)," ").concat(w(-1/n),")")),t?t.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,i=t.fillColor;t.maskId="mask".concat(E++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",t.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",w(r)),a.setAttributeNS(null,"height",w(n)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(e,o)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",w(r)),i.setAttributeNS(null,"height",w(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",S(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",S(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,r){"use strict";function n(e){"@babel/helpers - typeof";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){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&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=c();return function(){var r,n=l(e);if(t){var i=l(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){function o(e){f(s,n,i,o,a,"next",e)}function a(e){f(s,n,i,o,a,"throw",e)}var s=e.apply(t,r);o(void 0)})}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function y(e){var t=k.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?k.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}function g(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var m=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),b=r(5),_=r(213),A=__webpack_require__(2006),w=__webpack_require__(2007),S=__webpack_require__(2008),k=__webpack_require__(2009),x=/^file:\/\/\/[a-zA-Z]:\//,C=function(){function e(t){d(this,e),this.source=t,this.url=y(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return v(e,[{key:"getFullReader",value:function(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new O(this):new T(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new L(this,e,t):new E(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=C;var P=function(){function e(t){d(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}return v(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=h(m.default.mark(function e(){var t,r;return m.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){if(!this._readableStream)return void this._error(e);this._readableStream.destroy(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),R=function(){function e(t){d(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return v(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=h(m.default.mark(function e(){var t,r;return m.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,b.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){if(!this._readableStream)return void this._error(e);this._readableStream.destroy(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",function(){t._readCapability.resolve()}),e.on("end",function(){e.destroy(),t._done=!0,t._readCapability.resolve()}),e.on("error",function(e){t._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),T=function(e){function t(e){var n;d(this,t),n=r.call(this,e);var i=function(t){if(404===t.statusCode){var r=new b.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(t);var i=function(e){return n._readableStream.headers[e.toLowerCase()]},o=(0,_.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:e.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),a=o.allowRangeRequests,s=o.suggestedLength;n._isRangeSupported=a,n._contentLength=s||n._contentLength,n._filename=(0,_.extractFilenameFromHeader)(i)};return n._request=null,"http:"===n._url.protocol?n._request=w.request(g(n._url,e.httpHeaders),i):n._request=S.request(g(n._url,e.httpHeaders),i),n._request.on("error",function(e){n._storedError=e,n._headersCapability.reject(e)}),n._request.end(),n}i(t,e);var r=a(t);return t}(P),E=function(e){function t(e,n,i){var o;d(this,t),o=r.call(this,e),o._httpHeaders={};for(var a in e.httpHeaders){var s=e.httpHeaders[a];void 0!==s&&(o._httpHeaders[a]=s)}o._httpHeaders.Range="bytes=".concat(n,"-").concat(i-1);var u=function(e){if(404===e.statusCode){var t=new b.MissingPDFException('Missing PDF "'.concat(o._url,'".'));return void(o._storedError=t)}o._setReadableStream(e)};return o._request=null,"http:"===o._url.protocol?o._request=w.request(g(o._url,o._httpHeaders),u):o._request=S.request(g(o._url,o._httpHeaders),u),o._request.on("error",function(e){o._storedError=e}),o._request.end(),o}i(t,e);var r=a(t);return t}(R),O=function(e){function t(e){var n;d(this,t),n=r.call(this,e);var i=decodeURIComponent(n._url.path);return x.test(n._url.href)&&(i=i.replace(/^\//,"")),A.lstat(i,function(e,t){if(e)return"ENOENT"===e.code&&(e=new b.MissingPDFException('Missing PDF "'.concat(i,'".'))),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(A.createReadStream(i)),n._headersCapability.resolve()}),n}i(t,e);var r=a(t);return t}(P),L=function(e){function t(e,n,i){var o;d(this,t),o=r.call(this,e);var a=decodeURIComponent(o._url.path);return x.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(A.createReadStream(a,{start:n,end:i-1})),o}i(t,e);var r=a(t);return t}(R)},function(e,t,r){"use strict";function n(e){var t=e.getResponseHeader,r=e.isHttp,n=e.rangeChunkSize,i=e.disableRange;(0,s.assert)(n>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(t("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n?o:i||!r?o:"bytes"!==t("Accept-Ranges")?o:"identity"!==(t("Content-Encoding")||"identity")?o:(o.allowRangeRequests=!0,o)):o}function i(e){var t=e("Content-Disposition");if(t){var r=(0,u.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(e){}if(/\.pdf$/i.test(r))return r}return null}function o(e,t){return 404===e||0===e&&t.startsWith("file:")?new s.MissingPDFException('Missing PDF "'+t+'".'):new s.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function a(e){return 200===e||206===e}Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=o,t.extractFilenameFromHeader=i,t.validateRangeRequestCapabilities=n,t.validateResponseStatus=a;var s=r(5),u=r(214)},function(e,t,r){"use strict";function n(e,t){return u(e)||s(e,t)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}function u(e){if(Array.isArray(e))return e}function c(e){function t(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function r(e,t){if(e){if(!/^[\x00-\xFF]+$/.test(t))return t;try{var r=new TextDecoder(e,{fatal:!0}),n=Array.from(t,function(e){return 255&e.charCodeAt(0)});t=r.decode(new Uint8Array(n)),u=!1}catch(r){if(/^utf-?8$/i.test(e))try{t=decodeURIComponent(escape(t)),u=!1}catch(e){}}}return t}function i(e){return u&&/[\x80-\xff]/.test(e)&&(e=r("utf-8",e),u&&(e=r("iso-8859-1",e))),e}function o(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),r=0;r<t.length;++r){var n=t[r].indexOf('"');-1!==n&&(t[r]=t[r].slice(0,n),t.length=r+1),t[r]=t[r].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function a(e){var t=e.indexOf("'");return-1===t?e:r(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function s(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(e,t,n,i){if("q"===n||"Q"===n)return i=i.replace(/_/g," "),i=i.replace(/=([0-9a-fA-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}),r(t,i);try{i=atob(i)}catch(e){}return r(t,i)})}var u=!0,c=t("filename\\*","i").exec(e);if(c){c=c[1];var l=o(c);return l=unescape(l),l=a(l),l=s(l),i(l)}if(c=function(e){for(var r,i=[],s=t("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(r=s.exec(e));){var u=r,c=n(u,4),l=c[1],f=c[2],h=c[3];if((l=parseInt(l,10))in i){if(0===l)break}else i[l]=[f,h]}for(var d=[],p=0;p<i.length&&p in i;++p){var v=n(i[p],2),y=v[0],g=v[1];g=o(g),y&&(g=unescape(g),0===p&&(g=a(g))),d.push(g)}return d.join("")}(e)){return i(s(c))}if(c=t("filename","i").exec(e)){c=c[1];var f=o(c);return f=s(f),i(f)}return""}Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=c},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e){var t=e.response;return"string"!=typeof t?t:(0,l.stringToBytes)(t).buffer}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var c=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),l=r(5),f=r(213),h=function(){function e(t,r){o(this,e),this.url=t,r=r||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return s(e,[{key:"requestRange",value:function(e,t,r){var n={begin:e,end:t};for(var i in r)n[i]=r[i];return this.request(n)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&t.setRequestHeader(i,o)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var n=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests){if(delete this.pendingRequests[e],0===n.status&&this.isHttp)return void(r.onError&&r.onError(n.status));var i=n.status||200;if(!(200===i&&206===r.expectedStatus)&&i!==r.expectedStatus)return void(r.onError&&r.onError(n.status));var o=u(n);if(206===i){var a=n.getResponseHeader("Content-Range"),s=/bytes (\d+)-(\d+)\/(\d+)/.exec(a);r.onDone({begin:parseInt(s[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),d=function(){function e(t){o(this,e),this._source=t,this._manager=new h(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new v(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}}]),e}();t.PDFNetworkStream=d;var p=function(){function e(t,r){o(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,l.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return s(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,f.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,o=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,f.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,f.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach(function(e){e.reject(r)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(c.default.mark(function e(){var t,r;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,l.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),v=function(){function e(t,r,n){o(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return s(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(c.default.mark(function e(){var t,r;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,l.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function a(e){n(u,i,o,a,s,"next",e)}function s(e){n(u,i,o,a,s,"throw",e)}var u=e.apply(t,r);a(void 0)})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}function u(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function c(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var l=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),f=r(5),h=r(213),d=function(){function e(t){o(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"getFullReader",value:function(){return(0,f.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new p(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new v(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=d;var p=function(){function e(t){var r=this;o(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,f.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=c(this._stream.httpHeaders);var i=n.url;fetch(i,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,h.validateResponseStatus)(e.status))throw(0,h.createResponseStatusError)(e.status,i);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,h.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),o=n.allowRangeRequests,a=n.suggestedLength;r._isRangeSupported=o,r._contentLength=a||r._contentLength,r._filename=(0,h.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new f.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return s(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(l.default.mark(function e(){var t,r,n,i;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),v=function(){function e(t,r,n){var i=this;o(this,e),this._stream=t,this._reader=null,this._loaded=0;var a=t.source;this._withCredentials=a.withCredentials||!1,this._readCapability=(0,f.createPromiseCapability)(),this._isStreamingSupported=!a.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=c(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var s=a.url;fetch(s,u(this._headers,this._withCredentials,this._abortController)).then(function(e){if(!(0,h.validateResponseStatus)(e.status))throw(0,h.createResponseStatusError)(e.status,s);i._readCapability.resolve(),i._reader=e.body.getReader()}),this.onProgress=null}return s(e,[{key:"read",value:function(){function e(){return t.apply(this,arguments)}var t=i(l.default.mark(function e(){var t,r,n,i;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(r).buffer,e.abrupt("return",{value:i,done:!1});case 13:case"end":return e.stop()}},e,this)}));return e}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()}])})}).call(exports,__webpack_require__(961).Buffer,__webpack_require__(664),__webpack_require__(287))},2005:function(e,t){},2006:function(e,t){},2007:function(e,t){},2008:function(e,t){},2009:function(e,t){},2010:function(e,t){},21:function(e,t,r){var n=r(6),i=r(0).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},218:function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},23:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},24:function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},25:function(e,t,r){var n=r(9).f,i=r(7),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},26:function(e,t,r){var n=r(37),i=r(28);e.exports=Object.keys||function(e){return n(e,i)}},27:function(e,t,r){var n=r(2),i=r(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},287:function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},29:function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},3:function(e,t,r){e.exports=!r(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(e,t,r){var n=r(14);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},31:function(e,t,r){var n=r(15),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},33:function(e,t,r){"use strict";var n=r(18),i=r(10),o=r(47),a=r(5),s=r(11),u=r(55),c=r(25),l=r(57),f=r(1)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,v,y,g){u(r,t,p);var m,b,_,A=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},w=t+" Iterator",S="values"==v,k=!1,x=e.prototype,C=x[f]||x["@@iterator"]||v&&x[v],P=C||A(v),R=v?S?A("entries"):P:void 0,T="Array"==t?x.entries||C:C;if(T&&(_=l(T.call(new e)))!==Object.prototype&&_.next&&(c(_,w,!0),n||"function"==typeof _[f]||a(_,f,d)),S&&C&&"values"!==C.name&&(k=!0,P=function(){return C.call(this)}),n&&!g||!h&&!k&&x[f]||a(x,f,P),s[t]=P,s[w]=d,v)if(m={values:S?P:A("values"),keys:y?P:A("keys"),entries:R},g)for(b in m)b in x||o(x,b,m[b]);else i(i.P+i.F*(h||k),t,m);return m}},34:function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},36:function(e,t,r){e.exports=!r(3)&&!r(13)(function(){return 7!=Object.defineProperty(r(21)("div"),"a",{get:function(){return 7}}).a})},37:function(e,t,r){var n=r(7),i=r(12),o=r(41)(!1),a=r(20)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(c,r)||c.push(r));return c}},38:function(e,t,r){var n=r(0).document;e.exports=n&&n.documentElement},39:function(e,t,r){"use strict";function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=i(t),this.reject=i(r)}var i=r(19);e.exports.f=function(e){return new n(e)}},4:function(e,t,r){var n=r(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},40:function(e,t,r){var n=r(14),i=r(1)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},41:function(e,t,r){var n=r(12),i=r(31),o=r(42);e.exports=function(e){return function(t,r,a){var s,u=n(t),c=i(u.length),l=o(a,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}}},42:function(e,t,r){var n=r(15),i=Math.max,o=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):o(e,t)}},44:function(e,t,r){"use strict";var n=r(54)(!0);r(33)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},46:function(e,t,r){var n=r(4),i=r(56),o=r(28),a=r(20)("IE_PROTO"),s=function(){},u=function(){var e,t=r(21)("iframe"),n=o.length;for(t.style.display="none",r(38).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},47:function(e,t,r){e.exports=r(5)},48:function(e,t,r){r(63);for(var n=r(0),i=r(5),o=r(11),a=r(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},5:function(e,t,r){var n=r(9),i=r(23);e.exports=r(3)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},52:function(e,t,r){var n=r(40),i=r(1)("iterator"),o=r(11);e.exports=r(2).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},54:function(e,t,r){var n=r(15),i=r(16);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},55:function(e,t,r){"use strict";var n=r(46),i=r(23),o=r(25),a={};r(5)(a,r(1)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},56:function(e,t,r){var n=r(9),i=r(4),o=r(26);e.exports=r(3)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},57:function(e,t,r){var n=r(7),i=r(29),o=r(20)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},58:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},59:function(e,t,r){var n=r(4),i=r(19),o=r(1)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},6:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},60:function(e,t,r){var n,i,o,a=r(17),s=r(81),u=r(38),c=r(21),l=r(0),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,y=0,g={},m=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){m.call(e.data)};h&&d||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++y]=function(){s("function"==typeof e?e:Function(e),t)},n(y),y},d=function(e){delete g[e]},"process"==r(14)(f)?n=function(e){f.nextTick(a(m,e,1))}:v&&v.now?n=function(e){v.now(a(m,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),e.exports={set:h,clear:d}},61:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},62:function(e,t,r){var n=r(4),i=r(6),o=r(39);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},63:function(e,t,r){"use strict";var n=r(64),i=r(58),o=r(11),a=r(12);e.exports=r(33)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},64:function(e,t){e.exports=function(){}},66:function(e,t,r){e.exports={default:r(79),__esModule:!0}},664:function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):y=-1,p.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=p.length;t;){for(d=p,p=[];++y<t;)d&&d[y].run();y=-1,t=p.length}d=null,v=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,h=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var d,p=[],v=!1,y=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new u(e,t)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},67:function(e,t){},7:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},72:function(e,t,r){var n=r(17),i=r(73),o=r(74),a=r(4),s=r(31),u=r(52),c={},l={},t=e.exports=function(e,t,r,f,h){var d,p,v,y,g=h?function(){return e}:u(e),m=n(r,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(d=s(e.length);d>b;b++)if((y=t?m(a(p=e[b])[0],p[1]):m(e[b]))===c||y===l)return y}else for(v=g.call(e);!(p=v.next()).done;)if((y=i(v,m,p.value,t))===c||y===l)return y};t.BREAK=c,t.RETURN=l},73:function(e,t,r){var n=r(4);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},74:function(e,t,r){var n=r(11),i=r(1)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},75:function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},76:function(e,t,r){var n=r(5);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},77:function(e,t,r){var n=r(1)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},78:function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(9),a=r(3),s=r(1)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},79:function(e,t,r){r(67),r(44),r(48),r(80),r(84),r(85),e.exports=r(2).Promise},80:function(e,t,r){"use strict";var n,i,o,a,s=r(18),u=r(0),c=r(17),l=r(40),f=r(10),h=r(6),d=r(19),p=r(75),v=r(72),y=r(59),g=r(60).set,m=r(82)(),b=r(39),_=r(61),A=r(83),w=r(62),S=u.TypeError,k=u.process,x=k&&k.versions,C=x&&x.v8||"",P=u.Promise,R="process"==l(k),T=function(){},E=i=b.f,O=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[r(1)("species")]=function(e){e(T,T)};return(R||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==C.indexOf("6.6")&&-1===A.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},F=function(e,t){if(!e._n){e._n=!0;var r=e._c;m(function(){for(var n=e._v,i=1==e._s,o=0;r.length>o;)!function(t){var r,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&j(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?c(S("Promise-chain cycle")):(o=L(r))?o.call(r,u,c):u(r)):c(n)}catch(e){l&&!a&&l.exit(),c(e)}}(r[o++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){g.call(u,function(){var t,r,n,i=e._v,o=M(e);if(o&&(t=_(function(){R?k.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=R||M(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){g.call(u,function(){var t;R?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),F(t,!0))},N=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(t=L(e))?m(function(){var n={_w:r,_d:!1};try{t.call(e,c(N,n,1),c(D,n,1))}catch(e){D.call(n,e)}}):(r._v=e,r._s=1,F(r,!1))}catch(e){D.call({_w:r,_d:!1},e)}}};O||(P=function(e){p(this,P,"Promise","_h"),d(e),n.call(this);try{e(c(N,this,1),c(D,this,1))}catch(e){D.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(76)(P.prototype,{then:function(e,t){var r=E(y(this,P));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=c(N,e,1),this.reject=c(D,e,1)},b.f=E=function(e){return e===P||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!O,{Promise:P}),r(25)(P,"Promise"),r(78)("Promise"),a=r(2).Promise,f(f.S+f.F*!O,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!O),"Promise",{resolve:function(e){return w(s&&this===a?P:this,e)}}),f(f.S+f.F*!(O&&r(77)(function(e){P.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=E(t),n=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,a=1;v(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=E(t),n=r.reject,i=_(function(){v(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},81:function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},82:function(e,t,r){var n=r(0),i=r(60).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(14)(a);e.exports=function(){var e,t,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},83:function(e,t,r){var n=r(0),i=n.navigator;e.exports=i&&i.userAgent||""},84:function(e,t,r){"use strict";var n=r(10),i=r(2),o=r(0),a=r(59),s=r(62);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},85:function(e,t,r){"use strict";var n=r(10),i=r(39),o=r(61);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},9:function(e,t,r){var n=r(4),i=r(36),o=r(34),a=Object.defineProperty;t.f=r(3)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},961:function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,r){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return a(this,e,t,r)}function a(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,r,n):"string"==typeof t?l(e,t,r):d(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,r,n){return s(t),t<=0?i(e,t):void 0!==r?"string"==typeof n?i(e,t).fill(r,n):i(e,t).fill(r):i(e,t)}function c(e,t){if(s(t),e=i(e,t<0?0:0|p(t)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function l(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!o.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(t,r);e=i(e,n);var a=e.write(t,r);return a!==n&&(e=e.slice(0,a)),e}function f(e,t){var r=t.length<0?0:0|p(t.length);e=i(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=f(e,t),e}function d(e,t){if(o.isBuffer(t)){var r=0|p(t.length);return e=i(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||K(t.length)?i(e,0):f(e,t);if("Buffer"===t.type&&Z(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),o.alloc(+e)}function y(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(n)return z(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return R(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;c<s;c++)if(o(e,c)===o(t,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(r+u>s&&(r=s-u),c=r;c>=0;c--){for(var f=!0,h=0;h<u;h++)if(o(e,c+h)!==o(t,h)){f=!1;break}if(f)return c}return-1}function A(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return V(z(t,e.length-r),e,r,n)}function S(e,t,r,n){return V(H(t),e,r,n)}function k(e,t,r,n){return S(e,t,r,n)}function x(e,t,r,n){return V(X(t),e,r,n)}function C(e,t,r,n){return V(Y(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,r))}function R(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=e[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return T(n)}function T(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=$));return r}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=G(e[o]);return i}function F(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function j(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,i){return i||N(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(e,t,r,n,23,4),r+4}function q(e,t,r,n,i){return i||N(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(e,t,r,n,52,8),r+8}function W(e){if(e=B(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function H(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Y(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function X(e){return Q.toByteArray(W(e))}function V(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function K(e){return e!==e}var Q=r(962),J=r(963),Z=r(964);t.Buffer=o,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return c(null,e)},o.allocUnsafeSlow=function(e){return c(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Z(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?R(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},o.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),J.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),J.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){M(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){M(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=o.isBuffer(e)?e:z(new o(e,n).toString()),u=s.length;for(a=0;a<r-t;++a)this[a+t]=s[a%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,r(287))},962:function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function o(e,t,r){return 3*(t+r)/4-r}function a(e){var t,r,i=n(e),a=i[0],s=i[1],u=new h(o(e,a,s)),c=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=f[e.charCodeAt(r)]<<18|f[e.charCodeAt(r+1)]<<12|f[e.charCodeAt(r+2)]<<6|f[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=f[e.charCodeAt(r)]<<2|f[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=f[e.charCodeAt(r)]<<10|f[e.charCodeAt(r+1)]<<4|f[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function s(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(n));return i.join("")}function c(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(u(e,o,o+16383>a?a:o+16383));return 1===n?(t=e[r-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}t.byteLength=i,t.toByteArray=a,t.fromByteArray=c;for(var l=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=d.length;p<v;++p)l[p]=d[p],f[d.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},963:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?h/u:h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*v}},964:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}}})});