(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71de64a2"],{"0131":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAANCAYAAAB2HjRBAAAACXBIWXMAAAsSAAALEgHS3X78AAABCUlEQVQokY3Sz1GDUBzE8Q808NKBpAItwXQQO4jnd6EE7SDOhHusQK1A7CAdBDsIFeCBXxzEP+POMFzY3S/vbTEMg7ma3gYbXGGPbU66+XfF1BymO1x8S+QRd9OQYncaFqjjST+Y5nqLkLbYnYYDLv9hmmtVYh1I/9U7bnPSljgZkZd4QP8H7k1OKrRQGk+0M57uFhXuJyEvWOXkGppea7wBZU7aaN7gGAH7nCywzMkaVdPr8DQpUja9Cl3g3ETzsek9ow7TNtqWUXR1xl7gNXAE3iqQ12Gq4l1/ac7JIRI7PEVTlZN10Oyj+RhhdfzKt4VVkVobb+Fk3MDnMExU/LLthcm256azPgDVNGMm+w8W/gAAAABJRU5ErkJggg=="},"0281":function(e,t){e.exports="data:image/png;base64,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"},"05b1":function(e,t){e.exports="data:image/png;base64,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"},"06bd":function(e,t,n){},"096d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAA+klEQVQokZ3SPy9EQRQF8N/KRvNEJBoxsR0rWq2KitD4FBotnUZHKHwOGp9CI5EokKjIazTiz4hiI/KSWdls3qzldHPnnDvnnjtyiEIrCrdR+IjCeo7XGNDgHBvp+IB2ofzs541kxKtJ/IYOWtgeykEUmrjGfBJO4wKvmC2UT7852EpihfIRd6k+jv2BDqIwgXtMpgaNVHtOlC8sFsqrnIO9rjiDin9UO0IUFnJB9WG5d629Dk7Q7BtpBWs1TY6jMPqTQRQ2cTbE673YLZQHVUgFbjBTQ1rCFE5r7t4xV1neyYgrtFODOozhsHLwknb8H3SqELsf5e/g8hvblTf74iHiZAAAAABJRU5ErkJggg=="},10:function(e,t){},1080:function(e,t){e.exports="data:image/png;base64,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"},11:function(e,t){},"11bc":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3tpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyMURBRjNGMTc3QTMxMUVEQkJENkJBQjM2QUVDM0FGNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFMzk5NTVBNDc5RDExMUVEQjk4MUEyRUU2NUZGMzY0QiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFMzk5NTVBMzc5RDExMUVEQjk4MUEyRUU2NUZGMzY0QiIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M2Q4ZjVlNjEtYzk0MS1kZTRiLTlmY2EtOGM3NDUxZDBhNjVlIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6N2QwZmM4ZDEtZmQ0NC1mMzQ0LTgyOTItNmE4NzM2OThkYjM0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+AhXO9wAAAQxJREFUeNqUk7FLQlEUh4/ZUksgNEi4NLRFOQWNDdrUKM5NBaZD/0WgiBnuLTW1OERDrtLf0F7RXkEkt+/KIeRxjl1/8A3v3B8f9753Xy6EIH1ZESfrcA3H8GoVGvIlS+JnFYZwCA+w5hU9SR5uYE+ft+FO58mSNhxlZgc6T5LUoOXIW7o+V1KEgczPQHuuJG638I+kkD3WrGQX6pKW2CtbklPIJUpi78SSVGWxVC1JCT5hnCjZsCRv8AwV+EiQvFuSEezApnepMnm0JH0Ieg8uoAs/jiD2rizJE/RgH+6hozsLhqSn/WmWM4vnKj7T9zM2Pvul9twbO4Gm7ib+tVvwDS9wq/Om9v7yK8AAhV4wj0PQuXkAAAAASUVORK5CYII="},12:function(e,t){},"18b2":function(e,t,n){e.exports=n.p+"public/img/inside.fe3a177a.png"},"1a25":function(e,t,n){"use strict";var r=n("faa8"),i=n.n(r);i.a},"1b9d":function(e,t){e.exports="data:image/png;base64,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"},"1cac":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD0AAAAWCAYAAABzCZQcAAAFJ0lEQVRYhc2Ya0wUVxTHfypJKViV+ALRAkuRwKY8pJs2CiabtIVq8AslCtb4ARYr1cRHkJoQmrQkq6UNJjVUd7VNQ4IQYyNRGmwkazvUmiymAl2TrQ22aamEQpciu/DFtB/m4ezszLILNvafTGbOveeec/5zz71z7ixanFPNHHgJSAAEYHYu5aeMWKBIJd8G/tIqLTYYnAZ8DAQAN/A1MAN8Bjyj0lsB2BFfyD/SPZysbpNh1K9uU1/DwBeATfKfptKfkWKVrwngR40/FmlmOg2oAQ4ASw1eiABsBbYDnwIbDPTmwqB0z5nneIDfELPQKFatv/3ATTXpBqA+QgMngN3Mn/DTwiCQGyMJDcAHelo7izJZuWIprVduq5sL+Z8Sri0tUJ573ffwjk6pu3OALfJMjwDr1L1WczJ1tu0UWy0ALMm1GTrqaNpDeelWKg98RKfgxVFfRlVlCQcbzigv69GAE4Dz7T3UnLwUNF7WV/upLS3gk6a3Q3yNjfv45vsh3jvdpRDKTFxGy7u7lFjV0PF3PAZIVxPWko0EmenrGRv30Sl4AbDkbQTQZscTwZpVCZSXbqUgJ4OMHY0AdLS8Q062CRBfyuiYD0Bp0yIGCOrJMiUqhP2BWeLjYucMJCfbxDWXW5HTU9cxNu6LnpEB5IyxmpNx2PdhSknClJJEc20J/UP3FXI33R6Kqk8p4zITl5GXkaQ1JywGgqKbmJzmmsvNwYYzdFy+YRiI1ZzMowGnkrbFVosix8fFsmZVAo8GnOwsynwSvAFweUZocXYp8vLn4lm54vG++3A6EKTvHZ1Ssk/CDPBdDNAvCc8CdApeRdGRnRo2iPPtPVjyNioz/fuDCdYnraTYalFkjdMFI2F5fJDc676nZGSx1YJwLo7Glou4PCN6w8+CmN4gfm+PROPc5RnB5bmEcO4QAIdPdOAdncJRXwbAtkOOqMiEQ152KrVA2obV7NuzXWm/cPUW3tEpzrZ1c2Sf6Hezxcz1djM33R498oeQZhrgqHTfjzTjc6G2tIC87FReSFuHPzDL0b2vAWDdksvYuA9HfRl/P/RT19qzEL4Ays4uwx+Y5Wxbt0KorrWH/qH7HNj7BpstZkAk33UuHdux09psK4xRCUeBP9GUbEawVb4etDtqA6uqLOHilW8j5RUWw78+YNo/A4D7zk9cuHorJH3lZWk1J/P+4XI2W8zEx8XSVLebTqFRrVpkVHvPifwKOwcbzgDi2l6Sa6OxuS1I3tXQpujLu7n8OVMjK2NDkI4WLc4u8ivs5FfYqTl5yWi9AuKyK6o+pdgypYTs3pvmTRrEtQZw5+4vAKQkrw6S1fhh6GdA/LzJ6x7EwkROSVknGtSWFuCoLyMzcZnSpn72B0IOhpMx2pZooC1CZLnXfS9Et9nZTeHLLxIfF0tVZYnuOm12ds8rDtne4N1hQKwT5PpC57MrLIh0foU9rKyGyzOC7dhpmup2h6Tc4N1hTrR+GTZtjTAxOc3YuI81qxKC9hh/YJaOyzdCSl6gT3u03AL0Re05SljNyWSZEgHdQ0EkUOoKPZsTk9NG9cEgkKslDTDAws64agiIFd+OJ2QP4HPJZlR1Barz9JJFazfpdVqAtQaDBaAK+EOSn0fMjnYd+S2gA/EPxysRBicAKWH6dgJfIf7wyIvQpkIYQv+cqGFHPDcXSnKfdB2P0JEWb0q2ytEcYwEPcAW4DvRG4dsm6byqY3NGstcHfKjuCEf6v0Q6j093uj/vFmjTh3im0MW/oKvofkOIIYUAAAAASUVORK5CYII="},"1fea":function(e,t,n){"use strict";var r=n("23b2"),i=n.n(r);i.a},2:function(e,t){},"208d":function(e,t){e.exports="data:image/png;base64,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"},"23b2":function(e,t,n){},2639:function(e,t,n){e.exports=function(){return new Worker(n.p+"764b761fd91f5eaefd3d.worker.js")}},"28a9":function(e,t){e.exports="data:image/png;base64,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"},"2bd9":function(e,t){e.exports="data:image/png;base64,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"},"328e":function(e,t,n){},"32c6":function(e,t,n){e.exports=n.p+"public/img/location.6f4c7adc.png"},3304:function(e,t){e.exports="data:image/png;base64,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"},"3b52":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAA4ElEQVQokZ3SsUqCURiH8Z8fEkUhQZA51BaKLV2AU01FLRFeQUPLB05OGkFjKBF1Cd2BU3QLXUBzs0O0OjR4JJFzzHyW8+ec9zy8vOcUhnlZgj28hrWJQawoS93GE6pYwzNW/yM4wTm+MQpd5IsKiuiHfIBGyB1sLyK4Ri3kT3yEXMLdX4JN3MZaDVzhcJ7gBltzBBl6KUFdYlAzHOEsJng0HuA0xziNSPpYmRZchOJZ3vAS2d9HayJYx0Oi3QYuE2ddVIpoYzdRVMVO4mwD94VhXv4yfuNlGGV+P8oyvP8ASZUcThKBjocAAAAASUVORK5CYII="},"3d6a":function(e,t,n){e.exports=n.p+"public/img/moren.1574112c.png"},4383:function(module,exports,__webpack_require__){(function(Buffer,process,global){ /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ (function(e,t){module.exports=t()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return r.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 a.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return a.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return a.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return a.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return a.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return a.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return a.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return a.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return a.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return a.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return a.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return a.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return a.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return a.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return a.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.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 l.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});var r=n(1),i=n(202),a=n(5),o=n(216),s=n(206),u=n(209),l=n(217),c=n(218),h=n(7),f=h.isNodeJS;if(f){var d=n(219).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)((function(e){return new d(e)}))}else{var p,v=n(222).PDFNetworkStream;(0,r.isFetchSupported)()&&(p=n(223).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)((function(e){return p&&(0,r.isValidFetchUrl)(e.url)?new p(e):new v(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=O,t.getFilenameFromUrl=L,t.isFetchSupported=N,t.isValidFetchUrl=F,t.loadScript=j,t.deprecated=B,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.BaseCMapReaderFactory=t.DOMCanvasFactory=t.BaseCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r=a(n(2)),i=n(5);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},i=r.ownerDocument,a=void 0===i?globalThis.document:i;return y(this,n),e=t.call(this),e._document=a,e}return w(n,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var n=this._document.createElement("canvas"),r=n.getContext("2d");return n.width=e,n.height=t,{canvas:n,context:r}}}]),n}(x);t.DOMCanvasFactory=k;var C=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,a=t.isCompressed,o=void 0!==a&&a;y(this,e),this.constructor===e&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=r,this.isCompressed=o}return w(e,[{key:"fetch",value:function(){var e=c(r["default"].mark((function e(t){var n,a,o,s=this;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=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(n){e.next=5;break}throw new Error("CMap name must be specified.");case 5:return a=this.baseUrl+n+(this.isCompressed?".bcmap":""),o=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE,e.abrupt("return",this._fetchData(a,o)["catch"]((function(e){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"","CMap at: ").concat(a))})));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_fetchData",value:function(e,t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}]),e}();t.BaseCMapReaderFactory=C;var P=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return w(n,[{key:"_fetchData",value:function(e,t){var n=this;return N()&&F(e,document.baseURI)?fetch(e).then(function(){var e=c(r["default"].mark((function e(a){var o;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a.ok){e.next=2;break}throw new Error(a.statusText);case 2:if(!n.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,a.arrayBuffer();case 6:e.t1=e.sent,o=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=i.stringToBytes,e.next=13,a.text();case 13:e.t3=e.sent,o=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:o,compressionType:t});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()):new Promise((function(r,a){var o=new XMLHttpRequest;o.open("GET",e,!0),n.isCompressed&&(o.responseType="arraybuffer"),o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){var e;if(200===o.status||0===o.status)if(n.isCompressed&&o.response?e=new Uint8Array(o.response):!n.isCompressed&&o.responseText&&(e=(0,i.stringToBytes)(o.responseText)),e)return void r({cMapData:e,compressionType:t});a(new Error(o.statusText))}},o.send(null)}))}}]),n}(C);t.DOMCMapReaderFactory=P;var E=function(){function e(){y(this,e)}return w(e,[{key:"create",value:function(e,t){(0,i.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(_,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,i.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(_,e)}}]),e}();t.DOMSVGFactory=E;var R=function(){function e(t){var n=t.viewBox,r=t.scale,i=t.rotation,a=t.offsetX,o=void 0===a?0:a,s=t.offsetY,u=void 0===s?0:s,l=t.dontFlip,c=void 0!==l&&l;y(this,e),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=o,this.offsetY=u;var h,f,d,p,v,g,A,m,b=(n[2]+n[0])/2,w=(n[3]+n[1])/2;switch(i%=360,i=i<0?i+360:i,i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(d=-d,p=-p),0===h?(v=Math.abs(w-n[1])*r+o,g=Math.abs(b-n[0])*r+u,A=Math.abs(n[3]-n[1])*r,m=Math.abs(n[2]-n[0])*r):(v=Math.abs(b-n[0])*r+o,g=Math.abs(w-n[1])*r+u,A=Math.abs(n[2]-n[0])*r,m=Math.abs(n[3]-n[1])*r),this.transform=[h*r,f*r,d*r,p*r,v-h*r*b-d*r*w,g-f*r*b-p*r*w],this.width=A,this.height=m}return w(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,i=t.rotation,a=void 0===i?this.rotation:i,o=t.offsetX,s=void 0===o?this.offsetX:o,u=t.offsetY,l=void 0===u?this.offsetY:u,c=t.dontFlip,h=void 0!==c&&c;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:a,offsetX:s,offsetY:l,dontFlip:h})}},{key:"convertToViewportPoint",value:function(e,t){return i.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),n=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=R;var T=function(e){f(n,e);var t=p(n);function n(e,r){var i;return y(this,n),i=t.call(this,e),i.type=r,i}return n}(i.BaseException);t.RenderingCancelledException=T;var I={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.target,a=t.rel,o=t.enabled,s=void 0===o||o;(0,i.assert)(n&&"string"===typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var u=(0,i.removeNullCharacters)(n);s?e.href=e.title=u:(e.href="",e.title="Disabled: ".concat(u),e.onclick=function(){return!1});var l="";switch(r){case I.NONE:break;case I.SELF:l="_self";break;case I.BLANK:l="_blank";break;case I.PARENT:l="_parent";break;case I.TOP:l="_top";break}e.target=l,e.rel="string"===typeof a?a:S}function L(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)}t.LinkTarget=I;var M,D=function(){function e(){y(this,e),this.started=Object.create(null),this.times=[]}return w(e,[{key:"time",value:function(e){e in this.started&&(0,i.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,i.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=[],n=0,r=o(this.times);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i.name;a.length>n&&(n=a.length)}}catch(h){r.e(h)}finally{r.f()}var s,u=o(this.times);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l.end-l.start;t.push("".concat(l.name.padEnd(n)," ").concat(c,"ms\n"))}}catch(h){u.e(h)}finally{u.f()}return t.join("")}}]),e}();function N(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function F(e,t){try{var n=t?new URL(e,t):new URL(e),r=n.protocol;return"http:"===r||"https:"===r}catch(i){return!1}}function j(e){return new Promise((function(t,n){var r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)}))}function B(e){console.log("Deprecated API usage: "+e)}t.StatTimer=D;var U=function(){function e(){y(this,e)}return w(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,i.isString)(e))return null;M||(M=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=M.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;var a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var u=parseInt(t[6],10);u=u>=0&&u<=59?u:0;var l=t[7]||"Z",c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;var h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===l?(o+=c,s+=h):"+"===l&&(o-=c,s-=h),new Date(Date.UTC(n,r,a,o,s,u))}}]),e}();t.PDFDateString=U},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";(function(e){function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof A?t:A,a=Object.create(i.prototype),o=new T(r||[]);return a._invoke=C(e,n,o),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function A(){}function m(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,S=w&&w(w(I([])));S&&S!==r&&i.call(S,o)&&(b=S);var _=y.prototype=A.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,n){function r(a,o,s,u){var l=h(e[a],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===t(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,u)}))}u(l.arg)}var a;function o(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}this._invoke=o}function C(e,t,n){var r=f;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw a;return O()}n.method=i,n.arg=a;while(1){var o=n.delegate;if(o){var s=P(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=h(e,t,n);if("normal"===u.type){if(r=n.done?v:d,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}function P(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=n,P(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=h(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function E(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){while(++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(e))},function(e,t,n){"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,n){"use strict";function r(e,t){for(var n=0;n=R.INFOS&&console.log("Info: ".concat(e))}function j(e){M>=R.WARNINGS&&console.log("Warning: ".concat(e))}function B(e){throw new Error(e)}function U(e,t){e||B(t)}function W(e,t){var n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(i){return!1}var r=new URL(t,n);return n.origin===r.origin}function V(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function z(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(V(n))return n}catch(r){}return null}function G(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var H=function(){function e(t){this.constructor===e&&B("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=H;var q=function(e){s(n,e);var t=l(n);function n(e,r){var i;return o(this,n),i=t.call(this,e),i.code=r,i}return n}(H);t.PasswordException=q;var Q=function(e){s(n,e);var t=l(n);function n(e,r){var i;return o(this,n),i=t.call(this,e),i.details=r,i}return n}(H);t.UnknownErrorException=Q;var Y=function(e){s(n,e);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(H);t.InvalidPDFException=Y;var J=function(e){s(n,e);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(H);t.MissingPDFException=J;var X=function(e){s(n,e);var t=l(n);function n(e,r){var i;return o(this,n),i=t.call(this,e),i.status=r,i}return n}(H);t.UnexpectedResponseException=X;var Z=function(e){s(n,e);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(H);t.FormatError=Z;var K=function(e){s(n,e);var t=l(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(H);t.AbortException=K;var $=/\x00/g;function ee(e){return"string"!==typeof e?(j("The argument for removeNullCharacters must be a string."),e):e.replace($,"")}function te(e){U(null!==e&&"object"===a(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,n=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function oe(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var se={get value(){return G(this,"value",oe())}};function ue(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=se;var le={get value(){return G(this,"value",ue())}};t.IsEvalSupportedCached=le;var ce=["rgb(",0,",",0,",",0,")"],he=function(){function e(){o(this,e)}return i(e,null,[{key:"makeCssRgb",value:function(e,t,n){return ce[1]=e,ce[3]=t,ce[5]=n,ce.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){var n=e[0]*t[0]+e[1]*t[2]+t[4],r=e[0]*t[1]+e[1]*t[3]+t[5];return[n,r]}},{key:"applyInverseTransform",value:function(e,t){var n=t[0]*t[3]-t[1]*t[2],r=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n;return[r,i]}},{key:"getAxialAlignedBoundingBox",value:function(t,n){var r=e.applyTransform(t,n),i=e.applyTransform(t.slice(2,4),n),a=e.applyTransform([t[0],t[3]],n),o=e.applyTransform([t[2],t[1]],n);return[Math.min(r[0],i[0],a[0],o[0]),Math.min(r[1],i[1],a[1],o[1]),Math.max(r[0],i[0],a[0],o[0]),Math.max(r[1],i[1],a[1],o[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]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(n+a)/2,s=Math.sqrt((n+a)*(n+a)-4*(n*a-i*r))/2,u=o+s||1,l=o-s||1;return[Math.sqrt(u),Math.sqrt(l)]}},{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,n){function r(e,t){return e-t}var i=[t[0],t[2],n[0],n[2]].sort(r),a=[t[1],t[3],n[1],n[3]].sort(r),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),i[0]===t[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===t[0]?(o[0]=i[1],o[2]=i[2],a[0]===t[1]&&a[1]===n[1]||a[0]===n[1]&&a[1]===t[1]?(o[1]=a[1],o[3]=a[2],o):null):null}}]),e}();t.Util=he;var fe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function de(e){var t=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(var r=2;r0&&void 0!==arguments[0]?arguments[0]:new Date(Date.now()),t=[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),(e.getUTCDate()+1).toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")];return t.join("")}function _e(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e}var xe=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r&&URL.createObjectURL){var i=new Blob([t],{type:n});return URL.createObjectURL(i)}for(var a="data:".concat(n,";base64,"),o=0,s=t.length;o>2,f=(3&u)<<4|l>>4,d=o+1>6:64,p=o+21?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(a&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)},window.history.replaceState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)}}}(),function(){String.prototype.startsWith||n(53)}(),function(){String.prototype.endsWith||n(64)}(),function(){String.prototype.includes||n(66)}(),function(){Array.prototype.includes||n(68)}(),function(){Array.from||n(76)}(),function(){Object.assign||n(98)}(),function(){Object.fromEntries||n(101)}(),function(){Math.log2||(Math.log2=n(105))}(),function(){Number.isNaN||(Number.isNaN=n(107))}(),function(){Number.isInteger||(Number.isInteger=n(109))}(),function(){Uint8Array.prototype.slice||n(112)}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(117))}(),function(){globalThis.URL=n(138)}(),function(){var e=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=n(145).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(146))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(153))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=n(155))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=n(161))}(),function(){String.prototype.codePointAt||n(163)}(),function(){String.fromCodePoint||(String.fromCodePoint=n(165))}(),function(){globalThis.Symbol||n(167)}(),function(){String.prototype.padStart||n(190)}(),function(){String.prototype.padEnd||n(195)}(),function(){Object.values||(Object.values=n(197))}(),function(){Object.entries||(Object.entries=n(200))}()}},function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===("undefined"===typeof process?"undefined":r(process))&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=i},function(e,t,n){n(9),e.exports=n(11)},function(e,t,n){var r=n(10),i=n(11);r({global:!0},{globalThis:i})},function(e,t,n){var r=n(11),i=n(12).f,a=n(26),o=n(29),s=n(30),u=n(40),l=n(52);e.exports=function(e,t){var n,c,h,f,d,p,v=e.target,g=e.global,A=e.stat;if(c=g?r:A?r[v]||s(v,{}):(r[v]||{}).prototype,c)for(h in t){if(d=t[h],e.noTargetGet?(p=i(c,h),f=p&&p.value):f=c[h],n=l(g?h:v+(A?".":"#")+h,e.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&a(d,"sham",!0),o(c,h,d,e)}}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(e,t,n){var r=n(13),i=n(15),a=n(16),o=n(17),s=n(21),u=n(23),l=n(24),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(n){}if(u(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(14);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(18),i=n(20);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(14),i=n(19),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.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,n){var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.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 n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(13),i=n(14),a=n(25);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(11),i=n(22),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(13),i=n(27),a=n(16);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(13),i=n(24),a=n(28),o=n(21),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(11),i=n(26),a=n(23),o=n(30),s=n(31),u=n(33),l=u.get,c=u.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),c(n).source=h.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(e,t,n){var r=n(11),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(11),i=n(30),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},function(e,t,n){var r,i,a,o=n(34),s=n(11),u=n(22),l=n(26),c=n(23),h=n(35),f=n(39),d=s.WeakMap,p=function(e){return a(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(o){var g=new d,A=g.get,m=g.has,y=g.set;r=function(e,t){return y.call(g,e,t),t},i=function(e){return A.call(g,e)||{}},a=function(e){return m.call(g,e)}}else{var b=h("state");f[b]=!0,r=function(e,t){return l(e,b,t),t},i=function(e){return c(e,b)?e[b]:{}},a=function(e){return c(e,b)}}e.exports={set:r,get:i,has:a,enforce:p,getterFor:v}},function(e,t,n){var r=n(11),i=n(31),a=r.WeakMap;e.exports="function"===typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(36),i=n(38),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(37),i=n(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(23),i=n(41),a=n(12),o=n(27);e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,l=0;lu)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(17),i=n(47),a=n(49),o=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(48),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,n){n(54);var r=n(61);e.exports=r("String","startsWith")},function(e,t,n){"use strict";var r=n(10),i=n(12).f,a=n(47),o=n(55),s=n(20),u=n(60),l=n(37),c="".startsWith,h=Math.min,f=u("startsWith"),d=!l&&!f&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!d&&!f},{startsWith:function(e){var t=String(s(this));o(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(56);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(22),i=n(19),a=n(57),o=a("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(11),i=n(36),a=n(23),o=n(38),s=n(58),u=n(59),l=i("wks"),c=r.Symbol,h=u?c:c&&c.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(c,e)?l[e]=c[e]:l[e]=h("Symbol."+e)),l[e]}},function(e,t,n){var r=n(14);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(58);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},function(e,t,n){var r=n(11),i=n(62),a=Function.call;e.exports=function(e,t,n){return i(a,r[e].prototype[t],n)}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,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,n){n(65);var r=n(61);e.exports=r("String","endsWith")},function(e,t,n){"use strict";var r=n(10),i=n(12).f,a=n(47),o=n(55),s=n(20),u=n(60),l=n(37),c="".endsWith,h=Math.min,f=u("endsWith"),d=!l&&!f&&!!function(){var e=i(String.prototype,"endsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!d&&!f},{endsWith:function(e){var t=String(s(this));o(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:h(a(n),r),u=String(e);return c?c.call(t,u,i):t.slice(i-u.length,i)===u}})},function(e,t,n){n(67);var r=n(61);e.exports=r("String","includes")},function(e,t,n){"use strict";var r=n(10),i=n(55),a=n(20),o=n(60);r({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(69);var r=n(61);e.exports=r("Array","includes")},function(e,t,n){"use strict";var r=n(10),i=n(46).includes,a=n(70),o=n(75),s=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(57),i=n(71),a=n(27),o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r,i=n(28),a=n(72),o=n(50),s=n(39),u=n(74),l=n(25),c=n(35),h=">",f="<",d="prototype",p="script",v=c("IE_PROTO"),g=function(){},A=function(e){return f+p+h+e+f+"/"+p+h},m=function(e){e.write(A("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",u.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(A("document.F=Object")),e.close(),e.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=r?m(r):y();var e=o.length;while(e--)delete b[d][o[e]];return b()};s[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=i(e),n=new g,g[d]=null,n[v]=e):n=b(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(13),i=n(27),a=n(28),o=n(73);e.exports=r?Object.defineProperties:function(e,t){a(e);var n,r=o(t),s=r.length,u=0;while(s>u)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(45),i=n(50);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(42);e.exports=r("document","documentElement")},function(e,t,n){var r=n(13),i=n(14),a=n(23),o=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],l=!!a(t,"ACCESSORS")&&t.ACCESSORS,c=a(t,0)?t[0]:u,h=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,c,h)}))}},function(e,t,n){n(77),n(89);var r=n(43);e.exports=r.Array.from},function(e,t,n){"use strict";var r=n(78).charAt,i=n(33),a=n(79),o="String Iterator",s=i.set,u=i.getterFor(o);a(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(48),i=n(20),a=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,n){"use strict";var r=n(10),i=n(80),a=n(82),o=n(87),s=n(85),u=n(26),l=n(29),c=n(57),h=n(37),f=n(86),d=n(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=c("iterator"),A="keys",m="values",y="entries",b=function(){return this};e.exports=function(e,t,n,c,d,w,S){i(n,t,c);var _,x,k,C=function(e){if(e===d&&I)return I;if(!v&&e in R)return R[e];switch(e){case A:return function(){return new n(this,e)};case m:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",E=!1,R=e.prototype,T=R[g]||R["@@iterator"]||d&&R[d],I=!v&&T||C(d),O="Array"==t&&R.entries||T;if(O&&(_=a(O.call(new e)),p!==Object.prototype&&_.next&&(h||a(_)===p||(o?o(_,p):"function"!=typeof _[g]&&u(_,g,b)),s(_,P,!0,!0),h&&(f[P]=b))),d==m&&T&&T.name!==m&&(E=!0,I=function(){return T.call(this)}),h&&!S||R[g]===I||u(R,g,I),f[t]=I,d)if(x={values:C(m),keys:w?I:C(A),entries:C(y)},S)for(k in x)!v&&!E&&k in R||l(R,k,x[k]);else r({target:t,proto:!0,forced:v||E},x);return x}},function(e,t,n){"use strict";var r=n(81).IteratorPrototype,i=n(71),a=n(16),o=n(85),s=n(86),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=u,e}},function(e,t,n){"use strict";var r,i,a,o=n(82),s=n(26),u=n(23),l=n(57),c=n(37),h=l("iterator"),f=!1,d=function(){return this};[].keys&&(a=[].keys(),"next"in a?(i=o(o(a)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),c||u(r,h)||s(r,h,d),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(23),i=n(83),a=n(35),o=n(84),s=a("IE_PROTO"),u=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var r=n(20);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(14);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(27).f,i=n(23),a=n(57),o=a("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(28),i=n(88);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(a){}return function(n,a){return r(n),i(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(10),i=n(90),a=n(97),o=!a((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:o},{from:i})},function(e,t,n){"use strict";var r=n(62),i=n(83),a=n(91),o=n(92),s=n(47),u=n(93),l=n(94);e.exports=function(e){var t,n,c,h,f,d,p=i(e),v="function"==typeof this?this:Array,g=arguments.length,A=g>1?arguments[1]:void 0,m=void 0!==A,y=l(p),b=0;if(m&&(A=r(A,g>2?arguments[2]:void 0,2)),void 0==y||v==Array&&o(y))for(t=s(p.length),n=new v(t);t>b;b++)d=m?A(p[b],b):p[b],u(n,b,d);else for(h=y.call(p),f=h.next,n=new v;!(c=f.call(h)).done;b++)d=m?a(h,A,[c.value,b],!0):c.value,u(n,b,d);return n.length=b,n}},function(e,t,n){var r=n(28);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var a=e["return"];throw void 0!==a&&r(a.call(e)),o}}},function(e,t,n){var r=n(57),i=n(86),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){"use strict";var r=n(21),i=n(27),a=n(16);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},function(e,t,n){var r=n(95),i=n(86),a=n(57),o=a("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(96),i=n(19),a=n(57),o=a("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=Object(e),o))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(57),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},function(e,t,n){var r=n(57),i=r("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},function(e,t,n){n(99);var r=n(43);e.exports=r.Object.assign},function(e,t,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(13),i=n(14),a=n(73),o=n(51),s=n(15),u=n(83),l=n(18),c=Object.assign,h=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||a(c({},t)).join("")!=i}))?function(e,t){var n=u(e),i=arguments.length,c=1,h=o.f,f=s.f;while(i>c){var d,p=l(arguments[c++]),v=h?a(p).concat(h(p)):a(p),g=v.length,A=0;while(g>A)d=v[A++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:c},function(e,t,n){n(102),n(103);var r=n(43);e.exports=r.Object.fromEntries},function(e,t,n){"use strict";var r=n(17),i=n(70),a=n(86),o=n(33),s=n(79),u="Array Iterator",l=o.set,c=o.getterFor(u);e.exports=s(Array,"Array",(function(e,t){l(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(10),i=n(104),a=n(93);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){a(t,e,n)}),void 0,!0),t}})},function(e,t,n){var r=n(28),i=n(92),a=n(47),o=n(62),s=n(94),u=n(91),l=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,h){var f,d,p,v,g,A,m,y=o(t,n,c?2:1);if(h)f=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=a(e.length);v>p;p++)if(g=c?y(r(m=e[p])[0],m[1]):y(e[p]),g&&g instanceof l)return g;return new l(!1)}f=d.call(e)}A=f.next;while(!(m=A.call(f)).done)if(g=u(f,y,m.value,c),"object"==typeof g&&g&&g instanceof l)return g;return new l(!1)};c.stop=function(e){return new l(!0,e)}},function(e,t,n){n(106);var r=n(43);e.exports=r.Math.log2},function(e,t,n){var r=n(10),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/a}})},function(e,t,n){n(108);var r=n(43);e.exports=r.Number.isNaN},function(e,t,n){var r=n(10);r({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){n(110);var r=n(43);e.exports=r.Number.isInteger},function(e,t,n){var r=n(10),i=n(111);r({target:"Number",stat:!0},{isInteger:i})},function(e,t,n){var r=n(22),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){n(113)},function(e,t,n){"use strict";var r=n(114),i=n(116),a=n(14),o=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,l=[].slice,c=a((function(){new Int8Array(1).slice()}));u("slice",(function(e,t){var n=l.call(o(this),e,t),r=i(this,this.constructor),a=0,u=n.length,c=new(s(r))(u);while(u>a)c[a]=n[a++];return c}),c)},function(e,t,n){"use strict";var r,i=n(115),a=n(13),o=n(11),s=n(22),u=n(23),l=n(95),c=n(26),h=n(29),f=n(27).f,d=n(82),p=n(87),v=n(57),g=n(38),A=o.Int8Array,m=A&&A.prototype,y=o.Uint8ClampedArray,b=y&&y.prototype,w=A&&d(A),S=m&&d(m),_=Object.prototype,x=_.isPrototypeOf,k=v("toStringTag"),C=g("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==l(o.opera),E=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){var t=l(e);return"DataView"===t||u(R,t)},I=function(e){return s(e)&&u(R,l(e))},O=function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},L=function(e){if(p){if(x.call(w,e))return e}else for(var t in R)if(u(R,r)){var n=o[t];if(n&&(e===n||x.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},M=function(e,t,n){if(a){if(n)for(var r in R){var i=o[r];i&&u(i.prototype,e)&&delete i.prototype[e]}S[e]&&!n||h(S,e,n?t:P&&m[e]||t)}},D=function(e,t,n){var r,i;if(a){if(p){if(n)for(r in R)i=o[r],i&&u(i,e)&&delete i[e];if(w[e]&&!n)return;try{return h(w,e,n?t:P&&A[e]||t)}catch(s){}}for(r in R)i=o[r],!i||i[e]&&!n||h(i,e,t)}};for(r in R)o[r]||(P=!1);if((!P||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},P))for(r in R)o[r]&&p(o[r],w);if((!P||!S||S===_)&&(S=w.prototype,P))for(r in R)o[r]&&p(o[r].prototype,S);if(P&&d(b)!==S&&p(b,S),a&&!u(S,k))for(r in E=!0,f(S,k,{get:function(){return s(this)?this[C]:void 0}}),R)o[r]&&c(o[r],C,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:E&&C,aTypedArray:O,aTypedArrayConstructor:L,exportTypedArrayMethod:M,exportTypedArrayStaticMethod:D,isView:T,isTypedArray:I,TypedArray:w,TypedArrayPrototype:S}},function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},function(e,t,n){var r=n(28),i=n(63),a=n(57),o=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},function(e,t,n){n(118),n(77),n(120),n(122),n(136),n(137);var r=n(43);e.exports=r.Promise},function(e,t,n){var r=n(96),i=n(29),a=n(119);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var r=n(96),i=n(95);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(11),i=n(121),a=n(102),o=n(26),s=n(57),u=s("iterator"),l=s("toStringTag"),c=a.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[u]!==c)try{o(d,u,c)}catch(v){d[u]=c}if(d[l]||o(d,l,h),i[h])for(var p in a)if(d[p]!==a[p])try{o(d,p,a[p])}catch(v){d[p]=a[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,n){"use strict";var r,i,a,o,s=n(10),u=n(37),l=n(11),c=n(42),h=n(123),f=n(29),d=n(124),p=n(85),v=n(125),g=n(22),A=n(63),m=n(126),y=n(19),b=n(31),w=n(104),S=n(97),_=n(116),x=n(127).set,k=n(130),C=n(131),P=n(133),E=n(132),R=n(134),T=n(33),I=n(52),O=n(57),L=n(135),M=O("species"),D="Promise",N=T.get,F=T.set,j=T.getterFor(D),B=h,U=l.TypeError,W=l.document,V=l.process,z=c("fetch"),G=E.f,H=G,q="process"==y(V),Q=!!(W&&W.createEvent&&l.dispatchEvent),Y="unhandledrejection",J="rejectionhandled",X=0,Z=1,K=2,$=1,ee=2,te=I(D,(function(){var e=b(B)!==String(B);if(!e){if(66===L)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype["finally"])return!0;if(L>=51&&/native code/.test(B))return!1;var t=B.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[M]=n,!(t.then((function(){}))instanceof n)})),ne=te||!S((function(e){B.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;k((function(){var i=t.value,a=t.state==Z,o=0;while(r.length>o){var s,u,l,c=r[o++],h=a?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{h?(a||(t.rejection===ee&&ue(e,t),t.rejection=$),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),l=!0)),s===c.promise?d(U("Promise-chain cycle")):(u=re(s))?u.call(s,f,d):f(s)):d(i)}catch(v){p&&!l&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&oe(e,t)}))}},ae=function(e,t,n){var r,i;Q?(r=W.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(i=l["on"+e])?i(r):e===Y&&P("Unhandled promise rejection",n)},oe=function(e,t){x.call(l,(function(){var n,r=t.value,i=se(t);if(i&&(n=R((function(){q?V.emit("unhandledRejection",r,e):ae(Y,e,r)})),t.rejection=q||se(t)?ee:$,n.error))throw n.value}))},se=function(e){return e.rejection!==$&&!e.parent},ue=function(e,t){x.call(l,(function(){q?V.emit("rejectionHandled",e):ae(J,e,t.value)}))},le=function(e,t,n,r){return function(i){e(t,n,i,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=K,ie(e,t,!0))},he=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw U("Promise can't be resolved itself");var i=re(n);i?k((function(){var r={done:!1};try{i.call(n,le(he,e,r,t),le(ce,e,r,t))}catch(a){ce(e,r,a,t)}})):(t.value=n,t.state=Z,ie(e,t,!1))}catch(a){ce(e,{done:!1},a,t)}}};te&&(B=function(e){m(this,B,D),A(e),r.call(this);var t=N(this);try{e(le(he,this,t),le(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){F(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=d(B.prototype,{then:function(e,t){var n=j(this),r=G(_(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?V.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=le(he,e,t),this.reject=le(ce,e,t)},E.f=G=function(e){return e===B||e===a?new i(e):H(e)},u||"function"!=typeof h||(o=h.prototype.then,f(h.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(B,z.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:B}),p(B,D,!1,!0),v(D),a=c(D),s({target:D,stat:!0,forced:te},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:u||te},{resolve:function(e){return C(u&&this===a?B:this,e)}}),s({target:D,stat:!0,forced:ne},{all:function(e){var t=this,n=G(t),r=n.resolve,i=n.reject,a=R((function(){var n=A(t.resolve),a=[],o=0,s=1;w(e,(function(e){var u=o++,l=!1;a.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,a[u]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,i=R((function(){var i=A(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(11);e.exports=r.Promise},function(e,t,n){var r=n(29);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(42),i=n(27),a=n(57),o=n(13),s=a("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r,i,a,o=n(11),s=n(14),u=n(19),l=n(62),c=n(74),h=n(25),f=n(128),d=o.location,p=o.setImmediate,v=o.clearImmediate,g=o.process,A=o.MessageChannel,m=o.Dispatch,y=0,b={},w="onreadystatechange",S=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},_=function(e){return function(){S(e)}},x=function(e){S(e.data)},k=function(e){o.postMessage(e+"",d.protocol+"//"+d.host)};p&&v||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},v=function(e){delete b[e]},"process"==u(g)?r=function(e){g.nextTick(_(e))}:m&&m.now?r=function(e){m.now(_(e))}:A&&!f?(i=new A,a=i.port2,i.port1.onmessage=x,r=l(a.postMessage,a,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(k)||"file:"===d.protocol?r=w in h("script")?function(e){c.appendChild(h("script"))[w]=function(){c.removeChild(this),S(e)}}:function(e){setTimeout(_(e),0)}:(r=k,o.addEventListener("message",x,!1))),e.exports={set:p,clear:v}},function(e,t,n){var r=n(129);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(42);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r,i,a,o,s,u,l,c,h=n(11),f=n(12).f,d=n(19),p=n(127).set,v=n(128),g=h.MutationObserver||h.WebKitMutationObserver,A=h.process,m=h.Promise,y="process"==d(A),b=f(h,"queueMicrotask"),w=b&&b.value;w||(r=function(){var e,t;y&&(e=A.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?o():a=void 0,n}}a=void 0,e&&e.enter()},y?o=function(){A.nextTick(r)}:g&&!v?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),o=function(){u.data=s=!s}):m&&m.resolve?(l=m.resolve(void 0),c=l.then,o=function(){c.call(l,r)}):o=function(){p.call(h,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};a&&(a.next=t),i||(i=t,o()),a=t}},function(e,t,n){var r=n(28),i=n(22),a=n(132);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e),o=n.resolve;return o(t),n.promise}},function(e,t,n){"use strict";var r=n(63),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(11);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,n){var r,i,a=n(11),o=n(129),s=a.process,u=s&&s.versions,l=u&&u.v8;l?(r=l.split("."),i=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},function(e,t,n){"use strict";var r=n(10),i=n(63),a=n(132),o=n(134),s=n(104);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=o((function(){var n=i(t.resolve),a=[],o=0,u=1;s(e,(function(e){var i=o++,s=!1;a.push(void 0),u++,n.call(t,e).then((function(e){s||(s=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){s||(s=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(10),i=n(37),a=n(123),o=n(14),s=n(42),u=n(116),l=n(131),c=n(29),h=!!a&&o((function(){a.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof a||a.prototype["finally"]||c(a.prototype,"finally",s("Promise").prototype["finally"])},function(e,t,n){n(139),n(144),n(142);var r=n(43);e.exports=r.URL},function(e,t,n){"use strict";n(77);var r,i=n(10),a=n(13),o=n(140),s=n(11),u=n(72),l=n(29),c=n(126),h=n(23),f=n(100),d=n(90),p=n(78).codeAt,v=n(141),g=n(85),A=n(142),m=n(33),y=s.URL,b=A.URLSearchParams,w=A.getState,S=m.set,_=m.getterFor("URL"),x=Math.floor,k=Math.pow,C="Invalid authority",P="Invalid scheme",E="Invalid host",R="Invalid port",T=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,M=/^[0-7]+$/,D=/^\d+$/,N=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,j=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,B=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,U=/[\u0009\u000A\u000D]/g,W=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return E;if(n=z(t.slice(1,-1)),!n)return E;e.host=n}else if(K(e)){if(t=v(t),F.test(t))return E;if(n=V(t),null===n)return E;e.host=n}else{if(j.test(t))return E;for(n="",r=d(t),i=0;i4)return e;for(n=[],r=0;r1&&"0"==i.charAt(0)&&(a=L.test(i)?16:8,i=i.slice(8==a?1:2)),""===i)o=0;else{if(!(10==a?D:8==a?M:N).test(i))return e;o=parseInt(i,a)}n.push(o)}for(r=0;r=k(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),r=0;r6)return;r=0;while(f()){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!O.test(f()))return;while(O.test(f())){if(a=parseInt(f(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;h++}u[l]=256*u[l]+i,r++,2!=r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;u[l++]=t}else{if(null!==c)return;h++,l++,c=l}}if(null!==c){o=l-c,l=7;while(0!=l&&o>0)s=u[l],u[l--]=u[c+o-1],u[c+--o]=s}else if(8!=l)return;return u},G=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t},H=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=x(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=G(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},Q=f({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=f({},Q,{"#":1,"?":1,"{":1,"}":1}),J=f({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(e){return h(Z,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=function(e){return"."===e||"%2e"===e.toLowerCase()},ae=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},ue={},le={},ce={},he={},fe={},de={},pe={},ve={},ge={},Ae={},me={},ye={},be={},we={},Se={},_e={},xe={},ke={},Ce={},Pe=function(e,t,n,i){var a,o,s,u,l=n||oe,c=0,f="",p=!1,v=!1,g=!1;n||(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(B,"")),t=t.replace(U,""),a=d(t);while(c<=a.length){switch(o=a[c],l){case oe:if(!o||!T.test(o)){if(n)return P;l=ue;continue}f+=o.toLowerCase(),l=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return P;f="",l=ue,c=0;continue}if(n&&(K(e)!=h(Z,f)||"file"==f&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(K(e)&&Z[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=ye:K(e)&&i&&i.scheme==e.scheme?l=le:K(e)?l=de:"/"==a[c+1]?(l=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),l=xe)}break;case ue:if(!i||i.cannotBeABaseURL&&"#"!=o)return P;if(i.cannotBeABaseURL&&"#"==o){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=Ce;break}l="file"==i.scheme?ye:he;continue;case le:if("/"!=o||"/"!=a[c+1]){l=he;continue}l=pe,c++;break;case ce:if("/"==o){l=ve;break}l=_e;continue;case he:if(e.scheme=i.scheme,o==r)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("/"==o||"\\"==o&&K(e))l=fe;else if("?"==o)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=_e;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="",l=Ce}break;case fe:if(!K(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=_e;continue}l=ve}else l=pe;break;case de:if(l=pe,"/"!=o||"/"!=f.charAt(c+1))continue;c++;break;case pe:if("/"!=o&&"\\"!=o){l=ve;continue}break;case ve:if("@"==o){p&&(f="%40"+f),p=!0,s=d(f);for(var A=0;A65535)return R;e.port=K(e)&&b===Z[e.scheme]?null:b,f=""}if(n)return;l=Se;continue}return R}f+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)l=be;else{if(!i||"file"!=i.scheme){l=_e;continue}if(o==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==o)e.host=i.host,e.path=i.path.slice(),e.query="",l=ke;else{if("#"!=o){ne(a.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),l=_e;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=Ce}}break;case be:if("/"==o||"\\"==o){l=we;break}i&&"file"==i.scheme&&!ne(a.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=_e;continue;case we:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&te(f))l=_e;else if(""==f){if(e.host="",n)return;l=Se}else{if(u=W(e,f),u)return u;if("localhost"==e.host&&(e.host=""),n)return;f="",l=Se}continue}f+=o;break;case Se:if(K(e)){if(l=_e,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=r&&(l=_e,"/"!=o))continue}else e.fragment="",l=Ce;else e.query="",l=ke;break;case _e:if(o==r||"/"==o||"\\"==o&&K(e)||!n&&("?"==o||"#"==o)){if(ae(f)?(re(e),"/"==o||"\\"==o&&K(e)||e.path.push("")):ie(f)?"/"==o||"\\"==o&&K(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==r||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",l=ke):"#"==o&&(e.fragment="",l=Ce)}else f+=X(o,Y);break;case xe:"?"==o?(e.query="",l=ke):"#"==o?(e.fragment="",l=Ce):o!=r&&(e.path[0]+=X(o,q));break;case ke:n||"#"!=o?o!=r&&("'"==o&&K(e)?e.query+="%27":e.query+="#"==o?"%23":X(o,q)):(e.fragment="",l=Ce);break;case Ce:o!=r&&(e.fragment+=X(o,Q));break}c++}},Ee=function(e){var t,n,r=c(this,Ee,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ee)t=_(i);else if(n=Pe(t={},String(i)),n)throw TypeError(n);if(n=Pe(s,o,null,t),n)throw TypeError(n);var u=s.searchParams=new b,l=w(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},a||(r.href=Te.call(r),r.origin=Ie.call(r),r.protocol=Oe.call(r),r.username=Le.call(r),r.password=Me.call(r),r.host=De.call(r),r.hostname=Ne.call(r),r.port=Fe.call(r),r.pathname=je.call(r),r.search=Be.call(r),r.searchParams=Ue.call(r),r.hash=We.call(r))},Re=Ee.prototype,Te=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,l=t+":";return null!==i?(l+="//",$(e)&&(l+=n+(r?":"+r:"")+"@"),l+=H(i),null!==a&&(l+=":"+a)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},Ie=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&K(e)?t+"://"+H(e.host)+(null!==n?":"+n:""):"null"},Oe=function(){return _(this).scheme+":"},Le=function(){return _(this).username},Me=function(){return _(this).password},De=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?H(t):H(t)+":"+n},Ne=function(){var e=_(this).host;return null===e?"":H(e)},Fe=function(){var e=_(this).port;return null===e?"":String(e)},je=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Be=function(){var e=_(this).query;return e?"?"+e:""},Ue=function(){return _(this).searchParams},We=function(){var e=_(this).fragment;return e?"#"+e:""},Ve=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&u(Re,{href:Ve(Te,(function(e){var t=_(this),n=String(e),r=Pe(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:Ve(Ie),protocol:Ve(Oe,(function(e){var t=_(this);Pe(t,String(e)+":",oe)})),username:Ve(Le,(function(e){var t=_(this),n=d(String(e));if(!ee(t)){t.username="";for(var r=0;r=55296&&i<=56319&&n>1,e+=g(e/t);e>v*o>>1;r+=i)e=g(e/v);return g(r+(v+1)*e/(e+s))},w=function(e){var t=[];e=m(e);var n,s,u=e.length,f=c,d=0,v=l;for(n=0;n=f&&s<_&&(_=s);var x=S+1;if(_-f>g((r-d)/x))throw RangeError(p);for(d+=(_-f)*x,f=_,n=0;nr)throw RangeError(p);if(s==f){for(var k=d,C=i;;C+=i){var P=C<=v?a:C>=v+o?o:C-v;if(k0?arguments[0]:void 0,c=this,d=[];if(P(c,{type:k,entries:d,updateURL:function(){},updateSearchParams:U}),void 0!==l)if(g(l))if(e=b(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(r=n.call(t)).done){if(i=y(v(r.value)),a=i.next,(o=a.call(i)).done||(s=a.call(i)).done||!a.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:o.value+"",value:s.value+""})}}else for(u in l)f(l,u)&&d.push({key:u,value:l[u]+""});else B(d,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},G=z.prototype;s(G,{append:function(e,t){W(arguments.length,2);var n=E(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){W(arguments.length,1);var t=E(this),n=t.entries,r=e+"",i=0;while(ie.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=E(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i1&&(t=arguments[1],g(t)&&(n=t.body,p(n)===k&&(r=t.headers?new _(t.headers):new _,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=A(t,{body:m(0,String(n)),headers:m(0,r)}))),i.push(t)),S.apply(this,i)}}),e.exports={URLSearchParams:z,getState:E}},function(e,t,n){var r=n(28),i=n(94);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";var r=n(10);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){(function(e,n){n(t)})(0,(function(e){"use strict";var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol:function(e){return"Symbol("+e+")"};function n(){}var r=Number.isNaN||function(e){return e!==e},i=n;function a(e){return"object"===typeof e&&null!==e||"function"===typeof e}function o(e){return e.slice()}function s(e,t,n,r,i){new Uint8Array(e).set(new Uint8Array(n,r,i),t)}function u(e){return!1!==l(e)&&e!==1/0}function l(e){return"number"===typeof e&&(!r(e)&&!(e<0))}function c(e,t,n){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function h(e,t,n,r){var i=e[t];if(void 0!==i){if("function"!==typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return d(i,e,r)};case 1:return function(t){var n=[t].concat(r);return d(i,e,n)}}}return function(){return _(void 0)}}function f(e,t,n){var r=e[t];if(void 0!==r)return c(r,e,n)}function d(e,t,n){try{return _(c(e,t,n))}catch(r){return x(r)}}function p(e){return e}function v(e){return!1}function g(e){if(e=Number(e),r(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function A(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)}}var m=Promise,y=Promise.prototype.then,b=Promise.resolve.bind(m),w=Promise.reject.bind(m);function S(e){return new m(e)}function _(e){return b(e)}function x(e){return w(e)}function k(e,t,n){return y.call(e,t,n)}function C(e,t,n){k(k(e,t,n),void 0,i)}function P(e,t){C(e,t)}function E(e,t){C(e,void 0,t)}function R(e,t,n){return k(e,t,n)}function T(e){k(e,void 0,i)}var I=16384,O=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,n=t;t._elements.length===I-1&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size},e.prototype.shift=function(){var e=this._front,t=e,n=this._cursor,r=n+1,i=e._elements,a=i[n];return r===I&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),i[n]=void 0,a},e.prototype.forEach=function(e){var t=this._cursor,n=this._front,r=n._elements;while(t!==r.length||void 0!==n._next){if(t===r.length&&(n=n._next,r=n._elements,t=0,0===r.length))break;e(r[t]),++t}},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function L(e,t,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=e,i.done=t,i}function M(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?j(e):"closed"===t._state?U(e):B(e,t._storedError)}function D(e,t){var n=e._ownerReadableStream;return Fn(n,t)}function N(e){"readable"===e._ownerReadableStream._state?W(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):V(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 F(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function j(e){e._closedPromise=S((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n}))}function B(e,t){j(e),W(e,t)}function U(e){j(e),z(e)}function W(e,t){T(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function V(e,t){B(e,t)}function z(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var G=t("[[CancelSteps]]"),H=t("[[PullSteps]]");function q(e,t){void 0===t&&(t=!1);var n=new $(e);return n._forAuthorCode=t,n}function Q(e){var t=S((function(t,n){var r={_resolve:t,_reject:n};e._reader._readRequests.push(r)}));return t}function Y(e,t,n){var r=e._reader,i=r._readRequests.shift();i._resolve(L(t,n,r._forAuthorCode))}function J(e){return e._reader._readRequests.length}function X(e){var t=e._reader;return void 0!==t&&!!ee(t)}var Z,K,$=function(){function e(e){if(!1===Dn(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Nn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");M(this,e),this._readRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return ee(this)?this._closedPromise:x(ne("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return ee(this)?void 0===this._ownerReadableStream?x(F("cancel")):D(this,e):x(ne("cancel"))},e.prototype.read=function(){return ee(this)?void 0===this._ownerReadableStream?x(F("read from")):te(this):x(ne("read"))},e.prototype.releaseLock=function(){if(!ee(this))throw ne("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");N(this)}},e}();function ee(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function te(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?_(L(void 0,!0,e._forAuthorCode)):"errored"===t._state?x(t._storedError):t._readableStreamController[H]()}function ne(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"===typeof t.asyncIterator&&(Z={},Z[t.asyncIterator]=function(){return this},K=Z,Object.defineProperty(K,t.asyncIterator,{enumerable:!1}));var re={next:function(){if(!1===ae(this))return x(oe("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?x(F("iterate")):R(te(e),(function(t){var n=t.done;n&&N(e);var r=t.value;return L(r,n,!0)}))},return:function(e){if(!1===ae(this))return x(oe("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return x(F("finish iterating"));if(t._readRequests.length>0)return x(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=D(t,e);return N(t),R(n,(function(){return L(e,!0,!0)}))}return N(t),_(L(e,!0,!0))}};function ie(e,t){void 0===t&&(t=!1);var n=q(e),r=Object.create(re);return r._asyncIteratorReader=n,r._preventCancel=Boolean(t),r}function ae(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function oe(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ue(e,t,n){if(n=Number(n),!u(n))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function le(e){var t=e._queue.peek();return t.value}function ce(e){e._queue=new O,e._queueTotalSize=0}void 0!==K&&Object.setPrototypeOf(re,K),Object.defineProperty(re,"next",{enumerable:!1}),Object.defineProperty(re,"return",{enumerable:!1});var he=t("[[AbortSteps]]"),fe=t("[[ErrorSteps]]"),de=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),ge(this);var n=t.size,r=t.highWaterMark,i=e.type;if(void 0!==i)throw new RangeError("Invalid type is specified");var a=A(n);void 0===r&&(r=1),r=g(r),Ye(this,e,r,a)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Ae(this))throw ot("locked");return me(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===Ae(this)?x(ot("abort")):!0===me(this)?x(new TypeError("Cannot abort a stream that already has a writer")):ye(this,e)},e.prototype.close=function(){return!1===Ae(this)?x(ot("close")):!0===me(this)?x(new TypeError("Cannot close a stream that already has a writer")):!0===Re(this)?x(new TypeError("Cannot close an already-closing stream")):be(this)},e.prototype.getWriter=function(){if(!1===Ae(this))throw ot("getWriter");return pe(this)},e}();function pe(e){return new De(e)}function ve(e,t,n,r,i,a){void 0===i&&(i=1),void 0===a&&(a=function(){return 1});var o=Object.create(de.prototype);ge(o);var s=Object.create(He.prototype);return Qe(o,s,e,t,n,r,i,a),o}function ge(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new O,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function Ae(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function me(e){return void 0!==e._writer}function ye(e,t){var n=e._state;if("closed"===n||"errored"===n)return _(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,t=void 0);var i=S((function(n,i){e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:t,_wasAlreadyErroring:r}}));return e._pendingAbortRequest._promise=i,!1===r&&_e(e,t),i}function be(e){var t=e._state;if("closed"===t||"errored"===t)return x(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var n=S((function(t,n){var r={_resolve:t,_reject:n};e._closeRequest=r})),r=e._writer;return void 0!==r&&!0===e._backpressure&&"writable"===t&&wt(r),Xe(e._writableStreamController),n}function we(e){var t=S((function(t,n){var r={_resolve:t,_reject:n};e._writeRequests.push(r)}));return t}function Se(e,t){var n=e._state;"writable"!==n?xe(e):_e(e,t)}function _e(e,t){var n=e._writableStreamController;e._state="erroring",e._storedError=t;var r=e._writer;void 0!==r&&We(r,t),!1===Te(e)&&!0===n._started&&xe(e)}function xe(e){e._state="errored",e._writableStreamController[fe]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new O,void 0!==e._pendingAbortRequest){var n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(t),void Le(e);var r=e._writableStreamController[he](n._reason);C(r,(function(){n._resolve(),Le(e)}),(function(t){n._reject(t),Le(e)}))}else Le(e)}function ke(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Ce(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Se(e,t)}function Pe(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var n=e._writer;void 0!==n&&pt(n)}function Ee(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Se(e,t)}function Re(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Te(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Ie(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Oe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Le(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&ft(t,e._storedError)}function Me(e,t){var n=e._writer;void 0!==n&&t!==e._backpressure&&(!0===t?yt(n):wt(n)),e._backpressure=t}var De=function(){function e(e){if(!1===Ae(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===me(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===Re(e)&&!0===e._backpressure?vt(this):At(this),lt(this);else if("erroring"===t)gt(this,e._storedError),lt(this);else if("closed"===t)At(this),ht(this);else{var n=e._storedError;gt(this,n),ct(this,n)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===Ne(this)?x(st("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Ne(this))throw st("desiredSize");if(void 0===this._ownerWritableStream)throw ut("desiredSize");return Ve(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===Ne(this)?x(st("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===Ne(this)?x(st("abort")):void 0===this._ownerWritableStream?x(ut("abort")):Fe(this,e)},e.prototype.close=function(){if(!1===Ne(this))return x(st("close"));var e=this._ownerWritableStream;return void 0===e?x(ut("close")):!0===Re(e)?x(new TypeError("Cannot close an already-closing stream")):je(this)},e.prototype.releaseLock=function(){if(!1===Ne(this))throw st("releaseLock");var e=this._ownerWritableStream;void 0!==e&&ze(this)},e.prototype.write=function(e){return!1===Ne(this)?x(st("write")):void 0===this._ownerWritableStream?x(ut("write to")):Ge(this,e)},e}();function Ne(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Fe(e,t){var n=e._ownerWritableStream;return ye(n,t)}function je(e){var t=e._ownerWritableStream;return be(t)}function Be(e){var t=e._ownerWritableStream,n=t._state;return!0===Re(t)||"closed"===n?_(void 0):"errored"===n?x(t._storedError):je(e)}function Ue(e,t){"pending"===e._closedPromiseState?ft(e,t):dt(e,t)}function We(e,t){"pending"===e._readyPromiseState?mt(e,t):bt(e,t)}function Ve(e){var t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:Ke(t._writableStreamController)}function ze(e){var t=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");We(e,n),Ue(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function Ge(e,t){var n=e._ownerWritableStream,r=n._writableStreamController,i=Ze(r,t);if(n!==e._ownerWritableStream)return x(ut("write to"));var a=n._state;if("errored"===a)return x(n._storedError);if(!0===Re(n)||"closed"===a)return x(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===a)return x(n._storedError);var o=we(n);return $e(r,t,i),o}var He=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===qe(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&at(this,e)},e.prototype[he]=function(e){var t=this._abortAlgorithm(e);return Je(this),t},e.prototype[fe]=function(){ce(this)},e}();function qe(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Qe(e,t,n,r,i,a,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ce(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=r,t._closeAlgorithm=i,t._abortAlgorithm=a;var u=it(t);Me(e,u);var l=n(),c=_(l);C(c,(function(){t._started=!0,et(t)}),(function(n){t._started=!0,Se(e,n)}))}function Ye(e,t,n,r){var i=Object.create(He.prototype);function a(){return f(t,"start",[i])}var o=h(t,"write",1,[i]),s=h(t,"close",0,[]),u=h(t,"abort",1,[]);Qe(e,i,a,o,s,u,n,r)}function Je(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Xe(e){ue(e,"close",0),et(e)}function Ze(e,t){try{return e._strategySizeAlgorithm(t)}catch(n){return tt(e,n),1}}function Ke(e){return e._strategyHWM-e._queueTotalSize}function $e(e,t,n){var r={chunk:t};try{ue(e,r,n)}catch(o){return void tt(e,o)}var i=e._controlledWritableStream;if(!1===Re(i)&&"writable"===i._state){var a=it(e);Me(i,a)}et(e)}function et(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var n=t._state;if("erroring"!==n){if(0!==e._queue.length){var r=le(e);"close"===r?nt(e):rt(e,r.chunk)}}else xe(t)}}function tt(e,t){"writable"===e._controlledWritableStream._state&&at(e,t)}function nt(e){var t=e._controlledWritableStream;Ie(t),se(e);var n=e._closeAlgorithm();Je(e),C(n,(function(){Pe(t)}),(function(e){Ee(t,e)}))}function rt(e,t){var n=e._controlledWritableStream;Oe(n);var r=e._writeAlgorithm(t);C(r,(function(){ke(n);var t=n._state;if(se(e),!1===Re(n)&&"writable"===t){var r=it(e);Me(n,r)}et(e)}),(function(t){"writable"===n._state&&Je(e),Ce(n,t)}))}function it(e){var t=Ke(e);return t<=0}function at(e,t){var n=e._controlledWritableStream;Je(e),_e(n,t)}function ot(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function st(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function ut(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function lt(e){e._closedPromise=S((function(t,n){e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"}))}function ct(e,t){lt(e),ft(e,t)}function ht(e){lt(e),pt(e)}function ft(e,t){T(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function dt(e,t){ct(e,t)}function pt(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function vt(e){e._readyPromise=S((function(t,n){e._readyPromise_resolve=t,e._readyPromise_reject=n})),e._readyPromiseState="pending"}function gt(e,t){vt(e),mt(e,t)}function At(e){vt(e),wt(e)}function mt(e,t){T(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function yt(e){vt(e)}function bt(e,t){gt(e,t)}function wt(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function St(e){if("object"!==typeof e||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(Z){return!1}}var _t="undefined"!==typeof DOMException?DOMException:void 0;function xt(e){if("function"!==typeof e&&"object"!==typeof e)return!1;try{return new e,!0}catch(Z){return!1}}function kt(){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}var Ct=xt(_t)?_t:kt();function Pt(e,t,r,i,a,o){var s=q(e),u=pe(t);e._disturbed=!0;var l=!1,c=_(void 0);return S((function(h,f){var d;if(void 0!==o){if(d=function(){var n=new Ct("Aborted","AbortError"),r=[];!1===i&&r.push((function(){return"writable"===t._state?ye(t,n):_(void 0)})),!1===a&&r.push((function(){return"readable"===e._state?Fn(e,n):_(void 0)})),b((function(){return Promise.all(r.map((function(e){return e()})))}),!0,n)},!0===o.aborted)return void d();o.addEventListener("abort",d)}function p(){return S((function(e,t){function n(r){r?e():k(v(),n,t)}n(!1)}))}function v(){return!0===l?_(!0):k(u._readyPromise,(function(){return k(te(s),(function(e){return!0===e.done||(c=k(Ge(u,e.value),void 0,n),!1)}))}))}if(m(e,s._closedPromise,(function(e){!1===i?b((function(){return ye(t,e)}),!0,e):w(!0,e)})),m(t,u._closedPromise,(function(t){!1===a?b((function(){return Fn(e,t)}),!0,t):w(!0,t)})),y(e,s._closedPromise,(function(){!1===r?b((function(){return Be(u)})):w()})),!0===Re(t)||"closed"===t._state){var g=new TypeError("the destination writable stream closed before all data could be piped to it");!1===a?b((function(){return Fn(e,g)}),!0,g):w(!0,g)}function A(){var e=c;return k(c,(function(){return e!==c?A():void 0}))}function m(e,t,n){"errored"===e._state?n(e._storedError):E(t,n)}function y(e,t,n){"closed"===e._state?n():P(t,n)}function b(e,n,r){function i(){C(e(),(function(){return x(n,r)}),(function(e){return x(!0,e)}))}!0!==l&&(l=!0,"writable"===t._state&&!1===Re(t)?P(A(),i):i())}function w(e,n){!0!==l&&(l=!0,"writable"===t._state&&!1===Re(t)?P(A(),(function(){return x(e,n)})):x(e,n))}function x(e,t){ze(u),N(s),void 0!==o&&o.removeEventListener("abort",d),e?f(t):h(void 0)}T(p())}))}var Et=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Rt(this))throw Wt("desiredSize");return Nt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Rt(this))throw Wt("close");if(!1===jt(this))throw new TypeError("The stream is not in a state that permits close");Lt(this)},e.prototype.enqueue=function(e){if(!1===Rt(this))throw Wt("enqueue");if(!1===jt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Mt(this,e)},e.prototype.error=function(e){if(!1===Rt(this))throw Wt("error");Dt(this,e)},e.prototype[G]=function(e){ce(this);var t=this._cancelAlgorithm(e);return Ot(this),t},e.prototype[H]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=se(this);return!0===this._closeRequested&&0===this._queue.length?(Ot(this),jn(e)):Tt(this),_(L(t,!1,e._reader._forAuthorCode))}var n=Q(e);return Tt(this),n},e}();function Rt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Tt(e){var t=It(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();C(n,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Tt(e))}),(function(t){Dt(e,t)}))}else e._pullAgain=!0}function It(e){var t=e._controlledReadableStream;if(!1===jt(e))return!1;if(!1===e._started)return!1;if(!0===Nn(t)&&J(t)>0)return!0;var n=Nt(e);return n>0}function Ot(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Lt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ot(e),jn(t))}function Mt(e,t){var n=e._controlledReadableStream;if(!0===Nn(n)&&J(n)>0)Y(n,t,!1);else{var r=void 0;try{r=e._strategySizeAlgorithm(t)}catch(i){throw Dt(e,i),i}try{ue(e,t,r)}catch(a){throw Dt(e,a),a}}Tt(e)}function Dt(e,t){var n=e._controlledReadableStream;"readable"===n._state&&(ce(e),Ot(e),Bn(n,t))}function Nt(e){var t=e._controlledReadableStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function Ft(e){return!0!==It(e)}function jt(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function Bt(e,t,n,r,i,a,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ce(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=a,t._pullAlgorithm=r,t._cancelAlgorithm=i,e._readableStreamController=t;var s=n();C(_(s),(function(){t._started=!0,Tt(t)}),(function(e){Dt(t,e)}))}function Ut(e,t,n,r){var i=Object.create(Et.prototype);function a(){return f(t,"start",[i])}var o=h(t,"pull",0,[i]),s=h(t,"cancel",1,[]);Bt(e,i,a,o,s,n,r)}function Wt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Vt(e,t){var n,r,i,a,s,u=q(e),l=!1,c=!1,h=!1,f=S((function(e){s=e}));function d(){if(!0===l)return _(void 0);l=!0;var e=R(te(u),(function(e){l=!1;var t=e.done;if(!0===t)return!1===c&&Lt(i._readableStreamController),void(!1===h&&Lt(a._readableStreamController));var n=e.value,r=n,o=n;!1===c&&Mt(i._readableStreamController,r),!1===h&&Mt(a._readableStreamController,o)}));return T(e),_(void 0)}function p(t){if(c=!0,n=t,!0===h){var i=o([n,r]),a=Fn(e,i);s(a)}return f}function v(t){if(h=!0,r=t,!0===c){var i=o([n,r]),a=Fn(e,i);s(a)}return f}function g(){}return i=Ln(g,d,p),a=Ln(g,d,v),E(u._closedPromise,(function(e){Dt(i._readableStreamController,e),Dt(a._readableStreamController,e)})),[i,a]}var zt=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Gt=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===Qt(this))throw wn("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===Qt(this))throw wn("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");v(this._view.buffer),gn(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===Qt(this))throw wn("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");v(e.buffer),An(this._associatedReadableByteStreamController,e)},e}(),Ht=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===qt(this))throw Sn("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),n=Object.create(Gt.prototype);bn(n,this,t),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===qt(this))throw Sn("desiredSize");return vn(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===qt(this))throw Sn("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");fn(this)},e.prototype.enqueue=function(e){if(!1===qt(this))throw Sn("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");v(e.buffer),dn(this,e)},e.prototype.error=function(e){if(!1===qt(this))throw Sn("error");pn(this,e)},e.prototype[G]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ce(this);var n=this._cancelAlgorithm(e);return hn(this),n},e.prototype[H]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,tn(this);var n=void 0;try{n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(s){return x(s)}return _(L(n,!1,e._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(u){return x(u)}var a={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(a)}var o=Q(e);return Yt(this),o},e}();function qt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Qt(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Yt(e){var t=cn(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var n=e._pullAlgorithm();C(n,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Yt(e))}),(function(t){pn(e,t)}))}else e._pullAgain=!0}function Jt(e){nn(e),e._pendingPullIntos=new O}function Xt(e,t){var n=!1;"closed"===e._state&&(n=!0);var r=Zt(t);"default"===t.readerType?Y(e,r,n):kn(e,r,n)}function Zt(e){var t=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/n)}function Kt(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function $t(e,t){var n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+i,o=a-a%n,u=i,l=!1;o>r&&(u=o-t.bytesFilled,l=!0);var c=e._queue;while(u>0){var h=c.peek(),f=Math.min(u,h.byteLength),d=t.byteOffset+t.bytesFilled;s(t.buffer,d,h.buffer,h.byteOffset,f),h.byteLength===f?c.shift():(h.byteOffset+=f,h.byteLength-=f),e._queueTotalSize-=f,en(e,f,t),u-=f}return l}function en(e,t,n){nn(e),n.bytesFilled+=t}function tn(e){0===e._queueTotalSize&&!0===e._closeRequested?(hn(e),jn(e._controlledReadableByteStream)):Yt(e)}function nn(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function rn(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===$t(e,t)&&(ln(e),Xt(e._controlledReadableByteStream,t))}}function an(e,t){var n=e._controlledReadableByteStream,r=1;t.constructor!==DataView&&(r=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=p(t.buffer),o={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),xn(n);if("closed"===n._state){var s=new i(o.buffer,o.byteOffset,0);return _(L(s,!0,n._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===$t(e,o)){var u=Zt(o);return tn(e),_(L(u,!1,n._reader._forAuthorCode))}if(!0===e._closeRequested){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return pn(e,l),x(l)}}e._pendingPullIntos.push(o);var c=xn(n);return Yt(e),c}function on(e,t){t.buffer=p(t.buffer);var n=e._controlledReadableByteStream;if(!0===Pn(n))while(Cn(n)>0){var r=ln(e);Xt(n,r)}}function sn(e,t,n){if(n.bytesFilled+t>n.byteLength)throw new RangeError("bytesWritten out of range");if(en(e,t,n),!(n.bytesFilled0){var i=n.byteOffset+n.bytesFilled,a=n.buffer.slice(i-r,i);Kt(e,a,0,a.byteLength)}n.buffer=p(n.buffer),n.bytesFilled-=r,Xt(e._controlledReadableByteStream,n),rn(e)}}function un(e,t){var n=e._pendingPullIntos.peek(),r=e._controlledReadableByteStream;if("closed"===r._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");on(e,n)}else sn(e,t,n);Yt(e)}function ln(e){var t=e._pendingPullIntos.shift();return nn(e),t}function cn(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===X(t)&&J(t)>0)return!0;if(!0===Pn(t)&&Cn(t)>0)return!0;var n=vn(e);return n>0}function hn(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function fn(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var n=e._pendingPullIntos.peek();if(n.bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw pn(e,r),r}}hn(e),jn(t)}}function dn(e,t){var n=e._controlledReadableByteStream,r=t.buffer,i=t.byteOffset,a=t.byteLength,o=p(r);if(!0===X(n))if(0===J(n))Kt(e,o,i,a);else{var s=new Uint8Array(o,i,a);Y(n,s,!1)}else!0===Pn(n)?(Kt(e,o,i,a),rn(e)):Kt(e,o,i,a);Yt(e)}function pn(e,t){var n=e._controlledReadableByteStream;"readable"===n._state&&(Jt(e),ce(e),hn(e),Bn(n,t))}function vn(e){var t=e._controlledReadableByteStream,n=t._state;return"errored"===n?null:"closed"===n?0:e._strategyHWM-e._queueTotalSize}function gn(e,t){if(t=Number(t),!1===u(t))throw new RangeError("bytesWritten must be a finite");un(e,t)}function An(e,t){var n=e._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=t.buffer,un(e,t.byteLength)}function mn(e,t,n,r,i,a,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ce(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=g(a),t._pullAlgorithm=r,t._cancelAlgorithm=i,t._autoAllocateChunkSize=o,t._pendingPullIntos=new O,e._readableStreamController=t;var s=n();C(_(s),(function(){t._started=!0,Yt(t)}),(function(e){pn(t,e)}))}function yn(e,t,n){var r=Object.create(Ht.prototype);function i(){return f(t,"start",[r])}var a=h(t,"pull",0,[r]),o=h(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===zt(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");mn(e,r,i,a,o,n,s)}function bn(e,t,n){e._associatedReadableByteStreamController=t,e._view=n}function wn(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function Sn(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function _n(e,t){void 0===t&&(t=!1);var n=new En(e);return n._forAuthorCode=t,n}function xn(e){var t=S((function(t,n){var r={_resolve:t,_reject:n};e._reader._readIntoRequests.push(r)}));return t}function kn(e,t,n){var r=e._reader,i=r._readIntoRequests.shift();i._resolve(L(t,n,r._forAuthorCode))}function Cn(e){return e._reader._readIntoRequests.length}function Pn(e){var t=e._reader;return void 0!==t&&!!Rn(t)}var En=function(){function e(e){if(!Dn(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===qt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Nn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");M(this,e),this._readIntoRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return Rn(this)?this._closedPromise:x(In("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Rn(this)?void 0===this._ownerReadableStream?x(F("cancel")):D(this,e):x(In("cancel"))},e.prototype.read=function(e){return Rn(this)?void 0===this._ownerReadableStream?x(F("read from")):ArrayBuffer.isView(e)?(v(e.buffer),0===e.byteLength?x(new TypeError("view must have non-zero byteLength")):Tn(this,e)):x(new TypeError("view must be an array buffer view")):x(In("read"))},e.prototype.releaseLock=function(){if(!Rn(this))throw In("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");N(this)}},e}();function Rn(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Tn(e,t){var n=e._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?x(n._storedError):an(n._readableStreamController,t)}function In(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var On=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Mn(this);var n=t.size,r=t.highWaterMark,i=e.type,a=String(i);if("bytes"===a){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),r=g(r),yn(this,e,r)}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=A(n);void 0===r&&(r=1),r=g(r),Ut(this,e,r,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Dn(this))throw Un("locked");return Nn(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Dn(this)?x(Un("cancel")):!0===Nn(this)?x(new TypeError("Cannot cancel a stream that already has a reader")):Fn(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Dn(this))throw Un("getReader");if(void 0===t)return q(this,!0);if(t=String(t),"byob"===t)return _n(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var n=e.writable,r=e.readable,i=void 0===t?{}:t,a=i.preventClose,o=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===Dn(this))throw Un("pipeThrough");if(!1===Ae(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Dn(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(a=Boolean(a),o=Boolean(o),s=Boolean(s),void 0!==u&&!St(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Nn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===me(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var l=Pt(this,n,a,o,s,u);return T(l),r},e.prototype.pipeTo=function(e,t){var n=void 0===t?{}:t,r=n.preventClose,i=n.preventAbort,a=n.preventCancel,o=n.signal;return!1===Dn(this)?x(Un("pipeTo")):!1===Ae(e)?x(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),a=Boolean(a),void 0===o||St(o)?!0===Nn(this)?x(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===me(e)?x(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Pt(this,e,r,i,a,o):x(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Dn(this))throw Un("tee");var e=Vt(this);return o(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,n=void 0!==t&&t;if(!1===Dn(this))throw Un("getIterator");return ie(this,n)},e}();function Ln(e,t,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var a=Object.create(On.prototype);Mn(a);var o=Object.create(Et.prototype);return Bt(a,o,e,t,n,r,i),a}function Mn(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Dn(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Nn(e){return void 0!==e._reader}function Fn(e,t){if(e._disturbed=!0,"closed"===e._state)return _(void 0);if("errored"===e._state)return x(e._storedError);jn(e);var r=e._readableStreamController[G](t);return R(r,n)}function jn(e){e._state="closed";var t=e._reader;void 0!==t&&(ee(t)&&(t._readRequests.forEach((function(e){e._resolve(L(void 0,!0,t._forAuthorCode))})),t._readRequests=new O),z(t))}function Bn(e,t){e._state="errored",e._storedError=t;var n=e._reader;void 0!==n&&(ee(n)?(n._readRequests.forEach((function(e){e._reject(t)})),n._readRequests=new O):(n._readIntoRequests.forEach((function(e){e._reject(t)})),n._readIntoRequests=new O),W(n,t))}function Un(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"===typeof t.asyncIterator&&Object.defineProperty(On.prototype,t.asyncIterator,{value:On.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Wn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),Vn=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),zn=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={});var r=t.size,i=t.highWaterMark,a=n.size,o=n.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var u=A(r);void 0===i&&(i=1),i=g(i);var l=e.readableType;if(void 0!==l)throw new RangeError("Invalid readable type specified");var c,h=A(a);void 0===o&&(o=0),o=g(o);var d=S((function(e){c=e}));Gn(this,d,i,u,o,h),Kn(this,e);var p=f(e,"start",[this._transformStreamController]);c(p)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Hn(this))throw lr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Hn(this))throw lr("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Gn(e,t,n,r,i,a){function o(){return t}function s(t){return ir(e,t)}function u(t){return ar(e,t)}function l(){return or(e)}function c(){return sr(e)}function h(t){return Qn(e,t),_(void 0)}e._writable=ve(o,s,l,u,n,r),e._readable=Ln(o,c,h,i,a),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Yn(e,!0),e._transformStreamController=void 0}function Hn(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function qn(e,t){Dt(e._readable._readableStreamController,t),Qn(e,t)}function Qn(e,t){$n(e._transformStreamController),tt(e._writable._writableStreamController,t),!0===e._backpressure&&Yn(e,!1)}function Yn(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=S((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}var Jn=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Xn(this))throw ur("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Nt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Xn(this))throw ur("enqueue");er(this,e)},e.prototype.error=function(e){if(!1===Xn(this))throw ur("error");tr(this,e)},e.prototype.terminate=function(){if(!1===Xn(this))throw ur("terminate");rr(this)},e}();function Xn(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Zn(e,t,n,r){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=n,t._flushAlgorithm=r}function Kn(e,t){var n=Object.create(Jn.prototype),r=function(e){try{return er(n,e),_(void 0)}catch(t){return x(t)}},i=t.transform;if(void 0!==i){if("function"!==typeof i)throw new TypeError("transform is not a method");r=function(e){return d(i,t,[e,n])}}var a=h(t,"flush",0,[n]);Zn(e,n,r,a)}function $n(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function er(e,t){var n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!1===jt(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{Mt(r,t)}catch(a){throw Qn(n,a),n._readable._storedError}var i=Ft(r);i!==n._backpressure&&Yn(n,!0)}function tr(e,t){qn(e._controlledTransformStream,t)}function nr(e,t){var n=e._transformAlgorithm(t);return R(n,void 0,(function(t){throw qn(e._controlledTransformStream,t),t}))}function rr(e){var t=e._controlledTransformStream,n=t._readable._readableStreamController;!0===jt(n)&&Lt(n);var r=new TypeError("TransformStream terminated");Qn(t,r)}function ir(e,t){var n=e._transformStreamController;if(!0===e._backpressure){var r=e._backpressureChangePromise;return R(r,(function(){var r=e._writable,i=r._state;if("erroring"===i)throw r._storedError;return nr(n,t)}))}return nr(n,t)}function ar(e,t){return qn(e,t),_(void 0)}function or(e){var t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return $n(n),R(r,(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===jt(e)&&Lt(e)}),(function(n){throw qn(e,n),t._storedError}))}function sr(e){return Yn(e,!1),e._backpressureChangePromise}function ur(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function lr(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=Wn,e.CountQueuingStrategy=Vn,e.ReadableStream=On,e.TransformStream=zn,e.WritableStream=de,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){n(147),n(118),n(77),n(120);var r=n(43);e.exports=r.Map},function(e,t,n){"use strict";var r=n(148),i=n(152);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){"use strict";var r=n(10),i=n(11),a=n(52),o=n(29),s=n(149),u=n(104),l=n(126),c=n(22),h=n(14),f=n(97),d=n(85),p=n(151);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),A=v?"set":"add",m=i[e],y=m&&m.prototype,b=m,w={},S=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(a(e,"function"!=typeof m||!(g||y.forEach&&!h((function(){(new m).entries().next()})))))b=n.getConstructor(t,e,v,A),s.REQUIRED=!0;else if(a(e,!0)){var _=new b,x=_[A](g?{}:-0,1)!=_,k=h((function(){_.has(1)})),C=f((function(e){new m(e)})),P=!g&&h((function(){var e=new m,t=5;while(t--)e[A](t,t);return!e.has(-0)}));C||(b=t((function(t,n){l(t,b,e);var r=p(new m,t,b);return void 0!=n&&u(n,r[A],r,v),r})),b.prototype=y,y.constructor=b),(k||P)&&(S("delete"),S("has"),v&&S("get")),(P||x)&&S(A),g&&y.clear&&delete y.clear}return w[e]=b,r({global:!0,forced:b!=m},w),d(b,e),g||n.setStrong(b,e,v),b}},function(e,t,n){var r=n(39),i=n(22),a=n(23),o=n(27).f,s=n(38),u=n(150),l=s("meta"),c=0,h=Object.isExtensible||function(){return!0},f=function(e){o(e,l,{value:{objectID:"O"+ ++c,weakData:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,l)){if(!h(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},p=function(e,t){if(!a(e,l)){if(!h(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},v=function(e){return u&&g.REQUIRED&&h(e)&&!a(e,l)&&f(e),e},g=e.exports={REQUIRED:!1,fastKey:d,getWeakData:p,onFreeze:v};r[l]=!0},function(e,t,n){var r=n(14);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(22),i=n(87);e.exports=function(e,t,n){var a,o;return i&&"function"==typeof(a=t.constructor)&&a!==n&&r(o=a.prototype)&&o!==n.prototype&&i(e,o),e}},function(e,t,n){"use strict";var r=n(27).f,i=n(71),a=n(124),o=n(62),s=n(126),u=n(104),l=n(79),c=n(125),h=n(13),f=n(149).fastKey,d=n(33),p=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=r&&u(r,e[l],e,n)})),d=v(t),g=function(e,t,n){var r,i,a=d(e),o=A(e,t);return o?o.value=n:(a.last=o={index:i=f(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),h?a.size++:e.size++,"F"!==i&&(a.index[i]=o)),e},A=function(e,t){var n,r=d(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return a(c.prototype,{clear:function(){var e=this,t=d(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,n=d(t),r=A(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),h?n.size--:t.size--}return!!r},forEach:function(e){var t,n=d(this),r=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!A(this,e)}}),a(c.prototype,n?{get:function(e){var t=A(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),h&&r(c.prototype,"size",{get:function(){return d(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),a=v(r);l(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=a(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){n(154),n(118),n(77),n(120);var r=n(43);e.exports=r.Set},function(e,t,n){"use strict";var r=n(148),i=n(152);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){n(118),n(156),n(120);var r=n(43);e.exports=r.WeakMap},function(e,t,n){"use strict";var r,i=n(11),a=n(124),o=n(149),s=n(148),u=n(157),l=n(22),c=n(33).enforce,h=n(34),f=!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(h&&f){r=u.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var g=v.prototype,A=g["delete"],m=g.has,y=g.get,b=g.set;a(g,{delete:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),A.call(this,e)||t.frozen["delete"](e)}return A.call(this,e)},has:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.has(e)}return m.call(this,e)},get:function(e){if(l(e)&&!d(e)){var t=c(this);return t.frozen||(t.frozen=new r),m.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!d(e)){var n=c(this);n.frozen||(n.frozen=new r),m.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(124),i=n(149).getWeakData,a=n(28),o=n(22),s=n(126),u=n(104),l=n(158),c=n(23),h=n(33),f=h.set,d=h.getterFor,p=l.find,v=l.findIndex,g=0,A=function(e){return e.frozen||(e.frozen=new m)},m=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[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,n,l){var h=e((function(e,r){s(e,h,t),f(e,{type:t,id:g++,frozen:void 0}),void 0!=r&&u(r,e[l],e,n)})),p=d(t),v=function(e,t,n){var r=p(e),o=i(a(t),!0);return!0===o?A(r).set(t,n):o[r.id]=n,e};return r(h.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?A(t)["delete"](e):n&&c(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var n=i(e);return!0===n?A(t).has(e):n&&c(n,t.id)}}),r(h.prototype,n?{get:function(e){var t=p(this);if(o(e)){var n=i(e);return!0===n?A(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),h}}},function(e,t,n){var r=n(62),i=n(18),a=n(83),o=n(47),s=n(159),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,h=6==e,f=5==e||h;return function(d,p,v,g){for(var A,m,y=a(d),b=i(y),w=r(p,v,3),S=o(b.length),_=0,x=g||s,k=t?x(d,S):n?x(d,0):void 0;S>_;_++)if((f||_ in b)&&(A=b[_],m=w(A,_,y),e))if(t)k[_]=m;else if(m)switch(e){case 3:return!0;case 5:return A;case 6:return _;case 2:u.call(k,A)}else if(c)return!1;return h?-1:l||c?c:k}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){var r=n(22),i=n(160),a=n(57),o=a("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){n(118),n(162),n(120);var r=n(43);e.exports=r.WeakSet},function(e,t,n){"use strict";var r=n(148),i=n(157);r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){n(164);var r=n(61);e.exports=r("String","codePointAt")},function(e,t,n){"use strict";var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){n(166);var r=n(43);e.exports=r.String.fromCodePoint},function(e,t,n){var r=n(10),i=n(49),a=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;r({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,n=[],r=arguments.length,o=0;while(r>o){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){n(168),n(118),n(170),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189);var r=n(43);e.exports=r.Symbol},function(e,t,n){"use strict";var r=n(10),i=n(14),a=n(160),o=n(22),s=n(83),u=n(47),l=n(93),c=n(159),h=n(169),f=n(57),d=n(135),p=f("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",A=d>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),m=h("concat"),y=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},b=!A||!m;r({target:"Array",proto:!0,forced:b},{concat:function(e){var t,n,r,i,a,o=s(this),h=c(o,0),f=0;for(t=-1,r=arguments.length;tv)throw TypeError(g);for(n=0;n=v)throw TypeError(g);l(h,f++,a)}return h.length=f,h}})},function(e,t,n){var r=n(14),i=n(57),a=n(135),o=i("species");e.exports=function(e){return a>=51||!r((function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(10),i=n(11),a=n(42),o=n(37),s=n(13),u=n(58),l=n(59),c=n(14),h=n(23),f=n(160),d=n(22),p=n(28),v=n(83),g=n(17),A=n(21),m=n(16),y=n(71),b=n(73),w=n(44),S=n(171),_=n(51),x=n(12),k=n(27),C=n(15),P=n(26),E=n(29),R=n(36),T=n(35),I=n(39),O=n(38),L=n(57),M=n(172),D=n(173),N=n(85),F=n(33),j=n(158).forEach,B=T("hidden"),U="Symbol",W="prototype",V=L("toPrimitive"),z=F.set,G=F.getterFor(U),H=Object[W],q=i.Symbol,Q=a("JSON","stringify"),Y=x.f,J=k.f,X=S.f,Z=C.f,K=R("symbols"),$=R("op-symbols"),ee=R("string-to-symbol-registry"),te=R("symbol-to-string-registry"),ne=R("wks"),re=i.QObject,ie=!re||!re[W]||!re[W].findChild,ae=s&&c((function(){return 7!=y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(H,t);r&&delete H[t],J(e,t,n),r&&e!==H&&J(H,t,r)}:J,oe=function(e,t){var n=K[e]=y(q[W]);return z(n,{type:U,tag:e,description:t}),s||(n.description=t),n},se=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ue=function(e,t,n){e===H&&ue($,t,n),p(e);var r=A(t,!0);return p(n),h(K,r)?(n.enumerable?(h(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:m(0,!1)})):(h(e,B)||J(e,B,m(1,{})),e[B][r]=!0),ae(e,r,n)):J(e,r,n)},le=function(e,t){p(e);var n=g(t),r=b(n).concat(pe(n));return j(r,(function(t){s&&!he.call(n,t)||ue(e,t,n[t])})),e},ce=function(e,t){return void 0===t?y(e):le(y(e),t)},he=function(e){var t=A(e,!0),n=Z.call(this,t);return!(this===H&&h(K,t)&&!h($,t))&&(!(n||!h(this,t)||!h(K,t)||h(this,B)&&this[B][t])||n)},fe=function(e,t){var n=g(e),r=A(t,!0);if(n!==H||!h(K,r)||h($,r)){var i=Y(n,r);return!i||!h(K,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},de=function(e){var t=X(g(e)),n=[];return j(t,(function(e){h(K,e)||h(I,e)||n.push(e)})),n},pe=function(e){var t=e===H,n=X(t?$:g(e)),r=[];return j(n,(function(e){!h(K,e)||t&&!h(H,e)||r.push(K[e])})),r};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),n=function(e){this===H&&n.call($,e),h(this,B)&&h(this[B],t)&&(this[B][t]=!1),ae(this,t,m(1,e))};return s&&ie&&ae(H,t,{configurable:!0,set:n}),oe(t,e)},E(q[W],"toString",(function(){return G(this).tag})),E(q,"withoutSetter",(function(e){return oe(O(e),e)})),C.f=he,k.f=ue,x.f=fe,w.f=S.f=de,_.f=pe,M.f=function(e){return oe(L(e),e)},s&&(J(q[W],"description",{configurable:!0,get:function(){return G(this).description}}),o||E(H,"propertyIsEnumerable",he,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),j(b(ne),(function(e){D(e)})),r({target:U,stat:!0,forced:!u},{for:function(e){var t=String(e);if(h(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(h(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:ce,defineProperty:ue,defineProperties:le,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){_.f(1)}))},{getOwnPropertySymbols:function(e){return _.f(v(e))}}),Q){var ve=!u||c((function(){var e=q();return"[null]"!=Q([e])||"{}"!=Q({a:e})||"{}"!=Q(Object(e))}));r({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var r,i=[e],a=1;while(arguments.length>a)i.push(arguments[a++]);if(r=t,(d(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,Q.apply(null,i)}})}q[W][V]||P(q[W],V,q[W].valueOf),N(q,U),I[B]=!0},function(e,t,n){var r=n(17),i=n(44).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(57);t.f=r},function(e,t,n){var r=n(43),i=n(23),a=n(172),o=n(27).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(173);r("asyncIterator")},function(e,t,n){"use strict";var r=n(10),i=n(13),a=n(11),o=n(23),s=n(22),u=n(27).f,l=n(40),c=a.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new c(e):void 0===e?c():c(e);return""===e&&(h[t]=!0),t};l(f,c);var d=f.prototype=c.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(h,e))return"";var n=v?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){var r=n(173);r("hasInstance")},function(e,t,n){var r=n(173);r("isConcatSpreadable")},function(e,t,n){var r=n(173);r("iterator")},function(e,t,n){var r=n(173);r("match")},function(e,t,n){var r=n(173);r("matchAll")},function(e,t,n){var r=n(173);r("replace")},function(e,t,n){var r=n(173);r("search")},function(e,t,n){var r=n(173);r("species")},function(e,t,n){var r=n(173);r("split")},function(e,t,n){var r=n(173);r("toPrimitive")},function(e,t,n){var r=n(173);r("toStringTag")},function(e,t,n){var r=n(173);r("unscopables")},function(e,t,n){var r=n(85);r(Math,"Math",!0)},function(e,t,n){var r=n(11),i=n(85);i(r.JSON,"JSON",!0)},function(e,t,n){n(191);var r=n(61);e.exports=r("String","padStart")},function(e,t,n){"use strict";var r=n(10),i=n(192).start,a=n(194);r({target:"String",proto:!0,forced:a},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(47),i=n(193),a=n(20),o=Math.ceil,s=function(e){return function(t,n,s){var u,l,c=String(a(t)),h=c.length,f=void 0===s?" ":String(s),d=r(n);return d<=h||""==f?c:(u=d-h,l=i.call(f,o(u/f.length)),l.length>u&&(l=l.slice(0,u)),e?c+l:l+c)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){"use strict";var r=n(48),i=n(20);e.exports="".repeat||function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t,n){var r=n(129);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){n(196);var r=n(61);e.exports=r("String","padEnd")},function(e,t,n){"use strict";var r=n(10),i=n(192).end,a=n(194);r({target:"String",proto:!0,forced:a},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(198);var r=n(43);e.exports=r.Object.values},function(e,t,n){var r=n(10),i=n(199).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(13),i=n(73),a=n(17),o=n(15).f,s=function(e){return function(t){var n,s=a(t),u=i(s),l=u.length,c=0,h=[];while(l>c)n=u[c++],r&&!o.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){n(201);var r=n(43);e.exports=r.Object.entries},function(e,t,n){var r=n(10),i=n(199).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(module,exports,__w_pdfjs_require__){"use strict";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__(203),_node_utils=__w_pdfjs_require__(204),_annotation_storage=__w_pdfjs_require__(205),_api_compatibility=__w_pdfjs_require__(206),_canvas=__w_pdfjs_require__(207),_worker_options=__w_pdfjs_require__(209),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(210),_metadata=__w_pdfjs_require__(211),_optional_content_config=__w_pdfjs_require__(213),_transport_stream=__w_pdfjs_require__(214),_webgl=__w_pdfjs_require__(215);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){asyncGeneratorStep(a,r,i,o,s,"next",e)}function s(e){asyncGeneratorStep(a,r,i,o,s,"throw",e)}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 n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=n,this.progressiveDone=r,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 n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;){var i=n.value;i(e,t)}}catch(a){r.e(a)}finally{r.f()}}},{key:"onDataProgress",value:function(e,t){var n=this;this._readyCapability.promise.then((function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;){var a=r.value;a(e,t)}}catch(o){i.e(o)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;){var i=n.value;i(e)}}catch(a){r.e(a)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,n=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(n.s();!(t=n.n()).done;){var r=t.value;r()}}catch(i){n.e(i)}finally{n.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,n){_classCallCheck(this,e),this._pdfInfo=t,this._transport=n}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:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{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:"saveDocument",value:function(e){return this._transport.saveDocument(e)}},{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{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,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=n,this._ownerDocument=i,this._transport=r,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,n=e.rotation,r=void 0===n?this.rotate:n,i=e.offsetX,a=void 0===i?0:i,o=e.offsetY,s=void 0===o?0:o,u=e.dontFlip,l=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:r,offsetX:a,offsetY:s,dontFlip:l})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,n=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===n||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,n),this.annotationsIntent=n),this.annotationsPromise}},{key:"render",value:function(e){var t=this,n=e.canvasContext,r=e.viewport,i=e.intent,a=void 0===i?"display":i,o=e.enableWebGL,s=void 0!==o&&o,u=e.renderInteractiveForms,l=void 0!==u&&u,c=e.transform,h=void 0===c?null:c,f=e.imageLayer,d=void 0===f?null:f,p=e.canvasFactory,v=void 0===p?null:p,g=e.background,A=void 0===g?null:g,m=e.annotationStorage,y=void 0===m?null:m,b=e.optionalContentConfigPromise,w=void 0===b?null:b;this._stats&&this._stats.time("Overall");var S="print"===a?"print":"display";this.pendingCleanup=!1,w||(w=this._transport.getOptionalContentConfig());var _=this._intentStates.get(S);_||(_=Object.create(null),this._intentStates.set(S,_)),_.streamReaderCancelTimeout&&(clearTimeout(_.streamReaderCancelTimeout),_.streamReaderCancelTimeout=null);var x=v||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),k=new _webgl.WebGLContext({enable:s});_.displayReadyCapability||(_.displayReadyCapability=(0,_util.createPromiseCapability)(),_.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:S,renderInteractiveForms:!0===l,annotationStorage:y&&y.getAll()||null}));var C=function(e){var n=_.renderTasks.indexOf(P);n>=0&&_.renderTasks.splice(n,1),(t.cleanupAfterRender||"print"===S)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(P.capability.reject(e),t._abortOperatorList({intentState:_,reason:e})):P.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},P=new InternalRenderTask({callback:C,params:{canvasContext:n,viewport:r,transform:h,imageLayer:d,background:A},objs:this.objs,commonObjs:this.commonObjs,operatorList:_.operatorList,pageIndex:this._pageIndex,canvasFactory:x,webGLContext:k,useRequestAnimationFrame:"print"!==S,pdfBug:this._pdfBug});_.renderTasks||(_.renderTasks=[]),_.renderTasks.push(P);var E=P.task;return Promise.all([_.displayReadyCapability.promise,w]).then((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];t.pendingCleanup?C():(t._stats&&t._stats.time("Rendering"),P.initializeGraphics({transparency:r,optionalContentConfig:i}),P.operatorListChanged())}))["catch"](C),E}},{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)}}var t,n="oplist",r=this._intentStates.get(n);return r||(r=Object.create(null),this._intentStates.set(n,r)),r.opListReadCapability||(t=Object.create(null),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:n})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,n=void 0!==t&&t,r=e.disableCombineTextItems,i=void 0!==r&&r,a=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:a,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,n){function r(){i.read().then((function(t){var n,i=t.value,o=t.done;o?e(a):(Object.assign(a.styles,i.styles),(n=a.items).push.apply(n,_toConsumableArray(i.items)),r())}),n)}var i=t.getReader(),a={items:[],styles:Object.create(null)};r()}))}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e,t=[],n=_createForOfIteratorHelper(this._intentStates);try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],a=r[1];if(this._abortOperatorList({intentState:a,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==i){var o,s=_createForOfIteratorHelper(a.renderTasks);try{for(s.s();!(o=s.n()).done;){var u=o.value;t.push(u.completed),u.cancel()}}catch(l){s.e(l)}finally{s.f()}}}}catch(l){n.e(l)}finally{n.f()}return 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=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var t,n=_createForOfIteratorHelper(this._intentStates.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.renderTasks,a=r.operatorList;if(0!==i.length||!a.lastChunk)return!1}}catch(o){n.e(o)}finally{n.f()}return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(e,t){var n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var n=0,r=e.length;n0&&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){var n=this;function r(e){if("object"!==_typeof(e)||null===e)return e;if(i.has(e))return i.get(e);var n,a;if((n=e.buffer)&&(0,_util.isArrayBuffer)(n)){var o=t&&t.includes(n);return a=o?new e.constructor(n,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,a),a}for(var s in a=Array.isArray(e)?[]:{},i.set(e,a),e){var u=void 0,l=e;while(!(u=Object.getOwnPropertyDescriptor(l,s)))l=Object.getPrototypeOf(l);if("undefined"!==typeof u.value)if("function"!==typeof u.value)a[s]=r(u.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return a}if(this._defer){var i=new WeakMap,a={data:r(e)};this._deferred.then((function(){n._listeners.forEach((function(e){e.call(n,a)}))}))}else this._listeners.forEach((function(t){t.call(n,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){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"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof 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(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref12=_asyncToGenerator(_regenerator["default"].mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator["default"].wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_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 _ref12.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 PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,r=void 0===n?null:n,i=t.port,a=void 0===i?null:i,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),a&&pdfWorkerPorts.has(a))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,a)return pdfWorkerPorts.set(a,this),void this._initializeFromPort(a);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 n=new Worker(t),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",a),r.destroy(),n.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},a=function(){e._webWorker||i()};n.addEventListener("error",a),r.on("test",(function(t){n.removeEventListener("error",a),e.destroyed?i():t?(e._messageHandler=r,e._port=n,e._webWorker=n,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),r.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(t){if(n.removeEventListener("error",a),e.destroyed)i();else try{o()}catch(r){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{r.send("test",t,[t.buffer])}catch(n){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,r.send("test",t)}};return void o()}catch(s){(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)e._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;e._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);t.setup(i,n);var a=new _message_handler.MessageHandler(r,r+"_worker",n);e._messageHandler=a,e._readyCapability.resolve(),a.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,n,r,i){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:i.ownerDocument}),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=r,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 n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),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,n=this.loadingTask;t.on("GetReader",(function(t,n){(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}},n.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,r=e.done;r?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){n.error(e)}))},n.onCancel=function(t){e._fullReader.cancel(t),n.ready["catch"]((function(t){if(!e.destroyed)throw t}))}})),t.on("ReaderHeadersReady",(function(t){var r=(0,_util.createPromiseCapability)(),i=e._fullReader;return i.headersReady.then((function(){i.isStreamingSupported&&i.isRangeSupported||(e._lastProgress&&n.onProgress&&n.onProgress(e._lastProgress),i.onProgress=function(e){n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),r.reject),r.promise})),t.on("GetRangeReader",(function(t,n){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(t.begin,t.end);r?(n.onPull=function(){r.read().then((function(e){var t=e.value,r=e.done;r?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(t),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){n.error(e)}))},n.onCancel=function(t){r.cancel(t),n.ready["catch"]((function(t){if(!e.destroyed)throw t}))}):n.close()})),t.on("GetDoc",(function(t){var r=t.pdfInfo;e._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,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);break}if(!(t instanceof Error)){var r="DocException - expected a valid Error.";(0,_util.warn)(r)}n._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword){var r=function(t){e._passwordCapability.resolve({password:t})};try{n.onPassword(r,t.code)}catch(i){e._passwordCapability.reject(i)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){n.onProgress&&n.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var n=e.pageCache[t.pageIndex];n._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(n){if(!e.destroyed){var r=_slicedToArray(n,3),i=r[0],a=r[1],o=r[2];if(!e.commonObjs.has(i))switch(a){case"Font":var s=e._params;if("error"in o){var u=o.error;(0,_util.warn)("Error during font loading: ".concat(u)),e.commonObjs.resolve(i,u);break}var l=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(l={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var c=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:l});e.fontLoader.bind(c)["catch"]((function(e){return t.sendWithPromise("FontFallback",{id:i})}))["finally"]((function(){!s.fontExtraProperties&&c.data&&(c.data=null),e.commonObjs.resolve(i,c)}));break;case"FontPath":case"Image":e.commonObjs.resolve(i,o);break;default:throw new Error("Got unknown common object type ".concat(a))}}})),t.on("obj",(function(t){if(!e.destroyed){var n=_slicedToArray(t,4),r=n[0],i=n[1],a=n[2],o=n[3],s=e.pageCache[i];if(!s.objs.has(r))switch(a){case"Image":s.objs.resolve(r,o);var u=8e6;o&&"data"in o&&o.data.length>u&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(a))}}})),t.on("DocProgress",(function(t){e.destroyed||n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",(function(t,n){if(e.destroyed)n.error(new Error("Worker was destroyed"));else{var r=!1;n.onPull=function(){r?n.close():(r=!0,e.CMapReaderFactory.fetch(t).then((function(e){n.enqueue(e,1,[e.cMapData.buffer])}))["catch"]((function(e){n.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 n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,e,t,t._params.ownerDocument,t._params.pdfBug);return t.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{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:"saveDocument",value:function(e){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:e&&e.getAll()||null,filename:this._fullReader?this._fullReader.filename:null})["finally"]((function(){e&&e.resetModified()}))}},{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:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((function(e){return new _optional_content_config.OptionalContentConfig(e)}))}},{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,n=e.pageCache.length;t1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var n=this._objs[e];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var n=this._ensureObj(e);n.resolved=!0,n.data=t,n.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,t=function(){function t(e){var n=e.callback,r=e.params,i=e.objs,a=e.commonObjs,o=e.operatorList,s=e.pageIndex,u=e.canvasFactory,l=e.webGLContext,c=e.useRequestAnimationFrame,h=void 0!==c&&c,f=e.pdfBug,d=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=i,this.commonObjs=a,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=l,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"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=r.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(t){var n=t.transparency,r=void 0!==n&&n,i=t.optionalContentConfig;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 a=this.params,o=a.canvasContext,s=a.viewport,u=a.transform,l=a.imageLayer,c=a.background;this.gfx=new _canvas.CanvasGraphics(o,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,l,i),this.gfx.beginDrawing({transform:u,viewport:s,transparency:r,background:c}),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(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{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(){var t=_asyncToGenerator(_regenerator["default"].mark((function t(){return _regenerator["default"].wrap((function(t){while(1)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)})));function n(){return t.apply(this,arguments)}return n}()},{key:"completed",get:function(){return this.capability.promise["catch"]((function(){}))}}]),t}();return t}(),version="2.6.347";exports.version=version;var build="3be9c65f";exports.build=build},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=a(n(2)),i=n(5);function a(e){return e&&e.__esModule?e:{default:e}}function o(e){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},o(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},u(e,t)}function l(e){var t=f();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){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)},d(e)}function p(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){p(a,r,i,o,s,"next",e)}function s(e){p(a,r,i,o,s,"throw",e)}o(void 0)}))}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n0&&n.requests[0].done){var e=n.requests.shift();setTimeout(e.callback,0)}}var n=this.loadingContext,r={id:"pdfjs-font-loading-".concat(n.nextRequestId++),done:!1,complete:t,callback:e};return n.requests.push(r),r}},{key:"_prepareFontLoadEvent",value:function(e,t,n){var r,a,o=this;function s(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function u(e,t,n,r){var i=e.substring(0,t),a=e.substring(t+n);return i+r+a}var l=this._document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),h=0;function f(e,t){if(h++,h>30)return(0,i.warn)("Load test font never loaded."),void t();c.font="30px "+e,c.fillText(".",0,20);var n=c.getImageData(0,0,1,1);n.data[3]>0?t():setTimeout(f.bind(null,e,t))}var d="lt".concat(Date.now()).concat(this.loadTestFontId++),p=this._loadTestFont,v=976;p=u(p,v,d.length,d);var g=16,A=1482184792,m=s(p,g);for(r=0,a=d.length-3;r=14&&(e=!0)}return(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,i.shadow)(this,"_loadTestFont",e())}}]),n}(b);var w=function(){function e(t,n){var r=n.isEvalSupported,i=void 0===r||r,a=n.disableFontFace,o=void 0!==a&&a,s=n.ignoreErrors,u=void 0!==s&&s,l=n.onUnsupportedFeature,c=void 0===l?null:l,h=n.fontRegistry,f=void 0===h?null:h;for(var d in g(this,e),this.compiledGlyphs=Object.create(null),t)this[d]=t[d];this.isEvalSupported=!1!==i,this.disableFontFace=!0===o,this.ignoreErrors=!0===u,this._onUnsupportedFeature=c,this.fontRegistry=f}return m(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,i.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var n,r;try{n=e.get(this.loadedName+"_path_"+t)}catch(l){if(!this.ignoreErrors)throw l;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,i.warn)('getPathGenerator - ignoring character: "'.concat(l,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.IsEvalSupportedCached.value){for(var a,o="",s=0,u=n.length;s=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}function o(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)d[p++]=g&v?0:255,v>>=1}var A=0;for(p=0,0!==d[p]&&(l[0]=1,++A),n=1;n>2)+(d[p+1]?4:0)+(d[p-h+1]?8:0),c[m]&&(l[r+n]=c[m],++A),p++;if(d[p-h]!==d[p]&&(l[r+n]=d[p]?2:4,++A),A>a)return null}for(p=h*(s-1),r=t*u,0!==d[p]&&(l[r]=8,++A),n=1;na)return null;var y=new Int32Array([0,u,-1,0,-u,0,0,0,1]),b=[];for(t=0;A&&t<=s;t++){var w=t*u,S=w+o;while(w>4,l[w]&=k>>2|k<<2),x.push(w%u),x.push(w/u|0),l[w]||--A}while(C!==w);b.push(x),--t}}var E=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,n=b.length;t2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!==typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var i,a,o,s,u,l,c,h,f,d=t.height,v=t.width,g=d%p,A=(d-g)/p,m=0===g?A:A+1,y=e.createImageData(v,p),b=0,w=t.data,S=y.data;if(n)switch(n.length){case 1:l=n[0],c=n[0],h=n[0],f=n[0];break;case 4:l=n[0],c=n[1],h=n[2],f=n[3];break}if(t.kind===r.ImageKind.GRAYSCALE_1BPP){var _=w.byteLength,x=new Uint32Array(S.buffer,0,S.byteLength>>2),k=x.length,C=v+7>>3,P=4294967295,E=r.IsLittleEndianCached.value?4278190080:255;if(f&&255===f[0]&&0===f[255]){var R=[E,P];P=R[0],E=R[1]}for(a=0;aC?v:8*T-7,L=-8&O,M=0,D=0;I>=1}while(i=A&&(s=g,u=v*s),i=0,o=u;o--;)S[i++]=w[b++],S[i++]=w[b++],S[i++]=w[b++],S[i++]=255;if(B)for(var U=0;U>=1}e.putImageData(s,0,h*p)}}function y(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r>8,e[a-2]=e[a-2]*o+n*s>>8,e[a-1]=e[a-1]*o+r*s>>8}}}function S(e,t,n){for(var r=e.length,i=1/255,a=3;a>8]>>8:t[i]*a>>16}}function x(e,t,n,r,i,a,o){var s,u=!!a,l=u?a[0]:0,c=u?a[1]:0,h=u?a[2]:0;s="Luminosity"===i?_:S;for(var f=1048576,d=Math.min(r,Math.ceil(f/n)),p=0;pt&&"function"===typeof o,p=d?Date.now()+e:0,v=0,g=this.commonObjs,A=this.objs;while(1){if(void 0!==s&&c===s.nextBreakPoint)return s.breakIt(c,o),c;if(f=l[c],f!==r.OPS.dependency)this[f].apply(this,u[c]);else{var m,y=a(u[c]);try{for(y.s();!(m=y.n()).done;){var b=m.value,w=b.startsWith("g_")?g:A;if(!w.has(b))return w.get(b,o),c}}catch(S){y.e(S)}finally{y.f()}}if(c++,c===h)return c;if(d&&++v>t){if(Date.now()>p)return o(),c;v=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=C[e]},setLineJoin:function(e){this.ctx.lineJoin=P[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=a}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,t,n,!0),a=this.ctx,o=a.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,y(a,s),this.ctx=s,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(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),y(e,this.ctx),this.current.resumeSMaskCtx=e;var t=r.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(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),y(e,this.ctx);var t=r.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,n,r,i,a){this.ctx.transform(e,t,n,r,i,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,i=this.current,a=i.x,o=i.y,s=0,u=0,l=e.length;sl&&(h=l),this.current.fontSizeScale=t/h,this.ctx.font="".concat(s," ").concat(o," ").concat(h,"px ").concat(c)}},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,n,r,i,a){this.current.textMatrix=[e,t,n,r,i,a],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,n,i){var a,o=this.ctx,s=this.current,u=s.font,l=s.textRenderingMode,c=s.fontSize/s.fontSizeScale,h=l&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG),d=s.patternFill&&!u.missingFile;if((u.disableFontFace||f||d)&&(a=u.getPathGenerator(this.commonObjs,e)),u.disableFontFace||d?(o.save(),o.translate(t,n),o.beginPath(),a(o,c),i&&o.setTransform.apply(o,i),h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||o.fill(),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||o.fillText(e,t,n),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,n)),f){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:a})}},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 n=t.getImageData(0,0,10,10).data,i=!1,a=3;a0&&n[a]<255){i=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",i)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0!==i){var a,o=this.ctx,s=t.fontSizeScale,u=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,f=t.textHScale*c,d=e.length,p=n.vertical,v=p?1:-1,g=n.defaultVMetrics,A=i*t.fontMatrix[0],m=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var y=t.fillColor.getPattern(o,this);a=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),c>0?o.scale(f,-1):o.scale(f,1);var b=t.lineWidth,w=t.textMatrixScale;if(0===w||0===b){var S=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;S!==r.TextRenderingMode.STROKE&&S!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=this.getSinglePixelWidth()*h)}else b/=w;1!==s&&(o.scale(s,s),b/=s),o.lineWidth=b;var _,x=0;for(_=0;_0){var B=1e3*o.measureText(N).width/i*s;if(jc&&(h=u/c,u=c),l>c&&(f=l/c,l=c);var d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,u,l,!0),v=p.context;v.scale(1/h,1/f),v.translate(-o,-s),v.transform.apply(v,n),e.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:o,offsetY:s,scaleX:h,scaleY:f,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(o,s),t.scale(h,f)),y(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){if(this.contentVisible){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,n){if(this.save(),b(this.ctx),this.current=new m,Array.isArray(e)&&4===e.length){var r=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){if(this.contentVisible){var t=this.ctx,n=e.width,r=e.height,i=this.current.fillColor,a=this.current.patternFill,o=this.processingType3;if(f&&o&&void 0===o.compiled&&(o.compiled=n<=d&&r<=d?A({data:e.data,width:n,height:r}):null),o&&o.compiled)o.compiled(t);else{var u=this.cachedCanvases.getCanvas("maskCanvas",n,r),l=u.context;l.save(),s(l,e),l.globalCompositeOperation="source-in",l.fillStyle=a?i.getPattern(l,this):i,l.fillRect(0,0,n,r),l.restore(),this.paintInlineImageXObject(u.canvas)}}},paintImageMaskXObjectRepeat:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var o=e.width,u=e.height,l=this.current.fillColor,c=this.current.patternFill,h=this.cachedCanvases.getCanvas("maskCanvas",o,u),f=h.context;f.save(),s(f,e),f.globalCompositeOperation="source-in",f.fillStyle=c?l.getPattern(f,this):l,f.fillRect(0,0,o,u),f.restore();for(var d=this.ctx,p=0,v=a.length;p2&&v>1||d>2&&g>1){var m=v,y=g;c>2&&v>1&&(m=Math.ceil(v/2),c/=v/m),d>2&&g>1&&(y=Math.ceil(g/2),d/=g/y),a=this.cachedCanvases.getCanvas(A,m,y),p=a.context,p.clearRect(0,0,m,y),p.drawImage(i,0,0,v,g,0,0,m,y),i=a.canvas,v=m,g=y,A="prescale1"===A?"prescale2":"prescale1"}if(r.drawImage(i,0,0,v,g,0,-n,t,n),this.imageLayer){var b=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:b[0],top:b[1],width:t/s[0],height:n/s[3]})}this.restore()}},paintInlineImageXObjectGroup:function(e,t){if(this.contentVisible){var n=this.ctx,r=e.width,i=e.height,a=this.cachedCanvases.getCanvas("inlineImage",r,i),s=a.context;o(s,e,this.current.transferMaps);for(var u=0,l=t.length;u=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}},r.OPS)n.prototype[r.OPS[T]]=n.prototype[T];return n}();t.CanvasGraphics=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=s,t.TilingPattern=void 0;var r=n(5),i={};function a(e,t){if(t&&"undefined"!==typeof Path2D){var n=t[2]-t[0],r=t[3]-t[1],i=new Path2D;i.rect(t[0],t[1],n,r),e.clip(i)}}i.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=e[5],s=e[6],u=e[7];return{type:"Pattern",getPattern:function(e){var l;a(e,n),"axial"===t?l=e.createLinearGradient(i[0],i[1],o[0],o[1]):"radial"===t&&(l=e.createRadialGradient(i[0],i[1],s,o[0],o[1],u));for(var c=0,h=r.length;cl[r+1]&&(u=n,n=r,r=u,u=a,a=o,o=u),l[r+1]>l[i+1]&&(u=r,r=i,i=u,u=o,o=s,s=u),l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=a,a=o,o=u);var d=(l[n]+t.offsetX)*t.scaleX,p=(l[n+1]+t.offsetY)*t.scaleY,v=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,A=(l[i]+t.offsetX)*t.scaleX,m=(l[i+1]+t.offsetY)*t.scaleY;if(!(p>=m))for(var y,b,w,S,_,x,k,C,P=c[a],E=c[a+1],R=c[a+2],T=c[o],I=c[o+1],O=c[o+2],L=c[s],M=c[s+1],D=c[s+2],N=Math.round(p),F=Math.round(m),j=N;j<=F;j++){if(jm?1:g===m?0:(g-j)/(g-m),y=v-(v-A)*U,b=T-(T-L)*U,w=I-(I-M)*U,S=O-(O-D)*U}var W=void 0;W=jm?1:(p-j)/(p-m),_=d-(d-A)*W,x=P-(P-L)*W,k=E-(E-M)*W,C=R-(R-D)*W;for(var V=Math.round(Math.min(y,_)),z=Math.round(Math.max(y,_)),G=f*j+4*V,H=V;H<=z;H++)W=(y-H)/(y-_),W<0?W=0:W>1&&(W=1),h[G++]=b-(b-x)*W|0,h[G++]=w-(w-k)*W|0,h[G++]=S-(S-C)*W|0,h[G++]=255}}function t(t,n,r){var i,a,o=n.coords,s=n.colors;switch(n.type){case"lattice":var u=n.verticesPerRow,l=Math.floor(o.length/u)-1,c=u-1;for(i=0;i=i?a=i:r=a/e,{scale:r,size:a}},clipBbox:function(e,t,n,r,i,a){if(Array.isArray(t)&&4===t.length){var o=i-n,s=a-r;e.ctx.rect(n,r,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,n,i){var a=t.ctx,o=t.current;switch(n){case e.COLORED:var s=this.ctx;a.fillStyle=s.fillStyle,a.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var u=r.Util.makeCssRgb(i[0],i[1],i[2]);a.fillStyle=u,a.strokeStyle=u,o.fillColor=u,o.strokeColor=u;break;default:throw new r.FormatError("Unsupported paint type: ".concat(n))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var n=this.createPatternCanvas(t);return e.createPattern(n,"repeat")}},n}();t.TilingPattern=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var r=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=a(n(2)),i=n(5);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var u=this.desiredSize;this.desiredSize-=n,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,i.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:o,stream:d.ENQUEUE,streamId:r,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:o,stream:d.CLOSE,streamId:r}),delete t.streamSinks[r])},error:function(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:a,targetName:o,stream:d.ERROR,streamId:r,reason:p(e)}))},sinkCapability:(0,i.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[r]=u,new Promise((function(t){t(n(e.data,u))})).then((function(){s.postMessage({sourceName:a,targetName:o,stream:d.START_COMPLETE,streamId:r,success:!0})}),(function(e){s.postMessage({sourceName:a,targetName:o,stream:d.START_COMPLETE,streamId:r,reason:p(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,n=this.sourceName,r=e.sourceName,a=this.comObj;switch(e.stream){case d.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(p(e.reason));break;case d.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(p(e.reason));break;case d.PULL:if(!this.streamSinks[t]){a.postMessage({sourceName:n,targetName:r,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(){a.postMessage({sourceName:n,targetName:r,stream:d.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:r,stream:d.PULL_COMPLETE,streamId:t,reason:p(e)})}));break;case d.ENQUEUE:if((0,i.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,i.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,i.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(p(e.reason)),this._deleteStreamController(t);break;case d.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(p(e.reason)),this._deleteStreamController(t);break;case d.CANCEL:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(p(e.reason)))})).then((function(){a.postMessage({sourceName:n,targetName:r,stream:d.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:r,stream:d.CANCEL_COMPLETE,streamId:t,reason:p(e)})})),this.streamSinks[t].sinkCapability.reject(p(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=s(r["default"].mark((function e(t){return r["default"].wrap((function(e){while(1)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)})));function t(t){return e.apply(this,arguments)}return t}()},{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=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(5),i=n(212);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n\\376\\377([^<]+)/g,(function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,n,r){return String.fromCharCode(64*t+8*n+1*r)})).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."))})),r="",i=0,a=n.length;i=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+r}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes())for(var r=t.childNodes,i=0,a=r.length;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(n)}))}},{key:"_parseContent",value:function(e,t){var n=[],r=t;function i(){while(r"!==e[r]&&"/"!==e[r])++r;var a=e.substring(t,r);i();while(r"!==e[r]&&"/"!==e[r]&&"?"!==e[r]){i();var o="",s="";while(r"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);r();var a=n;while(n"!==e[n+1]))++n;var o=e.substring(a,n);return{name:i,value:o,parsed:n-t}}},{key:"parseXml",value:function(e){var t=0;while(t",r),a<0)return void this.onError(S.UnterminatedElement);this.onEndElement(e.substring(r,a)),r=a+1;break;case"?":++r;var o=this._parseProcessingInstruction(e,r);if("?>"!==e.substring(r+o.parsed,r+o.parsed+2))return void this.onError(S.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),r+=o.parsed+2;break;case"!":if("--"===e.substring(r+1,r+3)){if(a=e.indexOf("--\x3e",r+3),a<0)return void this.onError(S.UnterminatedComment);this.onComment(e.substring(r+3,a)),r=a+3}else if("[CDATA["===e.substring(r+1,r+8)){if(a=e.indexOf("]]>",r+8),a<0)return void this.onError(S.UnterminatedCdat);this.onCdata(e.substring(r+8,a)),r=a+3}else{if("DOCTYPE"!==e.substring(r+1,r+8))return void this.onError(S.MalformedElement);var s=e.indexOf("[",r+8),u=!1;if(a=e.indexOf(">",r+8),a<0)return void this.onError(S.UnterminatedDoctypeDeclaration);if(s>0&&a>s){if(a=e.indexOf("]>",r+8),a<0)return void this.onError(S.UnterminatedDoctypeDeclaration);u=!0}var l=e.substring(r+8,a+(u?1:0));this.onDoctype(l),r=a+(u?2:1)}break;default:var c=this._parseContent(e,r);if(null===c)return void this.onError(S.MalformedElement);var h=!1;if("/>"===e.substring(r+c.parsed,r+c.parsed+2))h=!0;else if(">"!==e.substring(r+c.parsed,r+c.parsed+1))return void this.onError(S.UnterminatedElement);this.onBeginElement(c.name,c.attributes,h),r+=c.parsed+(h?2:1);break}}else{while(r0}},{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){f(n,e);var t=p(n);function n(){var e;return y(this,n),e=t.call(this),e._currentFragment=null,e._stack=null,e._errorCode=S.NoError,e}return w(n,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=S.NoError,this.parseXml(e),this._errorCode===S.NoError){var t=i(this._currentFragment,1),n=t[0];if(n)return{documentElement:n}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return c(m(n.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!x(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,n){var r=new C(e);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var n=0,r=t.childNodes.length;n=e.length?{done:!0}:{done:!1,value:e[r++]}},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(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1];this._groups.has(e)?this._groups.get(e).visible=!!t:(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size?Object.fromEntries(this._groups):null}},{key:"getGroup",value:function(e){return this._groups.get(e)||null}}]),e}();t.OptionalContentConfig=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=a(n(2)),i=n(5);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)}))}}function u(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function l(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var o=new Uint8Array(a).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){r._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){r._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){r._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return d(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 n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,i.assert)(n,"_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 n=this._fullRequestReader;n&&n.onProgress&&n.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,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new v(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var n=new g(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=p;var v=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,e),this._stream=t,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,a=u(this._queuedChunks);try{for(a.s();!(i=a.n()).done;){var o=i.value;this._loaded+=o.byteLength}}catch(s){a.e(s)}finally{a.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=s(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)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 n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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}(),g=function(){function e(t,n,r){h(this,e),this._stream=t,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return d(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.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(){var e=s(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)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 n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var r=n(5);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function l(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];y(this,e),this.isRenderable=n,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,this.annotationStorage=t.annotationStorage,n&&(this.container=this._createContainer(r))}return w(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,n=this.page,r=this.viewport,a=document.createElement("section"),o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);var u=i.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(a.style.transform="matrix(".concat(r.transform.join(","),")"),a.style.transformOrigin="-".concat(u[0],"px -").concat(u[1],"px"),!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var l=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(l>0||c>0){var h="".concat(l,"px / ").concat(c,"px");a.style.borderRadius=h}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid";break;default:break}t.color?a.style.borderColor=i.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left="".concat(u[0],"px"),a.style.top="".concat(u[1],"px"),a.style.width="".concat(o,"px"),a.style.height="".concat(s,"px"),a}},{key:"_createPopup",value:function(e,t,n){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var r=new L({container:e,trigger:t,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}),i=r.render();i.style.left=e.style.width,e.appendChild(i)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),x=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,r)}return w(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,n=document.createElement("a");return e.url?(0,r.addLinkAttributes)(n,{url:e.url,target:e.newWindow?r.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(n,e.action):this._bindLink(n,e.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),n}(_),k=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r)}return w(n,[{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}}]),n}(_),C=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){return this.container}}]),n}(_),P=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,r)}return w(n,[{key:"render",value:function(){var e=["left","center","right"],t=this.annotationStorage,n=this.data.id;this.container.className="textWidgetAnnotation";var r=null;if(this.renderInteractiveForms){var i=t.getOrCreateValue(n,this.data.fieldValue);if(this.data.multiLine?(r=document.createElement("textarea"),r.textContent=i):(r=document.createElement("input"),r.type="text",r.setAttribute("value",i)),r.addEventListener("input",(function(e){t.setValue(n,e.target.value)})),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){var a=this.data.rect[2]-this.data.rect[0],o=a/this.data.maxLen;r.classList.add("comb"),r.style.letterSpacing="calc(".concat(o,"px - 1ch)")}}else{r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";var s=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(s=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(r,s)}return null!==this.data.textAlignment&&(r.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(r),this.container}},{key:"_setTextStyle",value:function(e,t){var n=e.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",t){var r="normal";t.black?r="900":t.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'.concat(t.loadedName,'", '):"",a=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+a}}}]),n}(C),E=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return w(n,[{key:"render",value:function(){var e=this.annotationStorage,t=this.data,n=t.id,r=e.getOrCreateValue(n,t.fieldValue&&"Off"!==t.fieldValue);this.container.className="buttonWidgetAnnotation checkBox";var i=document.createElement("input");return i.disabled=t.readOnly,i.type="checkbox",i.name=this.data.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",(function(t){e.setValue(n,t.target.checked)})),this.container.appendChild(i),this.container}}]),n}(C),R=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return w(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=this.annotationStorage,t=this.data,n=t.id,r=e.getOrCreateValue(n,t.fieldValue===t.buttonValue),i=document.createElement("input");return i.disabled=t.readOnly,i.type="radio",i.name=t.fieldName,r&&i.setAttribute("checked",!0),i.addEventListener("change",(function(t){var r,i=t.target.name,a=u(document.getElementsByName(i));try{for(a.s();!(r=a.n()).done;){var o=r.value;o!==t.target&&e.setValue(o.parentNode.getAttribute("data-annotation-id"),!1)}}catch(s){a.e(s)}finally{a.f()}e.setValue(n,t.target.checked)})),this.container.appendChild(i),this.container}}]),n}(C),T=function(e){f(n,e);var t=p(n);function n(){return y(this,n),t.apply(this,arguments)}return w(n,[{key:"render",value:function(){var e=o(m(n.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),n}(x),I=function(e){f(n,e);var t=p(n);function n(e){return y(this,n),t.call(this,e,e.renderInteractiveForms)}return w(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=this.annotationStorage,t=this.data.id;e.getOrCreateValue(t,this.data.fieldValue.length>0?this.data.fieldValue[0]:null);var n=document.createElement("select");n.disabled=this.data.readOnly,n.name=this.data.fieldName,this.data.combo||(n.size=this.data.options.length,this.data.multiSelect&&(n.multiple=!0));var r,i=u(this.data.options);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=document.createElement("option");o.textContent=a.displayValue,o.value=a.exportValue,this.data.fieldValue.includes(a.exportValue)&&o.setAttribute("selected",!0),n.appendChild(o)}}catch(s){i.e(s)}finally{i.f()}return n.addEventListener("input",(function(n){var r=n.target.options,i=r[r.selectedIndex].value;e.setValue(t,i)})),this.container.appendChild(n),this.container}}]),n}(C),O=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!(!e.data.title&&!e.data.contents);return t.call(this,e,r)}return w(n,[{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,'"]'),n=this.layer.querySelector(t);if(!n)return this.container;var r=new L({container:this.container,trigger:n,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),i=parseFloat(n.style.left),a=parseFloat(n.style.width);return this.container.style.transformOrigin="-".concat(i+a,"px -").concat(n.style.top),this.container.style.left="".concat(i+a,"px"),this.container.appendChild(r.render()),this.container}}]),n}(_),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 w(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var n=document.createElement("div");n.className="popup";var a=this.color;if(a){var o=e*(255-a[0])+a[0],s=e*(255-a[1])+a[1],u=e*(255-a[2])+a[2];n.style.backgroundColor=i.Util.makeCssRgb(0|o,0|s,0|u)}var l=document.createElement("h1");l.textContent=this.title,n.appendChild(l);var c=r.PDFDateString.toDateObject(this.modificationDate);if(c){var h=document.createElement("span");h.textContent="{{date}}, {{time}}",h.dataset.l10nId="annotation_date_string",h.dataset.l10nArgs=JSON.stringify({date:c.toLocaleDateString(),time:c.toLocaleTimeString()}),n.appendChild(h)}var f=this._formatContents(this.contents);return n.appendChild(f),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)),n.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(n),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),r=0,i=n.length;r0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),M=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),D=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),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"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,e),this.container}}]),n}(_),N=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",i/2),a.setAttribute("y",i/2),a.setAttribute("width",t-i),a.setAttribute("height",n-i),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}]),n}(_),F=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],n=e.rect[3]-e.rect[1],r=this.svgFactory.create(t,n),i=e.borderStyle.width,a=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",t/2),a.setAttribute("cy",n/2),a.setAttribute("rx",t/2-i/2),a.setAttribute("ry",n/2-i/2),a.setAttribute("stroke-width",i||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","none"),r.appendChild(a),this.container.append(r),this._createPopup(this.container,a,e),this.container}}]),n}(_),j=function(e){f(n,e);var t=p(n);function n(e){var r;y(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=t.call(this,e,i,!0),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return w(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),a=[],o=u(t.vertices);try{for(o.s();!(e=o.n()).done;){var s=e.value,l=s.x-t.rect[0],c=t.rect[3]-s.y;a.push(l+","+c)}}catch(f){o.e(f)}finally{o.f()}a=a.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",a),h.setAttribute("stroke-width",t.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),i.appendChild(h),this.container.append(i),this._createPopup(this.container,h,t),this.container}}]),n}(_),B=function(e){f(n,e);var t=p(n);function n(e){var r;return y(this,n),r=t.call(this,e),r.containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(j),U=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),W=function(e){f(n,e);var t=p(n);function n(e){var r;y(this,n);var i=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=t.call(this,e,i,!0),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return w(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=this.svgFactory.create(n,r),a=u(t.inkLists);try{for(a.s();!(e=a.n()).done;){var o,s=e.value,l=[],c=u(s);try{for(c.s();!(o=c.n()).done;){var h=o.value,f=h.x-t.rect[0],d=t.rect[3]-h.y;l.push("".concat(f,",").concat(d))}}catch(v){c.e(v)}finally{c.f()}l=l.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),i.appendChild(p)}}catch(v){a.e(v)}finally{a.f()}return this.container.append(i),this.container}}]),n}(_),V=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),z=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),G=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),H=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),q=function(e){f(n,e);var t=p(n);function n(e){y(this,n);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,r,!0)}return w(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(_),Q=function(e){f(n,e);var t=p(n);function n(e){var a;y(this,n),a=t.call(this,e,!0);var o=a.data.file,s=o.filename,u=o.content;return a.filename=(0,r.getFilenameFromUrl)(s),a.content=u,a.linkService.eventBus&&a.linkService.eventBus.dispatch("fileattachmentannotation",{source:g(a),id:(0,i.stringToPDFString)(s),filename:s,content:u}),a}return w(n,[{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(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}]),n}(_),Y=function(){function e(){y(this,e)}return w(e,null,[{key:"render",value:function(e){var t,n=[],o=[],s=u(e.annotations);try{for(s.s();!(t=s.n()).done;){var l=t.value;l&&(l.annotationType!==i.AnnotationType.POPUP?n.push(l):o.push(l))}}catch(p){s.e(p)}finally{s.f()}o.length&&n.push.apply(n,o);for(var c=0,h=n;c1)p=!0;else if(t.transform[0]!==t.transform[3]){var v=Math.abs(t.transform[0]),g=Math.abs(t.transform[3]);v!==g&&Math.max(v,g)/Math.min(v,g)>1.5&&(p=!0)}if(p&&(l.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(a,o),e._textContentStream&&e._layoutText(a),e._enhanceTextSelection){var A=1,m=0;0!==u&&(A=Math.cos(u),m=Math.sin(u));var y,b,w=(l.vertical?t.height:t.width)*e._viewport.scale,S=f;0!==u?(y=[A,m,-m,A,c,h],b=r.Util.getAxialAlignedBoundingBox([0,0,w,S],y)):b=[c,h,c+w,h+S],e._bounds.push({left:b[0],top:b[1],right:b[2],bottom:b[3],div:a,size:[w,S],m:y})}}function a(t){if(!t._canceled){var n=t._textDivs,r=t._capability,i=n.length;if(i>e)return t._renderingDone=!0,void r.resolve();if(!t._textContentStream)for(var a=0;a0&&(r=r?Math.min(a,r):a)}return r}function s(e){for(var t=e._bounds,n=e._viewport,i=u(n.width,n.height,t),a=0;a=0&&r[a].start>=e.y2)a--;var o,s,u=-1/0;for(o=t;o<=a;o++){var l;n=r[o],i=n.boundary,l=i.x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New,l>u&&(u=l)}for(e.x1New=u,o=t;o<=a;o++)n=r[o],i=n.boundary,void 0===i.x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=u:i.x2New>u&&(i.x2New=Math.max(u,i.x2));var c=[],h=null;for(o=t;o<=a;o++){n=r[o],i=n.boundary;var f=i.x2>e.x2?i:e;h===f?c[c.length-1].end=n.end:(c.push({start:n.start,end:n.end,boundary:f}),h=f)}for(r[t].start=0&&r[s].start>=i.y1;s--)d=r[s].boundary===i;for(s=a+1;!d&&s0&&(t.scale=t.canvasWidth/s,n="scaleX(".concat(t.scale,")"))}0!==t.angle&&(n="rotate(".concat(t.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,n=(0,r.createPromiseCapability)(),i=Object.create(null),o=this._document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),n.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var l=function e(){t._reader.read().then((function(r){var a=r.value,o=r.done;o?n.resolve():(Object.assign(i,a.styles),t._processItems(a.items,i),e())}),n.reject)};this._reader=this._textContentStream.getReader(),l()}n.promise.then((function(){i=null,e?t._renderTimer=setTimeout((function(){a(t),t._renderTimer=null}),e):a(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(s(this),this._bounds=null);for(var t=[],n=[],r=0,i=this._textDivs.length;r0?(n.push("".concat(o.paddingTop,"px")),t.push("translateY(".concat(-o.paddingTop,"px)"))):n.push(0),o.paddingRight>0?n.push("".concat(o.paddingRight/o.scale,"px")):n.push(0),o.paddingBottom>0?n.push("".concat(o.paddingBottom,"px")):n.push(0),o.paddingLeft>0?(n.push("".concat(o.paddingLeft/o.scale,"px")),t.push("translateX(".concat(-o.paddingLeft/o.scale,"px)"))):n.push(0),a.style.padding=n.join(" "),t.length&&(a.style.transform=t.join(" "))):(a.style.padding=null,a.style.transform=o.originalTransform))}}}},h}();t.renderTextLayer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(5),i=n(1),a=n(7);function o(e){return l(e)||u(e)||v(e)||s()}function s(){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 u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return g(e)}function c(e,t){return d(e)||f(e,t)||v(e,t)||h()}function h(){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 f(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(u){i=!0,a=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function d(e){if(Array.isArray(e))return e}function p(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function v(e,t){if(e){if("string"===typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>1&2147483647:o>>1&2147483647;n[i]=o}function u(e,t,r){for(var i=-1,a=t;a>>8^s}return-1^i}function l(e,t,n,r){var i=r,a=t.length;n[i]=a>>24&255,n[i+1]=a>>16&255,n[i+2]=a>>8&255,n[i+3]=255&a,i+=4,n[i]=255&e.charCodeAt(0),n[i+1]=255&e.charCodeAt(1),n[i+2]=255&e.charCodeAt(2),n[i+3]=255&e.charCodeAt(3),i+=4,n.set(t,i),i+=t.length;var o=u(n,r+4,i);n[i]=o>>24&255,n[i+1]=o>>16&255,n[i+2]=o>>8&255,n[i+3]=255&o}function c(e,t,n){for(var r=1,i=0,a=t;a=8?e:Buffer.from(e);var n=__webpack_require__(9).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(i){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+i)}return f(e)}function f(e){var t=e.length,n=65535,r=Math.ceil(t/n),i=new Uint8Array(2+t+5*r+4),a=0;i[a++]=120,i[a++]=156;var o=0;while(t>n)i[a++]=0,i[a++]=255,i[a++]=255,i[a++]=0,i[a++]=0,i.set(e.subarray(o,o+n),a),a+=n,o+=n,t-=n;i[a++]=1,i[a++]=255&t,i[a++]=t>>8&255,i[a++]=255&~t,i[a++]=(65535&~t)>>8&255,i.set(e.subarray(o),a),a+=e.length-o;var s=c(e,0,e.length);return i[a++]=s>>24&255,i[a++]=s>>16&255,i[a++]=s>>8&255,i[a++]=255&s,i}function d(n,i,a,o){var s,u,c,f=n.width,d=n.height,p=n.data;switch(i){case r.ImageKind.GRAYSCALE_1BPP:u=0,s=1,c=f+7>>3;break;case r.ImageKind.RGB_24BPP:u=2,s=8,c=3*f;break;case r.ImageKind.RGBA_32BPP:u=6,s=8,c=4*f;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+c)*d),g=0,A=0,m=0;m>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,s,u,0,0,0]),S=h(v),_=e.length+3*t+w.length+S.length,x=new Uint8Array(_),k=0;return x.set(e,k),k+=e.length,l("IHDR",w,x,k),k+=t+w.length,l("IDATA",S,x,k),k+=t+S.length,l("IEND",new Uint8Array(0),x,k),(0,r.createObjectURL)(x,"image/png",a)}return function(e,t,n){var i=void 0===e.kind?r.ImageKind.GRAYSCALE_1BPP:e.kind;return d(e,i,t,n)}}(),T=function(){function e(){A(this,e),this.fontSizeScale=1,this.fontWeight=x.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.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=x.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}(),I=0,O=0,L=0;t.SVGGraphics=b=function(){function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in A(this,e),this.svgFactory=new i.DOMSVGFactory,this.current=new T,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!a,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[o]]=o}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,n=e.fnArray,i=e.argsArray,a=0,o=n.length;a0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=P[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=E[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,n){this.current.strokeColor=r.Util.makeCssRgb(e,t,n)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,n){this.current.fillColor=r.Util.makeCssRgb(e,t,n),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,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),a=r.Util.applyTransform([0,0],i),o=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([t,0],i),u=r.Util.applyTransform([t,n],i),l=Math.min(a[0],o[0],s[0],u[0]),c=Math.min(a[1],o[1],s[1],u[1]),h=Math.max(a[0],o[0],s[0],u[0]),f=Math.max(a[1],o[1],s[1],u[1]),d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",l),d.setAttributeNS(null,"y",c),d.setAttributeNS(null,"width",h-l),d.setAttributeNS(null,"height",f-c),d.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(d)}},{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],n=e[2],i=e[3]||r.IDENTITY_MATRIX,a=c(e[4],4),s=a[0],u=a[1],l=a[2],h=a[3],f=e[5],d=e[6],p=e[7],v="shading".concat(L++),g=r.Util.applyTransform([s,u],i),A=c(g,2),m=A[0],y=A[1],b=r.Util.applyTransform([l,h],i),w=c(b,2),S=w[0],_=w[1],x=r.Util.singularValueDecompose2dScale(i),k=c(x,2),C=k[0],P=k[1],E=f*C,R=d*P,T=this.svgFactory.createElement("svg:pattern");T.setAttributeNS(null,"id",v),T.setAttributeNS(null,"patternUnits","userSpaceOnUse"),T.setAttributeNS(null,"width",E),T.setAttributeNS(null,"height",R),T.setAttributeNS(null,"x","".concat(m)),T.setAttributeNS(null,"y","".concat(y));var I=this.svg,O=this.transformMatrix,M=this.current.fillColor,D=this.current.strokeColor,N=this.svgFactory.create(S-m,_-y);if(this.svg=N,this.transformMatrix=i,2===p){var F=r.Util.makeCssRgb.apply(r.Util,o(t));this.current.fillColor=F,this.current.strokeColor=F}return this.executeOpTree(this.convertOpList(n)),this.svg=I,this.transformMatrix=O,this.current.fillColor=M,this.current.strokeColor=D,T.appendChild(N.childNodes[0]),this.defs.appendChild(T),"url(#".concat(v,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,n="shading".concat(L++),i=e[3];switch(e[1]){case"axial":var a=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",a[0]),t.setAttributeNS(null,"y1",a[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],u=e[5],l=e[6],c=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",n),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",u[0]),t.setAttributeNS(null,"cy",u[1]),t.setAttributeNS(null,"r",c),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",l);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var h,f=p(i);try{for(f.s();!(h=f.n()).done;){var d=h.value,v=this.svgFactory.createElement("svg:stop");v.setAttributeNS(null,"offset",d[0]),v.setAttributeNS(null,"stop-color",d[1]),t.appendChild(v)}}catch(g){f.e(g)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(n,")");case"Mesh":return(0,r.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 n,i=this.current,a=i.x,o=i.y,s=[],u=0,l=p(e);try{for(l.s();!(n=l.n()).done;){var c=n.value;switch(0|c){case r.OPS.rectangle:a=t[u++],o=t[u++];var h=t[u++],f=t[u++],d=a+h,v=o+f;s.push("M",S(a),S(o),"L",S(d),S(o),"L",S(d),S(v),"L",S(a),S(v),"Z");break;case r.OPS.moveTo:a=t[u++],o=t[u++],s.push("M",S(a),S(o));break;case r.OPS.lineTo:a=t[u++],o=t[u++],s.push("L",S(a),S(o));break;case r.OPS.curveTo:a=t[u+4],o=t[u+5],s.push("C",S(t[u]),S(t[u+1]),S(t[u+2]),S(t[u+3]),S(a),S(o)),u+=6;break;case r.OPS.curveTo2:s.push("C",S(a),S(o),S(t[u]),S(t[u+1]),S(t[u+2]),S(t[u+3])),a=t[u+2],o=t[u+3],u+=4;break;case r.OPS.curveTo3:a=t[u+2],o=t[u+3],s.push("C",S(t[u]),S(t[u+1]),S(a),S(o),S(a),S(o)),u+=4;break;case r.OPS.closePath:s.push("Z");break}}}catch(g){l.e(g)}finally{l.f()}s=s.join(" "),i.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?s=i.path.getAttributeNS(null,"d")+s:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(i.path)),i.path.setAttributeNS(null,"d",s),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(a,o)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(I++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",_(this.transformMatrix));var r=e.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),n.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=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,n=p(e);try{for(n.s();!(t=n.n()).done;){var i=c(t.value,2),a=i[0],o=i[1];switch(a){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,r.warn)("Unimplemented graphic state operator ".concat(a));break}}}catch(s){n.e(s)}finally{n.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,n=this.current,r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",S(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",S(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(S).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",S(t*n.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=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var n=e.width,r=e.height,i=R(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",S(n)),a.setAttributeNS(null,"height",S(r)),this.current.element=a,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(C,"xlink:href",i),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",S(-r)),o.setAttributeNS(null,"width",S(n)+"px"),o.setAttributeNS(null,"height",S(r)+"px"),o.setAttributeNS(null,"transform","scale(".concat(S(1/n)," ").concat(S(-1/r),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,n=e.width,r=e.height,i=t.fillColor;t.maskId="mask".concat(O++);var a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",S(n)),o.setAttributeNS(null,"height",S(r)),o.setAttributeNS(null,"fill",i),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,a)}},{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 n=t[2]-t[0],r=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",S(n)),i.setAttributeNS(null,"height",S(r)),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),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",_(e.transform)),t.appendChild(r),this.svg=r,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",_(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=o(n(2)),i=n(5),a=n(220);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function u(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},l(e,t)}function c(e){var t=d();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(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 d(){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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function v(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){v(a,r,i,o,s,"next",e)}function s(e){v(a,r,i,o,s,"throw",e)}o(void 0)}))}}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*i)return o;if(a||!n)return o;if("bytes"!==t("Accept-Ranges"))return o;var u=t("Content-Encoding")||"identity";return"identity"!==u||(o.allowRangeRequests=!0),o}function o(e){var t=e("Content-Disposition");if(t){var n=(0,i.getFilenameFromContentDispositionHeader)(t);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(r){}if(/\.pdf$/i.test(n))return n}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function u(e){return 200===e||206===e}},function(e,t,n){"use strict";function r(e,t){return u(e)||s(e,t)||a(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 a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var i=r.status||f,a=i===f&&n.expectedStatus===d;if(a||i===n.expectedStatus){var o=p(r);if(i===d){var s=r.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(u[1],10),chunk:o})}else o?n.onDone({begin:0,chunk:o}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),g=function(){function e(t){l(this,e),this._source=t,this._manager=new v(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(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,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new A(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var n=new m(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=g;var A=function(){function e(t,n){l(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=(0,i.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.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 h(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=function(e){return t.getResponseHeader(e)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,o=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),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,n=(0,a.createResponseStatusError)(e,t);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach((function(e){e.reject(n)})),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(){var e=u(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)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 n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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}(),m=function(){function e(t,n,r){l(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return h(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var n=this._requests.shift();n.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(){var e=u(r["default"].mark((function e(){var t,n;return r["default"].wrap((function(e){while(1)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 n=(0,i.createPromiseCapability)(),this._requests.push(n),e.abrupt("return",n.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=o(n(2)),i=n(5),a=n(220);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,u,"next",e)}function u(e){s(a,r,i,o,u,"throw",e)}o(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n0?r("vue-seamless-scroll",{staticClass:"seamless-warp",attrs:{data:e.alarmListData,"class-option":e.classOption}},[r("ul",{staticClass:"attentionInfo"},e._l(e.alarmListData,(function(t,i){return r("li",{key:i,style:{background:i%2==0?"rgba(1,34,85,0.4)":"transparnt"}},[r("div",{staticClass:"infolist"},[r("div",{staticClass:"attentionInfo_title",staticStyle:{color:"#ed6d17"}},[r("img",{attrs:{src:n("3b52"),alt:""}}),e._v(" 告警 "),r("span",{staticStyle:{color:"#fff",float:"right","margin-right":"10%"}},[e._v(e._s(t.time))])]),r("p",[e._v(" "+e._s(t.bianwei)),r("span",{staticStyle:{color:"#fff",float:"right"}},[e._v("发生值:"+e._s(t.fsz))])]),r("p",[e._v(e._s(t.dizhi))]),r("p",[e._v(" "+e._s(t.zhan)),r("span",{staticStyle:{color:"#fff",float:"right"}},[e._v("侧面门禁:"+e._s(t.cemeng))])])]),r("div",{staticClass:"jiankong"},[r("img",{staticStyle:{width:"35px",height:"32px"},attrs:{src:n("b29f"),alt:""},on:{click:function(t){return e.openVideo()}}})])])})),0)]):e._e()],1)]):e._e(),6==e.menusActive?r("div",{staticClass:"record"},[r("div",{staticClass:"toptitle"},[e._v("实时事件记录")]),r("div",{staticClass:"info"},[r("div",{staticClass:"topList"},e._l(e.record,(function(t,i){return r("div",{key:i,staticClass:"jilu"},[r("div",{staticClass:"warnJilu"},[r("div",{staticClass:"attentionInfo_title",staticStyle:{color:"red"}},[r("img",{attrs:{src:n("096d"),alt:""}}),e._v(" 事件 ")]),r("p",{staticStyle:{color:"#ffffff","margin-top":"10px","font-size":"15px"}},[e._v(" "+e._s(t.operation)+" "+e._s(t.operationDate)+" ")])])])})),0),r("div",{staticClass:"select"},[r("div",{staticClass:"seSearch"},[e._v("查询")]),r("div",{staticClass:"changeselect"},[r("el-select",{attrs:{placeholder:"请选择"},on:{change:e.searchChange},model:{value:e.chaValue,callback:function(t){e.chaValue=t},expression:"chaValue"}},e._l(e.optionsOpen,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)]),r("div",{staticClass:"bottomList"},e._l(e.siteRecord,(function(t,i){return r("div",{key:i,staticClass:"jilu"},[r("div",{staticClass:"warnJilu"},[r("div",{staticClass:"attentionInfo_title",staticStyle:{color:"red"}},[r("img",{attrs:{src:n("096d"),alt:""}}),e._v(" 事件 ")]),r("p",{staticStyle:{color:"#ffffff","margin-top":"10px","font-size":"15px"}},[e._v(" "+e._s(t.operation)+" "+e._s(t.operationDate)+" ")])])])})),0),r("div",{staticClass:"select"},[r("div",{staticClass:"seSearch"},[e._v("记录输入")])]),r("div",{staticClass:"radio",staticStyle:{width:"100%",display:"flex","justify-content":"space-around",padding:"0 10px","box-sizing":"border-box",margin:"15px 0px"}},[r("el-radio",{staticStyle:{margin:"0"},attrs:{label:"1"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v(e._s(e.radioVal1))]),r("el-radio",{staticStyle:{margin:"0"},attrs:{label:"2"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v(e._s(e.radioVal2))]),r("el-radio",{staticStyle:{margin:"0"},attrs:{label:"3"},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v(e._s(e.radioVal3))])],1),r("div",{staticClass:"sumbit"},[r("div",{staticClass:"rightsub",on:{click:function(t){return e.handleUpate("2")}}},[e._v("提交")])])])]):e._e(),7==e.menusActive?r("div",{staticClass:"notice"},[r("div",{staticClass:"toptitle"},[e._v("用电检查结果通知书")]),r("div",{staticClass:"info"},[r("div",{staticClass:"blurInp"},[r("span",{staticStyle:{"margin-right":"10px"}},[e._v("用户:")]),r("el-input",{attrs:{placeholder:"侵华日军南京大屠杀纪念馆"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}})],1),r("div",{staticClass:"blurInp"},[r("span",{staticStyle:{"margin-right":"10px"}},[e._v("户号:")]),r("el-input",{attrs:{placeholder:"3200267442021"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}})],1),r("div",{staticClass:"blurInp"},[r("span",{staticStyle:{"margin-right":"10px"}},[e._v("地址:")]),r("el-input",{attrs:{placeholder:"南京市建邺区水西门大街418号"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}})],1),r("p",{staticStyle:{color:"#ffffff","line-height":"23px","font-size":"14px","margin-bottom":"5px"}},[e._v(" 经检查,发现贵单位电力使用中存在下列问题:"),r("br")]),r("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[r("el-checkbox",{attrs:{label:"1"}},[e._v("有资质电工配置不全")]),r("el-checkbox",{attrs:{label:"2"}},[e._v("未能落实值班电工24小时值班")]),r("el-checkbox",{attrs:{label:"3"}},[e._v("运行管理规程、制度与台账记录不全")]),r("el-checkbox",{attrs:{label:"4"}},[e._v("高、低压配电柜未使用双重编号")]),r("el-checkbox",{attrs:{label:"5"}},[e._v("高、低压配电柜双重编号不全")]),r("el-checkbox",{attrs:{label:"6"}},[e._v("现场无模拟图版")]),r("el-checkbox",{attrs:{label:"7"}},[e._v("模拟图版与现场不一致")]),r("el-checkbox",{attrs:{label:"8"}},[e._v("电气设备预防性试验超周期")]),r("el-checkbox",{attrs:{label:"9"}},[e._v("电气设备预防性试验项目不全")]),r("el-checkbox",{attrs:{label:"10"}},[e._v("继电保护装置未按期定校")]),r("el-checkbox",{attrs:{label:"11"}},[e._v("电气设备未定期清扫")]),r("el-checkbox",{attrs:{label:"12"}},[e._v("无功补偿装置运行异常")]),r("el-checkbox",{attrs:{label:"13"}},[e._v("防小动物措施不完善")]),r("el-checkbox",{attrs:{label:"14"}},[e._v("备品备件不全")]),r("el-checkbox",{attrs:{label:"15"}},[e._v("两票使用情况不规范")]),r("el-checkbox",{attrs:{label:"16"}},[e._v("安全工器具配置不全")]),r("el-checkbox",{attrs:{label:"17"}},[e._v("安全工器具试验超周期")]),r("el-checkbox",{attrs:{label:"18"}},[e._v("电房脏乱,通道不畅通")]),r("el-checkbox",{attrs:{label:"19"}},[e._v("设备应按季节做好防雷、防污闪、防潮和通风散热")]),r("el-checkbox",{attrs:{label:"20"}},[e._v("加强电房身边巡视 发现缺陷及时处理")])],1),r("p",{staticStyle:{color:"#ffffff","line-height":"23px","font-size":"14px",margin:"10px 0"}},[e._v(" 其他问题: ")]),r("div",{staticClass:"textarea"},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.textarea,callback:function(t){e.textarea=t},expression:"textarea"}})],1),r("p",{staticStyle:{color:"#ffffff","line-height":"23px","font-size":"15px","margin-bottom":"20px"}},[e._v(" 检查结论:"),r("br"),e._v(" 对于以上存在的问题和建议,希望能引起贵单位的重视,尽快安排整改 ")]),r("div",{staticClass:"blurInp"},[r("div",{staticClass:"leftInp"},[r("span",{staticStyle:{"margin-right":"5px",width:"96px"}},[e._v("用电检查员:")]),r("el-input",{attrs:{placeholder:""},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}})],1),r("div",{staticClass:"rightInp"},[r("span",{staticStyle:{"margin-right":"10px",width:"152px"}},[e._v("用户签收(盖章):")])])]),r("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[r("span",{staticStyle:{"margin-right":"10px",width:"132px",color:"#ffffff"}},[e._v("检查单位盖章:")]),r("p",{staticStyle:{color:"#ffffff","line-height":"23px","font-size":"14px"},domProps:{innerHTML:e._s("检查日期:     年     月    日")}})]),r("div",{staticClass:"sumbit"},[r("div",{staticClass:"leftsub"},[e._v("取消")]),r("div",{staticClass:"rightsub"},[e._v("提交")])])],1)]):e._e()]):e._e()])],1)],1),r("div",{staticClass:"btn",staticStyle:{"align-items":"center"},style:{"justify-content":1==e.htStatus?"space-around":"center"}},[1==e.htStatus?r("img",{attrs:{src:n("18b2"),alt:"",srcset:"",title:"全景浏览"},on:{click:function(t){return e.handleUnity()}}}):e._e(),1!=e.htStatus?r("img",{attrs:{src:n("e537"),alt:"",srcset:"",title:"3D展示"},on:{click:function(t){return e.handleHtweb()}}}):e._e(),1==e.htStatus?r("img",{attrs:{src:n("32c6"),alt:"",srcset:"",title:"人物定位"},on:{click:function(t){return e.personShow()}}}):e._e(),1==e.htStatus?r("img",{attrs:{src:n("7d41"),alt:"",srcset:"",title:"平面图"},on:{click:function(t){return e.handlefushi()}}}):e._e(),1==e.htStatus?r("img",{staticClass:"baodian",attrs:{src:n("eb96"),alt:"",srcset:"",title:"保电"},on:{click:function(t){return e.hanldetoukui()}}}):e._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.carChangeShow,expression:"carChangeShow"}],staticClass:"center"},[r("div",{staticClass:"close",on:{click:e.closeVideo}},[e._v("关闭")]),r("Center",{staticStyle:{width:"100%",height:"95%"},attrs:{dataSource:!1}})],1),r("div",{staticClass:"selectModel"},e._l(e.selectArr,(function(t,n){return r("div",{key:n,staticClass:"selectbtn",class:{active:e.routerActive==n},staticStyle:{color:"#fff"},on:{click:function(t){return e.handleSelect(n)}}},[e._v(" "+e._s(t)+" ")])})),0),r("transition",{attrs:{name:"homeleave"}}),r("div",{staticClass:"homexian"},[e.menuShow?r("img",{attrs:{src:n("afc9"),alt:""},on:{click:e.handleMenushow}}):e._e()]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.fileType,expression:"fileType"}],staticClass:"xianmodel1",staticStyle:{width:"30%",height:"80%",position:"absolute",background:"rgb(4, 35, 69)",top:"0",bottom:"0",left:"0",right:"0",margin:"auto","overflow-y":"scroll"}},[r("div",{staticClass:"top",staticStyle:{position:"fixed",width:"30%",height:"3%","font-size":"18px",padding:"5px 10px 0 0",color:"#fff","text-align":"right",cursor:"pointer","box-sizing":"border-box",background:"rgb(4, 35, 69, 0.7)","z-index":"999"},on:{click:e.handleClosepdf}},[e._v(" x ")]),e._l(e.numPages,(function(t){return r("pdf",{key:t,staticStyle:{top:"30px"},attrs:{page:t,src:e.file}})}))],2)],1)},o=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{color:"#ffffff",position:"absolute",top:"31px",left:"-43px",width:"92px",height:"42px"}},[r("img",{attrs:{src:n("dcb0")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{color:"#ffffff",position:"absolute",top:"109px",left:"62px"}},[r("div",{staticStyle:{position:"absolute",top:"-53px","z-index":"100",left:"-51px"}},[r("img",{attrs:{src:n("96dc")}})])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"absolute",top:"69px",left:"34px"}},[r("img",{attrs:{src:n("1cac")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"absolute",top:"69px",left:"34px"}},[r("img",{attrs:{src:n("28a9")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"absolute",top:"97px",left:"52px"}},[r("img",{attrs:{src:n("59f4")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{color:"#ffffff",position:"absolute",top:"55px"}},[r("img",{attrs:{src:n("489c")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{position:"absolute",top:"57px",left:"15px"}},[r("img",{attrs:{src:n("939b")}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"xian"},[r("div",{staticStyle:{position:"absolute",top:"168px",left:"-91px","z-index":"100"}},[r("img",{attrs:{src:n("c98a")}})]),r("div",{staticStyle:{position:"absolute",top:"175px",left:"115px","z-index":"100"}},[r("img",{attrs:{src:n("c98a")}})]),r("div",{staticStyle:{position:"absolute",top:"188px",left:"517px","z-index":"100"}},[r("img",{attrs:{src:n("c98a")}})]),r("div",{staticStyle:{position:"absolute",top:"231px",left:"467px","z-index":"100"}},[r("img",{attrs:{src:n("7801")}})])])}],s=(n("c975"),n("d81d"),n("fb6a"),n("b0c0"),n("4fad"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("5530")),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customDvScrollBoard"},[n("dv-scroll-board",{staticClass:"board",class:e.className,attrs:{headerBGC:"#0C3046",config:e.defaultconfig},on:{click:e.rowClick}})],1)},l=[],c={props:{className:{type:String,default:function(){return"css"}},config:{type:Object,default:function(){},required:!0}},data:function(){return{rowFloor:"",defaultconfig:Object(s["a"])({oddRowBGC:"#081E29",evenRowBGC:"transparent",waitTime:2e18,indexHeader:"序号",index:!0,header:["部门","楼层","房号","名称"],columnWidth:[50],rowNum:5,data:[]},this.config)}},watch:{config:function(e){this.defaultconfig.data=e,console.log("111",e)}},methods:{rowClick:function(e){console.log("rowClick",e.row[2]),this.rowFloor=e.row[2],this.$emit("rowFloor",this.rowFloor)}}},h=c,f=(n("51b8"),n("9506"),n("2877")),d=Object(f["a"])(h,u,l,!1,null,"1d886dfb",null),p=d.exports,v={dataSource1:[{key:"宗地实物ID",value:"010070000000000001182512"},{key:"宗地地址信息",value:"江苏省南京市鼓楼区上海路215号"},{key:"宗地取得时间",value:"2004年11月01日 "},{key:"宗地规划用途",value:"商业服务业设施用地"},{key:"土地性质",value:"自有"},{key:"土地使用权类型",value:"出让"},{key:"土地实际用途",value:"办公用房占地"},{key:"土地等级",value:"四级土地"},{key:"获得价格",value:"57575万元"},{key:"土地面积",value:"6611.1"},{key:"已使用面积",value:"6611.1"},{key:"闲置面积",value:"0"}],dataSource2:[{key:"是否有证",value:"是"},{key:"土地不动产证号",value:"宁鼓国用(2006)第03345号"},{key:"不动产单元号",value:"无"},{key:"土地所有权人",value:"国网江苏省电力有限公司"},{key:"宗地地号",value:"无"},{key:"宗地图",value:"无"},{key:"权证图",value:"无"},{key:"使用终止日期",value:"无"},{key:"土地实际持有人",value:"无"},{key:"附着建筑物数量",value:"1"},{key:"无证原因",value:"有证"}],dataSource3:[{key:"资产编码",value:"270100001441"},{key:"资产原值",value:"575750000元"},{key:"资产净值",value:"365760000元"},{key:"净值增加方式",value:"固定资产增加-基本建设"}],dataSource4:[{key:"实物管理部门",value:"后勤部"},{key:"总(分)部/各单位本部",value:"国网江苏电力"},{key:"地市公司/分支机构",value:"国网江苏电力本部"},{key:"县级电力公司/其他县级单位",value:"无"},{key:"使用保管部门",value:"后勤部"},{key:"地址信息",value:"江苏省南京市鼓楼区上海路215号"}],dataSource5:[{key:"房产编号",value:"1300025762"},{key:"来源",value:"自建"},{key:"房产分类",value:"调度控制用房"},{key:"房产类型",value:"运行调度控制楼"},{key:"建筑面积",value:"71177.16"},{key:"可使用面积",value:"71177.16"},{key:"总建筑层数",value:"38"},{key:"地上层数",value:"35"},{key:"地下层数",value:"3"},{key:"建成年份",value:"2004"},{key:"是否有证",value:"是"},{key:"房产(不动产)权证号",value:"宁房权证鼓初字第310990号"},{key:"房产证载人名称",value:"国网江苏省电力有限公司"}],dataSource6:[{key:"已使用面积",value:"71177.16"},{key:"自用面积",value:"71177.16"},{key:"出租面积",value:"0"},{key:"被占用面积",value:"0"},{key:"闲置面积",value:"0"},{key:"资产编码",value:"270100001441"},{key:"资产原值",value:"575750000元"},{key:"资产净值",value:"365760000元"},{key:"资产增加方式",value:"固定资产增加-基本建设"}]},g=n("1245"),A=n("8b55"),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),n("div",{staticClass:"search-middle"},[n("div",{staticClass:"search-container"},[n("el-input",{staticClass:"inputStyle",attrs:{type:"text",name:"",id:"cha",placeholder:"请输入部门点击查询"},model:{value:e.inputInfo.departnew,callback:function(t){e.$set(e.inputInfo,"departnew",t)},expression:"inputInfo.departnew"}}),n("button",{on:{click:function(t){return e.search()}}},[e._v("搜索")])],1)]),e._t("top"),e.dataSource?n("ul",e._l(e.dataSource,(function(t,r){return n("li",{key:r},[n("span",{staticClass:"left"},[e._v(e._s(t.key))]),n("span",{staticClass:"right"},[e._v(e._s(t.value))])])})),0):e._e()],2)},y=[],b={props:{title:{default:function(){return""},type:String,required:!0},valueData:{default:function(){return""},type:String,required:!0},dataSource:{default:function(){return!1},type:[Array,Boolean],required:!0},options:{default:function(){return!1},type:[Array,Boolean],required:!0}},data:function(){return{inputInfo:{departnew:"",jdnew:""}}},components:{},mounted:function(){},beforeDestroy:function(){},methods:{search:function(){this.$emit("inputData",this.inputInfo.departnew),this.$parent.sreach()}}},w=b,S=(n("7d7a"),Object(f["a"])(w,m,y,!1,null,"1baf20ec",null)),_=S.exports,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),e._t("top"),e.dataSource?n("ul",e._l(e.dataSource,(function(t,r){return n("li",{key:r},[n("span",{staticClass:"left"},[e._v(e._s(t.key))]),n("span",{staticClass:"right"},[e._v(e._s(t.value))])])})),0):e._e()],2)},k=[],C={props:{title:{default:function(){return""},type:String,required:!0},dataSource:{default:function(){return!1},type:[Array,Boolean],required:!0}},data:function(){return{}},components:{},mounted:function(){},beforeDestroy:function(){},methods:{}},P=C,E=(n("1a25"),Object(f["a"])(P,x,k,!1,null,"12058dba",null)),R=E.exports,T=n("bc3a"),I=n.n(T),O=n("c271"),L=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},M=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"center"}},[r("div",{staticClass:"tit"},[e._v("视频监控")]),r("div",{staticClass:"up"},[r("video",{staticStyle:{width:"100%",height:"100%","object-fit":"cover"},attrs:{src:n("6c9b"),autoplay:"",controls:""}})])])}],D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Echart",{attrs:{options:e.options,id:e.id,height:"100px",width:"100px"}})],1)},N=[],F=(n("a9e3"),n("33de")),j={data:function(){return{options:{}}},components:{Echart:F["a"]},props:{id:{type:String,required:!0,default:"chartRate"},tips:{type:Number,required:!0,default:50},colorObj:{type:Object,default:function(){return{textStyle:"#3fc0fb",series:{color:["#00bcd44a","transparent"],dataColor:{normal:"#03a9f4",shadowColor:"#97e2f5"}}}}}},watch:{tips:{handler:function(e){this.options={title:{text:1*e+"%",x:"center",y:"center",textStyle:{color:this.colorObj.textStyle,fontSize:16}},series:[{type:"pie",radius:["75%","80%"],center:["50%","50%"],hoverAnimation:!1,color:this.colorObj.series.color,label:{normal:{show:!1}},data:[{value:e,itemStyle:{normal:{color:this.colorObj.series.dataColor.normal,shadowBlur:10,shadowColor:this.colorObj.series.dataColor.shadowColor}}},{value:100-e}]}]}},immediate:!0,deep:!0}}},B=j,U=Object(f["a"])(B,D,N,!1,null,"747c515e",null),W=U.exports,V={data:function(){return{titleItem:[{title:"今年累计任务建次数",number:{number:[120],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}},{title:"本月累计任务次数",number:{number:[18],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}},{title:"今日累计任务次数",number:{number:[2],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}},{title:"今年失败任务次数",number:{number:[14],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}},{title:"今年成功任务次数",number:{number:[106],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}},{title:"今年达标任务个数",number:{number:[100],toFixed:1,textAlign:"left",content:"{nt}",style:{fontSize:26}}}],ranking:{data:[{name:"周口",value:55},{name:"南阳",value:120},{name:"西峡",value:78},{name:"驻马店",value:66},{name:"新乡",value:80},{name:"新乡2",value:80},{name:"新乡3",value:80},{name:"新乡4",value:80},{name:"新乡5",value:80},{name:"新乡6",value:80}],carousel:"single",unit:"人"},water:{data:[24,45],shape:"roundRect",formatter:"{value}%",waveNum:3},rate:[{id:"centerRate1",tips:60,colorData:{textStyle:"#3fc0fb",series:{color:["#00bcd44a","transparent"],dataColor:{normal:"#03a9f4",shadowColor:"#97e2f5"}}}},{id:"centerRate2",tips:40,colorData:{textStyle:"#67e0e3",series:{color:["#faf3a378","transparent"],dataColor:{normal:"#ff9800",shadowColor:"#fcebad"}}}}]}},mounted:function(){var e=document.getElementById("videoElement");console.log(e,"111")},components:{CenterChart:W}},z=V,G=(n("1fea"),Object(f["a"])(z,L,M,!1,null,"0dd05c26",null)),H=G.exports,q=n("a939"),Q=n.n(q),Y={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(e){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(e){var t="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0;";return e("div",{style:t+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 100000px; height: 100000px;"})]),e("div",{style:t,on:{scroll:this.update}},[e("div",{style:n+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var e=function(){this.update(),t()}.bind(this),t=function(){this.$el.detachEvent("onresize",e),this.$off("resizeSensorBeforeDestroy",t)}.bind(this);this.$el.attachEvent("onresize",e),this.$on("resizeSensorBeforeDestroy",t),this.reset()}}},J=Y,X=(n("c0ef"),Object(f["a"])(J,r,i,!1,null,null,null)),Z=X.exports,K=function(e){var t=e.createLoadingTask,n=e.PDFJSWrapper;return{createLoadingTask:t,render:function(e){return e("span",{attrs:{style:"position: relative; display: block"}},[e("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),e("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),e(Z,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(e){if(null!==this.$el.parentNode&&(0!==e.width||0!==e.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var t=this.pdf.getResolutionScale();(t<.85||t>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(e,t){this.pdf.printPage(e,t)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",(function(){this.pdf.loadPage(this.page,this.rotate)})),this.$on("page-size",(function(e,t){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(t/e)+"px"})),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}};if("server"!==Object({NODE_ENV:"production",BASE_URL:""}).VUE_ENV){var $=n("a068").default,ee=n("4383");if("undefined"!==typeof window&&"Worker"in window&&-1===navigator.appVersion.indexOf("MSIE 10")){var te=n("2639");ee.GlobalWorkerOptions.workerPort=new te}var ne=K($(ee))}else ne=K({});var re,ie,ae=ne,oe=ae,se=(n("f9a3"),Object(f["a"])(oe,re,ie,!1,null,null,null)),ue=se.exports,le=n("4ec3"),ce={mixins:[g["a"]],data:function(){return Object(s["a"])({blueQiuShow:!0,redQiuShow:!1,redQiuShow1:!1,redQiuShow2:!1,jiantoufan:!1,menuShow:!1,record:[{id:"",operation:"",operationDate:""}],siteRecord:[{operation:"",operationDate:"",id:""}],yiciSrc:"http://221.226.19.85:10123/info.html?primaryGraphId=1874E7D1D0D0AE1F",currentPage:0,pageCount:0,fileType:!1,file:"",numPages:1,infothingsShow:!0,environmentShow:!0,routerActive:0,checkList:[],yunweiArr1:[{value:"1",label:"设备台账查询"}],yunweiArr2:[{value:"2",label:"10KV变压器试验记录"},{value:"6",label:"10KV真空断路器试验记录"},{value:"7",label:"低压交流耐压试验记录1"},{value:"8",label:"电缆试验记录"}],yunweiArr3:[{value:"3",label:"维修记录查询"}],yunweiArr4:[{value:"4",label:"值班人员资质"}],yunweiArr5:[{value:"5",label:"巡检记录查询"},{value:"51",label:"电检查结果通知书"}],homeActive:!0,input:"",textarea:"",openvalue:"设备台账查询",openvalue1:"试验记录查询",openvalue2:"维修记录查询",openvalue3:"值班人员资质",openvalue4:"巡检记录查询",oneValue:1,chaValue:"",radio:"",radioVal1:"1#进线失电",radioVal2:"2#进线失电",radioVal3:"1#、2#进线同时失电",optionsOpen:[{value:1,label:"102"}],oneOptions:[{value:1,label:"10kV 一次系统图"},{value:2,label:"400V一次系统图"}],tableData:[],css_list:["css1","css2","css3","css4","css5","css6","css7","css8"],menusActive:0,menubg:{url:n("3d6a"),actUrl:n("bd35")},menusArr:[{pic:n("05b1"),actPic:n("0281"),text:"配电房信息"},{pic:n("4cad"),actPic:n("c887"),text:"开关信息"},{pic:n("59d4"),actPic:n("90bd"),text:"一次系统图"},{pic:n("cbb1"),actPic:n("5ca5"),text:"环境信息"},{pic:n("3304"),actPic:n("d345"),text:"运维档案"},{pic:n("208d"),actPic:n("2bd9"),text:"告警信息"},{pic:n("9b427"),actPic:n("c546"),text:"事件记录"},{pic:n("1b9d"),actPic:n("1080"),text:"检查通知单"},{pic:n("db34"),actPic:n("e38b"),text:"VR全景"}],popInfoShow:!1,popInfoShow1:!1,popInfoShow2:!1,popInfoShow3:!1,popInfoShow4:!1,popInfoShow5:!1,xianShow:!1,mapShow:!1,mapShow1:!1,tableShow:!1,getBg:["list1","list2","list3","list4"],infoArr:[{path:n("85ee"),name:"站房名称",text:"新馆"},{path:n("cb49"),name:"站房地址",text:"南京市建邺区水西门大街418号"},{path:n("0131"),name:"变压器数量",text:"2"},{path:n("7420"),name:"变压器容量",text:"3200kVA"},{path:n("a417"),name:"电气联系人",text:"李工"},{path:n("ae67"),name:"联系电话",text:"18061776824"},{path:n("44c8"),name:"投运时间",text:"2015.11.12"},{path:n("85ee"),name:"上次试验时间",text:"2011.11.12"}],infoArr1:[{path:n("85ee"),name:"站房名称",text:"旧馆"},{path:n("cb49"),name:"站房地址",text:"南京市建邺区水西门大街418号"},{path:n("0131"),name:"变压器数量",text:"2"},{path:n("7420"),name:"变压器容量",text:"1600kVA"},{path:n("a417"),name:"电气联系人",text:"李工"},{path:n("ae67"),name:"联系电话",text:"18061776824"},{path:n("44c8"),name:"投运时间",text:"2007.11.12"},{path:n("85ee"),name:"上次试验时间",text:"2011.11.12"}],environmentArr:[{path:n("47b5"),name:"门禁1"}],eniorArr:[{path:n("47b5"),name:"门禁1",nametwo:"温度(℃)",value:"26",fieldName:"doorState",fieldNameTwo:"temperature"},{path:n("47b5"),name:"门禁2",nametwo:"湿度(%RH)",value:"40.5",fieldName:"doorState",fieldNameTwo:"temperature"},{path:n("f510"),name:"烟感1",nametwo:"水浸",value:n("11bc"),fieldName:"smokeSensation",fieldNameTwo:"waterout"},{path:n("f510"),name:"烟感2",nametwo:"",value:"",fieldName:"smokeSensation",fieldNameTwo:""},{path:n("f510"),name:"烟感3",nametwo:"",value:"",fieldName:"smokeSensation",fieldNameTwo:""},{path:n("f510"),name:"烟感4",nametwo:"",value:"",fieldName:"smokeSensation"}],eniorArr1:[{path:n("47b5"),name:"门禁1",nametwo:"高压侧温度(℃)",value:"26",fieldName:"doorState",fieldNameTwo:"temperature"},{path:n("47b5"),name:"门禁2",nametwo:"高压侧湿度(%RH)",value:"40.5",fieldName:"doorState",fieldNameTwo:"temperature"},{path:n("f510"),name:"烟感1",nametwo:"低压侧温度(℃)",value:"24.1",fieldName:"doorState",fieldNameTwo:"temperature"},{path:n("f510"),name:"烟感2",nametwo:"低压侧湿度(%RH)",value:"44.7",fieldName:"smokeSensation",fieldNameTwo:"temperature"},{path:n("f510"),name:"烟感3",nametwo:"水浸",value:n("11bc"),fieldName:"smokeSensation",fieldNameTwo:"waterout"},{path:n("f510"),name:"烟感4",nametwo:"",value:"",fieldName:"smokeSensation"},{path:n("f510"),name:"烟感4",nametwo:"",value:"",fieldName:"smokeSensation"}],fuzaiArr:[{name:"总负荷",vlaue:"198",icon:""},{name:"进线电压信息",vlaue:"5.84",icon:""},{name:"累计电量",vlaue:"183935",icon:""},{name:"功率因数",vlaue:"0.98",icon:""}],fuzaiArr1:[{name:"总负荷",vlaue:"198",icon:""},{name:"进线电压信息",vlaue:"5.84",icon:""},{name:"累计电量",vlaue:"183935",icon:""},{name:"功率因数",vlaue:"0.98",icon:""}],threeUrl:"",htStatus:1,perSon:"1",selectArr:["新馆","旧馆"],alarmListData:[],classOption:{step:.5,waitTime:1e3},unityUrl:"",toukuiShow:!1,unityChange:0,titleData:"",valueData:"38",backgroundPic:{index:"landRes2/bg"},options:[],carChangeShow:!1,locanionIp:"",workList:[],workListData:[],workListDatafcz:[],workListNew:[],workListFCZ:[],fczShow:!1,config4:{header:["部门","楼层","房号","名称"],rowNum:12,data:[],columnWidth:[60]},type:"",tit:"不动产产权证信息",loading:!1},v)},components:{HeaderIndex:A["a"],BasicBox4:_,BasicBox2:R,BasicBox:O["a"],customDvScrollBoard2:p,Center:H,vueSeamlessScroll:Q.a,pdf:ue},watch:{unityChange:{handler:function(e){0==e?(this.unityUrl="/htWeb/unity.html?src=1",this.threeUrl="http://221.226.19.85:10133/bdz_360_22_12_8/index.html",this.searchHandle("2")):(this.unityUrl="/htWeb/unity.html?src=2",this.threeUrl="http://221.226.19.85:10133/bdz_360_22_11_11/index.html",this.searchHandle("1"))},immediate:!0}},mounted:function(){var e=this;this.init(),window.setInterval((function(){0==e.unityChange?Object(le["c"])({siteId:"2"}).then((function(t){for(var r in t.data.data){if("doorState"==r)for(var i=0;i=this.options.limitMoveNum},hoverStopSwitch:function(){return this.options.hoverStop&&this.autoPlay&&this.scrollSwitch},canTouchScroll:function(){return this.options.openTouch},isHorizontal:function(){return this.options.direction>1},baseFontSize:function(){return this.options.isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1},realSingleStopWidth:function(){return this.options.singleWidth*this.baseFontSize},realSingleStopHeight:function(){return this.options.singleHeight*this.baseFontSize},step:function(){var e=this.options.step;return this.isHorizontal?this.realSingleStopWidth:this.realSingleStopHeight,e}},methods:{reset:function(){this._cancle(),this._initMove()},leftSwitchClick:function(){if(this.leftSwitchState)return Math.abs(this.xPos)1||e.scale&&1!==e.scale)){var t=e.targetTouches[0],n=this.options.direction;this.endPos={x:t.pageX-this.startPos.x,y:t.pageY-this.startPos.y},event.preventDefault();var r=Math.abs(this.endPos.x)1&&(this.xPos=this.startPosX+this.endPos.x)}},touchEnd:function(){var e=this;if(this.canTouchScroll){var t=void 0,n=this.options.direction;if(this.delay=50,1===n)this.yPos>0&&(this.yPos=0);else if(0===n){var r=this.realBoxHeight/2*-1;this.yPos0&&(this.xPos=0);else if(3===n){var i=-1*this.realBoxWidth;this.xPos=t&&(this.$emit("ScrollEnd"),this.yPos=0),this.yPos-=o):0===i?(this.yPos>=0&&(this.$emit("ScrollEnd"),this.yPos=-1*t),this.yPos+=o):2===i?(Math.abs(this.xPos)>=n&&(this.$emit("ScrollEnd"),this.xPos=0),this.xPos-=o):3===i&&(this.xPos>=0&&(this.$emit("ScrollEnd"),this.xPos=-1*n),this.xPos+=o),this.singleWaitTime&&clearTimeout(this.singleWaitTime),this.realSingleStopHeight?Math.abs(this.yPos)%this.realSingleStopHeight1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.componentName||i.default.name,i.default)},"undefined"!=typeof window&&window.Vue&&Vue.component(i.default.name,i.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);var o=n(7),s=n(3),u=s(i.a,o.a,!1,null,null,null);t.default=u.exports},function(e,t){e.exports=function(e,t,n,r,i,a){var o,s=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(o=e,s=e.default);var l,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=r),l){var h=c.functional,f=h?c.render:c.beforeCreate;h?(c._injectStyles=l,c.render=function(e,t){return l.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,l):[l]}return{esModule:o,exports:s,options:c}}},function(e,t){var n=function(){window.cancelAnimationFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e)}}(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}()};e.exports=n},function(e,t){var n=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"display";return this.pdfPage.getAnnotations({intent:n}).then((function(n){if(!t._cancelled&&0!==n.length){var i={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager,annotationStorage:t.annotationStorage};t.div?r.AnnotationLayer.update(i):(t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),i.div=t.div,r.AnnotationLayer.render(i),t.l10n.translate(t.div))}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=l;var c=function(){function e(){o(this,e)}return u(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:i.NullL10n;return new l({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:o,linkService:new a.SimpleLinkService,l10n:s,annotationStorage:n})}}]),e}();t.DefaultAnnotationLayerFactory=c},function(e,t,r){"use strict";var i;i="undefined"!==typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("4383"),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=J,t.isValidScrollMode=X,t.isValidSpreadMode=Z,t.isPortraitOrientation=K,t.clamp=re,t.getPDFFileNameFromURL=q,t.noContextMenuHandler=G,t.parseQueryString=F,t.backtrackBeforeAllVisibleElements=V,t.getVisibleElements=z,t.roundToDivide=U,t.getPageSizeInches=W,t.approximateFraction=B,t.getOutputScale=M,t.scrollIntoView=D,t.watchScroll=N,t.binarySearchFirstItem=j,t.normalizeWheelEventDirection=Q,t.normalizeWheelEventDelta=Y,t.waitOnEventOrTimeout=ee,t.moveToEndOfArray=ae,t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;var r=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2],r=e.offsetParent;if(r){var i=e.offsetTop+e.clientTop,a=e.offsetLeft+e.clientLeft;while(r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,a/=r.dataset._scaleX),i+=r.offsetTop,a+=r.offsetLeft,r=r.offsetParent,!r)return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(a+=t.left,r.scrollLeft=a)),r.scrollTop=i}else console.error("offsetParent is not set -- cannot scroll")}function N(e,t){var n=function(n){i||(i=window.requestAnimationFrame((function(){i=null;var n=e.scrollLeft,a=r.lastX;n!==a&&(r.right=n>a),r.lastX=n;var o=e.scrollTop,s=r.lastY;o!==s&&(r.down=o>s),r.lastY=o,t(r)})))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n},i=null;return e.addEventListener("scroll",n,!0),r}function F(e){for(var t=e.split("&"),n=Object.create(null),r=0,i=t.length;r1?a[1]:null;n[decodeURIComponent(o)]=decodeURIComponent(s)}return n}function j(e,t){var n=0,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[n]))return n;while(n>1,a=e[i];t(a)?r=i:n=i+1}return n}function B(e){if(Math.floor(e)===e)return[e,1];var t=1/e,n=8;if(t>n)return[1,n];if(Math.floor(t)===t)return[1,t];var r,i=e>1?t:e,a=0,o=1,s=1,u=1;while(1){var l=a+s,c=o+u;if(c>n)break;i<=l/c?(s=l,u=c):(a=l,o=c)}return r=i-a/o=n&&(r=t[e-1].div,i=r.offsetTop+r.clientTop);for(var a=e-2;a>=0;--a){if(r=t[a].div,r.offsetTop+r.clientTop+r.clientHeight<=i)break;e=a}return e}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.scrollTop,a=i+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;function u(e){var t=e.div,n=t.offsetTop+t.clientTop+t.clientHeight;return n>i}function l(e){var t=e.div,n=t.offsetLeft+t.clientLeft+t.clientWidth;return n>o}var c=[],h=t.length,f=0===h?0:j(t,r?l:u);f>0&&f=a&&(d=S);else if((r?A:m)>d)break;if(!(S<=i||m>=a||w<=o||A>=s)){var _=Math.max(0,i-m)+Math.max(0,S-a),x=Math.max(0,o-A)+Math.max(0,w-s),k=(b-_)*(y-x)*100/b/y|0;c.push({id:v.id,x:A,y:m,view:v,percent:k})}}var C=c[0],P=c[c.length-1];return n&&c.sort((function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id})),{first:C,last:P,views:c}}function G(e){e.preventDefault()}function H(e){var t=0,n=e.length;while(t1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(H(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(e),a=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(a&&(a=a[0],a.includes("%")))try{a=r.exec(decodeURIComponent(a))[0]}catch(o){}return a||t}function Q(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(r){t instanceof ne?t._off(n,o):t.removeEventListener(n,o),l&&clearTimeout(l),e(r)}var o=a.bind(null,$.EVENT);t instanceof ne?t._on(n,o):t.addEventListener(n,o);var s=a.bind(null,$.TIMEOUT),l=setTimeout(s,i)}))}t.WaitOnType=$;var te=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=te;var ne=function(){function e(t){a(this,e),this._listeners=Object.create(null)}return s(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n,r=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){var t=e.listener,i=e.external;if(i)return n||(n=[]),void n.push(t);t.apply(null,r)})),n&&(n.forEach((function(e){e.apply(null,r)})),n=null)}}},{key:"_on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[e];r||(this._listeners[e]=r=[]),r.push({listener:t,external:!0===(n&&n.external)})}},{key:"_off",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=this._listeners[e];if(n)for(var r=0,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,o=n.units;a(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=o||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode,n=t.offsetWidth-e.offsetWidth;n>0&&(this.bar.style.width="calc(100% - ".concat(n,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=re(e,0,100),this._updateBar()}}]),e}();function ae(e,t){for(var n=[],r=e.length,i=0,a=0;a=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(e))},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var r=n(3);function i(e){return i="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},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,r=t.externalLinkTarget,i=void 0===r?null:r,o=t.externalLinkRel,s=void 0===o?null:o,u=t.externalLinkEnabled,l=void 0===u||u,c=t.ignoreDestinationZoom,h=void 0!==c&&c;a(this,e),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=l,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,n=function n(r){var i,a=r.namedDest,o=r.explicitDest,s=o[0];if(s instanceof Object){if(i=t._cachedPageNumber(s),null===i)return void t.pdfDocument.getPageIndex(s).then((function(e){t.cachePageRef(e+1,s),n({namedDest:a,explicitDest:o})}))["catch"]((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));i=s+1}!i||i<1||i>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:a,explicitDest:o,pageNumber:i})),t.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:o,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise((function(n,r){"string"!==typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){n({namedDest:e,explicitDest:t})}))})).then((function(t){Array.isArray(t.explicitDest)?n(t):console.error('PDFLinkService.navigateTo: "'.concat(t.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))}))}},{key:"getDestinationHash",value:function(e){if("string"===typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,n;if(e.includes("=")){var i=(0,r.parseQueryString)(e);if("search"in i&&this.eventBus.dispatch("findfromurlhash",{source:this,query:i.search.replace(/"/g,""),phraseSearch:"true"===i.phrase}),"page"in i&&(t=0|i.page||1),"zoom"in i){var a=i.zoom.split(","),o=a[0],s=parseFloat(o);o.includes("Fit")?"Fit"===o||"FitB"===o?n=[null,{name:o}]:"FitH"===o||"FitBH"===o||"FitV"===o||"FitBV"===o?n=[null,{name:o},a.length>1?0|a[1]:null]:"FitR"===o?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:o},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(o,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,s?s/100:o]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in i&&this.eventBus.dispatch("pagemode",{source:this,mode:i.pagemode}),"nameddest"in i&&this.navigateTo(i.nameddest)}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(u){}if("string"===typeof n||l(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[n]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();function l(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var n=e[0];if(("object"!==i(n)||!Number.isInteger(n.num)||!Number.isInteger(n.gen))&&!(Number.isInteger(n)&&n>=0))return!1;var r=e[1];if("object"!==i(r)||"string"!==typeof r.name)return!1;var a=!0;switch(r.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;a=!1;break;default:return!1}for(var o=2;o0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e._updateMatches()}),(function(e){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,a=0,o=r.length-1,s=n.state.query.length,u=[],l=0,c=e.length;l=a+r[i].length)a+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var f={begin:{divIdx:i,offset:h-a}};h+=t?t[l]:s;while(i!==o&&h>a+r[i].length)a+=r[i].length,i++;f.end={divIdx:i,offset:h-a},u.push(f)}return u}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,a=n===t.selected.pageIdx,o=t.selected.matchIdx,s=t.state.highlightAll,u=null,l={divIdx:-1,offset:void 0},c=o,h=c+1;if(s)c=0,h=e.length;else if(!a)return;for(var f=c;f3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new u({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),e}();t.DefaultTextLayerFactory=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(2),i=n(10);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n3&&void 0!==arguments[3]&&arguments[3];if(navigator.msSaveBlob)navigator.msSaveBlob(e,n)||this.downloadUrl(t,n);else if(i.viewerCompatibilityParams.disableCreateObjectURL)this.downloadUrl(t,n);else{var r=URL.createObjectURL(e);u(r,n)}}}]),e}();t.DownloadManager=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!==typeof navigator&&navigator.userAgent||"",a="undefined"!==typeof navigator&&navigator.platform||"",o="undefined"!==typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),u=/Trident/.test(i),l=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===a&&o>1,c=/CriOS/.test(i);(function(){(u||c)&&(r.disableCreateObjectURL=!0)})(),function(){(l||s)&&(r.maxCanvasPixels=5242880)}();var h=Object.freeze(r);t.viewerCompatibilityParams=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var r=i(n(4));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,u,"next",e)}function u(e){a(o,r,i,s,u,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n0?(i=t.substring(0,s),o=t.substring(s+1)):(i=t,o=a),r[i]||(r[i]={}),r[i][o]=e[t]}n&&n()}))}),o)}function g(e,t){e&&(e=e.toLowerCase()),t=t||function(){},A(),o=e;var n=c(),i=n.length;if(0!==i){var a=null,s=0;a=function(){s++,s>=i&&(t(),u="complete")};for(var l=0;l0&&(o=e.substring(i+1),e=e.substring(0,i)),n&&(r={},r[o]=n);var s=y(e,t,r);return s&&o in s?s[o]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return o},setLanguage:function(e,t){g(e,(function(){t&&t()}))},getDirection:function(){var e=["ar","he","fa","ps","ur"],t=o.split("-",1)[0];return e.indexOf(t)>=0?"rtl":"ltr"},translate:x,getReadyState:function(){return u},ready:function(n){n&&("complete"==u||"interactive"==u?e.setTimeout((function(){n()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),n()})))}}}(window,document)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var r=n(2),i=n(14),a=n(3);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,n){function r(t){var n=e[t],r=e[t+1];if(t=0;i--){var a=e[i];if(!a.skipped){if(a.match+a.matchLength=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort((function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match}));for(var i=0,a=e.length;i0){var r=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(a))return!1}var o=t+n-1;if(o0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,i){var a=(0,r.createPromiseCapability)();e._extractTextPromises[n]=a.promise,t=t.then((function(){return e._pdfDocument.getPage(n+1).then((function(e){return e.getTextContent({normalizeWhitespace:!0})})).then((function(t){for(var r=t.items,i=[],o=0,s=r.length;o0)return a.matchIdx=t?a.matchIdx-1:a.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(l.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,n=e.length,r=this._state.findPrevious;return n?(t.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=l.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?l.WRAPPED:l.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then((function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(l.FOUND),t._highlightMatches=!1,t._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var a=0;ai)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=v(this._state.query)),this._normalizedQuery}}]),e}();t.PDFFindController=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=p,t.CharacterType=void 0;var r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function i(e){return e<11904}function a(e){return 0===(65408&e)}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return e>=48&&e<=57}function u(e){return 32===e||9===e||13===e||10===e}function l(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}function c(e){return e>=12448&&e<=12543}function h(e){return e>=12352&&e<=12447}function f(e){return e>=65376&&e<=65439}function d(e){return 3584===(65408&e)}function p(e){return i(e)?a(e)?u(e)?r.SPACE:o(e)||s(e)||95===e?r.ALPHA_LETTER:r.PUNCT:d(e)?r.THAI_LETTER:160===e?r.SPACE:r.ALPHA_LETTER:l(e)?r.HAN_LETTER:c(e)?r.KATAKANA_LETTER:h(e)?r.HIRAGANA_LETTER:f(e)?r.HALFWIDTH_KATAKANA_LETTER:r.ALPHA_LETTER}t.CharacterType=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=y,t.isDestArraysEqual=b,t.PDFHistory=void 0;var r=n(3);function i(e){return i="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},i(e)}function a(e,t){return c(e)||l(e,t)||s(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 s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,r=void 0===n?null:n,i=e.explicitDest,a=e.pageNumber;if(this._initialized)if(r&&"string"!==typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount||null===a&&!this._destination){var o=r||JSON.stringify(i);if(o){var s=!1;if(this._destination&&(y(this._destination.hash,o)||b(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:o,page:a,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){t._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid1&&void 0!==arguments[1]&&arguments[1],r=n||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,i.uid),this._updateUrl&&e&&e.hash){var a=document.location.href.split("#")[0];a.startsWith("file://")||(t="".concat(a,"#").concat(e.hash))}r?window.history.replaceState(i,"",t):(this._maxUid=this._uid,window.history.pushState(i,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(v<=0||this._numPositionUpdates<=v))){var n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!==typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),r=a(n,1),o=r[0];if(!o||"reload"!==o.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===i(e.destination))}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(A()).substring(1),n=(0,r.parseQueryString)(t),i=n.nameddest||"",a=0|n.page;return Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount&&!(e&&i.length>0)||(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(v>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,g>0&&(this._updateViewareaTimeout=setTimeout((function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null}),g)))}},{key:"_popState",value:function(e){var t=this,n=e.state,i=A(),a=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:p}).then((function(){t._blockHashChange--})));var o=n.destination;this._updateInternalState(o,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(o.rotation)&&(this.linkService.rotation=o.rotation),o.dest?this.linkService.navigateTo(o.dest):o.hash?this.linkService.setHash(o.hash):o.page&&(this.linkService.page=o.page),Promise.resolve().then((function(){t._popStateInProgress=!1}))}}else{this._uid++;var s=this._parseCurrentHash(),u=s.hash,l=s.page,c=s.rotation;this._pushOrReplaceState({hash:u,page:l,rotation:c},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}]),e}();function y(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;if(e===t)return!0;var n=(0,r.parseQueryString)(e),i=n.nameddest;return i===t}function b(e,t){function n(e,t){if(i(e)!==i(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===i(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!n(e[r],t[r]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0,a=e.length;r0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap["delete"](t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=o.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=e&&this.zoomLayer||null,a=t&&this.annotationLayer&&this.annotationLayer.div||null,s=r.length-1;s>=0;s--){var u=r[s];i!==u&&a!==u&&n.removeChild(u)}n.removeAttribute("data-loaded"),a?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap["delete"](this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap["delete"](this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.scale=e||this.scale,"undefined"!==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*i.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var a=!1;if(this.canvas&&this.maxCanvasPixels>0){var o=this.outputScale;(Math.floor(this.viewport.width)*o.sx|0)*(Math.floor(this.viewport.height)*o.sy|0)>this.maxCanvasPixels&&(a=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&a)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;e.style.width=e.parentNode.style.width=i.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=i.style.height=Math.floor(r)+"px";var a=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(a),s=1,u=1;90!==o&&270!==o||(s=r/n,u=n/r);var l="rotate("+a+"deg) scale("+s+","+u+")";if(e.style.transform=l,this.textLayer){var c=this.textLayer.viewport,h=this.viewport.rotation-c.rotation,f=Math.abs(h),d=n/c.width;90!==f&&270!==f||(d=n/c.height);var p,v,g=this.textLayer.textLayerDiv;switch(f){case 0:p=v=0;break;case 90:p=0,v="-"+g.style.height;break;case 180:p="-"+g.style.width,v="-"+g.style.height;break;case 270:p="-"+g.style.width,v=0;break;default:console.error("Bad rotation value.");break}g.style.transform="rotate("+f+"deg) scale("+d+", "+d+") translate("+p+", "+v+")",g.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer()}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==o.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,n=this.pdfPage;if(!n)return this.renderingState=o.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=o.RenderingStates.RUNNING;var s=document.createElement("div");s.style.width=t.style.width,s.style.height=t.style.height,s.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(s,this.annotationLayer.div):t.appendChild(s);var u=null;if(this.textLayerMode!==i.TextLayerMode.DISABLE&&this.textLayerFactory){var l=document.createElement("div");l.className="textLayer",l.style.width=s.style.width,l.style.height=s.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(l,this.annotationLayer.div):t.appendChild(l),u=this.textLayerFactory.createTextLayerBuilder(l,this.id-1,this.viewport,this.textLayerMode===i.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=u;var h=null;this.renderingQueue&&(h=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=o.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=o.RenderingStates.RUNNING,t()});t()});var f=function(){var i=c(r["default"].mark((function i(s){return r["default"].wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(d===e.paintTask&&(e.paintTask=null),!(s instanceof a.RenderingCancelledException)){r.next=4;break}return e.error=null,r.abrupt("return");case 4:if(e.renderingState=o.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=s,e.stats=n.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!s){r.next=12;break}throw s;case 12:case"end":return r.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}(),d=this.renderer===i.RendererType.SVG?this.paintOnSvg(s):this.paintOnCanvas(s);d.onRenderContinue=h,this.paintTask=d;var p=d.promise.then((function(){return f(null).then((function(){if(u){var e=n.streamTextContent({normalizeWhitespace:!0});u.setTextContentStream(e),u.render()}}))}),(function(e){return f(e)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,n,this._annotationStorage,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this._renderAnnotationLayer()),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(e){var t=(0,a.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){m.cancel()}},r=this.viewport,o=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(e){o.setAttribute("aria-label",e)})),o.setAttribute("hidden","hidden");var s=!0,u=function(){s&&(o.removeAttribute("hidden"),s=!1)};e.appendChild(o),this.canvas=o,o.mozOpaque=!0;var l=o.getContext("2d",{alpha:!1}),c=(0,i.getOutputScale)(l);if(this.outputScale=c,this.useOnlyCssZoom){var h=r.clone({scale:i.CSS_UNITS});c.sx*=h.width/r.width,c.sy*=h.height/r.height,c.scaled=!0}if(this.maxCanvasPixels>0){var f=r.width*r.height,d=Math.sqrt(this.maxCanvasPixels/f);c.sx>d||c.sy>d?(c.sx=d,c.sy=d,c.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,i.approximateFraction)(c.sx),v=(0,i.approximateFraction)(c.sy);o.width=(0,i.roundToDivide)(r.width*c.sx,p[0]),o.height=(0,i.roundToDivide)(r.height*c.sy,v[0]),o.style.width=(0,i.roundToDivide)(r.width,p[1])+"px",o.style.height=(0,i.roundToDivide)(r.height,v[1])+"px",this.paintedViewportMap.set(o,r);var g=c.scaled?[c.sx,0,0,c.sy,0,0]:null,A={canvasContext:l,transform:g,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise},m=this.pdfPage.render(A);return m.onContinue=function(e){u(),n.onRenderContinue?n.onRenderContinue(e):e()},m.promise.then((function(){u(),t.resolve(void 0)}),(function(e){u(),t.reject(e)})),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,r=function(){if(n)throw new a.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},s=this.pdfPage,u=this.viewport.clone({scale:i.CSS_UNITS}),l=s.getOperatorList().then((function(n){r();var i=new a.SVGGraphics(s.commonObjs,s.objs);return i.getSVG(n,u).then((function(n){r(),t.svg=n,t.paintedViewportMap.set(n,u),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=o.RenderingStates.FINISHED,e.appendChild(n)}))}));return{promise:l,onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"===typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),e}();t.PDFPageView=v},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),l(A(n.prototype),"_scrollIntoView",this).call(this,{pageDiv:r,pageSpot:a,pageNumber:s}),this._updateScrollDown=function(){t.scroll.down=u,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}]),n}(r.BaseViewer);t.PDFSinglePageViewer=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var r=n(3),i=n(17),a=n(1),o=n(2),s=n(16),u=n(7),l=n(8);function c(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(s)throw a}}}}function h(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&t.splice(r,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,i){if(e=n,i){for(var a=new Set,o=0,s=i.length;oe)t.shift().destroy()}}function m(e,t){return t===e||Math.abs(t-e)<1e-15}var y=function(){function e(t){var n=this;if(d(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");if(this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,!(this.container instanceof HTMLDivElement&&this.viewer instanceof HTMLDivElement))throw new Error("Invalid `container` and/or `viewer` option.");this.eventBus=t.eventBus,this.linkService=t.linkService||new u.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms="boolean"!==typeof t.renderInteractiveForms||t.renderInteractiveForms,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||r.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){n.eventBus.dispatch("baseviewerinit",{source:n})}))}return v(e,[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):07500)t._pagesCapability.resolve();else{var r=n-1;if(r<=0)t._pagesCapability.resolve();else for(var i=function(n){e.getPage(n).then((function(e){var i=t._pages[n-1];i.pdfPage||i.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0===--r&&t._pagesCapability.resolve()}),(function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0===--r&&t._pagesCapability.resolve()}))},a=2;a<=n;++a)i(a)}})),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}))["catch"]((function(e){console.error("Unable to initialize viewer",e)}))}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,n=this._pages.length;t2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),m(this._currentScale,e))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var i=0,a=this._pages.length;i1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var a=this.isInPresentationMode||this.removePageBorders,o=a?0:r.SCROLLBAR_PADDING,s=a?0:r.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var u=[s,o];o=u[0],s=u[1]}var l=(this.container.clientWidth-o)/i.width*i.scale,c=(this.container.clientHeight-s)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=c;break;case"page-fit":n=Math.min(l,c);break;case"auto":var h=(0,r.isPortraitOrientation)(i)?l:Math.min(c,l);n=Math.min(r.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,i=void 0===n?null:n,a=e.allowNegativeOffset,o=void 0!==a&&a,s=e.ignoreDestinationZoom,u=void 0!==s&&s;if(this.pdfDocument){var l=Number.isInteger(t)&&this._pages[t-1];if(l)if(!this.isInPresentationMode&&i){var c,h,f=0,d=0,p=0,v=0,g=l.rotation%180!==0,A=(g?l.height:l.width)/l.scale/r.CSS_UNITS,m=(g?l.width:l.height)/l.scale/r.CSS_UNITS,y=0;switch(i[1].name){case"XYZ":f=i[2],d=i[3],y=i[4],f=null!==f?f:0,d=null!==d?d:m;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":d=i[2],y="page-width",null===d&&this._location&&(f=this._location.left,d=this._location.top);break;case"FitV":case"FitBV":f=i[2],p=A,v=m,y="page-height";break;case"FitR":f=i[2],d=i[3],p=i[4]-f,v=i[5]-d;var b=this.removePageBorders?0:r.SCROLLBAR_PADDING,w=this.removePageBorders?0:r.VERTICAL_PADDING;c=(this.container.clientWidth-b)/p/r.CSS_UNITS,h=(this.container.clientHeight-w)/v/r.CSS_UNITS,y=Math.min(Math.abs(c),Math.abs(h));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(u||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==y||i[4]){var S=[l.viewport.convertToViewportPoint(f,d),l.viewport.convertToViewportPoint(f+p,d+v)],_=Math.min(S[0][0],S[1][0]),x=Math.min(S[0][1],S[1][1]);o||(_=Math.max(_,0),x=Math.max(x,0)),this._scrollIntoView({pageDiv:l.div,pageSpot:{left:_,top:x},pageNumber:t})}else this._scrollIntoView({pageDiv:l.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id,a="#page="+i;a+="&zoom="+r;var o=this._pages[i-1],s=this.container,u=o.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),l=Math.round(u[0]),c=Math.round(u[1]);a+=","+l+","+c,this._location={pageNumber:i,scale:r,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:a}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var r=Math.max(g,2*n+1);this._buffer.resize(r,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(t){return t.id===e})))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new l.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r.NullL10n;return new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:i,renderInteractiveForms:o,linkService:this.linkService,downloadManager:this.downloadManager,l10n:s})}},{key:"getPagesOverview",value:function(){var e=this._pages.map((function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}}));return this.enablePrintAutoRotate?e.map((function(e){return(0,r.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}})):e}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===r.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,a=n.length;i=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,i=this._pages.length;nthis.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;t=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==n["return"]||n["return"]()}finally{if(u)throw a}}}}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nc+h)&&(i={left:0,top:0})}f(b(n.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:i,pageNumber:o})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():f(b(n.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,n=this._currentPageNumber,r=!1,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.percent<100)break;if(a.id===n){r=!0;break}}}catch(s){i.e(s)}finally{i.f()}r||(n=e[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}]),n}(r.BaseViewer);t.PDFViewer=w}])}))},f9a3:function(e,t,n){"use strict";var r=n("67be"),i=n.n(r);i.a},faa8:function(e,t,n){}}]); //# sourceMappingURL=chunk-71de64a2.47bf5e56.js.map